configure revision 1.1.1.3.2.1 1 #! /bin/sh
2 # From configure.in Revision: 1.14 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by Autoconf 2.52.20121002.
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="main.c"
109
110 # Initialize some variables set by options.
111 ac_init_help=
112 ac_init_version=false
113 # The variables have the same names as the options, with
114 # dashes changed to underlines.
115 cache_file=/dev/null
116 exec_prefix=NONE
117 no_create=
118 no_recursion=
119 prefix=NONE
120 program_prefix=NONE
121 program_suffix=NONE
122 program_transform_name=s,x,x,
123 silent=
124 site=
125 srcdir=
126 verbose=
127 x_includes=NONE
128 x_libraries=NONE
129
130 # Installation directory options.
131 # These are left unexpanded so users can "make install exec_prefix=/foo"
132 # and all the variables that are supposed to be based on exec_prefix
133 # by default will actually change.
134 # Use braces instead of parens because sh, perl, etc. also accept them.
135 bindir='${exec_prefix}/bin'
136 sbindir='${exec_prefix}/sbin'
137 libexecdir='${exec_prefix}/libexec'
138 datarootdir='${prefix}/share'
139 datadir='${datarootdir}'
140 sysconfdir='${prefix}/etc'
141 sharedstatedir='${prefix}/com'
142 localstatedir='${prefix}/var'
143 libdir='${exec_prefix}/lib'
144 includedir='${prefix}/include'
145 oldincludedir='/usr/include'
146 infodir='${datarootdir}/info'
147 mandir='${datarootdir}/man'
148
149 # Identity of this package.
150 PACKAGE_NAME=
151 PACKAGE_TARNAME=
152 PACKAGE_VERSION=
153 PACKAGE_STRING=
154 PACKAGE_BUGREPORT=
155
156 ac_prev=
157 for ac_option
158 do
159 # If the previous option needs an argument, assign it.
160 if test -n "$ac_prev"; then
161 eval "$ac_prev=\$ac_option"
162 ac_prev=
163 continue
164 fi
165
166 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
167
168 # Accept the important Cygnus configure options, so we can diagnose typos.
169
170 case $ac_option in
171
172 -bindir | --bindir | --bindi | --bind | --bin | --bi)
173 ac_prev=bindir ;;
174 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
175 bindir=$ac_optarg ;;
176
177 -build | --build | --buil | --bui | --bu)
178 ac_prev=build_alias ;;
179 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
180 build_alias=$ac_optarg ;;
181
182 -cache-file | --cache-file | --cache-fil | --cache-fi \
183 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
184 ac_prev=cache_file ;;
185 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
186 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
187 cache_file=$ac_optarg ;;
188
189 --config-cache | -C)
190 cache_file=config.cache ;;
191
192 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
193 ac_prev=datadir ;;
194 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
195 | --da=*)
196 datadir=$ac_optarg ;;
197
198 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
199 | --dataroo | --dataro | --datar)
200 ac_prev=datarootdir ;;
201 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
202 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
203 datarootdir=$ac_optarg ;;
204
205 -disable-* | --disable-*)
206 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
207 # Reject names that are not valid shell variable names.
208 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
209 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
210 { (exit 1); exit 1; }; }
211 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
212 eval "enable_$ac_feature=no" ;;
213
214 -enable-* | --enable-*)
215 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
216 # Reject names that are not valid shell variable names.
217 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
218 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
219 { (exit 1); exit 1; }; }
220 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
221 case $ac_option in
222 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
223 *) ac_optarg=yes ;;
224 esac
225 eval "enable_$ac_feature='$ac_optarg'" ;;
226
227 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
228 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
229 | --exec | --exe | --ex)
230 ac_prev=exec_prefix ;;
231 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
232 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
233 | --exec=* | --exe=* | --ex=*)
234 exec_prefix=$ac_optarg ;;
235
236 -gas | --gas | --ga | --g)
237 # Obsolete; use --with-gas.
238 with_gas=yes ;;
239
240 -help | --help | --hel | --he | -h)
241 ac_init_help=long ;;
242 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
243 ac_init_help=recursive ;;
244 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
245 ac_init_help=short ;;
246
247 -host | --host | --hos | --ho)
248 ac_prev=host_alias ;;
249 -host=* | --host=* | --hos=* | --ho=*)
250 host_alias=$ac_optarg ;;
251
252 -includedir | --includedir | --includedi | --included | --include \
253 | --includ | --inclu | --incl | --inc)
254 ac_prev=includedir ;;
255 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
256 | --includ=* | --inclu=* | --incl=* | --inc=*)
257 includedir=$ac_optarg ;;
258
259 -infodir | --infodir | --infodi | --infod | --info | --inf)
260 ac_prev=infodir ;;
261 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
262 infodir=$ac_optarg ;;
263
264 -libdir | --libdir | --libdi | --libd)
265 ac_prev=libdir ;;
266 -libdir=* | --libdir=* | --libdi=* | --libd=*)
267 libdir=$ac_optarg ;;
268
269 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
270 | --libexe | --libex | --libe)
271 ac_prev=libexecdir ;;
272 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
273 | --libexe=* | --libex=* | --libe=*)
274 libexecdir=$ac_optarg ;;
275
276 -localstatedir | --localstatedir | --localstatedi | --localstated \
277 | --localstate | --localstat | --localsta | --localst \
278 | --locals | --local | --loca | --loc | --lo)
279 ac_prev=localstatedir ;;
280 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
281 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
282 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
283 localstatedir=$ac_optarg ;;
284
285 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
286 ac_prev=mandir ;;
287 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
288 mandir=$ac_optarg ;;
289
290 -nfp | --nfp | --nf)
291 # Obsolete; use --without-fp.
292 with_fp=no ;;
293
294 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
295 | --no-cr | --no-c)
296 no_create=yes ;;
297
298 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
299 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
300 no_recursion=yes ;;
301
302 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
303 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
304 | --oldin | --oldi | --old | --ol | --o)
305 ac_prev=oldincludedir ;;
306 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
307 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
308 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
309 oldincludedir=$ac_optarg ;;
310
311 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
312 ac_prev=prefix ;;
313 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
314 prefix=$ac_optarg ;;
315
316 -program-prefix | --program-prefix | --program-prefi | --program-pref \
317 | --program-pre | --program-pr | --program-p)
318 ac_prev=program_prefix ;;
319 -program-prefix=* | --program-prefix=* | --program-prefi=* \
320 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
321 program_prefix=$ac_optarg ;;
322
323 -program-suffix | --program-suffix | --program-suffi | --program-suff \
324 | --program-suf | --program-su | --program-s)
325 ac_prev=program_suffix ;;
326 -program-suffix=* | --program-suffix=* | --program-suffi=* \
327 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
328 program_suffix=$ac_optarg ;;
329
330 -program-transform-name | --program-transform-name \
331 | --program-transform-nam | --program-transform-na \
332 | --program-transform-n | --program-transform- \
333 | --program-transform | --program-transfor \
334 | --program-transfo | --program-transf \
335 | --program-trans | --program-tran \
336 | --progr-tra | --program-tr | --program-t)
337 ac_prev=program_transform_name ;;
338 -program-transform-name=* | --program-transform-name=* \
339 | --program-transform-nam=* | --program-transform-na=* \
340 | --program-transform-n=* | --program-transform-=* \
341 | --program-transform=* | --program-transfor=* \
342 | --program-transfo=* | --program-transf=* \
343 | --program-trans=* | --program-tran=* \
344 | --progr-tra=* | --program-tr=* | --program-t=*)
345 program_transform_name=$ac_optarg ;;
346
347 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
348 | -silent | --silent | --silen | --sile | --sil)
349 silent=yes ;;
350
351 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
352 ac_prev=sbindir ;;
353 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
354 | --sbi=* | --sb=*)
355 sbindir=$ac_optarg ;;
356
357 -sharedstatedir | --sharedstatedir | --sharedstatedi \
358 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
359 | --sharedst | --shareds | --shared | --share | --shar \
360 | --sha | --sh)
361 ac_prev=sharedstatedir ;;
362 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
363 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
364 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
365 | --sha=* | --sh=*)
366 sharedstatedir=$ac_optarg ;;
367
368 -site | --site | --sit)
369 ac_prev=site ;;
370 -site=* | --site=* | --sit=*)
371 site=$ac_optarg ;;
372
373 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
374 ac_prev=srcdir ;;
375 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
376 srcdir=$ac_optarg ;;
377
378 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
379 | --syscon | --sysco | --sysc | --sys | --sy)
380 ac_prev=sysconfdir ;;
381 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
382 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
383 sysconfdir=$ac_optarg ;;
384
385 -target | --target | --targe | --targ | --tar | --ta | --t)
386 ac_prev=target_alias ;;
387 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
388 target_alias=$ac_optarg ;;
389
390 -v | -verbose | --verbose | --verbos | --verbo | --verb)
391 verbose=yes ;;
392
393 -version | --version | --versio | --versi | --vers | -V)
394 ac_init_version=: ;;
395
396 -with-* | --with-*)
397 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
398 # Reject names that are not valid shell variable names.
399 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400 { echo "$as_me: error: invalid package name: $ac_package" >&2
401 { (exit 1); exit 1; }; }
402 ac_package=`echo $ac_package| sed 's/-/_/g'`
403 case $ac_option in
404 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
405 *) ac_optarg=yes ;;
406 esac
407 eval "with_$ac_package='$ac_optarg'" ;;
408
409 -without-* | --without-*)
410 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
411 # Reject names that are not valid shell variable names.
412 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
413 { echo "$as_me: error: invalid package name: $ac_package" >&2
414 { (exit 1); exit 1; }; }
415 ac_package=`echo $ac_package | sed 's/-/_/g'`
416 eval "with_$ac_package=no" ;;
417
418 --x)
419 # Obsolete; use --with-x.
420 with_x=yes ;;
421
422 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
423 | --x-incl | --x-inc | --x-in | --x-i)
424 ac_prev=x_includes ;;
425 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
426 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
427 x_includes=$ac_optarg ;;
428
429 -x-libraries | --x-libraries | --x-librarie | --x-librari \
430 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
431 ac_prev=x_libraries ;;
432 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
433 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
434 x_libraries=$ac_optarg ;;
435
436 -*) { echo "$as_me: error: unrecognized option: $ac_option
437 Try \`$0 --help' for more information." >&2
438 { (exit 1); exit 1; }; }
439 ;;
440
441 *=*)
442 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
443 # Reject names that are not valid shell variable names.
444 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
445 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
446 { (exit 1); exit 1; }; }
447 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
448 eval "$ac_envvar='$ac_optarg'"
449 export $ac_envvar ;;
450
451 *)
452 # FIXME: should be removed in autoconf 3.0.
453 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
454 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
455 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
456 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
457 ;;
458
459 esac
460 done
461
462 if test -n "$ac_prev"; then
463 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
464 { echo "$as_me: error: missing argument to $ac_option" >&2
465 { (exit 1); exit 1; }; }
466 fi
467
468 # Be sure to have absolute paths.
469 for ac_var in exec_prefix prefix
470 do
471 eval ac_val=$`echo $ac_var`
472 case $ac_val in
473 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
474 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
475 { (exit 1); exit 1; }; };;
476 esac
477 done
478
479 # Be sure to have absolute paths.
480 for ac_var in bindir sbindir libexecdir datarootdir datadir sysconfdir sharedstatedir \
481 localstatedir libdir includedir oldincludedir infodir mandir
482 do
483 eval ac_val=$`echo $ac_var`
484 case $ac_val in
485 [\\/$]* | ?:[\\/]* ) ;;
486 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
487 { (exit 1); exit 1; }; };;
488 esac
489 done
490
491 # There might be people who depend on the old broken behavior: `$host'
492 # used to hold the argument of --host etc.
493 build=$build_alias
494 host=$host_alias
495 target=$target_alias
496
497 # FIXME: should be removed in autoconf 3.0.
498 if test "x$host_alias" != x; then
499 if test "x$build_alias" = x; then
500 cross_compiling=maybe
501 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
502 If a cross compiler is detected then cross compile mode will be used." >&2
503 elif test "x$build_alias" != "x$host_alias"; then
504 cross_compiling=yes
505 fi
506 fi
507
508 ac_tool_prefix=
509 test -n "$host_alias" && ac_tool_prefix=$host_alias-
510
511 test "$silent" = yes && exec 6>/dev/null
512
513 # Find the source files, if location was not specified.
514 if test -z "$srcdir"; then
515 ac_srcdir_defaulted=yes
516 # Try the directory containing this script, then its parent.
517 ac_prog=$0
518 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
519 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
520 srcdir=$ac_confdir
521 if test ! -r $srcdir/$ac_unique_file; then
522 srcdir=..
523 fi
524 else
525 ac_srcdir_defaulted=no
526 fi
527 if test ! -r $srcdir/$ac_unique_file; then
528 if test "$ac_srcdir_defaulted" = yes; then
529 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
530 { (exit 1); exit 1; }; }
531 else
532 { echo "$as_me: error: cannot find sources in $srcdir" >&2
533 { (exit 1); exit 1; }; }
534 fi
535 fi
536 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
537 ac_env_build_alias_set=${build_alias+set}
538 ac_env_build_alias_value=$build_alias
539 ac_cv_env_build_alias_set=${build_alias+set}
540 ac_cv_env_build_alias_value=$build_alias
541 ac_env_host_alias_set=${host_alias+set}
542 ac_env_host_alias_value=$host_alias
543 ac_cv_env_host_alias_set=${host_alias+set}
544 ac_cv_env_host_alias_value=$host_alias
545 ac_env_target_alias_set=${target_alias+set}
546 ac_env_target_alias_value=$target_alias
547 ac_cv_env_target_alias_set=${target_alias+set}
548 ac_cv_env_target_alias_value=$target_alias
549 ac_env_CC_set=${CC+set}
550 ac_env_CC_value=$CC
551 ac_cv_env_CC_set=${CC+set}
552 ac_cv_env_CC_value=$CC
553 ac_env_CFLAGS_set=${CFLAGS+set}
554 ac_env_CFLAGS_value=$CFLAGS
555 ac_cv_env_CFLAGS_set=${CFLAGS+set}
556 ac_cv_env_CFLAGS_value=$CFLAGS
557 ac_env_LDFLAGS_set=${LDFLAGS+set}
558 ac_env_LDFLAGS_value=$LDFLAGS
559 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
560 ac_cv_env_LDFLAGS_value=$LDFLAGS
561 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
562 ac_env_CPPFLAGS_value=$CPPFLAGS
563 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
564 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
565 ac_env_CPP_set=${CPP+set}
566 ac_env_CPP_value=$CPP
567 ac_cv_env_CPP_set=${CPP+set}
568 ac_cv_env_CPP_value=$CPP
569
570 #
571 # Report the --help message.
572 #
573 if test "$ac_init_help" = "long"; then
574 # Omit some internal or obsolete options to make the list less imposing.
575 # This message is too long to be a string in the A/UX 3.1 sh.
576 cat <<EOF
577 \`configure' configures this package to adapt to many kinds of systems.
578
579 Usage: $0 [OPTION]... [VAR=VALUE]...
580
581 To assign environment variables (e.g., CC, CFLAGS...), specify them as
582 VAR=VALUE. See below for descriptions of some of the useful variables.
583
584 Defaults for the options are specified in brackets.
585
586 Configuration:
587 -h, --help display this help and exit
588 --help=short display options specific to this package
589 --help=recursive display the short help of all the included packages
590 -V, --version display version information and exit
591 -q, --quiet, --silent do not print \`checking...' messages
592 --cache-file=FILE cache test results in FILE [disabled]
593 -C, --config-cache alias for \`--cache-file=config.cache'
594 -n, --no-create do not create output files
595 --srcdir=DIR find the sources in DIR [configure dir or \`..']
596
597 EOF
598
599 cat <<EOF
600 Installation directories:
601 --prefix=PREFIX install architecture-independent files in PREFIX
602 [$ac_default_prefix]
603 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
604 [PREFIX]
605
606 By default, \`make install' will install all the files in
607 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
608 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
609 for instance \`--prefix=\$HOME'.
610
611 For better control, use the options below.
612
613 Fine tuning of the installation directories:
614 --bindir=DIR user executables [EPREFIX/bin]
615 --sbindir=DIR system admin executables [EPREFIX/sbin]
616 --libexecdir=DIR program executables [EPREFIX/libexec]
617 --datarootdir=DIR read-only architecture-independent data [PREFIX/share]
618 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
619 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
620 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
621 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
622 --libdir=DIR object code libraries [EPREFIX/lib]
623 --includedir=DIR C header files [PREFIX/include]
624 --oldincludedir=DIR C header files for non-gcc [/usr/include]
625 --infodir=DIR info documentation [DATAROOTDIR/info]
626 --mandir=DIR man documentation [DATAROOTDIR/man]
627 EOF
628
629 cat <<\EOF
630
631 Program names:
632 --program-prefix=PREFIX prepend PREFIX to installed program names
633 --program-suffix=SUFFIX append SUFFIX to installed program names
634 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
635
636 System types:
637 --build=BUILD configure for building on BUILD [guessed]
638 --host=HOST build programs to run on HOST [BUILD]
639 --target=TARGET configure for building compilers for TARGET [HOST]
640 EOF
641 fi
642
643 if test -n "$ac_init_help"; then
644
645 cat <<\EOF
646
647 Optional Packages:
648 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
649 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
650
651 Optional Features:
652 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
653 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
654
655 --with-warnings test: turn on gcc warnings
656 --disable-echo do not display "compiling" commands
657 --with-dmalloc test: use Gray Watson's dmalloc library
658 --with-dbmalloc test: use Conor Cahill's dbmalloc library
659 --with-valgrind test: use valgrind
660 --disable-leaks test: free permanent memory, analyze leaks
661
662 Some influential environment variables:
663 CC C compiler command
664 CFLAGS C compiler flags
665 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
666 nonstandard directory <lib dir>
667 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
668 headers in a nonstandard directory <include dir>
669 CPP C preprocessor
670
671 Use these variables to override the choices made by `configure' or to help
672 it to find libraries and programs with nonstandard names/locations.
673
674 EOF
675 fi
676
677 if test "$ac_init_help" = "recursive"; then
678 # If there are subdirs, report their specific --help.
679 ac_popdir=`pwd`
680 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
681 cd $ac_subdir
682 # A "../" for each directory in /$ac_subdir.
683 ac_dots=`echo $ac_subdir |
684 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
685
686 case $srcdir in
687 .) # No --srcdir option. We are building in place.
688 ac_sub_srcdir=$srcdir ;;
689 [\\/]* | ?:[\\/]* ) # Absolute path.
690 ac_sub_srcdir=$srcdir/$ac_subdir ;;
691 *) # Relative path.
692 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
693 esac
694
695 # Check for guested configure; otherwise get Cygnus style configure.
696 if test -f $ac_sub_srcdir/configure.gnu; then
697 echo
698 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
699 elif test -f $ac_sub_srcdir/configure; then
700 echo
701 $SHELL $ac_sub_srcdir/configure --help=recursive
702 elif test -f $ac_sub_srcdir/configure.ac ||
703 test -f $ac_sub_srcdir/configure.in; then
704 echo
705 $ac_configure --help
706 else
707 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
708 fi
709 cd $ac_popdir
710 done
711 fi
712
713 test -n "$ac_init_help" && exit 0
714 if $ac_init_version; then
715 cat <<\EOF
716
717 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
718 Free Software Foundation, Inc.
719 This configure script is free software; the Free Software Foundation
720 gives unlimited permission to copy, distribute and modify it.
721 EOF
722 exit 0
723 fi
724 exec 5>config.log
725 cat >&5 <<EOF
726 This file contains any messages produced by compilers while
727 running configure, to aid debugging if configure makes a mistake.
728
729 It was created by $as_me, which was
730 generated by GNU Autoconf 2.52.20121002. Invocation command line was
731
732 $ $0 $@
733
734 EOF
735 {
736 cat <<_ASUNAME
737 ## ---------- ##
738 ## Platform. ##
739 ## ---------- ##
740
741 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
742 uname -m = `(uname -m) 2>/dev/null || echo unknown`
743 uname -r = `(uname -r) 2>/dev/null || echo unknown`
744 uname -s = `(uname -s) 2>/dev/null || echo unknown`
745 uname -v = `(uname -v) 2>/dev/null || echo unknown`
746
747 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
748 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
749
750 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
751 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
752 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
753 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
754 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
755 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
756 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
757
758 PATH = $PATH
759
760 _ASUNAME
761 } >&5
762
763 cat >&5 <<EOF
764 ## ------------ ##
765 ## Core tests. ##
766 ## ------------ ##
767
768 EOF
769
770 # Keep a trace of the command line.
771 # Strip out --no-create and --no-recursion so they do not pile up.
772 # Also quote any args containing shell meta-characters.
773 ac_configure_args=
774 ac_sep=
775 for ac_arg
776 do
777 case $ac_arg in
778 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
779 | --no-cr | --no-c) ;;
780 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
781 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
782 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
783 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
784 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
785 ac_sep=" " ;;
786 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
787 ac_sep=" " ;;
788 esac
789 # Get rid of the leading space.
790 done
791
792 # When interrupted or exit'd, cleanup temporary files, and complete
793 # config.log. We remove comments because anyway the quotes in there
794 # would cause problems or look ugly.
795 trap 'exit_status=$?
796 # Save into config.log some information that might help in debugging.
797 echo >&5
798 echo "## ----------------- ##" >&5
799 echo "## Cache variables. ##" >&5
800 echo "## ----------------- ##" >&5
801 echo >&5
802 # The following way of writing the cache mishandles newlines in values,
803 {
804 (set) 2>&1 |
805 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
806 *ac_space=\ *)
807 sed -n \
808 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
809 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
810 ;;
811 *)
812 sed -n \
813 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
814 ;;
815 esac;
816 } >&5
817 sed "/^$/d" confdefs.h >conftest.log
818 if test -s conftest.log; then
819 echo >&5
820 echo "## ------------ ##" >&5
821 echo "## confdefs.h. ##" >&5
822 echo "## ------------ ##" >&5
823 echo >&5
824 cat conftest.log >&5
825 fi
826 (echo; echo) >&5
827 test "$ac_signal" != 0 &&
828 echo "$as_me: caught signal $ac_signal" >&5
829 echo "$as_me: exit $exit_status" >&5
830 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
831 exit $exit_status
832 ' 0
833 for ac_signal in 1 2 13 15; do
834 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
835 done
836 ac_signal=0
837
838 # confdefs.h avoids OS command line length limits that DEFS can exceed.
839 rm -rf conftest* confdefs.h
840 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
841 echo >confdefs.h
842
843 # Let the site file select an alternate cache file if it wants to.
844 # Prefer explicitly selected file to automatically selected ones.
845 if test -z "$CONFIG_SITE"; then
846 if test "x$prefix" != xNONE; then
847 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
848 else
849 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
850 fi
851 fi
852 for ac_site_file in $CONFIG_SITE; do
853 if test -r "$ac_site_file"; then
854 { echo "$as_me:854: loading site script $ac_site_file" >&5
855 echo "$as_me: loading site script $ac_site_file" >&6;}
856 cat "$ac_site_file" >&5
857 . "$ac_site_file"
858 fi
859 done
860
861 if test -r "$cache_file"; then
862 # Some versions of bash will fail to source /dev/null (special
863 # files actually), so we avoid doing that.
864 if test -f "$cache_file"; then
865 { echo "$as_me:865: loading cache $cache_file" >&5
866 echo "$as_me: loading cache $cache_file" >&6;}
867 case $cache_file in
868 [\\/]* | ?:[\\/]* ) . $cache_file;;
869 *) . ./$cache_file;;
870 esac
871 fi
872 else
873 { echo "$as_me:873: creating cache $cache_file" >&5
874 echo "$as_me: creating cache $cache_file" >&6;}
875 >$cache_file
876 fi
877
878 # Check that the precious variables saved in the cache have kept the same
879 # value.
880 ac_cache_corrupted=false
881 for ac_var in `(set) 2>&1 |
882 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
883 eval ac_old_set=\$ac_cv_env_${ac_var}_set
884 eval ac_new_set=\$ac_env_${ac_var}_set
885 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
886 eval ac_new_val="\$ac_env_${ac_var}_value"
887 case $ac_old_set,$ac_new_set in
888 set,)
889 { echo "$as_me:889: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
890 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
891 ac_cache_corrupted=: ;;
892 ,set)
893 { echo "$as_me:893: error: \`$ac_var' was not set in the previous run" >&5
894 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
895 ac_cache_corrupted=: ;;
896 ,);;
897 *)
898 if test "x$ac_old_val" != "x$ac_new_val"; then
899 { echo "$as_me:899: error: \`$ac_var' has changed since the previous run:" >&5
900 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
901 { echo "$as_me:901: former value: $ac_old_val" >&5
902 echo "$as_me: former value: $ac_old_val" >&2;}
903 { echo "$as_me:903: current value: $ac_new_val" >&5
904 echo "$as_me: current value: $ac_new_val" >&2;}
905 ac_cache_corrupted=:
906 fi;;
907 esac
908 # Pass precious variables to config.status. It doesn't matter if
909 # we pass some twice (in addition to the command line arguments).
910 if test "$ac_new_set" = set; then
911 case $ac_new_val in
912 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
913 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
914 ac_configure_args="$ac_configure_args '$ac_arg'"
915 ;;
916 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
917 ;;
918 esac
919 fi
920 done
921 if $ac_cache_corrupted; then
922 { echo "$as_me:922: error: changes in the environment can compromise the build" >&5
923 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
924 { { echo "$as_me:924: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
925 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
926 { (exit 1); exit 1; }; }
927 fi
928
929 ac_ext=c
930 ac_cpp='$CPP $CPPFLAGS'
931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
934 ac_main_return=return
935
936 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
937 *c*,-n*) ECHO_N= ECHO_C='
938 ' ECHO_T=' ' ;;
939 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
940 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
941 esac
942 echo "#! $SHELL" >conftest.sh
943 echo "exit 0" >>conftest.sh
944 chmod +x conftest.sh
945 if { (echo "$as_me:945: PATH=\".;.\"; conftest.sh") >&5
946 (PATH=".;."; conftest.sh) 2>&5
947 ac_status=$?
948 echo "$as_me:948: \$? = $ac_status" >&5
949 (exit $ac_status); }; then
950 ac_path_separator=';'
951 else
952 ac_path_separator=:
953 fi
954 PATH_SEPARATOR="$ac_path_separator"
955 rm -f conftest.sh
956
957 ac_config_headers="$ac_config_headers config.h:config_h.in"
958
959 ac_aux_dir=
960 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
961 if test -f $ac_dir/install-sh; then
962 ac_aux_dir=$ac_dir
963 ac_install_sh="$ac_aux_dir/install-sh -c"
964 break
965 elif test -f $ac_dir/install.sh; then
966 ac_aux_dir=$ac_dir
967 ac_install_sh="$ac_aux_dir/install.sh -c"
968 break
969 elif test -f $ac_dir/shtool; then
970 ac_aux_dir=$ac_dir
971 ac_install_sh="$ac_aux_dir/shtool install -c"
972 break
973 fi
974 done
975 if test -z "$ac_aux_dir"; then
976 { { echo "$as_me:976: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
977 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
978 { (exit 1); exit 1; }; }
979 fi
980 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
981 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
982 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
983
984 # Make sure we can run config.sub.
985 $ac_config_sub sun4 >/dev/null 2>&1 ||
986 { { echo "$as_me:986: error: cannot run $ac_config_sub" >&5
987 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
988 { (exit 1); exit 1; }; }
989
990 echo "$as_me:990: checking build system type" >&5
991 echo $ECHO_N "checking build system type... $ECHO_C" >&6
992 if test "${ac_cv_build+set}" = set; then
993 echo $ECHO_N "(cached) $ECHO_C" >&6
994 else
995 ac_cv_build_alias=$build_alias
996 test -z "$ac_cv_build_alias" &&
997 ac_cv_build_alias=`$ac_config_guess`
998 test -z "$ac_cv_build_alias" &&
999 { { echo "$as_me:999: error: cannot guess build type; you must specify one" >&5
1000 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1001 { (exit 1); exit 1; }; }
1002 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1003 { { echo "$as_me:1003: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1004 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1005 { (exit 1); exit 1; }; }
1006
1007 fi
1008 echo "$as_me:1008: result: $ac_cv_build" >&5
1009 echo "${ECHO_T}$ac_cv_build" >&6
1010 build=$ac_cv_build
1011 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1012 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1013 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1014
1015 echo "$as_me:1015: checking host system type" >&5
1016 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1017 if test "${ac_cv_host+set}" = set; then
1018 echo $ECHO_N "(cached) $ECHO_C" >&6
1019 else
1020 ac_cv_host_alias=$host_alias
1021 test -z "$ac_cv_host_alias" &&
1022 ac_cv_host_alias=$ac_cv_build_alias
1023 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1024 { { echo "$as_me:1024: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1025 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1026 { (exit 1); exit 1; }; }
1027
1028 fi
1029 echo "$as_me:1029: result: $ac_cv_host" >&5
1030 echo "${ECHO_T}$ac_cv_host" >&6
1031 host=$ac_cv_host
1032 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1033 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1034 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1035
1036 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1037 echo "$as_me:1037: checking target system type" >&5
1038 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1039 if test "${ac_cv_target+set}" = set; then
1040 echo $ECHO_N "(cached) $ECHO_C" >&6
1041 else
1042 ac_cv_target_alias=$target_alias
1043 test "x$ac_cv_target_alias" = "x" &&
1044 ac_cv_target_alias=$ac_cv_host_alias
1045 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1046 { { echo "$as_me:1046: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1047 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1048 { (exit 1); exit 1; }; }
1049
1050 fi
1051 echo "$as_me:1051: result: $ac_cv_target" >&5
1052 echo "${ECHO_T}$ac_cv_target" >&6
1053 target=$ac_cv_target
1054 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1055 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1056 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1057
1058 # The aliases save the names the user supplied, while $host etc.
1059 # will get canonicalized.
1060 test -n "$target_alias" &&
1061 test "$program_prefix$program_suffix$program_transform_name" = \
1062 NONENONEs,x,x, &&
1063 program_prefix=${target_alias}-
1064 system_name="$host_os"
1065 else
1066 system_name="`(uname -s -r) 2>/dev/null`"
1067 if test -z "$system_name" ; then
1068 system_name="`(hostname) 2>/dev/null`"
1069 fi
1070 fi
1071 test -n "$system_name" &&
1072 cat >>confdefs.h <<EOF
1073 #define SYSTEM_NAME "$system_name"
1074 EOF
1075
1076 if test "${cf_cv_system_name+set}" = set; then
1077 echo $ECHO_N "(cached) $ECHO_C" >&6
1078 else
1079 cf_cv_system_name="$system_name"
1080 fi
1081
1082 test -z "$system_name" && system_name="$cf_cv_system_name"
1083 test -n "$cf_cv_system_name" && echo "$as_me:1083: result: Configuring for $cf_cv_system_name" >&5
1084 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1085
1086 if test ".$system_name" != ".$cf_cv_system_name" ; then
1087 echo "$as_me:1087: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1088 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1089 { { echo "$as_me:1089: error: \"Please remove config.cache and try again.\"" >&5
1090 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1091 { (exit 1); exit 1; }; }
1092 fi
1093
1094 test "$program_prefix" != NONE &&
1095 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1096 # Use a double $ so make ignores it.
1097 test "$program_suffix" != NONE &&
1098 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1099 # Double any \ or $. echo might interpret backslashes.
1100 # By default was `s,x,x', remove it if useless.
1101 cat <<\_ACEOF >conftest.sed
1102 s/[\\$]/&&/g;s/;s,x,x,$//
1103 _ACEOF
1104 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1105 rm conftest.sed
1106
1107 ac_ext=c
1108 ac_cpp='$CPP $CPPFLAGS'
1109 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1110 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1111 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1112 ac_main_return=return
1113 if test -n "$ac_tool_prefix"; then
1114 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1115 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1116 echo "$as_me:1116: checking for $ac_word" >&5
1117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1118 if test "${ac_cv_prog_CC+set}" = set; then
1119 echo $ECHO_N "(cached) $ECHO_C" >&6
1120 else
1121 if test -n "$CC"; then
1122 ac_cv_prog_CC="$CC" # Let the user override the test.
1123 else
1124 ac_save_IFS=$IFS; IFS=$ac_path_separator
1125 ac_dummy="$PATH"
1126 for ac_dir in $ac_dummy; do
1127 IFS=$ac_save_IFS
1128 test -z "$ac_dir" && ac_dir=.
1129 $as_executable_p "$ac_dir/$ac_word" || continue
1130 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1131 echo "$as_me:1131: found $ac_dir/$ac_word" >&5
1132 break
1133 done
1134
1135 fi
1136 fi
1137 CC=$ac_cv_prog_CC
1138 if test -n "$CC"; then
1139 echo "$as_me:1139: result: $CC" >&5
1140 echo "${ECHO_T}$CC" >&6
1141 else
1142 echo "$as_me:1142: result: no" >&5
1143 echo "${ECHO_T}no" >&6
1144 fi
1145
1146 fi
1147 if test -z "$ac_cv_prog_CC"; then
1148 ac_ct_CC=$CC
1149 # Extract the first word of "gcc", so it can be a program name with args.
1150 set dummy gcc; ac_word=$2
1151 echo "$as_me:1151: checking for $ac_word" >&5
1152 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1153 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1154 echo $ECHO_N "(cached) $ECHO_C" >&6
1155 else
1156 if test -n "$ac_ct_CC"; then
1157 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1158 else
1159 ac_save_IFS=$IFS; IFS=$ac_path_separator
1160 ac_dummy="$PATH"
1161 for ac_dir in $ac_dummy; do
1162 IFS=$ac_save_IFS
1163 test -z "$ac_dir" && ac_dir=.
1164 $as_executable_p "$ac_dir/$ac_word" || continue
1165 ac_cv_prog_ac_ct_CC="gcc"
1166 echo "$as_me:1166: found $ac_dir/$ac_word" >&5
1167 break
1168 done
1169
1170 fi
1171 fi
1172 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1173 if test -n "$ac_ct_CC"; then
1174 echo "$as_me:1174: result: $ac_ct_CC" >&5
1175 echo "${ECHO_T}$ac_ct_CC" >&6
1176 else
1177 echo "$as_me:1177: result: no" >&5
1178 echo "${ECHO_T}no" >&6
1179 fi
1180
1181 CC=$ac_ct_CC
1182 else
1183 CC="$ac_cv_prog_CC"
1184 fi
1185
1186 if test -z "$CC"; then
1187 if test -n "$ac_tool_prefix"; then
1188 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1189 set dummy ${ac_tool_prefix}cc; ac_word=$2
1190 echo "$as_me:1190: checking for $ac_word" >&5
1191 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1192 if test "${ac_cv_prog_CC+set}" = set; then
1193 echo $ECHO_N "(cached) $ECHO_C" >&6
1194 else
1195 if test -n "$CC"; then
1196 ac_cv_prog_CC="$CC" # Let the user override the test.
1197 else
1198 ac_save_IFS=$IFS; IFS=$ac_path_separator
1199 ac_dummy="$PATH"
1200 for ac_dir in $ac_dummy; do
1201 IFS=$ac_save_IFS
1202 test -z "$ac_dir" && ac_dir=.
1203 $as_executable_p "$ac_dir/$ac_word" || continue
1204 ac_cv_prog_CC="${ac_tool_prefix}cc"
1205 echo "$as_me:1205: found $ac_dir/$ac_word" >&5
1206 break
1207 done
1208
1209 fi
1210 fi
1211 CC=$ac_cv_prog_CC
1212 if test -n "$CC"; then
1213 echo "$as_me:1213: result: $CC" >&5
1214 echo "${ECHO_T}$CC" >&6
1215 else
1216 echo "$as_me:1216: result: no" >&5
1217 echo "${ECHO_T}no" >&6
1218 fi
1219
1220 fi
1221 if test -z "$ac_cv_prog_CC"; then
1222 ac_ct_CC=$CC
1223 # Extract the first word of "cc", so it can be a program name with args.
1224 set dummy cc; ac_word=$2
1225 echo "$as_me:1225: checking for $ac_word" >&5
1226 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1227 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1228 echo $ECHO_N "(cached) $ECHO_C" >&6
1229 else
1230 if test -n "$ac_ct_CC"; then
1231 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1232 else
1233 ac_save_IFS=$IFS; IFS=$ac_path_separator
1234 ac_dummy="$PATH"
1235 for ac_dir in $ac_dummy; do
1236 IFS=$ac_save_IFS
1237 test -z "$ac_dir" && ac_dir=.
1238 $as_executable_p "$ac_dir/$ac_word" || continue
1239 ac_cv_prog_ac_ct_CC="cc"
1240 echo "$as_me:1240: found $ac_dir/$ac_word" >&5
1241 break
1242 done
1243
1244 fi
1245 fi
1246 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1247 if test -n "$ac_ct_CC"; then
1248 echo "$as_me:1248: result: $ac_ct_CC" >&5
1249 echo "${ECHO_T}$ac_ct_CC" >&6
1250 else
1251 echo "$as_me:1251: result: no" >&5
1252 echo "${ECHO_T}no" >&6
1253 fi
1254
1255 CC=$ac_ct_CC
1256 else
1257 CC="$ac_cv_prog_CC"
1258 fi
1259
1260 fi
1261 if test -z "$CC"; then
1262 # Extract the first word of "cc", so it can be a program name with args.
1263 set dummy cc; ac_word=$2
1264 echo "$as_me:1264: checking for $ac_word" >&5
1265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1266 if test "${ac_cv_prog_CC+set}" = set; then
1267 echo $ECHO_N "(cached) $ECHO_C" >&6
1268 else
1269 if test -n "$CC"; then
1270 ac_cv_prog_CC="$CC" # Let the user override the test.
1271 else
1272 ac_prog_rejected=no
1273 ac_save_IFS=$IFS; IFS=$ac_path_separator
1274 ac_dummy="$PATH"
1275 for ac_dir in $ac_dummy; do
1276 IFS=$ac_save_IFS
1277 test -z "$ac_dir" && ac_dir=.
1278 $as_executable_p "$ac_dir/$ac_word" || continue
1279 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1280 ac_prog_rejected=yes
1281 continue
1282 fi
1283 ac_cv_prog_CC="cc"
1284 echo "$as_me:1284: found $ac_dir/$ac_word" >&5
1285 break
1286 done
1287
1288 if test $ac_prog_rejected = yes; then
1289 # We found a bogon in the path, so make sure we never use it.
1290 set dummy $ac_cv_prog_CC
1291 shift
1292 if test $# != 0; then
1293 # We chose a different compiler from the bogus one.
1294 # However, it has the same basename, so the bogon will be chosen
1295 # first if we set CC to just the basename; use the full file name.
1296 shift
1297 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1298 shift
1299 ac_cv_prog_CC="$@"
1300 fi
1301 fi
1302 fi
1303 fi
1304 CC=$ac_cv_prog_CC
1305 if test -n "$CC"; then
1306 echo "$as_me:1306: result: $CC" >&5
1307 echo "${ECHO_T}$CC" >&6
1308 else
1309 echo "$as_me:1309: result: no" >&5
1310 echo "${ECHO_T}no" >&6
1311 fi
1312
1313 fi
1314 if test -z "$CC"; then
1315 if test -n "$ac_tool_prefix"; then
1316 for ac_prog in cl
1317 do
1318 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1319 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1320 echo "$as_me:1320: checking for $ac_word" >&5
1321 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1322 if test "${ac_cv_prog_CC+set}" = set; then
1323 echo $ECHO_N "(cached) $ECHO_C" >&6
1324 else
1325 if test -n "$CC"; then
1326 ac_cv_prog_CC="$CC" # Let the user override the test.
1327 else
1328 ac_save_IFS=$IFS; IFS=$ac_path_separator
1329 ac_dummy="$PATH"
1330 for ac_dir in $ac_dummy; do
1331 IFS=$ac_save_IFS
1332 test -z "$ac_dir" && ac_dir=.
1333 $as_executable_p "$ac_dir/$ac_word" || continue
1334 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1335 echo "$as_me:1335: found $ac_dir/$ac_word" >&5
1336 break
1337 done
1338
1339 fi
1340 fi
1341 CC=$ac_cv_prog_CC
1342 if test -n "$CC"; then
1343 echo "$as_me:1343: result: $CC" >&5
1344 echo "${ECHO_T}$CC" >&6
1345 else
1346 echo "$as_me:1346: result: no" >&5
1347 echo "${ECHO_T}no" >&6
1348 fi
1349
1350 test -n "$CC" && break
1351 done
1352 fi
1353 if test -z "$CC"; then
1354 ac_ct_CC=$CC
1355 for ac_prog in cl
1356 do
1357 # Extract the first word of "$ac_prog", so it can be a program name with args.
1358 set dummy $ac_prog; ac_word=$2
1359 echo "$as_me:1359: checking for $ac_word" >&5
1360 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1361 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1362 echo $ECHO_N "(cached) $ECHO_C" >&6
1363 else
1364 if test -n "$ac_ct_CC"; then
1365 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1366 else
1367 ac_save_IFS=$IFS; IFS=$ac_path_separator
1368 ac_dummy="$PATH"
1369 for ac_dir in $ac_dummy; do
1370 IFS=$ac_save_IFS
1371 test -z "$ac_dir" && ac_dir=.
1372 $as_executable_p "$ac_dir/$ac_word" || continue
1373 ac_cv_prog_ac_ct_CC="$ac_prog"
1374 echo "$as_me:1374: found $ac_dir/$ac_word" >&5
1375 break
1376 done
1377
1378 fi
1379 fi
1380 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1381 if test -n "$ac_ct_CC"; then
1382 echo "$as_me:1382: result: $ac_ct_CC" >&5
1383 echo "${ECHO_T}$ac_ct_CC" >&6
1384 else
1385 echo "$as_me:1385: result: no" >&5
1386 echo "${ECHO_T}no" >&6
1387 fi
1388
1389 test -n "$ac_ct_CC" && break
1390 done
1391
1392 CC=$ac_ct_CC
1393 fi
1394
1395 fi
1396
1397 test -z "$CC" && { { echo "$as_me:1397: error: no acceptable cc found in \$PATH" >&5
1398 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1399 { (exit 1); exit 1; }; }
1400
1401 # Provide some information about the compiler.
1402 echo "$as_me:1402:" \
1403 "checking for C compiler version" >&5
1404 ac_compiler=`set X $ac_compile; echo $2`
1405 { (eval echo "$as_me:1405: \"$ac_compiler --version </dev/null >&5\"") >&5
1406 (eval $ac_compiler --version </dev/null >&5) 2>&5
1407 ac_status=$?
1408 echo "$as_me:1408: \$? = $ac_status" >&5
1409 (exit $ac_status); }
1410 { (eval echo "$as_me:1410: \"$ac_compiler -v </dev/null >&5\"") >&5
1411 (eval $ac_compiler -v </dev/null >&5) 2>&5
1412 ac_status=$?
1413 echo "$as_me:1413: \$? = $ac_status" >&5
1414 (exit $ac_status); }
1415 { (eval echo "$as_me:1415: \"$ac_compiler -V </dev/null >&5\"") >&5
1416 (eval $ac_compiler -V </dev/null >&5) 2>&5
1417 ac_status=$?
1418 echo "$as_me:1418: \$? = $ac_status" >&5
1419 (exit $ac_status); }
1420
1421 cat >conftest.$ac_ext <<_ACEOF
1422 #line 1422 "configure"
1423 #include "confdefs.h"
1424
1425 int
1426 main ()
1427 {
1428
1429 ;
1430 return 0;
1431 }
1432 _ACEOF
1433 ac_clean_files_save=$ac_clean_files
1434 ac_clean_files="$ac_clean_files a.out a.exe"
1435 # Try to create an executable without -o first, disregard a.out.
1436 # It will help us diagnose broken compilers, and finding out an intuition
1437 # of exeext.
1438 echo "$as_me:1438: checking for C compiler default output" >&5
1439 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1440 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1441 if { (eval echo "$as_me:1441: \"$ac_link_default\"") >&5
1442 (eval $ac_link_default) 2>&5
1443 ac_status=$?
1444 echo "$as_me:1444: \$? = $ac_status" >&5
1445 (exit $ac_status); }; then
1446 # Find the output, starting from the most likely. This scheme is
1447 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1448 # resort.
1449 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1450 ls a.out conftest 2>/dev/null;
1451 ls a.* conftest.* 2>/dev/null`; do
1452 case $ac_file in
1453 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1454 a.out ) # We found the default executable, but exeext='' is most
1455 # certainly right.
1456 break;;
1457 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1458 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1459 export ac_cv_exeext
1460 break;;
1461 * ) break;;
1462 esac
1463 done
1464 else
1465 echo "$as_me: failed program was:" >&5
1466 cat conftest.$ac_ext >&5
1467 { { echo "$as_me:1467: error: C compiler cannot create executables" >&5
1468 echo "$as_me: error: C compiler cannot create executables" >&2;}
1469 { (exit 77); exit 77; }; }
1470 fi
1471
1472 ac_exeext=$ac_cv_exeext
1473 echo "$as_me:1473: result: $ac_file" >&5
1474 echo "${ECHO_T}$ac_file" >&6
1475
1476 # Check the compiler produces executables we can run. If not, either
1477 # the compiler is broken, or we cross compile.
1478 echo "$as_me:1478: checking whether the C compiler works" >&5
1479 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1480 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1481 # If not cross compiling, check that we can run a simple program.
1482 if test "$cross_compiling" != yes; then
1483 if { ac_try='./$ac_file'
1484 { (eval echo "$as_me:1484: \"$ac_try\"") >&5
1485 (eval $ac_try) 2>&5
1486 ac_status=$?
1487 echo "$as_me:1487: \$? = $ac_status" >&5
1488 (exit $ac_status); }; }; then
1489 cross_compiling=no
1490 else
1491 if test "$cross_compiling" = maybe; then
1492 cross_compiling=yes
1493 else
1494 { { echo "$as_me:1494: error: cannot run C compiled programs.
1495 If you meant to cross compile, use \`--host'." >&5
1496 echo "$as_me: error: cannot run C compiled programs.
1497 If you meant to cross compile, use \`--host'." >&2;}
1498 { (exit 1); exit 1; }; }
1499 fi
1500 fi
1501 fi
1502 echo "$as_me:1502: result: yes" >&5
1503 echo "${ECHO_T}yes" >&6
1504
1505 rm -f a.out a.exe conftest$ac_cv_exeext
1506 ac_clean_files=$ac_clean_files_save
1507 # Check the compiler produces executables we can run. If not, either
1508 # the compiler is broken, or we cross compile.
1509 echo "$as_me:1509: checking whether we are cross compiling" >&5
1510 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1511 echo "$as_me:1511: result: $cross_compiling" >&5
1512 echo "${ECHO_T}$cross_compiling" >&6
1513
1514 echo "$as_me:1514: checking for executable suffix" >&5
1515 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1516 if { (eval echo "$as_me:1516: \"$ac_link\"") >&5
1517 (eval $ac_link) 2>&5
1518 ac_status=$?
1519 echo "$as_me:1519: \$? = $ac_status" >&5
1520 (exit $ac_status); }; then
1521 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1522 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1523 # work properly (i.e., refer to `conftest.exe'), while it won't with
1524 # `rm'.
1525 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1526 case $ac_file in
1527 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1528 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1529 export ac_cv_exeext
1530 break;;
1531 * ) break;;
1532 esac
1533 done
1534 else
1535 { { echo "$as_me:1535: error: cannot compute EXEEXT: cannot compile and link" >&5
1536 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1537 { (exit 1); exit 1; }; }
1538 fi
1539
1540 rm -f conftest$ac_cv_exeext
1541 echo "$as_me:1541: result: $ac_cv_exeext" >&5
1542 echo "${ECHO_T}$ac_cv_exeext" >&6
1543
1544 rm -f conftest.$ac_ext
1545 EXEEXT=$ac_cv_exeext
1546 ac_exeext=$EXEEXT
1547 echo "$as_me:1547: checking for object suffix" >&5
1548 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1549 if test "${ac_cv_objext+set}" = set; then
1550 echo $ECHO_N "(cached) $ECHO_C" >&6
1551 else
1552 cat >conftest.$ac_ext <<_ACEOF
1553 #line 1553 "configure"
1554 #include "confdefs.h"
1555
1556 int
1557 main ()
1558 {
1559
1560 ;
1561 return 0;
1562 }
1563 _ACEOF
1564 rm -f conftest.o conftest.obj
1565 if { (eval echo "$as_me:1565: \"$ac_compile\"") >&5
1566 (eval $ac_compile) 2>&5
1567 ac_status=$?
1568 echo "$as_me:1568: \$? = $ac_status" >&5
1569 (exit $ac_status); }; then
1570 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1571 case $ac_file in
1572 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1573 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1574 break;;
1575 esac
1576 done
1577 else
1578 echo "$as_me: failed program was:" >&5
1579 cat conftest.$ac_ext >&5
1580 { { echo "$as_me:1580: error: cannot compute OBJEXT: cannot compile" >&5
1581 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1582 { (exit 1); exit 1; }; }
1583 fi
1584
1585 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1586 fi
1587 echo "$as_me:1587: result: $ac_cv_objext" >&5
1588 echo "${ECHO_T}$ac_cv_objext" >&6
1589 OBJEXT=$ac_cv_objext
1590 ac_objext=$OBJEXT
1591 echo "$as_me:1591: checking whether we are using the GNU C compiler" >&5
1592 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1593 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1594 echo $ECHO_N "(cached) $ECHO_C" >&6
1595 else
1596 cat >conftest.$ac_ext <<_ACEOF
1597 #line 1597 "configure"
1598 #include "confdefs.h"
1599
1600 int
1601 main ()
1602 {
1603 #ifndef __GNUC__
1604 choke me
1605 #endif
1606
1607 ;
1608 return 0;
1609 }
1610 _ACEOF
1611 rm -f conftest.$ac_objext
1612 if { (eval echo "$as_me:1612: \"$ac_compile\"") >&5
1613 (eval $ac_compile) 2>&5
1614 ac_status=$?
1615 echo "$as_me:1615: \$? = $ac_status" >&5
1616 (exit $ac_status); } &&
1617 { ac_try='test -s conftest.$ac_objext'
1618 { (eval echo "$as_me:1618: \"$ac_try\"") >&5
1619 (eval $ac_try) 2>&5
1620 ac_status=$?
1621 echo "$as_me:1621: \$? = $ac_status" >&5
1622 (exit $ac_status); }; }; then
1623 ac_compiler_gnu=yes
1624 else
1625 echo "$as_me: failed program was:" >&5
1626 cat conftest.$ac_ext >&5
1627 ac_compiler_gnu=no
1628 fi
1629 rm -f conftest.$ac_objext conftest.$ac_ext
1630 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1631
1632 fi
1633 echo "$as_me:1633: result: $ac_cv_c_compiler_gnu" >&5
1634 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1635 GCC=`test $ac_compiler_gnu = yes && echo yes`
1636 ac_test_CFLAGS=${CFLAGS+set}
1637 ac_save_CFLAGS=$CFLAGS
1638 CFLAGS="-g"
1639 echo "$as_me:1639: checking whether $CC accepts -g" >&5
1640 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1641 if test "${ac_cv_prog_cc_g+set}" = set; then
1642 echo $ECHO_N "(cached) $ECHO_C" >&6
1643 else
1644 cat >conftest.$ac_ext <<_ACEOF
1645 #line 1645 "configure"
1646 #include "confdefs.h"
1647
1648 int
1649 main ()
1650 {
1651
1652 ;
1653 return 0;
1654 }
1655 _ACEOF
1656 rm -f conftest.$ac_objext
1657 if { (eval echo "$as_me:1657: \"$ac_compile\"") >&5
1658 (eval $ac_compile) 2>&5
1659 ac_status=$?
1660 echo "$as_me:1660: \$? = $ac_status" >&5
1661 (exit $ac_status); } &&
1662 { ac_try='test -s conftest.$ac_objext'
1663 { (eval echo "$as_me:1663: \"$ac_try\"") >&5
1664 (eval $ac_try) 2>&5
1665 ac_status=$?
1666 echo "$as_me:1666: \$? = $ac_status" >&5
1667 (exit $ac_status); }; }; then
1668 ac_cv_prog_cc_g=yes
1669 else
1670 echo "$as_me: failed program was:" >&5
1671 cat conftest.$ac_ext >&5
1672 ac_cv_prog_cc_g=no
1673 fi
1674 rm -f conftest.$ac_objext conftest.$ac_ext
1675 fi
1676 echo "$as_me:1676: result: $ac_cv_prog_cc_g" >&5
1677 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1678 if test "$ac_test_CFLAGS" = set; then
1679 CFLAGS=$ac_save_CFLAGS
1680 elif test $ac_cv_prog_cc_g = yes; then
1681 if test "$GCC" = yes; then
1682 CFLAGS="-g -O2"
1683 else
1684 CFLAGS="-g"
1685 fi
1686 else
1687 if test "$GCC" = yes; then
1688 CFLAGS="-O2"
1689 else
1690 CFLAGS=
1691 fi
1692 fi
1693 # Some people use a C++ compiler to compile C. Since we use `exit',
1694 # in C++ we need to declare it. In case someone uses the same compiler
1695 # for both compiling C and C++ we need to have the C++ compiler decide
1696 # the declaration of exit, since it's the most demanding environment.
1697 cat >conftest.$ac_ext <<_ACEOF
1698 #ifndef __cplusplus
1699 choke me
1700 #endif
1701 _ACEOF
1702 rm -f conftest.$ac_objext
1703 if { (eval echo "$as_me:1703: \"$ac_compile\"") >&5
1704 (eval $ac_compile) 2>&5
1705 ac_status=$?
1706 echo "$as_me:1706: \$? = $ac_status" >&5
1707 (exit $ac_status); } &&
1708 { ac_try='test -s conftest.$ac_objext'
1709 { (eval echo "$as_me:1709: \"$ac_try\"") >&5
1710 (eval $ac_try) 2>&5
1711 ac_status=$?
1712 echo "$as_me:1712: \$? = $ac_status" >&5
1713 (exit $ac_status); }; }; then
1714 for ac_declaration in \
1715 ''\
1716 '#include <stdlib.h>' \
1717 'extern "C" void std::exit (int) throw (); using std::exit;' \
1718 'extern "C" void std::exit (int); using std::exit;' \
1719 'extern "C" void exit (int) throw ();' \
1720 'extern "C" void exit (int);' \
1721 'void exit (int);'
1722 do
1723 cat >conftest.$ac_ext <<_ACEOF
1724 #line 1724 "configure"
1725 #include "confdefs.h"
1726 #include <stdlib.h>
1727 $ac_declaration
1728 int
1729 main ()
1730 {
1731 exit (42);
1732 ;
1733 return 0;
1734 }
1735 _ACEOF
1736 rm -f conftest.$ac_objext
1737 if { (eval echo "$as_me:1737: \"$ac_compile\"") >&5
1738 (eval $ac_compile) 2>&5
1739 ac_status=$?
1740 echo "$as_me:1740: \$? = $ac_status" >&5
1741 (exit $ac_status); } &&
1742 { ac_try='test -s conftest.$ac_objext'
1743 { (eval echo "$as_me:1743: \"$ac_try\"") >&5
1744 (eval $ac_try) 2>&5
1745 ac_status=$?
1746 echo "$as_me:1746: \$? = $ac_status" >&5
1747 (exit $ac_status); }; }; then
1748 :
1749 else
1750 echo "$as_me: failed program was:" >&5
1751 cat conftest.$ac_ext >&5
1752 continue
1753 fi
1754 rm -f conftest.$ac_objext conftest.$ac_ext
1755 cat >conftest.$ac_ext <<_ACEOF
1756 #line 1756 "configure"
1757 #include "confdefs.h"
1758 $ac_declaration
1759 int
1760 main ()
1761 {
1762 exit (42);
1763 ;
1764 return 0;
1765 }
1766 _ACEOF
1767 rm -f conftest.$ac_objext
1768 if { (eval echo "$as_me:1768: \"$ac_compile\"") >&5
1769 (eval $ac_compile) 2>&5
1770 ac_status=$?
1771 echo "$as_me:1771: \$? = $ac_status" >&5
1772 (exit $ac_status); } &&
1773 { ac_try='test -s conftest.$ac_objext'
1774 { (eval echo "$as_me:1774: \"$ac_try\"") >&5
1775 (eval $ac_try) 2>&5
1776 ac_status=$?
1777 echo "$as_me:1777: \$? = $ac_status" >&5
1778 (exit $ac_status); }; }; then
1779 break
1780 else
1781 echo "$as_me: failed program was:" >&5
1782 cat conftest.$ac_ext >&5
1783 fi
1784 rm -f conftest.$ac_objext conftest.$ac_ext
1785 done
1786 rm -rf conftest*
1787 if test -n "$ac_declaration"; then
1788 echo '#ifdef __cplusplus' >>confdefs.h
1789 echo $ac_declaration >>confdefs.h
1790 echo '#endif' >>confdefs.h
1791 fi
1792
1793 else
1794 echo "$as_me: failed program was:" >&5
1795 cat conftest.$ac_ext >&5
1796 fi
1797 rm -f conftest.$ac_objext conftest.$ac_ext
1798 ac_ext=c
1799 ac_cpp='$CPP $CPPFLAGS'
1800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1803 ac_main_return=return
1804
1805 GCC_VERSION=none
1806 if test "$GCC" = yes ; then
1807 echo "$as_me:1807: checking version of $CC" >&5
1808 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
1809 GCC_VERSION="`${CC} --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(GCC[^)]*) //' -e 's/^.*(Debian[^)]*) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
1810 test -z "$GCC_VERSION" && GCC_VERSION=unknown
1811 echo "$as_me:1811: result: $GCC_VERSION" >&5
1812 echo "${ECHO_T}$GCC_VERSION" >&6
1813 fi
1814
1815 echo "$as_me:1815: checking for $CC option to accept ANSI C" >&5
1816 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1817 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1818 echo $ECHO_N "(cached) $ECHO_C" >&6
1819 else
1820 ac_cv_prog_cc_stdc=no
1821 ac_save_CC=$CC
1822 cat >conftest.$ac_ext <<_ACEOF
1823 #line 1823 "configure"
1824 #include "confdefs.h"
1825 #include <stdarg.h>
1826 #include <stdio.h>
1827 #include <sys/types.h>
1828 #include <sys/stat.h>
1829 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1830 struct buf { int x; };
1831 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1832 static char *e (p, i)
1833 char **p;
1834 int i;
1835 {
1836 return p[i];
1837 }
1838 static char *f (char * (*g) (char **, int), char **p, ...)
1839 {
1840 char *s;
1841 va_list v;
1842 va_start (v,p);
1843 s = g (p, va_arg (v,int));
1844 va_end (v);
1845 return s;
1846 }
1847 int test (int i, double x);
1848 struct s1 {int (*f) (int a);};
1849 struct s2 {int (*f) (double a);};
1850 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1851 int argc;
1852 char **argv;
1853 int
1854 main ()
1855 {
1856 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1857 ;
1858 return 0;
1859 }
1860 _ACEOF
1861 # Don't try gcc -ansi; that turns off useful extensions and
1862 # breaks some systems' header files.
1863 # AIX -qlanglvl=ansi
1864 # Ultrix and OSF/1 -std1
1865 # HP-UX 10.20 and later -Ae
1866 # HP-UX older versions -Aa -D_HPUX_SOURCE
1867 # SVR4 -Xc -D__EXTENSIONS__
1868 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1869 do
1870 CC="$ac_save_CC $ac_arg"
1871 rm -f conftest.$ac_objext
1872 if { (eval echo "$as_me:1872: \"$ac_compile\"") >&5
1873 (eval $ac_compile) 2>&5
1874 ac_status=$?
1875 echo "$as_me:1875: \$? = $ac_status" >&5
1876 (exit $ac_status); } &&
1877 { ac_try='test -s conftest.$ac_objext'
1878 { (eval echo "$as_me:1878: \"$ac_try\"") >&5
1879 (eval $ac_try) 2>&5
1880 ac_status=$?
1881 echo "$as_me:1881: \$? = $ac_status" >&5
1882 (exit $ac_status); }; }; then
1883 ac_cv_prog_cc_stdc=$ac_arg
1884 break
1885 else
1886 echo "$as_me: failed program was:" >&5
1887 cat conftest.$ac_ext >&5
1888 fi
1889 rm -f conftest.$ac_objext
1890 done
1891 rm -f conftest.$ac_ext conftest.$ac_objext
1892 CC=$ac_save_CC
1893
1894 fi
1895
1896 case "x$ac_cv_prog_cc_stdc" in
1897 x|xno)
1898 echo "$as_me:1898: result: none needed" >&5
1899 echo "${ECHO_T}none needed" >&6 ;;
1900 *)
1901 echo "$as_me:1901: result: $ac_cv_prog_cc_stdc" >&5
1902 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
1903 CC="$CC $ac_cv_prog_cc_stdc" ;;
1904 esac
1905
1906 # This should have been defined by AC_PROG_CC
1907 : ${CC:=cc}
1908
1909 echo "$as_me:1909: checking \$CC variable" >&5
1910 echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
1911 case "$CC" in #(vi
1912 *[\ \ ]-[IUD]*)
1913 echo "$as_me:1913: result: broken" >&5
1914 echo "${ECHO_T}broken" >&6
1915 { echo "$as_me:1915: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
1916 echo "$as_me: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
1917 # humor him...
1918 cf_flags=`echo "$CC" | sed -e 's/^[^ ]*[ ]//'`
1919 CC=`echo "$CC" | sed -e 's/[ ].*//'`
1920
1921 cf_fix_cppflags=no
1922 cf_new_cflags=
1923 cf_new_cppflags=
1924 cf_new_extra_cppflags=
1925
1926 for cf_add_cflags in $cf_flags
1927 do
1928 case $cf_fix_cppflags in
1929 no)
1930 case $cf_add_cflags in #(vi
1931 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
1932 case $cf_add_cflags in
1933 -D*)
1934 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
1935
1936 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
1937 && test -z "${cf_tst_cflags}" \
1938 && cf_fix_cppflags=yes
1939
1940 if test $cf_fix_cppflags = yes ; then
1941 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
1942 continue
1943 elif test "${cf_tst_cflags}" = "\"'" ; then
1944 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
1945 continue
1946 fi
1947 ;;
1948 esac
1949 case "$CPPFLAGS" in
1950 *$cf_add_cflags) #(vi
1951 ;;
1952 *) #(vi
1953 case $cf_add_cflags in #(vi
1954 -D*)
1955 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
1956
1957 CPPFLAGS=`echo "$CPPFLAGS" | \
1958 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
1959 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
1960
1961 ;;
1962 esac
1963 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
1964 ;;
1965 esac
1966 ;;
1967 *)
1968 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
1969 ;;
1970 esac
1971 ;;
1972 yes)
1973 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
1974
1975 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
1976
1977 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
1978 && test -z "${cf_tst_cflags}" \
1979 && cf_fix_cppflags=no
1980 ;;
1981 esac
1982 done
1983
1984 if test -n "$cf_new_cflags" ; then
1985
1986 CFLAGS="$CFLAGS $cf_new_cflags"
1987 fi
1988
1989 if test -n "$cf_new_cppflags" ; then
1990
1991 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
1992 fi
1993
1994 if test -n "$cf_new_extra_cppflags" ; then
1995
1996 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
1997 fi
1998
1999 ;;
2000 *)
2001 echo "$as_me:2001: result: ok" >&5
2002 echo "${ECHO_T}ok" >&6
2003 ;;
2004 esac
2005
2006 echo "$as_me:2006: checking whether ${MAKE-make} sets \${MAKE}" >&5
2007 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
2008 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
2009 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2010 echo $ECHO_N "(cached) $ECHO_C" >&6
2011 else
2012 cat >conftest.make <<\EOF
2013 all:
2014 @echo 'ac_maketemp="${MAKE}"'
2015 EOF
2016 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2017 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2018 if test -n "$ac_maketemp"; then
2019 eval ac_cv_prog_make_${ac_make}_set=yes
2020 else
2021 eval ac_cv_prog_make_${ac_make}_set=no
2022 fi
2023 rm -f conftest.make
2024 fi
2025 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2026 echo "$as_me:2026: result: yes" >&5
2027 echo "${ECHO_T}yes" >&6
2028 SET_MAKE=
2029 else
2030 echo "$as_me:2030: result: no" >&5
2031 echo "${ECHO_T}no" >&6
2032 SET_MAKE="MAKE=${MAKE-make}"
2033 fi
2034
2035 # Find a good install program. We prefer a C program (faster),
2036 # so one script is as good as another. But avoid the broken or
2037 # incompatible versions:
2038 # SysV /etc/install, /usr/sbin/install
2039 # SunOS /usr/etc/install
2040 # IRIX /sbin/install
2041 # AIX /bin/install
2042 # AmigaOS /C/install, which installs bootblocks on floppy discs
2043 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2044 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2045 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2046 # ./install, which can be erroneously created by make from ./install.sh.
2047 echo "$as_me:2047: checking for a BSD compatible install" >&5
2048 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
2049 if test -z "$INSTALL"; then
2050 if test "${ac_cv_path_install+set}" = set; then
2051 echo $ECHO_N "(cached) $ECHO_C" >&6
2052 else
2053 ac_save_IFS=$IFS; IFS=$ac_path_separator
2054 for ac_dir in $PATH; do
2055 IFS=$ac_save_IFS
2056 # Account for people who put trailing slashes in PATH elements.
2057 case $ac_dir/ in
2058 / | ./ | .// | /cC/* \
2059 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
2060 | /usr/ucb/* ) ;;
2061 *)
2062 # OSF1 and SCO ODT 3.0 have their own names for install.
2063 # Don't use installbsd from OSF since it installs stuff as root
2064 # by default.
2065 for ac_prog in ginstall scoinst install; do
2066 if $as_executable_p "$ac_dir/$ac_prog"; then
2067 if test $ac_prog = install &&
2068 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2069 # AIX install. It has an incompatible calling convention.
2070 :
2071 elif test $ac_prog = install &&
2072 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2073 # program-specific install script used by HP pwplus--don't use.
2074 :
2075 else
2076 ac_cv_path_install="$ac_dir/$ac_prog -c"
2077 break 2
2078 fi
2079 fi
2080 done
2081 ;;
2082 esac
2083 done
2084
2085 fi
2086 if test "${ac_cv_path_install+set}" = set; then
2087 INSTALL=$ac_cv_path_install
2088 else
2089 # As a last resort, use the slow shell script. We don't cache a
2090 # path for INSTALL within a source directory, because that will
2091 # break other packages using the cache if that directory is
2092 # removed, or if the path is relative.
2093 INSTALL=$ac_install_sh
2094 fi
2095 fi
2096 echo "$as_me:2096: result: $INSTALL" >&5
2097 echo "${ECHO_T}$INSTALL" >&6
2098
2099 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2100 # It thinks the first close brace ends the variable substitution.
2101 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2102
2103 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2104
2105 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2106
2107 echo "$as_me:2107: checking if filesystem supports mixed-case filenames" >&5
2108 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
2109 if test "${cf_cv_mixedcase+set}" = set; then
2110 echo $ECHO_N "(cached) $ECHO_C" >&6
2111 else
2112
2113 if test "$cross_compiling" = yes ; then
2114 case $target_alias in #(vi
2115 *-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-mingw32*|*-uwin*) #(vi
2116 cf_cv_mixedcase=no
2117 ;;
2118 *)
2119 cf_cv_mixedcase=yes
2120 ;;
2121 esac
2122 else
2123 rm -f conftest CONFTEST
2124 echo test >conftest
2125 if test -f CONFTEST ; then
2126 cf_cv_mixedcase=no
2127 else
2128 cf_cv_mixedcase=yes
2129 fi
2130 rm -f conftest CONFTEST
2131 fi
2132
2133 fi
2134 echo "$as_me:2134: result: $cf_cv_mixedcase" >&5
2135 echo "${ECHO_T}$cf_cv_mixedcase" >&6
2136 test "$cf_cv_mixedcase" = yes &&
2137 cat >>confdefs.h <<\EOF
2138 #define MIXEDCASE_FILENAMES 1
2139 EOF
2140
2141 for ac_prog in exctags ctags
2142 do
2143 # Extract the first word of "$ac_prog", so it can be a program name with args.
2144 set dummy $ac_prog; ac_word=$2
2145 echo "$as_me:2145: checking for $ac_word" >&5
2146 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2147 if test "${ac_cv_prog_CTAGS+set}" = set; then
2148 echo $ECHO_N "(cached) $ECHO_C" >&6
2149 else
2150 if test -n "$CTAGS"; then
2151 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
2152 else
2153 ac_save_IFS=$IFS; IFS=$ac_path_separator
2154 ac_dummy="$PATH"
2155 for ac_dir in $ac_dummy; do
2156 IFS=$ac_save_IFS
2157 test -z "$ac_dir" && ac_dir=.
2158 $as_executable_p "$ac_dir/$ac_word" || continue
2159 ac_cv_prog_CTAGS="$ac_prog"
2160 echo "$as_me:2160: found $ac_dir/$ac_word" >&5
2161 break
2162 done
2163
2164 fi
2165 fi
2166 CTAGS=$ac_cv_prog_CTAGS
2167 if test -n "$CTAGS"; then
2168 echo "$as_me:2168: result: $CTAGS" >&5
2169 echo "${ECHO_T}$CTAGS" >&6
2170 else
2171 echo "$as_me:2171: result: no" >&5
2172 echo "${ECHO_T}no" >&6
2173 fi
2174
2175 test -n "$CTAGS" && break
2176 done
2177
2178 for ac_prog in exetags etags
2179 do
2180 # Extract the first word of "$ac_prog", so it can be a program name with args.
2181 set dummy $ac_prog; ac_word=$2
2182 echo "$as_me:2182: checking for $ac_word" >&5
2183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2184 if test "${ac_cv_prog_ETAGS+set}" = set; then
2185 echo $ECHO_N "(cached) $ECHO_C" >&6
2186 else
2187 if test -n "$ETAGS"; then
2188 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
2189 else
2190 ac_save_IFS=$IFS; IFS=$ac_path_separator
2191 ac_dummy="$PATH"
2192 for ac_dir in $ac_dummy; do
2193 IFS=$ac_save_IFS
2194 test -z "$ac_dir" && ac_dir=.
2195 $as_executable_p "$ac_dir/$ac_word" || continue
2196 ac_cv_prog_ETAGS="$ac_prog"
2197 echo "$as_me:2197: found $ac_dir/$ac_word" >&5
2198 break
2199 done
2200
2201 fi
2202 fi
2203 ETAGS=$ac_cv_prog_ETAGS
2204 if test -n "$ETAGS"; then
2205 echo "$as_me:2205: result: $ETAGS" >&5
2206 echo "${ECHO_T}$ETAGS" >&6
2207 else
2208 echo "$as_me:2208: result: no" >&5
2209 echo "${ECHO_T}no" >&6
2210 fi
2211
2212 test -n "$ETAGS" && break
2213 done
2214
2215 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
2216 set dummy ${CTAGS:-ctags}; ac_word=$2
2217 echo "$as_me:2217: checking for $ac_word" >&5
2218 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2219 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
2220 echo $ECHO_N "(cached) $ECHO_C" >&6
2221 else
2222 if test -n "$MAKE_LOWER_TAGS"; then
2223 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
2224 else
2225 ac_save_IFS=$IFS; IFS=$ac_path_separator
2226 ac_dummy="$PATH"
2227 for ac_dir in $ac_dummy; do
2228 IFS=$ac_save_IFS
2229 test -z "$ac_dir" && ac_dir=.
2230 $as_executable_p "$ac_dir/$ac_word" || continue
2231 ac_cv_prog_MAKE_LOWER_TAGS="yes"
2232 echo "$as_me:2232: found $ac_dir/$ac_word" >&5
2233 break
2234 done
2235
2236 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
2237 fi
2238 fi
2239 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
2240 if test -n "$MAKE_LOWER_TAGS"; then
2241 echo "$as_me:2241: result: $MAKE_LOWER_TAGS" >&5
2242 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
2243 else
2244 echo "$as_me:2244: result: no" >&5
2245 echo "${ECHO_T}no" >&6
2246 fi
2247
2248 if test "$cf_cv_mixedcase" = yes ; then
2249 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
2250 set dummy ${ETAGS:-etags}; ac_word=$2
2251 echo "$as_me:2251: checking for $ac_word" >&5
2252 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2253 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
2254 echo $ECHO_N "(cached) $ECHO_C" >&6
2255 else
2256 if test -n "$MAKE_UPPER_TAGS"; then
2257 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
2258 else
2259 ac_save_IFS=$IFS; IFS=$ac_path_separator
2260 ac_dummy="$PATH"
2261 for ac_dir in $ac_dummy; do
2262 IFS=$ac_save_IFS
2263 test -z "$ac_dir" && ac_dir=.
2264 $as_executable_p "$ac_dir/$ac_word" || continue
2265 ac_cv_prog_MAKE_UPPER_TAGS="yes"
2266 echo "$as_me:2266: found $ac_dir/$ac_word" >&5
2267 break
2268 done
2269
2270 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
2271 fi
2272 fi
2273 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
2274 if test -n "$MAKE_UPPER_TAGS"; then
2275 echo "$as_me:2275: result: $MAKE_UPPER_TAGS" >&5
2276 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
2277 else
2278 echo "$as_me:2278: result: no" >&5
2279 echo "${ECHO_T}no" >&6
2280 fi
2281
2282 else
2283 MAKE_UPPER_TAGS=no
2284 fi
2285
2286 if test "$MAKE_UPPER_TAGS" = yes ; then
2287 MAKE_UPPER_TAGS=
2288 else
2289 MAKE_UPPER_TAGS="#"
2290 fi
2291
2292 if test "$MAKE_LOWER_TAGS" = yes ; then
2293 MAKE_LOWER_TAGS=
2294 else
2295 MAKE_LOWER_TAGS="#"
2296 fi
2297
2298 for ac_prog in tdlint lint alint splint lclint
2299 do
2300 # Extract the first word of "$ac_prog", so it can be a program name with args.
2301 set dummy $ac_prog; ac_word=$2
2302 echo "$as_me:2302: checking for $ac_word" >&5
2303 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2304 if test "${ac_cv_prog_LINT+set}" = set; then
2305 echo $ECHO_N "(cached) $ECHO_C" >&6
2306 else
2307 if test -n "$LINT"; then
2308 ac_cv_prog_LINT="$LINT" # Let the user override the test.
2309 else
2310 ac_save_IFS=$IFS; IFS=$ac_path_separator
2311 ac_dummy="$PATH"
2312 for ac_dir in $ac_dummy; do
2313 IFS=$ac_save_IFS
2314 test -z "$ac_dir" && ac_dir=.
2315 $as_executable_p "$ac_dir/$ac_word" || continue
2316 ac_cv_prog_LINT="$ac_prog"
2317 echo "$as_me:2317: found $ac_dir/$ac_word" >&5
2318 break
2319 done
2320
2321 fi
2322 fi
2323 LINT=$ac_cv_prog_LINT
2324 if test -n "$LINT"; then
2325 echo "$as_me:2325: result: $LINT" >&5
2326 echo "${ECHO_T}$LINT" >&6
2327 else
2328 echo "$as_me:2328: result: no" >&5
2329 echo "${ECHO_T}no" >&6
2330 fi
2331
2332 test -n "$LINT" && break
2333 done
2334
2335 cf_XOPEN_SOURCE=500
2336 cf_POSIX_C_SOURCE=199506L
2337 cf_xopen_source=
2338
2339 case $host_os in #(vi
2340 aix[4-7]*) #(vi
2341 cf_xopen_source="-D_ALL_SOURCE"
2342 ;;
2343 cygwin) #(vi
2344 cf_XOPEN_SOURCE=600
2345 ;;
2346 darwin[0-8].*) #(vi
2347 cf_xopen_source="-D_APPLE_C_SOURCE"
2348 ;;
2349 darwin*) #(vi
2350 cf_xopen_source="-D_DARWIN_C_SOURCE"
2351 cf_XOPEN_SOURCE=
2352 ;;
2353 freebsd*|dragonfly*) #(vi
2354 # 5.x headers associate
2355 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
2356 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
2357 cf_POSIX_C_SOURCE=200112L
2358 cf_XOPEN_SOURCE=600
2359 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
2360 ;;
2361 hpux11*) #(vi
2362 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
2363 ;;
2364 hpux*) #(vi
2365 cf_xopen_source="-D_HPUX_SOURCE"
2366 ;;
2367 irix[56].*) #(vi
2368 cf_xopen_source="-D_SGI_SOURCE"
2369 cf_XOPEN_SOURCE=
2370 ;;
2371 linux*|gnu*|mint*|k*bsd*-gnu) #(vi
2372
2373 echo "$as_me:2373: checking if we must define _GNU_SOURCE" >&5
2374 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
2375 if test "${cf_cv_gnu_source+set}" = set; then
2376 echo $ECHO_N "(cached) $ECHO_C" >&6
2377 else
2378
2379 cat >conftest.$ac_ext <<_ACEOF
2380 #line 2380 "configure"
2381 #include "confdefs.h"
2382 #include <sys/types.h>
2383 int
2384 main ()
2385 {
2386
2387 #ifndef _XOPEN_SOURCE
2388 make an error
2389 #endif
2390 ;
2391 return 0;
2392 }
2393 _ACEOF
2394 rm -f conftest.$ac_objext
2395 if { (eval echo "$as_me:2395: \"$ac_compile\"") >&5
2396 (eval $ac_compile) 2>&5
2397 ac_status=$?
2398 echo "$as_me:2398: \$? = $ac_status" >&5
2399 (exit $ac_status); } &&
2400 { ac_try='test -s conftest.$ac_objext'
2401 { (eval echo "$as_me:2401: \"$ac_try\"") >&5
2402 (eval $ac_try) 2>&5
2403 ac_status=$?
2404 echo "$as_me:2404: \$? = $ac_status" >&5
2405 (exit $ac_status); }; }; then
2406 cf_cv_gnu_source=no
2407 else
2408 echo "$as_me: failed program was:" >&5
2409 cat conftest.$ac_ext >&5
2410 cf_save="$CPPFLAGS"
2411 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
2412 cat >conftest.$ac_ext <<_ACEOF
2413 #line 2413 "configure"
2414 #include "confdefs.h"
2415 #include <sys/types.h>
2416 int
2417 main ()
2418 {
2419
2420 #ifdef _XOPEN_SOURCE
2421 make an error
2422 #endif
2423 ;
2424 return 0;
2425 }
2426 _ACEOF
2427 rm -f conftest.$ac_objext
2428 if { (eval echo "$as_me:2428: \"$ac_compile\"") >&5
2429 (eval $ac_compile) 2>&5
2430 ac_status=$?
2431 echo "$as_me:2431: \$? = $ac_status" >&5
2432 (exit $ac_status); } &&
2433 { ac_try='test -s conftest.$ac_objext'
2434 { (eval echo "$as_me:2434: \"$ac_try\"") >&5
2435 (eval $ac_try) 2>&5
2436 ac_status=$?
2437 echo "$as_me:2437: \$? = $ac_status" >&5
2438 (exit $ac_status); }; }; then
2439 cf_cv_gnu_source=no
2440 else
2441 echo "$as_me: failed program was:" >&5
2442 cat conftest.$ac_ext >&5
2443 cf_cv_gnu_source=yes
2444 fi
2445 rm -f conftest.$ac_objext conftest.$ac_ext
2446 CPPFLAGS="$cf_save"
2447
2448 fi
2449 rm -f conftest.$ac_objext conftest.$ac_ext
2450
2451 fi
2452 echo "$as_me:2452: result: $cf_cv_gnu_source" >&5
2453 echo "${ECHO_T}$cf_cv_gnu_source" >&6
2454 test "$cf_cv_gnu_source" = yes && CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
2455
2456 ;;
2457 mirbsd*) #(vi
2458 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <sys/select.h> and other headers which use u_int / u_short types
2459 cf_XOPEN_SOURCE=
2460
2461 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
2462
2463 cf_save_CFLAGS="$CFLAGS"
2464 cf_save_CPPFLAGS="$CPPFLAGS"
2465
2466 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
2467 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
2468 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
2469
2470 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
2471 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
2472 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
2473
2474 echo "$as_me:2474: checking if we should define _POSIX_C_SOURCE" >&5
2475 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
2476 if test "${cf_cv_posix_c_source+set}" = set; then
2477 echo $ECHO_N "(cached) $ECHO_C" >&6
2478 else
2479
2480 echo "${as_me:-configure}:2480: testing if the symbol is already defined go no further ..." 1>&5
2481
2482 cat >conftest.$ac_ext <<_ACEOF
2483 #line 2483 "configure"
2484 #include "confdefs.h"
2485 #include <sys/types.h>
2486 int
2487 main ()
2488 {
2489
2490 #ifndef _POSIX_C_SOURCE
2491 make an error
2492 #endif
2493 ;
2494 return 0;
2495 }
2496 _ACEOF
2497 rm -f conftest.$ac_objext
2498 if { (eval echo "$as_me:2498: \"$ac_compile\"") >&5
2499 (eval $ac_compile) 2>&5
2500 ac_status=$?
2501 echo "$as_me:2501: \$? = $ac_status" >&5
2502 (exit $ac_status); } &&
2503 { ac_try='test -s conftest.$ac_objext'
2504 { (eval echo "$as_me:2504: \"$ac_try\"") >&5
2505 (eval $ac_try) 2>&5
2506 ac_status=$?
2507 echo "$as_me:2507: \$? = $ac_status" >&5
2508 (exit $ac_status); }; }; then
2509 cf_cv_posix_c_source=no
2510 else
2511 echo "$as_me: failed program was:" >&5
2512 cat conftest.$ac_ext >&5
2513 cf_want_posix_source=no
2514 case .$cf_POSIX_C_SOURCE in #(vi
2515 .[12]??*) #(vi
2516 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
2517 ;;
2518 .2) #(vi
2519 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
2520 cf_want_posix_source=yes
2521 ;;
2522 .*)
2523 cf_want_posix_source=yes
2524 ;;
2525 esac
2526 if test "$cf_want_posix_source" = yes ; then
2527 cat >conftest.$ac_ext <<_ACEOF
2528 #line 2528 "configure"
2529 #include "confdefs.h"
2530 #include <sys/types.h>
2531 int
2532 main ()
2533 {
2534
2535 #ifdef _POSIX_SOURCE
2536 make an error
2537 #endif
2538 ;
2539 return 0;
2540 }
2541 _ACEOF
2542 rm -f conftest.$ac_objext
2543 if { (eval echo "$as_me:2543: \"$ac_compile\"") >&5
2544 (eval $ac_compile) 2>&5
2545 ac_status=$?
2546 echo "$as_me:2546: \$? = $ac_status" >&5
2547 (exit $ac_status); } &&
2548 { ac_try='test -s conftest.$ac_objext'
2549 { (eval echo "$as_me:2549: \"$ac_try\"") >&5
2550 (eval $ac_try) 2>&5
2551 ac_status=$?
2552 echo "$as_me:2552: \$? = $ac_status" >&5
2553 (exit $ac_status); }; }; then
2554 :
2555 else
2556 echo "$as_me: failed program was:" >&5
2557 cat conftest.$ac_ext >&5
2558 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
2559 fi
2560 rm -f conftest.$ac_objext conftest.$ac_ext
2561 fi
2562
2563 echo "${as_me:-configure}:2563: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
2564
2565 CFLAGS="$cf_trim_CFLAGS"
2566 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
2567
2568 echo "${as_me:-configure}:2568: testing if the second compile does not leave our definition intact error ..." 1>&5
2569
2570 cat >conftest.$ac_ext <<_ACEOF
2571 #line 2571 "configure"
2572 #include "confdefs.h"
2573 #include <sys/types.h>
2574 int
2575 main ()
2576 {
2577
2578 #ifndef _POSIX_C_SOURCE
2579 make an error
2580 #endif
2581 ;
2582 return 0;
2583 }
2584 _ACEOF
2585 rm -f conftest.$ac_objext
2586 if { (eval echo "$as_me:2586: \"$ac_compile\"") >&5
2587 (eval $ac_compile) 2>&5
2588 ac_status=$?
2589 echo "$as_me:2589: \$? = $ac_status" >&5
2590 (exit $ac_status); } &&
2591 { ac_try='test -s conftest.$ac_objext'
2592 { (eval echo "$as_me:2592: \"$ac_try\"") >&5
2593 (eval $ac_try) 2>&5
2594 ac_status=$?
2595 echo "$as_me:2595: \$? = $ac_status" >&5
2596 (exit $ac_status); }; }; then
2597 :
2598 else
2599 echo "$as_me: failed program was:" >&5
2600 cat conftest.$ac_ext >&5
2601 cf_cv_posix_c_source=no
2602 fi
2603 rm -f conftest.$ac_objext conftest.$ac_ext
2604 CFLAGS="$cf_save_CFLAGS"
2605 CPPFLAGS="$cf_save_CPPFLAGS"
2606
2607 fi
2608 rm -f conftest.$ac_objext conftest.$ac_ext
2609
2610 fi
2611 echo "$as_me:2611: result: $cf_cv_posix_c_source" >&5
2612 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
2613
2614 if test "$cf_cv_posix_c_source" != no ; then
2615 CFLAGS="$cf_trim_CFLAGS"
2616 CPPFLAGS="$cf_trim_CPPFLAGS"
2617
2618 cf_fix_cppflags=no
2619 cf_new_cflags=
2620 cf_new_cppflags=
2621 cf_new_extra_cppflags=
2622
2623 for cf_add_cflags in $cf_cv_posix_c_source
2624 do
2625 case $cf_fix_cppflags in
2626 no)
2627 case $cf_add_cflags in #(vi
2628 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2629 case $cf_add_cflags in
2630 -D*)
2631 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2632
2633 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2634 && test -z "${cf_tst_cflags}" \
2635 && cf_fix_cppflags=yes
2636
2637 if test $cf_fix_cppflags = yes ; then
2638 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2639 continue
2640 elif test "${cf_tst_cflags}" = "\"'" ; then
2641 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2642 continue
2643 fi
2644 ;;
2645 esac
2646 case "$CPPFLAGS" in
2647 *$cf_add_cflags) #(vi
2648 ;;
2649 *) #(vi
2650 case $cf_add_cflags in #(vi
2651 -D*)
2652 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2653
2654 CPPFLAGS=`echo "$CPPFLAGS" | \
2655 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2656 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2657
2658 ;;
2659 esac
2660 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2661 ;;
2662 esac
2663 ;;
2664 *)
2665 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2666 ;;
2667 esac
2668 ;;
2669 yes)
2670 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2671
2672 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2673
2674 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2675 && test -z "${cf_tst_cflags}" \
2676 && cf_fix_cppflags=no
2677 ;;
2678 esac
2679 done
2680
2681 if test -n "$cf_new_cflags" ; then
2682
2683 CFLAGS="$CFLAGS $cf_new_cflags"
2684 fi
2685
2686 if test -n "$cf_new_cppflags" ; then
2687
2688 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2689 fi
2690
2691 if test -n "$cf_new_extra_cppflags" ; then
2692
2693 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2694 fi
2695
2696 fi
2697
2698 ;;
2699 netbsd*) #(vi
2700 cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
2701 ;;
2702 openbsd[4-9]*) #(vi
2703 # setting _XOPEN_SOURCE lower than 500 breaks g++ compile with wchar.h, needed for ncursesw
2704 cf_xopen_source="-D_BSD_SOURCE"
2705 cf_XOPEN_SOURCE=600
2706 ;;
2707 openbsd*) #(vi
2708 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
2709 ;;
2710 osf[45]*) #(vi
2711 cf_xopen_source="-D_OSF_SOURCE"
2712 ;;
2713 nto-qnx*) #(vi
2714 cf_xopen_source="-D_QNX_SOURCE"
2715 ;;
2716 sco*) #(vi
2717 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
2718 ;;
2719 solaris2.*) #(vi
2720 cf_xopen_source="-D__EXTENSIONS__"
2721 ;;
2722 *)
2723
2724 echo "$as_me:2724: checking if we should define _XOPEN_SOURCE" >&5
2725 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
2726 if test "${cf_cv_xopen_source+set}" = set; then
2727 echo $ECHO_N "(cached) $ECHO_C" >&6
2728 else
2729
2730 cat >conftest.$ac_ext <<_ACEOF
2731 #line 2731 "configure"
2732 #include "confdefs.h"
2733
2734 #include <stdlib.h>
2735 #include <string.h>
2736 #include <sys/types.h>
2737
2738 int
2739 main ()
2740 {
2741
2742 #ifndef _XOPEN_SOURCE
2743 make an error
2744 #endif
2745 ;
2746 return 0;
2747 }
2748 _ACEOF
2749 rm -f conftest.$ac_objext
2750 if { (eval echo "$as_me:2750: \"$ac_compile\"") >&5
2751 (eval $ac_compile) 2>&5
2752 ac_status=$?
2753 echo "$as_me:2753: \$? = $ac_status" >&5
2754 (exit $ac_status); } &&
2755 { ac_try='test -s conftest.$ac_objext'
2756 { (eval echo "$as_me:2756: \"$ac_try\"") >&5
2757 (eval $ac_try) 2>&5
2758 ac_status=$?
2759 echo "$as_me:2759: \$? = $ac_status" >&5
2760 (exit $ac_status); }; }; then
2761 cf_cv_xopen_source=no
2762 else
2763 echo "$as_me: failed program was:" >&5
2764 cat conftest.$ac_ext >&5
2765 cf_save="$CPPFLAGS"
2766 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
2767 cat >conftest.$ac_ext <<_ACEOF
2768 #line 2768 "configure"
2769 #include "confdefs.h"
2770
2771 #include <stdlib.h>
2772 #include <string.h>
2773 #include <sys/types.h>
2774
2775 int
2776 main ()
2777 {
2778
2779 #ifdef _XOPEN_SOURCE
2780 make an error
2781 #endif
2782 ;
2783 return 0;
2784 }
2785 _ACEOF
2786 rm -f conftest.$ac_objext
2787 if { (eval echo "$as_me:2787: \"$ac_compile\"") >&5
2788 (eval $ac_compile) 2>&5
2789 ac_status=$?
2790 echo "$as_me:2790: \$? = $ac_status" >&5
2791 (exit $ac_status); } &&
2792 { ac_try='test -s conftest.$ac_objext'
2793 { (eval echo "$as_me:2793: \"$ac_try\"") >&5
2794 (eval $ac_try) 2>&5
2795 ac_status=$?
2796 echo "$as_me:2796: \$? = $ac_status" >&5
2797 (exit $ac_status); }; }; then
2798 cf_cv_xopen_source=no
2799 else
2800 echo "$as_me: failed program was:" >&5
2801 cat conftest.$ac_ext >&5
2802 cf_cv_xopen_source=$cf_XOPEN_SOURCE
2803 fi
2804 rm -f conftest.$ac_objext conftest.$ac_ext
2805 CPPFLAGS="$cf_save"
2806
2807 fi
2808 rm -f conftest.$ac_objext conftest.$ac_ext
2809
2810 fi
2811 echo "$as_me:2811: result: $cf_cv_xopen_source" >&5
2812 echo "${ECHO_T}$cf_cv_xopen_source" >&6
2813
2814 if test "$cf_cv_xopen_source" != no ; then
2815
2816 CFLAGS=`echo "$CFLAGS" | \
2817 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
2818 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
2819
2820 CPPFLAGS=`echo "$CPPFLAGS" | \
2821 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
2822 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
2823
2824 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
2825
2826 cf_fix_cppflags=no
2827 cf_new_cflags=
2828 cf_new_cppflags=
2829 cf_new_extra_cppflags=
2830
2831 for cf_add_cflags in $cf_temp_xopen_source
2832 do
2833 case $cf_fix_cppflags in
2834 no)
2835 case $cf_add_cflags in #(vi
2836 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2837 case $cf_add_cflags in
2838 -D*)
2839 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2840
2841 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2842 && test -z "${cf_tst_cflags}" \
2843 && cf_fix_cppflags=yes
2844
2845 if test $cf_fix_cppflags = yes ; then
2846 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2847 continue
2848 elif test "${cf_tst_cflags}" = "\"'" ; then
2849 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2850 continue
2851 fi
2852 ;;
2853 esac
2854 case "$CPPFLAGS" in
2855 *$cf_add_cflags) #(vi
2856 ;;
2857 *) #(vi
2858 case $cf_add_cflags in #(vi
2859 -D*)
2860 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2861
2862 CPPFLAGS=`echo "$CPPFLAGS" | \
2863 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2864 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2865
2866 ;;
2867 esac
2868 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2869 ;;
2870 esac
2871 ;;
2872 *)
2873 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2874 ;;
2875 esac
2876 ;;
2877 yes)
2878 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2879
2880 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2881
2882 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2883 && test -z "${cf_tst_cflags}" \
2884 && cf_fix_cppflags=no
2885 ;;
2886 esac
2887 done
2888
2889 if test -n "$cf_new_cflags" ; then
2890
2891 CFLAGS="$CFLAGS $cf_new_cflags"
2892 fi
2893
2894 if test -n "$cf_new_cppflags" ; then
2895
2896 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2897 fi
2898
2899 if test -n "$cf_new_extra_cppflags" ; then
2900
2901 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2902 fi
2903
2904 fi
2905
2906 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
2907
2908 cf_save_CFLAGS="$CFLAGS"
2909 cf_save_CPPFLAGS="$CPPFLAGS"
2910
2911 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
2912 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
2913 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
2914
2915 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
2916 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
2917 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
2918
2919 echo "$as_me:2919: checking if we should define _POSIX_C_SOURCE" >&5
2920 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
2921 if test "${cf_cv_posix_c_source+set}" = set; then
2922 echo $ECHO_N "(cached) $ECHO_C" >&6
2923 else
2924
2925 echo "${as_me:-configure}:2925: testing if the symbol is already defined go no further ..." 1>&5
2926
2927 cat >conftest.$ac_ext <<_ACEOF
2928 #line 2928 "configure"
2929 #include "confdefs.h"
2930 #include <sys/types.h>
2931 int
2932 main ()
2933 {
2934
2935 #ifndef _POSIX_C_SOURCE
2936 make an error
2937 #endif
2938 ;
2939 return 0;
2940 }
2941 _ACEOF
2942 rm -f conftest.$ac_objext
2943 if { (eval echo "$as_me:2943: \"$ac_compile\"") >&5
2944 (eval $ac_compile) 2>&5
2945 ac_status=$?
2946 echo "$as_me:2946: \$? = $ac_status" >&5
2947 (exit $ac_status); } &&
2948 { ac_try='test -s conftest.$ac_objext'
2949 { (eval echo "$as_me:2949: \"$ac_try\"") >&5
2950 (eval $ac_try) 2>&5
2951 ac_status=$?
2952 echo "$as_me:2952: \$? = $ac_status" >&5
2953 (exit $ac_status); }; }; then
2954 cf_cv_posix_c_source=no
2955 else
2956 echo "$as_me: failed program was:" >&5
2957 cat conftest.$ac_ext >&5
2958 cf_want_posix_source=no
2959 case .$cf_POSIX_C_SOURCE in #(vi
2960 .[12]??*) #(vi
2961 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
2962 ;;
2963 .2) #(vi
2964 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
2965 cf_want_posix_source=yes
2966 ;;
2967 .*)
2968 cf_want_posix_source=yes
2969 ;;
2970 esac
2971 if test "$cf_want_posix_source" = yes ; then
2972 cat >conftest.$ac_ext <<_ACEOF
2973 #line 2973 "configure"
2974 #include "confdefs.h"
2975 #include <sys/types.h>
2976 int
2977 main ()
2978 {
2979
2980 #ifdef _POSIX_SOURCE
2981 make an error
2982 #endif
2983 ;
2984 return 0;
2985 }
2986 _ACEOF
2987 rm -f conftest.$ac_objext
2988 if { (eval echo "$as_me:2988: \"$ac_compile\"") >&5
2989 (eval $ac_compile) 2>&5
2990 ac_status=$?
2991 echo "$as_me:2991: \$? = $ac_status" >&5
2992 (exit $ac_status); } &&
2993 { ac_try='test -s conftest.$ac_objext'
2994 { (eval echo "$as_me:2994: \"$ac_try\"") >&5
2995 (eval $ac_try) 2>&5
2996 ac_status=$?
2997 echo "$as_me:2997: \$? = $ac_status" >&5
2998 (exit $ac_status); }; }; then
2999 :
3000 else
3001 echo "$as_me: failed program was:" >&5
3002 cat conftest.$ac_ext >&5
3003 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
3004 fi
3005 rm -f conftest.$ac_objext conftest.$ac_ext
3006 fi
3007
3008 echo "${as_me:-configure}:3008: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
3009
3010 CFLAGS="$cf_trim_CFLAGS"
3011 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
3012
3013 echo "${as_me:-configure}:3013: testing if the second compile does not leave our definition intact error ..." 1>&5
3014
3015 cat >conftest.$ac_ext <<_ACEOF
3016 #line 3016 "configure"
3017 #include "confdefs.h"
3018 #include <sys/types.h>
3019 int
3020 main ()
3021 {
3022
3023 #ifndef _POSIX_C_SOURCE
3024 make an error
3025 #endif
3026 ;
3027 return 0;
3028 }
3029 _ACEOF
3030 rm -f conftest.$ac_objext
3031 if { (eval echo "$as_me:3031: \"$ac_compile\"") >&5
3032 (eval $ac_compile) 2>&5
3033 ac_status=$?
3034 echo "$as_me:3034: \$? = $ac_status" >&5
3035 (exit $ac_status); } &&
3036 { ac_try='test -s conftest.$ac_objext'
3037 { (eval echo "$as_me:3037: \"$ac_try\"") >&5
3038 (eval $ac_try) 2>&5
3039 ac_status=$?
3040 echo "$as_me:3040: \$? = $ac_status" >&5
3041 (exit $ac_status); }; }; then
3042 :
3043 else
3044 echo "$as_me: failed program was:" >&5
3045 cat conftest.$ac_ext >&5
3046 cf_cv_posix_c_source=no
3047 fi
3048 rm -f conftest.$ac_objext conftest.$ac_ext
3049 CFLAGS="$cf_save_CFLAGS"
3050 CPPFLAGS="$cf_save_CPPFLAGS"
3051
3052 fi
3053 rm -f conftest.$ac_objext conftest.$ac_ext
3054
3055 fi
3056 echo "$as_me:3056: result: $cf_cv_posix_c_source" >&5
3057 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
3058
3059 if test "$cf_cv_posix_c_source" != no ; then
3060 CFLAGS="$cf_trim_CFLAGS"
3061 CPPFLAGS="$cf_trim_CPPFLAGS"
3062
3063 cf_fix_cppflags=no
3064 cf_new_cflags=
3065 cf_new_cppflags=
3066 cf_new_extra_cppflags=
3067
3068 for cf_add_cflags in $cf_cv_posix_c_source
3069 do
3070 case $cf_fix_cppflags in
3071 no)
3072 case $cf_add_cflags in #(vi
3073 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
3074 case $cf_add_cflags in
3075 -D*)
3076 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3077
3078 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3079 && test -z "${cf_tst_cflags}" \
3080 && cf_fix_cppflags=yes
3081
3082 if test $cf_fix_cppflags = yes ; then
3083 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3084 continue
3085 elif test "${cf_tst_cflags}" = "\"'" ; then
3086 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3087 continue
3088 fi
3089 ;;
3090 esac
3091 case "$CPPFLAGS" in
3092 *$cf_add_cflags) #(vi
3093 ;;
3094 *) #(vi
3095 case $cf_add_cflags in #(vi
3096 -D*)
3097 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3098
3099 CPPFLAGS=`echo "$CPPFLAGS" | \
3100 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3101 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3102
3103 ;;
3104 esac
3105 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3106 ;;
3107 esac
3108 ;;
3109 *)
3110 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3111 ;;
3112 esac
3113 ;;
3114 yes)
3115 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3116
3117 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3118
3119 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3120 && test -z "${cf_tst_cflags}" \
3121 && cf_fix_cppflags=no
3122 ;;
3123 esac
3124 done
3125
3126 if test -n "$cf_new_cflags" ; then
3127
3128 CFLAGS="$CFLAGS $cf_new_cflags"
3129 fi
3130
3131 if test -n "$cf_new_cppflags" ; then
3132
3133 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3134 fi
3135
3136 if test -n "$cf_new_extra_cppflags" ; then
3137
3138 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3139 fi
3140
3141 fi
3142
3143 ;;
3144 esac
3145
3146 if test -n "$cf_xopen_source" ; then
3147
3148 cf_fix_cppflags=no
3149 cf_new_cflags=
3150 cf_new_cppflags=
3151 cf_new_extra_cppflags=
3152
3153 for cf_add_cflags in $cf_xopen_source
3154 do
3155 case $cf_fix_cppflags in
3156 no)
3157 case $cf_add_cflags in #(vi
3158 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
3159 case $cf_add_cflags in
3160 -D*)
3161 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3162
3163 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3164 && test -z "${cf_tst_cflags}" \
3165 && cf_fix_cppflags=yes
3166
3167 if test $cf_fix_cppflags = yes ; then
3168 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3169 continue
3170 elif test "${cf_tst_cflags}" = "\"'" ; then
3171 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3172 continue
3173 fi
3174 ;;
3175 esac
3176 case "$CPPFLAGS" in
3177 *$cf_add_cflags) #(vi
3178 ;;
3179 *) #(vi
3180 case $cf_add_cflags in #(vi
3181 -D*)
3182 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3183
3184 CPPFLAGS=`echo "$CPPFLAGS" | \
3185 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3186 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3187
3188 ;;
3189 esac
3190 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3191 ;;
3192 esac
3193 ;;
3194 *)
3195 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3196 ;;
3197 esac
3198 ;;
3199 yes)
3200 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3201
3202 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3203
3204 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3205 && test -z "${cf_tst_cflags}" \
3206 && cf_fix_cppflags=no
3207 ;;
3208 esac
3209 done
3210
3211 if test -n "$cf_new_cflags" ; then
3212
3213 CFLAGS="$CFLAGS $cf_new_cflags"
3214 fi
3215
3216 if test -n "$cf_new_cppflags" ; then
3217
3218 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3219 fi
3220
3221 if test -n "$cf_new_extra_cppflags" ; then
3222
3223 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3224 fi
3225
3226 fi
3227
3228 if test -n "$cf_XOPEN_SOURCE" && test -z "$cf_cv_xopen_source" ; then
3229 echo "$as_me:3229: checking if _XOPEN_SOURCE really is set" >&5
3230 echo $ECHO_N "checking if _XOPEN_SOURCE really is set... $ECHO_C" >&6
3231 cat >conftest.$ac_ext <<_ACEOF
3232 #line 3232 "configure"
3233 #include "confdefs.h"
3234 #include <stdlib.h>
3235 int
3236 main ()
3237 {
3238
3239 #ifndef _XOPEN_SOURCE
3240 make an error
3241 #endif
3242 ;
3243 return 0;
3244 }
3245 _ACEOF
3246 rm -f conftest.$ac_objext
3247 if { (eval echo "$as_me:3247: \"$ac_compile\"") >&5
3248 (eval $ac_compile) 2>&5
3249 ac_status=$?
3250 echo "$as_me:3250: \$? = $ac_status" >&5
3251 (exit $ac_status); } &&
3252 { ac_try='test -s conftest.$ac_objext'
3253 { (eval echo "$as_me:3253: \"$ac_try\"") >&5
3254 (eval $ac_try) 2>&5
3255 ac_status=$?
3256 echo "$as_me:3256: \$? = $ac_status" >&5
3257 (exit $ac_status); }; }; then
3258 cf_XOPEN_SOURCE_set=yes
3259 else
3260 echo "$as_me: failed program was:" >&5
3261 cat conftest.$ac_ext >&5
3262 cf_XOPEN_SOURCE_set=no
3263 fi
3264 rm -f conftest.$ac_objext conftest.$ac_ext
3265 echo "$as_me:3265: result: $cf_XOPEN_SOURCE_set" >&5
3266 echo "${ECHO_T}$cf_XOPEN_SOURCE_set" >&6
3267 if test $cf_XOPEN_SOURCE_set = yes
3268 then
3269 cat >conftest.$ac_ext <<_ACEOF
3270 #line 3270 "configure"
3271 #include "confdefs.h"
3272 #include <stdlib.h>
3273 int
3274 main ()
3275 {
3276
3277 #if (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE
3278 make an error
3279 #endif
3280 ;
3281 return 0;
3282 }
3283 _ACEOF
3284 rm -f conftest.$ac_objext
3285 if { (eval echo "$as_me:3285: \"$ac_compile\"") >&5
3286 (eval $ac_compile) 2>&5
3287 ac_status=$?
3288 echo "$as_me:3288: \$? = $ac_status" >&5
3289 (exit $ac_status); } &&
3290 { ac_try='test -s conftest.$ac_objext'
3291 { (eval echo "$as_me:3291: \"$ac_try\"") >&5
3292 (eval $ac_try) 2>&5
3293 ac_status=$?
3294 echo "$as_me:3294: \$? = $ac_status" >&5
3295 (exit $ac_status); }; }; then
3296 cf_XOPEN_SOURCE_set_ok=yes
3297 else
3298 echo "$as_me: failed program was:" >&5
3299 cat conftest.$ac_ext >&5
3300 cf_XOPEN_SOURCE_set_ok=no
3301 fi
3302 rm -f conftest.$ac_objext conftest.$ac_ext
3303 if test $cf_XOPEN_SOURCE_set_ok = no
3304 then
3305 { echo "$as_me:3305: WARNING: _XOPEN_SOURCE is lower than requested" >&5
3306 echo "$as_me: WARNING: _XOPEN_SOURCE is lower than requested" >&2;}
3307 fi
3308 else
3309
3310 echo "$as_me:3310: checking if we should define _XOPEN_SOURCE" >&5
3311 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
3312 if test "${cf_cv_xopen_source+set}" = set; then
3313 echo $ECHO_N "(cached) $ECHO_C" >&6
3314 else
3315
3316 cat >conftest.$ac_ext <<_ACEOF
3317 #line 3317 "configure"
3318 #include "confdefs.h"
3319
3320 #include <stdlib.h>
3321 #include <string.h>
3322 #include <sys/types.h>
3323
3324 int
3325 main ()
3326 {
3327
3328 #ifndef _XOPEN_SOURCE
3329 make an error
3330 #endif
3331 ;
3332 return 0;
3333 }
3334 _ACEOF
3335 rm -f conftest.$ac_objext
3336 if { (eval echo "$as_me:3336: \"$ac_compile\"") >&5
3337 (eval $ac_compile) 2>&5
3338 ac_status=$?
3339 echo "$as_me:3339: \$? = $ac_status" >&5
3340 (exit $ac_status); } &&
3341 { ac_try='test -s conftest.$ac_objext'
3342 { (eval echo "$as_me:3342: \"$ac_try\"") >&5
3343 (eval $ac_try) 2>&5
3344 ac_status=$?
3345 echo "$as_me:3345: \$? = $ac_status" >&5
3346 (exit $ac_status); }; }; then
3347 cf_cv_xopen_source=no
3348 else
3349 echo "$as_me: failed program was:" >&5
3350 cat conftest.$ac_ext >&5
3351 cf_save="$CPPFLAGS"
3352 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
3353 cat >conftest.$ac_ext <<_ACEOF
3354 #line 3354 "configure"
3355 #include "confdefs.h"
3356
3357 #include <stdlib.h>
3358 #include <string.h>
3359 #include <sys/types.h>
3360
3361 int
3362 main ()
3363 {
3364
3365 #ifdef _XOPEN_SOURCE
3366 make an error
3367 #endif
3368 ;
3369 return 0;
3370 }
3371 _ACEOF
3372 rm -f conftest.$ac_objext
3373 if { (eval echo "$as_me:3373: \"$ac_compile\"") >&5
3374 (eval $ac_compile) 2>&5
3375 ac_status=$?
3376 echo "$as_me:3376: \$? = $ac_status" >&5
3377 (exit $ac_status); } &&
3378 { ac_try='test -s conftest.$ac_objext'
3379 { (eval echo "$as_me:3379: \"$ac_try\"") >&5
3380 (eval $ac_try) 2>&5
3381 ac_status=$?
3382 echo "$as_me:3382: \$? = $ac_status" >&5
3383 (exit $ac_status); }; }; then
3384 cf_cv_xopen_source=no
3385 else
3386 echo "$as_me: failed program was:" >&5
3387 cat conftest.$ac_ext >&5
3388 cf_cv_xopen_source=$cf_XOPEN_SOURCE
3389 fi
3390 rm -f conftest.$ac_objext conftest.$ac_ext
3391 CPPFLAGS="$cf_save"
3392
3393 fi
3394 rm -f conftest.$ac_objext conftest.$ac_ext
3395
3396 fi
3397 echo "$as_me:3397: result: $cf_cv_xopen_source" >&5
3398 echo "${ECHO_T}$cf_cv_xopen_source" >&6
3399
3400 if test "$cf_cv_xopen_source" != no ; then
3401
3402 CFLAGS=`echo "$CFLAGS" | \
3403 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3404 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
3405
3406 CPPFLAGS=`echo "$CPPFLAGS" | \
3407 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3408 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
3409
3410 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
3411
3412 cf_fix_cppflags=no
3413 cf_new_cflags=
3414 cf_new_cppflags=
3415 cf_new_extra_cppflags=
3416
3417 for cf_add_cflags in $cf_temp_xopen_source
3418 do
3419 case $cf_fix_cppflags in
3420 no)
3421 case $cf_add_cflags in #(vi
3422 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
3423 case $cf_add_cflags in
3424 -D*)
3425 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3426
3427 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3428 && test -z "${cf_tst_cflags}" \
3429 && cf_fix_cppflags=yes
3430
3431 if test $cf_fix_cppflags = yes ; then
3432 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3433 continue
3434 elif test "${cf_tst_cflags}" = "\"'" ; then
3435 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3436 continue
3437 fi
3438 ;;
3439 esac
3440 case "$CPPFLAGS" in
3441 *$cf_add_cflags) #(vi
3442 ;;
3443 *) #(vi
3444 case $cf_add_cflags in #(vi
3445 -D*)
3446 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3447
3448 CPPFLAGS=`echo "$CPPFLAGS" | \
3449 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3450 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3451
3452 ;;
3453 esac
3454 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3455 ;;
3456 esac
3457 ;;
3458 *)
3459 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3460 ;;
3461 esac
3462 ;;
3463 yes)
3464 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3465
3466 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3467
3468 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3469 && test -z "${cf_tst_cflags}" \
3470 && cf_fix_cppflags=no
3471 ;;
3472 esac
3473 done
3474
3475 if test -n "$cf_new_cflags" ; then
3476
3477 CFLAGS="$CFLAGS $cf_new_cflags"
3478 fi
3479
3480 if test -n "$cf_new_cppflags" ; then
3481
3482 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3483 fi
3484
3485 if test -n "$cf_new_extra_cppflags" ; then
3486
3487 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3488 fi
3489
3490 fi
3491
3492 fi
3493 fi
3494
3495 ac_ext=c
3496 ac_cpp='$CPP $CPPFLAGS'
3497 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3498 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3499 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3500 ac_main_return=return
3501 echo "$as_me:3501: checking how to run the C preprocessor" >&5
3502 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3503 # On Suns, sometimes $CPP names a directory.
3504 if test -n "$CPP" && test -d "$CPP"; then
3505 CPP=
3506 fi
3507 if test -z "$CPP"; then
3508 if test "${ac_cv_prog_CPP+set}" = set; then
3509 echo $ECHO_N "(cached) $ECHO_C" >&6
3510 else
3511 # Double quotes because CPP needs to be expanded
3512 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3513 do
3514 ac_preproc_ok=false
3515 for ac_c_preproc_warn_flag in '' yes
3516 do
3517 # Use a header file that comes with gcc, so configuring glibc
3518 # with a fresh cross-compiler works.
3519 # On the NeXT, cc -E runs the code through the compiler's parser,
3520 # not just through cpp. "Syntax error" is here to catch this case.
3521 cat >conftest.$ac_ext <<_ACEOF
3522 #line 3522 "configure"
3523 #include "confdefs.h"
3524 #include <assert.h>
3525 Syntax error
3526 _ACEOF
3527 if { (eval echo "$as_me:3527: \"$ac_cpp conftest.$ac_ext\"") >&5
3528 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3529 ac_status=$?
3530 egrep -v '^ *\+' conftest.er1 >conftest.err
3531 rm -f conftest.er1
3532 cat conftest.err >&5
3533 echo "$as_me:3533: \$? = $ac_status" >&5
3534 (exit $ac_status); } >/dev/null; then
3535 if test -s conftest.err; then
3536 ac_cpp_err=$ac_c_preproc_warn_flag
3537 else
3538 ac_cpp_err=
3539 fi
3540 else
3541 ac_cpp_err=yes
3542 fi
3543 if test -z "$ac_cpp_err"; then
3544 :
3545 else
3546 echo "$as_me: failed program was:" >&5
3547 cat conftest.$ac_ext >&5
3548 # Broken: fails on valid input.
3549 continue
3550 fi
3551 rm -f conftest.err conftest.$ac_ext
3552
3553 # OK, works on sane cases. Now check whether non-existent headers
3554 # can be detected and how.
3555 cat >conftest.$ac_ext <<_ACEOF
3556 #line 3556 "configure"
3557 #include "confdefs.h"
3558 #include <ac_nonexistent.h>
3559 _ACEOF
3560 if { (eval echo "$as_me:3560: \"$ac_cpp conftest.$ac_ext\"") >&5
3561 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3562 ac_status=$?
3563 egrep -v '^ *\+' conftest.er1 >conftest.err
3564 rm -f conftest.er1
3565 cat conftest.err >&5
3566 echo "$as_me:3566: \$? = $ac_status" >&5
3567 (exit $ac_status); } >/dev/null; then
3568 if test -s conftest.err; then
3569 ac_cpp_err=$ac_c_preproc_warn_flag
3570 else
3571 ac_cpp_err=
3572 fi
3573 else
3574 ac_cpp_err=yes
3575 fi
3576 if test -z "$ac_cpp_err"; then
3577 # Broken: success on invalid input.
3578 continue
3579 else
3580 echo "$as_me: failed program was:" >&5
3581 cat conftest.$ac_ext >&5
3582 # Passes both tests.
3583 ac_preproc_ok=:
3584 break
3585 fi
3586 rm -f conftest.err conftest.$ac_ext
3587
3588 done
3589 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3590 rm -f conftest.err conftest.$ac_ext
3591 if $ac_preproc_ok; then
3592 break
3593 fi
3594
3595 done
3596 ac_cv_prog_CPP=$CPP
3597
3598 fi
3599 CPP=$ac_cv_prog_CPP
3600 else
3601 ac_cv_prog_CPP=$CPP
3602 fi
3603 echo "$as_me:3603: result: $CPP" >&5
3604 echo "${ECHO_T}$CPP" >&6
3605 ac_preproc_ok=false
3606 for ac_c_preproc_warn_flag in '' yes
3607 do
3608 # Use a header file that comes with gcc, so configuring glibc
3609 # with a fresh cross-compiler works.
3610 # On the NeXT, cc -E runs the code through the compiler's parser,
3611 # not just through cpp. "Syntax error" is here to catch this case.
3612 cat >conftest.$ac_ext <<_ACEOF
3613 #line 3613 "configure"
3614 #include "confdefs.h"
3615 #include <assert.h>
3616 Syntax error
3617 _ACEOF
3618 if { (eval echo "$as_me:3618: \"$ac_cpp conftest.$ac_ext\"") >&5
3619 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3620 ac_status=$?
3621 egrep -v '^ *\+' conftest.er1 >conftest.err
3622 rm -f conftest.er1
3623 cat conftest.err >&5
3624 echo "$as_me:3624: \$? = $ac_status" >&5
3625 (exit $ac_status); } >/dev/null; then
3626 if test -s conftest.err; then
3627 ac_cpp_err=$ac_c_preproc_warn_flag
3628 else
3629 ac_cpp_err=
3630 fi
3631 else
3632 ac_cpp_err=yes
3633 fi
3634 if test -z "$ac_cpp_err"; then
3635 :
3636 else
3637 echo "$as_me: failed program was:" >&5
3638 cat conftest.$ac_ext >&5
3639 # Broken: fails on valid input.
3640 continue
3641 fi
3642 rm -f conftest.err conftest.$ac_ext
3643
3644 # OK, works on sane cases. Now check whether non-existent headers
3645 # can be detected and how.
3646 cat >conftest.$ac_ext <<_ACEOF
3647 #line 3647 "configure"
3648 #include "confdefs.h"
3649 #include <ac_nonexistent.h>
3650 _ACEOF
3651 if { (eval echo "$as_me:3651: \"$ac_cpp conftest.$ac_ext\"") >&5
3652 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3653 ac_status=$?
3654 egrep -v '^ *\+' conftest.er1 >conftest.err
3655 rm -f conftest.er1
3656 cat conftest.err >&5
3657 echo "$as_me:3657: \$? = $ac_status" >&5
3658 (exit $ac_status); } >/dev/null; then
3659 if test -s conftest.err; then
3660 ac_cpp_err=$ac_c_preproc_warn_flag
3661 else
3662 ac_cpp_err=
3663 fi
3664 else
3665 ac_cpp_err=yes
3666 fi
3667 if test -z "$ac_cpp_err"; then
3668 # Broken: success on invalid input.
3669 continue
3670 else
3671 echo "$as_me: failed program was:" >&5
3672 cat conftest.$ac_ext >&5
3673 # Passes both tests.
3674 ac_preproc_ok=:
3675 break
3676 fi
3677 rm -f conftest.err conftest.$ac_ext
3678
3679 done
3680 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3681 rm -f conftest.err conftest.$ac_ext
3682 if $ac_preproc_ok; then
3683 :
3684 else
3685 { { echo "$as_me:3685: error: C preprocessor \"$CPP\" fails sanity check" >&5
3686 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3687 { (exit 1); exit 1; }; }
3688 fi
3689
3690 ac_ext=c
3691 ac_cpp='$CPP $CPPFLAGS'
3692 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3693 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3694 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3695 ac_main_return=return
3696
3697 for ac_header in fcntl.h
3698 do
3699 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3700 echo "$as_me:3700: checking for $ac_header" >&5
3701 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3702 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3703 echo $ECHO_N "(cached) $ECHO_C" >&6
3704 else
3705 cat >conftest.$ac_ext <<_ACEOF
3706 #line 3706 "configure"
3707 #include "confdefs.h"
3708 #include <$ac_header>
3709 _ACEOF
3710 if { (eval echo "$as_me:3710: \"$ac_cpp conftest.$ac_ext\"") >&5
3711 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3712 ac_status=$?
3713 egrep -v '^ *\+' conftest.er1 >conftest.err
3714 rm -f conftest.er1
3715 cat conftest.err >&5
3716 echo "$as_me:3716: \$? = $ac_status" >&5
3717 (exit $ac_status); } >/dev/null; then
3718 if test -s conftest.err; then
3719 ac_cpp_err=$ac_c_preproc_warn_flag
3720 else
3721 ac_cpp_err=
3722 fi
3723 else
3724 ac_cpp_err=yes
3725 fi
3726 if test -z "$ac_cpp_err"; then
3727 eval "$as_ac_Header=yes"
3728 else
3729 echo "$as_me: failed program was:" >&5
3730 cat conftest.$ac_ext >&5
3731 eval "$as_ac_Header=no"
3732 fi
3733 rm -f conftest.err conftest.$ac_ext
3734 fi
3735 echo "$as_me:3735: result: `eval echo '${'$as_ac_Header'}'`" >&5
3736 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3737 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3738 cat >>confdefs.h <<EOF
3739 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3740 EOF
3741
3742 fi
3743 done
3744
3745 echo "$as_me:3745: checking for working mkstemp" >&5
3746 echo $ECHO_N "checking for working mkstemp... $ECHO_C" >&6
3747 if test "${cf_cv_func_mkstemp+set}" = set; then
3748 echo $ECHO_N "(cached) $ECHO_C" >&6
3749 else
3750
3751 rm -rf conftest*
3752 if test "$cross_compiling" = yes; then
3753 cf_cv_func_mkstemp=maybe
3754 else
3755 cat >conftest.$ac_ext <<_ACEOF
3756 #line 3756 "configure"
3757 #include "confdefs.h"
3758
3759 #include <sys/types.h>
3760 #include <stdlib.h>
3761 #include <stdio.h>
3762 #include <string.h>
3763 #include <sys/stat.h>
3764 int main()
3765 {
3766 char *tmpl = "conftestXXXXXX";
3767 char name[2][80];
3768 int n;
3769 int result = 0;
3770 int fd;
3771 struct stat sb;
3772
3773 umask(077);
3774 for (n = 0; n < 2; ++n) {
3775 strcpy(name[n], tmpl);
3776 if ((fd = mkstemp(name[n])) >= 0) {
3777 if (!strcmp(name[n], tmpl)
3778 || stat(name[n], &sb) != 0
3779 || (sb.st_mode & S_IFMT) != S_IFREG
3780 || (sb.st_mode & 077) != 0) {
3781 result = 1;
3782 }
3783 close(fd);
3784 }
3785 }
3786 if (result == 0
3787 && !strcmp(name[0], name[1]))
3788 result = 1;
3789 ${cf_cv_main_return:-return}(result);
3790 }
3791
3792 _ACEOF
3793 rm -f conftest$ac_exeext
3794 if { (eval echo "$as_me:3794: \"$ac_link\"") >&5
3795 (eval $ac_link) 2>&5
3796 ac_status=$?
3797 echo "$as_me:3797: \$? = $ac_status" >&5
3798 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3799 { (eval echo "$as_me:3799: \"$ac_try\"") >&5
3800 (eval $ac_try) 2>&5
3801 ac_status=$?
3802 echo "$as_me:3802: \$? = $ac_status" >&5
3803 (exit $ac_status); }; }; then
3804 cf_cv_func_mkstemp=yes
3805
3806 else
3807 echo "$as_me: program exited with status $ac_status" >&5
3808 echo "$as_me: failed program was:" >&5
3809 cat conftest.$ac_ext >&5
3810 cf_cv_func_mkstemp=no
3811
3812 fi
3813 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3814 fi
3815
3816 fi
3817 echo "$as_me:3817: result: $cf_cv_func_mkstemp" >&5
3818 echo "${ECHO_T}$cf_cv_func_mkstemp" >&6
3819 if test "x$cf_cv_func_mkstemp" = xmaybe ; then
3820 echo "$as_me:3820: checking for mkstemp" >&5
3821 echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
3822 if test "${ac_cv_func_mkstemp+set}" = set; then
3823 echo $ECHO_N "(cached) $ECHO_C" >&6
3824 else
3825 cat >conftest.$ac_ext <<_ACEOF
3826 #line 3826 "configure"
3827 #include "confdefs.h"
3828 /* System header to define __stub macros and hopefully few prototypes,
3829 which can conflict with char mkstemp (); below. */
3830 #include <assert.h>
3831 /* Override any gcc2 internal prototype to avoid an error. */
3832 #ifdef __cplusplus
3833 extern "C"
3834 #endif
3835 /* We use char because int might match the return type of a gcc2
3836 builtin and then its argument prototype would still apply. */
3837 char mkstemp ();
3838 char (*f) ();
3839
3840 int
3841 main ()
3842 {
3843 /* The GNU C library defines this for functions which it implements
3844 to always fail with ENOSYS. Some functions are actually named
3845 something starting with __ and the normal name is an alias. */
3846 #if defined (__stub_mkstemp) || defined (__stub___mkstemp)
3847 choke me
3848 #else
3849 f = mkstemp; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
3850 #endif
3851
3852 ;
3853 return 0;
3854 }
3855 _ACEOF
3856 rm -f conftest.$ac_objext conftest$ac_exeext
3857 if { (eval echo "$as_me:3857: \"$ac_link\"") >&5
3858 (eval $ac_link) 2>&5
3859 ac_status=$?
3860 echo "$as_me:3860: \$? = $ac_status" >&5
3861 (exit $ac_status); } &&
3862 { ac_try='test -s conftest$ac_exeext'
3863 { (eval echo "$as_me:3863: \"$ac_try\"") >&5
3864 (eval $ac_try) 2>&5
3865 ac_status=$?
3866 echo "$as_me:3866: \$? = $ac_status" >&5
3867 (exit $ac_status); }; }; then
3868 ac_cv_func_mkstemp=yes
3869 else
3870 echo "$as_me: failed program was:" >&5
3871 cat conftest.$ac_ext >&5
3872 ac_cv_func_mkstemp=no
3873 fi
3874 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3875 fi
3876 echo "$as_me:3876: result: $ac_cv_func_mkstemp" >&5
3877 echo "${ECHO_T}$ac_cv_func_mkstemp" >&6
3878
3879 fi
3880 if test "x$cf_cv_func_mkstemp" = xyes || test "x$ac_cv_func_mkstemp" = xyes ; then
3881
3882 cat >>confdefs.h <<\EOF
3883 #define HAVE_MKSTEMP 1
3884 EOF
3885
3886 fi
3887
3888 if ( test "$GCC" = yes || test "$GXX" = yes )
3889 then
3890 echo "$as_me:3890: checking if you want to check for gcc warnings" >&5
3891 echo $ECHO_N "checking if you want to check for gcc warnings... $ECHO_C" >&6
3892
3893 # Check whether --with-warnings or --without-warnings was given.
3894 if test "${with_warnings+set}" = set; then
3895 withval="$with_warnings"
3896 cf_opt_with_warnings=$withval
3897 else
3898 cf_opt_with_warnings=no
3899 fi;
3900 echo "$as_me:3900: result: $cf_opt_with_warnings" >&5
3901 echo "${ECHO_T}$cf_opt_with_warnings" >&6
3902 if test "$cf_opt_with_warnings" != no ; then
3903
3904 if test "$GCC" = yes
3905 then
3906 cat > conftest.i <<EOF
3907 #ifndef GCC_PRINTF
3908 #define GCC_PRINTF 0
3909 #endif
3910 #ifndef GCC_SCANF
3911 #define GCC_SCANF 0
3912 #endif
3913 #ifndef GCC_NORETURN
3914 #define GCC_NORETURN /* nothing */
3915 #endif
3916 #ifndef GCC_UNUSED
3917 #define GCC_UNUSED /* nothing */
3918 #endif
3919 EOF
3920 if test "$GCC" = yes
3921 then
3922 { echo "$as_me:3922: checking for $CC __attribute__ directives..." >&5
3923 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
3924 cat > conftest.$ac_ext <<EOF
3925 #line 3925 "${as_me:-configure}"
3926 #include "confdefs.h"
3927 #include "conftest.h"
3928 #include "conftest.i"
3929 #if GCC_PRINTF
3930 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
3931 #else
3932 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
3933 #endif
3934 #if GCC_SCANF
3935 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
3936 #else
3937 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
3938 #endif
3939 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
3940 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
3941 extern void foo(void) GCC_NORETURN;
3942 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
3943 EOF
3944 cf_printf_attribute=no
3945 cf_scanf_attribute=no
3946 for cf_attribute in scanf printf unused noreturn
3947 do
3948
3949 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
3950
3951 cf_directive="__attribute__(($cf_attribute))"
3952 echo "checking for $CC $cf_directive" 1>&5
3953
3954 case $cf_attribute in #(vi
3955 printf) #(vi
3956 cf_printf_attribute=yes
3957 cat >conftest.h <<EOF
3958 #define GCC_$cf_ATTRIBUTE 1
3959 EOF
3960 ;;
3961 scanf) #(vi
3962 cf_scanf_attribute=yes
3963 cat >conftest.h <<EOF
3964 #define GCC_$cf_ATTRIBUTE 1
3965 EOF
3966 ;;
3967 *) #(vi
3968 cat >conftest.h <<EOF
3969 #define GCC_$cf_ATTRIBUTE $cf_directive
3970 EOF
3971 ;;
3972 esac
3973
3974 if { (eval echo "$as_me:3974: \"$ac_compile\"") >&5
3975 (eval $ac_compile) 2>&5
3976 ac_status=$?
3977 echo "$as_me:3977: \$? = $ac_status" >&5
3978 (exit $ac_status); }; then
3979 test -n "$verbose" && echo "$as_me:3979: result: ... $cf_attribute" >&5
3980 echo "${ECHO_T}... $cf_attribute" >&6
3981 cat conftest.h >>confdefs.h
3982 case $cf_attribute in #(vi
3983 noreturn) #(vi
3984
3985 cat >>confdefs.h <<EOF
3986 #define GCC_NORETURN $cf_directive
3987 EOF
3988
3989 ;;
3990 printf) #(vi
3991 cf_value='/* nothing */'
3992 if test "$cf_printf_attribute" != no ; then
3993 cf_value='__attribute__((format(printf,fmt,var)))'
3994
3995 cat >>confdefs.h <<\EOF
3996 #define GCC_PRINTF 1
3997 EOF
3998
3999 fi
4000
4001 cat >>confdefs.h <<EOF
4002 #define GCC_PRINTFLIKE(fmt,var) $cf_value
4003 EOF
4004
4005 ;;
4006 scanf) #(vi
4007 cf_value='/* nothing */'
4008 if test "$cf_scanf_attribute" != no ; then
4009 cf_value='__attribute__((format(scanf,fmt,var)))'
4010
4011 cat >>confdefs.h <<\EOF
4012 #define GCC_SCANF 1
4013 EOF
4014
4015 fi
4016
4017 cat >>confdefs.h <<EOF
4018 #define GCC_SCANFLIKE(fmt,var) $cf_value
4019 EOF
4020
4021 ;;
4022 unused) #(vi
4023
4024 cat >>confdefs.h <<EOF
4025 #define GCC_UNUSED $cf_directive
4026 EOF
4027
4028 ;;
4029 esac
4030 fi
4031 done
4032 else
4033 fgrep define conftest.i >>confdefs.h
4034 fi
4035 rm -rf conftest*
4036 fi
4037
4038 INTEL_COMPILER=no
4039
4040 if test "$GCC" = yes ; then
4041 case $host_os in
4042 linux*|gnu*)
4043 echo "$as_me:4043: checking if this is really Intel C compiler" >&5
4044 echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
4045 cf_save_CFLAGS="$CFLAGS"
4046 CFLAGS="$CFLAGS -no-gcc"
4047 cat >conftest.$ac_ext <<_ACEOF
4048 #line 4048 "configure"
4049 #include "confdefs.h"
4050
4051 int
4052 main ()
4053 {
4054
4055 #ifdef __INTEL_COMPILER
4056 #else
4057 make an error
4058 #endif
4059
4060 ;
4061 return 0;
4062 }
4063 _ACEOF
4064 rm -f conftest.$ac_objext
4065 if { (eval echo "$as_me:4065: \"$ac_compile\"") >&5
4066 (eval $ac_compile) 2>&5
4067 ac_status=$?
4068 echo "$as_me:4068: \$? = $ac_status" >&5
4069 (exit $ac_status); } &&
4070 { ac_try='test -s conftest.$ac_objext'
4071 { (eval echo "$as_me:4071: \"$ac_try\"") >&5
4072 (eval $ac_try) 2>&5
4073 ac_status=$?
4074 echo "$as_me:4074: \$? = $ac_status" >&5
4075 (exit $ac_status); }; }; then
4076 INTEL_COMPILER=yes
4077 cf_save_CFLAGS="$cf_save_CFLAGS -we147 -no-gcc"
4078
4079 else
4080 echo "$as_me: failed program was:" >&5
4081 cat conftest.$ac_ext >&5
4082 fi
4083 rm -f conftest.$ac_objext conftest.$ac_ext
4084 CFLAGS="$cf_save_CFLAGS"
4085 echo "$as_me:4085: result: $INTEL_COMPILER" >&5
4086 echo "${ECHO_T}$INTEL_COMPILER" >&6
4087 ;;
4088 esac
4089 fi
4090
4091 CLANG_COMPILER=no
4092
4093 if test "$GCC" = yes ; then
4094 echo "$as_me:4094: checking if this is really Clang C compiler" >&5
4095 echo $ECHO_N "checking if this is really Clang C compiler... $ECHO_C" >&6
4096 cf_save_CFLAGS="$CFLAGS"
4097 CFLAGS="$CFLAGS -Qunused-arguments"
4098 cat >conftest.$ac_ext <<_ACEOF
4099 #line 4099 "configure"
4100 #include "confdefs.h"
4101
4102 int
4103 main ()
4104 {
4105
4106 #ifdef __clang__
4107 #else
4108 make an error
4109 #endif
4110
4111 ;
4112 return 0;
4113 }
4114 _ACEOF
4115 rm -f conftest.$ac_objext
4116 if { (eval echo "$as_me:4116: \"$ac_compile\"") >&5
4117 (eval $ac_compile) 2>&5
4118 ac_status=$?
4119 echo "$as_me:4119: \$? = $ac_status" >&5
4120 (exit $ac_status); } &&
4121 { ac_try='test -s conftest.$ac_objext'
4122 { (eval echo "$as_me:4122: \"$ac_try\"") >&5
4123 (eval $ac_try) 2>&5
4124 ac_status=$?
4125 echo "$as_me:4125: \$? = $ac_status" >&5
4126 (exit $ac_status); }; }; then
4127 CLANG_COMPILER=yes
4128 cf_save_CFLAGS="$cf_save_CFLAGS -Qunused-arguments"
4129
4130 else
4131 echo "$as_me: failed program was:" >&5
4132 cat conftest.$ac_ext >&5
4133 fi
4134 rm -f conftest.$ac_objext conftest.$ac_ext
4135 CFLAGS="$cf_save_CFLAGS"
4136 echo "$as_me:4136: result: $CLANG_COMPILER" >&5
4137 echo "${ECHO_T}$CLANG_COMPILER" >&6
4138 fi
4139
4140 cat > conftest.$ac_ext <<EOF
4141 #line 4141 "${as_me:-configure}"
4142 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
4143 EOF
4144
4145 if test "$INTEL_COMPILER" = yes
4146 then
4147 # The "-wdXXX" options suppress warnings:
4148 # remark #1419: external declaration in primary source file
4149 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
4150 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
4151 # remark #193: zero used for undefined preprocessing identifier
4152 # remark #593: variable "curs_sb_left_arrow" was set but never used
4153 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
4154 # remark #869: parameter "tw" was never referenced
4155 # remark #981: operands are evaluated in unspecified order
4156 # warning #279: controlling expression is constant
4157
4158 { echo "$as_me:4158: checking for $CC warning options..." >&5
4159 echo "$as_me: checking for $CC warning options..." >&6;}
4160 cf_save_CFLAGS="$CFLAGS"
4161 EXTRA_CFLAGS="-Wall"
4162 for cf_opt in \
4163 wd1419 \
4164 wd1683 \
4165 wd1684 \
4166 wd193 \
4167 wd593 \
4168 wd279 \
4169 wd810 \
4170 wd869 \
4171 wd981
4172 do
4173 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
4174 if { (eval echo "$as_me:4174: \"$ac_compile\"") >&5
4175 (eval $ac_compile) 2>&5
4176 ac_status=$?
4177 echo "$as_me:4177: \$? = $ac_status" >&5
4178 (exit $ac_status); }; then
4179 test -n "$verbose" && echo "$as_me:4179: result: ... -$cf_opt" >&5
4180 echo "${ECHO_T}... -$cf_opt" >&6
4181 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
4182 fi
4183 done
4184 CFLAGS="$cf_save_CFLAGS"
4185
4186 elif test "$GCC" = yes
4187 then
4188 { echo "$as_me:4188: checking for $CC warning options..." >&5
4189 echo "$as_me: checking for $CC warning options..." >&6;}
4190 cf_save_CFLAGS="$CFLAGS"
4191 EXTRA_CFLAGS=
4192 cf_warn_CONST=""
4193 test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
4194 for cf_opt in W Wall \
4195 Wbad-function-cast \
4196 Wcast-align \
4197 Wcast-qual \
4198 Winline \
4199 Wmissing-declarations \
4200 Wmissing-prototypes \
4201 Wnested-externs \
4202 Wpointer-arith \
4203 Wshadow \
4204 Wstrict-prototypes \
4205 Wundef $cf_warn_CONST Wwrite-strings
4206 do
4207 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
4208 if { (eval echo "$as_me:4208: \"$ac_compile\"") >&5
4209 (eval $ac_compile) 2>&5
4210 ac_status=$?
4211 echo "$as_me:4211: \$? = $ac_status" >&5
4212 (exit $ac_status); }; then
4213 test -n "$verbose" && echo "$as_me:4213: result: ... -$cf_opt" >&5
4214 echo "${ECHO_T}... -$cf_opt" >&6
4215 case $cf_opt in #(vi
4216 Wcast-qual) #(vi
4217 CPPFLAGS="$CPPFLAGS -DXTSTRINGDEFINES"
4218 ;;
4219 Winline) #(vi
4220 case $GCC_VERSION in
4221 [34].*)
4222 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
4223
4224 echo "${as_me:-configure}:4224: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
4225
4226 continue;;
4227 esac
4228 ;;
4229 Wpointer-arith) #(vi
4230 case $GCC_VERSION in
4231 [12].*)
4232 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
4233
4234 echo "${as_me:-configure}:4234: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
4235
4236 continue;;
4237 esac
4238 ;;
4239 esac
4240 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
4241 fi
4242 done
4243 CFLAGS="$cf_save_CFLAGS"
4244 fi
4245 rm -rf conftest*
4246
4247 fi
4248 fi
4249
4250 echo "$as_me:4250: checking if you want to see long compiling messages" >&5
4251 echo $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6
4252
4253 # Check whether --enable-echo or --disable-echo was given.
4254 if test "${enable_echo+set}" = set; then
4255 enableval="$enable_echo"
4256 test "$enableval" != no && enableval=yes
4257 if test "$enableval" != "yes" ; then
4258
4259 ECHO_LT='--silent'
4260 ECHO_LD='@echo linking $@;'
4261 RULE_CC='@echo compiling $<'
4262 SHOW_CC='@echo compiling $@'
4263 ECHO_CC='@'
4264
4265 else
4266
4267 ECHO_LT=''
4268 ECHO_LD=''
4269 RULE_CC=''
4270 SHOW_CC=''
4271 ECHO_CC=''
4272
4273 fi
4274 else
4275 enableval=yes
4276
4277 ECHO_LT=''
4278 ECHO_LD=''
4279 RULE_CC=''
4280 SHOW_CC=''
4281 ECHO_CC=''
4282
4283 fi;
4284 echo "$as_me:4284: result: $enableval" >&5
4285 echo "${ECHO_T}$enableval" >&6
4286
4287 echo "$as_me:4287: checking if you want to use dmalloc for testing" >&5
4288 echo $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6
4289
4290 # Check whether --with-dmalloc or --without-dmalloc was given.
4291 if test "${with_dmalloc+set}" = set; then
4292 withval="$with_dmalloc"
4293
4294 cat >>confdefs.h <<EOF
4295 #define USE_DMALLOC 1
4296 EOF
4297
4298 : ${with_cflags:=-g}
4299 : ${with_no_leaks:=yes}
4300 with_dmalloc=yes
4301 else
4302 with_dmalloc=
4303 fi;
4304 echo "$as_me:4304: result: ${with_dmalloc:-no}" >&5
4305 echo "${ECHO_T}${with_dmalloc:-no}" >&6
4306
4307 case .$with_cflags in #(vi
4308 .*-g*)
4309 case .$CFLAGS in #(vi
4310 .*-g*) #(vi
4311 ;;
4312 *)
4313
4314 cf_fix_cppflags=no
4315 cf_new_cflags=
4316 cf_new_cppflags=
4317 cf_new_extra_cppflags=
4318
4319 for cf_add_cflags in -g
4320 do
4321 case $cf_fix_cppflags in
4322 no)
4323 case $cf_add_cflags in #(vi
4324 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
4325 case $cf_add_cflags in
4326 -D*)
4327 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
4328
4329 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
4330 && test -z "${cf_tst_cflags}" \
4331 && cf_fix_cppflags=yes
4332
4333 if test $cf_fix_cppflags = yes ; then
4334 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4335 continue
4336 elif test "${cf_tst_cflags}" = "\"'" ; then
4337 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4338 continue
4339 fi
4340 ;;
4341 esac
4342 case "$CPPFLAGS" in
4343 *$cf_add_cflags) #(vi
4344 ;;
4345 *) #(vi
4346 case $cf_add_cflags in #(vi
4347 -D*)
4348 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
4349
4350 CPPFLAGS=`echo "$CPPFLAGS" | \
4351 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
4352 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
4353
4354 ;;
4355 esac
4356 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
4357 ;;
4358 esac
4359 ;;
4360 *)
4361 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
4362 ;;
4363 esac
4364 ;;
4365 yes)
4366 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4367
4368 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
4369
4370 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
4371 && test -z "${cf_tst_cflags}" \
4372 && cf_fix_cppflags=no
4373 ;;
4374 esac
4375 done
4376
4377 if test -n "$cf_new_cflags" ; then
4378
4379 CFLAGS="$CFLAGS $cf_new_cflags"
4380 fi
4381
4382 if test -n "$cf_new_cppflags" ; then
4383
4384 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
4385 fi
4386
4387 if test -n "$cf_new_extra_cppflags" ; then
4388
4389 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
4390 fi
4391
4392 ;;
4393 esac
4394 ;;
4395 esac
4396
4397 if test "$with_dmalloc" = yes ; then
4398 echo "$as_me:4398: checking for dmalloc.h" >&5
4399 echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6
4400 if test "${ac_cv_header_dmalloc_h+set}" = set; then
4401 echo $ECHO_N "(cached) $ECHO_C" >&6
4402 else
4403 cat >conftest.$ac_ext <<_ACEOF
4404 #line 4404 "configure"
4405 #include "confdefs.h"
4406 #include <dmalloc.h>
4407 _ACEOF
4408 if { (eval echo "$as_me:4408: \"$ac_cpp conftest.$ac_ext\"") >&5
4409 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4410 ac_status=$?
4411 egrep -v '^ *\+' conftest.er1 >conftest.err
4412 rm -f conftest.er1
4413 cat conftest.err >&5
4414 echo "$as_me:4414: \$? = $ac_status" >&5
4415 (exit $ac_status); } >/dev/null; then
4416 if test -s conftest.err; then
4417 ac_cpp_err=$ac_c_preproc_warn_flag
4418 else
4419 ac_cpp_err=
4420 fi
4421 else
4422 ac_cpp_err=yes
4423 fi
4424 if test -z "$ac_cpp_err"; then
4425 ac_cv_header_dmalloc_h=yes
4426 else
4427 echo "$as_me: failed program was:" >&5
4428 cat conftest.$ac_ext >&5
4429 ac_cv_header_dmalloc_h=no
4430 fi
4431 rm -f conftest.err conftest.$ac_ext
4432 fi
4433 echo "$as_me:4433: result: $ac_cv_header_dmalloc_h" >&5
4434 echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6
4435 if test $ac_cv_header_dmalloc_h = yes; then
4436
4437 echo "$as_me:4437: checking for dmalloc_debug in -ldmalloc" >&5
4438 echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6
4439 if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then
4440 echo $ECHO_N "(cached) $ECHO_C" >&6
4441 else
4442 ac_check_lib_save_LIBS=$LIBS
4443 LIBS="-ldmalloc $LIBS"
4444 cat >conftest.$ac_ext <<_ACEOF
4445 #line 4445 "configure"
4446 #include "confdefs.h"
4447
4448 /* Override any gcc2 internal prototype to avoid an error. */
4449 #ifdef __cplusplus
4450 extern "C"
4451 #endif
4452 /* We use char because int might match the return type of a gcc2
4453 builtin and then its argument prototype would still apply. */
4454 char dmalloc_debug ();
4455 int
4456 main ()
4457 {
4458 dmalloc_debug ();
4459 ;
4460 return 0;
4461 }
4462 _ACEOF
4463 rm -f conftest.$ac_objext conftest$ac_exeext
4464 if { (eval echo "$as_me:4464: \"$ac_link\"") >&5
4465 (eval $ac_link) 2>&5
4466 ac_status=$?
4467 echo "$as_me:4467: \$? = $ac_status" >&5
4468 (exit $ac_status); } &&
4469 { ac_try='test -s conftest$ac_exeext'
4470 { (eval echo "$as_me:4470: \"$ac_try\"") >&5
4471 (eval $ac_try) 2>&5
4472 ac_status=$?
4473 echo "$as_me:4473: \$? = $ac_status" >&5
4474 (exit $ac_status); }; }; then
4475 ac_cv_lib_dmalloc_dmalloc_debug=yes
4476 else
4477 echo "$as_me: failed program was:" >&5
4478 cat conftest.$ac_ext >&5
4479 ac_cv_lib_dmalloc_dmalloc_debug=no
4480 fi
4481 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4482 LIBS=$ac_check_lib_save_LIBS
4483 fi
4484 echo "$as_me:4484: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5
4485 echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6
4486 if test $ac_cv_lib_dmalloc_dmalloc_debug = yes; then
4487 cat >>confdefs.h <<EOF
4488 #define HAVE_LIBDMALLOC 1
4489 EOF
4490
4491 LIBS="-ldmalloc $LIBS"
4492
4493 fi
4494
4495 fi
4496
4497 fi
4498
4499 echo "$as_me:4499: checking if you want to use dbmalloc for testing" >&5
4500 echo $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6
4501
4502 # Check whether --with-dbmalloc or --without-dbmalloc was given.
4503 if test "${with_dbmalloc+set}" = set; then
4504 withval="$with_dbmalloc"
4505
4506 cat >>confdefs.h <<EOF
4507 #define USE_DBMALLOC 1
4508 EOF
4509
4510 : ${with_cflags:=-g}
4511 : ${with_no_leaks:=yes}
4512 with_dbmalloc=yes
4513 else
4514 with_dbmalloc=
4515 fi;
4516 echo "$as_me:4516: result: ${with_dbmalloc:-no}" >&5
4517 echo "${ECHO_T}${with_dbmalloc:-no}" >&6
4518
4519 case .$with_cflags in #(vi
4520 .*-g*)
4521 case .$CFLAGS in #(vi
4522 .*-g*) #(vi
4523 ;;
4524 *)
4525
4526 cf_fix_cppflags=no
4527 cf_new_cflags=
4528 cf_new_cppflags=
4529 cf_new_extra_cppflags=
4530
4531 for cf_add_cflags in -g
4532 do
4533 case $cf_fix_cppflags in
4534 no)
4535 case $cf_add_cflags in #(vi
4536 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
4537 case $cf_add_cflags in
4538 -D*)
4539 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
4540
4541 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
4542 && test -z "${cf_tst_cflags}" \
4543 && cf_fix_cppflags=yes
4544
4545 if test $cf_fix_cppflags = yes ; then
4546 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4547 continue
4548 elif test "${cf_tst_cflags}" = "\"'" ; then
4549 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4550 continue
4551 fi
4552 ;;
4553 esac
4554 case "$CPPFLAGS" in
4555 *$cf_add_cflags) #(vi
4556 ;;
4557 *) #(vi
4558 case $cf_add_cflags in #(vi
4559 -D*)
4560 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
4561
4562 CPPFLAGS=`echo "$CPPFLAGS" | \
4563 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
4564 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
4565
4566 ;;
4567 esac
4568 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
4569 ;;
4570 esac
4571 ;;
4572 *)
4573 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
4574 ;;
4575 esac
4576 ;;
4577 yes)
4578 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4579
4580 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
4581
4582 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
4583 && test -z "${cf_tst_cflags}" \
4584 && cf_fix_cppflags=no
4585 ;;
4586 esac
4587 done
4588
4589 if test -n "$cf_new_cflags" ; then
4590
4591 CFLAGS="$CFLAGS $cf_new_cflags"
4592 fi
4593
4594 if test -n "$cf_new_cppflags" ; then
4595
4596 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
4597 fi
4598
4599 if test -n "$cf_new_extra_cppflags" ; then
4600
4601 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
4602 fi
4603
4604 ;;
4605 esac
4606 ;;
4607 esac
4608
4609 if test "$with_dbmalloc" = yes ; then
4610 echo "$as_me:4610: checking for dbmalloc.h" >&5
4611 echo $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6
4612 if test "${ac_cv_header_dbmalloc_h+set}" = set; then
4613 echo $ECHO_N "(cached) $ECHO_C" >&6
4614 else
4615 cat >conftest.$ac_ext <<_ACEOF
4616 #line 4616 "configure"
4617 #include "confdefs.h"
4618 #include <dbmalloc.h>
4619 _ACEOF
4620 if { (eval echo "$as_me:4620: \"$ac_cpp conftest.$ac_ext\"") >&5
4621 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4622 ac_status=$?
4623 egrep -v '^ *\+' conftest.er1 >conftest.err
4624 rm -f conftest.er1
4625 cat conftest.err >&5
4626 echo "$as_me:4626: \$? = $ac_status" >&5
4627 (exit $ac_status); } >/dev/null; then
4628 if test -s conftest.err; then
4629 ac_cpp_err=$ac_c_preproc_warn_flag
4630 else
4631 ac_cpp_err=
4632 fi
4633 else
4634 ac_cpp_err=yes
4635 fi
4636 if test -z "$ac_cpp_err"; then
4637 ac_cv_header_dbmalloc_h=yes
4638 else
4639 echo "$as_me: failed program was:" >&5
4640 cat conftest.$ac_ext >&5
4641 ac_cv_header_dbmalloc_h=no
4642 fi
4643 rm -f conftest.err conftest.$ac_ext
4644 fi
4645 echo "$as_me:4645: result: $ac_cv_header_dbmalloc_h" >&5
4646 echo "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6
4647 if test $ac_cv_header_dbmalloc_h = yes; then
4648
4649 echo "$as_me:4649: checking for debug_malloc in -ldbmalloc" >&5
4650 echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6
4651 if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then
4652 echo $ECHO_N "(cached) $ECHO_C" >&6
4653 else
4654 ac_check_lib_save_LIBS=$LIBS
4655 LIBS="-ldbmalloc $LIBS"
4656 cat >conftest.$ac_ext <<_ACEOF
4657 #line 4657 "configure"
4658 #include "confdefs.h"
4659
4660 /* Override any gcc2 internal prototype to avoid an error. */
4661 #ifdef __cplusplus
4662 extern "C"
4663 #endif
4664 /* We use char because int might match the return type of a gcc2
4665 builtin and then its argument prototype would still apply. */
4666 char debug_malloc ();
4667 int
4668 main ()
4669 {
4670 debug_malloc ();
4671 ;
4672 return 0;
4673 }
4674 _ACEOF
4675 rm -f conftest.$ac_objext conftest$ac_exeext
4676 if { (eval echo "$as_me:4676: \"$ac_link\"") >&5
4677 (eval $ac_link) 2>&5
4678 ac_status=$?
4679 echo "$as_me:4679: \$? = $ac_status" >&5
4680 (exit $ac_status); } &&
4681 { ac_try='test -s conftest$ac_exeext'
4682 { (eval echo "$as_me:4682: \"$ac_try\"") >&5
4683 (eval $ac_try) 2>&5
4684 ac_status=$?
4685 echo "$as_me:4685: \$? = $ac_status" >&5
4686 (exit $ac_status); }; }; then
4687 ac_cv_lib_dbmalloc_debug_malloc=yes
4688 else
4689 echo "$as_me: failed program was:" >&5
4690 cat conftest.$ac_ext >&5
4691 ac_cv_lib_dbmalloc_debug_malloc=no
4692 fi
4693 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4694 LIBS=$ac_check_lib_save_LIBS
4695 fi
4696 echo "$as_me:4696: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5
4697 echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6
4698 if test $ac_cv_lib_dbmalloc_debug_malloc = yes; then
4699 cat >>confdefs.h <<EOF
4700 #define HAVE_LIBDBMALLOC 1
4701 EOF
4702
4703 LIBS="-ldbmalloc $LIBS"
4704
4705 fi
4706
4707 fi
4708
4709 fi
4710
4711 echo "$as_me:4711: checking if you want to use valgrind for testing" >&5
4712 echo $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6
4713
4714 # Check whether --with-valgrind or --without-valgrind was given.
4715 if test "${with_valgrind+set}" = set; then
4716 withval="$with_valgrind"
4717
4718 cat >>confdefs.h <<EOF
4719 #define USE_VALGRIND 1
4720 EOF
4721
4722 : ${with_cflags:=-g}
4723 : ${with_no_leaks:=yes}
4724 with_valgrind=yes
4725 else
4726 with_valgrind=
4727 fi;
4728 echo "$as_me:4728: result: ${with_valgrind:-no}" >&5
4729 echo "${ECHO_T}${with_valgrind:-no}" >&6
4730
4731 case .$with_cflags in #(vi
4732 .*-g*)
4733 case .$CFLAGS in #(vi
4734 .*-g*) #(vi
4735 ;;
4736 *)
4737
4738 cf_fix_cppflags=no
4739 cf_new_cflags=
4740 cf_new_cppflags=
4741 cf_new_extra_cppflags=
4742
4743 for cf_add_cflags in -g
4744 do
4745 case $cf_fix_cppflags in
4746 no)
4747 case $cf_add_cflags in #(vi
4748 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
4749 case $cf_add_cflags in
4750 -D*)
4751 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
4752
4753 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
4754 && test -z "${cf_tst_cflags}" \
4755 && cf_fix_cppflags=yes
4756
4757 if test $cf_fix_cppflags = yes ; then
4758 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4759 continue
4760 elif test "${cf_tst_cflags}" = "\"'" ; then
4761 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4762 continue
4763 fi
4764 ;;
4765 esac
4766 case "$CPPFLAGS" in
4767 *$cf_add_cflags) #(vi
4768 ;;
4769 *) #(vi
4770 case $cf_add_cflags in #(vi
4771 -D*)
4772 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
4773
4774 CPPFLAGS=`echo "$CPPFLAGS" | \
4775 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
4776 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
4777
4778 ;;
4779 esac
4780 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
4781 ;;
4782 esac
4783 ;;
4784 *)
4785 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
4786 ;;
4787 esac
4788 ;;
4789 yes)
4790 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4791
4792 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
4793
4794 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
4795 && test -z "${cf_tst_cflags}" \
4796 && cf_fix_cppflags=no
4797 ;;
4798 esac
4799 done
4800
4801 if test -n "$cf_new_cflags" ; then
4802
4803 CFLAGS="$CFLAGS $cf_new_cflags"
4804 fi
4805
4806 if test -n "$cf_new_cppflags" ; then
4807
4808 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
4809 fi
4810
4811 if test -n "$cf_new_extra_cppflags" ; then
4812
4813 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
4814 fi
4815
4816 ;;
4817 esac
4818 ;;
4819 esac
4820
4821 echo "$as_me:4821: checking if you want to perform memory-leak testing" >&5
4822 echo $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6
4823
4824 # Check whether --enable-leaks or --disable-leaks was given.
4825 if test "${enable_leaks+set}" = set; then
4826 enableval="$enable_leaks"
4827 if test "x$enableval" = xno; then with_no_leaks=yes; else with_no_leaks=no; fi
4828 else
4829 : ${with_no_leaks:=no}
4830 fi;
4831 echo "$as_me:4831: result: $with_no_leaks" >&5
4832 echo "${ECHO_T}$with_no_leaks" >&6
4833
4834 if test "$with_no_leaks" = yes ; then
4835
4836 cat >>confdefs.h <<\EOF
4837 #define NO_LEAKS 1
4838 EOF
4839
4840 cat >>confdefs.h <<\EOF
4841 #define YY_NO_LEAKS 1
4842 EOF
4843
4844 fi
4845
4846 ### output makefile
4847 ac_config_files="$ac_config_files makefile"
4848 cat >confcache <<\_ACEOF
4849 # This file is a shell script that caches the results of configure
4850 # tests run on this system so they can be shared between configure
4851 # scripts and configure runs, see configure's option --config-cache.
4852 # It is not useful on other systems. If it contains results you don't
4853 # want to keep, you may remove or edit it.
4854 #
4855 # config.status only pays attention to the cache file if you give it
4856 # the --recheck option to rerun configure.
4857 #
4858 # `ac_cv_env_foo' variables (set or unset) will be overriden when
4859 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4860 # following values.
4861
4862 _ACEOF
4863
4864 # The following way of writing the cache mishandles newlines in values,
4865 # but we know of no workaround that is simple, portable, and efficient.
4866 # So, don't put newlines in cache variables' values.
4867 # Ultrix sh set writes to stderr and can't be redirected directly,
4868 # and sets the high bit in the cache file unless we assign to the vars.
4869 {
4870 (set) 2>&1 |
4871 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4872 *ac_space=\ *)
4873 # `set' does not quote correctly, so add quotes (double-quote
4874 # substitution turns \\\\ into \\, and sed turns \\ into \).
4875 sed -n \
4876 "s/'/'\\\\''/g;
4877 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4878 ;;
4879 *)
4880 # `set' quotes correctly as required by POSIX, so do not add quotes.
4881 sed -n \
4882 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4883 ;;
4884 esac;
4885 } |
4886 sed '
4887 t clear
4888 : clear
4889 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4890 t end
4891 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4892 : end' >>confcache
4893 if cmp -s $cache_file confcache; then :; else
4894 if test -w $cache_file; then
4895 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4896 cat confcache >$cache_file
4897 else
4898 echo "not updating unwritable cache $cache_file"
4899 fi
4900 fi
4901 rm -f confcache
4902
4903 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4904 # Let make expand exec_prefix.
4905 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4906
4907 # VPATH may cause trouble with some makes, so we remove $(srcdir),
4908 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4909 # trailing colons and then remove the whole line if VPATH becomes empty
4910 # (actually we leave an empty line to preserve line numbers).
4911 if test "x$srcdir" = x.; then
4912 ac_vpsub='/^[ ]*VPATH[ ]*=/{
4913 s/:*\$(srcdir):*/:/;
4914 s/:*\${srcdir}:*/:/;
4915 s/:*@srcdir@:*/:/;
4916 s/^\([^=]*=[ ]*\):*/\1/;
4917 s/:*$//;
4918 s/^[^=]*=[ ]*$//;
4919 }'
4920 fi
4921
4922 DEFS=-DHAVE_CONFIG_H
4923
4924 : ${CONFIG_STATUS=./config.status}
4925 ac_clean_files_save=$ac_clean_files
4926 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4927 { echo "$as_me:4927: creating $CONFIG_STATUS" >&5
4928 echo "$as_me: creating $CONFIG_STATUS" >&6;}
4929 cat >$CONFIG_STATUS <<_ACEOF
4930 #! $SHELL
4931 # Generated automatically by configure.
4932 # Run this file to recreate the current configuration.
4933 # Compiler output produced by configure, useful for debugging
4934 # configure, is in config.log if it exists.
4935
4936 debug=false
4937 SHELL=\${CONFIG_SHELL-$SHELL}
4938 ac_cs_invocation="\$0 \$@"
4939
4940 _ACEOF
4941
4942 cat >>$CONFIG_STATUS <<\_ACEOF
4943 # Be Bourne compatible
4944 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4945 emulate sh
4946 NULLCMD=:
4947 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
4948 set -o posix
4949 fi
4950
4951 # Name of the executable.
4952 as_me=`echo "$0" |sed 's,.*[\\/],,'`
4953
4954 if expr a : '\(a\)' >/dev/null 2>&1; then
4955 as_expr=expr
4956 else
4957 as_expr=false
4958 fi
4959
4960 rm -f conf$$ conf$$.exe conf$$.file
4961 echo >conf$$.file
4962 if ln -s conf$$.file conf$$ 2>/dev/null; then
4963 # We could just check for DJGPP; but this test a) works b) is more generic
4964 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4965 if test -f conf$$.exe; then
4966 # Don't use ln at all; we don't have any links
4967 as_ln_s='cp -p'
4968 else
4969 as_ln_s='ln -s'
4970 fi
4971 elif ln conf$$.file conf$$ 2>/dev/null; then
4972 as_ln_s=ln
4973 else
4974 as_ln_s='cp -p'
4975 fi
4976 rm -f conf$$ conf$$.exe conf$$.file
4977
4978 as_executable_p="test -f"
4979
4980 # Support unset when possible.
4981 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
4982 as_unset=unset
4983 else
4984 as_unset=false
4985 fi
4986
4987 # NLS nuisances.
4988 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
4989 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
4990 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
4991 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
4992 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
4993 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
4994 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
4995 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
4996
4997 # IFS
4998 # We need space, tab and new line, in precisely that order.
4999 as_nl='
5000 '
5001 IFS=" $as_nl"
5002
5003 # CDPATH.
5004 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
5005
5006 exec 6>&1
5007
5008 _ACEOF
5009
5010 # Files that config.status was made for.
5011 if test -n "$ac_config_files"; then
5012 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5013 fi
5014
5015 if test -n "$ac_config_headers"; then
5016 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5017 fi
5018
5019 if test -n "$ac_config_links"; then
5020 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5021 fi
5022
5023 if test -n "$ac_config_commands"; then
5024 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5025 fi
5026
5027 cat >>$CONFIG_STATUS <<\EOF
5028
5029 ac_cs_usage="\
5030 \`$as_me' instantiates files from templates according to the
5031 current configuration.
5032
5033 Usage: $0 [OPTIONS] [FILE]...
5034
5035 -h, --help print this help, then exit
5036 -V, --version print version number, then exit
5037 -d, --debug don't remove temporary files
5038 --recheck update $as_me by reconfiguring in the same conditions
5039 --file=FILE[:TEMPLATE]
5040 instantiate the configuration file FILE
5041 --header=FILE[:TEMPLATE]
5042 instantiate the configuration header FILE
5043
5044 Configuration files:
5045 $config_files
5046
5047 Configuration headers:
5048 $config_headers
5049
5050 Report bugs to <dickey@invisible-island.net>."
5051 EOF
5052
5053 cat >>$CONFIG_STATUS <<EOF
5054 ac_cs_version="\\
5055 config.status
5056 configured by $0, generated by GNU Autoconf 2.52.20121002,
5057 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5058
5059 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
5060 Free Software Foundation, Inc.
5061 This config.status script is free software; the Free Software Foundation
5062 gives unlimited permission to copy, distribute and modify it."
5063 srcdir=$srcdir
5064 INSTALL="$INSTALL"
5065 EOF
5066
5067 cat >>$CONFIG_STATUS <<\EOF
5068 # If no file are specified by the user, then we need to provide default
5069 # value. By we need to know if files were specified by the user.
5070 ac_need_defaults=:
5071 while test $# != 0
5072 do
5073 case $1 in
5074 --*=*)
5075 ac_option=`expr "x$1" : 'x\([^=]*\)='`
5076 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5077 shift
5078 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
5079 shift
5080 ;;
5081 -*);;
5082 *) # This is not an option, so the user has probably given explicit
5083 # arguments.
5084 ac_need_defaults=false;;
5085 esac
5086
5087 case $1 in
5088 # Handling of the options.
5089 EOF
5090 cat >>$CONFIG_STATUS <<EOF
5091 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5092 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
5093 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
5094 EOF
5095 cat >>$CONFIG_STATUS <<\EOF
5096 --version | --vers* | -V )
5097 echo "$ac_cs_version"; exit 0 ;;
5098 --he | --h)
5099 # Conflict between --help and --header
5100 { { echo "$as_me:5100: error: ambiguous option: $1
5101 Try \`$0 --help' for more information." >&5
5102 echo "$as_me: error: ambiguous option: $1
5103 Try \`$0 --help' for more information." >&2;}
5104 { (exit 1); exit 1; }; };;
5105 --help | --hel | -h )
5106 echo "$ac_cs_usage"; exit 0 ;;
5107 --debug | --d* | -d )
5108 debug=: ;;
5109 --file | --fil | --fi | --f )
5110 shift
5111 CONFIG_FILES="$CONFIG_FILES $1"
5112 ac_need_defaults=false;;
5113 --header | --heade | --head | --hea )
5114 shift
5115 CONFIG_HEADERS="$CONFIG_HEADERS $1"
5116 ac_need_defaults=false;;
5117
5118 # This is an error.
5119 -*) { { echo "$as_me:5119: error: unrecognized option: $1
5120 Try \`$0 --help' for more information." >&5
5121 echo "$as_me: error: unrecognized option: $1
5122 Try \`$0 --help' for more information." >&2;}
5123 { (exit 1); exit 1; }; } ;;
5124
5125 *) ac_config_targets="$ac_config_targets $1" ;;
5126
5127 esac
5128 shift
5129 done
5130
5131 exec 5>>config.log
5132 cat >&5 << _ACEOF
5133
5134 ## ----------------------- ##
5135 ## Running config.status. ##
5136 ## ----------------------- ##
5137
5138 This file was extended by $as_me 2.52.20121002, executed with
5139 CONFIG_FILES = $CONFIG_FILES
5140 CONFIG_HEADERS = $CONFIG_HEADERS
5141 CONFIG_LINKS = $CONFIG_LINKS
5142 CONFIG_COMMANDS = $CONFIG_COMMANDS
5143 > $ac_cs_invocation
5144 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5145
5146 _ACEOF
5147 EOF
5148
5149 cat >>$CONFIG_STATUS <<\EOF
5150 for ac_config_target in $ac_config_targets
5151 do
5152 case "$ac_config_target" in
5153 # Handling of arguments.
5154 "makefile" ) CONFIG_FILES="$CONFIG_FILES makefile" ;;
5155 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config_h.in" ;;
5156 *) { { echo "$as_me:5156: error: invalid argument: $ac_config_target" >&5
5157 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5158 { (exit 1); exit 1; }; };;
5159 esac
5160 done
5161
5162 # If the user did not use the arguments to specify the items to instantiate,
5163 # then the envvar interface is used. Set only those that are not.
5164 # We use the long form for the default assignment because of an extremely
5165 # bizarre bug on SunOS 4.1.3.
5166 if $ac_need_defaults; then
5167 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5168 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5169 fi
5170
5171 # Create a temporary directory, and hook for its removal unless debugging.
5172 $debug ||
5173 {
5174 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5175 trap '{ (exit 1); exit 1; }' 1 2 13 15
5176 }
5177
5178 # Create a (secure) tmp directory for tmp files.
5179 : ${TMPDIR=/tmp}
5180 {
5181 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
5182 test -n "$tmp" && test -d "$tmp"
5183 } ||
5184 {
5185 tmp=$TMPDIR/cs$$-$RANDOM
5186 (umask 077 && mkdir $tmp)
5187 } ||
5188 {
5189 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
5190 { (exit 1); exit 1; }
5191 }
5192
5193 EOF
5194
5195 cat >>$CONFIG_STATUS <<EOF
5196
5197 #
5198 # CONFIG_FILES section.
5199 #
5200
5201 # No need to generate the scripts if there are no CONFIG_FILES.
5202 # This happens for instance when ./config.status config.h
5203 if test -n "\$CONFIG_FILES"; then
5204 # Protect against being on the right side of a sed subst in config.status.
5205 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5206 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5207 s,@SHELL@,$SHELL,;t t
5208 s,@exec_prefix@,$exec_prefix,;t t
5209 s,@prefix@,$prefix,;t t
5210 s,@program_transform_name@,$program_transform_name,;t t
5211 s,@bindir@,$bindir,;t t
5212 s,@sbindir@,$sbindir,;t t
5213 s,@libexecdir@,$libexecdir,;t t
5214 s,@datarootdir@,$datarootdir,;t t
5215 s,@datadir@,$datadir,;t t
5216 s,@sysconfdir@,$sysconfdir,;t t
5217 s,@sharedstatedir@,$sharedstatedir,;t t
5218 s,@localstatedir@,$localstatedir,;t t
5219 s,@libdir@,$libdir,;t t
5220 s,@includedir@,$includedir,;t t
5221 s,@oldincludedir@,$oldincludedir,;t t
5222 s,@infodir@,$infodir,;t t
5223 s,@mandir@,$mandir,;t t
5224 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5225 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5226 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5227 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5228 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5229 s,@build_alias@,$build_alias,;t t
5230 s,@host_alias@,$host_alias,;t t
5231 s,@target_alias@,$target_alias,;t t
5232 s,@ECHO_C@,$ECHO_C,;t t
5233 s,@ECHO_N@,$ECHO_N,;t t
5234 s,@ECHO_T@,$ECHO_T,;t t
5235 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5236 s,@DEFS@,$DEFS,;t t
5237 s,@LIBS@,$LIBS,;t t
5238 s,@build@,$build,;t t
5239 s,@build_cpu@,$build_cpu,;t t
5240 s,@build_vendor@,$build_vendor,;t t
5241 s,@build_os@,$build_os,;t t
5242 s,@host@,$host,;t t
5243 s,@host_cpu@,$host_cpu,;t t
5244 s,@host_vendor@,$host_vendor,;t t
5245 s,@host_os@,$host_os,;t t
5246 s,@target@,$target,;t t
5247 s,@target_cpu@,$target_cpu,;t t
5248 s,@target_vendor@,$target_vendor,;t t
5249 s,@target_os@,$target_os,;t t
5250 s,@CC@,$CC,;t t
5251 s,@CFLAGS@,$CFLAGS,;t t
5252 s,@LDFLAGS@,$LDFLAGS,;t t
5253 s,@CPPFLAGS@,$CPPFLAGS,;t t
5254 s,@ac_ct_CC@,$ac_ct_CC,;t t
5255 s,@EXEEXT@,$EXEEXT,;t t
5256 s,@OBJEXT@,$OBJEXT,;t t
5257 s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t
5258 s,@SET_MAKE@,$SET_MAKE,;t t
5259 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
5260 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
5261 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
5262 s,@CTAGS@,$CTAGS,;t t
5263 s,@ETAGS@,$ETAGS,;t t
5264 s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t
5265 s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t
5266 s,@LINT@,$LINT,;t t
5267 s,@LINT_OPTS@,$LINT_OPTS,;t t
5268 s,@CPP@,$CPP,;t t
5269 s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t
5270 s,@ECHO_LT@,$ECHO_LT,;t t
5271 s,@ECHO_LD@,$ECHO_LD,;t t
5272 s,@RULE_CC@,$RULE_CC,;t t
5273 s,@SHOW_CC@,$SHOW_CC,;t t
5274 s,@ECHO_CC@,$ECHO_CC,;t t
5275 CEOF
5276
5277 EOF
5278
5279 cat >>$CONFIG_STATUS <<\EOF
5280 # Split the substitutions into bite-sized pieces for seds with
5281 # small command number limits, like on Digital OSF/1 and HP-UX.
5282 ac_max_sed_lines=48
5283 ac_sed_frag=1 # Number of current file.
5284 ac_beg=1 # First line for current file.
5285 ac_end=$ac_max_sed_lines # Line after last line for current file.
5286 ac_more_lines=:
5287 ac_sed_cmds=
5288 while $ac_more_lines; do
5289 if test $ac_beg -gt 1; then
5290 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5291 else
5292 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5293 fi
5294 if test ! -s $tmp/subs.frag; then
5295 ac_more_lines=false
5296 else
5297 # The purpose of the label and of the branching condition is to
5298 # speed up the sed processing (if there are no `@' at all, there
5299 # is no need to browse any of the substitutions).
5300 # These are the two extra sed commands mentioned above.
5301 (echo ':t
5302 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
5303 if test -z "$ac_sed_cmds"; then
5304 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
5305 else
5306 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5307 fi
5308 ac_sed_frag=`expr $ac_sed_frag + 1`
5309 ac_beg=$ac_end
5310 ac_end=`expr $ac_end + $ac_max_sed_lines`
5311 fi
5312 done
5313 if test -z "$ac_sed_cmds"; then
5314 ac_sed_cmds=cat
5315 fi
5316 fi # test -n "$CONFIG_FILES"
5317
5318 EOF
5319 cat >>$CONFIG_STATUS <<\EOF
5320 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5321 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5322 case $ac_file in
5323 - | *:- | *:-:* ) # input from stdin
5324 cat >$tmp/stdin
5325 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5326 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5327 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5328 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5329 * ) ac_file_in=$ac_file.in ;;
5330 esac
5331
5332 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5333 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5334 X"$ac_file" : 'X\(//\)[^/]' \| \
5335 X"$ac_file" : 'X\(//\)$' \| \
5336 X"$ac_file" : 'X\(/\)' \| \
5337 . : '\(.\)' 2>/dev/null ||
5338 echo X"$ac_file" |
5339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5340 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5341 /^X\(\/\/\)$/{ s//\1/; q; }
5342 /^X\(\/\).*/{ s//\1/; q; }
5343 s/.*/./; q'`
5344 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5345 { case "$ac_dir" in
5346 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
5347 *) as_incr_dir=.;;
5348 esac
5349 as_dummy="$ac_dir"
5350 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
5351 case $as_mkdir_dir in
5352 # Skip DOS drivespec
5353 ?:) as_incr_dir=$as_mkdir_dir ;;
5354 *)
5355 as_incr_dir=$as_incr_dir/$as_mkdir_dir
5356 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
5357 ;;
5358 esac
5359 done; }
5360
5361 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
5362 # A "../" for each directory in $ac_dir_suffix.
5363 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
5364 else
5365 ac_dir_suffix= ac_dots=
5366 fi
5367
5368 case $srcdir in
5369 .) ac_srcdir=.
5370 if test -z "$ac_dots"; then
5371 ac_top_srcdir=.
5372 else
5373 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
5374 fi ;;
5375 [\\/]* | ?:[\\/]* )
5376 ac_srcdir=$srcdir$ac_dir_suffix;
5377 ac_top_srcdir=$srcdir ;;
5378 *) # Relative path.
5379 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
5380 ac_top_srcdir=$ac_dots$srcdir ;;
5381 esac
5382
5383 case $INSTALL in
5384 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5385 *) ac_INSTALL=$ac_dots$INSTALL ;;
5386 esac
5387
5388 if test x"$ac_file" != x-; then
5389 { echo "$as_me:5389: creating $ac_file" >&5
5390 echo "$as_me: creating $ac_file" >&6;}
5391 rm -f "$ac_file"
5392 fi
5393 # Let's still pretend it is `configure' which instantiates (i.e., don't
5394 # use $as_me), people would be surprised to read:
5395 # /* config.h. Generated automatically by config.status. */
5396 configure_input="Generated automatically from `echo $ac_file_in |
5397 sed 's,.*/,,'` by configure."
5398
5399 # First look for the input files in the build tree, otherwise in the
5400 # src tree.
5401 ac_file_inputs=`IFS=:
5402 for f in $ac_file_in; do
5403 case $f in
5404 -) echo $tmp/stdin ;;
5405 [\\/$]*)
5406 # Absolute (can't be DOS-style, as IFS=:)
5407 test -f "$f" || { { echo "$as_me:5407: error: cannot find input file: $f" >&5
5408 echo "$as_me: error: cannot find input file: $f" >&2;}
5409 { (exit 1); exit 1; }; }
5410 echo $f;;
5411 *) # Relative
5412 if test -f "$f"; then
5413 # Build tree
5414 echo $f
5415 elif test -f "$srcdir/$f"; then
5416 # Source tree
5417 echo $srcdir/$f
5418 else
5419 # /dev/null tree
5420 { { echo "$as_me:5420: error: cannot find input file: $f" >&5
5421 echo "$as_me: error: cannot find input file: $f" >&2;}
5422 { (exit 1); exit 1; }; }
5423 fi;;
5424 esac
5425 done` || { (exit 1); exit 1; }
5426 EOF
5427 cat >>$CONFIG_STATUS <<\EOF
5428 ac_warn_datarootdir=no
5429 if test x"$ac_file" != x-; then
5430 for ac_item in $ac_file_inputs
5431 do
5432 ac_seen=`grep '@\(datadir\|mandir\|infodir\)@' $ac_item`
5433 if test -n "$ac_seen"; then
5434 ac_used=`grep '@datarootdir@' $ac_item`
5435 if test -z "$ac_used"; then
5436 { echo "$as_me:5436: WARNING: datarootdir was used implicitly but not set:
5437 $ac_seen" >&5
5438 echo "$as_me: WARNING: datarootdir was used implicitly but not set:
5439 $ac_seen" >&2;}
5440 ac_warn_datarootdir=yes
5441 fi
5442 fi
5443 ac_seen=`grep '${datarootdir}' $ac_item`
5444 if test -n "$ac_seen"; then
5445 { echo "$as_me:5445: WARNING: datarootdir was used explicitly but not set:
5446 $ac_seen" >&5
5447 echo "$as_me: WARNING: datarootdir was used explicitly but not set:
5448 $ac_seen" >&2;}
5449 ac_warn_datarootdir=yes
5450 fi
5451 done
5452 fi
5453
5454 if test "x$ac_warn_datarootdir" = xyes; then
5455 ac_sed_cmds="$ac_sed_cmds | sed -e 's,@datarootdir@,\${prefix}/share,g' -e 's,\${datarootdir},\${prefix}/share,g'"
5456 fi
5457
5458 EOF
5459 cat >>$CONFIG_STATUS <<EOF
5460 sed "$ac_vpsub
5461 $extrasub
5462 EOF
5463 cat >>$CONFIG_STATUS <<\EOF
5464 :t
5465 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5466 s,@configure_input@,$configure_input,;t t
5467 s,@srcdir@,$ac_srcdir,;t t
5468 s,@top_srcdir@,$ac_top_srcdir,;t t
5469 s,@INSTALL@,$ac_INSTALL,;t t
5470 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5471 rm -f $tmp/stdin
5472 if test x"$ac_file" != x-; then
5473 cp $tmp/out $ac_file
5474
5475 for ac_name in prefix exec_prefix datarootdir
5476 do
5477 ac_seen=`fgrep -n '${'$ac_name'[:=].*}' $ac_file`
5478 if test -n "$ac_seen"; then
5479 ac_init=`egrep '[ ]*'$ac_name'[ ]*=' $ac_file`
5480 if test -z "$ac_init"; then
5481 ac_seen=`echo "$ac_seen" |sed -e 's,^,'$ac_file':,'`
5482 { echo "$as_me:5482: WARNING: Variable $ac_name is used but was not set:
5483 $ac_seen" >&5
5484 echo "$as_me: WARNING: Variable $ac_name is used but was not set:
5485 $ac_seen" >&2;}
5486 fi
5487 fi
5488 done
5489 egrep -n '@[a-z_][a-z_0-9]+@' $ac_file >$tmp/out
5490 egrep -n '@[A-Z_][A-Z_0-9]+@' $ac_file >>$tmp/out
5491 if test -s $tmp/out; then
5492 ac_seen=`sed -e 's,^,'$ac_file':,' < $tmp/out`
5493 { echo "$as_me:5493: WARNING: Some variables may not be substituted:
5494 $ac_seen" >&5
5495 echo "$as_me: WARNING: Some variables may not be substituted:
5496 $ac_seen" >&2;}
5497 fi
5498 else
5499 cat $tmp/out
5500 fi
5501 rm -f $tmp/out
5502
5503 done
5504 EOF
5505 cat >>$CONFIG_STATUS <<\EOF
5506
5507 #
5508 # CONFIG_HEADER section.
5509 #
5510
5511 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5512 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5513 #
5514 # ac_d sets the value in "#define NAME VALUE" lines.
5515 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5516 ac_dB='[ ].*$,\1#\2'
5517 ac_dC=' '
5518 ac_dD=',;t'
5519 # ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5520 ac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5521 ac_iB='\([ ]\),\1#\2define\3'
5522 ac_iC=' '
5523 ac_iD='\4,;t'
5524 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5525 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5526 ac_uB='$,\1#\2define\3'
5527 ac_uC=' '
5528 ac_uD=',;t'
5529
5530 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
5531 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5532 case $ac_file in
5533 - | *:- | *:-:* ) # input from stdin
5534 cat >$tmp/stdin
5535 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5536 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5537 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5538 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5539 * ) ac_file_in=$ac_file.in ;;
5540 esac
5541
5542 test x"$ac_file" != x- && { echo "$as_me:5542: creating $ac_file" >&5
5543 echo "$as_me: creating $ac_file" >&6;}
5544
5545 # First look for the input files in the build tree, otherwise in the
5546 # src tree.
5547 ac_file_inputs=`IFS=:
5548 for f in $ac_file_in; do
5549 case $f in
5550 -) echo $tmp/stdin ;;
5551 [\\/$]*)
5552 # Absolute (can't be DOS-style, as IFS=:)
5553 test -f "$f" || { { echo "$as_me:5553: error: cannot find input file: $f" >&5
5554 echo "$as_me: error: cannot find input file: $f" >&2;}
5555 { (exit 1); exit 1; }; }
5556 echo $f;;
5557 *) # Relative
5558 if test -f "$f"; then
5559 # Build tree
5560 echo $f
5561 elif test -f "$srcdir/$f"; then
5562 # Source tree
5563 echo $srcdir/$f
5564 else
5565 # /dev/null tree
5566 { { echo "$as_me:5566: error: cannot find input file: $f" >&5
5567 echo "$as_me: error: cannot find input file: $f" >&2;}
5568 { (exit 1); exit 1; }; }
5569 fi;;
5570 esac
5571 done` || { (exit 1); exit 1; }
5572 # Remove the trailing spaces.
5573 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
5574
5575 EOF
5576
5577 # Transform confdefs.h into two sed scripts, `conftest.defines' and
5578 # `conftest.undefs', that substitutes the proper values into
5579 # config.h.in to produce config.h. The first handles `#define'
5580 # templates, and the second `#undef' templates.
5581 # And first: Protect against being on the right side of a sed subst in
5582 # config.status. Protect against being in an unquoted here document
5583 # in config.status.
5584 rm -f conftest.defines conftest.undefs
5585 # Using a here document instead of a string reduces the quoting nightmare.
5586 # Putting comments in sed scripts is not portable.
5587 #
5588 # `end' is used to avoid that the second main sed command (meant for
5589 # 0-ary CPP macros) applies to n-ary macro definitions.
5590 # See the Autoconf documentation for `clear'.
5591 cat >confdef2sed.sed <<\EOF
5592 s/[\\&,]/\\&/g
5593 s,[\\$`],\\&,g
5594 t clear
5595 : clear
5596 s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
5597 t end
5598 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
5599 : end
5600 EOF
5601 # If some macros were called several times there might be several times
5602 # the same #defines, which is useless. Nevertheless, we may not want to
5603 # sort them, since we want the *last* AC-DEFINE to be honored.
5604 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
5605 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
5606 sed 's/ac_d/ac_i/g' conftest.defines >>conftest.undefs
5607 rm -f confdef2sed.sed
5608
5609 # This sed command replaces #undef with comments. This is necessary, for
5610 # example, in the case of _POSIX_SOURCE, which is predefined and required
5611 # on some systems where configure will not decide to define it.
5612 cat >>conftest.undefs <<\EOF
5613 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
5614 EOF
5615
5616 # Break up conftest.defines because some shells have a limit on the size
5617 # of here documents, and old seds have small limits too (100 cmds).
5618 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
5619 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
5620 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
5621 echo ' :' >>$CONFIG_STATUS
5622 rm -f conftest.tail
5623 while grep . conftest.defines >/dev/null
5624 do
5625 # Write a limited-size here document to $tmp/defines.sed.
5626 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
5627 # Speed up: don't consider the non `#define' lines.
5628 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
5629 # Work around the forget-to-reset-the-flag bug.
5630 echo 't clr' >>$CONFIG_STATUS
5631 echo ': clr' >>$CONFIG_STATUS
5632 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
5633 echo 'CEOF
5634 sed -f $tmp/defines.sed $tmp/in >$tmp/out
5635 rm -f $tmp/in
5636 mv $tmp/out $tmp/in
5637 ' >>$CONFIG_STATUS
5638 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
5639 rm -f conftest.defines
5640 mv conftest.tail conftest.defines
5641 done
5642 rm -f conftest.defines
5643 echo ' fi # egrep' >>$CONFIG_STATUS
5644 echo >>$CONFIG_STATUS
5645
5646 # Break up conftest.undefs because some shells have a limit on the size
5647 # of here documents, and old seds have small limits too (100 cmds).
5648 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
5649 rm -f conftest.tail
5650 while grep . conftest.undefs >/dev/null
5651 do
5652 # Write a limited-size here document to $tmp/undefs.sed.
5653 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
5654 # Speed up: don't consider the non `#undef'
5655 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
5656 # Work around the forget-to-reset-the-flag bug.
5657 echo 't clr' >>$CONFIG_STATUS
5658 echo ': clr' >>$CONFIG_STATUS
5659 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
5660 echo 'CEOF
5661 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
5662 rm -f $tmp/in
5663 mv $tmp/out $tmp/in
5664 ' >>$CONFIG_STATUS
5665 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
5666 rm -f conftest.undefs
5667 mv conftest.tail conftest.undefs
5668 done
5669 rm -f conftest.undefs
5670
5671 cat >>$CONFIG_STATUS <<\EOF
5672 # Let's still pretend it is `configure' which instantiates (i.e., don't
5673 # use $as_me), people would be surprised to read:
5674 # /* config.h. Generated automatically by config.status. */
5675 if test x"$ac_file" = x-; then
5676 echo "/* Generated automatically by configure. */" >$tmp/config.h
5677 else
5678 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
5679 fi
5680 cat $tmp/in >>$tmp/config.h
5681 rm -f $tmp/in
5682 if test x"$ac_file" != x-; then
5683 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
5684 { echo "$as_me:5684: $ac_file is unchanged" >&5
5685 echo "$as_me: $ac_file is unchanged" >&6;}
5686 else
5687 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5688 X"$ac_file" : 'X\(//\)[^/]' \| \
5689 X"$ac_file" : 'X\(//\)$' \| \
5690 X"$ac_file" : 'X\(/\)' \| \
5691 . : '\(.\)' 2>/dev/null ||
5692 echo X"$ac_file" |
5693 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5694 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5695 /^X\(\/\/\)$/{ s//\1/; q; }
5696 /^X\(\/\).*/{ s//\1/; q; }
5697 s/.*/./; q'`
5698 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5699 { case "$ac_dir" in
5700 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
5701 *) as_incr_dir=.;;
5702 esac
5703 as_dummy="$ac_dir"
5704 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
5705 case $as_mkdir_dir in
5706 # Skip DOS drivespec
5707 ?:) as_incr_dir=$as_mkdir_dir ;;
5708 *)
5709 as_incr_dir=$as_incr_dir/$as_mkdir_dir
5710 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
5711 ;;
5712 esac
5713 done; }
5714
5715 fi
5716 rm -f $ac_file
5717 mv $tmp/config.h $ac_file
5718 fi
5719 else
5720 cat $tmp/config.h
5721 rm -f $tmp/config.h
5722 fi
5723 done
5724 EOF
5725
5726 cat >>$CONFIG_STATUS <<\EOF
5727
5728 { (exit 0); exit 0; }
5729 EOF
5730 chmod +x $CONFIG_STATUS
5731 ac_clean_files=$ac_clean_files_save
5732
5733 # configure is writing to config.log, and then calls config.status.
5734 # config.status does its own redirection, appending to config.log.
5735 # Unfortunately, on DOS this fails, as config.log is still kept open
5736 # by configure, so config.status won't be able to write to it; its
5737 # output is simply discarded. So we exec the FD to /dev/null,
5738 # effectively closing config.log, so it can be properly (re)opened and
5739 # appended to by config.status. When coming back to configure, we
5740 # need to make the FD available again.
5741 if test "$no_create" != yes; then
5742 ac_cs_success=:
5743 exec 5>/dev/null
5744 $SHELL $CONFIG_STATUS || ac_cs_success=false
5745 exec 5>>config.log
5746 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5747 # would make configure fail if this is the last instruction.
5748 $ac_cs_success || { (exit 1); exit 1; }
5749 fi
5750
5751