don't check when its clang masquerading as gcc
[AROS.git] / tools / cxref / configure
blob9cde1d00813c69282d9fd0ee4fe73aaa854ab1cd
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
96 rm -f conf$$.sh
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
154 esac
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
249 exec 6>&1
252 # Initializations.
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
274 ac_unique_file="cxref.c"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 # include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 # include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 # include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
312 ac_subdirs_all="$ac_subdirs_all cpp"
313 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS PAGE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT AWK YACC CPP LEX LEXLIB LEX_OUTPUT_ROOT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S SET_MAKE PERL LATEX DVIPS EGREP ALLOCA objdir subdirs LIBOBJS LTLIBOBJS'
314 ac_subst_files=''
316 # Initialize some variables set by options.
317 ac_init_help=
318 ac_init_version=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
321 cache_file=/dev/null
322 exec_prefix=NONE
323 no_create=
324 no_recursion=
325 prefix=NONE
326 program_prefix=NONE
327 program_suffix=NONE
328 program_transform_name=s,x,x,
329 silent=
330 site=
331 srcdir=
332 verbose=
333 x_includes=NONE
334 x_libraries=NONE
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir='${exec_prefix}/bin'
342 sbindir='${exec_prefix}/sbin'
343 libexecdir='${exec_prefix}/libexec'
344 datadir='${prefix}/share'
345 sysconfdir='${prefix}/etc'
346 sharedstatedir='${prefix}/com'
347 localstatedir='${prefix}/var'
348 libdir='${exec_prefix}/lib'
349 includedir='${prefix}/include'
350 oldincludedir='/usr/include'
351 infodir='${prefix}/info'
352 mandir='${prefix}/man'
354 ac_prev=
355 for ac_option
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
360 ac_prev=
361 continue
364 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366 # Accept the important Cygnus configure options, so we can diagnose typos.
368 case $ac_option in
370 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 ac_prev=bindir ;;
372 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373 bindir=$ac_optarg ;;
375 -build | --build | --buil | --bui | --bu)
376 ac_prev=build_alias ;;
377 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378 build_alias=$ac_optarg ;;
380 -cache-file | --cache-file | --cache-fil | --cache-fi \
381 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382 ac_prev=cache_file ;;
383 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385 cache_file=$ac_optarg ;;
387 --config-cache | -C)
388 cache_file=config.cache ;;
390 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 ac_prev=datadir ;;
392 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 | --da=*)
394 datadir=$ac_optarg ;;
396 -disable-* | --disable-*)
397 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398 # Reject names that are not valid shell variable names.
399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 { (exit 1); exit 1; }; }
402 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403 eval "enable_$ac_feature=no" ;;
405 -enable-* | --enable-*)
406 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407 # Reject names that are not valid shell variable names.
408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 { (exit 1); exit 1; }; }
411 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 case $ac_option in
413 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414 *) ac_optarg=yes ;;
415 esac
416 eval "enable_$ac_feature='$ac_optarg'" ;;
418 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420 | --exec | --exe | --ex)
421 ac_prev=exec_prefix ;;
422 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424 | --exec=* | --exe=* | --ex=*)
425 exec_prefix=$ac_optarg ;;
427 -gas | --gas | --ga | --g)
428 # Obsolete; use --with-gas.
429 with_gas=yes ;;
431 -help | --help | --hel | --he | -h)
432 ac_init_help=long ;;
433 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434 ac_init_help=recursive ;;
435 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436 ac_init_help=short ;;
438 -host | --host | --hos | --ho)
439 ac_prev=host_alias ;;
440 -host=* | --host=* | --hos=* | --ho=*)
441 host_alias=$ac_optarg ;;
443 -includedir | --includedir | --includedi | --included | --include \
444 | --includ | --inclu | --incl | --inc)
445 ac_prev=includedir ;;
446 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447 | --includ=* | --inclu=* | --incl=* | --inc=*)
448 includedir=$ac_optarg ;;
450 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 ac_prev=infodir ;;
452 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453 infodir=$ac_optarg ;;
455 -libdir | --libdir | --libdi | --libd)
456 ac_prev=libdir ;;
457 -libdir=* | --libdir=* | --libdi=* | --libd=*)
458 libdir=$ac_optarg ;;
460 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461 | --libexe | --libex | --libe)
462 ac_prev=libexecdir ;;
463 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464 | --libexe=* | --libex=* | --libe=*)
465 libexecdir=$ac_optarg ;;
467 -localstatedir | --localstatedir | --localstatedi | --localstated \
468 | --localstate | --localstat | --localsta | --localst \
469 | --locals | --local | --loca | --loc | --lo)
470 ac_prev=localstatedir ;;
471 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474 localstatedir=$ac_optarg ;;
476 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 ac_prev=mandir ;;
478 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
479 mandir=$ac_optarg ;;
481 -nfp | --nfp | --nf)
482 # Obsolete; use --without-fp.
483 with_fp=no ;;
485 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486 | --no-cr | --no-c | -n)
487 no_create=yes ;;
489 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491 no_recursion=yes ;;
493 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495 | --oldin | --oldi | --old | --ol | --o)
496 ac_prev=oldincludedir ;;
497 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500 oldincludedir=$ac_optarg ;;
502 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 ac_prev=prefix ;;
504 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505 prefix=$ac_optarg ;;
507 -program-prefix | --program-prefix | --program-prefi | --program-pref \
508 | --program-pre | --program-pr | --program-p)
509 ac_prev=program_prefix ;;
510 -program-prefix=* | --program-prefix=* | --program-prefi=* \
511 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512 program_prefix=$ac_optarg ;;
514 -program-suffix | --program-suffix | --program-suffi | --program-suff \
515 | --program-suf | --program-su | --program-s)
516 ac_prev=program_suffix ;;
517 -program-suffix=* | --program-suffix=* | --program-suffi=* \
518 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519 program_suffix=$ac_optarg ;;
521 -program-transform-name | --program-transform-name \
522 | --program-transform-nam | --program-transform-na \
523 | --program-transform-n | --program-transform- \
524 | --program-transform | --program-transfor \
525 | --program-transfo | --program-transf \
526 | --program-trans | --program-tran \
527 | --progr-tra | --program-tr | --program-t)
528 ac_prev=program_transform_name ;;
529 -program-transform-name=* | --program-transform-name=* \
530 | --program-transform-nam=* | --program-transform-na=* \
531 | --program-transform-n=* | --program-transform-=* \
532 | --program-transform=* | --program-transfor=* \
533 | --program-transfo=* | --program-transf=* \
534 | --program-trans=* | --program-tran=* \
535 | --progr-tra=* | --program-tr=* | --program-t=*)
536 program_transform_name=$ac_optarg ;;
538 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539 | -silent | --silent | --silen | --sile | --sil)
540 silent=yes ;;
542 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 ac_prev=sbindir ;;
544 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 | --sbi=* | --sb=*)
546 sbindir=$ac_optarg ;;
548 -sharedstatedir | --sharedstatedir | --sharedstatedi \
549 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550 | --sharedst | --shareds | --shared | --share | --shar \
551 | --sha | --sh)
552 ac_prev=sharedstatedir ;;
553 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 | --sha=* | --sh=*)
557 sharedstatedir=$ac_optarg ;;
559 -site | --site | --sit)
560 ac_prev=site ;;
561 -site=* | --site=* | --sit=*)
562 site=$ac_optarg ;;
564 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 ac_prev=srcdir ;;
566 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567 srcdir=$ac_optarg ;;
569 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570 | --syscon | --sysco | --sysc | --sys | --sy)
571 ac_prev=sysconfdir ;;
572 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574 sysconfdir=$ac_optarg ;;
576 -target | --target | --targe | --targ | --tar | --ta | --t)
577 ac_prev=target_alias ;;
578 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579 target_alias=$ac_optarg ;;
581 -v | -verbose | --verbose | --verbos | --verbo | --verb)
582 verbose=yes ;;
584 -version | --version | --versio | --versi | --vers | -V)
585 ac_init_version=: ;;
587 -with-* | --with-*)
588 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589 # Reject names that are not valid shell variable names.
590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591 { echo "$as_me: error: invalid package name: $ac_package" >&2
592 { (exit 1); exit 1; }; }
593 ac_package=`echo $ac_package| sed 's/-/_/g'`
594 case $ac_option in
595 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596 *) ac_optarg=yes ;;
597 esac
598 eval "with_$ac_package='$ac_optarg'" ;;
600 -without-* | --without-*)
601 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602 # Reject names that are not valid shell variable names.
603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604 { echo "$as_me: error: invalid package name: $ac_package" >&2
605 { (exit 1); exit 1; }; }
606 ac_package=`echo $ac_package | sed 's/-/_/g'`
607 eval "with_$ac_package=no" ;;
609 --x)
610 # Obsolete; use --with-x.
611 with_x=yes ;;
613 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614 | --x-incl | --x-inc | --x-in | --x-i)
615 ac_prev=x_includes ;;
616 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618 x_includes=$ac_optarg ;;
620 -x-libraries | --x-libraries | --x-librarie | --x-librari \
621 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622 ac_prev=x_libraries ;;
623 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625 x_libraries=$ac_optarg ;;
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
632 *=*)
633 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634 # Reject names that are not valid shell variable names.
635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637 { (exit 1); exit 1; }; }
638 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 eval "$ac_envvar='$ac_optarg'"
640 export $ac_envvar ;;
643 # FIXME: should be removed in autoconf 3.0.
644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
650 esac
651 done
653 if test -n "$ac_prev"; then
654 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655 { echo "$as_me: error: missing argument to $ac_option" >&2
656 { (exit 1); exit 1; }; }
659 # Be sure to have absolute paths.
660 for ac_var in exec_prefix prefix
662 eval ac_val=$`echo $ac_var`
663 case $ac_val in
664 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
667 esac
668 done
670 # Be sure to have absolute paths.
671 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
674 eval ac_val=$`echo $ac_var`
675 case $ac_val in
676 [\\/$]* | ?:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
679 esac
680 done
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
685 build=$build_alias
686 host=$host_alias
687 target=$target_alias
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x; then
691 if test "x$build_alias" = x; then
692 cross_compiling=maybe
693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694 If a cross compiler is detected then cross compile mode will be used." >&2
695 elif test "x$build_alias" != "x$host_alias"; then
696 cross_compiling=yes
700 ac_tool_prefix=
701 test -n "$host_alias" && ac_tool_prefix=$host_alias-
703 test "$silent" = yes && exec 6>/dev/null
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708 ac_srcdir_defaulted=yes
709 # Try the directory containing this script, then its parent.
710 ac_confdir=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712 X"$0" : 'X\(//\)[^/]' \| \
713 X"$0" : 'X\(//\)$' \| \
714 X"$0" : 'X\(/\)' \| \
715 . : '\(.\)' 2>/dev/null ||
716 echo X"$0" |
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
721 s/.*/./; q'`
722 srcdir=$ac_confdir
723 if test ! -r $srcdir/$ac_unique_file; then
724 srcdir=..
726 else
727 ac_srcdir_defaulted=no
729 if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 { (exit 1); exit 1; }; }
733 else
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
738 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740 { (exit 1); exit 1; }; }
741 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set=${build_alias+set}
743 ac_env_build_alias_value=$build_alias
744 ac_cv_env_build_alias_set=${build_alias+set}
745 ac_cv_env_build_alias_value=$build_alias
746 ac_env_host_alias_set=${host_alias+set}
747 ac_env_host_alias_value=$host_alias
748 ac_cv_env_host_alias_set=${host_alias+set}
749 ac_cv_env_host_alias_value=$host_alias
750 ac_env_target_alias_set=${target_alias+set}
751 ac_env_target_alias_value=$target_alias
752 ac_cv_env_target_alias_set=${target_alias+set}
753 ac_cv_env_target_alias_value=$target_alias
754 ac_env_CC_set=${CC+set}
755 ac_env_CC_value=$CC
756 ac_cv_env_CC_set=${CC+set}
757 ac_cv_env_CC_value=$CC
758 ac_env_CFLAGS_set=${CFLAGS+set}
759 ac_env_CFLAGS_value=$CFLAGS
760 ac_cv_env_CFLAGS_set=${CFLAGS+set}
761 ac_cv_env_CFLAGS_value=$CFLAGS
762 ac_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_env_LDFLAGS_value=$LDFLAGS
764 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
765 ac_cv_env_LDFLAGS_value=$LDFLAGS
766 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_env_CPPFLAGS_value=$CPPFLAGS
768 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
770 ac_env_CPP_set=${CPP+set}
771 ac_env_CPP_value=$CPP
772 ac_cv_env_CPP_set=${CPP+set}
773 ac_cv_env_CPP_value=$CPP
776 # Report the --help message.
778 if test "$ac_init_help" = "long"; then
779 # Omit some internal or obsolete options to make the list less imposing.
780 # This message is too long to be a string in the A/UX 3.1 sh.
781 cat <<_ACEOF
782 \`configure' configures this package to adapt to many kinds of systems.
784 Usage: $0 [OPTION]... [VAR=VALUE]...
786 To assign environment variables (e.g., CC, CFLAGS...), specify them as
787 VAR=VALUE. See below for descriptions of some of the useful variables.
789 Defaults for the options are specified in brackets.
791 Configuration:
792 -h, --help display this help and exit
793 --help=short display options specific to this package
794 --help=recursive display the short help of all the included packages
795 -V, --version display version information and exit
796 -q, --quiet, --silent do not print \`checking...' messages
797 --cache-file=FILE cache test results in FILE [disabled]
798 -C, --config-cache alias for \`--cache-file=config.cache'
799 -n, --no-create do not create output files
800 --srcdir=DIR find the sources in DIR [configure dir or \`..']
802 _ACEOF
804 cat <<_ACEOF
805 Installation directories:
806 --prefix=PREFIX install architecture-independent files in PREFIX
807 [$ac_default_prefix]
808 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
809 [PREFIX]
811 By default, \`make install' will install all the files in
812 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
813 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814 for instance \`--prefix=\$HOME'.
816 For better control, use the options below.
818 Fine tuning of the installation directories:
819 --bindir=DIR user executables [EPREFIX/bin]
820 --sbindir=DIR system admin executables [EPREFIX/sbin]
821 --libexecdir=DIR program executables [EPREFIX/libexec]
822 --datadir=DIR read-only architecture-independent data [PREFIX/share]
823 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
824 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
825 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
826 --libdir=DIR object code libraries [EPREFIX/lib]
827 --includedir=DIR C header files [PREFIX/include]
828 --oldincludedir=DIR C header files for non-gcc [/usr/include]
829 --infodir=DIR info documentation [PREFIX/info]
830 --mandir=DIR man documentation [PREFIX/man]
831 _ACEOF
833 cat <<\_ACEOF
834 _ACEOF
837 if test -n "$ac_init_help"; then
839 cat <<\_ACEOF
841 Optional Features:
842 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
843 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
844 --enable-us-paper use US paper instead of A4
846 Optional Packages:
847 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
848 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
849 --with-cxref-cpp use the supplied cpp instead of trying to use gcc
851 Some influential environment variables:
852 CC C compiler command
853 CFLAGS C compiler flags
854 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
855 nonstandard directory <lib dir>
856 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
857 headers in a nonstandard directory <include dir>
858 CPP C preprocessor
860 Use these variables to override the choices made by `configure' or to help
861 it to find libraries and programs with nonstandard names/locations.
863 _ACEOF
866 if test "$ac_init_help" = "recursive"; then
867 # If there are subdirs, report their specific --help.
868 ac_popdir=`pwd`
869 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
870 test -d $ac_dir || continue
871 ac_builddir=.
873 if test "$ac_dir" != .; then
874 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
875 # A "../" for each directory in $ac_dir_suffix.
876 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
877 else
878 ac_dir_suffix= ac_top_builddir=
881 case $srcdir in
882 .) # No --srcdir option. We are building in place.
883 ac_srcdir=.
884 if test -z "$ac_top_builddir"; then
885 ac_top_srcdir=.
886 else
887 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
888 fi ;;
889 [\\/]* | ?:[\\/]* ) # Absolute path.
890 ac_srcdir=$srcdir$ac_dir_suffix;
891 ac_top_srcdir=$srcdir ;;
892 *) # Relative path.
893 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
894 ac_top_srcdir=$ac_top_builddir$srcdir ;;
895 esac
897 # Do not use `cd foo && pwd` to compute absolute paths, because
898 # the directories may not exist.
899 case `pwd` in
900 .) ac_abs_builddir="$ac_dir";;
902 case "$ac_dir" in
903 .) ac_abs_builddir=`pwd`;;
904 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
905 *) ac_abs_builddir=`pwd`/"$ac_dir";;
906 esac;;
907 esac
908 case $ac_abs_builddir in
909 .) ac_abs_top_builddir=${ac_top_builddir}.;;
911 case ${ac_top_builddir}. in
912 .) ac_abs_top_builddir=$ac_abs_builddir;;
913 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
914 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
915 esac;;
916 esac
917 case $ac_abs_builddir in
918 .) ac_abs_srcdir=$ac_srcdir;;
920 case $ac_srcdir in
921 .) ac_abs_srcdir=$ac_abs_builddir;;
922 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
923 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
924 esac;;
925 esac
926 case $ac_abs_builddir in
927 .) ac_abs_top_srcdir=$ac_top_srcdir;;
929 case $ac_top_srcdir in
930 .) ac_abs_top_srcdir=$ac_abs_builddir;;
931 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
932 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
933 esac;;
934 esac
936 cd $ac_dir
937 # Check for guested configure; otherwise get Cygnus style configure.
938 if test -f $ac_srcdir/configure.gnu; then
939 echo
940 $SHELL $ac_srcdir/configure.gnu --help=recursive
941 elif test -f $ac_srcdir/configure; then
942 echo
943 $SHELL $ac_srcdir/configure --help=recursive
944 elif test -f $ac_srcdir/configure.ac ||
945 test -f $ac_srcdir/configure.in; then
946 echo
947 $ac_configure --help
948 else
949 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
951 cd $ac_popdir
952 done
955 test -n "$ac_init_help" && exit 0
956 if $ac_init_version; then
957 cat <<\_ACEOF
959 Copyright (C) 2003 Free Software Foundation, Inc.
960 This configure script is free software; the Free Software Foundation
961 gives unlimited permission to copy, distribute and modify it.
962 _ACEOF
963 exit 0
965 exec 5>config.log
966 cat >&5 <<_ACEOF
967 This file contains any messages produced by compilers while
968 running configure, to aid debugging if configure makes a mistake.
970 It was created by $as_me, which was
971 generated by GNU Autoconf 2.59. Invocation command line was
973 $ $0 $@
975 _ACEOF
977 cat <<_ASUNAME
978 ## --------- ##
979 ## Platform. ##
980 ## --------- ##
982 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
983 uname -m = `(uname -m) 2>/dev/null || echo unknown`
984 uname -r = `(uname -r) 2>/dev/null || echo unknown`
985 uname -s = `(uname -s) 2>/dev/null || echo unknown`
986 uname -v = `(uname -v) 2>/dev/null || echo unknown`
988 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
989 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
991 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
992 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
993 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
994 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
995 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
996 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
997 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
999 _ASUNAME
1001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1002 for as_dir in $PATH
1004 IFS=$as_save_IFS
1005 test -z "$as_dir" && as_dir=.
1006 echo "PATH: $as_dir"
1007 done
1009 } >&5
1011 cat >&5 <<_ACEOF
1014 ## ----------- ##
1015 ## Core tests. ##
1016 ## ----------- ##
1018 _ACEOF
1021 # Keep a trace of the command line.
1022 # Strip out --no-create and --no-recursion so they do not pile up.
1023 # Strip out --silent because we don't want to record it for future runs.
1024 # Also quote any args containing shell meta-characters.
1025 # Make two passes to allow for proper duplicate-argument suppression.
1026 ac_configure_args=
1027 ac_configure_args0=
1028 ac_configure_args1=
1029 ac_sep=
1030 ac_must_keep_next=false
1031 for ac_pass in 1 2
1033 for ac_arg
1035 case $ac_arg in
1036 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1037 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1038 | -silent | --silent | --silen | --sile | --sil)
1039 continue ;;
1040 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1041 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1042 esac
1043 case $ac_pass in
1044 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1046 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1047 if test $ac_must_keep_next = true; then
1048 ac_must_keep_next=false # Got value, back to normal.
1049 else
1050 case $ac_arg in
1051 *=* | --config-cache | -C | -disable-* | --disable-* \
1052 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1053 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1054 | -with-* | --with-* | -without-* | --without-* | --x)
1055 case "$ac_configure_args0 " in
1056 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1057 esac
1059 -* ) ac_must_keep_next=true ;;
1060 esac
1062 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1063 # Get rid of the leading space.
1064 ac_sep=" "
1066 esac
1067 done
1068 done
1069 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1070 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1072 # When interrupted or exit'd, cleanup temporary files, and complete
1073 # config.log. We remove comments because anyway the quotes in there
1074 # would cause problems or look ugly.
1075 # WARNING: Be sure not to use single quotes in there, as some shells,
1076 # such as our DU 5.0 friend, will then `close' the trap.
1077 trap 'exit_status=$?
1078 # Save into config.log some information that might help in debugging.
1080 echo
1082 cat <<\_ASBOX
1083 ## ---------------- ##
1084 ## Cache variables. ##
1085 ## ---------------- ##
1086 _ASBOX
1087 echo
1088 # The following way of writing the cache mishandles newlines in values,
1090 (set) 2>&1 |
1091 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1092 *ac_space=\ *)
1093 sed -n \
1094 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1095 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1098 sed -n \
1099 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1101 esac;
1103 echo
1105 cat <<\_ASBOX
1106 ## ----------------- ##
1107 ## Output variables. ##
1108 ## ----------------- ##
1109 _ASBOX
1110 echo
1111 for ac_var in $ac_subst_vars
1113 eval ac_val=$`echo $ac_var`
1114 echo "$ac_var='"'"'$ac_val'"'"'"
1115 done | sort
1116 echo
1118 if test -n "$ac_subst_files"; then
1119 cat <<\_ASBOX
1120 ## ------------- ##
1121 ## Output files. ##
1122 ## ------------- ##
1123 _ASBOX
1124 echo
1125 for ac_var in $ac_subst_files
1127 eval ac_val=$`echo $ac_var`
1128 echo "$ac_var='"'"'$ac_val'"'"'"
1129 done | sort
1130 echo
1133 if test -s confdefs.h; then
1134 cat <<\_ASBOX
1135 ## ----------- ##
1136 ## confdefs.h. ##
1137 ## ----------- ##
1138 _ASBOX
1139 echo
1140 sed "/^$/d" confdefs.h | sort
1141 echo
1143 test "$ac_signal" != 0 &&
1144 echo "$as_me: caught signal $ac_signal"
1145 echo "$as_me: exit $exit_status"
1146 } >&5
1147 rm -f core *.core &&
1148 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1149 exit $exit_status
1151 for ac_signal in 1 2 13 15; do
1152 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1153 done
1154 ac_signal=0
1156 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1157 rm -rf conftest* confdefs.h
1158 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1159 echo >confdefs.h
1161 # Predefined preprocessor variables.
1163 cat >>confdefs.h <<_ACEOF
1164 #define PACKAGE_NAME "$PACKAGE_NAME"
1165 _ACEOF
1168 cat >>confdefs.h <<_ACEOF
1169 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1170 _ACEOF
1173 cat >>confdefs.h <<_ACEOF
1174 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1175 _ACEOF
1178 cat >>confdefs.h <<_ACEOF
1179 #define PACKAGE_STRING "$PACKAGE_STRING"
1180 _ACEOF
1183 cat >>confdefs.h <<_ACEOF
1184 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1185 _ACEOF
1188 # Let the site file select an alternate cache file if it wants to.
1189 # Prefer explicitly selected file to automatically selected ones.
1190 if test -z "$CONFIG_SITE"; then
1191 if test "x$prefix" != xNONE; then
1192 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1193 else
1194 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1197 for ac_site_file in $CONFIG_SITE; do
1198 if test -r "$ac_site_file"; then
1199 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1200 echo "$as_me: loading site script $ac_site_file" >&6;}
1201 sed 's/^/| /' "$ac_site_file" >&5
1202 . "$ac_site_file"
1204 done
1206 if test -r "$cache_file"; then
1207 # Some versions of bash will fail to source /dev/null (special
1208 # files actually), so we avoid doing that.
1209 if test -f "$cache_file"; then
1210 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1211 echo "$as_me: loading cache $cache_file" >&6;}
1212 case $cache_file in
1213 [\\/]* | ?:[\\/]* ) . $cache_file;;
1214 *) . ./$cache_file;;
1215 esac
1217 else
1218 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1219 echo "$as_me: creating cache $cache_file" >&6;}
1220 >$cache_file
1223 # Check that the precious variables saved in the cache have kept the same
1224 # value.
1225 ac_cache_corrupted=false
1226 for ac_var in `(set) 2>&1 |
1227 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1228 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1229 eval ac_new_set=\$ac_env_${ac_var}_set
1230 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1231 eval ac_new_val="\$ac_env_${ac_var}_value"
1232 case $ac_old_set,$ac_new_set in
1233 set,)
1234 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1235 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1236 ac_cache_corrupted=: ;;
1237 ,set)
1238 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1239 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1240 ac_cache_corrupted=: ;;
1241 ,);;
1243 if test "x$ac_old_val" != "x$ac_new_val"; then
1244 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1245 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1246 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1247 echo "$as_me: former value: $ac_old_val" >&2;}
1248 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1249 echo "$as_me: current value: $ac_new_val" >&2;}
1250 ac_cache_corrupted=:
1251 fi;;
1252 esac
1253 # Pass precious variables to config.status.
1254 if test "$ac_new_set" = set; then
1255 case $ac_new_val in
1256 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1257 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1258 *) ac_arg=$ac_var=$ac_new_val ;;
1259 esac
1260 case " $ac_configure_args " in
1261 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1262 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1263 esac
1265 done
1266 if $ac_cache_corrupted; then
1267 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1268 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1269 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1270 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1271 { (exit 1); exit 1; }; }
1274 ac_ext=c
1275 ac_cpp='$CPP $CPPFLAGS'
1276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1278 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1299 ac_config_headers="$ac_config_headers autoconfig.h"
1302 PAGE=A4
1303 # Check whether --enable-us-paper or --disable-us-paper was given.
1304 if test "${enable_us_paper+set}" = set; then
1305 enableval="$enable_us_paper"
1306 if test "$enableval" = "yes"; then PAGE=US; fi
1310 WITH_CXREF_CPP=test
1312 # Check whether --with-cxref-cpp or --without-cxref-cpp was given.
1313 if test "${with_cxref_cpp+set}" = set; then
1314 withval="$with_cxref_cpp"
1315 if test "$withval" = "yes"; then WITH_CXREF_CPP=yes; fi
1318 ac_ext=c
1319 ac_cpp='$CPP $CPPFLAGS'
1320 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1321 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1322 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1323 if test -n "$ac_tool_prefix"; then
1324 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1325 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1326 echo "$as_me:$LINENO: checking for $ac_word" >&5
1327 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1328 if test "${ac_cv_prog_CC+set}" = set; then
1329 echo $ECHO_N "(cached) $ECHO_C" >&6
1330 else
1331 if test -n "$CC"; then
1332 ac_cv_prog_CC="$CC" # Let the user override the test.
1333 else
1334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1335 for as_dir in $PATH
1337 IFS=$as_save_IFS
1338 test -z "$as_dir" && as_dir=.
1339 for ac_exec_ext in '' $ac_executable_extensions; do
1340 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1341 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1342 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1343 break 2
1345 done
1346 done
1350 CC=$ac_cv_prog_CC
1351 if test -n "$CC"; then
1352 echo "$as_me:$LINENO: result: $CC" >&5
1353 echo "${ECHO_T}$CC" >&6
1354 else
1355 echo "$as_me:$LINENO: result: no" >&5
1356 echo "${ECHO_T}no" >&6
1360 if test -z "$ac_cv_prog_CC"; then
1361 ac_ct_CC=$CC
1362 # Extract the first word of "gcc", so it can be a program name with args.
1363 set dummy gcc; ac_word=$2
1364 echo "$as_me:$LINENO: checking for $ac_word" >&5
1365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1366 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1367 echo $ECHO_N "(cached) $ECHO_C" >&6
1368 else
1369 if test -n "$ac_ct_CC"; then
1370 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1371 else
1372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1373 for as_dir in $PATH
1375 IFS=$as_save_IFS
1376 test -z "$as_dir" && as_dir=.
1377 for ac_exec_ext in '' $ac_executable_extensions; do
1378 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1379 ac_cv_prog_ac_ct_CC="gcc"
1380 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1381 break 2
1383 done
1384 done
1388 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1389 if test -n "$ac_ct_CC"; then
1390 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1391 echo "${ECHO_T}$ac_ct_CC" >&6
1392 else
1393 echo "$as_me:$LINENO: result: no" >&5
1394 echo "${ECHO_T}no" >&6
1397 CC=$ac_ct_CC
1398 else
1399 CC="$ac_cv_prog_CC"
1402 if test -z "$CC"; then
1403 if test -n "$ac_tool_prefix"; then
1404 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1405 set dummy ${ac_tool_prefix}cc; ac_word=$2
1406 echo "$as_me:$LINENO: checking for $ac_word" >&5
1407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1408 if test "${ac_cv_prog_CC+set}" = set; then
1409 echo $ECHO_N "(cached) $ECHO_C" >&6
1410 else
1411 if test -n "$CC"; then
1412 ac_cv_prog_CC="$CC" # Let the user override the test.
1413 else
1414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1415 for as_dir in $PATH
1417 IFS=$as_save_IFS
1418 test -z "$as_dir" && as_dir=.
1419 for ac_exec_ext in '' $ac_executable_extensions; do
1420 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1421 ac_cv_prog_CC="${ac_tool_prefix}cc"
1422 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1423 break 2
1425 done
1426 done
1430 CC=$ac_cv_prog_CC
1431 if test -n "$CC"; then
1432 echo "$as_me:$LINENO: result: $CC" >&5
1433 echo "${ECHO_T}$CC" >&6
1434 else
1435 echo "$as_me:$LINENO: result: no" >&5
1436 echo "${ECHO_T}no" >&6
1440 if test -z "$ac_cv_prog_CC"; then
1441 ac_ct_CC=$CC
1442 # Extract the first word of "cc", so it can be a program name with args.
1443 set dummy cc; ac_word=$2
1444 echo "$as_me:$LINENO: checking for $ac_word" >&5
1445 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1446 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1447 echo $ECHO_N "(cached) $ECHO_C" >&6
1448 else
1449 if test -n "$ac_ct_CC"; then
1450 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1451 else
1452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1453 for as_dir in $PATH
1455 IFS=$as_save_IFS
1456 test -z "$as_dir" && as_dir=.
1457 for ac_exec_ext in '' $ac_executable_extensions; do
1458 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1459 ac_cv_prog_ac_ct_CC="cc"
1460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1461 break 2
1463 done
1464 done
1468 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1469 if test -n "$ac_ct_CC"; then
1470 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1471 echo "${ECHO_T}$ac_ct_CC" >&6
1472 else
1473 echo "$as_me:$LINENO: result: no" >&5
1474 echo "${ECHO_T}no" >&6
1477 CC=$ac_ct_CC
1478 else
1479 CC="$ac_cv_prog_CC"
1483 if test -z "$CC"; then
1484 # Extract the first word of "cc", so it can be a program name with args.
1485 set dummy cc; ac_word=$2
1486 echo "$as_me:$LINENO: checking for $ac_word" >&5
1487 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1488 if test "${ac_cv_prog_CC+set}" = set; then
1489 echo $ECHO_N "(cached) $ECHO_C" >&6
1490 else
1491 if test -n "$CC"; then
1492 ac_cv_prog_CC="$CC" # Let the user override the test.
1493 else
1494 ac_prog_rejected=no
1495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1496 for as_dir in $PATH
1498 IFS=$as_save_IFS
1499 test -z "$as_dir" && as_dir=.
1500 for ac_exec_ext in '' $ac_executable_extensions; do
1501 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1502 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1503 ac_prog_rejected=yes
1504 continue
1506 ac_cv_prog_CC="cc"
1507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1508 break 2
1510 done
1511 done
1513 if test $ac_prog_rejected = yes; then
1514 # We found a bogon in the path, so make sure we never use it.
1515 set dummy $ac_cv_prog_CC
1516 shift
1517 if test $# != 0; then
1518 # We chose a different compiler from the bogus one.
1519 # However, it has the same basename, so the bogon will be chosen
1520 # first if we set CC to just the basename; use the full file name.
1521 shift
1522 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1527 CC=$ac_cv_prog_CC
1528 if test -n "$CC"; then
1529 echo "$as_me:$LINENO: result: $CC" >&5
1530 echo "${ECHO_T}$CC" >&6
1531 else
1532 echo "$as_me:$LINENO: result: no" >&5
1533 echo "${ECHO_T}no" >&6
1537 if test -z "$CC"; then
1538 if test -n "$ac_tool_prefix"; then
1539 for ac_prog in cl
1541 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1542 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1543 echo "$as_me:$LINENO: checking for $ac_word" >&5
1544 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1545 if test "${ac_cv_prog_CC+set}" = set; then
1546 echo $ECHO_N "(cached) $ECHO_C" >&6
1547 else
1548 if test -n "$CC"; then
1549 ac_cv_prog_CC="$CC" # Let the user override the test.
1550 else
1551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1552 for as_dir in $PATH
1554 IFS=$as_save_IFS
1555 test -z "$as_dir" && as_dir=.
1556 for ac_exec_ext in '' $ac_executable_extensions; do
1557 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1558 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1559 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1560 break 2
1562 done
1563 done
1567 CC=$ac_cv_prog_CC
1568 if test -n "$CC"; then
1569 echo "$as_me:$LINENO: result: $CC" >&5
1570 echo "${ECHO_T}$CC" >&6
1571 else
1572 echo "$as_me:$LINENO: result: no" >&5
1573 echo "${ECHO_T}no" >&6
1576 test -n "$CC" && break
1577 done
1579 if test -z "$CC"; then
1580 ac_ct_CC=$CC
1581 for ac_prog in cl
1583 # Extract the first word of "$ac_prog", so it can be a program name with args.
1584 set dummy $ac_prog; ac_word=$2
1585 echo "$as_me:$LINENO: checking for $ac_word" >&5
1586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1587 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1588 echo $ECHO_N "(cached) $ECHO_C" >&6
1589 else
1590 if test -n "$ac_ct_CC"; then
1591 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1592 else
1593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1594 for as_dir in $PATH
1596 IFS=$as_save_IFS
1597 test -z "$as_dir" && as_dir=.
1598 for ac_exec_ext in '' $ac_executable_extensions; do
1599 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1600 ac_cv_prog_ac_ct_CC="$ac_prog"
1601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1602 break 2
1604 done
1605 done
1609 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1610 if test -n "$ac_ct_CC"; then
1611 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1612 echo "${ECHO_T}$ac_ct_CC" >&6
1613 else
1614 echo "$as_me:$LINENO: result: no" >&5
1615 echo "${ECHO_T}no" >&6
1618 test -n "$ac_ct_CC" && break
1619 done
1621 CC=$ac_ct_CC
1627 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1628 See \`config.log' for more details." >&5
1629 echo "$as_me: error: no acceptable C compiler found in \$PATH
1630 See \`config.log' for more details." >&2;}
1631 { (exit 1); exit 1; }; }
1633 # Provide some information about the compiler.
1634 echo "$as_me:$LINENO:" \
1635 "checking for C compiler version" >&5
1636 ac_compiler=`set X $ac_compile; echo $2`
1637 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1638 (eval $ac_compiler --version </dev/null >&5) 2>&5
1639 ac_status=$?
1640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1641 (exit $ac_status); }
1642 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1643 (eval $ac_compiler -v </dev/null >&5) 2>&5
1644 ac_status=$?
1645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1646 (exit $ac_status); }
1647 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1648 (eval $ac_compiler -V </dev/null >&5) 2>&5
1649 ac_status=$?
1650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1651 (exit $ac_status); }
1653 cat >conftest.$ac_ext <<_ACEOF
1654 /* confdefs.h. */
1655 _ACEOF
1656 cat confdefs.h >>conftest.$ac_ext
1657 cat >>conftest.$ac_ext <<_ACEOF
1658 /* end confdefs.h. */
1661 main ()
1665 return 0;
1667 _ACEOF
1668 ac_clean_files_save=$ac_clean_files
1669 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1670 # Try to create an executable without -o first, disregard a.out.
1671 # It will help us diagnose broken compilers, and finding out an intuition
1672 # of exeext.
1673 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1674 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1675 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1676 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1677 (eval $ac_link_default) 2>&5
1678 ac_status=$?
1679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1680 (exit $ac_status); }; then
1681 # Find the output, starting from the most likely. This scheme is
1682 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1683 # resort.
1685 # Be careful to initialize this variable, since it used to be cached.
1686 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1687 ac_cv_exeext=
1688 # b.out is created by i960 compilers.
1689 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1691 test -f "$ac_file" || continue
1692 case $ac_file in
1693 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1695 conftest.$ac_ext )
1696 # This is the source file.
1698 [ab].out )
1699 # We found the default executable, but exeext='' is most
1700 # certainly right.
1701 break;;
1702 *.* )
1703 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1704 # FIXME: I believe we export ac_cv_exeext for Libtool,
1705 # but it would be cool to find out if it's true. Does anybody
1706 # maintain Libtool? --akim.
1707 export ac_cv_exeext
1708 break;;
1710 break;;
1711 esac
1712 done
1713 else
1714 echo "$as_me: failed program was:" >&5
1715 sed 's/^/| /' conftest.$ac_ext >&5
1717 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1718 See \`config.log' for more details." >&5
1719 echo "$as_me: error: C compiler cannot create executables
1720 See \`config.log' for more details." >&2;}
1721 { (exit 77); exit 77; }; }
1724 ac_exeext=$ac_cv_exeext
1725 echo "$as_me:$LINENO: result: $ac_file" >&5
1726 echo "${ECHO_T}$ac_file" >&6
1728 # Check the compiler produces executables we can run. If not, either
1729 # the compiler is broken, or we cross compile.
1730 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1731 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1732 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1733 # If not cross compiling, check that we can run a simple program.
1734 if test "$cross_compiling" != yes; then
1735 if { ac_try='./$ac_file'
1736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1737 (eval $ac_try) 2>&5
1738 ac_status=$?
1739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1740 (exit $ac_status); }; }; then
1741 cross_compiling=no
1742 else
1743 if test "$cross_compiling" = maybe; then
1744 cross_compiling=yes
1745 else
1746 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1747 If you meant to cross compile, use \`--host'.
1748 See \`config.log' for more details." >&5
1749 echo "$as_me: error: cannot run C compiled programs.
1750 If you meant to cross compile, use \`--host'.
1751 See \`config.log' for more details." >&2;}
1752 { (exit 1); exit 1; }; }
1756 echo "$as_me:$LINENO: result: yes" >&5
1757 echo "${ECHO_T}yes" >&6
1759 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1760 ac_clean_files=$ac_clean_files_save
1761 # Check the compiler produces executables we can run. If not, either
1762 # the compiler is broken, or we cross compile.
1763 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1764 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1765 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1766 echo "${ECHO_T}$cross_compiling" >&6
1768 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1769 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1771 (eval $ac_link) 2>&5
1772 ac_status=$?
1773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1774 (exit $ac_status); }; then
1775 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1776 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1777 # work properly (i.e., refer to `conftest.exe'), while it won't with
1778 # `rm'.
1779 for ac_file in conftest.exe conftest conftest.*; do
1780 test -f "$ac_file" || continue
1781 case $ac_file in
1782 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1783 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1784 export ac_cv_exeext
1785 break;;
1786 * ) break;;
1787 esac
1788 done
1789 else
1790 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1791 See \`config.log' for more details." >&5
1792 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1793 See \`config.log' for more details." >&2;}
1794 { (exit 1); exit 1; }; }
1797 rm -f conftest$ac_cv_exeext
1798 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1799 echo "${ECHO_T}$ac_cv_exeext" >&6
1801 rm -f conftest.$ac_ext
1802 EXEEXT=$ac_cv_exeext
1803 ac_exeext=$EXEEXT
1804 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1805 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1806 if test "${ac_cv_objext+set}" = set; then
1807 echo $ECHO_N "(cached) $ECHO_C" >&6
1808 else
1809 cat >conftest.$ac_ext <<_ACEOF
1810 /* confdefs.h. */
1811 _ACEOF
1812 cat confdefs.h >>conftest.$ac_ext
1813 cat >>conftest.$ac_ext <<_ACEOF
1814 /* end confdefs.h. */
1817 main ()
1821 return 0;
1823 _ACEOF
1824 rm -f conftest.o conftest.obj
1825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1826 (eval $ac_compile) 2>&5
1827 ac_status=$?
1828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1829 (exit $ac_status); }; then
1830 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1831 case $ac_file in
1832 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1833 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1834 break;;
1835 esac
1836 done
1837 else
1838 echo "$as_me: failed program was:" >&5
1839 sed 's/^/| /' conftest.$ac_ext >&5
1841 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1842 See \`config.log' for more details." >&5
1843 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1844 See \`config.log' for more details." >&2;}
1845 { (exit 1); exit 1; }; }
1848 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1850 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1851 echo "${ECHO_T}$ac_cv_objext" >&6
1852 OBJEXT=$ac_cv_objext
1853 ac_objext=$OBJEXT
1854 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1855 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1856 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1857 echo $ECHO_N "(cached) $ECHO_C" >&6
1858 else
1859 cat >conftest.$ac_ext <<_ACEOF
1860 /* confdefs.h. */
1861 _ACEOF
1862 cat confdefs.h >>conftest.$ac_ext
1863 cat >>conftest.$ac_ext <<_ACEOF
1864 /* end confdefs.h. */
1867 main ()
1869 #ifndef __GNUC__
1870 choke me
1871 #endif
1874 return 0;
1876 _ACEOF
1877 rm -f conftest.$ac_objext
1878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1879 (eval $ac_compile) 2>conftest.er1
1880 ac_status=$?
1881 grep -v '^ *+' conftest.er1 >conftest.err
1882 rm -f conftest.er1
1883 cat conftest.err >&5
1884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1885 (exit $ac_status); } &&
1886 { ac_try='test -z "$ac_c_werror_flag"
1887 || test ! -s conftest.err'
1888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1889 (eval $ac_try) 2>&5
1890 ac_status=$?
1891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1892 (exit $ac_status); }; } &&
1893 { ac_try='test -s conftest.$ac_objext'
1894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1895 (eval $ac_try) 2>&5
1896 ac_status=$?
1897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1898 (exit $ac_status); }; }; then
1899 ac_compiler_gnu=yes
1900 else
1901 echo "$as_me: failed program was:" >&5
1902 sed 's/^/| /' conftest.$ac_ext >&5
1904 ac_compiler_gnu=no
1906 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1907 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1910 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1911 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1912 GCC=`test $ac_compiler_gnu = yes && echo yes`
1913 ac_test_CFLAGS=${CFLAGS+set}
1914 ac_save_CFLAGS=$CFLAGS
1915 CFLAGS="-g"
1916 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1917 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1918 if test "${ac_cv_prog_cc_g+set}" = set; then
1919 echo $ECHO_N "(cached) $ECHO_C" >&6
1920 else
1921 cat >conftest.$ac_ext <<_ACEOF
1922 /* confdefs.h. */
1923 _ACEOF
1924 cat confdefs.h >>conftest.$ac_ext
1925 cat >>conftest.$ac_ext <<_ACEOF
1926 /* end confdefs.h. */
1929 main ()
1933 return 0;
1935 _ACEOF
1936 rm -f conftest.$ac_objext
1937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1938 (eval $ac_compile) 2>conftest.er1
1939 ac_status=$?
1940 grep -v '^ *+' conftest.er1 >conftest.err
1941 rm -f conftest.er1
1942 cat conftest.err >&5
1943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1944 (exit $ac_status); } &&
1945 { ac_try='test -z "$ac_c_werror_flag"
1946 || test ! -s conftest.err'
1947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1948 (eval $ac_try) 2>&5
1949 ac_status=$?
1950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1951 (exit $ac_status); }; } &&
1952 { ac_try='test -s conftest.$ac_objext'
1953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1954 (eval $ac_try) 2>&5
1955 ac_status=$?
1956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1957 (exit $ac_status); }; }; then
1958 ac_cv_prog_cc_g=yes
1959 else
1960 echo "$as_me: failed program was:" >&5
1961 sed 's/^/| /' conftest.$ac_ext >&5
1963 ac_cv_prog_cc_g=no
1965 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1967 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1968 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1969 if test "$ac_test_CFLAGS" = set; then
1970 CFLAGS=$ac_save_CFLAGS
1971 elif test $ac_cv_prog_cc_g = yes; then
1972 if test "$GCC" = yes; then
1973 CFLAGS="-g -O2"
1974 else
1975 CFLAGS="-g"
1977 else
1978 if test "$GCC" = yes; then
1979 CFLAGS="-O2"
1980 else
1981 CFLAGS=
1984 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1985 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1986 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1987 echo $ECHO_N "(cached) $ECHO_C" >&6
1988 else
1989 ac_cv_prog_cc_stdc=no
1990 ac_save_CC=$CC
1991 cat >conftest.$ac_ext <<_ACEOF
1992 /* confdefs.h. */
1993 _ACEOF
1994 cat confdefs.h >>conftest.$ac_ext
1995 cat >>conftest.$ac_ext <<_ACEOF
1996 /* end confdefs.h. */
1997 #include <stdarg.h>
1998 #include <stdio.h>
1999 #include <sys/types.h>
2000 #include <sys/stat.h>
2001 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2002 struct buf { int x; };
2003 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2004 static char *e (p, i)
2005 char **p;
2006 int i;
2008 return p[i];
2010 static char *f (char * (*g) (char **, int), char **p, ...)
2012 char *s;
2013 va_list v;
2014 va_start (v,p);
2015 s = g (p, va_arg (v,int));
2016 va_end (v);
2017 return s;
2020 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2021 function prototypes and stuff, but not '\xHH' hex character constants.
2022 These don't provoke an error unfortunately, instead are silently treated
2023 as 'x'. The following induces an error, until -std1 is added to get
2024 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2025 array size at least. It's necessary to write '\x00'==0 to get something
2026 that's true only with -std1. */
2027 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2029 int test (int i, double x);
2030 struct s1 {int (*f) (int a);};
2031 struct s2 {int (*f) (double a);};
2032 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2033 int argc;
2034 char **argv;
2036 main ()
2038 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2040 return 0;
2042 _ACEOF
2043 # Don't try gcc -ansi; that turns off useful extensions and
2044 # breaks some systems' header files.
2045 # AIX -qlanglvl=ansi
2046 # Ultrix and OSF/1 -std1
2047 # HP-UX 10.20 and later -Ae
2048 # HP-UX older versions -Aa -D_HPUX_SOURCE
2049 # SVR4 -Xc -D__EXTENSIONS__
2050 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2052 CC="$ac_save_CC $ac_arg"
2053 rm -f conftest.$ac_objext
2054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2055 (eval $ac_compile) 2>conftest.er1
2056 ac_status=$?
2057 grep -v '^ *+' conftest.er1 >conftest.err
2058 rm -f conftest.er1
2059 cat conftest.err >&5
2060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2061 (exit $ac_status); } &&
2062 { ac_try='test -z "$ac_c_werror_flag"
2063 || test ! -s conftest.err'
2064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2065 (eval $ac_try) 2>&5
2066 ac_status=$?
2067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2068 (exit $ac_status); }; } &&
2069 { ac_try='test -s conftest.$ac_objext'
2070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2071 (eval $ac_try) 2>&5
2072 ac_status=$?
2073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2074 (exit $ac_status); }; }; then
2075 ac_cv_prog_cc_stdc=$ac_arg
2076 break
2077 else
2078 echo "$as_me: failed program was:" >&5
2079 sed 's/^/| /' conftest.$ac_ext >&5
2082 rm -f conftest.err conftest.$ac_objext
2083 done
2084 rm -f conftest.$ac_ext conftest.$ac_objext
2085 CC=$ac_save_CC
2089 case "x$ac_cv_prog_cc_stdc" in
2090 x|xno)
2091 echo "$as_me:$LINENO: result: none needed" >&5
2092 echo "${ECHO_T}none needed" >&6 ;;
2094 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2095 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2096 CC="$CC $ac_cv_prog_cc_stdc" ;;
2097 esac
2099 # Some people use a C++ compiler to compile C. Since we use `exit',
2100 # in C++ we need to declare it. In case someone uses the same compiler
2101 # for both compiling C and C++ we need to have the C++ compiler decide
2102 # the declaration of exit, since it's the most demanding environment.
2103 cat >conftest.$ac_ext <<_ACEOF
2104 #ifndef __cplusplus
2105 choke me
2106 #endif
2107 _ACEOF
2108 rm -f conftest.$ac_objext
2109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2110 (eval $ac_compile) 2>conftest.er1
2111 ac_status=$?
2112 grep -v '^ *+' conftest.er1 >conftest.err
2113 rm -f conftest.er1
2114 cat conftest.err >&5
2115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2116 (exit $ac_status); } &&
2117 { ac_try='test -z "$ac_c_werror_flag"
2118 || test ! -s conftest.err'
2119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2120 (eval $ac_try) 2>&5
2121 ac_status=$?
2122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2123 (exit $ac_status); }; } &&
2124 { ac_try='test -s conftest.$ac_objext'
2125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2126 (eval $ac_try) 2>&5
2127 ac_status=$?
2128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2129 (exit $ac_status); }; }; then
2130 for ac_declaration in \
2131 '' \
2132 'extern "C" void std::exit (int) throw (); using std::exit;' \
2133 'extern "C" void std::exit (int); using std::exit;' \
2134 'extern "C" void exit (int) throw ();' \
2135 'extern "C" void exit (int);' \
2136 'void exit (int);'
2138 cat >conftest.$ac_ext <<_ACEOF
2139 /* confdefs.h. */
2140 _ACEOF
2141 cat confdefs.h >>conftest.$ac_ext
2142 cat >>conftest.$ac_ext <<_ACEOF
2143 /* end confdefs.h. */
2144 $ac_declaration
2145 #include <stdlib.h>
2147 main ()
2149 exit (42);
2151 return 0;
2153 _ACEOF
2154 rm -f conftest.$ac_objext
2155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2156 (eval $ac_compile) 2>conftest.er1
2157 ac_status=$?
2158 grep -v '^ *+' conftest.er1 >conftest.err
2159 rm -f conftest.er1
2160 cat conftest.err >&5
2161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2162 (exit $ac_status); } &&
2163 { ac_try='test -z "$ac_c_werror_flag"
2164 || test ! -s conftest.err'
2165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2166 (eval $ac_try) 2>&5
2167 ac_status=$?
2168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2169 (exit $ac_status); }; } &&
2170 { ac_try='test -s conftest.$ac_objext'
2171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2172 (eval $ac_try) 2>&5
2173 ac_status=$?
2174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2175 (exit $ac_status); }; }; then
2177 else
2178 echo "$as_me: failed program was:" >&5
2179 sed 's/^/| /' conftest.$ac_ext >&5
2181 continue
2183 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2184 cat >conftest.$ac_ext <<_ACEOF
2185 /* confdefs.h. */
2186 _ACEOF
2187 cat confdefs.h >>conftest.$ac_ext
2188 cat >>conftest.$ac_ext <<_ACEOF
2189 /* end confdefs.h. */
2190 $ac_declaration
2192 main ()
2194 exit (42);
2196 return 0;
2198 _ACEOF
2199 rm -f conftest.$ac_objext
2200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2201 (eval $ac_compile) 2>conftest.er1
2202 ac_status=$?
2203 grep -v '^ *+' conftest.er1 >conftest.err
2204 rm -f conftest.er1
2205 cat conftest.err >&5
2206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2207 (exit $ac_status); } &&
2208 { ac_try='test -z "$ac_c_werror_flag"
2209 || test ! -s conftest.err'
2210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2211 (eval $ac_try) 2>&5
2212 ac_status=$?
2213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2214 (exit $ac_status); }; } &&
2215 { ac_try='test -s conftest.$ac_objext'
2216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2217 (eval $ac_try) 2>&5
2218 ac_status=$?
2219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2220 (exit $ac_status); }; }; then
2221 break
2222 else
2223 echo "$as_me: failed program was:" >&5
2224 sed 's/^/| /' conftest.$ac_ext >&5
2227 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2228 done
2229 rm -f conftest*
2230 if test -n "$ac_declaration"; then
2231 echo '#ifdef __cplusplus' >>confdefs.h
2232 echo $ac_declaration >>confdefs.h
2233 echo '#endif' >>confdefs.h
2236 else
2237 echo "$as_me: failed program was:" >&5
2238 sed 's/^/| /' conftest.$ac_ext >&5
2241 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2242 ac_ext=c
2243 ac_cpp='$CPP $CPPFLAGS'
2244 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2245 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2246 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2248 for ac_prog in gawk mawk nawk awk
2250 # Extract the first word of "$ac_prog", so it can be a program name with args.
2251 set dummy $ac_prog; ac_word=$2
2252 echo "$as_me:$LINENO: checking for $ac_word" >&5
2253 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2254 if test "${ac_cv_prog_AWK+set}" = set; then
2255 echo $ECHO_N "(cached) $ECHO_C" >&6
2256 else
2257 if test -n "$AWK"; then
2258 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2259 else
2260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2261 for as_dir in $PATH
2263 IFS=$as_save_IFS
2264 test -z "$as_dir" && as_dir=.
2265 for ac_exec_ext in '' $ac_executable_extensions; do
2266 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2267 ac_cv_prog_AWK="$ac_prog"
2268 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2269 break 2
2271 done
2272 done
2276 AWK=$ac_cv_prog_AWK
2277 if test -n "$AWK"; then
2278 echo "$as_me:$LINENO: result: $AWK" >&5
2279 echo "${ECHO_T}$AWK" >&6
2280 else
2281 echo "$as_me:$LINENO: result: no" >&5
2282 echo "${ECHO_T}no" >&6
2285 test -n "$AWK" && break
2286 done
2288 for ac_prog in 'bison -y' byacc
2290 # Extract the first word of "$ac_prog", so it can be a program name with args.
2291 set dummy $ac_prog; ac_word=$2
2292 echo "$as_me:$LINENO: checking for $ac_word" >&5
2293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2294 if test "${ac_cv_prog_YACC+set}" = set; then
2295 echo $ECHO_N "(cached) $ECHO_C" >&6
2296 else
2297 if test -n "$YACC"; then
2298 ac_cv_prog_YACC="$YACC" # Let the user override the test.
2299 else
2300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2301 for as_dir in $PATH
2303 IFS=$as_save_IFS
2304 test -z "$as_dir" && as_dir=.
2305 for ac_exec_ext in '' $ac_executable_extensions; do
2306 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2307 ac_cv_prog_YACC="$ac_prog"
2308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2309 break 2
2311 done
2312 done
2316 YACC=$ac_cv_prog_YACC
2317 if test -n "$YACC"; then
2318 echo "$as_me:$LINENO: result: $YACC" >&5
2319 echo "${ECHO_T}$YACC" >&6
2320 else
2321 echo "$as_me:$LINENO: result: no" >&5
2322 echo "${ECHO_T}no" >&6
2325 test -n "$YACC" && break
2326 done
2327 test -n "$YACC" || YACC="yacc"
2329 ac_ext=c
2330 ac_cpp='$CPP $CPPFLAGS'
2331 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2332 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2333 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2334 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2335 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2336 # On Suns, sometimes $CPP names a directory.
2337 if test -n "$CPP" && test -d "$CPP"; then
2338 CPP=
2340 if test -z "$CPP"; then
2341 if test "${ac_cv_prog_CPP+set}" = set; then
2342 echo $ECHO_N "(cached) $ECHO_C" >&6
2343 else
2344 # Double quotes because CPP needs to be expanded
2345 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2347 ac_preproc_ok=false
2348 for ac_c_preproc_warn_flag in '' yes
2350 # Use a header file that comes with gcc, so configuring glibc
2351 # with a fresh cross-compiler works.
2352 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2353 # <limits.h> exists even on freestanding compilers.
2354 # On the NeXT, cc -E runs the code through the compiler's parser,
2355 # not just through cpp. "Syntax error" is here to catch this case.
2356 cat >conftest.$ac_ext <<_ACEOF
2357 /* confdefs.h. */
2358 _ACEOF
2359 cat confdefs.h >>conftest.$ac_ext
2360 cat >>conftest.$ac_ext <<_ACEOF
2361 /* end confdefs.h. */
2362 #ifdef __STDC__
2363 # include <limits.h>
2364 #else
2365 # include <assert.h>
2366 #endif
2367 Syntax error
2368 _ACEOF
2369 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2370 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2371 ac_status=$?
2372 grep -v '^ *+' conftest.er1 >conftest.err
2373 rm -f conftest.er1
2374 cat conftest.err >&5
2375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376 (exit $ac_status); } >/dev/null; then
2377 if test -s conftest.err; then
2378 ac_cpp_err=$ac_c_preproc_warn_flag
2379 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2380 else
2381 ac_cpp_err=
2383 else
2384 ac_cpp_err=yes
2386 if test -z "$ac_cpp_err"; then
2388 else
2389 echo "$as_me: failed program was:" >&5
2390 sed 's/^/| /' conftest.$ac_ext >&5
2392 # Broken: fails on valid input.
2393 continue
2395 rm -f conftest.err conftest.$ac_ext
2397 # OK, works on sane cases. Now check whether non-existent headers
2398 # can be detected and how.
2399 cat >conftest.$ac_ext <<_ACEOF
2400 /* confdefs.h. */
2401 _ACEOF
2402 cat confdefs.h >>conftest.$ac_ext
2403 cat >>conftest.$ac_ext <<_ACEOF
2404 /* end confdefs.h. */
2405 #include <ac_nonexistent.h>
2406 _ACEOF
2407 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2408 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2409 ac_status=$?
2410 grep -v '^ *+' conftest.er1 >conftest.err
2411 rm -f conftest.er1
2412 cat conftest.err >&5
2413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414 (exit $ac_status); } >/dev/null; then
2415 if test -s conftest.err; then
2416 ac_cpp_err=$ac_c_preproc_warn_flag
2417 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2418 else
2419 ac_cpp_err=
2421 else
2422 ac_cpp_err=yes
2424 if test -z "$ac_cpp_err"; then
2425 # Broken: success on invalid input.
2426 continue
2427 else
2428 echo "$as_me: failed program was:" >&5
2429 sed 's/^/| /' conftest.$ac_ext >&5
2431 # Passes both tests.
2432 ac_preproc_ok=:
2433 break
2435 rm -f conftest.err conftest.$ac_ext
2437 done
2438 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2439 rm -f conftest.err conftest.$ac_ext
2440 if $ac_preproc_ok; then
2441 break
2444 done
2445 ac_cv_prog_CPP=$CPP
2448 CPP=$ac_cv_prog_CPP
2449 else
2450 ac_cv_prog_CPP=$CPP
2452 echo "$as_me:$LINENO: result: $CPP" >&5
2453 echo "${ECHO_T}$CPP" >&6
2454 ac_preproc_ok=false
2455 for ac_c_preproc_warn_flag in '' yes
2457 # Use a header file that comes with gcc, so configuring glibc
2458 # with a fresh cross-compiler works.
2459 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2460 # <limits.h> exists even on freestanding compilers.
2461 # On the NeXT, cc -E runs the code through the compiler's parser,
2462 # not just through cpp. "Syntax error" is here to catch this case.
2463 cat >conftest.$ac_ext <<_ACEOF
2464 /* confdefs.h. */
2465 _ACEOF
2466 cat confdefs.h >>conftest.$ac_ext
2467 cat >>conftest.$ac_ext <<_ACEOF
2468 /* end confdefs.h. */
2469 #ifdef __STDC__
2470 # include <limits.h>
2471 #else
2472 # include <assert.h>
2473 #endif
2474 Syntax error
2475 _ACEOF
2476 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2477 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2478 ac_status=$?
2479 grep -v '^ *+' conftest.er1 >conftest.err
2480 rm -f conftest.er1
2481 cat conftest.err >&5
2482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2483 (exit $ac_status); } >/dev/null; then
2484 if test -s conftest.err; then
2485 ac_cpp_err=$ac_c_preproc_warn_flag
2486 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2487 else
2488 ac_cpp_err=
2490 else
2491 ac_cpp_err=yes
2493 if test -z "$ac_cpp_err"; then
2495 else
2496 echo "$as_me: failed program was:" >&5
2497 sed 's/^/| /' conftest.$ac_ext >&5
2499 # Broken: fails on valid input.
2500 continue
2502 rm -f conftest.err conftest.$ac_ext
2504 # OK, works on sane cases. Now check whether non-existent headers
2505 # can be detected and how.
2506 cat >conftest.$ac_ext <<_ACEOF
2507 /* confdefs.h. */
2508 _ACEOF
2509 cat confdefs.h >>conftest.$ac_ext
2510 cat >>conftest.$ac_ext <<_ACEOF
2511 /* end confdefs.h. */
2512 #include <ac_nonexistent.h>
2513 _ACEOF
2514 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2515 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2516 ac_status=$?
2517 grep -v '^ *+' conftest.er1 >conftest.err
2518 rm -f conftest.er1
2519 cat conftest.err >&5
2520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2521 (exit $ac_status); } >/dev/null; then
2522 if test -s conftest.err; then
2523 ac_cpp_err=$ac_c_preproc_warn_flag
2524 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2525 else
2526 ac_cpp_err=
2528 else
2529 ac_cpp_err=yes
2531 if test -z "$ac_cpp_err"; then
2532 # Broken: success on invalid input.
2533 continue
2534 else
2535 echo "$as_me: failed program was:" >&5
2536 sed 's/^/| /' conftest.$ac_ext >&5
2538 # Passes both tests.
2539 ac_preproc_ok=:
2540 break
2542 rm -f conftest.err conftest.$ac_ext
2544 done
2545 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2546 rm -f conftest.err conftest.$ac_ext
2547 if $ac_preproc_ok; then
2549 else
2550 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2551 See \`config.log' for more details." >&5
2552 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2553 See \`config.log' for more details." >&2;}
2554 { (exit 1); exit 1; }; }
2557 ac_ext=c
2558 ac_cpp='$CPP $CPPFLAGS'
2559 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2560 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2561 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2564 for ac_prog in flex lex
2566 # Extract the first word of "$ac_prog", so it can be a program name with args.
2567 set dummy $ac_prog; ac_word=$2
2568 echo "$as_me:$LINENO: checking for $ac_word" >&5
2569 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2570 if test "${ac_cv_prog_LEX+set}" = set; then
2571 echo $ECHO_N "(cached) $ECHO_C" >&6
2572 else
2573 if test -n "$LEX"; then
2574 ac_cv_prog_LEX="$LEX" # Let the user override the test.
2575 else
2576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2577 for as_dir in $PATH
2579 IFS=$as_save_IFS
2580 test -z "$as_dir" && as_dir=.
2581 for ac_exec_ext in '' $ac_executable_extensions; do
2582 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2583 ac_cv_prog_LEX="$ac_prog"
2584 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2585 break 2
2587 done
2588 done
2592 LEX=$ac_cv_prog_LEX
2593 if test -n "$LEX"; then
2594 echo "$as_me:$LINENO: result: $LEX" >&5
2595 echo "${ECHO_T}$LEX" >&6
2596 else
2597 echo "$as_me:$LINENO: result: no" >&5
2598 echo "${ECHO_T}no" >&6
2601 test -n "$LEX" && break
2602 done
2603 test -n "$LEX" || LEX=":"
2605 if test -z "$LEXLIB"
2606 then
2607 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
2608 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
2609 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
2610 echo $ECHO_N "(cached) $ECHO_C" >&6
2611 else
2612 ac_check_lib_save_LIBS=$LIBS
2613 LIBS="-lfl $LIBS"
2614 cat >conftest.$ac_ext <<_ACEOF
2615 /* confdefs.h. */
2616 _ACEOF
2617 cat confdefs.h >>conftest.$ac_ext
2618 cat >>conftest.$ac_ext <<_ACEOF
2619 /* end confdefs.h. */
2621 /* Override any gcc2 internal prototype to avoid an error. */
2622 #ifdef __cplusplus
2623 extern "C"
2624 #endif
2625 /* We use char because int might match the return type of a gcc2
2626 builtin and then its argument prototype would still apply. */
2627 char yywrap ();
2629 main ()
2631 yywrap ();
2633 return 0;
2635 _ACEOF
2636 rm -f conftest.$ac_objext conftest$ac_exeext
2637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2638 (eval $ac_link) 2>conftest.er1
2639 ac_status=$?
2640 grep -v '^ *+' conftest.er1 >conftest.err
2641 rm -f conftest.er1
2642 cat conftest.err >&5
2643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2644 (exit $ac_status); } &&
2645 { ac_try='test -z "$ac_c_werror_flag"
2646 || test ! -s conftest.err'
2647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2648 (eval $ac_try) 2>&5
2649 ac_status=$?
2650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2651 (exit $ac_status); }; } &&
2652 { ac_try='test -s conftest$ac_exeext'
2653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2654 (eval $ac_try) 2>&5
2655 ac_status=$?
2656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2657 (exit $ac_status); }; }; then
2658 ac_cv_lib_fl_yywrap=yes
2659 else
2660 echo "$as_me: failed program was:" >&5
2661 sed 's/^/| /' conftest.$ac_ext >&5
2663 ac_cv_lib_fl_yywrap=no
2665 rm -f conftest.err conftest.$ac_objext \
2666 conftest$ac_exeext conftest.$ac_ext
2667 LIBS=$ac_check_lib_save_LIBS
2669 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
2670 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
2671 if test $ac_cv_lib_fl_yywrap = yes; then
2672 LEXLIB="-lfl"
2673 else
2674 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
2675 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
2676 if test "${ac_cv_lib_l_yywrap+set}" = set; then
2677 echo $ECHO_N "(cached) $ECHO_C" >&6
2678 else
2679 ac_check_lib_save_LIBS=$LIBS
2680 LIBS="-ll $LIBS"
2681 cat >conftest.$ac_ext <<_ACEOF
2682 /* confdefs.h. */
2683 _ACEOF
2684 cat confdefs.h >>conftest.$ac_ext
2685 cat >>conftest.$ac_ext <<_ACEOF
2686 /* end confdefs.h. */
2688 /* Override any gcc2 internal prototype to avoid an error. */
2689 #ifdef __cplusplus
2690 extern "C"
2691 #endif
2692 /* We use char because int might match the return type of a gcc2
2693 builtin and then its argument prototype would still apply. */
2694 char yywrap ();
2696 main ()
2698 yywrap ();
2700 return 0;
2702 _ACEOF
2703 rm -f conftest.$ac_objext conftest$ac_exeext
2704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2705 (eval $ac_link) 2>conftest.er1
2706 ac_status=$?
2707 grep -v '^ *+' conftest.er1 >conftest.err
2708 rm -f conftest.er1
2709 cat conftest.err >&5
2710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711 (exit $ac_status); } &&
2712 { ac_try='test -z "$ac_c_werror_flag"
2713 || test ! -s conftest.err'
2714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2715 (eval $ac_try) 2>&5
2716 ac_status=$?
2717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718 (exit $ac_status); }; } &&
2719 { ac_try='test -s conftest$ac_exeext'
2720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2721 (eval $ac_try) 2>&5
2722 ac_status=$?
2723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2724 (exit $ac_status); }; }; then
2725 ac_cv_lib_l_yywrap=yes
2726 else
2727 echo "$as_me: failed program was:" >&5
2728 sed 's/^/| /' conftest.$ac_ext >&5
2730 ac_cv_lib_l_yywrap=no
2732 rm -f conftest.err conftest.$ac_objext \
2733 conftest$ac_exeext conftest.$ac_ext
2734 LIBS=$ac_check_lib_save_LIBS
2736 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
2737 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
2738 if test $ac_cv_lib_l_yywrap = yes; then
2739 LEXLIB="-ll"
2746 if test "x$LEX" != "x:"; then
2747 echo "$as_me:$LINENO: checking lex output file root" >&5
2748 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
2749 if test "${ac_cv_prog_lex_root+set}" = set; then
2750 echo $ECHO_N "(cached) $ECHO_C" >&6
2751 else
2752 # The minimal lex program is just a single line: %%. But some broken lexes
2753 # (Solaris, I think it was) want two %% lines, so accommodate them.
2754 cat >conftest.l <<_ACEOF
2757 _ACEOF
2758 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
2759 (eval $LEX conftest.l) 2>&5
2760 ac_status=$?
2761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2762 (exit $ac_status); }
2763 if test -f lex.yy.c; then
2764 ac_cv_prog_lex_root=lex.yy
2765 elif test -f lexyy.c; then
2766 ac_cv_prog_lex_root=lexyy
2767 else
2768 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
2769 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
2770 { (exit 1); exit 1; }; }
2773 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
2774 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
2775 rm -f conftest.l
2776 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
2778 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
2779 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
2780 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
2781 echo $ECHO_N "(cached) $ECHO_C" >&6
2782 else
2783 # POSIX says lex can declare yytext either as a pointer or an array; the
2784 # default is implementation-dependent. Figure out which it is, since
2785 # not all implementations provide the %pointer and %array declarations.
2786 ac_cv_prog_lex_yytext_pointer=no
2787 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
2788 ac_save_LIBS=$LIBS
2789 LIBS="$LIBS $LEXLIB"
2790 cat >conftest.$ac_ext <<_ACEOF
2791 `cat $LEX_OUTPUT_ROOT.c`
2792 _ACEOF
2793 rm -f conftest.$ac_objext conftest$ac_exeext
2794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2795 (eval $ac_link) 2>conftest.er1
2796 ac_status=$?
2797 grep -v '^ *+' conftest.er1 >conftest.err
2798 rm -f conftest.er1
2799 cat conftest.err >&5
2800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801 (exit $ac_status); } &&
2802 { ac_try='test -z "$ac_c_werror_flag"
2803 || test ! -s conftest.err'
2804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2805 (eval $ac_try) 2>&5
2806 ac_status=$?
2807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808 (exit $ac_status); }; } &&
2809 { ac_try='test -s conftest$ac_exeext'
2810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2811 (eval $ac_try) 2>&5
2812 ac_status=$?
2813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2814 (exit $ac_status); }; }; then
2815 ac_cv_prog_lex_yytext_pointer=yes
2816 else
2817 echo "$as_me: failed program was:" >&5
2818 sed 's/^/| /' conftest.$ac_ext >&5
2821 rm -f conftest.err conftest.$ac_objext \
2822 conftest$ac_exeext conftest.$ac_ext
2823 LIBS=$ac_save_LIBS
2824 rm -f "${LEX_OUTPUT_ROOT}.c"
2827 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
2828 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
2829 if test $ac_cv_prog_lex_yytext_pointer = yes; then
2831 cat >>confdefs.h <<\_ACEOF
2832 #define YYTEXT_POINTER 1
2833 _ACEOF
2838 ac_aux_dir=
2839 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2840 if test -f $ac_dir/install-sh; then
2841 ac_aux_dir=$ac_dir
2842 ac_install_sh="$ac_aux_dir/install-sh -c"
2843 break
2844 elif test -f $ac_dir/install.sh; then
2845 ac_aux_dir=$ac_dir
2846 ac_install_sh="$ac_aux_dir/install.sh -c"
2847 break
2848 elif test -f $ac_dir/shtool; then
2849 ac_aux_dir=$ac_dir
2850 ac_install_sh="$ac_aux_dir/shtool install -c"
2851 break
2853 done
2854 if test -z "$ac_aux_dir"; then
2855 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2856 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2857 { (exit 1); exit 1; }; }
2859 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2860 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2861 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2863 # Find a good install program. We prefer a C program (faster),
2864 # so one script is as good as another. But avoid the broken or
2865 # incompatible versions:
2866 # SysV /etc/install, /usr/sbin/install
2867 # SunOS /usr/etc/install
2868 # IRIX /sbin/install
2869 # AIX /bin/install
2870 # AmigaOS /C/install, which installs bootblocks on floppy discs
2871 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2872 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2873 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2874 # OS/2's system install, which has a completely different semantic
2875 # ./install, which can be erroneously created by make from ./install.sh.
2876 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2877 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2878 if test -z "$INSTALL"; then
2879 if test "${ac_cv_path_install+set}" = set; then
2880 echo $ECHO_N "(cached) $ECHO_C" >&6
2881 else
2882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2883 for as_dir in $PATH
2885 IFS=$as_save_IFS
2886 test -z "$as_dir" && as_dir=.
2887 # Account for people who put trailing slashes in PATH elements.
2888 case $as_dir/ in
2889 ./ | .// | /cC/* | \
2890 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2891 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2892 /usr/ucb/* ) ;;
2894 # OSF1 and SCO ODT 3.0 have their own names for install.
2895 # Don't use installbsd from OSF since it installs stuff as root
2896 # by default.
2897 for ac_prog in ginstall scoinst install; do
2898 for ac_exec_ext in '' $ac_executable_extensions; do
2899 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2900 if test $ac_prog = install &&
2901 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2902 # AIX install. It has an incompatible calling convention.
2904 elif test $ac_prog = install &&
2905 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2906 # program-specific install script used by HP pwplus--don't use.
2908 else
2909 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2910 break 3
2913 done
2914 done
2916 esac
2917 done
2921 if test "${ac_cv_path_install+set}" = set; then
2922 INSTALL=$ac_cv_path_install
2923 else
2924 # As a last resort, use the slow shell script. We don't cache a
2925 # path for INSTALL within a source directory, because that will
2926 # break other packages using the cache if that directory is
2927 # removed, or if the path is relative.
2928 INSTALL=$ac_install_sh
2931 echo "$as_me:$LINENO: result: $INSTALL" >&5
2932 echo "${ECHO_T}$INSTALL" >&6
2934 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2935 # It thinks the first close brace ends the variable substitution.
2936 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2938 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2940 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2942 echo "$as_me:$LINENO: checking whether ln -s works" >&5
2943 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2944 LN_S=$as_ln_s
2945 if test "$LN_S" = "ln -s"; then
2946 echo "$as_me:$LINENO: result: yes" >&5
2947 echo "${ECHO_T}yes" >&6
2948 else
2949 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2950 echo "${ECHO_T}no, using $LN_S" >&6
2953 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2954 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2955 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2956 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2957 echo $ECHO_N "(cached) $ECHO_C" >&6
2958 else
2959 cat >conftest.make <<\_ACEOF
2960 all:
2961 @echo 'ac_maketemp="$(MAKE)"'
2962 _ACEOF
2963 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2964 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2965 if test -n "$ac_maketemp"; then
2966 eval ac_cv_prog_make_${ac_make}_set=yes
2967 else
2968 eval ac_cv_prog_make_${ac_make}_set=no
2970 rm -f conftest.make
2972 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2973 echo "$as_me:$LINENO: result: yes" >&5
2974 echo "${ECHO_T}yes" >&6
2975 SET_MAKE=
2976 else
2977 echo "$as_me:$LINENO: result: no" >&5
2978 echo "${ECHO_T}no" >&6
2979 SET_MAKE="MAKE=${MAKE-make}"
2982 # Extract the first word of "perl", so it can be a program name with args.
2983 set dummy perl; ac_word=$2
2984 echo "$as_me:$LINENO: checking for $ac_word" >&5
2985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2986 if test "${ac_cv_prog_PERL+set}" = set; then
2987 echo $ECHO_N "(cached) $ECHO_C" >&6
2988 else
2989 if test -n "$PERL"; then
2990 ac_cv_prog_PERL="$PERL" # Let the user override the test.
2991 else
2992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2993 for as_dir in $PATH
2995 IFS=$as_save_IFS
2996 test -z "$as_dir" && as_dir=.
2997 for ac_exec_ext in '' $ac_executable_extensions; do
2998 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2999 ac_cv_prog_PERL="perl"
3000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3001 break 2
3003 done
3004 done
3008 PERL=$ac_cv_prog_PERL
3009 if test -n "$PERL"; then
3010 echo "$as_me:$LINENO: result: $PERL" >&5
3011 echo "${ECHO_T}$PERL" >&6
3012 else
3013 echo "$as_me:$LINENO: result: no" >&5
3014 echo "${ECHO_T}no" >&6
3017 # Extract the first word of "latex", so it can be a program name with args.
3018 set dummy latex; ac_word=$2
3019 echo "$as_me:$LINENO: checking for $ac_word" >&5
3020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3021 if test "${ac_cv_prog_LATEX+set}" = set; then
3022 echo $ECHO_N "(cached) $ECHO_C" >&6
3023 else
3024 if test -n "$LATEX"; then
3025 ac_cv_prog_LATEX="$LATEX" # Let the user override the test.
3026 else
3027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3028 for as_dir in $PATH
3030 IFS=$as_save_IFS
3031 test -z "$as_dir" && as_dir=.
3032 for ac_exec_ext in '' $ac_executable_extensions; do
3033 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3034 ac_cv_prog_LATEX="latex"
3035 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3036 break 2
3038 done
3039 done
3043 LATEX=$ac_cv_prog_LATEX
3044 if test -n "$LATEX"; then
3045 echo "$as_me:$LINENO: result: $LATEX" >&5
3046 echo "${ECHO_T}$LATEX" >&6
3047 else
3048 echo "$as_me:$LINENO: result: no" >&5
3049 echo "${ECHO_T}no" >&6
3052 # Extract the first word of "dvips", so it can be a program name with args.
3053 set dummy dvips; ac_word=$2
3054 echo "$as_me:$LINENO: checking for $ac_word" >&5
3055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3056 if test "${ac_cv_prog_DVIPS+set}" = set; then
3057 echo $ECHO_N "(cached) $ECHO_C" >&6
3058 else
3059 if test -n "$DVIPS"; then
3060 ac_cv_prog_DVIPS="$DVIPS" # Let the user override the test.
3061 else
3062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3063 for as_dir in $PATH
3065 IFS=$as_save_IFS
3066 test -z "$as_dir" && as_dir=.
3067 for ac_exec_ext in '' $ac_executable_extensions; do
3068 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3069 ac_cv_prog_DVIPS="dvips"
3070 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3071 break 2
3073 done
3074 done
3078 DVIPS=$ac_cv_prog_DVIPS
3079 if test -n "$DVIPS"; then
3080 echo "$as_me:$LINENO: result: $DVIPS" >&5
3081 echo "${ECHO_T}$DVIPS" >&6
3082 else
3083 echo "$as_me:$LINENO: result: no" >&5
3084 echo "${ECHO_T}no" >&6
3090 echo "$as_me:$LINENO: checking for egrep" >&5
3091 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3092 if test "${ac_cv_prog_egrep+set}" = set; then
3093 echo $ECHO_N "(cached) $ECHO_C" >&6
3094 else
3095 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3096 then ac_cv_prog_egrep='grep -E'
3097 else ac_cv_prog_egrep='egrep'
3100 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3101 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3102 EGREP=$ac_cv_prog_egrep
3105 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3106 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3107 if test "${ac_cv_header_stdc+set}" = set; then
3108 echo $ECHO_N "(cached) $ECHO_C" >&6
3109 else
3110 cat >conftest.$ac_ext <<_ACEOF
3111 /* confdefs.h. */
3112 _ACEOF
3113 cat confdefs.h >>conftest.$ac_ext
3114 cat >>conftest.$ac_ext <<_ACEOF
3115 /* end confdefs.h. */
3116 #include <stdlib.h>
3117 #include <stdarg.h>
3118 #include <string.h>
3119 #include <float.h>
3122 main ()
3126 return 0;
3128 _ACEOF
3129 rm -f conftest.$ac_objext
3130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3131 (eval $ac_compile) 2>conftest.er1
3132 ac_status=$?
3133 grep -v '^ *+' conftest.er1 >conftest.err
3134 rm -f conftest.er1
3135 cat conftest.err >&5
3136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3137 (exit $ac_status); } &&
3138 { ac_try='test -z "$ac_c_werror_flag"
3139 || test ! -s conftest.err'
3140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3141 (eval $ac_try) 2>&5
3142 ac_status=$?
3143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144 (exit $ac_status); }; } &&
3145 { ac_try='test -s conftest.$ac_objext'
3146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3147 (eval $ac_try) 2>&5
3148 ac_status=$?
3149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3150 (exit $ac_status); }; }; then
3151 ac_cv_header_stdc=yes
3152 else
3153 echo "$as_me: failed program was:" >&5
3154 sed 's/^/| /' conftest.$ac_ext >&5
3156 ac_cv_header_stdc=no
3158 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3160 if test $ac_cv_header_stdc = yes; then
3161 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3162 cat >conftest.$ac_ext <<_ACEOF
3163 /* confdefs.h. */
3164 _ACEOF
3165 cat confdefs.h >>conftest.$ac_ext
3166 cat >>conftest.$ac_ext <<_ACEOF
3167 /* end confdefs.h. */
3168 #include <string.h>
3170 _ACEOF
3171 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3172 $EGREP "memchr" >/dev/null 2>&1; then
3174 else
3175 ac_cv_header_stdc=no
3177 rm -f conftest*
3181 if test $ac_cv_header_stdc = yes; then
3182 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3183 cat >conftest.$ac_ext <<_ACEOF
3184 /* confdefs.h. */
3185 _ACEOF
3186 cat confdefs.h >>conftest.$ac_ext
3187 cat >>conftest.$ac_ext <<_ACEOF
3188 /* end confdefs.h. */
3189 #include <stdlib.h>
3191 _ACEOF
3192 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3193 $EGREP "free" >/dev/null 2>&1; then
3195 else
3196 ac_cv_header_stdc=no
3198 rm -f conftest*
3202 if test $ac_cv_header_stdc = yes; then
3203 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3204 if test "$cross_compiling" = yes; then
3206 else
3207 cat >conftest.$ac_ext <<_ACEOF
3208 /* confdefs.h. */
3209 _ACEOF
3210 cat confdefs.h >>conftest.$ac_ext
3211 cat >>conftest.$ac_ext <<_ACEOF
3212 /* end confdefs.h. */
3213 #include <ctype.h>
3214 #if ((' ' & 0x0FF) == 0x020)
3215 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3216 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3217 #else
3218 # define ISLOWER(c) \
3219 (('a' <= (c) && (c) <= 'i') \
3220 || ('j' <= (c) && (c) <= 'r') \
3221 || ('s' <= (c) && (c) <= 'z'))
3222 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3223 #endif
3225 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3227 main ()
3229 int i;
3230 for (i = 0; i < 256; i++)
3231 if (XOR (islower (i), ISLOWER (i))
3232 || toupper (i) != TOUPPER (i))
3233 exit(2);
3234 exit (0);
3236 _ACEOF
3237 rm -f conftest$ac_exeext
3238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3239 (eval $ac_link) 2>&5
3240 ac_status=$?
3241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3244 (eval $ac_try) 2>&5
3245 ac_status=$?
3246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247 (exit $ac_status); }; }; then
3249 else
3250 echo "$as_me: program exited with status $ac_status" >&5
3251 echo "$as_me: failed program was:" >&5
3252 sed 's/^/| /' conftest.$ac_ext >&5
3254 ( exit $ac_status )
3255 ac_cv_header_stdc=no
3257 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3261 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3262 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3263 if test $ac_cv_header_stdc = yes; then
3265 cat >>confdefs.h <<\_ACEOF
3266 #define STDC_HEADERS 1
3267 _ACEOF
3271 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
3272 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
3273 if test "${ac_cv_header_sys_wait_h+set}" = set; then
3274 echo $ECHO_N "(cached) $ECHO_C" >&6
3275 else
3276 cat >conftest.$ac_ext <<_ACEOF
3277 /* confdefs.h. */
3278 _ACEOF
3279 cat confdefs.h >>conftest.$ac_ext
3280 cat >>conftest.$ac_ext <<_ACEOF
3281 /* end confdefs.h. */
3282 #include <sys/types.h>
3283 #include <sys/wait.h>
3284 #ifndef WEXITSTATUS
3285 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3286 #endif
3287 #ifndef WIFEXITED
3288 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3289 #endif
3292 main ()
3294 int s;
3295 wait (&s);
3296 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3298 return 0;
3300 _ACEOF
3301 rm -f conftest.$ac_objext
3302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3303 (eval $ac_compile) 2>conftest.er1
3304 ac_status=$?
3305 grep -v '^ *+' conftest.er1 >conftest.err
3306 rm -f conftest.er1
3307 cat conftest.err >&5
3308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3309 (exit $ac_status); } &&
3310 { ac_try='test -z "$ac_c_werror_flag"
3311 || test ! -s conftest.err'
3312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3313 (eval $ac_try) 2>&5
3314 ac_status=$?
3315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3316 (exit $ac_status); }; } &&
3317 { ac_try='test -s conftest.$ac_objext'
3318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3319 (eval $ac_try) 2>&5
3320 ac_status=$?
3321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3322 (exit $ac_status); }; }; then
3323 ac_cv_header_sys_wait_h=yes
3324 else
3325 echo "$as_me: failed program was:" >&5
3326 sed 's/^/| /' conftest.$ac_ext >&5
3328 ac_cv_header_sys_wait_h=no
3330 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3332 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
3333 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
3334 if test $ac_cv_header_sys_wait_h = yes; then
3336 cat >>confdefs.h <<\_ACEOF
3337 #define HAVE_SYS_WAIT_H 1
3338 _ACEOF
3342 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3352 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3353 inttypes.h stdint.h unistd.h
3355 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3356 echo "$as_me:$LINENO: checking for $ac_header" >&5
3357 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3358 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3359 echo $ECHO_N "(cached) $ECHO_C" >&6
3360 else
3361 cat >conftest.$ac_ext <<_ACEOF
3362 /* confdefs.h. */
3363 _ACEOF
3364 cat confdefs.h >>conftest.$ac_ext
3365 cat >>conftest.$ac_ext <<_ACEOF
3366 /* end confdefs.h. */
3367 $ac_includes_default
3369 #include <$ac_header>
3370 _ACEOF
3371 rm -f conftest.$ac_objext
3372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3373 (eval $ac_compile) 2>conftest.er1
3374 ac_status=$?
3375 grep -v '^ *+' conftest.er1 >conftest.err
3376 rm -f conftest.er1
3377 cat conftest.err >&5
3378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3379 (exit $ac_status); } &&
3380 { ac_try='test -z "$ac_c_werror_flag"
3381 || test ! -s conftest.err'
3382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3383 (eval $ac_try) 2>&5
3384 ac_status=$?
3385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3386 (exit $ac_status); }; } &&
3387 { ac_try='test -s conftest.$ac_objext'
3388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3389 (eval $ac_try) 2>&5
3390 ac_status=$?
3391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3392 (exit $ac_status); }; }; then
3393 eval "$as_ac_Header=yes"
3394 else
3395 echo "$as_me: failed program was:" >&5
3396 sed 's/^/| /' conftest.$ac_ext >&5
3398 eval "$as_ac_Header=no"
3400 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3402 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3403 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3404 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3405 cat >>confdefs.h <<_ACEOF
3406 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3407 _ACEOF
3411 done
3416 for ac_header in malloc.h unistd.h
3418 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3419 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3420 echo "$as_me:$LINENO: checking for $ac_header" >&5
3421 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3422 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3423 echo $ECHO_N "(cached) $ECHO_C" >&6
3425 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3426 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3427 else
3428 # Is the header compilable?
3429 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3430 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3431 cat >conftest.$ac_ext <<_ACEOF
3432 /* confdefs.h. */
3433 _ACEOF
3434 cat confdefs.h >>conftest.$ac_ext
3435 cat >>conftest.$ac_ext <<_ACEOF
3436 /* end confdefs.h. */
3437 $ac_includes_default
3438 #include <$ac_header>
3439 _ACEOF
3440 rm -f conftest.$ac_objext
3441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3442 (eval $ac_compile) 2>conftest.er1
3443 ac_status=$?
3444 grep -v '^ *+' conftest.er1 >conftest.err
3445 rm -f conftest.er1
3446 cat conftest.err >&5
3447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3448 (exit $ac_status); } &&
3449 { ac_try='test -z "$ac_c_werror_flag"
3450 || test ! -s conftest.err'
3451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3452 (eval $ac_try) 2>&5
3453 ac_status=$?
3454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3455 (exit $ac_status); }; } &&
3456 { ac_try='test -s conftest.$ac_objext'
3457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3458 (eval $ac_try) 2>&5
3459 ac_status=$?
3460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3461 (exit $ac_status); }; }; then
3462 ac_header_compiler=yes
3463 else
3464 echo "$as_me: failed program was:" >&5
3465 sed 's/^/| /' conftest.$ac_ext >&5
3467 ac_header_compiler=no
3469 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3470 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3471 echo "${ECHO_T}$ac_header_compiler" >&6
3473 # Is the header present?
3474 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3475 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3476 cat >conftest.$ac_ext <<_ACEOF
3477 /* confdefs.h. */
3478 _ACEOF
3479 cat confdefs.h >>conftest.$ac_ext
3480 cat >>conftest.$ac_ext <<_ACEOF
3481 /* end confdefs.h. */
3482 #include <$ac_header>
3483 _ACEOF
3484 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3485 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3486 ac_status=$?
3487 grep -v '^ *+' conftest.er1 >conftest.err
3488 rm -f conftest.er1
3489 cat conftest.err >&5
3490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3491 (exit $ac_status); } >/dev/null; then
3492 if test -s conftest.err; then
3493 ac_cpp_err=$ac_c_preproc_warn_flag
3494 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3495 else
3496 ac_cpp_err=
3498 else
3499 ac_cpp_err=yes
3501 if test -z "$ac_cpp_err"; then
3502 ac_header_preproc=yes
3503 else
3504 echo "$as_me: failed program was:" >&5
3505 sed 's/^/| /' conftest.$ac_ext >&5
3507 ac_header_preproc=no
3509 rm -f conftest.err conftest.$ac_ext
3510 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3511 echo "${ECHO_T}$ac_header_preproc" >&6
3513 # So? What about this header?
3514 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3515 yes:no: )
3516 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3517 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3518 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3519 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3520 ac_header_preproc=yes
3522 no:yes:* )
3523 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3524 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3525 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3526 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3527 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3528 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3529 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3530 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3531 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3532 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3533 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3534 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3536 cat <<\_ASBOX
3537 ## ------------------------------------------ ##
3538 ## Report this to the AC_PACKAGE_NAME lists. ##
3539 ## ------------------------------------------ ##
3540 _ASBOX
3542 sed "s/^/$as_me: WARNING: /" >&2
3544 esac
3545 echo "$as_me:$LINENO: checking for $ac_header" >&5
3546 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3547 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3548 echo $ECHO_N "(cached) $ECHO_C" >&6
3549 else
3550 eval "$as_ac_Header=\$ac_header_preproc"
3552 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3553 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3556 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3557 cat >>confdefs.h <<_ACEOF
3558 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3559 _ACEOF
3563 done
3566 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3567 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3568 if test "${ac_cv_c_const+set}" = set; then
3569 echo $ECHO_N "(cached) $ECHO_C" >&6
3570 else
3571 cat >conftest.$ac_ext <<_ACEOF
3572 /* confdefs.h. */
3573 _ACEOF
3574 cat confdefs.h >>conftest.$ac_ext
3575 cat >>conftest.$ac_ext <<_ACEOF
3576 /* end confdefs.h. */
3579 main ()
3581 /* FIXME: Include the comments suggested by Paul. */
3582 #ifndef __cplusplus
3583 /* Ultrix mips cc rejects this. */
3584 typedef int charset[2];
3585 const charset x;
3586 /* SunOS 4.1.1 cc rejects this. */
3587 char const *const *ccp;
3588 char **p;
3589 /* NEC SVR4.0.2 mips cc rejects this. */
3590 struct point {int x, y;};
3591 static struct point const zero = {0,0};
3592 /* AIX XL C 1.02.0.0 rejects this.
3593 It does not let you subtract one const X* pointer from another in
3594 an arm of an if-expression whose if-part is not a constant
3595 expression */
3596 const char *g = "string";
3597 ccp = &g + (g ? g-g : 0);
3598 /* HPUX 7.0 cc rejects these. */
3599 ++ccp;
3600 p = (char**) ccp;
3601 ccp = (char const *const *) p;
3602 { /* SCO 3.2v4 cc rejects this. */
3603 char *t;
3604 char const *s = 0 ? (char *) 0 : (char const *) 0;
3606 *t++ = 0;
3608 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3609 int x[] = {25, 17};
3610 const int *foo = &x[0];
3611 ++foo;
3613 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3614 typedef const int *iptr;
3615 iptr p = 0;
3616 ++p;
3618 { /* AIX XL C 1.02.0.0 rejects this saying
3619 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3620 struct s { int j; const int *ap[3]; };
3621 struct s *b; b->j = 5;
3623 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3624 const int foo = 10;
3626 #endif
3629 return 0;
3631 _ACEOF
3632 rm -f conftest.$ac_objext
3633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3634 (eval $ac_compile) 2>conftest.er1
3635 ac_status=$?
3636 grep -v '^ *+' conftest.er1 >conftest.err
3637 rm -f conftest.er1
3638 cat conftest.err >&5
3639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3640 (exit $ac_status); } &&
3641 { ac_try='test -z "$ac_c_werror_flag"
3642 || test ! -s conftest.err'
3643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3644 (eval $ac_try) 2>&5
3645 ac_status=$?
3646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3647 (exit $ac_status); }; } &&
3648 { ac_try='test -s conftest.$ac_objext'
3649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3650 (eval $ac_try) 2>&5
3651 ac_status=$?
3652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3653 (exit $ac_status); }; }; then
3654 ac_cv_c_const=yes
3655 else
3656 echo "$as_me: failed program was:" >&5
3657 sed 's/^/| /' conftest.$ac_ext >&5
3659 ac_cv_c_const=no
3661 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3663 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3664 echo "${ECHO_T}$ac_cv_c_const" >&6
3665 if test $ac_cv_c_const = no; then
3667 cat >>confdefs.h <<\_ACEOF
3668 #define const
3669 _ACEOF
3673 echo "$as_me:$LINENO: checking for pid_t" >&5
3674 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
3675 if test "${ac_cv_type_pid_t+set}" = set; then
3676 echo $ECHO_N "(cached) $ECHO_C" >&6
3677 else
3678 cat >conftest.$ac_ext <<_ACEOF
3679 /* confdefs.h. */
3680 _ACEOF
3681 cat confdefs.h >>conftest.$ac_ext
3682 cat >>conftest.$ac_ext <<_ACEOF
3683 /* end confdefs.h. */
3684 $ac_includes_default
3686 main ()
3688 if ((pid_t *) 0)
3689 return 0;
3690 if (sizeof (pid_t))
3691 return 0;
3693 return 0;
3695 _ACEOF
3696 rm -f conftest.$ac_objext
3697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3698 (eval $ac_compile) 2>conftest.er1
3699 ac_status=$?
3700 grep -v '^ *+' conftest.er1 >conftest.err
3701 rm -f conftest.er1
3702 cat conftest.err >&5
3703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3704 (exit $ac_status); } &&
3705 { ac_try='test -z "$ac_c_werror_flag"
3706 || test ! -s conftest.err'
3707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3708 (eval $ac_try) 2>&5
3709 ac_status=$?
3710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3711 (exit $ac_status); }; } &&
3712 { ac_try='test -s conftest.$ac_objext'
3713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3714 (eval $ac_try) 2>&5
3715 ac_status=$?
3716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3717 (exit $ac_status); }; }; then
3718 ac_cv_type_pid_t=yes
3719 else
3720 echo "$as_me: failed program was:" >&5
3721 sed 's/^/| /' conftest.$ac_ext >&5
3723 ac_cv_type_pid_t=no
3725 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3727 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
3728 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
3729 if test $ac_cv_type_pid_t = yes; then
3731 else
3733 cat >>confdefs.h <<_ACEOF
3734 #define pid_t int
3735 _ACEOF
3740 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3741 # for constant arguments. Useless!
3742 echo "$as_me:$LINENO: checking for working alloca.h" >&5
3743 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
3744 if test "${ac_cv_working_alloca_h+set}" = set; then
3745 echo $ECHO_N "(cached) $ECHO_C" >&6
3746 else
3747 cat >conftest.$ac_ext <<_ACEOF
3748 /* confdefs.h. */
3749 _ACEOF
3750 cat confdefs.h >>conftest.$ac_ext
3751 cat >>conftest.$ac_ext <<_ACEOF
3752 /* end confdefs.h. */
3753 #include <alloca.h>
3755 main ()
3757 char *p = (char *) alloca (2 * sizeof (int));
3759 return 0;
3761 _ACEOF
3762 rm -f conftest.$ac_objext conftest$ac_exeext
3763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3764 (eval $ac_link) 2>conftest.er1
3765 ac_status=$?
3766 grep -v '^ *+' conftest.er1 >conftest.err
3767 rm -f conftest.er1
3768 cat conftest.err >&5
3769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3770 (exit $ac_status); } &&
3771 { ac_try='test -z "$ac_c_werror_flag"
3772 || test ! -s conftest.err'
3773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3774 (eval $ac_try) 2>&5
3775 ac_status=$?
3776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3777 (exit $ac_status); }; } &&
3778 { ac_try='test -s conftest$ac_exeext'
3779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3780 (eval $ac_try) 2>&5
3781 ac_status=$?
3782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3783 (exit $ac_status); }; }; then
3784 ac_cv_working_alloca_h=yes
3785 else
3786 echo "$as_me: failed program was:" >&5
3787 sed 's/^/| /' conftest.$ac_ext >&5
3789 ac_cv_working_alloca_h=no
3791 rm -f conftest.err conftest.$ac_objext \
3792 conftest$ac_exeext conftest.$ac_ext
3794 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
3795 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
3796 if test $ac_cv_working_alloca_h = yes; then
3798 cat >>confdefs.h <<\_ACEOF
3799 #define HAVE_ALLOCA_H 1
3800 _ACEOF
3804 echo "$as_me:$LINENO: checking for alloca" >&5
3805 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
3806 if test "${ac_cv_func_alloca_works+set}" = set; then
3807 echo $ECHO_N "(cached) $ECHO_C" >&6
3808 else
3809 cat >conftest.$ac_ext <<_ACEOF
3810 /* confdefs.h. */
3811 _ACEOF
3812 cat confdefs.h >>conftest.$ac_ext
3813 cat >>conftest.$ac_ext <<_ACEOF
3814 /* end confdefs.h. */
3815 #ifdef __GNUC__
3816 # define alloca __builtin_alloca
3817 #else
3818 # ifdef _MSC_VER
3819 # include <malloc.h>
3820 # define alloca _alloca
3821 # else
3822 # if HAVE_ALLOCA_H
3823 # include <alloca.h>
3824 # else
3825 # ifdef _AIX
3826 #pragma alloca
3827 # else
3828 # ifndef alloca /* predefined by HP cc +Olibcalls */
3829 char *alloca ();
3830 # endif
3831 # endif
3832 # endif
3833 # endif
3834 #endif
3837 main ()
3839 char *p = (char *) alloca (1);
3841 return 0;
3843 _ACEOF
3844 rm -f conftest.$ac_objext conftest$ac_exeext
3845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3846 (eval $ac_link) 2>conftest.er1
3847 ac_status=$?
3848 grep -v '^ *+' conftest.er1 >conftest.err
3849 rm -f conftest.er1
3850 cat conftest.err >&5
3851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3852 (exit $ac_status); } &&
3853 { ac_try='test -z "$ac_c_werror_flag"
3854 || test ! -s conftest.err'
3855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3856 (eval $ac_try) 2>&5
3857 ac_status=$?
3858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3859 (exit $ac_status); }; } &&
3860 { ac_try='test -s conftest$ac_exeext'
3861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3862 (eval $ac_try) 2>&5
3863 ac_status=$?
3864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865 (exit $ac_status); }; }; then
3866 ac_cv_func_alloca_works=yes
3867 else
3868 echo "$as_me: failed program was:" >&5
3869 sed 's/^/| /' conftest.$ac_ext >&5
3871 ac_cv_func_alloca_works=no
3873 rm -f conftest.err conftest.$ac_objext \
3874 conftest$ac_exeext conftest.$ac_ext
3876 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
3877 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
3879 if test $ac_cv_func_alloca_works = yes; then
3881 cat >>confdefs.h <<\_ACEOF
3882 #define HAVE_ALLOCA 1
3883 _ACEOF
3885 else
3886 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3887 # that cause trouble. Some versions do not even contain alloca or
3888 # contain a buggy version. If you still want to use their alloca,
3889 # use ar to extract alloca.o from them instead of compiling alloca.c.
3891 ALLOCA=alloca.$ac_objext
3893 cat >>confdefs.h <<\_ACEOF
3894 #define C_ALLOCA 1
3895 _ACEOF
3898 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
3899 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
3900 if test "${ac_cv_os_cray+set}" = set; then
3901 echo $ECHO_N "(cached) $ECHO_C" >&6
3902 else
3903 cat >conftest.$ac_ext <<_ACEOF
3904 /* confdefs.h. */
3905 _ACEOF
3906 cat confdefs.h >>conftest.$ac_ext
3907 cat >>conftest.$ac_ext <<_ACEOF
3908 /* end confdefs.h. */
3909 #if defined(CRAY) && ! defined(CRAY2)
3910 webecray
3911 #else
3912 wenotbecray
3913 #endif
3915 _ACEOF
3916 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3917 $EGREP "webecray" >/dev/null 2>&1; then
3918 ac_cv_os_cray=yes
3919 else
3920 ac_cv_os_cray=no
3922 rm -f conftest*
3925 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
3926 echo "${ECHO_T}$ac_cv_os_cray" >&6
3927 if test $ac_cv_os_cray = yes; then
3928 for ac_func in _getb67 GETB67 getb67; do
3929 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3930 echo "$as_me:$LINENO: checking for $ac_func" >&5
3931 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3932 if eval "test \"\${$as_ac_var+set}\" = set"; then
3933 echo $ECHO_N "(cached) $ECHO_C" >&6
3934 else
3935 cat >conftest.$ac_ext <<_ACEOF
3936 /* confdefs.h. */
3937 _ACEOF
3938 cat confdefs.h >>conftest.$ac_ext
3939 cat >>conftest.$ac_ext <<_ACEOF
3940 /* end confdefs.h. */
3941 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3942 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3943 #define $ac_func innocuous_$ac_func
3945 /* System header to define __stub macros and hopefully few prototypes,
3946 which can conflict with char $ac_func (); below.
3947 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3948 <limits.h> exists even on freestanding compilers. */
3950 #ifdef __STDC__
3951 # include <limits.h>
3952 #else
3953 # include <assert.h>
3954 #endif
3956 #undef $ac_func
3958 /* Override any gcc2 internal prototype to avoid an error. */
3959 #ifdef __cplusplus
3960 extern "C"
3962 #endif
3963 /* We use char because int might match the return type of a gcc2
3964 builtin and then its argument prototype would still apply. */
3965 char $ac_func ();
3966 /* The GNU C library defines this for functions which it implements
3967 to always fail with ENOSYS. Some functions are actually named
3968 something starting with __ and the normal name is an alias. */
3969 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3970 choke me
3971 #else
3972 char (*f) () = $ac_func;
3973 #endif
3974 #ifdef __cplusplus
3976 #endif
3979 main ()
3981 return f != $ac_func;
3983 return 0;
3985 _ACEOF
3986 rm -f conftest.$ac_objext conftest$ac_exeext
3987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3988 (eval $ac_link) 2>conftest.er1
3989 ac_status=$?
3990 grep -v '^ *+' conftest.er1 >conftest.err
3991 rm -f conftest.er1
3992 cat conftest.err >&5
3993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3994 (exit $ac_status); } &&
3995 { ac_try='test -z "$ac_c_werror_flag"
3996 || test ! -s conftest.err'
3997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3998 (eval $ac_try) 2>&5
3999 ac_status=$?
4000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4001 (exit $ac_status); }; } &&
4002 { ac_try='test -s conftest$ac_exeext'
4003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4004 (eval $ac_try) 2>&5
4005 ac_status=$?
4006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4007 (exit $ac_status); }; }; then
4008 eval "$as_ac_var=yes"
4009 else
4010 echo "$as_me: failed program was:" >&5
4011 sed 's/^/| /' conftest.$ac_ext >&5
4013 eval "$as_ac_var=no"
4015 rm -f conftest.err conftest.$ac_objext \
4016 conftest$ac_exeext conftest.$ac_ext
4018 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4019 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4020 if test `eval echo '${'$as_ac_var'}'` = yes; then
4022 cat >>confdefs.h <<_ACEOF
4023 #define CRAY_STACKSEG_END $ac_func
4024 _ACEOF
4026 break
4029 done
4032 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
4033 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
4034 if test "${ac_cv_c_stack_direction+set}" = set; then
4035 echo $ECHO_N "(cached) $ECHO_C" >&6
4036 else
4037 if test "$cross_compiling" = yes; then
4038 ac_cv_c_stack_direction=0
4039 else
4040 cat >conftest.$ac_ext <<_ACEOF
4041 /* confdefs.h. */
4042 _ACEOF
4043 cat confdefs.h >>conftest.$ac_ext
4044 cat >>conftest.$ac_ext <<_ACEOF
4045 /* end confdefs.h. */
4047 find_stack_direction ()
4049 static char *addr = 0;
4050 auto char dummy;
4051 if (addr == 0)
4053 addr = &dummy;
4054 return find_stack_direction ();
4056 else
4057 return (&dummy > addr) ? 1 : -1;
4061 main ()
4063 exit (find_stack_direction () < 0);
4065 _ACEOF
4066 rm -f conftest$ac_exeext
4067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4068 (eval $ac_link) 2>&5
4069 ac_status=$?
4070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4071 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4073 (eval $ac_try) 2>&5
4074 ac_status=$?
4075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076 (exit $ac_status); }; }; then
4077 ac_cv_c_stack_direction=1
4078 else
4079 echo "$as_me: program exited with status $ac_status" >&5
4080 echo "$as_me: failed program was:" >&5
4081 sed 's/^/| /' conftest.$ac_ext >&5
4083 ( exit $ac_status )
4084 ac_cv_c_stack_direction=-1
4086 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4089 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
4090 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
4092 cat >>confdefs.h <<_ACEOF
4093 #define STACK_DIRECTION $ac_cv_c_stack_direction
4094 _ACEOF
4103 for ac_func in getcwd mkdir strerror strstr
4105 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4106 echo "$as_me:$LINENO: checking for $ac_func" >&5
4107 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4108 if eval "test \"\${$as_ac_var+set}\" = set"; then
4109 echo $ECHO_N "(cached) $ECHO_C" >&6
4110 else
4111 cat >conftest.$ac_ext <<_ACEOF
4112 /* confdefs.h. */
4113 _ACEOF
4114 cat confdefs.h >>conftest.$ac_ext
4115 cat >>conftest.$ac_ext <<_ACEOF
4116 /* end confdefs.h. */
4117 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4118 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4119 #define $ac_func innocuous_$ac_func
4121 /* System header to define __stub macros and hopefully few prototypes,
4122 which can conflict with char $ac_func (); below.
4123 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4124 <limits.h> exists even on freestanding compilers. */
4126 #ifdef __STDC__
4127 # include <limits.h>
4128 #else
4129 # include <assert.h>
4130 #endif
4132 #undef $ac_func
4134 /* Override any gcc2 internal prototype to avoid an error. */
4135 #ifdef __cplusplus
4136 extern "C"
4138 #endif
4139 /* We use char because int might match the return type of a gcc2
4140 builtin and then its argument prototype would still apply. */
4141 char $ac_func ();
4142 /* The GNU C library defines this for functions which it implements
4143 to always fail with ENOSYS. Some functions are actually named
4144 something starting with __ and the normal name is an alias. */
4145 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4146 choke me
4147 #else
4148 char (*f) () = $ac_func;
4149 #endif
4150 #ifdef __cplusplus
4152 #endif
4155 main ()
4157 return f != $ac_func;
4159 return 0;
4161 _ACEOF
4162 rm -f conftest.$ac_objext conftest$ac_exeext
4163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4164 (eval $ac_link) 2>conftest.er1
4165 ac_status=$?
4166 grep -v '^ *+' conftest.er1 >conftest.err
4167 rm -f conftest.er1
4168 cat conftest.err >&5
4169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4170 (exit $ac_status); } &&
4171 { ac_try='test -z "$ac_c_werror_flag"
4172 || test ! -s conftest.err'
4173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4174 (eval $ac_try) 2>&5
4175 ac_status=$?
4176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4177 (exit $ac_status); }; } &&
4178 { ac_try='test -s conftest$ac_exeext'
4179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4180 (eval $ac_try) 2>&5
4181 ac_status=$?
4182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4183 (exit $ac_status); }; }; then
4184 eval "$as_ac_var=yes"
4185 else
4186 echo "$as_me: failed program was:" >&5
4187 sed 's/^/| /' conftest.$ac_ext >&5
4189 eval "$as_ac_var=no"
4191 rm -f conftest.err conftest.$ac_objext \
4192 conftest$ac_exeext conftest.$ac_ext
4194 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4195 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4196 if test `eval echo '${'$as_ac_var'}'` = yes; then
4197 cat >>confdefs.h <<_ACEOF
4198 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4199 _ACEOF
4202 done
4205 cat >conftest.$ac_ext <<_ACEOF
4206 /* confdefs.h. */
4207 _ACEOF
4208 cat confdefs.h >>conftest.$ac_ext
4209 cat >>conftest.$ac_ext <<_ACEOF
4210 /* end confdefs.h. */
4212 #include <varargs.h>
4215 main ()
4218 int foo(void *s, ...)
4220 va_list ap;
4221 va_start(ap);
4225 return 0;
4227 _ACEOF
4228 rm -f conftest.$ac_objext
4229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4230 (eval $ac_compile) 2>conftest.er1
4231 ac_status=$?
4232 grep -v '^ *+' conftest.er1 >conftest.err
4233 rm -f conftest.er1
4234 cat conftest.err >&5
4235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4236 (exit $ac_status); } &&
4237 { ac_try='test -z "$ac_c_werror_flag"
4238 || test ! -s conftest.err'
4239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4240 (eval $ac_try) 2>&5
4241 ac_status=$?
4242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4243 (exit $ac_status); }; } &&
4244 { ac_try='test -s conftest.$ac_objext'
4245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4246 (eval $ac_try) 2>&5
4247 ac_status=$?
4248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4249 (exit $ac_status); }; }; then
4250 USE_STD_ARG=0
4251 else
4252 echo "$as_me: failed program was:" >&5
4253 sed 's/^/| /' conftest.$ac_ext >&5
4255 USE_STD_ARG=1
4257 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4259 cat >>confdefs.h <<_ACEOF
4260 #define USE_STD_ARG $USE_STD_ARG
4261 _ACEOF
4264 objdir=`pwd`
4269 subdirs="$subdirs cpp"
4272 ac_config_files="$ac_config_files Makefile doc/Makefile query/Makefile"
4273 cat >confcache <<\_ACEOF
4274 # This file is a shell script that caches the results of configure
4275 # tests run on this system so they can be shared between configure
4276 # scripts and configure runs, see configure's option --config-cache.
4277 # It is not useful on other systems. If it contains results you don't
4278 # want to keep, you may remove or edit it.
4280 # config.status only pays attention to the cache file if you give it
4281 # the --recheck option to rerun configure.
4283 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4284 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4285 # following values.
4287 _ACEOF
4289 # The following way of writing the cache mishandles newlines in values,
4290 # but we know of no workaround that is simple, portable, and efficient.
4291 # So, don't put newlines in cache variables' values.
4292 # Ultrix sh set writes to stderr and can't be redirected directly,
4293 # and sets the high bit in the cache file unless we assign to the vars.
4295 (set) 2>&1 |
4296 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4297 *ac_space=\ *)
4298 # `set' does not quote correctly, so add quotes (double-quote
4299 # substitution turns \\\\ into \\, and sed turns \\ into \).
4300 sed -n \
4301 "s/'/'\\\\''/g;
4302 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4305 # `set' quotes correctly as required by POSIX, so do not add quotes.
4306 sed -n \
4307 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4309 esac;
4311 sed '
4312 t clear
4313 : clear
4314 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4315 t end
4316 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4317 : end' >>confcache
4318 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4319 if test -w $cache_file; then
4320 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4321 cat confcache >$cache_file
4322 else
4323 echo "not updating unwritable cache $cache_file"
4326 rm -f confcache
4328 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4329 # Let make expand exec_prefix.
4330 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4332 # VPATH may cause trouble with some makes, so we remove $(srcdir),
4333 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4334 # trailing colons and then remove the whole line if VPATH becomes empty
4335 # (actually we leave an empty line to preserve line numbers).
4336 if test "x$srcdir" = x.; then
4337 ac_vpsub='/^[ ]*VPATH[ ]*=/{
4338 s/:*\$(srcdir):*/:/;
4339 s/:*\${srcdir}:*/:/;
4340 s/:*@srcdir@:*/:/;
4341 s/^\([^=]*=[ ]*\):*/\1/;
4342 s/:*$//;
4343 s/^[^=]*=[ ]*$//;
4347 DEFS=-DHAVE_CONFIG_H
4349 ac_libobjs=
4350 ac_ltlibobjs=
4351 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4352 # 1. Remove the extension, and $U if already installed.
4353 ac_i=`echo "$ac_i" |
4354 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
4355 # 2. Add them.
4356 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
4357 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
4358 done
4359 LIBOBJS=$ac_libobjs
4361 LTLIBOBJS=$ac_ltlibobjs
4365 : ${CONFIG_STATUS=./config.status}
4366 ac_clean_files_save=$ac_clean_files
4367 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4368 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
4369 echo "$as_me: creating $CONFIG_STATUS" >&6;}
4370 cat >$CONFIG_STATUS <<_ACEOF
4371 #! $SHELL
4372 # Generated by $as_me.
4373 # Run this file to recreate the current configuration.
4374 # Compiler output produced by configure, useful for debugging
4375 # configure, is in config.log if it exists.
4377 debug=false
4378 ac_cs_recheck=false
4379 ac_cs_silent=false
4380 SHELL=\${CONFIG_SHELL-$SHELL}
4381 _ACEOF
4383 cat >>$CONFIG_STATUS <<\_ACEOF
4384 ## --------------------- ##
4385 ## M4sh Initialization. ##
4386 ## --------------------- ##
4388 # Be Bourne compatible
4389 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4390 emulate sh
4391 NULLCMD=:
4392 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
4393 # is contrary to our usage. Disable this feature.
4394 alias -g '${1+"$@"}'='"$@"'
4395 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
4396 set -o posix
4398 DUALCASE=1; export DUALCASE # for MKS sh
4400 # Support unset when possible.
4401 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4402 as_unset=unset
4403 else
4404 as_unset=false
4408 # Work around bugs in pre-3.0 UWIN ksh.
4409 $as_unset ENV MAIL MAILPATH
4410 PS1='$ '
4411 PS2='> '
4412 PS4='+ '
4414 # NLS nuisances.
4415 for as_var in \
4416 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
4417 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
4418 LC_TELEPHONE LC_TIME
4420 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
4421 eval $as_var=C; export $as_var
4422 else
4423 $as_unset $as_var
4425 done
4427 # Required to use basename.
4428 if expr a : '\(a\)' >/dev/null 2>&1; then
4429 as_expr=expr
4430 else
4431 as_expr=false
4434 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
4435 as_basename=basename
4436 else
4437 as_basename=false
4441 # Name of the executable.
4442 as_me=`$as_basename "$0" ||
4443 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4444 X"$0" : 'X\(//\)$' \| \
4445 X"$0" : 'X\(/\)$' \| \
4446 . : '\(.\)' 2>/dev/null ||
4447 echo X/"$0" |
4448 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
4449 /^X\/\(\/\/\)$/{ s//\1/; q; }
4450 /^X\/\(\/\).*/{ s//\1/; q; }
4451 s/.*/./; q'`
4454 # PATH needs CR, and LINENO needs CR and PATH.
4455 # Avoid depending upon Character Ranges.
4456 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4457 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4458 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4459 as_cr_digits='0123456789'
4460 as_cr_alnum=$as_cr_Letters$as_cr_digits
4462 # The user is always right.
4463 if test "${PATH_SEPARATOR+set}" != set; then
4464 echo "#! /bin/sh" >conf$$.sh
4465 echo "exit 0" >>conf$$.sh
4466 chmod +x conf$$.sh
4467 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4468 PATH_SEPARATOR=';'
4469 else
4470 PATH_SEPARATOR=:
4472 rm -f conf$$.sh
4476 as_lineno_1=$LINENO
4477 as_lineno_2=$LINENO
4478 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4479 test "x$as_lineno_1" != "x$as_lineno_2" &&
4480 test "x$as_lineno_3" = "x$as_lineno_2" || {
4481 # Find who we are. Look in the path if we contain no path at all
4482 # relative or not.
4483 case $0 in
4484 *[\\/]* ) as_myself=$0 ;;
4485 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4486 for as_dir in $PATH
4488 IFS=$as_save_IFS
4489 test -z "$as_dir" && as_dir=.
4490 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4491 done
4494 esac
4495 # We did not find ourselves, most probably we were run as `sh COMMAND'
4496 # in which case we are not to be found in the path.
4497 if test "x$as_myself" = x; then
4498 as_myself=$0
4500 if test ! -f "$as_myself"; then
4501 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
4502 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
4503 { (exit 1); exit 1; }; }
4505 case $CONFIG_SHELL in
4507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4508 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
4510 IFS=$as_save_IFS
4511 test -z "$as_dir" && as_dir=.
4512 for as_base in sh bash ksh sh5; do
4513 case $as_dir in
4515 if ("$as_dir/$as_base" -c '
4516 as_lineno_1=$LINENO
4517 as_lineno_2=$LINENO
4518 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4519 test "x$as_lineno_1" != "x$as_lineno_2" &&
4520 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
4521 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
4522 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
4523 CONFIG_SHELL=$as_dir/$as_base
4524 export CONFIG_SHELL
4525 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
4526 fi;;
4527 esac
4528 done
4529 done
4531 esac
4533 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4534 # uniformly replaced by the line number. The first 'sed' inserts a
4535 # line-number line before each line; the second 'sed' does the real
4536 # work. The second script uses 'N' to pair each line-number line
4537 # with the numbered line, and appends trailing '-' during
4538 # substitution so that $LINENO is not a special case at line end.
4539 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4540 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
4541 sed '=' <$as_myself |
4542 sed '
4544 s,$,-,
4545 : loop
4546 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
4547 t loop
4548 s,-$,,
4549 s,^['$as_cr_digits']*\n,,
4550 ' >$as_me.lineno &&
4551 chmod +x $as_me.lineno ||
4552 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
4553 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
4554 { (exit 1); exit 1; }; }
4556 # Don't try to exec as it changes $[0], causing all sort of problems
4557 # (the dirname of $[0] is not the place where we might find the
4558 # original and so on. Autoconf is especially sensible to this).
4559 . ./$as_me.lineno
4560 # Exit status is that of the last command.
4561 exit
4565 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
4566 *c*,-n*) ECHO_N= ECHO_C='
4567 ' ECHO_T=' ' ;;
4568 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
4569 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
4570 esac
4572 if expr a : '\(a\)' >/dev/null 2>&1; then
4573 as_expr=expr
4574 else
4575 as_expr=false
4578 rm -f conf$$ conf$$.exe conf$$.file
4579 echo >conf$$.file
4580 if ln -s conf$$.file conf$$ 2>/dev/null; then
4581 # We could just check for DJGPP; but this test a) works b) is more generic
4582 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4583 if test -f conf$$.exe; then
4584 # Don't use ln at all; we don't have any links
4585 as_ln_s='cp -p'
4586 else
4587 as_ln_s='ln -s'
4589 elif ln conf$$.file conf$$ 2>/dev/null; then
4590 as_ln_s=ln
4591 else
4592 as_ln_s='cp -p'
4594 rm -f conf$$ conf$$.exe conf$$.file
4596 if mkdir -p . 2>/dev/null; then
4597 as_mkdir_p=:
4598 else
4599 test -d ./-p && rmdir ./-p
4600 as_mkdir_p=false
4603 as_executable_p="test -f"
4605 # Sed expression to map a string onto a valid CPP name.
4606 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4608 # Sed expression to map a string onto a valid variable name.
4609 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4612 # IFS
4613 # We need space, tab and new line, in precisely that order.
4614 as_nl='
4616 IFS=" $as_nl"
4618 # CDPATH.
4619 $as_unset CDPATH
4621 exec 6>&1
4623 # Open the log real soon, to keep \$[0] and so on meaningful, and to
4624 # report actual input values of CONFIG_FILES etc. instead of their
4625 # values after options handling. Logging --version etc. is OK.
4626 exec 5>>config.log
4628 echo
4629 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4630 ## Running $as_me. ##
4631 _ASBOX
4632 } >&5
4633 cat >&5 <<_CSEOF
4635 This file was extended by $as_me, which was
4636 generated by GNU Autoconf 2.59. Invocation command line was
4638 CONFIG_FILES = $CONFIG_FILES
4639 CONFIG_HEADERS = $CONFIG_HEADERS
4640 CONFIG_LINKS = $CONFIG_LINKS
4641 CONFIG_COMMANDS = $CONFIG_COMMANDS
4642 $ $0 $@
4644 _CSEOF
4645 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
4646 echo >&5
4647 _ACEOF
4649 # Files that config.status was made for.
4650 if test -n "$ac_config_files"; then
4651 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
4654 if test -n "$ac_config_headers"; then
4655 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
4658 if test -n "$ac_config_links"; then
4659 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
4662 if test -n "$ac_config_commands"; then
4663 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
4666 cat >>$CONFIG_STATUS <<\_ACEOF
4668 ac_cs_usage="\
4669 \`$as_me' instantiates files from templates according to the
4670 current configuration.
4672 Usage: $0 [OPTIONS] [FILE]...
4674 -h, --help print this help, then exit
4675 -V, --version print version number, then exit
4676 -q, --quiet do not print progress messages
4677 -d, --debug don't remove temporary files
4678 --recheck update $as_me by reconfiguring in the same conditions
4679 --file=FILE[:TEMPLATE]
4680 instantiate the configuration file FILE
4681 --header=FILE[:TEMPLATE]
4682 instantiate the configuration header FILE
4684 Configuration files:
4685 $config_files
4687 Configuration headers:
4688 $config_headers
4690 Report bugs to <bug-autoconf@gnu.org>."
4691 _ACEOF
4693 cat >>$CONFIG_STATUS <<_ACEOF
4694 ac_cs_version="\\
4695 config.status
4696 configured by $0, generated by GNU Autoconf 2.59,
4697 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
4699 Copyright (C) 2003 Free Software Foundation, Inc.
4700 This config.status script is free software; the Free Software Foundation
4701 gives unlimited permission to copy, distribute and modify it."
4702 srcdir=$srcdir
4703 INSTALL="$INSTALL"
4704 _ACEOF
4706 cat >>$CONFIG_STATUS <<\_ACEOF
4707 # If no file are specified by the user, then we need to provide default
4708 # value. By we need to know if files were specified by the user.
4709 ac_need_defaults=:
4710 while test $# != 0
4712 case $1 in
4713 --*=*)
4714 ac_option=`expr "x$1" : 'x\([^=]*\)='`
4715 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
4716 ac_shift=:
4719 ac_option=$1
4720 ac_optarg=$2
4721 ac_shift=shift
4723 *) # This is not an option, so the user has probably given explicit
4724 # arguments.
4725 ac_option=$1
4726 ac_need_defaults=false;;
4727 esac
4729 case $ac_option in
4730 # Handling of the options.
4731 _ACEOF
4732 cat >>$CONFIG_STATUS <<\_ACEOF
4733 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4734 ac_cs_recheck=: ;;
4735 --version | --vers* | -V )
4736 echo "$ac_cs_version"; exit 0 ;;
4737 --he | --h)
4738 # Conflict between --help and --header
4739 { { echo "$as_me:$LINENO: error: ambiguous option: $1
4740 Try \`$0 --help' for more information." >&5
4741 echo "$as_me: error: ambiguous option: $1
4742 Try \`$0 --help' for more information." >&2;}
4743 { (exit 1); exit 1; }; };;
4744 --help | --hel | -h )
4745 echo "$ac_cs_usage"; exit 0 ;;
4746 --debug | --d* | -d )
4747 debug=: ;;
4748 --file | --fil | --fi | --f )
4749 $ac_shift
4750 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
4751 ac_need_defaults=false;;
4752 --header | --heade | --head | --hea )
4753 $ac_shift
4754 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
4755 ac_need_defaults=false;;
4756 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4757 | -silent | --silent | --silen | --sile | --sil | --si | --s)
4758 ac_cs_silent=: ;;
4760 # This is an error.
4761 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
4762 Try \`$0 --help' for more information." >&5
4763 echo "$as_me: error: unrecognized option: $1
4764 Try \`$0 --help' for more information." >&2;}
4765 { (exit 1); exit 1; }; } ;;
4767 *) ac_config_targets="$ac_config_targets $1" ;;
4769 esac
4770 shift
4771 done
4773 ac_configure_extra_args=
4775 if $ac_cs_silent; then
4776 exec 6>/dev/null
4777 ac_configure_extra_args="$ac_configure_extra_args --silent"
4780 _ACEOF
4781 cat >>$CONFIG_STATUS <<_ACEOF
4782 if \$ac_cs_recheck; then
4783 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
4784 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4787 _ACEOF
4793 cat >>$CONFIG_STATUS <<\_ACEOF
4794 for ac_config_target in $ac_config_targets
4796 case "$ac_config_target" in
4797 # Handling of arguments.
4798 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4799 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
4800 "query/Makefile" ) CONFIG_FILES="$CONFIG_FILES query/Makefile" ;;
4801 "autoconfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS autoconfig.h" ;;
4802 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
4803 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4804 { (exit 1); exit 1; }; };;
4805 esac
4806 done
4808 # If the user did not use the arguments to specify the items to instantiate,
4809 # then the envvar interface is used. Set only those that are not.
4810 # We use the long form for the default assignment because of an extremely
4811 # bizarre bug on SunOS 4.1.3.
4812 if $ac_need_defaults; then
4813 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4814 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
4817 # Have a temporary directory for convenience. Make it in the build tree
4818 # simply because there is no reason to put it here, and in addition,
4819 # creating and moving files from /tmp can sometimes cause problems.
4820 # Create a temporary directory, and hook for its removal unless debugging.
4821 $debug ||
4823 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4824 trap '{ (exit 1); exit 1; }' 1 2 13 15
4827 # Create a (secure) tmp directory for tmp files.
4830 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
4831 test -n "$tmp" && test -d "$tmp"
4832 } ||
4834 tmp=./confstat$$-$RANDOM
4835 (umask 077 && mkdir $tmp)
4836 } ||
4838 echo "$me: cannot create a temporary directory in ." >&2
4839 { (exit 1); exit 1; }
4842 _ACEOF
4844 cat >>$CONFIG_STATUS <<_ACEOF
4847 # CONFIG_FILES section.
4850 # No need to generate the scripts if there are no CONFIG_FILES.
4851 # This happens for instance when ./config.status config.h
4852 if test -n "\$CONFIG_FILES"; then
4853 # Protect against being on the right side of a sed subst in config.status.
4854 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
4855 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
4856 s,@SHELL@,$SHELL,;t t
4857 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
4858 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
4859 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
4860 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
4861 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
4862 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
4863 s,@exec_prefix@,$exec_prefix,;t t
4864 s,@prefix@,$prefix,;t t
4865 s,@program_transform_name@,$program_transform_name,;t t
4866 s,@bindir@,$bindir,;t t
4867 s,@sbindir@,$sbindir,;t t
4868 s,@libexecdir@,$libexecdir,;t t
4869 s,@datadir@,$datadir,;t t
4870 s,@sysconfdir@,$sysconfdir,;t t
4871 s,@sharedstatedir@,$sharedstatedir,;t t
4872 s,@localstatedir@,$localstatedir,;t t
4873 s,@libdir@,$libdir,;t t
4874 s,@includedir@,$includedir,;t t
4875 s,@oldincludedir@,$oldincludedir,;t t
4876 s,@infodir@,$infodir,;t t
4877 s,@mandir@,$mandir,;t t
4878 s,@build_alias@,$build_alias,;t t
4879 s,@host_alias@,$host_alias,;t t
4880 s,@target_alias@,$target_alias,;t t
4881 s,@DEFS@,$DEFS,;t t
4882 s,@ECHO_C@,$ECHO_C,;t t
4883 s,@ECHO_N@,$ECHO_N,;t t
4884 s,@ECHO_T@,$ECHO_T,;t t
4885 s,@LIBS@,$LIBS,;t t
4886 s,@PAGE@,$PAGE,;t t
4887 s,@CC@,$CC,;t t
4888 s,@CFLAGS@,$CFLAGS,;t t
4889 s,@LDFLAGS@,$LDFLAGS,;t t
4890 s,@CPPFLAGS@,$CPPFLAGS,;t t
4891 s,@ac_ct_CC@,$ac_ct_CC,;t t
4892 s,@EXEEXT@,$EXEEXT,;t t
4893 s,@OBJEXT@,$OBJEXT,;t t
4894 s,@AWK@,$AWK,;t t
4895 s,@YACC@,$YACC,;t t
4896 s,@CPP@,$CPP,;t t
4897 s,@LEX@,$LEX,;t t
4898 s,@LEXLIB@,$LEXLIB,;t t
4899 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
4900 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
4901 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
4902 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
4903 s,@LN_S@,$LN_S,;t t
4904 s,@SET_MAKE@,$SET_MAKE,;t t
4905 s,@PERL@,$PERL,;t t
4906 s,@LATEX@,$LATEX,;t t
4907 s,@DVIPS@,$DVIPS,;t t
4908 s,@EGREP@,$EGREP,;t t
4909 s,@ALLOCA@,$ALLOCA,;t t
4910 s,@objdir@,$objdir,;t t
4911 s,@subdirs@,$subdirs,;t t
4912 s,@LIBOBJS@,$LIBOBJS,;t t
4913 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
4914 CEOF
4916 _ACEOF
4918 cat >>$CONFIG_STATUS <<\_ACEOF
4919 # Split the substitutions into bite-sized pieces for seds with
4920 # small command number limits, like on Digital OSF/1 and HP-UX.
4921 ac_max_sed_lines=48
4922 ac_sed_frag=1 # Number of current file.
4923 ac_beg=1 # First line for current file.
4924 ac_end=$ac_max_sed_lines # Line after last line for current file.
4925 ac_more_lines=:
4926 ac_sed_cmds=
4927 while $ac_more_lines; do
4928 if test $ac_beg -gt 1; then
4929 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4930 else
4931 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4933 if test ! -s $tmp/subs.frag; then
4934 ac_more_lines=false
4935 else
4936 # The purpose of the label and of the branching condition is to
4937 # speed up the sed processing (if there are no `@' at all, there
4938 # is no need to browse any of the substitutions).
4939 # These are the two extra sed commands mentioned above.
4940 (echo ':t
4941 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
4942 if test -z "$ac_sed_cmds"; then
4943 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
4944 else
4945 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
4947 ac_sed_frag=`expr $ac_sed_frag + 1`
4948 ac_beg=$ac_end
4949 ac_end=`expr $ac_end + $ac_max_sed_lines`
4951 done
4952 if test -z "$ac_sed_cmds"; then
4953 ac_sed_cmds=cat
4955 fi # test -n "$CONFIG_FILES"
4957 _ACEOF
4958 cat >>$CONFIG_STATUS <<\_ACEOF
4959 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
4960 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4961 case $ac_file in
4962 - | *:- | *:-:* ) # input from stdin
4963 cat >$tmp/stdin
4964 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4965 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4966 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4967 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4968 * ) ac_file_in=$ac_file.in ;;
4969 esac
4971 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
4972 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4973 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4974 X"$ac_file" : 'X\(//\)[^/]' \| \
4975 X"$ac_file" : 'X\(//\)$' \| \
4976 X"$ac_file" : 'X\(/\)' \| \
4977 . : '\(.\)' 2>/dev/null ||
4978 echo X"$ac_file" |
4979 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4980 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4981 /^X\(\/\/\)$/{ s//\1/; q; }
4982 /^X\(\/\).*/{ s//\1/; q; }
4983 s/.*/./; q'`
4984 { if $as_mkdir_p; then
4985 mkdir -p "$ac_dir"
4986 else
4987 as_dir="$ac_dir"
4988 as_dirs=
4989 while test ! -d "$as_dir"; do
4990 as_dirs="$as_dir $as_dirs"
4991 as_dir=`(dirname "$as_dir") 2>/dev/null ||
4992 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4993 X"$as_dir" : 'X\(//\)[^/]' \| \
4994 X"$as_dir" : 'X\(//\)$' \| \
4995 X"$as_dir" : 'X\(/\)' \| \
4996 . : '\(.\)' 2>/dev/null ||
4997 echo X"$as_dir" |
4998 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4999 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5000 /^X\(\/\/\)$/{ s//\1/; q; }
5001 /^X\(\/\).*/{ s//\1/; q; }
5002 s/.*/./; q'`
5003 done
5004 test ! -n "$as_dirs" || mkdir $as_dirs
5005 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5006 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5007 { (exit 1); exit 1; }; }; }
5009 ac_builddir=.
5011 if test "$ac_dir" != .; then
5012 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5013 # A "../" for each directory in $ac_dir_suffix.
5014 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5015 else
5016 ac_dir_suffix= ac_top_builddir=
5019 case $srcdir in
5020 .) # No --srcdir option. We are building in place.
5021 ac_srcdir=.
5022 if test -z "$ac_top_builddir"; then
5023 ac_top_srcdir=.
5024 else
5025 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5026 fi ;;
5027 [\\/]* | ?:[\\/]* ) # Absolute path.
5028 ac_srcdir=$srcdir$ac_dir_suffix;
5029 ac_top_srcdir=$srcdir ;;
5030 *) # Relative path.
5031 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5032 ac_top_srcdir=$ac_top_builddir$srcdir ;;
5033 esac
5035 # Do not use `cd foo && pwd` to compute absolute paths, because
5036 # the directories may not exist.
5037 case `pwd` in
5038 .) ac_abs_builddir="$ac_dir";;
5040 case "$ac_dir" in
5041 .) ac_abs_builddir=`pwd`;;
5042 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
5043 *) ac_abs_builddir=`pwd`/"$ac_dir";;
5044 esac;;
5045 esac
5046 case $ac_abs_builddir in
5047 .) ac_abs_top_builddir=${ac_top_builddir}.;;
5049 case ${ac_top_builddir}. in
5050 .) ac_abs_top_builddir=$ac_abs_builddir;;
5051 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
5052 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
5053 esac;;
5054 esac
5055 case $ac_abs_builddir in
5056 .) ac_abs_srcdir=$ac_srcdir;;
5058 case $ac_srcdir in
5059 .) ac_abs_srcdir=$ac_abs_builddir;;
5060 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
5061 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
5062 esac;;
5063 esac
5064 case $ac_abs_builddir in
5065 .) ac_abs_top_srcdir=$ac_top_srcdir;;
5067 case $ac_top_srcdir in
5068 .) ac_abs_top_srcdir=$ac_abs_builddir;;
5069 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
5070 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
5071 esac;;
5072 esac
5075 case $INSTALL in
5076 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5077 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
5078 esac
5080 if test x"$ac_file" != x-; then
5081 { echo "$as_me:$LINENO: creating $ac_file" >&5
5082 echo "$as_me: creating $ac_file" >&6;}
5083 rm -f "$ac_file"
5085 # Let's still pretend it is `configure' which instantiates (i.e., don't
5086 # use $as_me), people would be surprised to read:
5087 # /* config.h. Generated by config.status. */
5088 if test x"$ac_file" = x-; then
5089 configure_input=
5090 else
5091 configure_input="$ac_file. "
5093 configure_input=$configure_input"Generated from `echo $ac_file_in |
5094 sed 's,.*/,,'` by configure."
5096 # First look for the input files in the build tree, otherwise in the
5097 # src tree.
5098 ac_file_inputs=`IFS=:
5099 for f in $ac_file_in; do
5100 case $f in
5101 -) echo $tmp/stdin ;;
5102 [\\/$]*)
5103 # Absolute (can't be DOS-style, as IFS=:)
5104 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5105 echo "$as_me: error: cannot find input file: $f" >&2;}
5106 { (exit 1); exit 1; }; }
5107 echo "$f";;
5108 *) # Relative
5109 if test -f "$f"; then
5110 # Build tree
5111 echo "$f"
5112 elif test -f "$srcdir/$f"; then
5113 # Source tree
5114 echo "$srcdir/$f"
5115 else
5116 # /dev/null tree
5117 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5118 echo "$as_me: error: cannot find input file: $f" >&2;}
5119 { (exit 1); exit 1; }; }
5120 fi;;
5121 esac
5122 done` || { (exit 1); exit 1; }
5123 _ACEOF
5124 cat >>$CONFIG_STATUS <<_ACEOF
5125 sed "$ac_vpsub
5126 $extrasub
5127 _ACEOF
5128 cat >>$CONFIG_STATUS <<\_ACEOF
5130 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5131 s,@configure_input@,$configure_input,;t t
5132 s,@srcdir@,$ac_srcdir,;t t
5133 s,@abs_srcdir@,$ac_abs_srcdir,;t t
5134 s,@top_srcdir@,$ac_top_srcdir,;t t
5135 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
5136 s,@builddir@,$ac_builddir,;t t
5137 s,@abs_builddir@,$ac_abs_builddir,;t t
5138 s,@top_builddir@,$ac_top_builddir,;t t
5139 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
5140 s,@INSTALL@,$ac_INSTALL,;t t
5141 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5142 rm -f $tmp/stdin
5143 if test x"$ac_file" != x-; then
5144 mv $tmp/out $ac_file
5145 else
5146 cat $tmp/out
5147 rm -f $tmp/out
5150 done
5151 _ACEOF
5152 cat >>$CONFIG_STATUS <<\_ACEOF
5155 # CONFIG_HEADER section.
5158 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5159 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5161 # ac_d sets the value in "#define NAME VALUE" lines.
5162 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5163 ac_dB='[ ].*$,\1#\2'
5164 ac_dC=' '
5165 ac_dD=',;t'
5166 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5167 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5168 ac_uB='$,\1#\2define\3'
5169 ac_uC=' '
5170 ac_uD=',;t'
5172 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
5173 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5174 case $ac_file in
5175 - | *:- | *:-:* ) # input from stdin
5176 cat >$tmp/stdin
5177 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5178 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5179 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5180 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5181 * ) ac_file_in=$ac_file.in ;;
5182 esac
5184 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
5185 echo "$as_me: creating $ac_file" >&6;}
5187 # First look for the input files in the build tree, otherwise in the
5188 # src tree.
5189 ac_file_inputs=`IFS=:
5190 for f in $ac_file_in; do
5191 case $f in
5192 -) echo $tmp/stdin ;;
5193 [\\/$]*)
5194 # Absolute (can't be DOS-style, as IFS=:)
5195 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5196 echo "$as_me: error: cannot find input file: $f" >&2;}
5197 { (exit 1); exit 1; }; }
5198 # Do quote $f, to prevent DOS paths from being IFS'd.
5199 echo "$f";;
5200 *) # Relative
5201 if test -f "$f"; then
5202 # Build tree
5203 echo "$f"
5204 elif test -f "$srcdir/$f"; then
5205 # Source tree
5206 echo "$srcdir/$f"
5207 else
5208 # /dev/null tree
5209 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5210 echo "$as_me: error: cannot find input file: $f" >&2;}
5211 { (exit 1); exit 1; }; }
5212 fi;;
5213 esac
5214 done` || { (exit 1); exit 1; }
5215 # Remove the trailing spaces.
5216 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
5218 _ACEOF
5220 # Transform confdefs.h into two sed scripts, `conftest.defines' and
5221 # `conftest.undefs', that substitutes the proper values into
5222 # config.h.in to produce config.h. The first handles `#define'
5223 # templates, and the second `#undef' templates.
5224 # And first: Protect against being on the right side of a sed subst in
5225 # config.status. Protect against being in an unquoted here document
5226 # in config.status.
5227 rm -f conftest.defines conftest.undefs
5228 # Using a here document instead of a string reduces the quoting nightmare.
5229 # Putting comments in sed scripts is not portable.
5231 # `end' is used to avoid that the second main sed command (meant for
5232 # 0-ary CPP macros) applies to n-ary macro definitions.
5233 # See the Autoconf documentation for `clear'.
5234 cat >confdef2sed.sed <<\_ACEOF
5235 s/[\\&,]/\\&/g
5236 s,[\\$`],\\&,g
5237 t clear
5238 : clear
5239 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
5240 t end
5241 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
5242 : end
5243 _ACEOF
5244 # If some macros were called several times there might be several times
5245 # the same #defines, which is useless. Nevertheless, we may not want to
5246 # sort them, since we want the *last* AC-DEFINE to be honored.
5247 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
5248 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
5249 rm -f confdef2sed.sed
5251 # This sed command replaces #undef with comments. This is necessary, for
5252 # example, in the case of _POSIX_SOURCE, which is predefined and required
5253 # on some systems where configure will not decide to define it.
5254 cat >>conftest.undefs <<\_ACEOF
5255 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
5256 _ACEOF
5258 # Break up conftest.defines because some shells have a limit on the size
5259 # of here documents, and old seds have small limits too (100 cmds).
5260 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
5261 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
5262 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
5263 echo ' :' >>$CONFIG_STATUS
5264 rm -f conftest.tail
5265 while grep . conftest.defines >/dev/null
5267 # Write a limited-size here document to $tmp/defines.sed.
5268 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
5269 # Speed up: don't consider the non `#define' lines.
5270 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
5271 # Work around the forget-to-reset-the-flag bug.
5272 echo 't clr' >>$CONFIG_STATUS
5273 echo ': clr' >>$CONFIG_STATUS
5274 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
5275 echo 'CEOF
5276 sed -f $tmp/defines.sed $tmp/in >$tmp/out
5277 rm -f $tmp/in
5278 mv $tmp/out $tmp/in
5279 ' >>$CONFIG_STATUS
5280 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
5281 rm -f conftest.defines
5282 mv conftest.tail conftest.defines
5283 done
5284 rm -f conftest.defines
5285 echo ' fi # grep' >>$CONFIG_STATUS
5286 echo >>$CONFIG_STATUS
5288 # Break up conftest.undefs because some shells have a limit on the size
5289 # of here documents, and old seds have small limits too (100 cmds).
5290 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
5291 rm -f conftest.tail
5292 while grep . conftest.undefs >/dev/null
5294 # Write a limited-size here document to $tmp/undefs.sed.
5295 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
5296 # Speed up: don't consider the non `#undef'
5297 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
5298 # Work around the forget-to-reset-the-flag bug.
5299 echo 't clr' >>$CONFIG_STATUS
5300 echo ': clr' >>$CONFIG_STATUS
5301 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
5302 echo 'CEOF
5303 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
5304 rm -f $tmp/in
5305 mv $tmp/out $tmp/in
5306 ' >>$CONFIG_STATUS
5307 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
5308 rm -f conftest.undefs
5309 mv conftest.tail conftest.undefs
5310 done
5311 rm -f conftest.undefs
5313 cat >>$CONFIG_STATUS <<\_ACEOF
5314 # Let's still pretend it is `configure' which instantiates (i.e., don't
5315 # use $as_me), people would be surprised to read:
5316 # /* config.h. Generated by config.status. */
5317 if test x"$ac_file" = x-; then
5318 echo "/* Generated by configure. */" >$tmp/config.h
5319 else
5320 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
5322 cat $tmp/in >>$tmp/config.h
5323 rm -f $tmp/in
5324 if test x"$ac_file" != x-; then
5325 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
5326 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
5327 echo "$as_me: $ac_file is unchanged" >&6;}
5328 else
5329 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5330 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5331 X"$ac_file" : 'X\(//\)[^/]' \| \
5332 X"$ac_file" : 'X\(//\)$' \| \
5333 X"$ac_file" : 'X\(/\)' \| \
5334 . : '\(.\)' 2>/dev/null ||
5335 echo X"$ac_file" |
5336 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5337 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5338 /^X\(\/\/\)$/{ s//\1/; q; }
5339 /^X\(\/\).*/{ s//\1/; q; }
5340 s/.*/./; q'`
5341 { if $as_mkdir_p; then
5342 mkdir -p "$ac_dir"
5343 else
5344 as_dir="$ac_dir"
5345 as_dirs=
5346 while test ! -d "$as_dir"; do
5347 as_dirs="$as_dir $as_dirs"
5348 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5349 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5350 X"$as_dir" : 'X\(//\)[^/]' \| \
5351 X"$as_dir" : 'X\(//\)$' \| \
5352 X"$as_dir" : 'X\(/\)' \| \
5353 . : '\(.\)' 2>/dev/null ||
5354 echo X"$as_dir" |
5355 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5356 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5357 /^X\(\/\/\)$/{ s//\1/; q; }
5358 /^X\(\/\).*/{ s//\1/; q; }
5359 s/.*/./; q'`
5360 done
5361 test ! -n "$as_dirs" || mkdir $as_dirs
5362 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5363 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5364 { (exit 1); exit 1; }; }; }
5366 rm -f $ac_file
5367 mv $tmp/config.h $ac_file
5369 else
5370 cat $tmp/config.h
5371 rm -f $tmp/config.h
5373 done
5374 _ACEOF
5376 cat >>$CONFIG_STATUS <<\_ACEOF
5378 { (exit 0); exit 0; }
5379 _ACEOF
5380 chmod +x $CONFIG_STATUS
5381 ac_clean_files=$ac_clean_files_save
5384 # configure is writing to config.log, and then calls config.status.
5385 # config.status does its own redirection, appending to config.log.
5386 # Unfortunately, on DOS this fails, as config.log is still kept open
5387 # by configure, so config.status won't be able to write to it; its
5388 # output is simply discarded. So we exec the FD to /dev/null,
5389 # effectively closing config.log, so it can be properly (re)opened and
5390 # appended to by config.status. When coming back to configure, we
5391 # need to make the FD available again.
5392 if test "$no_create" != yes; then
5393 ac_cs_success=:
5394 ac_config_status_args=
5395 test "$silent" = yes &&
5396 ac_config_status_args="$ac_config_status_args --quiet"
5397 exec 5>/dev/null
5398 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5399 exec 5>>config.log
5400 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5401 # would make configure fail if this is the last instruction.
5402 $ac_cs_success || { (exit 1); exit 1; }
5406 # CONFIG_SUBDIRS section.
5408 if test "$no_recursion" != yes; then
5410 # Remove --cache-file and --srcdir arguments so they do not pile up.
5411 ac_sub_configure_args=
5412 ac_prev=
5413 for ac_arg in $ac_configure_args; do
5414 if test -n "$ac_prev"; then
5415 ac_prev=
5416 continue
5418 case $ac_arg in
5419 -cache-file | --cache-file | --cache-fil | --cache-fi \
5420 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
5421 ac_prev=cache_file ;;
5422 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
5423 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
5424 | --c=*)
5426 --config-cache | -C)
5428 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
5429 ac_prev=srcdir ;;
5430 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
5432 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
5433 ac_prev=prefix ;;
5434 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
5436 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
5437 esac
5438 done
5440 # Always prepend --prefix to ensure using the same prefix
5441 # in subdir configurations.
5442 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
5444 ac_popdir=`pwd`
5445 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
5447 # Do not complain, so a configure script can configure whichever
5448 # parts of a large source tree are present.
5449 test -d $srcdir/$ac_dir || continue
5451 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
5452 echo "$as_me: configuring in $ac_dir" >&6;}
5453 { if $as_mkdir_p; then
5454 mkdir -p "$ac_dir"
5455 else
5456 as_dir="$ac_dir"
5457 as_dirs=
5458 while test ! -d "$as_dir"; do
5459 as_dirs="$as_dir $as_dirs"
5460 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5461 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5462 X"$as_dir" : 'X\(//\)[^/]' \| \
5463 X"$as_dir" : 'X\(//\)$' \| \
5464 X"$as_dir" : 'X\(/\)' \| \
5465 . : '\(.\)' 2>/dev/null ||
5466 echo X"$as_dir" |
5467 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5468 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5469 /^X\(\/\/\)$/{ s//\1/; q; }
5470 /^X\(\/\).*/{ s//\1/; q; }
5471 s/.*/./; q'`
5472 done
5473 test ! -n "$as_dirs" || mkdir $as_dirs
5474 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5475 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5476 { (exit 1); exit 1; }; }; }
5478 ac_builddir=.
5480 if test "$ac_dir" != .; then
5481 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5482 # A "../" for each directory in $ac_dir_suffix.
5483 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5484 else
5485 ac_dir_suffix= ac_top_builddir=
5488 case $srcdir in
5489 .) # No --srcdir option. We are building in place.
5490 ac_srcdir=.
5491 if test -z "$ac_top_builddir"; then
5492 ac_top_srcdir=.
5493 else
5494 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5495 fi ;;
5496 [\\/]* | ?:[\\/]* ) # Absolute path.
5497 ac_srcdir=$srcdir$ac_dir_suffix;
5498 ac_top_srcdir=$srcdir ;;
5499 *) # Relative path.
5500 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5501 ac_top_srcdir=$ac_top_builddir$srcdir ;;
5502 esac
5504 # Do not use `cd foo && pwd` to compute absolute paths, because
5505 # the directories may not exist.
5506 case `pwd` in
5507 .) ac_abs_builddir="$ac_dir";;
5509 case "$ac_dir" in
5510 .) ac_abs_builddir=`pwd`;;
5511 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
5512 *) ac_abs_builddir=`pwd`/"$ac_dir";;
5513 esac;;
5514 esac
5515 case $ac_abs_builddir in
5516 .) ac_abs_top_builddir=${ac_top_builddir}.;;
5518 case ${ac_top_builddir}. in
5519 .) ac_abs_top_builddir=$ac_abs_builddir;;
5520 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
5521 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
5522 esac;;
5523 esac
5524 case $ac_abs_builddir in
5525 .) ac_abs_srcdir=$ac_srcdir;;
5527 case $ac_srcdir in
5528 .) ac_abs_srcdir=$ac_abs_builddir;;
5529 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
5530 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
5531 esac;;
5532 esac
5533 case $ac_abs_builddir in
5534 .) ac_abs_top_srcdir=$ac_top_srcdir;;
5536 case $ac_top_srcdir in
5537 .) ac_abs_top_srcdir=$ac_abs_builddir;;
5538 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
5539 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
5540 esac;;
5541 esac
5544 cd $ac_dir
5546 # Check for guested configure; otherwise get Cygnus style configure.
5547 if test -f $ac_srcdir/configure.gnu; then
5548 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
5549 elif test -f $ac_srcdir/configure; then
5550 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
5551 elif test -f $ac_srcdir/configure.in; then
5552 ac_sub_configure=$ac_configure
5553 else
5554 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
5555 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
5556 ac_sub_configure=
5559 # The recursion is here.
5560 if test -n "$ac_sub_configure"; then
5561 # Make the cache file name correct relative to the subdirectory.
5562 case $cache_file in
5563 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
5564 *) # Relative path.
5565 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
5566 esac
5568 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
5569 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
5570 # The eval makes quoting arguments work.
5571 eval $ac_sub_configure $ac_sub_configure_args \
5572 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
5573 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
5574 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
5575 { (exit 1); exit 1; }; }
5578 cd $ac_popdir
5579 done