("" < 3.4) always evaluates to true, which unconditionally
[dragonfly.git] / contrib / less-381 / configure
blob6264a36eb75edcd7b01862a2a2e0f4ce55b24443
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.54 for less 1.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15 emulate sh
16 NULLCMD=:
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21 set -o posix
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/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 LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_NUMERIC LC_MESSAGES LC_TIME
41 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
42 eval $as_var=C; export $as_var
43 else
44 $as_unset $as_var
46 done
48 # Required to use basename.
49 if expr a : '\(a\)' >/dev/null 2>&1; then
50 as_expr=expr
51 else
52 as_expr=false
55 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
56 as_basename=basename
57 else
58 as_basename=false
62 # Name of the executable.
63 as_me=`$as_basename "$0" ||
64 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
65 X"$0" : 'X\(//\)$' \| \
66 X"$0" : 'X\(/\)$' \| \
67 . : '\(.\)' 2>/dev/null ||
68 echo X/"$0" |
69 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
70 /^X\/\(\/\/\)$/{ s//\1/; q; }
71 /^X\/\(\/\).*/{ s//\1/; q; }
72 s/.*/./; q'`
75 # PATH needs CR, and LINENO needs CR and PATH.
76 # Avoid depending upon Character Ranges.
77 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
78 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
79 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
80 as_cr_digits='0123456789'
81 as_cr_alnum=$as_cr_Letters$as_cr_digits
83 # The user is always right.
84 if test "${PATH_SEPARATOR+set}" != set; then
85 echo "#! /bin/sh" >conftest.sh
86 echo "exit 0" >>conftest.sh
87 chmod +x conftest.sh
88 if (PATH="/nonexistent;."; conftest.sh) >/dev/null 2>&1; then
89 PATH_SEPARATOR=';'
90 else
91 PATH_SEPARATOR=:
93 rm -f conftest.sh
97 as_lineno_1=$LINENO
98 as_lineno_2=$LINENO
99 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
100 test "x$as_lineno_1" != "x$as_lineno_2" &&
101 test "x$as_lineno_3" = "x$as_lineno_2" || {
102 # Find who we are. Look in the path if we contain no path at all
103 # relative or not.
104 case $0 in
105 *[\\/]* ) as_myself=$0 ;;
106 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
107 for as_dir in $PATH
109 IFS=$as_save_IFS
110 test -z "$as_dir" && as_dir=.
111 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
112 done
115 esac
116 # We did not find ourselves, most probably we were run as `sh COMMAND'
117 # in which case we are not to be found in the path.
118 if test "x$as_myself" = x; then
119 as_myself=$0
121 if test ! -f "$as_myself"; then
122 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
123 { (exit 1); exit 1; }; }
125 case $CONFIG_SHELL in
127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
128 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
130 IFS=$as_save_IFS
131 test -z "$as_dir" && as_dir=.
132 for as_base in sh bash ksh sh5; do
133 case $as_dir in
135 if ("$as_dir/$as_base" -c '
136 as_lineno_1=$LINENO
137 as_lineno_2=$LINENO
138 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
139 test "x$as_lineno_1" != "x$as_lineno_2" &&
140 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
141 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
142 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
143 CONFIG_SHELL=$as_dir/$as_base
144 export CONFIG_SHELL
145 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
146 fi;;
147 esac
148 done
149 done
151 esac
153 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
154 # uniformly replaced by the line number. The first 'sed' inserts a
155 # line-number line before each line; the second 'sed' does the real
156 # work. The second script uses 'N' to pair each line-number line
157 # with the numbered line, and appends trailing '-' during
158 # substitution so that $LINENO is not a special case at line end.
159 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
160 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
161 sed '=' <$as_myself |
162 sed '
164 s,$,-,
165 : loop
166 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
167 t loop
168 s,-$,,
169 s,^['$as_cr_digits']*\n,,
170 ' >$as_me.lineno &&
171 chmod +x $as_me.lineno ||
172 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
173 { (exit 1); exit 1; }; }
175 # Don't try to exec as it changes $[0], causing all sort of problems
176 # (the dirname of $[0] is not the place where we might find the
177 # original and so on. Autoconf is especially sensible to this).
178 . ./$as_me.lineno
179 # Exit status is that of the last command.
180 exit
184 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
185 *c*,-n*) ECHO_N= ECHO_C='
186 ' ECHO_T=' ' ;;
187 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
188 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
189 esac
191 if expr a : '\(a\)' >/dev/null 2>&1; then
192 as_expr=expr
193 else
194 as_expr=false
197 rm -f conf$$ conf$$.exe conf$$.file
198 echo >conf$$.file
199 if ln -s conf$$.file conf$$ 2>/dev/null; then
200 # We could just check for DJGPP; but this test a) works b) is more generic
201 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
202 if test -f conf$$.exe; then
203 # Don't use ln at all; we don't have any links
204 as_ln_s='cp -p'
205 else
206 as_ln_s='ln -s'
208 elif ln conf$$.file conf$$ 2>/dev/null; then
209 as_ln_s=ln
210 else
211 as_ln_s='cp -p'
213 rm -f conf$$ conf$$.exe conf$$.file
215 if mkdir -p . 2>/dev/null; then
216 as_mkdir_p=:
217 else
218 as_mkdir_p=false
221 as_executable_p="test -f"
223 # Sed expression to map a string onto a valid CPP name.
224 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
226 # Sed expression to map a string onto a valid variable name.
227 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
230 # IFS
231 # We need space, tab and new line, in precisely that order.
232 as_nl='
234 IFS=" $as_nl"
236 # CDPATH.
237 $as_unset CDPATH
240 # Name of the host.
241 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
242 # so uname gets run too.
243 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
245 exec 6>&1
248 # Initializations.
250 ac_default_prefix=/usr/local
251 ac_config_libobj_dir=.
252 cross_compiling=no
253 subdirs=
254 MFLAGS=
255 MAKEFLAGS=
256 SHELL=${CONFIG_SHELL-/bin/sh}
258 # Maximum number of lines to put in a shell here document.
259 # This variable seems obsolete. It should probably be removed, and
260 # only ac_max_sed_lines should be used.
261 : ${ac_max_here_lines=38}
263 # Identity of this package.
264 PACKAGE_NAME='less'
265 PACKAGE_TARNAME='less'
266 PACKAGE_VERSION='1'
267 PACKAGE_STRING='less 1'
268 PACKAGE_BUGREPORT=''
270 ac_unique_file="forwback.c"
271 # Factoring default headers for most tests.
272 ac_includes_default="\
273 #include <stdio.h>
274 #if HAVE_SYS_TYPES_H
275 # include <sys/types.h>
276 #endif
277 #if HAVE_SYS_STAT_H
278 # include <sys/stat.h>
279 #endif
280 #if STDC_HEADERS
281 # include <stdlib.h>
282 # include <stddef.h>
283 #else
284 # if HAVE_STDLIB_H
285 # include <stdlib.h>
286 # endif
287 #endif
288 #if HAVE_STRING_H
289 # if !STDC_HEADERS && HAVE_MEMORY_H
290 # include <memory.h>
291 # endif
292 # include <string.h>
293 #endif
294 #if HAVE_STRINGS_H
295 # include <strings.h>
296 #endif
297 #if HAVE_INTTYPES_H
298 # include <inttypes.h>
299 #else
300 # if HAVE_STDINT_H
301 # include <stdint.h>
302 # endif
303 #endif
304 #if HAVE_UNISTD_H
305 # include <unistd.h>
306 #endif"
308 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 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA REGEX_O LIBOBJS LTLIBOBJS'
309 ac_subst_files=''
311 # Initialize some variables set by options.
312 ac_init_help=
313 ac_init_version=false
314 # The variables have the same names as the options, with
315 # dashes changed to underlines.
316 cache_file=/dev/null
317 exec_prefix=NONE
318 no_create=
319 no_recursion=
320 prefix=NONE
321 program_prefix=NONE
322 program_suffix=NONE
323 program_transform_name=s,x,x,
324 silent=
325 site=
326 srcdir=
327 verbose=
328 x_includes=NONE
329 x_libraries=NONE
331 # Installation directory options.
332 # These are left unexpanded so users can "make install exec_prefix=/foo"
333 # and all the variables that are supposed to be based on exec_prefix
334 # by default will actually change.
335 # Use braces instead of parens because sh, perl, etc. also accept them.
336 bindir='${exec_prefix}/bin'
337 sbindir='${exec_prefix}/sbin'
338 libexecdir='${exec_prefix}/libexec'
339 datadir='${prefix}/share'
340 sysconfdir='${prefix}/etc'
341 sharedstatedir='${prefix}/com'
342 localstatedir='${prefix}/var'
343 libdir='${exec_prefix}/lib'
344 includedir='${prefix}/include'
345 oldincludedir='/usr/include'
346 infodir='${prefix}/info'
347 mandir='${prefix}/man'
349 ac_prev=
350 for ac_option
352 # If the previous option needs an argument, assign it.
353 if test -n "$ac_prev"; then
354 eval "$ac_prev=\$ac_option"
355 ac_prev=
356 continue
359 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
361 # Accept the important Cygnus configure options, so we can diagnose typos.
363 case $ac_option in
365 -bindir | --bindir | --bindi | --bind | --bin | --bi)
366 ac_prev=bindir ;;
367 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
368 bindir=$ac_optarg ;;
370 -build | --build | --buil | --bui | --bu)
371 ac_prev=build_alias ;;
372 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
373 build_alias=$ac_optarg ;;
375 -cache-file | --cache-file | --cache-fil | --cache-fi \
376 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
377 ac_prev=cache_file ;;
378 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
379 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
380 cache_file=$ac_optarg ;;
382 --config-cache | -C)
383 cache_file=config.cache ;;
385 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
386 ac_prev=datadir ;;
387 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
388 | --da=*)
389 datadir=$ac_optarg ;;
391 -disable-* | --disable-*)
392 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
393 # Reject names that are not valid shell variable names.
394 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
395 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
396 { (exit 1); exit 1; }; }
397 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
398 eval "enable_$ac_feature=no" ;;
400 -enable-* | --enable-*)
401 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
402 # Reject names that are not valid shell variable names.
403 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
404 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
405 { (exit 1); exit 1; }; }
406 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
407 case $ac_option in
408 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
409 *) ac_optarg=yes ;;
410 esac
411 eval "enable_$ac_feature='$ac_optarg'" ;;
413 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
414 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
415 | --exec | --exe | --ex)
416 ac_prev=exec_prefix ;;
417 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
418 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
419 | --exec=* | --exe=* | --ex=*)
420 exec_prefix=$ac_optarg ;;
422 -gas | --gas | --ga | --g)
423 # Obsolete; use --with-gas.
424 with_gas=yes ;;
426 -help | --help | --hel | --he | -h)
427 ac_init_help=long ;;
428 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
429 ac_init_help=recursive ;;
430 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
431 ac_init_help=short ;;
433 -host | --host | --hos | --ho)
434 ac_prev=host_alias ;;
435 -host=* | --host=* | --hos=* | --ho=*)
436 host_alias=$ac_optarg ;;
438 -includedir | --includedir | --includedi | --included | --include \
439 | --includ | --inclu | --incl | --inc)
440 ac_prev=includedir ;;
441 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
442 | --includ=* | --inclu=* | --incl=* | --inc=*)
443 includedir=$ac_optarg ;;
445 -infodir | --infodir | --infodi | --infod | --info | --inf)
446 ac_prev=infodir ;;
447 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
448 infodir=$ac_optarg ;;
450 -libdir | --libdir | --libdi | --libd)
451 ac_prev=libdir ;;
452 -libdir=* | --libdir=* | --libdi=* | --libd=*)
453 libdir=$ac_optarg ;;
455 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
456 | --libexe | --libex | --libe)
457 ac_prev=libexecdir ;;
458 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
459 | --libexe=* | --libex=* | --libe=*)
460 libexecdir=$ac_optarg ;;
462 -localstatedir | --localstatedir | --localstatedi | --localstated \
463 | --localstate | --localstat | --localsta | --localst \
464 | --locals | --local | --loca | --loc | --lo)
465 ac_prev=localstatedir ;;
466 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
467 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
468 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
469 localstatedir=$ac_optarg ;;
471 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
472 ac_prev=mandir ;;
473 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
474 mandir=$ac_optarg ;;
476 -nfp | --nfp | --nf)
477 # Obsolete; use --without-fp.
478 with_fp=no ;;
480 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
481 | --no-cr | --no-c | -n)
482 no_create=yes ;;
484 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
485 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
486 no_recursion=yes ;;
488 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
489 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
490 | --oldin | --oldi | --old | --ol | --o)
491 ac_prev=oldincludedir ;;
492 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
493 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
494 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
495 oldincludedir=$ac_optarg ;;
497 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
498 ac_prev=prefix ;;
499 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
500 prefix=$ac_optarg ;;
502 -program-prefix | --program-prefix | --program-prefi | --program-pref \
503 | --program-pre | --program-pr | --program-p)
504 ac_prev=program_prefix ;;
505 -program-prefix=* | --program-prefix=* | --program-prefi=* \
506 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
507 program_prefix=$ac_optarg ;;
509 -program-suffix | --program-suffix | --program-suffi | --program-suff \
510 | --program-suf | --program-su | --program-s)
511 ac_prev=program_suffix ;;
512 -program-suffix=* | --program-suffix=* | --program-suffi=* \
513 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
514 program_suffix=$ac_optarg ;;
516 -program-transform-name | --program-transform-name \
517 | --program-transform-nam | --program-transform-na \
518 | --program-transform-n | --program-transform- \
519 | --program-transform | --program-transfor \
520 | --program-transfo | --program-transf \
521 | --program-trans | --program-tran \
522 | --progr-tra | --program-tr | --program-t)
523 ac_prev=program_transform_name ;;
524 -program-transform-name=* | --program-transform-name=* \
525 | --program-transform-nam=* | --program-transform-na=* \
526 | --program-transform-n=* | --program-transform-=* \
527 | --program-transform=* | --program-transfor=* \
528 | --program-transfo=* | --program-transf=* \
529 | --program-trans=* | --program-tran=* \
530 | --progr-tra=* | --program-tr=* | --program-t=*)
531 program_transform_name=$ac_optarg ;;
533 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
534 | -silent | --silent | --silen | --sile | --sil)
535 silent=yes ;;
537 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
538 ac_prev=sbindir ;;
539 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
540 | --sbi=* | --sb=*)
541 sbindir=$ac_optarg ;;
543 -sharedstatedir | --sharedstatedir | --sharedstatedi \
544 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
545 | --sharedst | --shareds | --shared | --share | --shar \
546 | --sha | --sh)
547 ac_prev=sharedstatedir ;;
548 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
549 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
550 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
551 | --sha=* | --sh=*)
552 sharedstatedir=$ac_optarg ;;
554 -site | --site | --sit)
555 ac_prev=site ;;
556 -site=* | --site=* | --sit=*)
557 site=$ac_optarg ;;
559 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
560 ac_prev=srcdir ;;
561 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
562 srcdir=$ac_optarg ;;
564 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
565 | --syscon | --sysco | --sysc | --sys | --sy)
566 ac_prev=sysconfdir ;;
567 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
568 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
569 sysconfdir=$ac_optarg ;;
571 -target | --target | --targe | --targ | --tar | --ta | --t)
572 ac_prev=target_alias ;;
573 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
574 target_alias=$ac_optarg ;;
576 -v | -verbose | --verbose | --verbos | --verbo | --verb)
577 verbose=yes ;;
579 -version | --version | --versio | --versi | --vers | -V)
580 ac_init_version=: ;;
582 -with-* | --with-*)
583 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
584 # Reject names that are not valid shell variable names.
585 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
586 { echo "$as_me: error: invalid package name: $ac_package" >&2
587 { (exit 1); exit 1; }; }
588 ac_package=`echo $ac_package| sed 's/-/_/g'`
589 case $ac_option in
590 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
591 *) ac_optarg=yes ;;
592 esac
593 eval "with_$ac_package='$ac_optarg'" ;;
595 -without-* | --without-*)
596 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
597 # Reject names that are not valid shell variable names.
598 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
599 { echo "$as_me: error: invalid package name: $ac_package" >&2
600 { (exit 1); exit 1; }; }
601 ac_package=`echo $ac_package | sed 's/-/_/g'`
602 eval "with_$ac_package=no" ;;
604 --x)
605 # Obsolete; use --with-x.
606 with_x=yes ;;
608 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
609 | --x-incl | --x-inc | --x-in | --x-i)
610 ac_prev=x_includes ;;
611 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
612 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
613 x_includes=$ac_optarg ;;
615 -x-libraries | --x-libraries | --x-librarie | --x-librari \
616 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
617 ac_prev=x_libraries ;;
618 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
619 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
620 x_libraries=$ac_optarg ;;
622 -*) { echo "$as_me: error: unrecognized option: $ac_option
623 Try \`$0 --help' for more information." >&2
624 { (exit 1); exit 1; }; }
627 *=*)
628 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
629 # Reject names that are not valid shell variable names.
630 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
631 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
632 { (exit 1); exit 1; }; }
633 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
634 eval "$ac_envvar='$ac_optarg'"
635 export $ac_envvar ;;
638 # FIXME: should be removed in autoconf 3.0.
639 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
640 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
641 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
642 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
645 esac
646 done
648 if test -n "$ac_prev"; then
649 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
650 { echo "$as_me: error: missing argument to $ac_option" >&2
651 { (exit 1); exit 1; }; }
654 # Be sure to have absolute paths.
655 for ac_var in exec_prefix prefix
657 eval ac_val=$`echo $ac_var`
658 case $ac_val in
659 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
660 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
661 { (exit 1); exit 1; }; };;
662 esac
663 done
665 # Be sure to have absolute paths.
666 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
667 localstatedir libdir includedir oldincludedir infodir mandir
669 eval ac_val=$`echo $ac_var`
670 case $ac_val in
671 [\\/$]* | ?:[\\/]* ) ;;
672 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
673 { (exit 1); exit 1; }; };;
674 esac
675 done
677 # There might be people who depend on the old broken behavior: `$host'
678 # used to hold the argument of --host etc.
679 # FIXME: To remove some day.
680 build=$build_alias
681 host=$host_alias
682 target=$target_alias
684 # FIXME: To remove some day.
685 if test "x$host_alias" != x; then
686 if test "x$build_alias" = x; then
687 cross_compiling=maybe
688 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
689 If a cross compiler is detected then cross compile mode will be used." >&2
690 elif test "x$build_alias" != "x$host_alias"; then
691 cross_compiling=yes
695 ac_tool_prefix=
696 test -n "$host_alias" && ac_tool_prefix=$host_alias-
698 test "$silent" = yes && exec 6>/dev/null
701 # Find the source files, if location was not specified.
702 if test -z "$srcdir"; then
703 ac_srcdir_defaulted=yes
704 # Try the directory containing this script, then its parent.
705 ac_confdir=`(dirname "$0") 2>/dev/null ||
706 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
707 X"$0" : 'X\(//\)[^/]' \| \
708 X"$0" : 'X\(//\)$' \| \
709 X"$0" : 'X\(/\)' \| \
710 . : '\(.\)' 2>/dev/null ||
711 echo X"$0" |
712 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
713 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
714 /^X\(\/\/\)$/{ s//\1/; q; }
715 /^X\(\/\).*/{ s//\1/; q; }
716 s/.*/./; q'`
717 srcdir=$ac_confdir
718 if test ! -r $srcdir/$ac_unique_file; then
719 srcdir=..
721 else
722 ac_srcdir_defaulted=no
724 if test ! -r $srcdir/$ac_unique_file; then
725 if test "$ac_srcdir_defaulted" = yes; then
726 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
727 { (exit 1); exit 1; }; }
728 else
729 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
730 { (exit 1); exit 1; }; }
733 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
734 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
735 { (exit 1); exit 1; }; }
736 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
737 ac_env_build_alias_set=${build_alias+set}
738 ac_env_build_alias_value=$build_alias
739 ac_cv_env_build_alias_set=${build_alias+set}
740 ac_cv_env_build_alias_value=$build_alias
741 ac_env_host_alias_set=${host_alias+set}
742 ac_env_host_alias_value=$host_alias
743 ac_cv_env_host_alias_set=${host_alias+set}
744 ac_cv_env_host_alias_value=$host_alias
745 ac_env_target_alias_set=${target_alias+set}
746 ac_env_target_alias_value=$target_alias
747 ac_cv_env_target_alias_set=${target_alias+set}
748 ac_cv_env_target_alias_value=$target_alias
749 ac_env_CC_set=${CC+set}
750 ac_env_CC_value=$CC
751 ac_cv_env_CC_set=${CC+set}
752 ac_cv_env_CC_value=$CC
753 ac_env_CFLAGS_set=${CFLAGS+set}
754 ac_env_CFLAGS_value=$CFLAGS
755 ac_cv_env_CFLAGS_set=${CFLAGS+set}
756 ac_cv_env_CFLAGS_value=$CFLAGS
757 ac_env_LDFLAGS_set=${LDFLAGS+set}
758 ac_env_LDFLAGS_value=$LDFLAGS
759 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
760 ac_cv_env_LDFLAGS_value=$LDFLAGS
761 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
762 ac_env_CPPFLAGS_value=$CPPFLAGS
763 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
764 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
765 ac_env_CPP_set=${CPP+set}
766 ac_env_CPP_value=$CPP
767 ac_cv_env_CPP_set=${CPP+set}
768 ac_cv_env_CPP_value=$CPP
771 # Report the --help message.
773 if test "$ac_init_help" = "long"; then
774 # Omit some internal or obsolete options to make the list less imposing.
775 # This message is too long to be a string in the A/UX 3.1 sh.
776 cat <<_ACEOF
777 \`configure' configures less 1 to adapt to many kinds of systems.
779 Usage: $0 [OPTION]... [VAR=VALUE]...
781 To assign environment variables (e.g., CC, CFLAGS...), specify them as
782 VAR=VALUE. See below for descriptions of some of the useful variables.
784 Defaults for the options are specified in brackets.
786 Configuration:
787 -h, --help display this help and exit
788 --help=short display options specific to this package
789 --help=recursive display the short help of all the included packages
790 -V, --version display version information and exit
791 -q, --quiet, --silent do not print \`checking...' messages
792 --cache-file=FILE cache test results in FILE [disabled]
793 -C, --config-cache alias for \`--cache-file=config.cache'
794 -n, --no-create do not create output files
795 --srcdir=DIR find the sources in DIR [configure dir or \`..']
797 _ACEOF
799 cat <<_ACEOF
800 Installation directories:
801 --prefix=PREFIX install architecture-independent files in PREFIX
802 [$ac_default_prefix]
803 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
804 [PREFIX]
806 By default, \`make install' will install all the files in
807 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
808 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
809 for instance \`--prefix=\$HOME'.
811 For better control, use the options below.
813 Fine tuning of the installation directories:
814 --bindir=DIR user executables [EPREFIX/bin]
815 --sbindir=DIR system admin executables [EPREFIX/sbin]
816 --libexecdir=DIR program executables [EPREFIX/libexec]
817 --datadir=DIR read-only architecture-independent data [PREFIX/share]
818 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
819 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
820 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
821 --libdir=DIR object code libraries [EPREFIX/lib]
822 --includedir=DIR C header files [PREFIX/include]
823 --oldincludedir=DIR C header files for non-gcc [/usr/include]
824 --infodir=DIR info documentation [PREFIX/info]
825 --mandir=DIR man documentation [PREFIX/man]
826 _ACEOF
828 cat <<\_ACEOF
829 _ACEOF
832 if test -n "$ac_init_help"; then
833 case $ac_init_help in
834 short | recursive ) echo "Configuration of less 1:";;
835 esac
836 cat <<\_ACEOF
838 Optional Features:
839 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
840 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
841 --disable-largefile omit support for large files
843 Optional Packages:
844 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
845 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
846 --with-regex={auto,pcre,posix,regcmp,re_comp,regcomp,regcomp-local} Select a regular expression library auto
847 --with-editor=PROGRAM use PROGRAM as the default editor vi
849 Some influential environment variables:
850 CC C compiler command
851 CFLAGS C compiler flags
852 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
853 nonstandard directory <lib dir>
854 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
855 headers in a nonstandard directory <include dir>
856 CPP C preprocessor
858 Use these variables to override the choices made by `configure' or to help
859 it to find libraries and programs with nonstandard names/locations.
861 _ACEOF
864 if test "$ac_init_help" = "recursive"; then
865 # If there are subdirs, report their specific --help.
866 ac_popdir=`pwd`
867 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
868 test -d $ac_dir || continue
869 ac_builddir=.
871 if test "$ac_dir" != .; then
872 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
873 # A "../" for each directory in $ac_dir_suffix.
874 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
875 else
876 ac_dir_suffix= ac_top_builddir=
879 case $srcdir in
880 .) # No --srcdir option. We are building in place.
881 ac_srcdir=.
882 if test -z "$ac_top_builddir"; then
883 ac_top_srcdir=.
884 else
885 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
886 fi ;;
887 [\\/]* | ?:[\\/]* ) # Absolute path.
888 ac_srcdir=$srcdir$ac_dir_suffix;
889 ac_top_srcdir=$srcdir ;;
890 *) # Relative path.
891 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
892 ac_top_srcdir=$ac_top_builddir$srcdir ;;
893 esac
894 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
895 # absolute.
896 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
897 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
898 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
899 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
901 cd $ac_dir
902 # Check for guested configure; otherwise get Cygnus style configure.
903 if test -f $ac_srcdir/configure.gnu; then
904 echo
905 $SHELL $ac_srcdir/configure.gnu --help=recursive
906 elif test -f $ac_srcdir/configure; then
907 echo
908 $SHELL $ac_srcdir/configure --help=recursive
909 elif test -f $ac_srcdir/configure.ac ||
910 test -f $ac_srcdir/configure.in; then
911 echo
912 $ac_configure --help
913 else
914 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
916 cd $ac_popdir
917 done
920 test -n "$ac_init_help" && exit 0
921 if $ac_init_version; then
922 cat <<\_ACEOF
923 less configure 1
924 generated by GNU Autoconf 2.54
926 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
927 Free Software Foundation, Inc.
928 This configure script is free software; the Free Software Foundation
929 gives unlimited permission to copy, distribute and modify it.
930 _ACEOF
931 exit 0
933 exec 5>config.log
934 cat >&5 <<_ACEOF
935 This file contains any messages produced by compilers while
936 running configure, to aid debugging if configure makes a mistake.
938 It was created by less $as_me 1, which was
939 generated by GNU Autoconf 2.54. Invocation command line was
941 $ $0 $@
943 _ACEOF
945 cat <<_ASUNAME
946 ## --------- ##
947 ## Platform. ##
948 ## --------- ##
950 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
951 uname -m = `(uname -m) 2>/dev/null || echo unknown`
952 uname -r = `(uname -r) 2>/dev/null || echo unknown`
953 uname -s = `(uname -s) 2>/dev/null || echo unknown`
954 uname -v = `(uname -v) 2>/dev/null || echo unknown`
956 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
957 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
959 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
960 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
961 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
962 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
963 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
964 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
965 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
967 _ASUNAME
969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
970 for as_dir in $PATH
972 IFS=$as_save_IFS
973 test -z "$as_dir" && as_dir=.
974 echo "PATH: $as_dir"
975 done
977 } >&5
979 cat >&5 <<_ACEOF
982 ## ----------- ##
983 ## Core tests. ##
984 ## ----------- ##
986 _ACEOF
989 # Keep a trace of the command line.
990 # Strip out --no-create and --no-recursion so they do not pile up.
991 # Also quote any args containing shell meta-characters.
992 ac_configure_args=
993 ac_sep=
994 for ac_arg
996 case $ac_arg in
997 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
998 | --no-cr | --no-c | -n ) continue ;;
999 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1000 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1001 continue ;;
1002 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1003 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1004 esac
1005 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1006 # Get rid of the leading space.
1007 ac_sep=" "
1008 done
1010 # When interrupted or exit'd, cleanup temporary files, and complete
1011 # config.log. We remove comments because anyway the quotes in there
1012 # would cause problems or look ugly.
1013 # WARNING: Be sure not to use single quotes in there, as some shells,
1014 # such as our DU 5.0 friend, will then `close' the trap.
1015 trap 'exit_status=$?
1016 # Save into config.log some information that might help in debugging.
1018 echo
1020 cat <<\_ASBOX
1021 ## ---------------- ##
1022 ## Cache variables. ##
1023 ## ---------------- ##
1024 _ASBOX
1025 echo
1026 # The following way of writing the cache mishandles newlines in values,
1028 (set) 2>&1 |
1029 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1030 *ac_space=\ *)
1031 sed -n \
1032 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1033 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1036 sed -n \
1037 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1039 esac;
1041 echo
1043 cat <<\_ASBOX
1044 ## ----------------- ##
1045 ## Output variables. ##
1046 ## ----------------- ##
1047 _ASBOX
1048 echo
1049 for ac_var in $ac_subst_vars
1051 eval ac_val=$`echo $ac_var`
1052 echo "$ac_var='"'"'$ac_val'"'"'"
1053 done | sort
1054 echo
1056 if test -n "$ac_subst_files"; then
1057 cat <<\_ASBOX
1058 ## ------------- ##
1059 ## Output files. ##
1060 ## ------------- ##
1061 _ASBOX
1062 echo
1063 for ac_var in $ac_subst_files
1065 eval ac_val=$`echo $ac_var`
1066 echo "$ac_var='"'"'$ac_val'"'"'"
1067 done | sort
1068 echo
1071 if test -s confdefs.h; then
1072 cat <<\_ASBOX
1073 ## ----------- ##
1074 ## confdefs.h. ##
1075 ## ----------- ##
1076 _ASBOX
1077 echo
1078 sed "/^$/d" confdefs.h | sort
1079 echo
1081 test "$ac_signal" != 0 &&
1082 echo "$as_me: caught signal $ac_signal"
1083 echo "$as_me: exit $exit_status"
1084 } >&5
1085 rm -f core core.* *.core &&
1086 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1087 exit $exit_status
1089 for ac_signal in 1 2 13 15; do
1090 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1091 done
1092 ac_signal=0
1094 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1095 rm -rf conftest* confdefs.h
1096 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1097 echo >confdefs.h
1099 # Predefined preprocessor variables.
1101 cat >>confdefs.h <<_ACEOF
1102 #define PACKAGE_NAME "$PACKAGE_NAME"
1103 _ACEOF
1106 cat >>confdefs.h <<_ACEOF
1107 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1108 _ACEOF
1111 cat >>confdefs.h <<_ACEOF
1112 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1113 _ACEOF
1116 cat >>confdefs.h <<_ACEOF
1117 #define PACKAGE_STRING "$PACKAGE_STRING"
1118 _ACEOF
1121 cat >>confdefs.h <<_ACEOF
1122 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1123 _ACEOF
1126 # Let the site file select an alternate cache file if it wants to.
1127 # Prefer explicitly selected file to automatically selected ones.
1128 if test -z "$CONFIG_SITE"; then
1129 if test "x$prefix" != xNONE; then
1130 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1131 else
1132 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1135 for ac_site_file in $CONFIG_SITE; do
1136 if test -r "$ac_site_file"; then
1137 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1138 echo "$as_me: loading site script $ac_site_file" >&6;}
1139 sed 's/^/| /' "$ac_site_file" >&5
1140 . "$ac_site_file"
1142 done
1144 if test -r "$cache_file"; then
1145 # Some versions of bash will fail to source /dev/null (special
1146 # files actually), so we avoid doing that.
1147 if test -f "$cache_file"; then
1148 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1149 echo "$as_me: loading cache $cache_file" >&6;}
1150 case $cache_file in
1151 [\\/]* | ?:[\\/]* ) . $cache_file;;
1152 *) . ./$cache_file;;
1153 esac
1155 else
1156 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1157 echo "$as_me: creating cache $cache_file" >&6;}
1158 >$cache_file
1161 # Check that the precious variables saved in the cache have kept the same
1162 # value.
1163 ac_cache_corrupted=false
1164 for ac_var in `(set) 2>&1 |
1165 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1166 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1167 eval ac_new_set=\$ac_env_${ac_var}_set
1168 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1169 eval ac_new_val="\$ac_env_${ac_var}_value"
1170 case $ac_old_set,$ac_new_set in
1171 set,)
1172 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1173 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1174 ac_cache_corrupted=: ;;
1175 ,set)
1176 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1177 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1178 ac_cache_corrupted=: ;;
1179 ,);;
1181 if test "x$ac_old_val" != "x$ac_new_val"; then
1182 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1183 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1184 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1185 echo "$as_me: former value: $ac_old_val" >&2;}
1186 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1187 echo "$as_me: current value: $ac_new_val" >&2;}
1188 ac_cache_corrupted=:
1189 fi;;
1190 esac
1191 # Pass precious variables to config.status.
1192 if test "$ac_new_set" = set; then
1193 case $ac_new_val in
1194 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1195 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1196 *) ac_arg=$ac_var=$ac_new_val ;;
1197 esac
1198 case " $ac_configure_args " in
1199 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1200 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1201 esac
1203 done
1204 if $ac_cache_corrupted; then
1205 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1206 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1207 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1208 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1209 { (exit 1); exit 1; }; }
1212 ac_ext=c
1213 ac_cpp='$CPP $CPPFLAGS'
1214 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1215 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1216 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1245 ac_config_headers="$ac_config_headers defines.h"
1248 # Checks for programs.
1249 ac_ext=c
1250 ac_cpp='$CPP $CPPFLAGS'
1251 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1252 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1253 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1254 if test -n "$ac_tool_prefix"; then
1255 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1256 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1257 echo "$as_me:$LINENO: checking for $ac_word" >&5
1258 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1259 if test "${ac_cv_prog_CC+set}" = set; then
1260 echo $ECHO_N "(cached) $ECHO_C" >&6
1261 else
1262 if test -n "$CC"; then
1263 ac_cv_prog_CC="$CC" # Let the user override the test.
1264 else
1265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1266 for as_dir in $PATH
1268 IFS=$as_save_IFS
1269 test -z "$as_dir" && as_dir=.
1270 for ac_exec_ext in '' $ac_executable_extensions; do
1271 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1272 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1273 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1274 break 2
1276 done
1277 done
1281 CC=$ac_cv_prog_CC
1282 if test -n "$CC"; then
1283 echo "$as_me:$LINENO: result: $CC" >&5
1284 echo "${ECHO_T}$CC" >&6
1285 else
1286 echo "$as_me:$LINENO: result: no" >&5
1287 echo "${ECHO_T}no" >&6
1291 if test -z "$ac_cv_prog_CC"; then
1292 ac_ct_CC=$CC
1293 # Extract the first word of "gcc", so it can be a program name with args.
1294 set dummy gcc; ac_word=$2
1295 echo "$as_me:$LINENO: checking for $ac_word" >&5
1296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1297 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1298 echo $ECHO_N "(cached) $ECHO_C" >&6
1299 else
1300 if test -n "$ac_ct_CC"; then
1301 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1302 else
1303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1304 for as_dir in $PATH
1306 IFS=$as_save_IFS
1307 test -z "$as_dir" && as_dir=.
1308 for ac_exec_ext in '' $ac_executable_extensions; do
1309 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1310 ac_cv_prog_ac_ct_CC="gcc"
1311 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1312 break 2
1314 done
1315 done
1319 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1320 if test -n "$ac_ct_CC"; then
1321 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1322 echo "${ECHO_T}$ac_ct_CC" >&6
1323 else
1324 echo "$as_me:$LINENO: result: no" >&5
1325 echo "${ECHO_T}no" >&6
1328 CC=$ac_ct_CC
1329 else
1330 CC="$ac_cv_prog_CC"
1333 if test -z "$CC"; then
1334 if test -n "$ac_tool_prefix"; then
1335 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1336 set dummy ${ac_tool_prefix}cc; ac_word=$2
1337 echo "$as_me:$LINENO: checking for $ac_word" >&5
1338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1339 if test "${ac_cv_prog_CC+set}" = set; then
1340 echo $ECHO_N "(cached) $ECHO_C" >&6
1341 else
1342 if test -n "$CC"; then
1343 ac_cv_prog_CC="$CC" # Let the user override the test.
1344 else
1345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1346 for as_dir in $PATH
1348 IFS=$as_save_IFS
1349 test -z "$as_dir" && as_dir=.
1350 for ac_exec_ext in '' $ac_executable_extensions; do
1351 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1352 ac_cv_prog_CC="${ac_tool_prefix}cc"
1353 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1354 break 2
1356 done
1357 done
1361 CC=$ac_cv_prog_CC
1362 if test -n "$CC"; then
1363 echo "$as_me:$LINENO: result: $CC" >&5
1364 echo "${ECHO_T}$CC" >&6
1365 else
1366 echo "$as_me:$LINENO: result: no" >&5
1367 echo "${ECHO_T}no" >&6
1371 if test -z "$ac_cv_prog_CC"; then
1372 ac_ct_CC=$CC
1373 # Extract the first word of "cc", so it can be a program name with args.
1374 set dummy cc; ac_word=$2
1375 echo "$as_me:$LINENO: checking for $ac_word" >&5
1376 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1377 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1378 echo $ECHO_N "(cached) $ECHO_C" >&6
1379 else
1380 if test -n "$ac_ct_CC"; then
1381 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1382 else
1383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1384 for as_dir in $PATH
1386 IFS=$as_save_IFS
1387 test -z "$as_dir" && as_dir=.
1388 for ac_exec_ext in '' $ac_executable_extensions; do
1389 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1390 ac_cv_prog_ac_ct_CC="cc"
1391 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1392 break 2
1394 done
1395 done
1399 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1400 if test -n "$ac_ct_CC"; then
1401 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1402 echo "${ECHO_T}$ac_ct_CC" >&6
1403 else
1404 echo "$as_me:$LINENO: result: no" >&5
1405 echo "${ECHO_T}no" >&6
1408 CC=$ac_ct_CC
1409 else
1410 CC="$ac_cv_prog_CC"
1414 if test -z "$CC"; then
1415 # Extract the first word of "cc", so it can be a program name with args.
1416 set dummy cc; ac_word=$2
1417 echo "$as_me:$LINENO: checking for $ac_word" >&5
1418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1419 if test "${ac_cv_prog_CC+set}" = set; then
1420 echo $ECHO_N "(cached) $ECHO_C" >&6
1421 else
1422 if test -n "$CC"; then
1423 ac_cv_prog_CC="$CC" # Let the user override the test.
1424 else
1425 ac_prog_rejected=no
1426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1427 for as_dir in $PATH
1429 IFS=$as_save_IFS
1430 test -z "$as_dir" && as_dir=.
1431 for ac_exec_ext in '' $ac_executable_extensions; do
1432 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1433 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1434 ac_prog_rejected=yes
1435 continue
1437 ac_cv_prog_CC="cc"
1438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1439 break 2
1441 done
1442 done
1444 if test $ac_prog_rejected = yes; then
1445 # We found a bogon in the path, so make sure we never use it.
1446 set dummy $ac_cv_prog_CC
1447 shift
1448 if test $# != 0; then
1449 # We chose a different compiler from the bogus one.
1450 # However, it has the same basename, so the bogon will be chosen
1451 # first if we set CC to just the basename; use the full file name.
1452 shift
1453 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1458 CC=$ac_cv_prog_CC
1459 if test -n "$CC"; then
1460 echo "$as_me:$LINENO: result: $CC" >&5
1461 echo "${ECHO_T}$CC" >&6
1462 else
1463 echo "$as_me:$LINENO: result: no" >&5
1464 echo "${ECHO_T}no" >&6
1468 if test -z "$CC"; then
1469 if test -n "$ac_tool_prefix"; then
1470 for ac_prog in cl
1472 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1473 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1474 echo "$as_me:$LINENO: checking for $ac_word" >&5
1475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1476 if test "${ac_cv_prog_CC+set}" = set; then
1477 echo $ECHO_N "(cached) $ECHO_C" >&6
1478 else
1479 if test -n "$CC"; then
1480 ac_cv_prog_CC="$CC" # Let the user override the test.
1481 else
1482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1483 for as_dir in $PATH
1485 IFS=$as_save_IFS
1486 test -z "$as_dir" && as_dir=.
1487 for ac_exec_ext in '' $ac_executable_extensions; do
1488 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1489 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1491 break 2
1493 done
1494 done
1498 CC=$ac_cv_prog_CC
1499 if test -n "$CC"; then
1500 echo "$as_me:$LINENO: result: $CC" >&5
1501 echo "${ECHO_T}$CC" >&6
1502 else
1503 echo "$as_me:$LINENO: result: no" >&5
1504 echo "${ECHO_T}no" >&6
1507 test -n "$CC" && break
1508 done
1510 if test -z "$CC"; then
1511 ac_ct_CC=$CC
1512 for ac_prog in cl
1514 # Extract the first word of "$ac_prog", so it can be a program name with args.
1515 set dummy $ac_prog; ac_word=$2
1516 echo "$as_me:$LINENO: checking for $ac_word" >&5
1517 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1518 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1519 echo $ECHO_N "(cached) $ECHO_C" >&6
1520 else
1521 if test -n "$ac_ct_CC"; then
1522 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1523 else
1524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1525 for as_dir in $PATH
1527 IFS=$as_save_IFS
1528 test -z "$as_dir" && as_dir=.
1529 for ac_exec_ext in '' $ac_executable_extensions; do
1530 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1531 ac_cv_prog_ac_ct_CC="$ac_prog"
1532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1533 break 2
1535 done
1536 done
1540 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1541 if test -n "$ac_ct_CC"; then
1542 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1543 echo "${ECHO_T}$ac_ct_CC" >&6
1544 else
1545 echo "$as_me:$LINENO: result: no" >&5
1546 echo "${ECHO_T}no" >&6
1549 test -n "$ac_ct_CC" && break
1550 done
1552 CC=$ac_ct_CC
1558 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1559 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1560 { (exit 1); exit 1; }; }
1562 # Provide some information about the compiler.
1563 echo "$as_me:$LINENO:" \
1564 "checking for C compiler version" >&5
1565 ac_compiler=`set X $ac_compile; echo $2`
1566 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1567 (eval $ac_compiler --version </dev/null >&5) 2>&5
1568 ac_status=$?
1569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1570 (exit $ac_status); }
1571 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1572 (eval $ac_compiler -v </dev/null >&5) 2>&5
1573 ac_status=$?
1574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1575 (exit $ac_status); }
1576 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1577 (eval $ac_compiler -V </dev/null >&5) 2>&5
1578 ac_status=$?
1579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1580 (exit $ac_status); }
1582 cat >conftest.$ac_ext <<_ACEOF
1583 #line $LINENO "configure"
1584 #include "confdefs.h"
1587 main ()
1591 return 0;
1593 _ACEOF
1594 ac_clean_files_save=$ac_clean_files
1595 ac_clean_files="$ac_clean_files a.out a.exe"
1596 # Try to create an executable without -o first, disregard a.out.
1597 # It will help us diagnose broken compilers, and finding out an intuition
1598 # of exeext.
1599 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1600 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1601 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1602 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1603 (eval $ac_link_default) 2>&5
1604 ac_status=$?
1605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1606 (exit $ac_status); }; then
1607 # Find the output, starting from the most likely. This scheme is
1608 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1609 # resort.
1611 # Be careful to initialize this variable, since it used to be cached.
1612 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1613 ac_cv_exeext=
1614 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.*; do
1615 test -f "$ac_file" || continue
1616 case $ac_file in
1617 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1618 a.out ) # We found the default executable, but exeext='' is most
1619 # certainly right.
1620 break;;
1621 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1622 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1623 export ac_cv_exeext
1624 break;;
1625 * ) break;;
1626 esac
1627 done
1628 else
1629 echo "$as_me: failed program was:" >&5
1630 cat conftest.$ac_ext >&5
1631 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1632 check \`config.log' for details." >&5
1633 echo "$as_me: error: C compiler cannot create executables
1634 check \`config.log' for details." >&2;}
1635 { (exit 77); exit 77; }; }
1638 ac_exeext=$ac_cv_exeext
1639 echo "$as_me:$LINENO: result: $ac_file" >&5
1640 echo "${ECHO_T}$ac_file" >&6
1642 # Check the compiler produces executables we can run. If not, either
1643 # the compiler is broken, or we cross compile.
1644 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1645 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1646 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1647 # If not cross compiling, check that we can run a simple program.
1648 if test "$cross_compiling" != yes; then
1649 if { ac_try='./$ac_file'
1650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1651 (eval $ac_try) 2>&5
1652 ac_status=$?
1653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1654 (exit $ac_status); }; }; then
1655 cross_compiling=no
1656 else
1657 if test "$cross_compiling" = maybe; then
1658 cross_compiling=yes
1659 else
1660 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1661 If you meant to cross compile, use \`--host'." >&5
1662 echo "$as_me: error: cannot run C compiled programs.
1663 If you meant to cross compile, use \`--host'." >&2;}
1664 { (exit 1); exit 1; }; }
1668 echo "$as_me:$LINENO: result: yes" >&5
1669 echo "${ECHO_T}yes" >&6
1671 rm -f a.out a.exe conftest$ac_cv_exeext
1672 ac_clean_files=$ac_clean_files_save
1673 # Check the compiler produces executables we can run. If not, either
1674 # the compiler is broken, or we cross compile.
1675 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1676 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1677 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1678 echo "${ECHO_T}$cross_compiling" >&6
1680 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1681 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1683 (eval $ac_link) 2>&5
1684 ac_status=$?
1685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1686 (exit $ac_status); }; then
1687 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1688 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1689 # work properly (i.e., refer to `conftest.exe'), while it won't with
1690 # `rm'.
1691 for ac_file in conftest.exe conftest conftest.*; do
1692 test -f "$ac_file" || continue
1693 case $ac_file in
1694 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1695 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1696 export ac_cv_exeext
1697 break;;
1698 * ) break;;
1699 esac
1700 done
1701 else
1702 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1703 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
1704 { (exit 1); exit 1; }; }
1707 rm -f conftest$ac_cv_exeext
1708 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1709 echo "${ECHO_T}$ac_cv_exeext" >&6
1711 rm -f conftest.$ac_ext
1712 EXEEXT=$ac_cv_exeext
1713 ac_exeext=$EXEEXT
1714 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1715 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1716 if test "${ac_cv_objext+set}" = set; then
1717 echo $ECHO_N "(cached) $ECHO_C" >&6
1718 else
1719 cat >conftest.$ac_ext <<_ACEOF
1720 #line $LINENO "configure"
1721 #include "confdefs.h"
1724 main ()
1728 return 0;
1730 _ACEOF
1731 rm -f conftest.o conftest.obj
1732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1733 (eval $ac_compile) 2>&5
1734 ac_status=$?
1735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1736 (exit $ac_status); }; then
1737 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1738 case $ac_file in
1739 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1740 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1741 break;;
1742 esac
1743 done
1744 else
1745 echo "$as_me: failed program was:" >&5
1746 cat conftest.$ac_ext >&5
1747 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
1748 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
1749 { (exit 1); exit 1; }; }
1752 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1754 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1755 echo "${ECHO_T}$ac_cv_objext" >&6
1756 OBJEXT=$ac_cv_objext
1757 ac_objext=$OBJEXT
1758 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1759 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1760 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1761 echo $ECHO_N "(cached) $ECHO_C" >&6
1762 else
1763 cat >conftest.$ac_ext <<_ACEOF
1764 #line $LINENO "configure"
1765 #include "confdefs.h"
1768 main ()
1770 #ifndef __GNUC__
1771 choke me
1772 #endif
1775 return 0;
1777 _ACEOF
1778 rm -f conftest.$ac_objext
1779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1780 (eval $ac_compile) 2>&5
1781 ac_status=$?
1782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1783 (exit $ac_status); } &&
1784 { ac_try='test -s conftest.$ac_objext'
1785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1786 (eval $ac_try) 2>&5
1787 ac_status=$?
1788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1789 (exit $ac_status); }; }; then
1790 ac_compiler_gnu=yes
1791 else
1792 echo "$as_me: failed program was:" >&5
1793 cat conftest.$ac_ext >&5
1794 ac_compiler_gnu=no
1796 rm -f conftest.$ac_objext conftest.$ac_ext
1797 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1800 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1801 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1802 GCC=`test $ac_compiler_gnu = yes && echo yes`
1803 ac_test_CFLAGS=${CFLAGS+set}
1804 ac_save_CFLAGS=$CFLAGS
1805 CFLAGS="-g"
1806 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1807 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1808 if test "${ac_cv_prog_cc_g+set}" = set; then
1809 echo $ECHO_N "(cached) $ECHO_C" >&6
1810 else
1811 cat >conftest.$ac_ext <<_ACEOF
1812 #line $LINENO "configure"
1813 #include "confdefs.h"
1816 main ()
1820 return 0;
1822 _ACEOF
1823 rm -f conftest.$ac_objext
1824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1825 (eval $ac_compile) 2>&5
1826 ac_status=$?
1827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1828 (exit $ac_status); } &&
1829 { ac_try='test -s conftest.$ac_objext'
1830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1831 (eval $ac_try) 2>&5
1832 ac_status=$?
1833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1834 (exit $ac_status); }; }; then
1835 ac_cv_prog_cc_g=yes
1836 else
1837 echo "$as_me: failed program was:" >&5
1838 cat conftest.$ac_ext >&5
1839 ac_cv_prog_cc_g=no
1841 rm -f conftest.$ac_objext conftest.$ac_ext
1843 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1844 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1845 if test "$ac_test_CFLAGS" = set; then
1846 CFLAGS=$ac_save_CFLAGS
1847 elif test $ac_cv_prog_cc_g = yes; then
1848 if test "$GCC" = yes; then
1849 CFLAGS="-g -O2"
1850 else
1851 CFLAGS="-g"
1853 else
1854 if test "$GCC" = yes; then
1855 CFLAGS="-O2"
1856 else
1857 CFLAGS=
1860 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1861 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1862 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1863 echo $ECHO_N "(cached) $ECHO_C" >&6
1864 else
1865 ac_cv_prog_cc_stdc=no
1866 ac_save_CC=$CC
1867 cat >conftest.$ac_ext <<_ACEOF
1868 #line $LINENO "configure"
1869 #include "confdefs.h"
1870 #include <stdarg.h>
1871 #include <stdio.h>
1872 #include <sys/types.h>
1873 #include <sys/stat.h>
1874 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1875 struct buf { int x; };
1876 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1877 static char *e (p, i)
1878 char **p;
1879 int i;
1881 return p[i];
1883 static char *f (char * (*g) (char **, int), char **p, ...)
1885 char *s;
1886 va_list v;
1887 va_start (v,p);
1888 s = g (p, va_arg (v,int));
1889 va_end (v);
1890 return s;
1892 int test (int i, double x);
1893 struct s1 {int (*f) (int a);};
1894 struct s2 {int (*f) (double a);};
1895 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1896 int argc;
1897 char **argv;
1899 main ()
1901 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1903 return 0;
1905 _ACEOF
1906 # Don't try gcc -ansi; that turns off useful extensions and
1907 # breaks some systems' header files.
1908 # AIX -qlanglvl=ansi
1909 # Ultrix and OSF/1 -std1
1910 # HP-UX 10.20 and later -Ae
1911 # HP-UX older versions -Aa -D_HPUX_SOURCE
1912 # SVR4 -Xc -D__EXTENSIONS__
1913 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1915 CC="$ac_save_CC $ac_arg"
1916 rm -f conftest.$ac_objext
1917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1918 (eval $ac_compile) 2>&5
1919 ac_status=$?
1920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1921 (exit $ac_status); } &&
1922 { ac_try='test -s conftest.$ac_objext'
1923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1924 (eval $ac_try) 2>&5
1925 ac_status=$?
1926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1927 (exit $ac_status); }; }; then
1928 ac_cv_prog_cc_stdc=$ac_arg
1929 break
1930 else
1931 echo "$as_me: failed program was:" >&5
1932 cat conftest.$ac_ext >&5
1934 rm -f conftest.$ac_objext
1935 done
1936 rm -f conftest.$ac_ext conftest.$ac_objext
1937 CC=$ac_save_CC
1941 case "x$ac_cv_prog_cc_stdc" in
1942 x|xno)
1943 echo "$as_me:$LINENO: result: none needed" >&5
1944 echo "${ECHO_T}none needed" >&6 ;;
1946 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
1947 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
1948 CC="$CC $ac_cv_prog_cc_stdc" ;;
1949 esac
1951 # Some people use a C++ compiler to compile C. Since we use `exit',
1952 # in C++ we need to declare it. In case someone uses the same compiler
1953 # for both compiling C and C++ we need to have the C++ compiler decide
1954 # the declaration of exit, since it's the most demanding environment.
1955 cat >conftest.$ac_ext <<_ACEOF
1956 #ifndef __cplusplus
1957 choke me
1958 #endif
1959 _ACEOF
1960 rm -f conftest.$ac_objext
1961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1962 (eval $ac_compile) 2>&5
1963 ac_status=$?
1964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1965 (exit $ac_status); } &&
1966 { ac_try='test -s conftest.$ac_objext'
1967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1968 (eval $ac_try) 2>&5
1969 ac_status=$?
1970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1971 (exit $ac_status); }; }; then
1972 for ac_declaration in \
1974 '#include <stdlib.h>' \
1975 'extern "C" void std::exit (int) throw (); using std::exit;' \
1976 'extern "C" void std::exit (int); using std::exit;' \
1977 'extern "C" void exit (int) throw ();' \
1978 'extern "C" void exit (int);' \
1979 'void exit (int);'
1981 cat >conftest.$ac_ext <<_ACEOF
1982 #line $LINENO "configure"
1983 #include "confdefs.h"
1984 #include <stdlib.h>
1985 $ac_declaration
1987 main ()
1989 exit (42);
1991 return 0;
1993 _ACEOF
1994 rm -f conftest.$ac_objext
1995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1996 (eval $ac_compile) 2>&5
1997 ac_status=$?
1998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1999 (exit $ac_status); } &&
2000 { ac_try='test -s conftest.$ac_objext'
2001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2002 (eval $ac_try) 2>&5
2003 ac_status=$?
2004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2005 (exit $ac_status); }; }; then
2007 else
2008 echo "$as_me: failed program was:" >&5
2009 cat conftest.$ac_ext >&5
2010 continue
2012 rm -f conftest.$ac_objext conftest.$ac_ext
2013 cat >conftest.$ac_ext <<_ACEOF
2014 #line $LINENO "configure"
2015 #include "confdefs.h"
2016 $ac_declaration
2018 main ()
2020 exit (42);
2022 return 0;
2024 _ACEOF
2025 rm -f conftest.$ac_objext
2026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2027 (eval $ac_compile) 2>&5
2028 ac_status=$?
2029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2030 (exit $ac_status); } &&
2031 { ac_try='test -s conftest.$ac_objext'
2032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2033 (eval $ac_try) 2>&5
2034 ac_status=$?
2035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2036 (exit $ac_status); }; }; then
2037 break
2038 else
2039 echo "$as_me: failed program was:" >&5
2040 cat conftest.$ac_ext >&5
2042 rm -f conftest.$ac_objext conftest.$ac_ext
2043 done
2044 rm -f conftest*
2045 if test -n "$ac_declaration"; then
2046 echo '#ifdef __cplusplus' >>confdefs.h
2047 echo $ac_declaration >>confdefs.h
2048 echo '#endif' >>confdefs.h
2051 else
2052 echo "$as_me: failed program was:" >&5
2053 cat conftest.$ac_ext >&5
2055 rm -f conftest.$ac_objext conftest.$ac_ext
2056 ac_ext=c
2057 ac_cpp='$CPP $CPPFLAGS'
2058 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2059 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2060 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2063 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2064 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2065 if test "${ac_cv_search_strerror+set}" = set; then
2066 echo $ECHO_N "(cached) $ECHO_C" >&6
2067 else
2068 ac_func_search_save_LIBS=$LIBS
2069 ac_cv_search_strerror=no
2070 cat >conftest.$ac_ext <<_ACEOF
2071 #line $LINENO "configure"
2072 #include "confdefs.h"
2074 /* Override any gcc2 internal prototype to avoid an error. */
2075 #ifdef __cplusplus
2076 extern "C"
2077 #endif
2078 /* We use char because int might match the return type of a gcc2
2079 builtin and then its argument prototype would still apply. */
2080 char strerror ();
2082 main ()
2084 strerror ();
2086 return 0;
2088 _ACEOF
2089 rm -f conftest.$ac_objext conftest$ac_exeext
2090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2091 (eval $ac_link) 2>&5
2092 ac_status=$?
2093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2094 (exit $ac_status); } &&
2095 { ac_try='test -s conftest$ac_exeext'
2096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2097 (eval $ac_try) 2>&5
2098 ac_status=$?
2099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2100 (exit $ac_status); }; }; then
2101 ac_cv_search_strerror="none required"
2102 else
2103 echo "$as_me: failed program was:" >&5
2104 cat conftest.$ac_ext >&5
2106 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2107 if test "$ac_cv_search_strerror" = no; then
2108 for ac_lib in cposix; do
2109 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2110 cat >conftest.$ac_ext <<_ACEOF
2111 #line $LINENO "configure"
2112 #include "confdefs.h"
2114 /* Override any gcc2 internal prototype to avoid an error. */
2115 #ifdef __cplusplus
2116 extern "C"
2117 #endif
2118 /* We use char because int might match the return type of a gcc2
2119 builtin and then its argument prototype would still apply. */
2120 char strerror ();
2122 main ()
2124 strerror ();
2126 return 0;
2128 _ACEOF
2129 rm -f conftest.$ac_objext conftest$ac_exeext
2130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2131 (eval $ac_link) 2>&5
2132 ac_status=$?
2133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2134 (exit $ac_status); } &&
2135 { ac_try='test -s conftest$ac_exeext'
2136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2137 (eval $ac_try) 2>&5
2138 ac_status=$?
2139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2140 (exit $ac_status); }; }; then
2141 ac_cv_search_strerror="-l$ac_lib"
2142 break
2143 else
2144 echo "$as_me: failed program was:" >&5
2145 cat conftest.$ac_ext >&5
2147 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2148 done
2150 LIBS=$ac_func_search_save_LIBS
2152 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2153 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2154 if test "$ac_cv_search_strerror" != no; then
2155 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2159 ac_ext=c
2160 ac_cpp='$CPP $CPPFLAGS'
2161 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2162 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2163 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2164 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2165 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2166 # On Suns, sometimes $CPP names a directory.
2167 if test -n "$CPP" && test -d "$CPP"; then
2168 CPP=
2170 if test -z "$CPP"; then
2171 if test "${ac_cv_prog_CPP+set}" = set; then
2172 echo $ECHO_N "(cached) $ECHO_C" >&6
2173 else
2174 # Double quotes because CPP needs to be expanded
2175 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2177 ac_preproc_ok=false
2178 for ac_c_preproc_warn_flag in '' yes
2180 # Use a header file that comes with gcc, so configuring glibc
2181 # with a fresh cross-compiler works.
2182 # On the NeXT, cc -E runs the code through the compiler's parser,
2183 # not just through cpp. "Syntax error" is here to catch this case.
2184 cat >conftest.$ac_ext <<_ACEOF
2185 #line $LINENO "configure"
2186 #include "confdefs.h"
2187 #include <assert.h>
2188 Syntax error
2189 _ACEOF
2190 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2191 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2192 ac_status=$?
2193 grep -v '^ *+' conftest.er1 >conftest.err
2194 rm -f conftest.er1
2195 cat conftest.err >&5
2196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2197 (exit $ac_status); } >/dev/null; then
2198 if test -s conftest.err; then
2199 ac_cpp_err=$ac_c_preproc_warn_flag
2200 else
2201 ac_cpp_err=
2203 else
2204 ac_cpp_err=yes
2206 if test -z "$ac_cpp_err"; then
2208 else
2209 echo "$as_me: failed program was:" >&5
2210 cat conftest.$ac_ext >&5
2211 # Broken: fails on valid input.
2212 continue
2214 rm -f conftest.err conftest.$ac_ext
2216 # OK, works on sane cases. Now check whether non-existent headers
2217 # can be detected and how.
2218 cat >conftest.$ac_ext <<_ACEOF
2219 #line $LINENO "configure"
2220 #include "confdefs.h"
2221 #include <ac_nonexistent.h>
2222 _ACEOF
2223 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2224 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2225 ac_status=$?
2226 grep -v '^ *+' conftest.er1 >conftest.err
2227 rm -f conftest.er1
2228 cat conftest.err >&5
2229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2230 (exit $ac_status); } >/dev/null; then
2231 if test -s conftest.err; then
2232 ac_cpp_err=$ac_c_preproc_warn_flag
2233 else
2234 ac_cpp_err=
2236 else
2237 ac_cpp_err=yes
2239 if test -z "$ac_cpp_err"; then
2240 # Broken: success on invalid input.
2241 continue
2242 else
2243 echo "$as_me: failed program was:" >&5
2244 cat conftest.$ac_ext >&5
2245 # Passes both tests.
2246 ac_preproc_ok=:
2247 break
2249 rm -f conftest.err conftest.$ac_ext
2251 done
2252 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2253 rm -f conftest.err conftest.$ac_ext
2254 if $ac_preproc_ok; then
2255 break
2258 done
2259 ac_cv_prog_CPP=$CPP
2262 CPP=$ac_cv_prog_CPP
2263 else
2264 ac_cv_prog_CPP=$CPP
2266 echo "$as_me:$LINENO: result: $CPP" >&5
2267 echo "${ECHO_T}$CPP" >&6
2268 ac_preproc_ok=false
2269 for ac_c_preproc_warn_flag in '' yes
2271 # Use a header file that comes with gcc, so configuring glibc
2272 # with a fresh cross-compiler works.
2273 # On the NeXT, cc -E runs the code through the compiler's parser,
2274 # not just through cpp. "Syntax error" is here to catch this case.
2275 cat >conftest.$ac_ext <<_ACEOF
2276 #line $LINENO "configure"
2277 #include "confdefs.h"
2278 #include <assert.h>
2279 Syntax error
2280 _ACEOF
2281 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2282 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2283 ac_status=$?
2284 grep -v '^ *+' conftest.er1 >conftest.err
2285 rm -f conftest.er1
2286 cat conftest.err >&5
2287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2288 (exit $ac_status); } >/dev/null; then
2289 if test -s conftest.err; then
2290 ac_cpp_err=$ac_c_preproc_warn_flag
2291 else
2292 ac_cpp_err=
2294 else
2295 ac_cpp_err=yes
2297 if test -z "$ac_cpp_err"; then
2299 else
2300 echo "$as_me: failed program was:" >&5
2301 cat conftest.$ac_ext >&5
2302 # Broken: fails on valid input.
2303 continue
2305 rm -f conftest.err conftest.$ac_ext
2307 # OK, works on sane cases. Now check whether non-existent headers
2308 # can be detected and how.
2309 cat >conftest.$ac_ext <<_ACEOF
2310 #line $LINENO "configure"
2311 #include "confdefs.h"
2312 #include <ac_nonexistent.h>
2313 _ACEOF
2314 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2315 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2316 ac_status=$?
2317 grep -v '^ *+' conftest.er1 >conftest.err
2318 rm -f conftest.er1
2319 cat conftest.err >&5
2320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2321 (exit $ac_status); } >/dev/null; then
2322 if test -s conftest.err; then
2323 ac_cpp_err=$ac_c_preproc_warn_flag
2324 else
2325 ac_cpp_err=
2327 else
2328 ac_cpp_err=yes
2330 if test -z "$ac_cpp_err"; then
2331 # Broken: success on invalid input.
2332 continue
2333 else
2334 echo "$as_me: failed program was:" >&5
2335 cat conftest.$ac_ext >&5
2336 # Passes both tests.
2337 ac_preproc_ok=:
2338 break
2340 rm -f conftest.err conftest.$ac_ext
2342 done
2343 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2344 rm -f conftest.err conftest.$ac_ext
2345 if $ac_preproc_ok; then
2347 else
2348 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2349 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2350 { (exit 1); exit 1; }; }
2353 ac_ext=c
2354 ac_cpp='$CPP $CPPFLAGS'
2355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2356 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2360 echo "$as_me:$LINENO: checking for egrep" >&5
2361 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2362 if test "${ac_cv_prog_egrep+set}" = set; then
2363 echo $ECHO_N "(cached) $ECHO_C" >&6
2364 else
2365 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2366 then ac_cv_prog_egrep='grep -E'
2367 else ac_cv_prog_egrep='egrep'
2370 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2371 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2372 EGREP=$ac_cv_prog_egrep
2375 if test $ac_cv_c_compiler_gnu = yes; then
2376 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
2377 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2378 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2379 echo $ECHO_N "(cached) $ECHO_C" >&6
2380 else
2381 ac_pattern="Autoconf.*'x'"
2382 cat >conftest.$ac_ext <<_ACEOF
2383 #line $LINENO "configure"
2384 #include "confdefs.h"
2385 #include <sgtty.h>
2386 Autoconf TIOCGETP
2387 _ACEOF
2388 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2389 $EGREP "$ac_pattern" >/dev/null 2>&1; then
2390 ac_cv_prog_gcc_traditional=yes
2391 else
2392 ac_cv_prog_gcc_traditional=no
2394 rm -f conftest*
2397 if test $ac_cv_prog_gcc_traditional = no; then
2398 cat >conftest.$ac_ext <<_ACEOF
2399 #line $LINENO "configure"
2400 #include "confdefs.h"
2401 #include <termio.h>
2402 Autoconf TCGETA
2403 _ACEOF
2404 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2405 $EGREP "$ac_pattern" >/dev/null 2>&1; then
2406 ac_cv_prog_gcc_traditional=yes
2408 rm -f conftest*
2412 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
2413 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2414 if test $ac_cv_prog_gcc_traditional = yes; then
2415 CC="$CC -traditional"
2419 ac_aux_dir=
2420 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2421 if test -f $ac_dir/install-sh; then
2422 ac_aux_dir=$ac_dir
2423 ac_install_sh="$ac_aux_dir/install-sh -c"
2424 break
2425 elif test -f $ac_dir/install.sh; then
2426 ac_aux_dir=$ac_dir
2427 ac_install_sh="$ac_aux_dir/install.sh -c"
2428 break
2429 elif test -f $ac_dir/shtool; then
2430 ac_aux_dir=$ac_dir
2431 ac_install_sh="$ac_aux_dir/shtool install -c"
2432 break
2434 done
2435 if test -z "$ac_aux_dir"; then
2436 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2437 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2438 { (exit 1); exit 1; }; }
2440 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2441 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2442 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2444 # Find a good install program. We prefer a C program (faster),
2445 # so one script is as good as another. But avoid the broken or
2446 # incompatible versions:
2447 # SysV /etc/install, /usr/sbin/install
2448 # SunOS /usr/etc/install
2449 # IRIX /sbin/install
2450 # AIX /bin/install
2451 # AmigaOS /C/install, which installs bootblocks on floppy discs
2452 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2453 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2454 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2455 # ./install, which can be erroneously created by make from ./install.sh.
2456 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2457 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2458 if test -z "$INSTALL"; then
2459 if test "${ac_cv_path_install+set}" = set; then
2460 echo $ECHO_N "(cached) $ECHO_C" >&6
2461 else
2462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2463 for as_dir in $PATH
2465 IFS=$as_save_IFS
2466 test -z "$as_dir" && as_dir=.
2467 # Account for people who put trailing slashes in PATH elements.
2468 case $as_dir/ in
2469 ./ | .// | /cC/* | \
2470 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2471 /usr/ucb/* ) ;;
2473 # OSF1 and SCO ODT 3.0 have their own names for install.
2474 # Don't use installbsd from OSF since it installs stuff as root
2475 # by default.
2476 for ac_prog in ginstall scoinst install; do
2477 for ac_exec_ext in '' $ac_executable_extensions; do
2478 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2479 if test $ac_prog = install &&
2480 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2481 # AIX install. It has an incompatible calling convention.
2483 elif test $ac_prog = install &&
2484 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2485 # program-specific install script used by HP pwplus--don't use.
2487 else
2488 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2489 break 3
2492 done
2493 done
2495 esac
2496 done
2500 if test "${ac_cv_path_install+set}" = set; then
2501 INSTALL=$ac_cv_path_install
2502 else
2503 # As a last resort, use the slow shell script. We don't cache a
2504 # path for INSTALL within a source directory, because that will
2505 # break other packages using the cache if that directory is
2506 # removed, or if the path is relative.
2507 INSTALL=$ac_install_sh
2510 echo "$as_me:$LINENO: result: $INSTALL" >&5
2511 echo "${ECHO_T}$INSTALL" >&6
2513 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2514 # It thinks the first close brace ends the variable substitution.
2515 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2517 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2519 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2522 # Checks for compilation model.
2523 # Check whether --enable-largefile or --disable-largefile was given.
2524 if test "${enable_largefile+set}" = set; then
2525 enableval="$enable_largefile"
2528 if test "$enable_largefile" != no; then
2530 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
2531 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
2532 if test "${ac_cv_sys_largefile_CC+set}" = set; then
2533 echo $ECHO_N "(cached) $ECHO_C" >&6
2534 else
2535 ac_cv_sys_largefile_CC=no
2536 if test "$GCC" != yes; then
2537 ac_save_CC=$CC
2538 while :; do
2539 # IRIX 6.2 and later do not support large files by default,
2540 # so use the C compiler's -n32 option if that helps.
2541 cat >conftest.$ac_ext <<_ACEOF
2542 #line $LINENO "configure"
2543 #include "confdefs.h"
2544 #include <sys/types.h>
2545 /* Check that off_t can represent 2**63 - 1 correctly.
2546 We can't simply define LARGE_OFF_T to be 9223372036854775807,
2547 since some C++ compilers masquerading as C compilers
2548 incorrectly reject 9223372036854775807. */
2549 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2550 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2551 && LARGE_OFF_T % 2147483647 == 1)
2552 ? 1 : -1];
2554 main ()
2558 return 0;
2560 _ACEOF
2561 rm -f conftest.$ac_objext
2562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2563 (eval $ac_compile) 2>&5
2564 ac_status=$?
2565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2566 (exit $ac_status); } &&
2567 { ac_try='test -s conftest.$ac_objext'
2568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2569 (eval $ac_try) 2>&5
2570 ac_status=$?
2571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572 (exit $ac_status); }; }; then
2573 break
2574 else
2575 echo "$as_me: failed program was:" >&5
2576 cat conftest.$ac_ext >&5
2578 rm -f conftest.$ac_objext
2579 CC="$CC -n32"
2580 rm -f conftest.$ac_objext
2581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2582 (eval $ac_compile) 2>&5
2583 ac_status=$?
2584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585 (exit $ac_status); } &&
2586 { ac_try='test -s conftest.$ac_objext'
2587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2588 (eval $ac_try) 2>&5
2589 ac_status=$?
2590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591 (exit $ac_status); }; }; then
2592 ac_cv_sys_largefile_CC=' -n32'; break
2593 else
2594 echo "$as_me: failed program was:" >&5
2595 cat conftest.$ac_ext >&5
2597 rm -f conftest.$ac_objext
2598 break
2599 done
2600 CC=$ac_save_CC
2601 rm -f conftest.$ac_ext
2604 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
2605 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
2606 if test "$ac_cv_sys_largefile_CC" != no; then
2607 CC=$CC$ac_cv_sys_largefile_CC
2610 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
2611 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
2612 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
2613 echo $ECHO_N "(cached) $ECHO_C" >&6
2614 else
2615 while :; do
2616 ac_cv_sys_file_offset_bits=no
2617 cat >conftest.$ac_ext <<_ACEOF
2618 #line $LINENO "configure"
2619 #include "confdefs.h"
2620 #include <sys/types.h>
2621 /* Check that off_t can represent 2**63 - 1 correctly.
2622 We can't simply define LARGE_OFF_T to be 9223372036854775807,
2623 since some C++ compilers masquerading as C compilers
2624 incorrectly reject 9223372036854775807. */
2625 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2626 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2627 && LARGE_OFF_T % 2147483647 == 1)
2628 ? 1 : -1];
2630 main ()
2634 return 0;
2636 _ACEOF
2637 rm -f conftest.$ac_objext
2638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2639 (eval $ac_compile) 2>&5
2640 ac_status=$?
2641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642 (exit $ac_status); } &&
2643 { ac_try='test -s conftest.$ac_objext'
2644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2645 (eval $ac_try) 2>&5
2646 ac_status=$?
2647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2648 (exit $ac_status); }; }; then
2649 break
2650 else
2651 echo "$as_me: failed program was:" >&5
2652 cat conftest.$ac_ext >&5
2654 rm -f conftest.$ac_objext conftest.$ac_ext
2655 cat >conftest.$ac_ext <<_ACEOF
2656 #line $LINENO "configure"
2657 #include "confdefs.h"
2658 #define _FILE_OFFSET_BITS 64
2659 #include <sys/types.h>
2660 /* Check that off_t can represent 2**63 - 1 correctly.
2661 We can't simply define LARGE_OFF_T to be 9223372036854775807,
2662 since some C++ compilers masquerading as C compilers
2663 incorrectly reject 9223372036854775807. */
2664 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2665 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2666 && LARGE_OFF_T % 2147483647 == 1)
2667 ? 1 : -1];
2669 main ()
2673 return 0;
2675 _ACEOF
2676 rm -f conftest.$ac_objext
2677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2678 (eval $ac_compile) 2>&5
2679 ac_status=$?
2680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681 (exit $ac_status); } &&
2682 { ac_try='test -s conftest.$ac_objext'
2683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2684 (eval $ac_try) 2>&5
2685 ac_status=$?
2686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2687 (exit $ac_status); }; }; then
2688 ac_cv_sys_file_offset_bits=64; break
2689 else
2690 echo "$as_me: failed program was:" >&5
2691 cat conftest.$ac_ext >&5
2693 rm -f conftest.$ac_objext conftest.$ac_ext
2694 break
2695 done
2697 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
2698 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
2699 if test "$ac_cv_sys_file_offset_bits" != no; then
2701 cat >>confdefs.h <<_ACEOF
2702 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
2703 _ACEOF
2706 rm -f conftest*
2707 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
2708 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
2709 if test "${ac_cv_sys_large_files+set}" = set; then
2710 echo $ECHO_N "(cached) $ECHO_C" >&6
2711 else
2712 while :; do
2713 ac_cv_sys_large_files=no
2714 cat >conftest.$ac_ext <<_ACEOF
2715 #line $LINENO "configure"
2716 #include "confdefs.h"
2717 #include <sys/types.h>
2718 /* Check that off_t can represent 2**63 - 1 correctly.
2719 We can't simply define LARGE_OFF_T to be 9223372036854775807,
2720 since some C++ compilers masquerading as C compilers
2721 incorrectly reject 9223372036854775807. */
2722 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2723 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2724 && LARGE_OFF_T % 2147483647 == 1)
2725 ? 1 : -1];
2727 main ()
2731 return 0;
2733 _ACEOF
2734 rm -f conftest.$ac_objext
2735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2736 (eval $ac_compile) 2>&5
2737 ac_status=$?
2738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2739 (exit $ac_status); } &&
2740 { ac_try='test -s conftest.$ac_objext'
2741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2742 (eval $ac_try) 2>&5
2743 ac_status=$?
2744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2745 (exit $ac_status); }; }; then
2746 break
2747 else
2748 echo "$as_me: failed program was:" >&5
2749 cat conftest.$ac_ext >&5
2751 rm -f conftest.$ac_objext conftest.$ac_ext
2752 cat >conftest.$ac_ext <<_ACEOF
2753 #line $LINENO "configure"
2754 #include "confdefs.h"
2755 #define _LARGE_FILES 1
2756 #include <sys/types.h>
2757 /* Check that off_t can represent 2**63 - 1 correctly.
2758 We can't simply define LARGE_OFF_T to be 9223372036854775807,
2759 since some C++ compilers masquerading as C compilers
2760 incorrectly reject 9223372036854775807. */
2761 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2762 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2763 && LARGE_OFF_T % 2147483647 == 1)
2764 ? 1 : -1];
2766 main ()
2770 return 0;
2772 _ACEOF
2773 rm -f conftest.$ac_objext
2774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2775 (eval $ac_compile) 2>&5
2776 ac_status=$?
2777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2778 (exit $ac_status); } &&
2779 { ac_try='test -s conftest.$ac_objext'
2780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2781 (eval $ac_try) 2>&5
2782 ac_status=$?
2783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784 (exit $ac_status); }; }; then
2785 ac_cv_sys_large_files=1; break
2786 else
2787 echo "$as_me: failed program was:" >&5
2788 cat conftest.$ac_ext >&5
2790 rm -f conftest.$ac_objext conftest.$ac_ext
2791 break
2792 done
2794 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
2795 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
2796 if test "$ac_cv_sys_large_files" != no; then
2798 cat >>confdefs.h <<_ACEOF
2799 #define _LARGE_FILES $ac_cv_sys_large_files
2800 _ACEOF
2803 rm -f conftest*
2807 # Checks for general libraries.
2808 echo "$as_me:$LINENO: checking for initscr in -lxcurses" >&5
2809 echo $ECHO_N "checking for initscr in -lxcurses... $ECHO_C" >&6
2810 if test "${ac_cv_lib_xcurses_initscr+set}" = set; then
2811 echo $ECHO_N "(cached) $ECHO_C" >&6
2812 else
2813 ac_check_lib_save_LIBS=$LIBS
2814 LIBS="-lxcurses $LIBS"
2815 cat >conftest.$ac_ext <<_ACEOF
2816 #line $LINENO "configure"
2817 #include "confdefs.h"
2819 /* Override any gcc2 internal prototype to avoid an error. */
2820 #ifdef __cplusplus
2821 extern "C"
2822 #endif
2823 /* We use char because int might match the return type of a gcc2
2824 builtin and then its argument prototype would still apply. */
2825 char initscr ();
2827 main ()
2829 initscr ();
2831 return 0;
2833 _ACEOF
2834 rm -f conftest.$ac_objext conftest$ac_exeext
2835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2836 (eval $ac_link) 2>&5
2837 ac_status=$?
2838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839 (exit $ac_status); } &&
2840 { ac_try='test -s conftest$ac_exeext'
2841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2842 (eval $ac_try) 2>&5
2843 ac_status=$?
2844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2845 (exit $ac_status); }; }; then
2846 ac_cv_lib_xcurses_initscr=yes
2847 else
2848 echo "$as_me: failed program was:" >&5
2849 cat conftest.$ac_ext >&5
2850 ac_cv_lib_xcurses_initscr=no
2852 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2853 LIBS=$ac_check_lib_save_LIBS
2855 echo "$as_me:$LINENO: result: $ac_cv_lib_xcurses_initscr" >&5
2856 echo "${ECHO_T}$ac_cv_lib_xcurses_initscr" >&6
2857 if test $ac_cv_lib_xcurses_initscr = yes; then
2858 have_xcurses=yes
2859 else
2860 have_xcurses=no
2863 echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5
2864 echo $ECHO_N "checking for initscr in -lncurses... $ECHO_C" >&6
2865 if test "${ac_cv_lib_ncurses_initscr+set}" = set; then
2866 echo $ECHO_N "(cached) $ECHO_C" >&6
2867 else
2868 ac_check_lib_save_LIBS=$LIBS
2869 LIBS="-lncurses $LIBS"
2870 cat >conftest.$ac_ext <<_ACEOF
2871 #line $LINENO "configure"
2872 #include "confdefs.h"
2874 /* Override any gcc2 internal prototype to avoid an error. */
2875 #ifdef __cplusplus
2876 extern "C"
2877 #endif
2878 /* We use char because int might match the return type of a gcc2
2879 builtin and then its argument prototype would still apply. */
2880 char initscr ();
2882 main ()
2884 initscr ();
2886 return 0;
2888 _ACEOF
2889 rm -f conftest.$ac_objext conftest$ac_exeext
2890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2891 (eval $ac_link) 2>&5
2892 ac_status=$?
2893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894 (exit $ac_status); } &&
2895 { ac_try='test -s conftest$ac_exeext'
2896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2897 (eval $ac_try) 2>&5
2898 ac_status=$?
2899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900 (exit $ac_status); }; }; then
2901 ac_cv_lib_ncurses_initscr=yes
2902 else
2903 echo "$as_me: failed program was:" >&5
2904 cat conftest.$ac_ext >&5
2905 ac_cv_lib_ncurses_initscr=no
2907 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2908 LIBS=$ac_check_lib_save_LIBS
2910 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_initscr" >&5
2911 echo "${ECHO_T}$ac_cv_lib_ncurses_initscr" >&6
2912 if test $ac_cv_lib_ncurses_initscr = yes; then
2913 have_ncurses=yes
2914 else
2915 have_ncurses=no
2918 echo "$as_me:$LINENO: checking for initscr in -lcurses" >&5
2919 echo $ECHO_N "checking for initscr in -lcurses... $ECHO_C" >&6
2920 if test "${ac_cv_lib_curses_initscr+set}" = set; then
2921 echo $ECHO_N "(cached) $ECHO_C" >&6
2922 else
2923 ac_check_lib_save_LIBS=$LIBS
2924 LIBS="-lcurses $LIBS"
2925 cat >conftest.$ac_ext <<_ACEOF
2926 #line $LINENO "configure"
2927 #include "confdefs.h"
2929 /* Override any gcc2 internal prototype to avoid an error. */
2930 #ifdef __cplusplus
2931 extern "C"
2932 #endif
2933 /* We use char because int might match the return type of a gcc2
2934 builtin and then its argument prototype would still apply. */
2935 char initscr ();
2937 main ()
2939 initscr ();
2941 return 0;
2943 _ACEOF
2944 rm -f conftest.$ac_objext conftest$ac_exeext
2945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2946 (eval $ac_link) 2>&5
2947 ac_status=$?
2948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2949 (exit $ac_status); } &&
2950 { ac_try='test -s conftest$ac_exeext'
2951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2952 (eval $ac_try) 2>&5
2953 ac_status=$?
2954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955 (exit $ac_status); }; }; then
2956 ac_cv_lib_curses_initscr=yes
2957 else
2958 echo "$as_me: failed program was:" >&5
2959 cat conftest.$ac_ext >&5
2960 ac_cv_lib_curses_initscr=no
2962 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2963 LIBS=$ac_check_lib_save_LIBS
2965 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_initscr" >&5
2966 echo "${ECHO_T}$ac_cv_lib_curses_initscr" >&6
2967 if test $ac_cv_lib_curses_initscr = yes; then
2968 have_curses=yes
2969 else
2970 have_curses=no
2973 echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
2974 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
2975 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
2976 echo $ECHO_N "(cached) $ECHO_C" >&6
2977 else
2978 ac_check_lib_save_LIBS=$LIBS
2979 LIBS="-ltermcap $LIBS"
2980 cat >conftest.$ac_ext <<_ACEOF
2981 #line $LINENO "configure"
2982 #include "confdefs.h"
2984 /* Override any gcc2 internal prototype to avoid an error. */
2985 #ifdef __cplusplus
2986 extern "C"
2987 #endif
2988 /* We use char because int might match the return type of a gcc2
2989 builtin and then its argument prototype would still apply. */
2990 char tgetent ();
2992 main ()
2994 tgetent ();
2996 return 0;
2998 _ACEOF
2999 rm -f conftest.$ac_objext conftest$ac_exeext
3000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3001 (eval $ac_link) 2>&5
3002 ac_status=$?
3003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3004 (exit $ac_status); } &&
3005 { ac_try='test -s conftest$ac_exeext'
3006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3007 (eval $ac_try) 2>&5
3008 ac_status=$?
3009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3010 (exit $ac_status); }; }; then
3011 ac_cv_lib_termcap_tgetent=yes
3012 else
3013 echo "$as_me: failed program was:" >&5
3014 cat conftest.$ac_ext >&5
3015 ac_cv_lib_termcap_tgetent=no
3017 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3018 LIBS=$ac_check_lib_save_LIBS
3020 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
3021 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
3022 if test $ac_cv_lib_termcap_tgetent = yes; then
3023 have_termcap=yes
3024 else
3025 have_termcap=no
3028 echo "$as_me:$LINENO: checking for tgetent in -ltermlib" >&5
3029 echo $ECHO_N "checking for tgetent in -ltermlib... $ECHO_C" >&6
3030 if test "${ac_cv_lib_termlib_tgetent+set}" = set; then
3031 echo $ECHO_N "(cached) $ECHO_C" >&6
3032 else
3033 ac_check_lib_save_LIBS=$LIBS
3034 LIBS="-ltermlib $LIBS"
3035 cat >conftest.$ac_ext <<_ACEOF
3036 #line $LINENO "configure"
3037 #include "confdefs.h"
3039 /* Override any gcc2 internal prototype to avoid an error. */
3040 #ifdef __cplusplus
3041 extern "C"
3042 #endif
3043 /* We use char because int might match the return type of a gcc2
3044 builtin and then its argument prototype would still apply. */
3045 char tgetent ();
3047 main ()
3049 tgetent ();
3051 return 0;
3053 _ACEOF
3054 rm -f conftest.$ac_objext conftest$ac_exeext
3055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3056 (eval $ac_link) 2>&5
3057 ac_status=$?
3058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3059 (exit $ac_status); } &&
3060 { ac_try='test -s conftest$ac_exeext'
3061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3062 (eval $ac_try) 2>&5
3063 ac_status=$?
3064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3065 (exit $ac_status); }; }; then
3066 ac_cv_lib_termlib_tgetent=yes
3067 else
3068 echo "$as_me: failed program was:" >&5
3069 cat conftest.$ac_ext >&5
3070 ac_cv_lib_termlib_tgetent=no
3072 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3073 LIBS=$ac_check_lib_save_LIBS
3075 echo "$as_me:$LINENO: result: $ac_cv_lib_termlib_tgetent" >&5
3076 echo "${ECHO_T}$ac_cv_lib_termlib_tgetent" >&6
3077 if test $ac_cv_lib_termlib_tgetent = yes; then
3078 have_termlib=yes
3079 else
3080 have_termlib=no
3083 # Regular expressions (regcmp) are in -lgen on Solaris 2,
3084 # and in -lintl on SCO Unix.
3086 echo "$as_me:$LINENO: checking for regcmp in -lgen" >&5
3087 echo $ECHO_N "checking for regcmp in -lgen... $ECHO_C" >&6
3088 if test "${ac_cv_lib_gen_regcmp+set}" = set; then
3089 echo $ECHO_N "(cached) $ECHO_C" >&6
3090 else
3091 ac_check_lib_save_LIBS=$LIBS
3092 LIBS="-lgen $LIBS"
3093 cat >conftest.$ac_ext <<_ACEOF
3094 #line $LINENO "configure"
3095 #include "confdefs.h"
3097 /* Override any gcc2 internal prototype to avoid an error. */
3098 #ifdef __cplusplus
3099 extern "C"
3100 #endif
3101 /* We use char because int might match the return type of a gcc2
3102 builtin and then its argument prototype would still apply. */
3103 char regcmp ();
3105 main ()
3107 regcmp ();
3109 return 0;
3111 _ACEOF
3112 rm -f conftest.$ac_objext conftest$ac_exeext
3113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3114 (eval $ac_link) 2>&5
3115 ac_status=$?
3116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3117 (exit $ac_status); } &&
3118 { ac_try='test -s conftest$ac_exeext'
3119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3120 (eval $ac_try) 2>&5
3121 ac_status=$?
3122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3123 (exit $ac_status); }; }; then
3124 ac_cv_lib_gen_regcmp=yes
3125 else
3126 echo "$as_me: failed program was:" >&5
3127 cat conftest.$ac_ext >&5
3128 ac_cv_lib_gen_regcmp=no
3130 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3131 LIBS=$ac_check_lib_save_LIBS
3133 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_regcmp" >&5
3134 echo "${ECHO_T}$ac_cv_lib_gen_regcmp" >&6
3135 if test $ac_cv_lib_gen_regcmp = yes; then
3136 cat >>confdefs.h <<_ACEOF
3137 #define HAVE_LIBGEN 1
3138 _ACEOF
3140 LIBS="-lgen $LIBS"
3145 echo "$as_me:$LINENO: checking for regcmp in -lintl" >&5
3146 echo $ECHO_N "checking for regcmp in -lintl... $ECHO_C" >&6
3147 if test "${ac_cv_lib_intl_regcmp+set}" = set; then
3148 echo $ECHO_N "(cached) $ECHO_C" >&6
3149 else
3150 ac_check_lib_save_LIBS=$LIBS
3151 LIBS="-lintl $LIBS"
3152 cat >conftest.$ac_ext <<_ACEOF
3153 #line $LINENO "configure"
3154 #include "confdefs.h"
3156 /* Override any gcc2 internal prototype to avoid an error. */
3157 #ifdef __cplusplus
3158 extern "C"
3159 #endif
3160 /* We use char because int might match the return type of a gcc2
3161 builtin and then its argument prototype would still apply. */
3162 char regcmp ();
3164 main ()
3166 regcmp ();
3168 return 0;
3170 _ACEOF
3171 rm -f conftest.$ac_objext conftest$ac_exeext
3172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3173 (eval $ac_link) 2>&5
3174 ac_status=$?
3175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176 (exit $ac_status); } &&
3177 { ac_try='test -s conftest$ac_exeext'
3178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3179 (eval $ac_try) 2>&5
3180 ac_status=$?
3181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3182 (exit $ac_status); }; }; then
3183 ac_cv_lib_intl_regcmp=yes
3184 else
3185 echo "$as_me: failed program was:" >&5
3186 cat conftest.$ac_ext >&5
3187 ac_cv_lib_intl_regcmp=no
3189 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3190 LIBS=$ac_check_lib_save_LIBS
3192 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_regcmp" >&5
3193 echo "${ECHO_T}$ac_cv_lib_intl_regcmp" >&6
3194 if test $ac_cv_lib_intl_regcmp = yes; then
3195 cat >>confdefs.h <<_ACEOF
3196 #define HAVE_LIBINTL 1
3197 _ACEOF
3199 LIBS="-lintl $LIBS"
3204 echo "$as_me:$LINENO: checking for regcmp in -lPW" >&5
3205 echo $ECHO_N "checking for regcmp in -lPW... $ECHO_C" >&6
3206 if test "${ac_cv_lib_PW_regcmp+set}" = set; then
3207 echo $ECHO_N "(cached) $ECHO_C" >&6
3208 else
3209 ac_check_lib_save_LIBS=$LIBS
3210 LIBS="-lPW $LIBS"
3211 cat >conftest.$ac_ext <<_ACEOF
3212 #line $LINENO "configure"
3213 #include "confdefs.h"
3215 /* Override any gcc2 internal prototype to avoid an error. */
3216 #ifdef __cplusplus
3217 extern "C"
3218 #endif
3219 /* We use char because int might match the return type of a gcc2
3220 builtin and then its argument prototype would still apply. */
3221 char regcmp ();
3223 main ()
3225 regcmp ();
3227 return 0;
3229 _ACEOF
3230 rm -f conftest.$ac_objext conftest$ac_exeext
3231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3232 (eval $ac_link) 2>&5
3233 ac_status=$?
3234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3235 (exit $ac_status); } &&
3236 { ac_try='test -s conftest$ac_exeext'
3237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3238 (eval $ac_try) 2>&5
3239 ac_status=$?
3240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3241 (exit $ac_status); }; }; then
3242 ac_cv_lib_PW_regcmp=yes
3243 else
3244 echo "$as_me: failed program was:" >&5
3245 cat conftest.$ac_ext >&5
3246 ac_cv_lib_PW_regcmp=no
3248 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3249 LIBS=$ac_check_lib_save_LIBS
3251 echo "$as_me:$LINENO: result: $ac_cv_lib_PW_regcmp" >&5
3252 echo "${ECHO_T}$ac_cv_lib_PW_regcmp" >&6
3253 if test $ac_cv_lib_PW_regcmp = yes; then
3254 cat >>confdefs.h <<_ACEOF
3255 #define HAVE_LIBPW 1
3256 _ACEOF
3258 LIBS="-lPW $LIBS"
3263 # Checks for terminal libraries
3264 echo "$as_me:$LINENO: checking for working terminal libraries" >&5
3265 echo $ECHO_N "checking for working terminal libraries... $ECHO_C" >&6
3266 TERMLIBS=
3268 # Check for systems where curses is broken.
3269 curses_broken=0
3270 if test x`uname -s` = "xHP-UX" >/dev/null 2>&1; then
3271 if test x`uname -r` = "xB.11.00" >/dev/null 2>&1; then
3272 curses_broken=1
3274 if test x`uname -r` = "xB.11.11" >/dev/null 2>&1; then
3275 curses_broken=1
3279 if test $curses_broken = 0; then
3280 # -- Try xcurses.
3281 if test "x$TERMLIBS" = x; then
3282 if test $have_xcurses = yes; then
3283 TERMLIBS="-lxcurses"
3284 SAVE_LIBS=$LIBS
3285 LIBS="$LIBS $TERMLIBS"
3286 cat >conftest.$ac_ext <<_ACEOF
3287 #line $LINENO "configure"
3288 #include "confdefs.h"
3291 main ()
3293 tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);
3295 return 0;
3297 _ACEOF
3298 rm -f conftest.$ac_objext conftest$ac_exeext
3299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3300 (eval $ac_link) 2>&5
3301 ac_status=$?
3302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3303 (exit $ac_status); } &&
3304 { ac_try='test -s conftest$ac_exeext'
3305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3306 (eval $ac_try) 2>&5
3307 ac_status=$?
3308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3309 (exit $ac_status); }; }; then
3310 termok=yes
3311 else
3312 echo "$as_me: failed program was:" >&5
3313 cat conftest.$ac_ext >&5
3314 termok=no
3316 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3317 LIBS=$SAVE_LIBS
3318 if test $termok = no; then TERMLIBS=""; fi
3322 # -- Try ncurses.
3323 if test "x$TERMLIBS" = x; then
3324 if test $have_ncurses = yes; then
3325 TERMLIBS="-lncurses"
3326 SAVE_LIBS=$LIBS
3327 LIBS="$LIBS $TERMLIBS"
3328 cat >conftest.$ac_ext <<_ACEOF
3329 #line $LINENO "configure"
3330 #include "confdefs.h"
3333 main ()
3335 tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);
3337 return 0;
3339 _ACEOF
3340 rm -f conftest.$ac_objext conftest$ac_exeext
3341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3342 (eval $ac_link) 2>&5
3343 ac_status=$?
3344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3345 (exit $ac_status); } &&
3346 { ac_try='test -s conftest$ac_exeext'
3347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3348 (eval $ac_try) 2>&5
3349 ac_status=$?
3350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351 (exit $ac_status); }; }; then
3352 termok=yes
3353 else
3354 echo "$as_me: failed program was:" >&5
3355 cat conftest.$ac_ext >&5
3356 termok=no
3358 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3359 LIBS=$SAVE_LIBS
3360 if test $termok = no; then TERMLIBS=""; fi
3364 # -- Try curses.
3365 if test "x$TERMLIBS" = x; then
3366 if test $have_curses = yes; then
3367 TERMLIBS="-lcurses"
3368 SAVE_LIBS=$LIBS
3369 LIBS="$LIBS $TERMLIBS"
3370 cat >conftest.$ac_ext <<_ACEOF
3371 #line $LINENO "configure"
3372 #include "confdefs.h"
3375 main ()
3377 tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);
3379 return 0;
3381 _ACEOF
3382 rm -f conftest.$ac_objext conftest$ac_exeext
3383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3384 (eval $ac_link) 2>&5
3385 ac_status=$?
3386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3387 (exit $ac_status); } &&
3388 { ac_try='test -s conftest$ac_exeext'
3389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3390 (eval $ac_try) 2>&5
3391 ac_status=$?
3392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3393 (exit $ac_status); }; }; then
3394 termok=yes
3395 else
3396 echo "$as_me: failed program was:" >&5
3397 cat conftest.$ac_ext >&5
3398 termok=no
3400 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3401 LIBS=$SAVE_LIBS
3402 if test $termok = no; then TERMLIBS=""; fi
3406 # -- Try curses & termcap.
3407 if test "x$TERMLIBS" = x; then
3408 if test $have_curses = yes; then
3409 if test $have_termcap = yes; then
3410 TERMLIBS="-lcurses -ltermcap"
3411 SAVE_LIBS=$LIBS
3412 LIBS="$LIBS $TERMLIBS"
3413 cat >conftest.$ac_ext <<_ACEOF
3414 #line $LINENO "configure"
3415 #include "confdefs.h"
3418 main ()
3420 tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);
3422 return 0;
3424 _ACEOF
3425 rm -f conftest.$ac_objext conftest$ac_exeext
3426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3427 (eval $ac_link) 2>&5
3428 ac_status=$?
3429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3430 (exit $ac_status); } &&
3431 { ac_try='test -s conftest$ac_exeext'
3432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3433 (eval $ac_try) 2>&5
3434 ac_status=$?
3435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3436 (exit $ac_status); }; }; then
3437 termok=yes
3438 else
3439 echo "$as_me: failed program was:" >&5
3440 cat conftest.$ac_ext >&5
3441 termok=no
3443 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3444 LIBS=$SAVE_LIBS
3445 if test $termok = no; then TERMLIBS=""; fi
3451 # -- Try termcap.
3452 if test "x$TERMLIBS" = x; then
3453 if test $have_termcap = yes; then
3454 TERMLIBS="-ltermcap"
3455 SAVE_LIBS=$LIBS
3456 LIBS="$LIBS $TERMLIBS"
3457 cat >conftest.$ac_ext <<_ACEOF
3458 #line $LINENO "configure"
3459 #include "confdefs.h"
3462 main ()
3464 tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);
3466 return 0;
3468 _ACEOF
3469 rm -f conftest.$ac_objext conftest$ac_exeext
3470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3471 (eval $ac_link) 2>&5
3472 ac_status=$?
3473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3474 (exit $ac_status); } &&
3475 { ac_try='test -s conftest$ac_exeext'
3476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3477 (eval $ac_try) 2>&5
3478 ac_status=$?
3479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3480 (exit $ac_status); }; }; then
3481 termok=yes
3482 else
3483 echo "$as_me: failed program was:" >&5
3484 cat conftest.$ac_ext >&5
3485 termok=no
3487 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3488 LIBS=$SAVE_LIBS
3489 if test $termok = no; then TERMLIBS=""; fi
3493 # -- Try termlib.
3494 if test "x$TERMLIBS" = x; then
3495 if test $have_termlib = yes; then
3496 TERMLIBS="-lcurses -ltermlib"
3497 SAVE_LIBS=$LIBS
3498 LIBS="$LIBS $TERMLIBS"
3499 cat >conftest.$ac_ext <<_ACEOF
3500 #line $LINENO "configure"
3501 #include "confdefs.h"
3504 main ()
3506 tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);
3508 return 0;
3510 _ACEOF
3511 rm -f conftest.$ac_objext conftest$ac_exeext
3512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3513 (eval $ac_link) 2>&5
3514 ac_status=$?
3515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3516 (exit $ac_status); } &&
3517 { ac_try='test -s conftest$ac_exeext'
3518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3519 (eval $ac_try) 2>&5
3520 ac_status=$?
3521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3522 (exit $ac_status); }; }; then
3523 termok=yes
3524 else
3525 echo "$as_me: failed program was:" >&5
3526 cat conftest.$ac_ext >&5
3527 termok=no
3529 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3530 LIBS=$SAVE_LIBS
3531 if test $termok = no; then TERMLIBS=""; fi
3535 if test "x$TERMLIBS" = x; then
3536 echo "$as_me:$LINENO: result: Cannot find terminal libraries - configure failed" >&5
3537 echo "${ECHO_T}Cannot find terminal libraries - configure failed" >&6
3538 exit 1
3540 echo "$as_me:$LINENO: result: using $TERMLIBS" >&5
3541 echo "${ECHO_T}using $TERMLIBS" >&6
3542 LIBS="$LIBS $TERMLIBS"
3544 # Checks for header files.
3545 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3546 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3547 if test "${ac_cv_header_stdc+set}" = set; then
3548 echo $ECHO_N "(cached) $ECHO_C" >&6
3549 else
3550 cat >conftest.$ac_ext <<_ACEOF
3551 #line $LINENO "configure"
3552 #include "confdefs.h"
3553 #include <stdlib.h>
3554 #include <stdarg.h>
3555 #include <string.h>
3556 #include <float.h>
3558 _ACEOF
3559 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3560 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3561 ac_status=$?
3562 grep -v '^ *+' conftest.er1 >conftest.err
3563 rm -f conftest.er1
3564 cat conftest.err >&5
3565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3566 (exit $ac_status); } >/dev/null; then
3567 if test -s conftest.err; then
3568 ac_cpp_err=$ac_c_preproc_warn_flag
3569 else
3570 ac_cpp_err=
3572 else
3573 ac_cpp_err=yes
3575 if test -z "$ac_cpp_err"; then
3576 ac_cv_header_stdc=yes
3577 else
3578 echo "$as_me: failed program was:" >&5
3579 cat conftest.$ac_ext >&5
3580 ac_cv_header_stdc=no
3582 rm -f conftest.err conftest.$ac_ext
3584 if test $ac_cv_header_stdc = yes; then
3585 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3586 cat >conftest.$ac_ext <<_ACEOF
3587 #line $LINENO "configure"
3588 #include "confdefs.h"
3589 #include <string.h>
3591 _ACEOF
3592 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3593 $EGREP "memchr" >/dev/null 2>&1; then
3595 else
3596 ac_cv_header_stdc=no
3598 rm -f conftest*
3602 if test $ac_cv_header_stdc = yes; then
3603 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3604 cat >conftest.$ac_ext <<_ACEOF
3605 #line $LINENO "configure"
3606 #include "confdefs.h"
3607 #include <stdlib.h>
3609 _ACEOF
3610 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3611 $EGREP "free" >/dev/null 2>&1; then
3613 else
3614 ac_cv_header_stdc=no
3616 rm -f conftest*
3620 if test $ac_cv_header_stdc = yes; then
3621 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3622 if test "$cross_compiling" = yes; then
3624 else
3625 cat >conftest.$ac_ext <<_ACEOF
3626 #line $LINENO "configure"
3627 #include "confdefs.h"
3628 #include <ctype.h>
3629 #if ((' ' & 0x0FF) == 0x020)
3630 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3631 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3632 #else
3633 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3634 || ('j' <= (c) && (c) <= 'r') \
3635 || ('s' <= (c) && (c) <= 'z'))
3636 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3637 #endif
3639 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3641 main ()
3643 int i;
3644 for (i = 0; i < 256; i++)
3645 if (XOR (islower (i), ISLOWER (i))
3646 || toupper (i) != TOUPPER (i))
3647 exit(2);
3648 exit (0);
3650 _ACEOF
3651 rm -f conftest$ac_exeext
3652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3653 (eval $ac_link) 2>&5
3654 ac_status=$?
3655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3656 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3658 (eval $ac_try) 2>&5
3659 ac_status=$?
3660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3661 (exit $ac_status); }; }; then
3663 else
3664 echo "$as_me: program exited with status $ac_status" >&5
3665 echo "$as_me: failed program was:" >&5
3666 cat conftest.$ac_ext >&5
3667 ( exit $ac_status )
3668 ac_cv_header_stdc=no
3670 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3674 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3675 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3676 if test $ac_cv_header_stdc = yes; then
3678 cat >>confdefs.h <<\_ACEOF
3679 #define STDC_HEADERS 1
3680 _ACEOF
3684 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3694 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3695 inttypes.h stdint.h unistd.h
3697 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3698 echo "$as_me:$LINENO: checking for $ac_header" >&5
3699 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3700 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3701 echo $ECHO_N "(cached) $ECHO_C" >&6
3702 else
3703 cat >conftest.$ac_ext <<_ACEOF
3704 #line $LINENO "configure"
3705 #include "confdefs.h"
3706 $ac_includes_default
3708 #include <$ac_header>
3709 _ACEOF
3710 rm -f conftest.$ac_objext
3711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3712 (eval $ac_compile) 2>&5
3713 ac_status=$?
3714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3715 (exit $ac_status); } &&
3716 { ac_try='test -s conftest.$ac_objext'
3717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3718 (eval $ac_try) 2>&5
3719 ac_status=$?
3720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3721 (exit $ac_status); }; }; then
3722 eval "$as_ac_Header=yes"
3723 else
3724 echo "$as_me: failed program was:" >&5
3725 cat conftest.$ac_ext >&5
3726 eval "$as_ac_Header=no"
3728 rm -f conftest.$ac_objext conftest.$ac_ext
3730 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3731 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3732 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3733 cat >>confdefs.h <<_ACEOF
3734 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3735 _ACEOF
3739 done
3758 for ac_header in ctype.h errno.h fcntl.h limits.h stdio.h stdlib.h string.h termcap.h termio.h termios.h time.h unistd.h values.h sys/ioctl.h sys/stream.h sys/ptem.h
3760 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3761 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3762 echo "$as_me:$LINENO: checking for $ac_header" >&5
3763 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3764 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3765 echo $ECHO_N "(cached) $ECHO_C" >&6
3767 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3768 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3769 else
3770 # Is the header compilable?
3771 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3772 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3773 cat >conftest.$ac_ext <<_ACEOF
3774 #line $LINENO "configure"
3775 #include "confdefs.h"
3776 $ac_includes_default
3777 #include <$ac_header>
3778 _ACEOF
3779 rm -f conftest.$ac_objext
3780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3781 (eval $ac_compile) 2>&5
3782 ac_status=$?
3783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3784 (exit $ac_status); } &&
3785 { ac_try='test -s conftest.$ac_objext'
3786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3787 (eval $ac_try) 2>&5
3788 ac_status=$?
3789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3790 (exit $ac_status); }; }; then
3791 ac_header_compiler=yes
3792 else
3793 echo "$as_me: failed program was:" >&5
3794 cat conftest.$ac_ext >&5
3795 ac_header_compiler=no
3797 rm -f conftest.$ac_objext conftest.$ac_ext
3798 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3799 echo "${ECHO_T}$ac_header_compiler" >&6
3801 # Is the header present?
3802 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3803 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3804 cat >conftest.$ac_ext <<_ACEOF
3805 #line $LINENO "configure"
3806 #include "confdefs.h"
3807 #include <$ac_header>
3808 _ACEOF
3809 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3810 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3811 ac_status=$?
3812 grep -v '^ *+' conftest.er1 >conftest.err
3813 rm -f conftest.er1
3814 cat conftest.err >&5
3815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3816 (exit $ac_status); } >/dev/null; then
3817 if test -s conftest.err; then
3818 ac_cpp_err=$ac_c_preproc_warn_flag
3819 else
3820 ac_cpp_err=
3822 else
3823 ac_cpp_err=yes
3825 if test -z "$ac_cpp_err"; then
3826 ac_header_preproc=yes
3827 else
3828 echo "$as_me: failed program was:" >&5
3829 cat conftest.$ac_ext >&5
3830 ac_header_preproc=no
3832 rm -f conftest.err conftest.$ac_ext
3833 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3834 echo "${ECHO_T}$ac_header_preproc" >&6
3836 # So? What about this header?
3837 case $ac_header_compiler:$ac_header_preproc in
3838 yes:no )
3839 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3840 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3841 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3842 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3843 no:yes )
3844 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3845 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3846 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3847 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3848 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3849 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3850 esac
3851 echo "$as_me:$LINENO: checking for $ac_header" >&5
3852 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3853 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3854 echo $ECHO_N "(cached) $ECHO_C" >&6
3855 else
3856 eval "$as_ac_Header=$ac_header_preproc"
3858 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3859 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3862 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3863 cat >>confdefs.h <<_ACEOF
3864 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3865 _ACEOF
3869 done
3872 # Checks for typedefs, structures, and compiler characteristics.
3873 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
3874 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
3875 if test "${ac_cv_header_stat_broken+set}" = set; then
3876 echo $ECHO_N "(cached) $ECHO_C" >&6
3877 else
3878 cat >conftest.$ac_ext <<_ACEOF
3879 #line $LINENO "configure"
3880 #include "confdefs.h"
3881 #include <sys/types.h>
3882 #include <sys/stat.h>
3884 #if defined(S_ISBLK) && defined(S_IFDIR)
3885 # if S_ISBLK (S_IFDIR)
3886 You lose.
3887 # endif
3888 #endif
3890 #if defined(S_ISBLK) && defined(S_IFCHR)
3891 # if S_ISBLK (S_IFCHR)
3892 You lose.
3893 # endif
3894 #endif
3896 #if defined(S_ISLNK) && defined(S_IFREG)
3897 # if S_ISLNK (S_IFREG)
3898 You lose.
3899 # endif
3900 #endif
3902 #if defined(S_ISSOCK) && defined(S_IFREG)
3903 # if S_ISSOCK (S_IFREG)
3904 You lose.
3905 # endif
3906 #endif
3908 _ACEOF
3909 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3910 $EGREP "You lose" >/dev/null 2>&1; then
3911 ac_cv_header_stat_broken=yes
3912 else
3913 ac_cv_header_stat_broken=no
3915 rm -f conftest*
3918 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
3919 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
3920 if test $ac_cv_header_stat_broken = yes; then
3922 cat >>confdefs.h <<\_ACEOF
3923 #define STAT_MACROS_BROKEN 1
3924 _ACEOF
3928 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3929 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3930 if test "${ac_cv_c_const+set}" = set; then
3931 echo $ECHO_N "(cached) $ECHO_C" >&6
3932 else
3933 cat >conftest.$ac_ext <<_ACEOF
3934 #line $LINENO "configure"
3935 #include "confdefs.h"
3938 main ()
3940 /* FIXME: Include the comments suggested by Paul. */
3941 #ifndef __cplusplus
3942 /* Ultrix mips cc rejects this. */
3943 typedef int charset[2];
3944 const charset x;
3945 /* SunOS 4.1.1 cc rejects this. */
3946 char const *const *ccp;
3947 char **p;
3948 /* NEC SVR4.0.2 mips cc rejects this. */
3949 struct point {int x, y;};
3950 static struct point const zero = {0,0};
3951 /* AIX XL C 1.02.0.0 rejects this.
3952 It does not let you subtract one const X* pointer from another in
3953 an arm of an if-expression whose if-part is not a constant
3954 expression */
3955 const char *g = "string";
3956 ccp = &g + (g ? g-g : 0);
3957 /* HPUX 7.0 cc rejects these. */
3958 ++ccp;
3959 p = (char**) ccp;
3960 ccp = (char const *const *) p;
3961 { /* SCO 3.2v4 cc rejects this. */
3962 char *t;
3963 char const *s = 0 ? (char *) 0 : (char const *) 0;
3965 *t++ = 0;
3967 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3968 int x[] = {25, 17};
3969 const int *foo = &x[0];
3970 ++foo;
3972 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3973 typedef const int *iptr;
3974 iptr p = 0;
3975 ++p;
3977 { /* AIX XL C 1.02.0.0 rejects this saying
3978 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3979 struct s { int j; const int *ap[3]; };
3980 struct s *b; b->j = 5;
3982 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3983 const int foo = 10;
3985 #endif
3988 return 0;
3990 _ACEOF
3991 rm -f conftest.$ac_objext
3992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3993 (eval $ac_compile) 2>&5
3994 ac_status=$?
3995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3996 (exit $ac_status); } &&
3997 { ac_try='test -s conftest.$ac_objext'
3998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3999 (eval $ac_try) 2>&5
4000 ac_status=$?
4001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4002 (exit $ac_status); }; }; then
4003 ac_cv_c_const=yes
4004 else
4005 echo "$as_me: failed program was:" >&5
4006 cat conftest.$ac_ext >&5
4007 ac_cv_c_const=no
4009 rm -f conftest.$ac_objext conftest.$ac_ext
4011 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4012 echo "${ECHO_T}$ac_cv_c_const" >&6
4013 if test $ac_cv_c_const = no; then
4015 cat >>confdefs.h <<\_ACEOF
4016 #define const
4017 _ACEOF
4021 echo "$as_me:$LINENO: checking for off_t" >&5
4022 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
4023 if test "${ac_cv_type_off_t+set}" = set; then
4024 echo $ECHO_N "(cached) $ECHO_C" >&6
4025 else
4026 cat >conftest.$ac_ext <<_ACEOF
4027 #line $LINENO "configure"
4028 #include "confdefs.h"
4029 $ac_includes_default
4031 main ()
4033 if ((off_t *) 0)
4034 return 0;
4035 if (sizeof (off_t))
4036 return 0;
4038 return 0;
4040 _ACEOF
4041 rm -f conftest.$ac_objext
4042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4043 (eval $ac_compile) 2>&5
4044 ac_status=$?
4045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4046 (exit $ac_status); } &&
4047 { ac_try='test -s conftest.$ac_objext'
4048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4049 (eval $ac_try) 2>&5
4050 ac_status=$?
4051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4052 (exit $ac_status); }; }; then
4053 ac_cv_type_off_t=yes
4054 else
4055 echo "$as_me: failed program was:" >&5
4056 cat conftest.$ac_ext >&5
4057 ac_cv_type_off_t=no
4059 rm -f conftest.$ac_objext conftest.$ac_ext
4061 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
4062 echo "${ECHO_T}$ac_cv_type_off_t" >&6
4063 if test $ac_cv_type_off_t = yes; then
4065 else
4067 cat >>confdefs.h <<_ACEOF
4068 #define off_t long
4069 _ACEOF
4073 echo "$as_me:$LINENO: checking for size_t" >&5
4074 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4075 if test "${ac_cv_type_size_t+set}" = set; then
4076 echo $ECHO_N "(cached) $ECHO_C" >&6
4077 else
4078 cat >conftest.$ac_ext <<_ACEOF
4079 #line $LINENO "configure"
4080 #include "confdefs.h"
4081 $ac_includes_default
4083 main ()
4085 if ((size_t *) 0)
4086 return 0;
4087 if (sizeof (size_t))
4088 return 0;
4090 return 0;
4092 _ACEOF
4093 rm -f conftest.$ac_objext
4094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4095 (eval $ac_compile) 2>&5
4096 ac_status=$?
4097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4098 (exit $ac_status); } &&
4099 { ac_try='test -s conftest.$ac_objext'
4100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4101 (eval $ac_try) 2>&5
4102 ac_status=$?
4103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4104 (exit $ac_status); }; }; then
4105 ac_cv_type_size_t=yes
4106 else
4107 echo "$as_me: failed program was:" >&5
4108 cat conftest.$ac_ext >&5
4109 ac_cv_type_size_t=no
4111 rm -f conftest.$ac_objext conftest.$ac_ext
4113 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4114 echo "${ECHO_T}$ac_cv_type_size_t" >&6
4115 if test $ac_cv_type_size_t = yes; then
4117 else
4119 cat >>confdefs.h <<_ACEOF
4120 #define size_t unsigned
4121 _ACEOF
4125 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4126 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
4127 if test "${ac_cv_header_time+set}" = set; then
4128 echo $ECHO_N "(cached) $ECHO_C" >&6
4129 else
4130 cat >conftest.$ac_ext <<_ACEOF
4131 #line $LINENO "configure"
4132 #include "confdefs.h"
4133 #include <sys/types.h>
4134 #include <sys/time.h>
4135 #include <time.h>
4138 main ()
4140 if ((struct tm *) 0)
4141 return 0;
4143 return 0;
4145 _ACEOF
4146 rm -f conftest.$ac_objext
4147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4148 (eval $ac_compile) 2>&5
4149 ac_status=$?
4150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4151 (exit $ac_status); } &&
4152 { ac_try='test -s conftest.$ac_objext'
4153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4154 (eval $ac_try) 2>&5
4155 ac_status=$?
4156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4157 (exit $ac_status); }; }; then
4158 ac_cv_header_time=yes
4159 else
4160 echo "$as_me: failed program was:" >&5
4161 cat conftest.$ac_ext >&5
4162 ac_cv_header_time=no
4164 rm -f conftest.$ac_objext conftest.$ac_ext
4166 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4167 echo "${ECHO_T}$ac_cv_header_time" >&6
4168 if test $ac_cv_header_time = yes; then
4170 cat >>confdefs.h <<\_ACEOF
4171 #define TIME_WITH_SYS_TIME 1
4172 _ACEOF
4177 # Autoheader templates for symbols defined later by AC_DEFINE.
4225 # Checks for identifiers.
4226 echo "$as_me:$LINENO: checking for off_t" >&5
4227 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
4228 if test "${ac_cv_type_off_t+set}" = set; then
4229 echo $ECHO_N "(cached) $ECHO_C" >&6
4230 else
4231 cat >conftest.$ac_ext <<_ACEOF
4232 #line $LINENO "configure"
4233 #include "confdefs.h"
4234 $ac_includes_default
4236 main ()
4238 if ((off_t *) 0)
4239 return 0;
4240 if (sizeof (off_t))
4241 return 0;
4243 return 0;
4245 _ACEOF
4246 rm -f conftest.$ac_objext
4247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4248 (eval $ac_compile) 2>&5
4249 ac_status=$?
4250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4251 (exit $ac_status); } &&
4252 { ac_try='test -s conftest.$ac_objext'
4253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4254 (eval $ac_try) 2>&5
4255 ac_status=$?
4256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4257 (exit $ac_status); }; }; then
4258 ac_cv_type_off_t=yes
4259 else
4260 echo "$as_me: failed program was:" >&5
4261 cat conftest.$ac_ext >&5
4262 ac_cv_type_off_t=no
4264 rm -f conftest.$ac_objext conftest.$ac_ext
4266 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
4267 echo "${ECHO_T}$ac_cv_type_off_t" >&6
4268 if test $ac_cv_type_off_t = yes; then
4270 else
4272 cat >>confdefs.h <<_ACEOF
4273 #define off_t long
4274 _ACEOF
4278 echo "$as_me:$LINENO: checking for void" >&5
4279 echo $ECHO_N "checking for void... $ECHO_C" >&6
4280 cat >conftest.$ac_ext <<_ACEOF
4281 #line $LINENO "configure"
4282 #include "confdefs.h"
4285 main ()
4287 void *foo = 0;
4289 return 0;
4291 _ACEOF
4292 rm -f conftest.$ac_objext
4293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4294 (eval $ac_compile) 2>&5
4295 ac_status=$?
4296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4297 (exit $ac_status); } &&
4298 { ac_try='test -s conftest.$ac_objext'
4299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4300 (eval $ac_try) 2>&5
4301 ac_status=$?
4302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4303 (exit $ac_status); }; }; then
4304 echo "$as_me:$LINENO: result: yes" >&5
4305 echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
4306 #define HAVE_VOID 1
4307 _ACEOF
4309 else
4310 echo "$as_me: failed program was:" >&5
4311 cat conftest.$ac_ext >&5
4312 echo "$as_me:$LINENO: result: no" >&5
4313 echo "${ECHO_T}no" >&6
4315 rm -f conftest.$ac_objext conftest.$ac_ext
4316 echo "$as_me:$LINENO: checking for const" >&5
4317 echo $ECHO_N "checking for const... $ECHO_C" >&6
4318 cat >conftest.$ac_ext <<_ACEOF
4319 #line $LINENO "configure"
4320 #include "confdefs.h"
4323 main ()
4325 const int foo = 0;
4327 return 0;
4329 _ACEOF
4330 rm -f conftest.$ac_objext
4331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4332 (eval $ac_compile) 2>&5
4333 ac_status=$?
4334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4335 (exit $ac_status); } &&
4336 { ac_try='test -s conftest.$ac_objext'
4337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4338 (eval $ac_try) 2>&5
4339 ac_status=$?
4340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4341 (exit $ac_status); }; }; then
4342 echo "$as_me:$LINENO: result: yes" >&5
4343 echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
4344 #define HAVE_CONST 1
4345 _ACEOF
4347 else
4348 echo "$as_me: failed program was:" >&5
4349 cat conftest.$ac_ext >&5
4350 echo "$as_me:$LINENO: result: no" >&5
4351 echo "${ECHO_T}no" >&6
4353 rm -f conftest.$ac_objext conftest.$ac_ext
4354 echo "$as_me:$LINENO: checking for time_t" >&5
4355 echo $ECHO_N "checking for time_t... $ECHO_C" >&6
4356 cat >conftest.$ac_ext <<_ACEOF
4357 #line $LINENO "configure"
4358 #include "confdefs.h"
4359 #include <time.h>
4361 main ()
4363 time_t t = 0;
4365 return 0;
4367 _ACEOF
4368 rm -f conftest.$ac_objext
4369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4370 (eval $ac_compile) 2>&5
4371 ac_status=$?
4372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4373 (exit $ac_status); } &&
4374 { ac_try='test -s conftest.$ac_objext'
4375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4376 (eval $ac_try) 2>&5
4377 ac_status=$?
4378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4379 (exit $ac_status); }; }; then
4380 echo "$as_me:$LINENO: result: yes" >&5
4381 echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
4382 #define HAVE_TIME_T 1
4383 _ACEOF
4385 else
4386 echo "$as_me: failed program was:" >&5
4387 cat conftest.$ac_ext >&5
4388 echo "$as_me:$LINENO: result: no" >&5
4389 echo "${ECHO_T}no" >&6
4391 rm -f conftest.$ac_objext conftest.$ac_ext
4393 # Checks for library functions.
4394 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
4395 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
4396 if test "${ac_cv_type_signal+set}" = set; then
4397 echo $ECHO_N "(cached) $ECHO_C" >&6
4398 else
4399 cat >conftest.$ac_ext <<_ACEOF
4400 #line $LINENO "configure"
4401 #include "confdefs.h"
4402 #include <sys/types.h>
4403 #include <signal.h>
4404 #ifdef signal
4405 # undef signal
4406 #endif
4407 #ifdef __cplusplus
4408 extern "C" void (*signal (int, void (*)(int)))(int);
4409 #else
4410 void (*signal ()) ();
4411 #endif
4414 main ()
4416 int i;
4418 return 0;
4420 _ACEOF
4421 rm -f conftest.$ac_objext
4422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4423 (eval $ac_compile) 2>&5
4424 ac_status=$?
4425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4426 (exit $ac_status); } &&
4427 { ac_try='test -s conftest.$ac_objext'
4428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4429 (eval $ac_try) 2>&5
4430 ac_status=$?
4431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4432 (exit $ac_status); }; }; then
4433 ac_cv_type_signal=void
4434 else
4435 echo "$as_me: failed program was:" >&5
4436 cat conftest.$ac_ext >&5
4437 ac_cv_type_signal=int
4439 rm -f conftest.$ac_objext conftest.$ac_ext
4441 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
4442 echo "${ECHO_T}$ac_cv_type_signal" >&6
4444 cat >>confdefs.h <<_ACEOF
4445 #define RETSIGTYPE $ac_cv_type_signal
4446 _ACEOF
4459 for ac_func in fsync memcpy popen _setjmp sigprocmask sigsetmask stat strchr strstr system
4461 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4462 echo "$as_me:$LINENO: checking for $ac_func" >&5
4463 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4464 if eval "test \"\${$as_ac_var+set}\" = set"; then
4465 echo $ECHO_N "(cached) $ECHO_C" >&6
4466 else
4467 cat >conftest.$ac_ext <<_ACEOF
4468 #line $LINENO "configure"
4469 #include "confdefs.h"
4470 /* System header to define __stub macros and hopefully few prototypes,
4471 which can conflict with char $ac_func (); below. */
4472 #include <assert.h>
4473 /* Override any gcc2 internal prototype to avoid an error. */
4474 #ifdef __cplusplus
4475 extern "C"
4476 #endif
4477 /* We use char because int might match the return type of a gcc2
4478 builtin and then its argument prototype would still apply. */
4479 char $ac_func ();
4480 char (*f) ();
4483 main ()
4485 /* The GNU C library defines this for functions which it implements
4486 to always fail with ENOSYS. Some functions are actually named
4487 something starting with __ and the normal name is an alias. */
4488 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4489 choke me
4490 #else
4491 f = $ac_func;
4492 #endif
4495 return 0;
4497 _ACEOF
4498 rm -f conftest.$ac_objext conftest$ac_exeext
4499 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4500 (eval $ac_link) 2>&5
4501 ac_status=$?
4502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4503 (exit $ac_status); } &&
4504 { ac_try='test -s conftest$ac_exeext'
4505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4506 (eval $ac_try) 2>&5
4507 ac_status=$?
4508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4509 (exit $ac_status); }; }; then
4510 eval "$as_ac_var=yes"
4511 else
4512 echo "$as_me: failed program was:" >&5
4513 cat conftest.$ac_ext >&5
4514 eval "$as_ac_var=no"
4516 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4518 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4519 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4520 if test `eval echo '${'$as_ac_var'}'` = yes; then
4521 cat >>confdefs.h <<_ACEOF
4522 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4523 _ACEOF
4526 done
4529 # Some systems have termios.h but not the corresponding functions.
4530 echo "$as_me:$LINENO: checking for tcgetattr" >&5
4531 echo $ECHO_N "checking for tcgetattr... $ECHO_C" >&6
4532 if test "${ac_cv_func_tcgetattr+set}" = set; then
4533 echo $ECHO_N "(cached) $ECHO_C" >&6
4534 else
4535 cat >conftest.$ac_ext <<_ACEOF
4536 #line $LINENO "configure"
4537 #include "confdefs.h"
4538 /* System header to define __stub macros and hopefully few prototypes,
4539 which can conflict with char tcgetattr (); below. */
4540 #include <assert.h>
4541 /* Override any gcc2 internal prototype to avoid an error. */
4542 #ifdef __cplusplus
4543 extern "C"
4544 #endif
4545 /* We use char because int might match the return type of a gcc2
4546 builtin and then its argument prototype would still apply. */
4547 char tcgetattr ();
4548 char (*f) ();
4551 main ()
4553 /* The GNU C library defines this for functions which it implements
4554 to always fail with ENOSYS. Some functions are actually named
4555 something starting with __ and the normal name is an alias. */
4556 #if defined (__stub_tcgetattr) || defined (__stub___tcgetattr)
4557 choke me
4558 #else
4559 f = tcgetattr;
4560 #endif
4563 return 0;
4565 _ACEOF
4566 rm -f conftest.$ac_objext conftest$ac_exeext
4567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4568 (eval $ac_link) 2>&5
4569 ac_status=$?
4570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4571 (exit $ac_status); } &&
4572 { ac_try='test -s conftest$ac_exeext'
4573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4574 (eval $ac_try) 2>&5
4575 ac_status=$?
4576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4577 (exit $ac_status); }; }; then
4578 ac_cv_func_tcgetattr=yes
4579 else
4580 echo "$as_me: failed program was:" >&5
4581 cat conftest.$ac_ext >&5
4582 ac_cv_func_tcgetattr=no
4584 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4586 echo "$as_me:$LINENO: result: $ac_cv_func_tcgetattr" >&5
4587 echo "${ECHO_T}$ac_cv_func_tcgetattr" >&6
4588 if test $ac_cv_func_tcgetattr = yes; then
4589 cat >>confdefs.h <<\_ACEOF
4590 #define HAVE_TERMIOS_FUNCS 1
4591 _ACEOF
4596 echo "$as_me:$LINENO: checking for fileno" >&5
4597 echo $ECHO_N "checking for fileno... $ECHO_C" >&6
4598 cat >conftest.$ac_ext <<_ACEOF
4599 #line $LINENO "configure"
4600 #include "confdefs.h"
4602 #if HAVE_STDIO_H
4603 #include <stdio.h>
4604 #endif
4606 main ()
4608 static int x; x = fileno(stdin);
4610 return 0;
4612 _ACEOF
4613 rm -f conftest.$ac_objext conftest$ac_exeext
4614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4615 (eval $ac_link) 2>&5
4616 ac_status=$?
4617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4618 (exit $ac_status); } &&
4619 { ac_try='test -s conftest$ac_exeext'
4620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4621 (eval $ac_try) 2>&5
4622 ac_status=$?
4623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4624 (exit $ac_status); }; }; then
4625 echo "$as_me:$LINENO: result: yes" >&5
4626 echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
4627 #define HAVE_FILENO 1
4628 _ACEOF
4630 else
4631 echo "$as_me: failed program was:" >&5
4632 cat conftest.$ac_ext >&5
4633 echo "$as_me:$LINENO: result: no" >&5
4634 echo "${ECHO_T}no" >&6
4636 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4638 echo "$as_me:$LINENO: checking for strerror" >&5
4639 echo $ECHO_N "checking for strerror... $ECHO_C" >&6
4640 cat >conftest.$ac_ext <<_ACEOF
4641 #line $LINENO "configure"
4642 #include "confdefs.h"
4644 #if HAVE_STDIO_H
4645 #include <stdio.h>
4646 #endif
4647 #if HAVE_STRING_H
4648 #include <string.h>
4649 #endif
4650 #if HAVE_ERRNO_H
4651 #include <errno.h>
4652 #endif
4654 main ()
4656 static char *x; x = strerror(0);
4658 return 0;
4660 _ACEOF
4661 rm -f conftest.$ac_objext conftest$ac_exeext
4662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4663 (eval $ac_link) 2>&5
4664 ac_status=$?
4665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4666 (exit $ac_status); } &&
4667 { ac_try='test -s conftest$ac_exeext'
4668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4669 (eval $ac_try) 2>&5
4670 ac_status=$?
4671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4672 (exit $ac_status); }; }; then
4673 echo "$as_me:$LINENO: result: yes" >&5
4674 echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
4675 #define HAVE_STRERROR 1
4676 _ACEOF
4678 else
4679 echo "$as_me: failed program was:" >&5
4680 cat conftest.$ac_ext >&5
4681 echo "$as_me:$LINENO: result: no" >&5
4682 echo "${ECHO_T}no" >&6
4684 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4686 echo "$as_me:$LINENO: checking for sys_errlist" >&5
4687 echo $ECHO_N "checking for sys_errlist... $ECHO_C" >&6
4688 cat >conftest.$ac_ext <<_ACEOF
4689 #line $LINENO "configure"
4690 #include "confdefs.h"
4693 main ()
4695 extern char *sys_errlist[]; static char **x; x = sys_errlist;
4697 return 0;
4699 _ACEOF
4700 rm -f conftest.$ac_objext conftest$ac_exeext
4701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4702 (eval $ac_link) 2>&5
4703 ac_status=$?
4704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4705 (exit $ac_status); } &&
4706 { ac_try='test -s conftest$ac_exeext'
4707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4708 (eval $ac_try) 2>&5
4709 ac_status=$?
4710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4711 (exit $ac_status); }; }; then
4712 echo "$as_me:$LINENO: result: yes" >&5
4713 echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
4714 #define HAVE_SYS_ERRLIST 1
4715 _ACEOF
4717 else
4718 echo "$as_me: failed program was:" >&5
4719 cat conftest.$ac_ext >&5
4720 echo "$as_me:$LINENO: result: no" >&5
4721 echo "${ECHO_T}no" >&6
4723 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4725 echo "$as_me:$LINENO: checking for sigset_t" >&5
4726 echo $ECHO_N "checking for sigset_t... $ECHO_C" >&6
4727 cat >conftest.$ac_ext <<_ACEOF
4728 #line $LINENO "configure"
4729 #include "confdefs.h"
4731 #include <signal.h>
4734 main ()
4736 sigset_t s; s = 0;
4738 return 0;
4740 _ACEOF
4741 rm -f conftest.$ac_objext conftest$ac_exeext
4742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4743 (eval $ac_link) 2>&5
4744 ac_status=$?
4745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4746 (exit $ac_status); } &&
4747 { ac_try='test -s conftest$ac_exeext'
4748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4749 (eval $ac_try) 2>&5
4750 ac_status=$?
4751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4752 (exit $ac_status); }; }; then
4753 echo "$as_me:$LINENO: result: yes" >&5
4754 echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
4755 #define HAVE_SIGSET_T 1
4756 _ACEOF
4758 else
4759 echo "$as_me: failed program was:" >&5
4760 cat conftest.$ac_ext >&5
4761 echo "$as_me:$LINENO: result: no" >&5
4762 echo "${ECHO_T}no" >&6
4764 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4766 echo "$as_me:$LINENO: checking for sigemptyset" >&5
4767 echo $ECHO_N "checking for sigemptyset... $ECHO_C" >&6
4768 cat >conftest.$ac_ext <<_ACEOF
4769 #line $LINENO "configure"
4770 #include "confdefs.h"
4772 #include <signal.h>
4775 main ()
4777 sigset_t s; sigemptyset(&s);
4779 return 0;
4781 _ACEOF
4782 rm -f conftest.$ac_objext conftest$ac_exeext
4783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4784 (eval $ac_link) 2>&5
4785 ac_status=$?
4786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4787 (exit $ac_status); } &&
4788 { ac_try='test -s conftest$ac_exeext'
4789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4790 (eval $ac_try) 2>&5
4791 ac_status=$?
4792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4793 (exit $ac_status); }; }; then
4794 echo "$as_me:$LINENO: result: yes" >&5
4795 echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
4796 #define HAVE_SIGEMPTYSET 1
4797 _ACEOF
4799 else
4800 echo "$as_me: failed program was:" >&5
4801 cat conftest.$ac_ext >&5
4802 echo "$as_me:$LINENO: result: no" >&5
4803 echo "${ECHO_T}no" >&6
4805 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4807 have_errno=no
4808 echo "$as_me:$LINENO: checking for errno" >&5
4809 echo $ECHO_N "checking for errno... $ECHO_C" >&6
4810 cat >conftest.$ac_ext <<_ACEOF
4811 #line $LINENO "configure"
4812 #include "confdefs.h"
4814 #if HAVE_ERRNO_H
4815 #include <errno.h>
4816 #endif
4818 main ()
4820 static int x; x = errno;
4822 return 0;
4824 _ACEOF
4825 rm -f conftest.$ac_objext conftest$ac_exeext
4826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4827 (eval $ac_link) 2>&5
4828 ac_status=$?
4829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4830 (exit $ac_status); } &&
4831 { ac_try='test -s conftest$ac_exeext'
4832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4833 (eval $ac_try) 2>&5
4834 ac_status=$?
4835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4836 (exit $ac_status); }; }; then
4837 echo "$as_me:$LINENO: result: yes - in errno.h" >&5
4838 echo "${ECHO_T}yes - in errno.h" >&6; cat >>confdefs.h <<\_ACEOF
4839 #define HAVE_ERRNO 1
4840 _ACEOF
4841 have_errno=yes
4842 else
4843 echo "$as_me: failed program was:" >&5
4844 cat conftest.$ac_ext >&5
4846 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4847 if test $have_errno = no; then
4848 cat >conftest.$ac_ext <<_ACEOF
4849 #line $LINENO "configure"
4850 #include "confdefs.h"
4852 #if HAVE_ERRNO_H
4853 #include <errno.h>
4854 #endif
4856 main ()
4858 extern int errno; static int x; x = errno;
4860 return 0;
4862 _ACEOF
4863 rm -f conftest.$ac_objext conftest$ac_exeext
4864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4865 (eval $ac_link) 2>&5
4866 ac_status=$?
4867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4868 (exit $ac_status); } &&
4869 { ac_try='test -s conftest$ac_exeext'
4870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4871 (eval $ac_try) 2>&5
4872 ac_status=$?
4873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4874 (exit $ac_status); }; }; then
4875 echo "$as_me:$LINENO: result: yes - must define" >&5
4876 echo "${ECHO_T}yes - must define" >&6; cat >>confdefs.h <<\_ACEOF
4877 #define HAVE_ERRNO 1
4878 _ACEOF
4879 cat >>confdefs.h <<\_ACEOF
4880 #define MUST_DEFINE_ERRNO 1
4881 _ACEOF
4883 else
4884 echo "$as_me: failed program was:" >&5
4885 cat conftest.$ac_ext >&5
4886 echo "$as_me:$LINENO: result: no" >&5
4887 echo "${ECHO_T}no" >&6
4889 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4892 echo "$as_me:$LINENO: checking for locale" >&5
4893 echo $ECHO_N "checking for locale... $ECHO_C" >&6
4894 cat >conftest.$ac_ext <<_ACEOF
4895 #line $LINENO "configure"
4896 #include "confdefs.h"
4897 #include <locale.h>
4898 #include <ctype.h>
4900 main ()
4902 setlocale(LC_CTYPE,""); isprint(0); iscntrl(0);
4904 return 0;
4906 _ACEOF
4907 rm -f conftest.$ac_objext conftest$ac_exeext
4908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4909 (eval $ac_link) 2>&5
4910 ac_status=$?
4911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4912 (exit $ac_status); } &&
4913 { ac_try='test -s conftest$ac_exeext'
4914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4915 (eval $ac_try) 2>&5
4916 ac_status=$?
4917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4918 (exit $ac_status); }; }; then
4919 echo "$as_me:$LINENO: result: yes" >&5
4920 echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
4921 #define HAVE_LOCALE 1
4922 _ACEOF
4924 else
4925 echo "$as_me: failed program was:" >&5
4926 cat conftest.$ac_ext >&5
4927 echo "$as_me:$LINENO: result: no" >&5
4928 echo "${ECHO_T}no" >&6
4930 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4931 echo "$as_me:$LINENO: checking for ctype functions" >&5
4932 echo $ECHO_N "checking for ctype functions... $ECHO_C" >&6
4933 cat >conftest.$ac_ext <<_ACEOF
4934 #line $LINENO "configure"
4935 #include "confdefs.h"
4937 #if HAVE_CTYPE_H
4938 #include <ctype.h>
4939 #endif
4941 main ()
4943 static int x; x = isupper(x); x = tolower(x); x = toupper(x);
4945 return 0;
4947 _ACEOF
4948 rm -f conftest.$ac_objext conftest$ac_exeext
4949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4950 (eval $ac_link) 2>&5
4951 ac_status=$?
4952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4953 (exit $ac_status); } &&
4954 { ac_try='test -s conftest$ac_exeext'
4955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4956 (eval $ac_try) 2>&5
4957 ac_status=$?
4958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4959 (exit $ac_status); }; }; then
4960 echo "$as_me:$LINENO: result: yes" >&5
4961 echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
4962 #define HAVE_UPPER_LOWER 1
4963 _ACEOF
4965 else
4966 echo "$as_me: failed program was:" >&5
4967 cat conftest.$ac_ext >&5
4968 echo "$as_me:$LINENO: result: no" >&5
4969 echo "${ECHO_T}no" >&6
4971 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4973 # Checks for external variable ospeed in the termcap library.
4974 have_ospeed=no
4975 echo "$as_me:$LINENO: checking termcap for ospeed" >&5
4976 echo $ECHO_N "checking termcap for ospeed... $ECHO_C" >&6
4977 cat >conftest.$ac_ext <<_ACEOF
4978 #line $LINENO "configure"
4979 #include "confdefs.h"
4981 #include <sys/types.h>
4982 #if HAVE_TERMIOS_H
4983 #include <termios.h>
4984 #endif
4985 #if HAVE_TERMCAP_H
4986 #include <termcap.h>
4987 #endif
4989 main ()
4991 ospeed = 0;
4993 return 0;
4995 _ACEOF
4996 rm -f conftest.$ac_objext conftest$ac_exeext
4997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4998 (eval $ac_link) 2>&5
4999 ac_status=$?
5000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5001 (exit $ac_status); } &&
5002 { ac_try='test -s conftest$ac_exeext'
5003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5004 (eval $ac_try) 2>&5
5005 ac_status=$?
5006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5007 (exit $ac_status); }; }; then
5008 echo "$as_me:$LINENO: result: yes - in termcap.h" >&5
5009 echo "${ECHO_T}yes - in termcap.h" >&6; cat >>confdefs.h <<\_ACEOF
5010 #define HAVE_OSPEED 1
5011 _ACEOF
5012 have_ospeed=yes
5013 else
5014 echo "$as_me: failed program was:" >&5
5015 cat conftest.$ac_ext >&5
5017 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5018 if test $have_ospeed = no; then
5019 cat >conftest.$ac_ext <<_ACEOF
5020 #line $LINENO "configure"
5021 #include "confdefs.h"
5024 main ()
5026 extern short ospeed; ospeed = 0;
5028 return 0;
5030 _ACEOF
5031 rm -f conftest.$ac_objext conftest$ac_exeext
5032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5033 (eval $ac_link) 2>&5
5034 ac_status=$?
5035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5036 (exit $ac_status); } &&
5037 { ac_try='test -s conftest$ac_exeext'
5038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5039 (eval $ac_try) 2>&5
5040 ac_status=$?
5041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5042 (exit $ac_status); }; }; then
5043 echo "$as_me:$LINENO: result: yes - must define" >&5
5044 echo "${ECHO_T}yes - must define" >&6; cat >>confdefs.h <<\_ACEOF
5045 #define HAVE_OSPEED 1
5046 _ACEOF
5047 cat >>confdefs.h <<\_ACEOF
5048 #define MUST_DEFINE_OSPEED 1
5049 _ACEOF
5051 else
5052 echo "$as_me: failed program was:" >&5
5053 cat conftest.$ac_ext >&5
5054 echo "$as_me:$LINENO: result: no" >&5
5055 echo "${ECHO_T}no" >&6
5057 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5060 # Checks for regular expression functions.
5061 have_regex=no
5062 have_posix_regex=unknown
5063 echo "$as_me:$LINENO: checking for regcomp" >&5
5064 echo $ECHO_N "checking for regcomp... $ECHO_C" >&6
5066 WANT_REGEX=auto
5068 # Check whether --with-regex or --without-regex was given.
5069 if test "${with_regex+set}" = set; then
5070 withval="$with_regex"
5071 WANT_REGEX="$withval"
5074 if test $have_regex = no; then
5075 if test $WANT_REGEX = auto -o $WANT_REGEX = posix; then
5076 # Some versions of Solaris have a regcomp() function, but it doesn't work!
5077 # So we run a test program. If we're cross-compiling, do it the old way.
5078 if test "$cross_compiling" = yes; then
5079 have_posix_regex=unknown
5080 else
5081 cat >conftest.$ac_ext <<_ACEOF
5082 #line $LINENO "configure"
5083 #include "confdefs.h"
5085 #include <sys/types.h>
5086 #include <regex.h>
5087 main() { regex_t r; regmatch_t rm; char *text = "xabcy";
5088 if (regcomp(&r, "abc", 0)) exit(1);
5089 if (regexec(&r, text, 1, &rm, 0)) exit(1);
5090 #ifndef __WATCOMC__
5091 if (rm.rm_so != 1) exit(1); /* check for correct offset */
5092 #else
5093 if (rm.rm_sp != text + 1) exit(1); /* check for correct offset */
5094 #endif
5095 exit(0); }
5096 _ACEOF
5097 rm -f conftest$ac_exeext
5098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5099 (eval $ac_link) 2>&5
5100 ac_status=$?
5101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5102 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5104 (eval $ac_try) 2>&5
5105 ac_status=$?
5106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5107 (exit $ac_status); }; }; then
5108 have_posix_regex=yes
5109 else
5110 echo "$as_me: program exited with status $ac_status" >&5
5111 echo "$as_me: failed program was:" >&5
5112 cat conftest.$ac_ext >&5
5113 ( exit $ac_status )
5114 have_posix_regex=no
5116 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5118 if test $have_posix_regex = yes; then
5119 echo "$as_me:$LINENO: result: using POSIX regcomp" >&5
5120 echo "${ECHO_T}using POSIX regcomp" >&6
5121 cat >>confdefs.h <<\_ACEOF
5122 #define HAVE_POSIX_REGCOMP 1
5123 _ACEOF
5125 have_regex=yes
5126 elif test $have_posix_regex = unknown; then
5127 cat >conftest.$ac_ext <<_ACEOF
5128 #line $LINENO "configure"
5129 #include "confdefs.h"
5131 #include <sys/types.h>
5132 #include <regex.h>
5134 main ()
5136 regex_t *r; regfree(r);
5138 return 0;
5140 _ACEOF
5141 rm -f conftest.$ac_objext conftest$ac_exeext
5142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5143 (eval $ac_link) 2>&5
5144 ac_status=$?
5145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5146 (exit $ac_status); } &&
5147 { ac_try='test -s conftest$ac_exeext'
5148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5149 (eval $ac_try) 2>&5
5150 ac_status=$?
5151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5152 (exit $ac_status); }; }; then
5153 echo "$as_me:$LINENO: result: using POSIX regcomp" >&5
5154 echo "${ECHO_T}using POSIX regcomp" >&6
5155 cat >>confdefs.h <<\_ACEOF
5156 #define HAVE_POSIX_REGCOMP 1
5157 _ACEOF
5158 have_regex=yes
5159 else
5160 echo "$as_me: failed program was:" >&5
5161 cat conftest.$ac_ext >&5
5163 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5164 else
5165 echo "$as_me:$LINENO: result: no" >&5
5166 echo "${ECHO_T}no" >&6
5171 if test $have_regex = no; then
5172 if test $WANT_REGEX = auto -o $WANT_REGEX = pcre; then
5173 echo "$as_me:$LINENO: checking for pcre_compile in -lpcre" >&5
5174 echo $ECHO_N "checking for pcre_compile in -lpcre... $ECHO_C" >&6
5175 if test "${ac_cv_lib_pcre_pcre_compile+set}" = set; then
5176 echo $ECHO_N "(cached) $ECHO_C" >&6
5177 else
5178 ac_check_lib_save_LIBS=$LIBS
5179 LIBS="-lpcre $LIBS"
5180 cat >conftest.$ac_ext <<_ACEOF
5181 #line $LINENO "configure"
5182 #include "confdefs.h"
5184 /* Override any gcc2 internal prototype to avoid an error. */
5185 #ifdef __cplusplus
5186 extern "C"
5187 #endif
5188 /* We use char because int might match the return type of a gcc2
5189 builtin and then its argument prototype would still apply. */
5190 char pcre_compile ();
5192 main ()
5194 pcre_compile ();
5196 return 0;
5198 _ACEOF
5199 rm -f conftest.$ac_objext conftest$ac_exeext
5200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5201 (eval $ac_link) 2>&5
5202 ac_status=$?
5203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5204 (exit $ac_status); } &&
5205 { ac_try='test -s conftest$ac_exeext'
5206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5207 (eval $ac_try) 2>&5
5208 ac_status=$?
5209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5210 (exit $ac_status); }; }; then
5211 ac_cv_lib_pcre_pcre_compile=yes
5212 else
5213 echo "$as_me: failed program was:" >&5
5214 cat conftest.$ac_ext >&5
5215 ac_cv_lib_pcre_pcre_compile=no
5217 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5218 LIBS=$ac_check_lib_save_LIBS
5220 echo "$as_me:$LINENO: result: $ac_cv_lib_pcre_pcre_compile" >&5
5221 echo "${ECHO_T}$ac_cv_lib_pcre_pcre_compile" >&6
5222 if test $ac_cv_lib_pcre_pcre_compile = yes; then
5223 echo "$as_me:$LINENO: result: using pcre" >&5
5224 echo "${ECHO_T}using pcre" >&6; cat >>confdefs.h <<\_ACEOF
5225 #define HAVE_PCRE 1
5226 _ACEOF
5227 LIBS="$LIBS -lpcre" have_regex=yes
5233 if test $have_regex = no; then
5234 if test $WANT_REGEX = auto -o $WANT_REGEX = regcmp; then
5235 echo "$as_me:$LINENO: checking for regcmp" >&5
5236 echo $ECHO_N "checking for regcmp... $ECHO_C" >&6
5237 if test "${ac_cv_func_regcmp+set}" = set; then
5238 echo $ECHO_N "(cached) $ECHO_C" >&6
5239 else
5240 cat >conftest.$ac_ext <<_ACEOF
5241 #line $LINENO "configure"
5242 #include "confdefs.h"
5243 /* System header to define __stub macros and hopefully few prototypes,
5244 which can conflict with char regcmp (); below. */
5245 #include <assert.h>
5246 /* Override any gcc2 internal prototype to avoid an error. */
5247 #ifdef __cplusplus
5248 extern "C"
5249 #endif
5250 /* We use char because int might match the return type of a gcc2
5251 builtin and then its argument prototype would still apply. */
5252 char regcmp ();
5253 char (*f) ();
5256 main ()
5258 /* The GNU C library defines this for functions which it implements
5259 to always fail with ENOSYS. Some functions are actually named
5260 something starting with __ and the normal name is an alias. */
5261 #if defined (__stub_regcmp) || defined (__stub___regcmp)
5262 choke me
5263 #else
5264 f = regcmp;
5265 #endif
5268 return 0;
5270 _ACEOF
5271 rm -f conftest.$ac_objext conftest$ac_exeext
5272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5273 (eval $ac_link) 2>&5
5274 ac_status=$?
5275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5276 (exit $ac_status); } &&
5277 { ac_try='test -s conftest$ac_exeext'
5278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5279 (eval $ac_try) 2>&5
5280 ac_status=$?
5281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5282 (exit $ac_status); }; }; then
5283 ac_cv_func_regcmp=yes
5284 else
5285 echo "$as_me: failed program was:" >&5
5286 cat conftest.$ac_ext >&5
5287 ac_cv_func_regcmp=no
5289 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5291 echo "$as_me:$LINENO: result: $ac_cv_func_regcmp" >&5
5292 echo "${ECHO_T}$ac_cv_func_regcmp" >&6
5293 if test $ac_cv_func_regcmp = yes; then
5294 echo "$as_me:$LINENO: result: using regcmp" >&5
5295 echo "${ECHO_T}using regcmp" >&6; cat >>confdefs.h <<\_ACEOF
5296 #define HAVE_REGCMP 1
5297 _ACEOF
5298 have_regex=yes
5304 if test $have_regex = no; then
5305 if test $WANT_REGEX = auto -o $WANT_REGEX = regcomp; then
5306 cat >conftest.$ac_ext <<_ACEOF
5307 #line $LINENO "configure"
5308 #include "confdefs.h"
5310 #include "regexp.h"
5312 main ()
5314 regcomp("");
5316 return 0;
5318 _ACEOF
5319 rm -f conftest.$ac_objext conftest$ac_exeext
5320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5321 (eval $ac_link) 2>&5
5322 ac_status=$?
5323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5324 (exit $ac_status); } &&
5325 { ac_try='test -s conftest$ac_exeext'
5326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5327 (eval $ac_try) 2>&5
5328 ac_status=$?
5329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5330 (exit $ac_status); }; }; then
5331 echo "$as_me:$LINENO: result: using V8 regcomp" >&5
5332 echo "${ECHO_T}using V8 regcomp" >&6; cat >>confdefs.h <<\_ACEOF
5333 #define HAVE_V8_REGCOMP 1
5334 _ACEOF
5335 have_regex=yes
5336 else
5337 echo "$as_me: failed program was:" >&5
5338 cat conftest.$ac_ext >&5
5340 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5344 if test $have_regex = no && test -f ${srcdir}/regexp.c; then
5345 if test $WANT_REGEX = auto -o $WANT_REGEX = regcomp-local; then
5346 echo "$as_me:$LINENO: result: using V8 regcomp -- local source" >&5
5347 echo "${ECHO_T}using V8 regcomp -- local source" >&6; cat >>confdefs.h <<\_ACEOF
5348 #define HAVE_V8_REGCOMP 1
5349 _ACEOF
5350 cat >>confdefs.h <<\_ACEOF
5351 #define HAVE_REGEXEC2 1
5352 _ACEOF
5353 REGEX_O='regexp.$(O)' have_regex=yes
5357 if test $have_regex = no; then
5358 if test $WANT_REGEX = auto -o $WANT_REGEX = re_comp; then
5359 echo "$as_me:$LINENO: result: using re_comp" >&5
5360 echo "${ECHO_T}using re_comp" >&6; echo "$as_me:$LINENO: checking for re_comp" >&5
5361 echo $ECHO_N "checking for re_comp... $ECHO_C" >&6
5362 if test "${ac_cv_func_re_comp+set}" = set; then
5363 echo $ECHO_N "(cached) $ECHO_C" >&6
5364 else
5365 cat >conftest.$ac_ext <<_ACEOF
5366 #line $LINENO "configure"
5367 #include "confdefs.h"
5368 /* System header to define __stub macros and hopefully few prototypes,
5369 which can conflict with char re_comp (); below. */
5370 #include <assert.h>
5371 /* Override any gcc2 internal prototype to avoid an error. */
5372 #ifdef __cplusplus
5373 extern "C"
5374 #endif
5375 /* We use char because int might match the return type of a gcc2
5376 builtin and then its argument prototype would still apply. */
5377 char re_comp ();
5378 char (*f) ();
5381 main ()
5383 /* The GNU C library defines this for functions which it implements
5384 to always fail with ENOSYS. Some functions are actually named
5385 something starting with __ and the normal name is an alias. */
5386 #if defined (__stub_re_comp) || defined (__stub___re_comp)
5387 choke me
5388 #else
5389 f = re_comp;
5390 #endif
5393 return 0;
5395 _ACEOF
5396 rm -f conftest.$ac_objext conftest$ac_exeext
5397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5398 (eval $ac_link) 2>&5
5399 ac_status=$?
5400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5401 (exit $ac_status); } &&
5402 { ac_try='test -s conftest$ac_exeext'
5403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5404 (eval $ac_try) 2>&5
5405 ac_status=$?
5406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5407 (exit $ac_status); }; }; then
5408 ac_cv_func_re_comp=yes
5409 else
5410 echo "$as_me: failed program was:" >&5
5411 cat conftest.$ac_ext >&5
5412 ac_cv_func_re_comp=no
5414 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5416 echo "$as_me:$LINENO: result: $ac_cv_func_re_comp" >&5
5417 echo "${ECHO_T}$ac_cv_func_re_comp" >&6
5418 if test $ac_cv_func_re_comp = yes; then
5419 cat >>confdefs.h <<\_ACEOF
5420 #define HAVE_RE_COMP 1
5421 _ACEOF
5422 have_regex=yes
5428 if test $have_regex = no; then
5429 echo "$as_me:$LINENO: result: cannot find regular expression library" >&5
5430 echo "${ECHO_T}cannot find regular expression library" >&6; cat >>confdefs.h <<\_ACEOF
5431 #define NO_REGEX 1
5432 _ACEOF
5437 # Check whether --with-editor or --without-editor was given.
5438 if test "${with_editor+set}" = set; then
5439 withval="$with_editor"
5440 cat >>confdefs.h <<_ACEOF
5441 #define EDIT_PGM "$withval"
5442 _ACEOF
5444 else
5445 cat >>confdefs.h <<\_ACEOF
5446 #define EDIT_PGM "vi"
5447 _ACEOF
5454 ac_config_files="$ac_config_files Makefile"
5456 cat >confcache <<\_ACEOF
5457 # This file is a shell script that caches the results of configure
5458 # tests run on this system so they can be shared between configure
5459 # scripts and configure runs, see configure's option --config-cache.
5460 # It is not useful on other systems. If it contains results you don't
5461 # want to keep, you may remove or edit it.
5463 # config.status only pays attention to the cache file if you give it
5464 # the --recheck option to rerun configure.
5466 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5467 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5468 # following values.
5470 _ACEOF
5472 # The following way of writing the cache mishandles newlines in values,
5473 # but we know of no workaround that is simple, portable, and efficient.
5474 # So, don't put newlines in cache variables' values.
5475 # Ultrix sh set writes to stderr and can't be redirected directly,
5476 # and sets the high bit in the cache file unless we assign to the vars.
5478 (set) 2>&1 |
5479 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5480 *ac_space=\ *)
5481 # `set' does not quote correctly, so add quotes (double-quote
5482 # substitution turns \\\\ into \\, and sed turns \\ into \).
5483 sed -n \
5484 "s/'/'\\\\''/g;
5485 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5488 # `set' quotes correctly as required by POSIX, so do not add quotes.
5489 sed -n \
5490 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5492 esac;
5494 sed '
5495 t clear
5496 : clear
5497 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5498 t end
5499 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5500 : end' >>confcache
5501 if cmp -s $cache_file confcache; then :; else
5502 if test -w $cache_file; then
5503 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5504 cat confcache >$cache_file
5505 else
5506 echo "not updating unwritable cache $cache_file"
5509 rm -f confcache
5511 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5512 # Let make expand exec_prefix.
5513 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5515 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5516 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5517 # trailing colons and then remove the whole line if VPATH becomes empty
5518 # (actually we leave an empty line to preserve line numbers).
5519 if test "x$srcdir" = x.; then
5520 ac_vpsub='/^[ ]*VPATH[ ]*=/{
5521 s/:*\$(srcdir):*/:/;
5522 s/:*\${srcdir}:*/:/;
5523 s/:*@srcdir@:*/:/;
5524 s/^\([^=]*=[ ]*\):*/\1/;
5525 s/:*$//;
5526 s/^[^=]*=[ ]*$//;
5530 DEFS=-DHAVE_CONFIG_H
5532 ac_libobjs=
5533 ac_ltlibobjs=
5534 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5535 # 1. Remove the extension, and $U if already installed.
5536 ac_i=`echo "$ac_i" |
5537 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
5538 # 2. Add them.
5539 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
5540 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
5541 done
5542 LIBOBJS=$ac_libobjs
5544 LTLIBOBJS=$ac_ltlibobjs
5548 : ${CONFIG_STATUS=./config.status}
5549 ac_clean_files_save=$ac_clean_files
5550 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5551 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5552 echo "$as_me: creating $CONFIG_STATUS" >&6;}
5553 cat >$CONFIG_STATUS <<_ACEOF
5554 #! $SHELL
5555 # Generated by $as_me.
5556 # Run this file to recreate the current configuration.
5557 # Compiler output produced by configure, useful for debugging
5558 # configure, is in config.log if it exists.
5560 debug=false
5561 SHELL=\${CONFIG_SHELL-$SHELL}
5562 _ACEOF
5564 cat >>$CONFIG_STATUS <<\_ACEOF
5565 ## --------------------- ##
5566 ## M4sh Initialization. ##
5567 ## --------------------- ##
5569 # Be Bourne compatible
5570 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5571 emulate sh
5572 NULLCMD=:
5573 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5574 # is contrary to our usage. Disable this feature.
5575 alias -g '${1+"$@"}'='"$@"'
5576 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5577 set -o posix
5580 # Support unset when possible.
5581 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
5582 as_unset=unset
5583 else
5584 as_unset=false
5588 # Work around bugs in pre-3.0 UWIN ksh.
5589 $as_unset ENV MAIL MAILPATH
5590 PS1='$ '
5591 PS2='> '
5592 PS4='+ '
5594 # NLS nuisances.
5595 for as_var in LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_NUMERIC LC_MESSAGES LC_TIME
5597 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
5598 eval $as_var=C; export $as_var
5599 else
5600 $as_unset $as_var
5602 done
5604 # Required to use basename.
5605 if expr a : '\(a\)' >/dev/null 2>&1; then
5606 as_expr=expr
5607 else
5608 as_expr=false
5611 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
5612 as_basename=basename
5613 else
5614 as_basename=false
5618 # Name of the executable.
5619 as_me=`$as_basename "$0" ||
5620 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5621 X"$0" : 'X\(//\)$' \| \
5622 X"$0" : 'X\(/\)$' \| \
5623 . : '\(.\)' 2>/dev/null ||
5624 echo X/"$0" |
5625 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5626 /^X\/\(\/\/\)$/{ s//\1/; q; }
5627 /^X\/\(\/\).*/{ s//\1/; q; }
5628 s/.*/./; q'`
5631 # PATH needs CR, and LINENO needs CR and PATH.
5632 # Avoid depending upon Character Ranges.
5633 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5634 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5635 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5636 as_cr_digits='0123456789'
5637 as_cr_alnum=$as_cr_Letters$as_cr_digits
5639 # The user is always right.
5640 if test "${PATH_SEPARATOR+set}" != set; then
5641 echo "#! /bin/sh" >conftest.sh
5642 echo "exit 0" >>conftest.sh
5643 chmod +x conftest.sh
5644 if (PATH="/nonexistent;."; conftest.sh) >/dev/null 2>&1; then
5645 PATH_SEPARATOR=';'
5646 else
5647 PATH_SEPARATOR=:
5649 rm -f conftest.sh
5653 as_lineno_1=$LINENO
5654 as_lineno_2=$LINENO
5655 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5656 test "x$as_lineno_1" != "x$as_lineno_2" &&
5657 test "x$as_lineno_3" = "x$as_lineno_2" || {
5658 # Find who we are. Look in the path if we contain no path at all
5659 # relative or not.
5660 case $0 in
5661 *[\\/]* ) as_myself=$0 ;;
5662 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5663 for as_dir in $PATH
5665 IFS=$as_save_IFS
5666 test -z "$as_dir" && as_dir=.
5667 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5668 done
5671 esac
5672 # We did not find ourselves, most probably we were run as `sh COMMAND'
5673 # in which case we are not to be found in the path.
5674 if test "x$as_myself" = x; then
5675 as_myself=$0
5677 if test ! -f "$as_myself"; then
5678 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
5679 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
5680 { (exit 1); exit 1; }; }
5682 case $CONFIG_SHELL in
5684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5685 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5687 IFS=$as_save_IFS
5688 test -z "$as_dir" && as_dir=.
5689 for as_base in sh bash ksh sh5; do
5690 case $as_dir in
5692 if ("$as_dir/$as_base" -c '
5693 as_lineno_1=$LINENO
5694 as_lineno_2=$LINENO
5695 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5696 test "x$as_lineno_1" != "x$as_lineno_2" &&
5697 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
5698 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
5699 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
5700 CONFIG_SHELL=$as_dir/$as_base
5701 export CONFIG_SHELL
5702 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
5703 fi;;
5704 esac
5705 done
5706 done
5708 esac
5710 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5711 # uniformly replaced by the line number. The first 'sed' inserts a
5712 # line-number line before each line; the second 'sed' does the real
5713 # work. The second script uses 'N' to pair each line-number line
5714 # with the numbered line, and appends trailing '-' during
5715 # substitution so that $LINENO is not a special case at line end.
5716 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5717 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
5718 sed '=' <$as_myself |
5719 sed '
5721 s,$,-,
5722 : loop
5723 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5724 t loop
5725 s,-$,,
5726 s,^['$as_cr_digits']*\n,,
5727 ' >$as_me.lineno &&
5728 chmod +x $as_me.lineno ||
5729 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
5730 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
5731 { (exit 1); exit 1; }; }
5733 # Don't try to exec as it changes $[0], causing all sort of problems
5734 # (the dirname of $[0] is not the place where we might find the
5735 # original and so on. Autoconf is especially sensible to this).
5736 . ./$as_me.lineno
5737 # Exit status is that of the last command.
5738 exit
5742 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
5743 *c*,-n*) ECHO_N= ECHO_C='
5744 ' ECHO_T=' ' ;;
5745 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
5746 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
5747 esac
5749 if expr a : '\(a\)' >/dev/null 2>&1; then
5750 as_expr=expr
5751 else
5752 as_expr=false
5755 rm -f conf$$ conf$$.exe conf$$.file
5756 echo >conf$$.file
5757 if ln -s conf$$.file conf$$ 2>/dev/null; then
5758 # We could just check for DJGPP; but this test a) works b) is more generic
5759 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5760 if test -f conf$$.exe; then
5761 # Don't use ln at all; we don't have any links
5762 as_ln_s='cp -p'
5763 else
5764 as_ln_s='ln -s'
5766 elif ln conf$$.file conf$$ 2>/dev/null; then
5767 as_ln_s=ln
5768 else
5769 as_ln_s='cp -p'
5771 rm -f conf$$ conf$$.exe conf$$.file
5773 if mkdir -p . 2>/dev/null; then
5774 as_mkdir_p=:
5775 else
5776 as_mkdir_p=false
5779 as_executable_p="test -f"
5781 # Sed expression to map a string onto a valid CPP name.
5782 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
5784 # Sed expression to map a string onto a valid variable name.
5785 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
5788 # IFS
5789 # We need space, tab and new line, in precisely that order.
5790 as_nl='
5792 IFS=" $as_nl"
5794 # CDPATH.
5795 $as_unset CDPATH
5797 exec 6>&1
5799 # Open the log real soon, to keep \$[0] and so on meaningful, and to
5800 # report actual input values of CONFIG_FILES etc. instead of their
5801 # values after options handling. Logging --version etc. is OK.
5802 exec 5>>config.log
5804 echo
5805 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5806 ## Running $as_me. ##
5807 _ASBOX
5808 } >&5
5809 cat >&5 <<_CSEOF
5811 This file was extended by less $as_me 1, which was
5812 generated by GNU Autoconf 2.54. Invocation command line was
5814 CONFIG_FILES = $CONFIG_FILES
5815 CONFIG_HEADERS = $CONFIG_HEADERS
5816 CONFIG_LINKS = $CONFIG_LINKS
5817 CONFIG_COMMANDS = $CONFIG_COMMANDS
5818 $ $0 $@
5820 _CSEOF
5821 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
5822 echo >&5
5823 _ACEOF
5825 # Files that config.status was made for.
5826 if test -n "$ac_config_files"; then
5827 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5830 if test -n "$ac_config_headers"; then
5831 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5834 if test -n "$ac_config_links"; then
5835 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5838 if test -n "$ac_config_commands"; then
5839 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5842 cat >>$CONFIG_STATUS <<\_ACEOF
5844 ac_cs_usage="\
5845 \`$as_me' instantiates files from templates according to the
5846 current configuration.
5848 Usage: $0 [OPTIONS] [FILE]...
5850 -h, --help print this help, then exit
5851 -V, --version print version number, then exit
5852 -d, --debug don't remove temporary files
5853 --recheck update $as_me by reconfiguring in the same conditions
5854 --file=FILE[:TEMPLATE]
5855 instantiate the configuration file FILE
5856 --header=FILE[:TEMPLATE]
5857 instantiate the configuration header FILE
5859 Configuration files:
5860 $config_files
5862 Configuration headers:
5863 $config_headers
5865 Report bugs to <bug-autoconf@gnu.org>."
5866 _ACEOF
5868 cat >>$CONFIG_STATUS <<_ACEOF
5869 ac_cs_version="\\
5870 less config.status 1
5871 configured by $0, generated by GNU Autoconf 2.54,
5872 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5874 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
5875 Free Software Foundation, Inc.
5876 This config.status script is free software; the Free Software Foundation
5877 gives unlimited permission to copy, distribute and modify it."
5878 srcdir=$srcdir
5879 INSTALL="$INSTALL"
5880 _ACEOF
5882 cat >>$CONFIG_STATUS <<\_ACEOF
5883 # If no file are specified by the user, then we need to provide default
5884 # value. By we need to know if files were specified by the user.
5885 ac_need_defaults=:
5886 while test $# != 0
5888 case $1 in
5889 --*=*)
5890 ac_option=`expr "x$1" : 'x\([^=]*\)='`
5891 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5892 ac_shift=:
5895 ac_option=$1
5896 ac_optarg=$2
5897 ac_shift=shift
5899 *) # This is not an option, so the user has probably given explicit
5900 # arguments.
5901 ac_option=$1
5902 ac_need_defaults=false;;
5903 esac
5905 case $ac_option in
5906 # Handling of the options.
5907 _ACEOF
5908 cat >>$CONFIG_STATUS <<_ACEOF
5909 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5910 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
5911 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
5912 _ACEOF
5913 cat >>$CONFIG_STATUS <<\_ACEOF
5914 --version | --vers* | -V )
5915 echo "$ac_cs_version"; exit 0 ;;
5916 --he | --h)
5917 # Conflict between --help and --header
5918 { { echo "$as_me:$LINENO: error: ambiguous option: $1
5919 Try \`$0 --help' for more information." >&5
5920 echo "$as_me: error: ambiguous option: $1
5921 Try \`$0 --help' for more information." >&2;}
5922 { (exit 1); exit 1; }; };;
5923 --help | --hel | -h )
5924 echo "$ac_cs_usage"; exit 0 ;;
5925 --debug | --d* | -d )
5926 debug=: ;;
5927 --file | --fil | --fi | --f )
5928 $ac_shift
5929 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5930 ac_need_defaults=false;;
5931 --header | --heade | --head | --hea )
5932 $ac_shift
5933 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5934 ac_need_defaults=false;;
5936 # This is an error.
5937 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5938 Try \`$0 --help' for more information." >&5
5939 echo "$as_me: error: unrecognized option: $1
5940 Try \`$0 --help' for more information." >&2;}
5941 { (exit 1); exit 1; }; } ;;
5943 *) ac_config_targets="$ac_config_targets $1" ;;
5945 esac
5946 shift
5947 done
5949 _ACEOF
5955 cat >>$CONFIG_STATUS <<\_ACEOF
5956 for ac_config_target in $ac_config_targets
5958 case "$ac_config_target" in
5959 # Handling of arguments.
5960 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5961 "defines.h" ) CONFIG_HEADERS="$CONFIG_HEADERS defines.h" ;;
5962 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5963 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5964 { (exit 1); exit 1; }; };;
5965 esac
5966 done
5968 # If the user did not use the arguments to specify the items to instantiate,
5969 # then the envvar interface is used. Set only those that are not.
5970 # We use the long form for the default assignment because of an extremely
5971 # bizarre bug on SunOS 4.1.3.
5972 if $ac_need_defaults; then
5973 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5974 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5977 # Create a temporary directory, and hook for its removal unless debugging.
5978 $debug ||
5980 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5981 trap '{ (exit 1); exit 1; }' 1 2 13 15
5984 # Create a (secure) tmp directory for tmp files.
5985 : ${TMPDIR=/tmp}
5987 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
5988 test -n "$tmp" && test -d "$tmp"
5989 } ||
5991 tmp=$TMPDIR/cs$$-$RANDOM
5992 (umask 077 && mkdir $tmp)
5993 } ||
5995 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
5996 { (exit 1); exit 1; }
5999 _ACEOF
6001 cat >>$CONFIG_STATUS <<_ACEOF
6004 # CONFIG_FILES section.
6007 # No need to generate the scripts if there are no CONFIG_FILES.
6008 # This happens for instance when ./config.status config.h
6009 if test -n "\$CONFIG_FILES"; then
6010 # Protect against being on the right side of a sed subst in config.status.
6011 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6012 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
6013 s,@SHELL@,$SHELL,;t t
6014 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6015 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6016 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6017 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6018 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6019 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6020 s,@exec_prefix@,$exec_prefix,;t t
6021 s,@prefix@,$prefix,;t t
6022 s,@program_transform_name@,$program_transform_name,;t t
6023 s,@bindir@,$bindir,;t t
6024 s,@sbindir@,$sbindir,;t t
6025 s,@libexecdir@,$libexecdir,;t t
6026 s,@datadir@,$datadir,;t t
6027 s,@sysconfdir@,$sysconfdir,;t t
6028 s,@sharedstatedir@,$sharedstatedir,;t t
6029 s,@localstatedir@,$localstatedir,;t t
6030 s,@libdir@,$libdir,;t t
6031 s,@includedir@,$includedir,;t t
6032 s,@oldincludedir@,$oldincludedir,;t t
6033 s,@infodir@,$infodir,;t t
6034 s,@mandir@,$mandir,;t t
6035 s,@build_alias@,$build_alias,;t t
6036 s,@host_alias@,$host_alias,;t t
6037 s,@target_alias@,$target_alias,;t t
6038 s,@DEFS@,$DEFS,;t t
6039 s,@ECHO_C@,$ECHO_C,;t t
6040 s,@ECHO_N@,$ECHO_N,;t t
6041 s,@ECHO_T@,$ECHO_T,;t t
6042 s,@LIBS@,$LIBS,;t t
6043 s,@CC@,$CC,;t t
6044 s,@CFLAGS@,$CFLAGS,;t t
6045 s,@LDFLAGS@,$LDFLAGS,;t t
6046 s,@CPPFLAGS@,$CPPFLAGS,;t t
6047 s,@ac_ct_CC@,$ac_ct_CC,;t t
6048 s,@EXEEXT@,$EXEEXT,;t t
6049 s,@OBJEXT@,$OBJEXT,;t t
6050 s,@CPP@,$CPP,;t t
6051 s,@EGREP@,$EGREP,;t t
6052 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
6053 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
6054 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
6055 s,@REGEX_O@,$REGEX_O,;t t
6056 s,@LIBOBJS@,$LIBOBJS,;t t
6057 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
6058 CEOF
6060 _ACEOF
6062 cat >>$CONFIG_STATUS <<\_ACEOF
6063 # Split the substitutions into bite-sized pieces for seds with
6064 # small command number limits, like on Digital OSF/1 and HP-UX.
6065 ac_max_sed_lines=48
6066 ac_sed_frag=1 # Number of current file.
6067 ac_beg=1 # First line for current file.
6068 ac_end=$ac_max_sed_lines # Line after last line for current file.
6069 ac_more_lines=:
6070 ac_sed_cmds=
6071 while $ac_more_lines; do
6072 if test $ac_beg -gt 1; then
6073 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6074 else
6075 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6077 if test ! -s $tmp/subs.frag; then
6078 ac_more_lines=false
6079 else
6080 # The purpose of the label and of the branching condition is to
6081 # speed up the sed processing (if there are no `@' at all, there
6082 # is no need to browse any of the substitutions).
6083 # These are the two extra sed commands mentioned above.
6084 (echo ':t
6085 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
6086 if test -z "$ac_sed_cmds"; then
6087 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
6088 else
6089 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6091 ac_sed_frag=`expr $ac_sed_frag + 1`
6092 ac_beg=$ac_end
6093 ac_end=`expr $ac_end + $ac_max_sed_lines`
6095 done
6096 if test -z "$ac_sed_cmds"; then
6097 ac_sed_cmds=cat
6099 fi # test -n "$CONFIG_FILES"
6101 _ACEOF
6102 cat >>$CONFIG_STATUS <<\_ACEOF
6103 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
6104 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6105 case $ac_file in
6106 - | *:- | *:-:* ) # input from stdin
6107 cat >$tmp/stdin
6108 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6109 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6110 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6111 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6112 * ) ac_file_in=$ac_file.in ;;
6113 esac
6115 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6116 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6117 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6118 X"$ac_file" : 'X\(//\)[^/]' \| \
6119 X"$ac_file" : 'X\(//\)$' \| \
6120 X"$ac_file" : 'X\(/\)' \| \
6121 . : '\(.\)' 2>/dev/null ||
6122 echo X"$ac_file" |
6123 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6124 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6125 /^X\(\/\/\)$/{ s//\1/; q; }
6126 /^X\(\/\).*/{ s//\1/; q; }
6127 s/.*/./; q'`
6128 { if $as_mkdir_p; then
6129 mkdir -p "$ac_dir"
6130 else
6131 as_dir="$ac_dir"
6132 as_dirs=
6133 while test ! -d "$as_dir"; do
6134 as_dirs="$as_dir $as_dirs"
6135 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6136 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6137 X"$as_dir" : 'X\(//\)[^/]' \| \
6138 X"$as_dir" : 'X\(//\)$' \| \
6139 X"$as_dir" : 'X\(/\)' \| \
6140 . : '\(.\)' 2>/dev/null ||
6141 echo X"$as_dir" |
6142 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6143 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6144 /^X\(\/\/\)$/{ s//\1/; q; }
6145 /^X\(\/\).*/{ s//\1/; q; }
6146 s/.*/./; q'`
6147 done
6148 test ! -n "$as_dirs" || mkdir $as_dirs
6149 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6150 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6151 { (exit 1); exit 1; }; }; }
6153 ac_builddir=.
6155 if test "$ac_dir" != .; then
6156 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6157 # A "../" for each directory in $ac_dir_suffix.
6158 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6159 else
6160 ac_dir_suffix= ac_top_builddir=
6163 case $srcdir in
6164 .) # No --srcdir option. We are building in place.
6165 ac_srcdir=.
6166 if test -z "$ac_top_builddir"; then
6167 ac_top_srcdir=.
6168 else
6169 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6170 fi ;;
6171 [\\/]* | ?:[\\/]* ) # Absolute path.
6172 ac_srcdir=$srcdir$ac_dir_suffix;
6173 ac_top_srcdir=$srcdir ;;
6174 *) # Relative path.
6175 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6176 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6177 esac
6178 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
6179 # absolute.
6180 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
6181 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
6182 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
6183 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
6186 case $INSTALL in
6187 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6188 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
6189 esac
6191 if test x"$ac_file" != x-; then
6192 { echo "$as_me:$LINENO: creating $ac_file" >&5
6193 echo "$as_me: creating $ac_file" >&6;}
6194 rm -f "$ac_file"
6196 # Let's still pretend it is `configure' which instantiates (i.e., don't
6197 # use $as_me), people would be surprised to read:
6198 # /* config.h. Generated by config.status. */
6199 if test x"$ac_file" = x-; then
6200 configure_input=
6201 else
6202 configure_input="$ac_file. "
6204 configure_input=$configure_input"Generated from `echo $ac_file_in |
6205 sed 's,.*/,,'` by configure."
6207 # First look for the input files in the build tree, otherwise in the
6208 # src tree.
6209 ac_file_inputs=`IFS=:
6210 for f in $ac_file_in; do
6211 case $f in
6212 -) echo $tmp/stdin ;;
6213 [\\/$]*)
6214 # Absolute (can't be DOS-style, as IFS=:)
6215 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6216 echo "$as_me: error: cannot find input file: $f" >&2;}
6217 { (exit 1); exit 1; }; }
6218 echo $f;;
6219 *) # Relative
6220 if test -f "$f"; then
6221 # Build tree
6222 echo $f
6223 elif test -f "$srcdir/$f"; then
6224 # Source tree
6225 echo $srcdir/$f
6226 else
6227 # /dev/null tree
6228 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6229 echo "$as_me: error: cannot find input file: $f" >&2;}
6230 { (exit 1); exit 1; }; }
6231 fi;;
6232 esac
6233 done` || { (exit 1); exit 1; }
6234 _ACEOF
6235 cat >>$CONFIG_STATUS <<_ACEOF
6236 sed "$ac_vpsub
6237 $extrasub
6238 _ACEOF
6239 cat >>$CONFIG_STATUS <<\_ACEOF
6241 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6242 s,@configure_input@,$configure_input,;t t
6243 s,@srcdir@,$ac_srcdir,;t t
6244 s,@abs_srcdir@,$ac_abs_srcdir,;t t
6245 s,@top_srcdir@,$ac_top_srcdir,;t t
6246 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
6247 s,@builddir@,$ac_builddir,;t t
6248 s,@abs_builddir@,$ac_abs_builddir,;t t
6249 s,@top_builddir@,$ac_top_builddir,;t t
6250 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
6251 s,@INSTALL@,$ac_INSTALL,;t t
6252 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6253 rm -f $tmp/stdin
6254 if test x"$ac_file" != x-; then
6255 mv $tmp/out $ac_file
6256 else
6257 cat $tmp/out
6258 rm -f $tmp/out
6261 done
6262 _ACEOF
6263 cat >>$CONFIG_STATUS <<\_ACEOF
6266 # CONFIG_HEADER section.
6269 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6270 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6272 # ac_d sets the value in "#define NAME VALUE" lines.
6273 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6274 ac_dB='[ ].*$,\1#\2'
6275 ac_dC=' '
6276 ac_dD=',;t'
6277 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6278 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6279 ac_uB='$,\1#\2define\3'
6280 ac_uC=' '
6281 ac_uD=',;t'
6283 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
6284 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6285 case $ac_file in
6286 - | *:- | *:-:* ) # input from stdin
6287 cat >$tmp/stdin
6288 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6289 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6290 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6291 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6292 * ) ac_file_in=$ac_file.in ;;
6293 esac
6295 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
6296 echo "$as_me: creating $ac_file" >&6;}
6298 # First look for the input files in the build tree, otherwise in the
6299 # src tree.
6300 ac_file_inputs=`IFS=:
6301 for f in $ac_file_in; do
6302 case $f in
6303 -) echo $tmp/stdin ;;
6304 [\\/$]*)
6305 # Absolute (can't be DOS-style, as IFS=:)
6306 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6307 echo "$as_me: error: cannot find input file: $f" >&2;}
6308 { (exit 1); exit 1; }; }
6309 echo $f;;
6310 *) # Relative
6311 if test -f "$f"; then
6312 # Build tree
6313 echo $f
6314 elif test -f "$srcdir/$f"; then
6315 # Source tree
6316 echo $srcdir/$f
6317 else
6318 # /dev/null tree
6319 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6320 echo "$as_me: error: cannot find input file: $f" >&2;}
6321 { (exit 1); exit 1; }; }
6322 fi;;
6323 esac
6324 done` || { (exit 1); exit 1; }
6325 # Remove the trailing spaces.
6326 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
6328 _ACEOF
6330 # Transform confdefs.h into two sed scripts, `conftest.defines' and
6331 # `conftest.undefs', that substitutes the proper values into
6332 # config.h.in to produce config.h. The first handles `#define'
6333 # templates, and the second `#undef' templates.
6334 # And first: Protect against being on the right side of a sed subst in
6335 # config.status. Protect against being in an unquoted here document
6336 # in config.status.
6337 rm -f conftest.defines conftest.undefs
6338 # Using a here document instead of a string reduces the quoting nightmare.
6339 # Putting comments in sed scripts is not portable.
6341 # `end' is used to avoid that the second main sed command (meant for
6342 # 0-ary CPP macros) applies to n-ary macro definitions.
6343 # See the Autoconf documentation for `clear'.
6344 cat >confdef2sed.sed <<\_ACEOF
6345 s/[\\&,]/\\&/g
6346 s,[\\$`],\\&,g
6347 t clear
6348 : clear
6349 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
6350 t end
6351 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
6352 : end
6353 _ACEOF
6354 # If some macros were called several times there might be several times
6355 # the same #defines, which is useless. Nevertheless, we may not want to
6356 # sort them, since we want the *last* AC-DEFINE to be honored.
6357 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
6358 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
6359 rm -f confdef2sed.sed
6361 # This sed command replaces #undef with comments. This is necessary, for
6362 # example, in the case of _POSIX_SOURCE, which is predefined and required
6363 # on some systems where configure will not decide to define it.
6364 cat >>conftest.undefs <<\_ACEOF
6365 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
6366 _ACEOF
6368 # Break up conftest.defines because some shells have a limit on the size
6369 # of here documents, and old seds have small limits too (100 cmds).
6370 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
6371 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
6372 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
6373 echo ' :' >>$CONFIG_STATUS
6374 rm -f conftest.tail
6375 while grep . conftest.defines >/dev/null
6377 # Write a limited-size here document to $tmp/defines.sed.
6378 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
6379 # Speed up: don't consider the non `#define' lines.
6380 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
6381 # Work around the forget-to-reset-the-flag bug.
6382 echo 't clr' >>$CONFIG_STATUS
6383 echo ': clr' >>$CONFIG_STATUS
6384 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
6385 echo 'CEOF
6386 sed -f $tmp/defines.sed $tmp/in >$tmp/out
6387 rm -f $tmp/in
6388 mv $tmp/out $tmp/in
6389 ' >>$CONFIG_STATUS
6390 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
6391 rm -f conftest.defines
6392 mv conftest.tail conftest.defines
6393 done
6394 rm -f conftest.defines
6395 echo ' fi # grep' >>$CONFIG_STATUS
6396 echo >>$CONFIG_STATUS
6398 # Break up conftest.undefs because some shells have a limit on the size
6399 # of here documents, and old seds have small limits too (100 cmds).
6400 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
6401 rm -f conftest.tail
6402 while grep . conftest.undefs >/dev/null
6404 # Write a limited-size here document to $tmp/undefs.sed.
6405 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
6406 # Speed up: don't consider the non `#undef'
6407 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
6408 # Work around the forget-to-reset-the-flag bug.
6409 echo 't clr' >>$CONFIG_STATUS
6410 echo ': clr' >>$CONFIG_STATUS
6411 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
6412 echo 'CEOF
6413 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
6414 rm -f $tmp/in
6415 mv $tmp/out $tmp/in
6416 ' >>$CONFIG_STATUS
6417 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
6418 rm -f conftest.undefs
6419 mv conftest.tail conftest.undefs
6420 done
6421 rm -f conftest.undefs
6423 cat >>$CONFIG_STATUS <<\_ACEOF
6424 # Let's still pretend it is `configure' which instantiates (i.e., don't
6425 # use $as_me), people would be surprised to read:
6426 # /* config.h. Generated by config.status. */
6427 if test x"$ac_file" = x-; then
6428 echo "/* Generated by configure. */" >$tmp/config.h
6429 else
6430 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
6432 cat $tmp/in >>$tmp/config.h
6433 rm -f $tmp/in
6434 if test x"$ac_file" != x-; then
6435 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
6436 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
6437 echo "$as_me: $ac_file is unchanged" >&6;}
6438 else
6439 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6440 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6441 X"$ac_file" : 'X\(//\)[^/]' \| \
6442 X"$ac_file" : 'X\(//\)$' \| \
6443 X"$ac_file" : 'X\(/\)' \| \
6444 . : '\(.\)' 2>/dev/null ||
6445 echo X"$ac_file" |
6446 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6447 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6448 /^X\(\/\/\)$/{ s//\1/; q; }
6449 /^X\(\/\).*/{ s//\1/; q; }
6450 s/.*/./; q'`
6451 { if $as_mkdir_p; then
6452 mkdir -p "$ac_dir"
6453 else
6454 as_dir="$ac_dir"
6455 as_dirs=
6456 while test ! -d "$as_dir"; do
6457 as_dirs="$as_dir $as_dirs"
6458 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6459 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6460 X"$as_dir" : 'X\(//\)[^/]' \| \
6461 X"$as_dir" : 'X\(//\)$' \| \
6462 X"$as_dir" : 'X\(/\)' \| \
6463 . : '\(.\)' 2>/dev/null ||
6464 echo X"$as_dir" |
6465 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6466 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6467 /^X\(\/\/\)$/{ s//\1/; q; }
6468 /^X\(\/\).*/{ s//\1/; q; }
6469 s/.*/./; q'`
6470 done
6471 test ! -n "$as_dirs" || mkdir $as_dirs
6472 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6473 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6474 { (exit 1); exit 1; }; }; }
6476 rm -f $ac_file
6477 mv $tmp/config.h $ac_file
6479 else
6480 cat $tmp/config.h
6481 rm -f $tmp/config.h
6483 done
6484 _ACEOF
6486 cat >>$CONFIG_STATUS <<\_ACEOF
6488 { (exit 0); exit 0; }
6489 _ACEOF
6490 chmod +x $CONFIG_STATUS
6491 ac_clean_files=$ac_clean_files_save
6494 # configure is writing to config.log, and then calls config.status.
6495 # config.status does its own redirection, appending to config.log.
6496 # Unfortunately, on DOS this fails, as config.log is still kept open
6497 # by configure, so config.status won't be able to write to it; its
6498 # output is simply discarded. So we exec the FD to /dev/null,
6499 # effectively closing config.log, so it can be properly (re)opened and
6500 # appended to by config.status. When coming back to configure, we
6501 # need to make the FD available again.
6502 if test "$no_create" != yes; then
6503 ac_cs_success=:
6504 exec 5>/dev/null
6505 $SHELL $CONFIG_STATUS || ac_cs_success=false
6506 exec 5>>config.log
6507 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6508 # would make configure fail if this is the last instruction.
6509 $ac_cs_success || { (exit 1); exit 1; }