2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.58 for l2tpns 1.0.0.
5 # Report bugs to <fred_nerk@sourceforge.net>.
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 DUALCASE=1; export DUALCASE # for MKS sh
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
130 case $CONFIG_SHELL in
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
140 if ("$as_dir/$as_base" -c '
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174 s,^['$as_cr_digits']*\n,,
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
184 # Exit status is that of the last command.
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
196 if expr a : '\(a\)' >/dev/null 2>&1; then
202 rm -f conf$$ conf$$.exe conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
213 elif ln conf$$.file conf$$ 2>/dev/null; then
218 rm -f conf$$ conf$$.exe conf$$.file
220 if mkdir -p . 2>/dev/null; then
223 test -d ./-p && rmdir ./-p
227 as_executable_p="test -f"
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
237 # We need space, tab and new line, in precisely that order.
247 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248 # so uname gets run too.
249 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
256 ac_default_prefix=/usr/local
257 ac_config_libobj_dir=.
262 SHELL=${CONFIG_SHELL-/bin/sh}
264 # Maximum number of lines to put in a shell here document.
265 # This variable seems obsolete. It should probably be removed, and
266 # only ac_max_sed_lines should be used.
267 : ${ac_max_here_lines=38}
269 # Identity of this package.
270 PACKAGE_NAME='l2tpns'
271 PACKAGE_TARNAME='l2tpns'
272 PACKAGE_VERSION='1.0.0'
273 PACKAGE_STRING='l2tpns 1.0.0'
274 PACKAGE_BUGREPORT='fred_nerk@sourceforge.net'
276 ac_unique_file="ll.c"
277 # Factoring default headers for most tests.
278 ac_includes_default="\
281 # include <sys/types.h>
284 # include <sys/stat.h>
295 # if !STDC_HEADERS && HAVE_MEMORY_H
301 # include <strings.h>
304 # include <inttypes.h>
314 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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CPP EGREP LIBOBJS LTLIBOBJS'
317 # Initialize some variables set by options.
319 ac_init_version=false
320 # The variables have the same names as the options, with
321 # dashes changed to underlines.
329 program_transform_name=s,x,x,
337 # Installation directory options.
338 # These are left unexpanded so users can "make install exec_prefix=/foo"
339 # and all the variables that are supposed to be based on exec_prefix
340 # by default will actually change.
341 # Use braces instead of parens because sh, perl, etc. also accept them.
342 bindir='${exec_prefix}/bin'
343 sbindir='${exec_prefix}/sbin'
344 libexecdir='${exec_prefix}/libexec'
345 datadir='${prefix}/share'
346 sysconfdir='${prefix}/etc'
347 sharedstatedir='${prefix}/com'
348 localstatedir='${prefix}/var'
349 libdir='${exec_prefix}/lib'
350 includedir='${prefix}/include'
351 oldincludedir='/usr/include'
352 infodir='${prefix}/info'
353 mandir='${prefix}/man'
358 # If the previous option needs an argument, assign it.
359 if test -n "$ac_prev"; then
360 eval "$ac_prev=\$ac_option"
365 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
367 # Accept the important Cygnus configure options, so we can diagnose typos.
371 -bindir | --bindir | --bindi | --bind | --bin | --bi)
373 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
376 -build | --build | --buil | --bui | --bu)
377 ac_prev=build_alias ;;
378 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
379 build_alias=$ac_optarg ;;
381 -cache-file | --cache-file | --cache-fil | --cache-fi \
382 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
383 ac_prev=cache_file ;;
384 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
385 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
386 cache_file=$ac_optarg ;;
389 cache_file=config.cache ;;
391 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
393 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
395 datadir=$ac_optarg ;;
397 -disable-* | --disable-*)
398 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
399 # Reject names that are not valid shell variable names.
400 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
401 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402 { (exit 1); exit 1; }; }
403 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
404 eval "enable_$ac_feature=no" ;;
406 -enable-* | --enable-*)
407 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
408 # Reject names that are not valid shell variable names.
409 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
410 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
411 { (exit 1); exit 1; }; }
412 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
414 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
417 eval "enable_$ac_feature='$ac_optarg'" ;;
419 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
420 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
421 | --exec | --exe | --ex)
422 ac_prev=exec_prefix ;;
423 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
424 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
425 | --exec=* | --exe=* | --ex=*)
426 exec_prefix=$ac_optarg ;;
428 -gas | --gas | --ga | --g)
429 # Obsolete; use --with-gas.
432 -help | --help | --hel | --he | -h)
434 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
435 ac_init_help=recursive ;;
436 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
437 ac_init_help=short ;;
439 -host | --host | --hos | --ho)
440 ac_prev=host_alias ;;
441 -host=* | --host=* | --hos=* | --ho=*)
442 host_alias=$ac_optarg ;;
444 -includedir | --includedir | --includedi | --included | --include \
445 | --includ | --inclu | --incl | --inc)
446 ac_prev=includedir ;;
447 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
448 | --includ=* | --inclu=* | --incl=* | --inc=*)
449 includedir=$ac_optarg ;;
451 -infodir | --infodir | --infodi | --infod | --info | --inf)
453 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
454 infodir=$ac_optarg ;;
456 -libdir | --libdir | --libdi | --libd)
458 -libdir=* | --libdir=* | --libdi=* | --libd=*)
461 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
462 | --libexe | --libex | --libe)
463 ac_prev=libexecdir ;;
464 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
465 | --libexe=* | --libex=* | --libe=*)
466 libexecdir=$ac_optarg ;;
468 -localstatedir | --localstatedir | --localstatedi | --localstated \
469 | --localstate | --localstat | --localsta | --localst \
470 | --locals | --local | --loca | --loc | --lo)
471 ac_prev=localstatedir ;;
472 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
473 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
474 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
475 localstatedir=$ac_optarg ;;
477 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
479 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
483 # Obsolete; use --without-fp.
486 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
487 | --no-cr | --no-c | -n)
490 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
491 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
494 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
495 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
496 | --oldin | --oldi | --old | --ol | --o)
497 ac_prev=oldincludedir ;;
498 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
499 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
500 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
501 oldincludedir=$ac_optarg ;;
503 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
505 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
508 -program-prefix | --program-prefix | --program-prefi | --program-pref \
509 | --program-pre | --program-pr | --program-p)
510 ac_prev=program_prefix ;;
511 -program-prefix=* | --program-prefix=* | --program-prefi=* \
512 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
513 program_prefix=$ac_optarg ;;
515 -program-suffix | --program-suffix | --program-suffi | --program-suff \
516 | --program-suf | --program-su | --program-s)
517 ac_prev=program_suffix ;;
518 -program-suffix=* | --program-suffix=* | --program-suffi=* \
519 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
520 program_suffix=$ac_optarg ;;
522 -program-transform-name | --program-transform-name \
523 | --program-transform-nam | --program-transform-na \
524 | --program-transform-n | --program-transform- \
525 | --program-transform | --program-transfor \
526 | --program-transfo | --program-transf \
527 | --program-trans | --program-tran \
528 | --progr-tra | --program-tr | --program-t)
529 ac_prev=program_transform_name ;;
530 -program-transform-name=* | --program-transform-name=* \
531 | --program-transform-nam=* | --program-transform-na=* \
532 | --program-transform-n=* | --program-transform-=* \
533 | --program-transform=* | --program-transfor=* \
534 | --program-transfo=* | --program-transf=* \
535 | --program-trans=* | --program-tran=* \
536 | --progr-tra=* | --program-tr=* | --program-t=*)
537 program_transform_name=$ac_optarg ;;
539 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
540 | -silent | --silent | --silen | --sile | --sil)
543 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
545 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
547 sbindir=$ac_optarg ;;
549 -sharedstatedir | --sharedstatedir | --sharedstatedi \
550 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
551 | --sharedst | --shareds | --shared | --share | --shar \
553 ac_prev=sharedstatedir ;;
554 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
555 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
556 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
558 sharedstatedir=$ac_optarg ;;
560 -site | --site | --sit)
562 -site=* | --site=* | --sit=*)
565 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
567 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
570 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
571 | --syscon | --sysco | --sysc | --sys | --sy)
572 ac_prev=sysconfdir ;;
573 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
574 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
575 sysconfdir=$ac_optarg ;;
577 -target | --target | --targe | --targ | --tar | --ta | --t)
578 ac_prev=target_alias ;;
579 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
580 target_alias=$ac_optarg ;;
582 -v | -verbose | --verbose | --verbos | --verbo | --verb)
585 -version | --version | --versio | --versi | --vers | -V)
589 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
590 # Reject names that are not valid shell variable names.
591 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
592 { echo "$as_me: error: invalid package name: $ac_package" >&2
593 { (exit 1); exit 1; }; }
594 ac_package=`echo $ac_package| sed 's/-/_/g'`
596 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
599 eval "with_$ac_package='$ac_optarg'" ;;
601 -without-* | --without-*)
602 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
603 # Reject names that are not valid shell variable names.
604 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
605 { echo "$as_me: error: invalid package name: $ac_package" >&2
606 { (exit 1); exit 1; }; }
607 ac_package=`echo $ac_package | sed 's/-/_/g'`
608 eval "with_$ac_package=no" ;;
611 # Obsolete; use --with-x.
614 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
615 | --x-incl | --x-inc | --x-in | --x-i)
616 ac_prev=x_includes ;;
617 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
618 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
619 x_includes=$ac_optarg ;;
621 -x-libraries | --x-libraries | --x-librarie | --x-librari \
622 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
623 ac_prev=x_libraries ;;
624 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
625 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
626 x_libraries=$ac_optarg ;;
628 -*) { echo "$as_me: error: unrecognized option: $ac_option
629 Try \`$0 --help' for more information." >&2
630 { (exit 1); exit 1; }; }
634 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
635 # Reject names that are not valid shell variable names.
636 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
637 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
638 { (exit 1); exit 1; }; }
639 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
640 eval "$ac_envvar='$ac_optarg'"
644 # FIXME: should be removed in autoconf 3.0.
645 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
646 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
647 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
648 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
654 if test -n "$ac_prev"; then
655 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
656 { echo "$as_me: error: missing argument to $ac_option" >&2
657 { (exit 1); exit 1; }; }
660 # Be sure to have absolute paths.
661 for ac_var in exec_prefix prefix
663 eval ac_val=$`echo $ac_var`
665 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
666 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667 { (exit 1); exit 1; }; };;
671 # Be sure to have absolute paths.
672 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
673 localstatedir libdir includedir oldincludedir infodir mandir
675 eval ac_val=$`echo $ac_var`
677 [\\/$]* | ?:[\\/]* ) ;;
678 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679 { (exit 1); exit 1; }; };;
683 # There might be people who depend on the old broken behavior: `$host'
684 # used to hold the argument of --host etc.
685 # FIXME: To remove some day.
690 # FIXME: To remove some day.
691 if test "x$host_alias" != x; then
692 if test "x$build_alias" = x; then
693 cross_compiling=maybe
694 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
695 If a cross compiler is detected then cross compile mode will be used." >&2
696 elif test "x$build_alias" != "x$host_alias"; then
702 test -n "$host_alias" && ac_tool_prefix=$host_alias-
704 test "$silent" = yes && exec 6>/dev/null
707 # Find the source files, if location was not specified.
708 if test -z "$srcdir"; then
709 ac_srcdir_defaulted=yes
710 # Try the directory containing this script, then its parent.
711 ac_confdir=`(dirname "$0") 2>/dev/null ||
712 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
713 X"$0" : 'X\(//\)[^/]' \| \
714 X"$0" : 'X\(//\)$' \| \
715 X"$0" : 'X\(/\)' \| \
716 . : '\(.\)' 2>/dev/null ||
718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720 /^X\(\/\/\)$/{ s//\1/; q; }
721 /^X\(\/\).*/{ s//\1/; q; }
724 if test ! -r $srcdir/$ac_unique_file; then
728 ac_srcdir_defaulted=no
730 if test ! -r $srcdir/$ac_unique_file; then
731 if test "$ac_srcdir_defaulted" = yes; then
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
733 { (exit 1); exit 1; }; }
735 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
736 { (exit 1); exit 1; }; }
739 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
740 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
741 { (exit 1); exit 1; }; }
742 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743 ac_env_build_alias_set=${build_alias+set}
744 ac_env_build_alias_value=$build_alias
745 ac_cv_env_build_alias_set=${build_alias+set}
746 ac_cv_env_build_alias_value=$build_alias
747 ac_env_host_alias_set=${host_alias+set}
748 ac_env_host_alias_value=$host_alias
749 ac_cv_env_host_alias_set=${host_alias+set}
750 ac_cv_env_host_alias_value=$host_alias
751 ac_env_target_alias_set=${target_alias+set}
752 ac_env_target_alias_value=$target_alias
753 ac_cv_env_target_alias_set=${target_alias+set}
754 ac_cv_env_target_alias_value=$target_alias
755 ac_env_CC_set=${CC+set}
757 ac_cv_env_CC_set=${CC+set}
758 ac_cv_env_CC_value=$CC
759 ac_env_CFLAGS_set=${CFLAGS+set}
760 ac_env_CFLAGS_value=$CFLAGS
761 ac_cv_env_CFLAGS_set=${CFLAGS+set}
762 ac_cv_env_CFLAGS_value=$CFLAGS
763 ac_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_env_LDFLAGS_value=$LDFLAGS
765 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
766 ac_cv_env_LDFLAGS_value=$LDFLAGS
767 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_env_CPPFLAGS_value=$CPPFLAGS
769 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
770 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
771 ac_env_CPP_set=${CPP+set}
772 ac_env_CPP_value=$CPP
773 ac_cv_env_CPP_set=${CPP+set}
774 ac_cv_env_CPP_value=$CPP
777 # Report the --help message.
779 if test "$ac_init_help" = "long"; then
780 # Omit some internal or obsolete options to make the list less imposing.
781 # This message is too long to be a string in the A/UX 3.1 sh.
783 \`configure' configures l2tpns 1.0.0 to adapt to many kinds of systems.
785 Usage: $0 [OPTION]... [VAR=VALUE]...
787 To assign environment variables (e.g., CC, CFLAGS...), specify them as
788 VAR=VALUE. See below for descriptions of some of the useful variables.
790 Defaults for the options are specified in brackets.
793 -h, --help display this help and exit
794 --help=short display options specific to this package
795 --help=recursive display the short help of all the included packages
796 -V, --version display version information and exit
797 -q, --quiet, --silent do not print \`checking...' messages
798 --cache-file=FILE cache test results in FILE [disabled]
799 -C, --config-cache alias for \`--cache-file=config.cache'
800 -n, --no-create do not create output files
801 --srcdir=DIR find the sources in DIR [configure dir or \`..']
806 Installation directories:
807 --prefix=PREFIX install architecture-independent files in PREFIX
809 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
812 By default, \`make install' will install all the files in
813 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
814 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
815 for instance \`--prefix=\$HOME'.
817 For better control, use the options below.
819 Fine tuning of the installation directories:
820 --bindir=DIR user executables [EPREFIX/bin]
821 --sbindir=DIR system admin executables [EPREFIX/sbin]
822 --libexecdir=DIR program executables [EPREFIX/libexec]
823 --datadir=DIR read-only architecture-independent data [PREFIX/share]
824 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
825 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
826 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
827 --libdir=DIR object code libraries [EPREFIX/lib]
828 --includedir=DIR C header files [PREFIX/include]
829 --oldincludedir=DIR C header files for non-gcc [/usr/include]
830 --infodir=DIR info documentation [PREFIX/info]
831 --mandir=DIR man documentation [PREFIX/man]
838 if test -n "$ac_init_help"; then
839 case $ac_init_help in
840 short | recursive ) echo "Configuration of l2tpns 1.0.0:";;
844 Some influential environment variables:
845 CC C compiler command
846 CFLAGS C compiler flags
847 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
848 nonstandard directory <lib dir>
849 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
850 headers in a nonstandard directory <include dir>
853 Use these variables to override the choices made by `configure' or to help
854 it to find libraries and programs with nonstandard names/locations.
856 Report bugs to <fred_nerk@sourceforge.net>.
860 if test "$ac_init_help" = "recursive"; then
861 # If there are subdirs, report their specific --help.
863 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
864 test -d $ac_dir || continue
867 if test "$ac_dir" != .; then
868 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
869 # A "../" for each directory in $ac_dir_suffix.
870 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
872 ac_dir_suffix= ac_top_builddir=
876 .) # No --srcdir option. We are building in place.
878 if test -z "$ac_top_builddir"; then
881 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
883 [\\/]* | ?:[\\/]* ) # Absolute path.
884 ac_srcdir=$srcdir$ac_dir_suffix;
885 ac_top_srcdir=$srcdir ;;
887 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
888 ac_top_srcdir=$ac_top_builddir$srcdir ;;
891 # Do not use `cd foo && pwd` to compute absolute paths, because
892 # the directories may not exist.
894 .) ac_abs_builddir="$ac_dir";;
897 .) ac_abs_builddir=`pwd`;;
898 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
899 *) ac_abs_builddir=`pwd`/"$ac_dir";;
902 case $ac_abs_builddir in
903 .) ac_abs_top_builddir=${ac_top_builddir}.;;
905 case ${ac_top_builddir}. in
906 .) ac_abs_top_builddir=$ac_abs_builddir;;
907 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
908 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
911 case $ac_abs_builddir in
912 .) ac_abs_srcdir=$ac_srcdir;;
915 .) ac_abs_srcdir=$ac_abs_builddir;;
916 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
917 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
920 case $ac_abs_builddir in
921 .) ac_abs_top_srcdir=$ac_top_srcdir;;
923 case $ac_top_srcdir in
924 .) ac_abs_top_srcdir=$ac_abs_builddir;;
925 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
926 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
931 # Check for guested configure; otherwise get Cygnus style configure.
932 if test -f $ac_srcdir/configure.gnu; then
934 $SHELL $ac_srcdir/configure.gnu --help=recursive
935 elif test -f $ac_srcdir/configure; then
937 $SHELL $ac_srcdir/configure --help=recursive
938 elif test -f $ac_srcdir/configure.ac ||
939 test -f $ac_srcdir/configure.in; then
943 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
949 test -n "$ac_init_help" && exit 0
950 if $ac_init_version; then
952 l2tpns configure 1.0.0
953 generated by GNU Autoconf 2.58
955 Copyright (C) 2003 Free Software Foundation, Inc.
956 This configure script is free software; the Free Software Foundation
957 gives unlimited permission to copy, distribute and modify it.
963 This file contains any messages produced by compilers while
964 running configure, to aid debugging if configure makes a mistake.
966 It was created by l2tpns $as_me 1.0.0, which was
967 generated by GNU Autoconf 2.58. Invocation command line was
978 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
979 uname -m = `(uname -m) 2>/dev/null || echo unknown`
980 uname -r = `(uname -r) 2>/dev/null || echo unknown`
981 uname -s = `(uname -s) 2>/dev/null || echo unknown`
982 uname -v = `(uname -v) 2>/dev/null || echo unknown`
984 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
985 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
987 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
988 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
989 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
990 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
991 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
992 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
993 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1001 test -z "$as_dir" && as_dir=.
1002 echo "PATH: $as_dir"
1017 # Keep a trace of the command line.
1018 # Strip out --no-create and --no-recursion so they do not pile up.
1019 # Strip out --silent because we don't want to record it for future runs.
1020 # Also quote any args containing shell meta-characters.
1021 # Make two passes to allow for proper duplicate-argument suppression.
1026 ac_must_keep_next=false
1032 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1033 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1034 | -silent | --silent | --silen | --sile | --sil)
1036 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1037 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1040 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1042 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1043 if test $ac_must_keep_next = true; then
1044 ac_must_keep_next=false # Got value, back to normal.
1047 *=* | --config-cache | -C | -disable-* | --disable-* \
1048 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1049 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1050 | -with-* | --with-* | -without-* | --without-* | --x)
1051 case "$ac_configure_args0 " in
1052 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1055 -* ) ac_must_keep_next=true ;;
1058 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1059 # Get rid of the leading space.
1065 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1066 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1068 # When interrupted or exit'd, cleanup temporary files, and complete
1069 # config.log. We remove comments because anyway the quotes in there
1070 # would cause problems or look ugly.
1071 # WARNING: Be sure not to use single quotes in there, as some shells,
1072 # such as our DU 5.0 friend, will then `close' the trap.
1073 trap 'exit_status=$?
1074 # Save into config.log some information that might help in debugging.
1079 ## ---------------- ##
1080 ## Cache variables. ##
1081 ## ---------------- ##
1084 # The following way of writing the cache mishandles newlines in values,
1087 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1090 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1091 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1095 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1102 ## ----------------- ##
1103 ## Output variables. ##
1104 ## ----------------- ##
1107 for ac_var in $ac_subst_vars
1109 eval ac_val=$`echo $ac_var`
1110 echo "$ac_var='"'"'$ac_val'"'"'"
1114 if test -n "$ac_subst_files"; then
1121 for ac_var in $ac_subst_files
1123 eval ac_val=$`echo $ac_var`
1124 echo "$ac_var='"'"'$ac_val'"'"'"
1129 if test -s confdefs.h; then
1136 sed "/^$/d" confdefs.h | sort
1139 test "$ac_signal" != 0 &&
1140 echo "$as_me: caught signal $ac_signal"
1141 echo "$as_me: exit $exit_status"
1143 rm -f core *.core &&
1144 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1147 for ac_signal in 1 2 13 15; do
1148 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1152 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1153 rm -rf conftest* confdefs.h
1154 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1157 # Predefined preprocessor variables.
1159 cat >>confdefs.h <<_ACEOF
1160 #define PACKAGE_NAME "$PACKAGE_NAME"
1164 cat >>confdefs.h <<_ACEOF
1165 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1169 cat >>confdefs.h <<_ACEOF
1170 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1174 cat >>confdefs.h <<_ACEOF
1175 #define PACKAGE_STRING "$PACKAGE_STRING"
1179 cat >>confdefs.h <<_ACEOF
1180 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1184 # Let the site file select an alternate cache file if it wants to.
1185 # Prefer explicitly selected file to automatically selected ones.
1186 if test -z "$CONFIG_SITE"; then
1187 if test "x$prefix" != xNONE; then
1188 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1190 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1193 for ac_site_file in $CONFIG_SITE; do
1194 if test -r "$ac_site_file"; then
1195 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1196 echo "$as_me: loading site script $ac_site_file" >&6;}
1197 sed 's/^/| /' "$ac_site_file" >&5
1202 if test -r "$cache_file"; then
1203 # Some versions of bash will fail to source /dev/null (special
1204 # files actually), so we avoid doing that.
1205 if test -f "$cache_file"; then
1206 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1207 echo "$as_me: loading cache $cache_file" >&6;}
1209 [\\/]* | ?:[\\/]* ) . $cache_file;;
1210 *) . ./$cache_file;;
1214 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1215 echo "$as_me: creating cache $cache_file" >&6;}
1219 # Check that the precious variables saved in the cache have kept the same
1221 ac_cache_corrupted=false
1222 for ac_var in `(set) 2>&1 |
1223 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1224 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1225 eval ac_new_set=\$ac_env_${ac_var}_set
1226 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1227 eval ac_new_val="\$ac_env_${ac_var}_value"
1228 case $ac_old_set,$ac_new_set in
1230 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1231 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1232 ac_cache_corrupted=: ;;
1234 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1235 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1236 ac_cache_corrupted=: ;;
1239 if test "x$ac_old_val" != "x$ac_new_val"; then
1240 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1241 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1242 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1243 echo "$as_me: former value: $ac_old_val" >&2;}
1244 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1245 echo "$as_me: current value: $ac_new_val" >&2;}
1246 ac_cache_corrupted=:
1249 # Pass precious variables to config.status.
1250 if test "$ac_new_set" = set; then
1252 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1253 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1254 *) ac_arg=$ac_var=$ac_new_val ;;
1256 case " $ac_configure_args " in
1257 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1258 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1262 if $ac_cache_corrupted; then
1263 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1264 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1265 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1266 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1267 { (exit 1); exit 1; }; }
1271 ac_cpp='$CPP $CPPFLAGS'
1272 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1273 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1274 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1303 ac_config_headers="$ac_config_headers config.h"
1306 # Checks for programs.
1308 ac_cpp='$CPP $CPPFLAGS'
1309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1312 if test -n "$ac_tool_prefix"; then
1313 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1314 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1315 echo "$as_me:$LINENO: checking for $ac_word" >&5
1316 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1317 if test "${ac_cv_prog_CC+set}" = set; then
1318 echo $ECHO_N "(cached) $ECHO_C" >&6
1320 if test -n "$CC"; then
1321 ac_cv_prog_CC="$CC" # Let the user override the test.
1323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1327 test -z "$as_dir" && as_dir=.
1328 for ac_exec_ext in '' $ac_executable_extensions; do
1329 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1330 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1340 if test -n "$CC"; then
1341 echo "$as_me:$LINENO: result: $CC" >&5
1342 echo "${ECHO_T}$CC" >&6
1344 echo "$as_me:$LINENO: result: no" >&5
1345 echo "${ECHO_T}no" >&6
1349 if test -z "$ac_cv_prog_CC"; then
1351 # Extract the first word of "gcc", so it can be a program name with args.
1352 set dummy gcc; ac_word=$2
1353 echo "$as_me:$LINENO: checking for $ac_word" >&5
1354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1355 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1356 echo $ECHO_N "(cached) $ECHO_C" >&6
1358 if test -n "$ac_ct_CC"; then
1359 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1365 test -z "$as_dir" && as_dir=.
1366 for ac_exec_ext in '' $ac_executable_extensions; do
1367 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1368 ac_cv_prog_ac_ct_CC="gcc"
1369 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1377 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1378 if test -n "$ac_ct_CC"; then
1379 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1380 echo "${ECHO_T}$ac_ct_CC" >&6
1382 echo "$as_me:$LINENO: result: no" >&5
1383 echo "${ECHO_T}no" >&6
1391 if test -z "$CC"; then
1392 if test -n "$ac_tool_prefix"; then
1393 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1394 set dummy ${ac_tool_prefix}cc; ac_word=$2
1395 echo "$as_me:$LINENO: checking for $ac_word" >&5
1396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1397 if test "${ac_cv_prog_CC+set}" = set; then
1398 echo $ECHO_N "(cached) $ECHO_C" >&6
1400 if test -n "$CC"; then
1401 ac_cv_prog_CC="$CC" # Let the user override the test.
1403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1407 test -z "$as_dir" && as_dir=.
1408 for ac_exec_ext in '' $ac_executable_extensions; do
1409 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1410 ac_cv_prog_CC="${ac_tool_prefix}cc"
1411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1420 if test -n "$CC"; then
1421 echo "$as_me:$LINENO: result: $CC" >&5
1422 echo "${ECHO_T}$CC" >&6
1424 echo "$as_me:$LINENO: result: no" >&5
1425 echo "${ECHO_T}no" >&6
1429 if test -z "$ac_cv_prog_CC"; then
1431 # Extract the first word of "cc", so it can be a program name with args.
1432 set dummy cc; ac_word=$2
1433 echo "$as_me:$LINENO: checking for $ac_word" >&5
1434 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1435 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1436 echo $ECHO_N "(cached) $ECHO_C" >&6
1438 if test -n "$ac_ct_CC"; then
1439 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1445 test -z "$as_dir" && as_dir=.
1446 for ac_exec_ext in '' $ac_executable_extensions; do
1447 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1448 ac_cv_prog_ac_ct_CC="cc"
1449 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1457 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1458 if test -n "$ac_ct_CC"; then
1459 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1460 echo "${ECHO_T}$ac_ct_CC" >&6
1462 echo "$as_me:$LINENO: result: no" >&5
1463 echo "${ECHO_T}no" >&6
1472 if test -z "$CC"; then
1473 # Extract the first word of "cc", so it can be a program name with args.
1474 set dummy cc; ac_word=$2
1475 echo "$as_me:$LINENO: checking for $ac_word" >&5
1476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1477 if test "${ac_cv_prog_CC+set}" = set; then
1478 echo $ECHO_N "(cached) $ECHO_C" >&6
1480 if test -n "$CC"; then
1481 ac_cv_prog_CC="$CC" # Let the user override the test.
1484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1488 test -z "$as_dir" && as_dir=.
1489 for ac_exec_ext in '' $ac_executable_extensions; do
1490 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1491 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1492 ac_prog_rejected=yes
1496 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1502 if test $ac_prog_rejected = yes; then
1503 # We found a bogon in the path, so make sure we never use it.
1504 set dummy $ac_cv_prog_CC
1506 if test $# != 0; then
1507 # We chose a different compiler from the bogus one.
1508 # However, it has the same basename, so the bogon will be chosen
1509 # first if we set CC to just the basename; use the full file name.
1511 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1517 if test -n "$CC"; then
1518 echo "$as_me:$LINENO: result: $CC" >&5
1519 echo "${ECHO_T}$CC" >&6
1521 echo "$as_me:$LINENO: result: no" >&5
1522 echo "${ECHO_T}no" >&6
1526 if test -z "$CC"; then
1527 if test -n "$ac_tool_prefix"; then
1530 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1531 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1532 echo "$as_me:$LINENO: checking for $ac_word" >&5
1533 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1534 if test "${ac_cv_prog_CC+set}" = set; then
1535 echo $ECHO_N "(cached) $ECHO_C" >&6
1537 if test -n "$CC"; then
1538 ac_cv_prog_CC="$CC" # Let the user override the test.
1540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1544 test -z "$as_dir" && as_dir=.
1545 for ac_exec_ext in '' $ac_executable_extensions; do
1546 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1547 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1548 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1557 if test -n "$CC"; then
1558 echo "$as_me:$LINENO: result: $CC" >&5
1559 echo "${ECHO_T}$CC" >&6
1561 echo "$as_me:$LINENO: result: no" >&5
1562 echo "${ECHO_T}no" >&6
1565 test -n "$CC" && break
1568 if test -z "$CC"; then
1572 # Extract the first word of "$ac_prog", so it can be a program name with args.
1573 set dummy $ac_prog; ac_word=$2
1574 echo "$as_me:$LINENO: checking for $ac_word" >&5
1575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1576 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1577 echo $ECHO_N "(cached) $ECHO_C" >&6
1579 if test -n "$ac_ct_CC"; then
1580 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1586 test -z "$as_dir" && as_dir=.
1587 for ac_exec_ext in '' $ac_executable_extensions; do
1588 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1589 ac_cv_prog_ac_ct_CC="$ac_prog"
1590 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1598 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1599 if test -n "$ac_ct_CC"; then
1600 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1601 echo "${ECHO_T}$ac_ct_CC" >&6
1603 echo "$as_me:$LINENO: result: no" >&5
1604 echo "${ECHO_T}no" >&6
1607 test -n "$ac_ct_CC" && break
1616 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1617 See \`config.log' for more details." >&5
1618 echo "$as_me: error: no acceptable C compiler found in \$PATH
1619 See \`config.log' for more details." >&2;}
1620 { (exit 1); exit 1; }; }
1622 # Provide some information about the compiler.
1623 echo "$as_me:$LINENO:" \
1624 "checking for C compiler version" >&5
1625 ac_compiler=`set X $ac_compile; echo $2`
1626 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1627 (eval $ac_compiler --version </dev/null >&5) 2>&5
1629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1630 (exit $ac_status); }
1631 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1632 (eval $ac_compiler -v </dev/null >&5) 2>&5
1634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1635 (exit $ac_status); }
1636 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1637 (eval $ac_compiler -V </dev/null >&5) 2>&5
1639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1640 (exit $ac_status); }
1642 cat >conftest.$ac_ext <<_ACEOF
1645 cat confdefs.h >>conftest.$ac_ext
1646 cat >>conftest.$ac_ext <<_ACEOF
1647 /* end confdefs.h. */
1657 ac_clean_files_save=$ac_clean_files
1658 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1659 # Try to create an executable without -o first, disregard a.out.
1660 # It will help us diagnose broken compilers, and finding out an intuition
1662 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1663 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1664 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1665 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1666 (eval $ac_link_default) 2>&5
1668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1669 (exit $ac_status); }; then
1670 # Find the output, starting from the most likely. This scheme is
1671 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1674 # Be careful to initialize this variable, since it used to be cached.
1675 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1677 # b.out is created by i960 compilers.
1678 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1680 test -f "$ac_file" || continue
1682 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1685 # This is the source file.
1688 # We found the default executable, but exeext='' is most
1692 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1693 # FIXME: I believe we export ac_cv_exeext for Libtool,
1694 # but it would be cool to find out if it's true. Does anybody
1695 # maintain Libtool? --akim.
1703 echo "$as_me: failed program was:" >&5
1704 sed 's/^/| /' conftest.$ac_ext >&5
1706 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1707 See \`config.log' for more details." >&5
1708 echo "$as_me: error: C compiler cannot create executables
1709 See \`config.log' for more details." >&2;}
1710 { (exit 77); exit 77; }; }
1713 ac_exeext=$ac_cv_exeext
1714 echo "$as_me:$LINENO: result: $ac_file" >&5
1715 echo "${ECHO_T}$ac_file" >&6
1717 # Check the compiler produces executables we can run. If not, either
1718 # the compiler is broken, or we cross compile.
1719 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1720 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1721 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1722 # If not cross compiling, check that we can run a simple program.
1723 if test "$cross_compiling" != yes; then
1724 if { ac_try='./$ac_file'
1725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1729 (exit $ac_status); }; }; then
1732 if test "$cross_compiling" = maybe; then
1735 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1736 If you meant to cross compile, use \`--host'.
1737 See \`config.log' for more details." >&5
1738 echo "$as_me: error: cannot run C compiled programs.
1739 If you meant to cross compile, use \`--host'.
1740 See \`config.log' for more details." >&2;}
1741 { (exit 1); exit 1; }; }
1745 echo "$as_me:$LINENO: result: yes" >&5
1746 echo "${ECHO_T}yes" >&6
1748 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1749 ac_clean_files=$ac_clean_files_save
1750 # Check the compiler produces executables we can run. If not, either
1751 # the compiler is broken, or we cross compile.
1752 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1753 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1754 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1755 echo "${ECHO_T}$cross_compiling" >&6
1757 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1758 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1760 (eval $ac_link) 2>&5
1762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1763 (exit $ac_status); }; then
1764 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1765 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1766 # work properly (i.e., refer to `conftest.exe'), while it won't with
1768 for ac_file in conftest.exe conftest conftest.*; do
1769 test -f "$ac_file" || continue
1771 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1772 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1779 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1780 See \`config.log' for more details." >&5
1781 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1782 See \`config.log' for more details." >&2;}
1783 { (exit 1); exit 1; }; }
1786 rm -f conftest$ac_cv_exeext
1787 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1788 echo "${ECHO_T}$ac_cv_exeext" >&6
1790 rm -f conftest.$ac_ext
1791 EXEEXT=$ac_cv_exeext
1793 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1794 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1795 if test "${ac_cv_objext+set}" = set; then
1796 echo $ECHO_N "(cached) $ECHO_C" >&6
1798 cat >conftest.$ac_ext <<_ACEOF
1801 cat confdefs.h >>conftest.$ac_ext
1802 cat >>conftest.$ac_ext <<_ACEOF
1803 /* end confdefs.h. */
1813 rm -f conftest.o conftest.obj
1814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1815 (eval $ac_compile) 2>&5
1817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1818 (exit $ac_status); }; then
1819 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1821 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1822 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1827 echo "$as_me: failed program was:" >&5
1828 sed 's/^/| /' conftest.$ac_ext >&5
1830 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1831 See \`config.log' for more details." >&5
1832 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1833 See \`config.log' for more details." >&2;}
1834 { (exit 1); exit 1; }; }
1837 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1839 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1840 echo "${ECHO_T}$ac_cv_objext" >&6
1841 OBJEXT=$ac_cv_objext
1843 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1844 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1845 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1846 echo $ECHO_N "(cached) $ECHO_C" >&6
1848 cat >conftest.$ac_ext <<_ACEOF
1851 cat confdefs.h >>conftest.$ac_ext
1852 cat >>conftest.$ac_ext <<_ACEOF
1853 /* end confdefs.h. */
1866 rm -f conftest.$ac_objext
1867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1868 (eval $ac_compile) 2>conftest.er1
1870 grep -v '^ *+' conftest.er1 >conftest.err
1872 cat conftest.err >&5
1873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1874 (exit $ac_status); } &&
1875 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1880 (exit $ac_status); }; } &&
1881 { ac_try='test -s conftest.$ac_objext'
1882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1886 (exit $ac_status); }; }; then
1889 echo "$as_me: failed program was:" >&5
1890 sed 's/^/| /' conftest.$ac_ext >&5
1894 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1895 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1898 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1899 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1900 GCC=`test $ac_compiler_gnu = yes && echo yes`
1901 ac_test_CFLAGS=${CFLAGS+set}
1902 ac_save_CFLAGS=$CFLAGS
1904 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1905 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1906 if test "${ac_cv_prog_cc_g+set}" = set; then
1907 echo $ECHO_N "(cached) $ECHO_C" >&6
1909 cat >conftest.$ac_ext <<_ACEOF
1912 cat confdefs.h >>conftest.$ac_ext
1913 cat >>conftest.$ac_ext <<_ACEOF
1914 /* end confdefs.h. */
1924 rm -f conftest.$ac_objext
1925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1926 (eval $ac_compile) 2>conftest.er1
1928 grep -v '^ *+' conftest.er1 >conftest.err
1930 cat conftest.err >&5
1931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1932 (exit $ac_status); } &&
1933 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1938 (exit $ac_status); }; } &&
1939 { ac_try='test -s conftest.$ac_objext'
1940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1944 (exit $ac_status); }; }; then
1947 echo "$as_me: failed program was:" >&5
1948 sed 's/^/| /' conftest.$ac_ext >&5
1952 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1954 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1955 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1956 if test "$ac_test_CFLAGS" = set; then
1957 CFLAGS=$ac_save_CFLAGS
1958 elif test $ac_cv_prog_cc_g = yes; then
1959 if test "$GCC" = yes; then
1965 if test "$GCC" = yes; then
1971 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1972 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1973 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1974 echo $ECHO_N "(cached) $ECHO_C" >&6
1976 ac_cv_prog_cc_stdc=no
1978 cat >conftest.$ac_ext <<_ACEOF
1981 cat confdefs.h >>conftest.$ac_ext
1982 cat >>conftest.$ac_ext <<_ACEOF
1983 /* end confdefs.h. */
1986 #include <sys/types.h>
1987 #include <sys/stat.h>
1988 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1989 struct buf { int x; };
1990 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1991 static char *e (p, i)
1997 static char *f (char * (*g) (char **, int), char **p, ...)
2002 s = g (p, va_arg (v,int));
2007 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2008 function prototypes and stuff, but not '\xHH' hex character constants.
2009 These don't provoke an error unfortunately, instead are silently treated
2010 as 'x'. The following induces an error, until -std1 is added to get
2011 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2012 array size at least. It's necessary to write '\x00'==0 to get something
2013 that's true only with -std1. */
2014 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2016 int test (int i, double x);
2017 struct s1 {int (*f) (int a);};
2018 struct s2 {int (*f) (double a);};
2019 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2025 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2030 # Don't try gcc -ansi; that turns off useful extensions and
2031 # breaks some systems' header files.
2032 # AIX -qlanglvl=ansi
2033 # Ultrix and OSF/1 -std1
2034 # HP-UX 10.20 and later -Ae
2035 # HP-UX older versions -Aa -D_HPUX_SOURCE
2036 # SVR4 -Xc -D__EXTENSIONS__
2037 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2039 CC="$ac_save_CC $ac_arg"
2040 rm -f conftest.$ac_objext
2041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2042 (eval $ac_compile) 2>conftest.er1
2044 grep -v '^ *+' conftest.er1 >conftest.err
2046 cat conftest.err >&5
2047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2048 (exit $ac_status); } &&
2049 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2054 (exit $ac_status); }; } &&
2055 { ac_try='test -s conftest.$ac_objext'
2056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2060 (exit $ac_status); }; }; then
2061 ac_cv_prog_cc_stdc=$ac_arg
2064 echo "$as_me: failed program was:" >&5
2065 sed 's/^/| /' conftest.$ac_ext >&5
2068 rm -f conftest.err conftest.$ac_objext
2070 rm -f conftest.$ac_ext conftest.$ac_objext
2075 case "x$ac_cv_prog_cc_stdc" in
2077 echo "$as_me:$LINENO: result: none needed" >&5
2078 echo "${ECHO_T}none needed" >&6 ;;
2080 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2081 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2082 CC="$CC $ac_cv_prog_cc_stdc" ;;
2085 # Some people use a C++ compiler to compile C. Since we use `exit',
2086 # in C++ we need to declare it. In case someone uses the same compiler
2087 # for both compiling C and C++ we need to have the C++ compiler decide
2088 # the declaration of exit, since it's the most demanding environment.
2089 cat >conftest.$ac_ext <<_ACEOF
2094 rm -f conftest.$ac_objext
2095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2096 (eval $ac_compile) 2>conftest.er1
2098 grep -v '^ *+' conftest.er1 >conftest.err
2100 cat conftest.err >&5
2101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2102 (exit $ac_status); } &&
2103 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2108 (exit $ac_status); }; } &&
2109 { ac_try='test -s conftest.$ac_objext'
2110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2114 (exit $ac_status); }; }; then
2115 for ac_declaration in \
2117 'extern "C" void std::exit (int) throw (); using std::exit;' \
2118 'extern "C" void std::exit (int); using std::exit;' \
2119 'extern "C" void exit (int) throw ();' \
2120 'extern "C" void exit (int);' \
2123 cat >conftest.$ac_ext <<_ACEOF
2126 cat confdefs.h >>conftest.$ac_ext
2127 cat >>conftest.$ac_ext <<_ACEOF
2128 /* end confdefs.h. */
2139 rm -f conftest.$ac_objext
2140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2141 (eval $ac_compile) 2>conftest.er1
2143 grep -v '^ *+' conftest.er1 >conftest.err
2145 cat conftest.err >&5
2146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2147 (exit $ac_status); } &&
2148 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2153 (exit $ac_status); }; } &&
2154 { ac_try='test -s conftest.$ac_objext'
2155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2159 (exit $ac_status); }; }; then
2162 echo "$as_me: failed program was:" >&5
2163 sed 's/^/| /' conftest.$ac_ext >&5
2167 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2168 cat >conftest.$ac_ext <<_ACEOF
2171 cat confdefs.h >>conftest.$ac_ext
2172 cat >>conftest.$ac_ext <<_ACEOF
2173 /* end confdefs.h. */
2183 rm -f conftest.$ac_objext
2184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2185 (eval $ac_compile) 2>conftest.er1
2187 grep -v '^ *+' conftest.er1 >conftest.err
2189 cat conftest.err >&5
2190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2191 (exit $ac_status); } &&
2192 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2197 (exit $ac_status); }; } &&
2198 { ac_try='test -s conftest.$ac_objext'
2199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2203 (exit $ac_status); }; }; then
2206 echo "$as_me: failed program was:" >&5
2207 sed 's/^/| /' conftest.$ac_ext >&5
2210 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2213 if test -n "$ac_declaration"; then
2214 echo '#ifdef __cplusplus' >>confdefs.h
2215 echo $ac_declaration >>confdefs.h
2216 echo '#endif' >>confdefs.h
2220 echo "$as_me: failed program was:" >&5
2221 sed 's/^/| /' conftest.$ac_ext >&5
2224 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2226 ac_cpp='$CPP $CPPFLAGS'
2227 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2228 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2229 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2232 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2233 if test -f $ac_dir/install-sh; then
2235 ac_install_sh="$ac_aux_dir/install-sh -c"
2237 elif test -f $ac_dir/install.sh; then
2239 ac_install_sh="$ac_aux_dir/install.sh -c"
2241 elif test -f $ac_dir/shtool; then
2243 ac_install_sh="$ac_aux_dir/shtool install -c"
2247 if test -z "$ac_aux_dir"; then
2248 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2249 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2250 { (exit 1); exit 1; }; }
2252 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2253 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2254 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2256 # Find a good install program. We prefer a C program (faster),
2257 # so one script is as good as another. But avoid the broken or
2258 # incompatible versions:
2259 # SysV /etc/install, /usr/sbin/install
2260 # SunOS /usr/etc/install
2261 # IRIX /sbin/install
2263 # AmigaOS /C/install, which installs bootblocks on floppy discs
2264 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2265 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2266 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2267 # OS/2's system install, which has a completely different semantic
2268 # ./install, which can be erroneously created by make from ./install.sh.
2269 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2270 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2271 if test -z "$INSTALL"; then
2272 if test "${ac_cv_path_install+set}" = set; then
2273 echo $ECHO_N "(cached) $ECHO_C" >&6
2275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2279 test -z "$as_dir" && as_dir=.
2280 # Account for people who put trailing slashes in PATH elements.
2282 ./ | .// | /cC/* | \
2283 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2284 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2287 # OSF1 and SCO ODT 3.0 have their own names for install.
2288 # Don't use installbsd from OSF since it installs stuff as root
2290 for ac_prog in ginstall scoinst install; do
2291 for ac_exec_ext in '' $ac_executable_extensions; do
2292 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2293 if test $ac_prog = install &&
2294 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2295 # AIX install. It has an incompatible calling convention.
2297 elif test $ac_prog = install &&
2298 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2299 # program-specific install script used by HP pwplus--don't use.
2302 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2314 if test "${ac_cv_path_install+set}" = set; then
2315 INSTALL=$ac_cv_path_install
2317 # As a last resort, use the slow shell script. We don't cache a
2318 # path for INSTALL within a source directory, because that will
2319 # break other packages using the cache if that directory is
2320 # removed, or if the path is relative.
2321 INSTALL=$ac_install_sh
2324 echo "$as_me:$LINENO: result: $INSTALL" >&5
2325 echo "${ECHO_T}$INSTALL" >&6
2327 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2328 # It thinks the first close brace ends the variable substitution.
2329 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2331 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2333 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2336 # Checks for header files.
2339 ac_cpp='$CPP $CPPFLAGS'
2340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2343 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2344 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2345 # On Suns, sometimes $CPP names a directory.
2346 if test -n "$CPP" && test -d "$CPP"; then
2349 if test -z "$CPP"; then
2350 if test "${ac_cv_prog_CPP+set}" = set; then
2351 echo $ECHO_N "(cached) $ECHO_C" >&6
2353 # Double quotes because CPP needs to be expanded
2354 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2357 for ac_c_preproc_warn_flag in '' yes
2359 # Use a header file that comes with gcc, so configuring glibc
2360 # with a fresh cross-compiler works.
2361 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2362 # <limits.h> exists even on freestanding compilers.
2363 # On the NeXT, cc -E runs the code through the compiler's parser,
2364 # not just through cpp. "Syntax error" is here to catch this case.
2365 cat >conftest.$ac_ext <<_ACEOF
2368 cat confdefs.h >>conftest.$ac_ext
2369 cat >>conftest.$ac_ext <<_ACEOF
2370 /* end confdefs.h. */
2372 # include <limits.h>
2374 # include <assert.h>
2378 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2379 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2381 grep -v '^ *+' conftest.er1 >conftest.err
2383 cat conftest.err >&5
2384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385 (exit $ac_status); } >/dev/null; then
2386 if test -s conftest.err; then
2387 ac_cpp_err=$ac_c_preproc_warn_flag
2388 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2395 if test -z "$ac_cpp_err"; then
2398 echo "$as_me: failed program was:" >&5
2399 sed 's/^/| /' conftest.$ac_ext >&5
2401 # Broken: fails on valid input.
2404 rm -f conftest.err conftest.$ac_ext
2406 # OK, works on sane cases. Now check whether non-existent headers
2407 # can be detected and how.
2408 cat >conftest.$ac_ext <<_ACEOF
2411 cat confdefs.h >>conftest.$ac_ext
2412 cat >>conftest.$ac_ext <<_ACEOF
2413 /* end confdefs.h. */
2414 #include <ac_nonexistent.h>
2416 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2417 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2419 grep -v '^ *+' conftest.er1 >conftest.err
2421 cat conftest.err >&5
2422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423 (exit $ac_status); } >/dev/null; then
2424 if test -s conftest.err; then
2425 ac_cpp_err=$ac_c_preproc_warn_flag
2426 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2433 if test -z "$ac_cpp_err"; then
2434 # Broken: success on invalid input.
2437 echo "$as_me: failed program was:" >&5
2438 sed 's/^/| /' conftest.$ac_ext >&5
2440 # Passes both tests.
2444 rm -f conftest.err conftest.$ac_ext
2447 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2448 rm -f conftest.err conftest.$ac_ext
2449 if $ac_preproc_ok; then
2461 echo "$as_me:$LINENO: result: $CPP" >&5
2462 echo "${ECHO_T}$CPP" >&6
2464 for ac_c_preproc_warn_flag in '' yes
2466 # Use a header file that comes with gcc, so configuring glibc
2467 # with a fresh cross-compiler works.
2468 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2469 # <limits.h> exists even on freestanding compilers.
2470 # On the NeXT, cc -E runs the code through the compiler's parser,
2471 # not just through cpp. "Syntax error" is here to catch this case.
2472 cat >conftest.$ac_ext <<_ACEOF
2475 cat confdefs.h >>conftest.$ac_ext
2476 cat >>conftest.$ac_ext <<_ACEOF
2477 /* end confdefs.h. */
2479 # include <limits.h>
2481 # include <assert.h>
2485 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2486 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2488 grep -v '^ *+' conftest.er1 >conftest.err
2490 cat conftest.err >&5
2491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2492 (exit $ac_status); } >/dev/null; then
2493 if test -s conftest.err; then
2494 ac_cpp_err=$ac_c_preproc_warn_flag
2495 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2502 if test -z "$ac_cpp_err"; then
2505 echo "$as_me: failed program was:" >&5
2506 sed 's/^/| /' conftest.$ac_ext >&5
2508 # Broken: fails on valid input.
2511 rm -f conftest.err conftest.$ac_ext
2513 # OK, works on sane cases. Now check whether non-existent headers
2514 # can be detected and how.
2515 cat >conftest.$ac_ext <<_ACEOF
2518 cat confdefs.h >>conftest.$ac_ext
2519 cat >>conftest.$ac_ext <<_ACEOF
2520 /* end confdefs.h. */
2521 #include <ac_nonexistent.h>
2523 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2524 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2526 grep -v '^ *+' conftest.er1 >conftest.err
2528 cat conftest.err >&5
2529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2530 (exit $ac_status); } >/dev/null; then
2531 if test -s conftest.err; then
2532 ac_cpp_err=$ac_c_preproc_warn_flag
2533 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2540 if test -z "$ac_cpp_err"; then
2541 # Broken: success on invalid input.
2544 echo "$as_me: failed program was:" >&5
2545 sed 's/^/| /' conftest.$ac_ext >&5
2547 # Passes both tests.
2551 rm -f conftest.err conftest.$ac_ext
2554 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2555 rm -f conftest.err conftest.$ac_ext
2556 if $ac_preproc_ok; then
2559 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2560 See \`config.log' for more details." >&5
2561 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2562 See \`config.log' for more details." >&2;}
2563 { (exit 1); exit 1; }; }
2567 ac_cpp='$CPP $CPPFLAGS'
2568 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2569 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2570 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2573 echo "$as_me:$LINENO: checking for egrep" >&5
2574 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2575 if test "${ac_cv_prog_egrep+set}" = set; then
2576 echo $ECHO_N "(cached) $ECHO_C" >&6
2578 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2579 then ac_cv_prog_egrep='grep -E'
2580 else ac_cv_prog_egrep='egrep'
2583 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2584 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2585 EGREP=$ac_cv_prog_egrep
2588 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2589 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2590 if test "${ac_cv_header_stdc+set}" = set; then
2591 echo $ECHO_N "(cached) $ECHO_C" >&6
2593 cat >conftest.$ac_ext <<_ACEOF
2596 cat confdefs.h >>conftest.$ac_ext
2597 cat >>conftest.$ac_ext <<_ACEOF
2598 /* end confdefs.h. */
2612 rm -f conftest.$ac_objext
2613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2614 (eval $ac_compile) 2>conftest.er1
2616 grep -v '^ *+' conftest.er1 >conftest.err
2618 cat conftest.err >&5
2619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620 (exit $ac_status); } &&
2621 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626 (exit $ac_status); }; } &&
2627 { ac_try='test -s conftest.$ac_objext'
2628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632 (exit $ac_status); }; }; then
2633 ac_cv_header_stdc=yes
2635 echo "$as_me: failed program was:" >&5
2636 sed 's/^/| /' conftest.$ac_ext >&5
2638 ac_cv_header_stdc=no
2640 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2642 if test $ac_cv_header_stdc = yes; then
2643 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2644 cat >conftest.$ac_ext <<_ACEOF
2647 cat confdefs.h >>conftest.$ac_ext
2648 cat >>conftest.$ac_ext <<_ACEOF
2649 /* end confdefs.h. */
2653 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2654 $EGREP "memchr" >/dev/null 2>&1; then
2657 ac_cv_header_stdc=no
2663 if test $ac_cv_header_stdc = yes; then
2664 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2665 cat >conftest.$ac_ext <<_ACEOF
2668 cat confdefs.h >>conftest.$ac_ext
2669 cat >>conftest.$ac_ext <<_ACEOF
2670 /* end confdefs.h. */
2674 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2675 $EGREP "free" >/dev/null 2>&1; then
2678 ac_cv_header_stdc=no
2684 if test $ac_cv_header_stdc = yes; then
2685 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2686 if test "$cross_compiling" = yes; then
2689 cat >conftest.$ac_ext <<_ACEOF
2692 cat confdefs.h >>conftest.$ac_ext
2693 cat >>conftest.$ac_ext <<_ACEOF
2694 /* end confdefs.h. */
2696 #if ((' ' & 0x0FF) == 0x020)
2697 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2698 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2700 # define ISLOWER(c) \
2701 (('a' <= (c) && (c) <= 'i') \
2702 || ('j' <= (c) && (c) <= 'r') \
2703 || ('s' <= (c) && (c) <= 'z'))
2704 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2707 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2712 for (i = 0; i < 256; i++)
2713 if (XOR (islower (i), ISLOWER (i))
2714 || toupper (i) != TOUPPER (i))
2719 rm -f conftest$ac_exeext
2720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2721 (eval $ac_link) 2>&5
2723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2724 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2729 (exit $ac_status); }; }; then
2732 echo "$as_me: program exited with status $ac_status" >&5
2733 echo "$as_me: failed program was:" >&5
2734 sed 's/^/| /' conftest.$ac_ext >&5
2737 ac_cv_header_stdc=no
2739 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2743 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2744 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2745 if test $ac_cv_header_stdc = yes; then
2747 cat >>confdefs.h <<\_ACEOF
2748 #define STDC_HEADERS 1
2753 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
2754 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
2755 if test "${ac_cv_header_sys_wait_h+set}" = set; then
2756 echo $ECHO_N "(cached) $ECHO_C" >&6
2758 cat >conftest.$ac_ext <<_ACEOF
2761 cat confdefs.h >>conftest.$ac_ext
2762 cat >>conftest.$ac_ext <<_ACEOF
2763 /* end confdefs.h. */
2764 #include <sys/types.h>
2765 #include <sys/wait.h>
2767 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2770 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2778 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2783 rm -f conftest.$ac_objext
2784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2785 (eval $ac_compile) 2>conftest.er1
2787 grep -v '^ *+' conftest.er1 >conftest.err
2789 cat conftest.err >&5
2790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791 (exit $ac_status); } &&
2792 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797 (exit $ac_status); }; } &&
2798 { ac_try='test -s conftest.$ac_objext'
2799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2803 (exit $ac_status); }; }; then
2804 ac_cv_header_sys_wait_h=yes
2806 echo "$as_me: failed program was:" >&5
2807 sed 's/^/| /' conftest.$ac_ext >&5
2809 ac_cv_header_sys_wait_h=no
2811 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2813 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
2814 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
2815 if test $ac_cv_header_sys_wait_h = yes; then
2817 cat >>confdefs.h <<\_ACEOF
2818 #define HAVE_SYS_WAIT_H 1
2823 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2833 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2834 inttypes.h stdint.h unistd.h
2836 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2837 echo "$as_me:$LINENO: checking for $ac_header" >&5
2838 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2839 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2840 echo $ECHO_N "(cached) $ECHO_C" >&6
2842 cat >conftest.$ac_ext <<_ACEOF
2845 cat confdefs.h >>conftest.$ac_ext
2846 cat >>conftest.$ac_ext <<_ACEOF
2847 /* end confdefs.h. */
2848 $ac_includes_default
2850 #include <$ac_header>
2852 rm -f conftest.$ac_objext
2853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2854 (eval $ac_compile) 2>conftest.er1
2856 grep -v '^ *+' conftest.er1 >conftest.err
2858 cat conftest.err >&5
2859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2860 (exit $ac_status); } &&
2861 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2866 (exit $ac_status); }; } &&
2867 { ac_try='test -s conftest.$ac_objext'
2868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2872 (exit $ac_status); }; }; then
2873 eval "$as_ac_Header=yes"
2875 echo "$as_me: failed program was:" >&5
2876 sed 's/^/| /' conftest.$ac_ext >&5
2878 eval "$as_ac_Header=no"
2880 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2882 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2883 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2884 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2885 cat >>confdefs.h <<_ACEOF
2886 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2907 for ac_header in arpa/inet.h fcntl.h malloc.h memory.h netdb.h netinet/in.h stdlib.h string.h sys/file.h sys/ioctl.h sys/socket.h sys/time.h unistd.h
2909 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2910 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2911 echo "$as_me:$LINENO: checking for $ac_header" >&5
2912 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2913 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2914 echo $ECHO_N "(cached) $ECHO_C" >&6
2916 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2917 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2919 # Is the header compilable?
2920 echo "$as_me:$LINENO: checking $ac_header usability" >&5
2921 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
2922 cat >conftest.$ac_ext <<_ACEOF
2925 cat confdefs.h >>conftest.$ac_ext
2926 cat >>conftest.$ac_ext <<_ACEOF
2927 /* end confdefs.h. */
2928 $ac_includes_default
2929 #include <$ac_header>
2931 rm -f conftest.$ac_objext
2932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2933 (eval $ac_compile) 2>conftest.er1
2935 grep -v '^ *+' conftest.er1 >conftest.err
2937 cat conftest.err >&5
2938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939 (exit $ac_status); } &&
2940 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945 (exit $ac_status); }; } &&
2946 { ac_try='test -s conftest.$ac_objext'
2947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951 (exit $ac_status); }; }; then
2952 ac_header_compiler=yes
2954 echo "$as_me: failed program was:" >&5
2955 sed 's/^/| /' conftest.$ac_ext >&5
2957 ac_header_compiler=no
2959 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2960 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
2961 echo "${ECHO_T}$ac_header_compiler" >&6
2963 # Is the header present?
2964 echo "$as_me:$LINENO: checking $ac_header presence" >&5
2965 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
2966 cat >conftest.$ac_ext <<_ACEOF
2969 cat confdefs.h >>conftest.$ac_ext
2970 cat >>conftest.$ac_ext <<_ACEOF
2971 /* end confdefs.h. */
2972 #include <$ac_header>
2974 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2975 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2977 grep -v '^ *+' conftest.er1 >conftest.err
2979 cat conftest.err >&5
2980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2981 (exit $ac_status); } >/dev/null; then
2982 if test -s conftest.err; then
2983 ac_cpp_err=$ac_c_preproc_warn_flag
2984 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2991 if test -z "$ac_cpp_err"; then
2992 ac_header_preproc=yes
2994 echo "$as_me: failed program was:" >&5
2995 sed 's/^/| /' conftest.$ac_ext >&5
2997 ac_header_preproc=no
2999 rm -f conftest.err conftest.$ac_ext
3000 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3001 echo "${ECHO_T}$ac_header_preproc" >&6
3003 # So? What about this header?
3004 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3006 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3007 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3008 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3009 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3010 ac_header_preproc=yes
3013 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3014 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3015 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3016 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3017 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3018 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3019 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3020 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3021 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3022 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3023 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3024 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3027 ## ---------------------------------------- ##
3028 ## Report this to fred_nerk@sourceforge.net ##
3029 ## ---------------------------------------- ##
3032 sed "s/^/$as_me: WARNING: /" >&2
3035 echo "$as_me:$LINENO: checking for $ac_header" >&5
3036 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3037 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3038 echo $ECHO_N "(cached) $ECHO_C" >&6
3040 eval "$as_ac_Header=\$ac_header_preproc"
3042 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3043 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3046 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3047 cat >>confdefs.h <<_ACEOF
3048 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3056 # Checks for typedefs, structures, and compiler characteristics.
3057 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3058 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3059 if test "${ac_cv_c_const+set}" = set; then
3060 echo $ECHO_N "(cached) $ECHO_C" >&6
3062 cat >conftest.$ac_ext <<_ACEOF
3065 cat confdefs.h >>conftest.$ac_ext
3066 cat >>conftest.$ac_ext <<_ACEOF
3067 /* end confdefs.h. */
3072 /* FIXME: Include the comments suggested by Paul. */
3074 /* Ultrix mips cc rejects this. */
3075 typedef int charset[2];
3077 /* SunOS 4.1.1 cc rejects this. */
3078 char const *const *ccp;
3080 /* NEC SVR4.0.2 mips cc rejects this. */
3081 struct point {int x, y;};
3082 static struct point const zero = {0,0};
3083 /* AIX XL C 1.02.0.0 rejects this.
3084 It does not let you subtract one const X* pointer from another in
3085 an arm of an if-expression whose if-part is not a constant
3087 const char *g = "string";
3088 ccp = &g + (g ? g-g : 0);
3089 /* HPUX 7.0 cc rejects these. */
3092 ccp = (char const *const *) p;
3093 { /* SCO 3.2v4 cc rejects this. */
3095 char const *s = 0 ? (char *) 0 : (char const *) 0;
3099 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3101 const int *foo = &x[0];
3104 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3105 typedef const int *iptr;
3109 { /* AIX XL C 1.02.0.0 rejects this saying
3110 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3111 struct s { int j; const int *ap[3]; };
3112 struct s *b; b->j = 5;
3114 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3123 rm -f conftest.$ac_objext
3124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3125 (eval $ac_compile) 2>conftest.er1
3127 grep -v '^ *+' conftest.er1 >conftest.err
3129 cat conftest.err >&5
3130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131 (exit $ac_status); } &&
3132 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3137 (exit $ac_status); }; } &&
3138 { ac_try='test -s conftest.$ac_objext'
3139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3143 (exit $ac_status); }; }; then
3146 echo "$as_me: failed program was:" >&5
3147 sed 's/^/| /' conftest.$ac_ext >&5
3151 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3153 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3154 echo "${ECHO_T}$ac_cv_c_const" >&6
3155 if test $ac_cv_c_const = no; then
3157 cat >>confdefs.h <<\_ACEOF
3163 echo "$as_me:$LINENO: checking for pid_t" >&5
3164 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
3165 if test "${ac_cv_type_pid_t+set}" = set; then
3166 echo $ECHO_N "(cached) $ECHO_C" >&6
3168 cat >conftest.$ac_ext <<_ACEOF
3171 cat confdefs.h >>conftest.$ac_ext
3172 cat >>conftest.$ac_ext <<_ACEOF
3173 /* end confdefs.h. */
3174 $ac_includes_default
3186 rm -f conftest.$ac_objext
3187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3188 (eval $ac_compile) 2>conftest.er1
3190 grep -v '^ *+' conftest.er1 >conftest.err
3192 cat conftest.err >&5
3193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3194 (exit $ac_status); } &&
3195 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3200 (exit $ac_status); }; } &&
3201 { ac_try='test -s conftest.$ac_objext'
3202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3206 (exit $ac_status); }; }; then
3207 ac_cv_type_pid_t=yes
3209 echo "$as_me: failed program was:" >&5
3210 sed 's/^/| /' conftest.$ac_ext >&5
3214 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3216 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
3217 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
3218 if test $ac_cv_type_pid_t = yes; then
3222 cat >>confdefs.h <<_ACEOF
3228 echo "$as_me:$LINENO: checking for size_t" >&5
3229 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3230 if test "${ac_cv_type_size_t+set}" = set; then
3231 echo $ECHO_N "(cached) $ECHO_C" >&6
3233 cat >conftest.$ac_ext <<_ACEOF
3236 cat confdefs.h >>conftest.$ac_ext
3237 cat >>conftest.$ac_ext <<_ACEOF
3238 /* end confdefs.h. */
3239 $ac_includes_default
3245 if (sizeof (size_t))
3251 rm -f conftest.$ac_objext
3252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3253 (eval $ac_compile) 2>conftest.er1
3255 grep -v '^ *+' conftest.er1 >conftest.err
3257 cat conftest.err >&5
3258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3259 (exit $ac_status); } &&
3260 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3265 (exit $ac_status); }; } &&
3266 { ac_try='test -s conftest.$ac_objext'
3267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3271 (exit $ac_status); }; }; then
3272 ac_cv_type_size_t=yes
3274 echo "$as_me: failed program was:" >&5
3275 sed 's/^/| /' conftest.$ac_ext >&5
3277 ac_cv_type_size_t=no
3279 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3281 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
3282 echo "${ECHO_T}$ac_cv_type_size_t" >&6
3283 if test $ac_cv_type_size_t = yes; then
3287 cat >>confdefs.h <<_ACEOF
3288 #define size_t unsigned
3293 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
3294 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
3295 if test "${ac_cv_header_time+set}" = set; then
3296 echo $ECHO_N "(cached) $ECHO_C" >&6
3298 cat >conftest.$ac_ext <<_ACEOF
3301 cat confdefs.h >>conftest.$ac_ext
3302 cat >>conftest.$ac_ext <<_ACEOF
3303 /* end confdefs.h. */
3304 #include <sys/types.h>
3305 #include <sys/time.h>
3311 if ((struct tm *) 0)
3317 rm -f conftest.$ac_objext
3318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3319 (eval $ac_compile) 2>conftest.er1
3321 grep -v '^ *+' conftest.er1 >conftest.err
3323 cat conftest.err >&5
3324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3325 (exit $ac_status); } &&
3326 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3331 (exit $ac_status); }; } &&
3332 { ac_try='test -s conftest.$ac_objext'
3333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3337 (exit $ac_status); }; }; then
3338 ac_cv_header_time=yes
3340 echo "$as_me: failed program was:" >&5
3341 sed 's/^/| /' conftest.$ac_ext >&5
3343 ac_cv_header_time=no
3345 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3347 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
3348 echo "${ECHO_T}$ac_cv_header_time" >&6
3349 if test $ac_cv_header_time = yes; then
3351 cat >>confdefs.h <<\_ACEOF
3352 #define TIME_WITH_SYS_TIME 1
3358 # Checks for library functions.
3361 for ac_header in unistd.h vfork.h
3363 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3364 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3365 echo "$as_me:$LINENO: checking for $ac_header" >&5
3366 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3367 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3368 echo $ECHO_N "(cached) $ECHO_C" >&6
3370 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3371 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3373 # Is the header compilable?
3374 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3375 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3376 cat >conftest.$ac_ext <<_ACEOF
3379 cat confdefs.h >>conftest.$ac_ext
3380 cat >>conftest.$ac_ext <<_ACEOF
3381 /* end confdefs.h. */
3382 $ac_includes_default
3383 #include <$ac_header>
3385 rm -f conftest.$ac_objext
3386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3387 (eval $ac_compile) 2>conftest.er1
3389 grep -v '^ *+' conftest.er1 >conftest.err
3391 cat conftest.err >&5
3392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3393 (exit $ac_status); } &&
3394 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399 (exit $ac_status); }; } &&
3400 { ac_try='test -s conftest.$ac_objext'
3401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405 (exit $ac_status); }; }; then
3406 ac_header_compiler=yes
3408 echo "$as_me: failed program was:" >&5
3409 sed 's/^/| /' conftest.$ac_ext >&5
3411 ac_header_compiler=no
3413 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3414 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3415 echo "${ECHO_T}$ac_header_compiler" >&6
3417 # Is the header present?
3418 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3419 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3420 cat >conftest.$ac_ext <<_ACEOF
3423 cat confdefs.h >>conftest.$ac_ext
3424 cat >>conftest.$ac_ext <<_ACEOF
3425 /* end confdefs.h. */
3426 #include <$ac_header>
3428 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3429 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3431 grep -v '^ *+' conftest.er1 >conftest.err
3433 cat conftest.err >&5
3434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3435 (exit $ac_status); } >/dev/null; then
3436 if test -s conftest.err; then
3437 ac_cpp_err=$ac_c_preproc_warn_flag
3438 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3445 if test -z "$ac_cpp_err"; then
3446 ac_header_preproc=yes
3448 echo "$as_me: failed program was:" >&5
3449 sed 's/^/| /' conftest.$ac_ext >&5
3451 ac_header_preproc=no
3453 rm -f conftest.err conftest.$ac_ext
3454 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3455 echo "${ECHO_T}$ac_header_preproc" >&6
3457 # So? What about this header?
3458 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3460 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3461 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3462 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3463 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3464 ac_header_preproc=yes
3467 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3468 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3469 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3470 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3471 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3472 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3473 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3474 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3475 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3476 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3477 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3478 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3481 ## ---------------------------------------- ##
3482 ## Report this to fred_nerk@sourceforge.net ##
3483 ## ---------------------------------------- ##
3486 sed "s/^/$as_me: WARNING: /" >&2
3489 echo "$as_me:$LINENO: checking for $ac_header" >&5
3490 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3491 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3492 echo $ECHO_N "(cached) $ECHO_C" >&6
3494 eval "$as_ac_Header=\$ac_header_preproc"
3496 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3497 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3500 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3501 cat >>confdefs.h <<_ACEOF
3502 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3511 for ac_func in fork vfork
3513 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3514 echo "$as_me:$LINENO: checking for $ac_func" >&5
3515 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3516 if eval "test \"\${$as_ac_var+set}\" = set"; then
3517 echo $ECHO_N "(cached) $ECHO_C" >&6
3519 cat >conftest.$ac_ext <<_ACEOF
3522 cat confdefs.h >>conftest.$ac_ext
3523 cat >>conftest.$ac_ext <<_ACEOF
3524 /* end confdefs.h. */
3525 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3526 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3527 #define $ac_func innocuous_$ac_func
3529 /* System header to define __stub macros and hopefully few prototypes,
3530 which can conflict with char $ac_func (); below.
3531 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3532 <limits.h> exists even on freestanding compilers. */
3535 # include <limits.h>
3537 # include <assert.h>
3542 /* Override any gcc2 internal prototype to avoid an error. */
3547 /* We use char because int might match the return type of a gcc2
3548 builtin and then its argument prototype would still apply. */
3550 /* The GNU C library defines this for functions which it implements
3551 to always fail with ENOSYS. Some functions are actually named
3552 something starting with __ and the normal name is an alias. */
3553 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3556 char (*f) () = $ac_func;
3565 return f != $ac_func;
3570 rm -f conftest.$ac_objext conftest$ac_exeext
3571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3572 (eval $ac_link) 2>conftest.er1
3574 grep -v '^ *+' conftest.er1 >conftest.err
3576 cat conftest.err >&5
3577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3578 (exit $ac_status); } &&
3579 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3584 (exit $ac_status); }; } &&
3585 { ac_try='test -s conftest$ac_exeext'
3586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3590 (exit $ac_status); }; }; then
3591 eval "$as_ac_var=yes"
3593 echo "$as_me: failed program was:" >&5
3594 sed 's/^/| /' conftest.$ac_ext >&5
3596 eval "$as_ac_var=no"
3598 rm -f conftest.err conftest.$ac_objext \
3599 conftest$ac_exeext conftest.$ac_ext
3601 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3602 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3603 if test `eval echo '${'$as_ac_var'}'` = yes; then
3604 cat >>confdefs.h <<_ACEOF
3605 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3611 if test "x$ac_cv_func_fork" = xyes; then
3612 echo "$as_me:$LINENO: checking for working fork" >&5
3613 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
3614 if test "${ac_cv_func_fork_works+set}" = set; then
3615 echo $ECHO_N "(cached) $ECHO_C" >&6
3617 if test "$cross_compiling" = yes; then
3618 ac_cv_func_fork_works=cross
3620 cat >conftest.$ac_ext <<_ACEOF
3621 /* By Ruediger Kuhlmann. */
3622 #include <sys/types.h>
3624 # include <unistd.h>
3626 /* Some systems only have a dummy stub for fork() */
3634 rm -f conftest$ac_exeext
3635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3636 (eval $ac_link) 2>&5
3638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3639 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3644 (exit $ac_status); }; }; then
3645 ac_cv_func_fork_works=yes
3647 echo "$as_me: program exited with status $ac_status" >&5
3648 echo "$as_me: failed program was:" >&5
3649 sed 's/^/| /' conftest.$ac_ext >&5
3652 ac_cv_func_fork_works=no
3654 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3657 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
3658 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
3661 ac_cv_func_fork_works=$ac_cv_func_fork
3663 if test "x$ac_cv_func_fork_works" = xcross; then
3665 *-*-amigaos* | *-*-msdosdjgpp*)
3666 # Override, as these systems have only a dummy fork() stub
3667 ac_cv_func_fork_works=no
3670 ac_cv_func_fork_works=yes
3673 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
3674 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
3676 ac_cv_func_vfork_works=$ac_cv_func_vfork
3677 if test "x$ac_cv_func_vfork" = xyes; then
3678 echo "$as_me:$LINENO: checking for working vfork" >&5
3679 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
3680 if test "${ac_cv_func_vfork_works+set}" = set; then
3681 echo $ECHO_N "(cached) $ECHO_C" >&6
3683 if test "$cross_compiling" = yes; then
3684 ac_cv_func_vfork_works=cross
3686 cat >conftest.$ac_ext <<_ACEOF
3689 cat confdefs.h >>conftest.$ac_ext
3690 cat >>conftest.$ac_ext <<_ACEOF
3691 /* end confdefs.h. */
3692 /* Thanks to Paul Eggert for this test. */
3695 #include <sys/types.h>
3696 #include <sys/stat.h>
3697 #include <sys/wait.h>
3699 # include <unistd.h>
3704 /* On some sparc systems, changes by the child to local and incoming
3705 argument registers are propagated back to the parent. The compiler
3706 is told about this with #include <vfork.h>, but some compilers
3707 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
3708 static variable whose address is put into a register that is
3709 clobbered by the vfork. */
3712 sparc_address_test (int arg)
3714 sparc_address_test (arg) int arg;
3735 pid_t parent = getpid ();
3738 sparc_address_test (0);
3743 /* Here is another test for sparc vfork register problems. This
3744 test uses lots of local variables, at least as many local
3745 variables as main has allocated so far including compiler
3746 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
3747 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
3748 reuse the register of parent for one of the local variables,
3749 since it will think that parent can't possibly be used any more
3750 in this routine. Assigning to the local variable will thus
3751 munge parent in the parent process. */
3753 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
3754 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
3755 /* Convince the compiler that p..p7 are live; otherwise, it might
3756 use the same hardware register for all 8 local variables. */
3757 if (p != p1 || p != p2 || p != p3 || p != p4
3758 || p != p5 || p != p6 || p != p7)
3761 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
3762 from child file descriptors. If the child closes a descriptor
3763 before it execs or exits, this munges the parent's descriptor
3764 as well. Test for this by closing stdout in the child. */
3765 _exit(close(fileno(stdout)) != 0);
3770 while (wait(&status) != child)
3773 /* Was there some problem with vforking? */
3776 /* Did the child fail? (This shouldn't happen.) */
3779 /* Did the vfork/compiler bug occur? */
3780 || parent != getpid()
3782 /* Did the file descriptor bug occur? */
3783 || fstat(fileno(stdout), &st) != 0
3788 rm -f conftest$ac_exeext
3789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3790 (eval $ac_link) 2>&5
3792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3793 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798 (exit $ac_status); }; }; then
3799 ac_cv_func_vfork_works=yes
3801 echo "$as_me: program exited with status $ac_status" >&5
3802 echo "$as_me: failed program was:" >&5
3803 sed 's/^/| /' conftest.$ac_ext >&5
3806 ac_cv_func_vfork_works=no
3808 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3811 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
3812 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
3815 if test "x$ac_cv_func_fork_works" = xcross; then
3816 ac_cv_func_vfork_works=$ac_cv_func_vfork
3817 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
3818 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
3821 if test "x$ac_cv_func_vfork_works" = xyes; then
3823 cat >>confdefs.h <<\_ACEOF
3824 #define HAVE_WORKING_VFORK 1
3829 cat >>confdefs.h <<\_ACEOF
3834 if test "x$ac_cv_func_fork_works" = xyes; then
3836 cat >>confdefs.h <<\_ACEOF
3837 #define HAVE_WORKING_FORK 1
3842 if test $ac_cv_c_compiler_gnu = yes; then
3843 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3844 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3845 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3846 echo $ECHO_N "(cached) $ECHO_C" >&6
3848 ac_pattern="Autoconf.*'x'"
3849 cat >conftest.$ac_ext <<_ACEOF
3852 cat confdefs.h >>conftest.$ac_ext
3853 cat >>conftest.$ac_ext <<_ACEOF
3854 /* end confdefs.h. */
3858 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3859 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3860 ac_cv_prog_gcc_traditional=yes
3862 ac_cv_prog_gcc_traditional=no
3867 if test $ac_cv_prog_gcc_traditional = no; then
3868 cat >conftest.$ac_ext <<_ACEOF
3871 cat confdefs.h >>conftest.$ac_ext
3872 cat >>conftest.$ac_ext <<_ACEOF
3873 /* end confdefs.h. */
3877 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3878 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3879 ac_cv_prog_gcc_traditional=yes
3885 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3886 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3887 if test $ac_cv_prog_gcc_traditional = yes; then
3888 CC="$CC -traditional"
3893 for ac_header in stdlib.h
3895 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3896 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3897 echo "$as_me:$LINENO: checking for $ac_header" >&5
3898 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3899 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3900 echo $ECHO_N "(cached) $ECHO_C" >&6
3902 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3903 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3905 # Is the header compilable?
3906 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3907 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3908 cat >conftest.$ac_ext <<_ACEOF
3911 cat confdefs.h >>conftest.$ac_ext
3912 cat >>conftest.$ac_ext <<_ACEOF
3913 /* end confdefs.h. */
3914 $ac_includes_default
3915 #include <$ac_header>
3917 rm -f conftest.$ac_objext
3918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3919 (eval $ac_compile) 2>conftest.er1
3921 grep -v '^ *+' conftest.er1 >conftest.err
3923 cat conftest.err >&5
3924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3925 (exit $ac_status); } &&
3926 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3931 (exit $ac_status); }; } &&
3932 { ac_try='test -s conftest.$ac_objext'
3933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3937 (exit $ac_status); }; }; then
3938 ac_header_compiler=yes
3940 echo "$as_me: failed program was:" >&5
3941 sed 's/^/| /' conftest.$ac_ext >&5
3943 ac_header_compiler=no
3945 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3946 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3947 echo "${ECHO_T}$ac_header_compiler" >&6
3949 # Is the header present?
3950 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3951 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3952 cat >conftest.$ac_ext <<_ACEOF
3955 cat confdefs.h >>conftest.$ac_ext
3956 cat >>conftest.$ac_ext <<_ACEOF
3957 /* end confdefs.h. */
3958 #include <$ac_header>
3960 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3961 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3963 grep -v '^ *+' conftest.er1 >conftest.err
3965 cat conftest.err >&5
3966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3967 (exit $ac_status); } >/dev/null; then
3968 if test -s conftest.err; then
3969 ac_cpp_err=$ac_c_preproc_warn_flag
3970 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3977 if test -z "$ac_cpp_err"; then
3978 ac_header_preproc=yes
3980 echo "$as_me: failed program was:" >&5
3981 sed 's/^/| /' conftest.$ac_ext >&5
3983 ac_header_preproc=no
3985 rm -f conftest.err conftest.$ac_ext
3986 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3987 echo "${ECHO_T}$ac_header_preproc" >&6
3989 # So? What about this header?
3990 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3992 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3993 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3994 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3995 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3996 ac_header_preproc=yes
3999 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4000 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4001 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4002 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4003 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4004 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4005 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4006 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4007 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4008 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4009 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4010 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4013 ## ---------------------------------------- ##
4014 ## Report this to fred_nerk@sourceforge.net ##
4015 ## ---------------------------------------- ##
4018 sed "s/^/$as_me: WARNING: /" >&2
4021 echo "$as_me:$LINENO: checking for $ac_header" >&5
4022 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4023 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4024 echo $ECHO_N "(cached) $ECHO_C" >&6
4026 eval "$as_ac_Header=\$ac_header_preproc"
4028 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4029 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4032 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4033 cat >>confdefs.h <<_ACEOF
4034 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4041 echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
4042 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
4043 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
4044 echo $ECHO_N "(cached) $ECHO_C" >&6
4046 if test "$cross_compiling" = yes; then
4047 ac_cv_func_malloc_0_nonnull=no
4049 cat >conftest.$ac_ext <<_ACEOF
4052 cat confdefs.h >>conftest.$ac_ext
4053 cat >>conftest.$ac_ext <<_ACEOF
4054 /* end confdefs.h. */
4055 #if STDC_HEADERS || HAVE_STDLIB_H
4056 # include <stdlib.h>
4064 exit (malloc (0) ? 0 : 1);
4069 rm -f conftest$ac_exeext
4070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4071 (eval $ac_link) 2>&5
4073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4074 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4079 (exit $ac_status); }; }; then
4080 ac_cv_func_malloc_0_nonnull=yes
4082 echo "$as_me: program exited with status $ac_status" >&5
4083 echo "$as_me: failed program was:" >&5
4084 sed 's/^/| /' conftest.$ac_ext >&5
4087 ac_cv_func_malloc_0_nonnull=no
4089 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4092 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
4093 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
4094 if test $ac_cv_func_malloc_0_nonnull = yes; then
4096 cat >>confdefs.h <<\_ACEOF
4097 #define HAVE_MALLOC 1
4101 cat >>confdefs.h <<\_ACEOF
4102 #define HAVE_MALLOC 0
4106 "malloc.$ac_objext" | \
4107 *" malloc.$ac_objext" | \
4108 "malloc.$ac_objext "* | \
4109 *" malloc.$ac_objext "* ) ;;
4110 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
4114 cat >>confdefs.h <<\_ACEOF
4115 #define malloc rpl_malloc
4122 echo "$as_me:$LINENO: checking for working memcmp" >&5
4123 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
4124 if test "${ac_cv_func_memcmp_working+set}" = set; then
4125 echo $ECHO_N "(cached) $ECHO_C" >&6
4127 if test "$cross_compiling" = yes; then
4128 ac_cv_func_memcmp_working=no
4130 cat >conftest.$ac_ext <<_ACEOF
4133 cat confdefs.h >>conftest.$ac_ext
4134 cat >>conftest.$ac_ext <<_ACEOF
4135 /* end confdefs.h. */
4136 $ac_includes_default
4141 /* Some versions of memcmp are not 8-bit clean. */
4142 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
4143 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
4146 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
4147 or more and with at least one buffer not starting on a 4-byte boundary.
4148 William Lewis provided this test program. */
4153 for (i = 0; i < 4; i++)
4157 strcpy (a, "--------01111111");
4158 strcpy (b, "--------10000000");
4159 if (memcmp (a, b, 16) >= 0)
4169 rm -f conftest$ac_exeext
4170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4171 (eval $ac_link) 2>&5
4173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4174 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4179 (exit $ac_status); }; }; then
4180 ac_cv_func_memcmp_working=yes
4182 echo "$as_me: program exited with status $ac_status" >&5
4183 echo "$as_me: failed program was:" >&5
4184 sed 's/^/| /' conftest.$ac_ext >&5
4187 ac_cv_func_memcmp_working=no
4189 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4192 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
4193 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
4194 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
4195 "memcmp.$ac_objext" | \
4196 *" memcmp.$ac_objext" | \
4197 "memcmp.$ac_objext "* | \
4198 *" memcmp.$ac_objext "* ) ;;
4199 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
4205 for ac_header in stdlib.h unistd.h
4207 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4208 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4209 echo "$as_me:$LINENO: checking for $ac_header" >&5
4210 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4211 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4212 echo $ECHO_N "(cached) $ECHO_C" >&6
4214 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4215 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4217 # Is the header compilable?
4218 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4219 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4220 cat >conftest.$ac_ext <<_ACEOF
4223 cat confdefs.h >>conftest.$ac_ext
4224 cat >>conftest.$ac_ext <<_ACEOF
4225 /* end confdefs.h. */
4226 $ac_includes_default
4227 #include <$ac_header>
4229 rm -f conftest.$ac_objext
4230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4231 (eval $ac_compile) 2>conftest.er1
4233 grep -v '^ *+' conftest.er1 >conftest.err
4235 cat conftest.err >&5
4236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4237 (exit $ac_status); } &&
4238 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4243 (exit $ac_status); }; } &&
4244 { ac_try='test -s conftest.$ac_objext'
4245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4249 (exit $ac_status); }; }; then
4250 ac_header_compiler=yes
4252 echo "$as_me: failed program was:" >&5
4253 sed 's/^/| /' conftest.$ac_ext >&5
4255 ac_header_compiler=no
4257 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4258 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4259 echo "${ECHO_T}$ac_header_compiler" >&6
4261 # Is the header present?
4262 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4263 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4264 cat >conftest.$ac_ext <<_ACEOF
4267 cat confdefs.h >>conftest.$ac_ext
4268 cat >>conftest.$ac_ext <<_ACEOF
4269 /* end confdefs.h. */
4270 #include <$ac_header>
4272 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4273 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4275 grep -v '^ *+' conftest.er1 >conftest.err
4277 cat conftest.err >&5
4278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4279 (exit $ac_status); } >/dev/null; then
4280 if test -s conftest.err; then
4281 ac_cpp_err=$ac_c_preproc_warn_flag
4282 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4289 if test -z "$ac_cpp_err"; then
4290 ac_header_preproc=yes
4292 echo "$as_me: failed program was:" >&5
4293 sed 's/^/| /' conftest.$ac_ext >&5
4295 ac_header_preproc=no
4297 rm -f conftest.err conftest.$ac_ext
4298 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4299 echo "${ECHO_T}$ac_header_preproc" >&6
4301 # So? What about this header?
4302 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4304 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4305 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4306 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4307 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4308 ac_header_preproc=yes
4311 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4312 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4313 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4314 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4315 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4316 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4317 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4318 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4319 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4320 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4321 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4322 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4325 ## ---------------------------------------- ##
4326 ## Report this to fred_nerk@sourceforge.net ##
4327 ## ---------------------------------------- ##
4330 sed "s/^/$as_me: WARNING: /" >&2
4333 echo "$as_me:$LINENO: checking for $ac_header" >&5
4334 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4335 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4336 echo $ECHO_N "(cached) $ECHO_C" >&6
4338 eval "$as_ac_Header=\$ac_header_preproc"
4340 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4341 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4344 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4345 cat >>confdefs.h <<_ACEOF
4346 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4354 for ac_func in getpagesize
4356 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4357 echo "$as_me:$LINENO: checking for $ac_func" >&5
4358 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4359 if eval "test \"\${$as_ac_var+set}\" = set"; then
4360 echo $ECHO_N "(cached) $ECHO_C" >&6
4362 cat >conftest.$ac_ext <<_ACEOF
4365 cat confdefs.h >>conftest.$ac_ext
4366 cat >>conftest.$ac_ext <<_ACEOF
4367 /* end confdefs.h. */
4368 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4369 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4370 #define $ac_func innocuous_$ac_func
4372 /* System header to define __stub macros and hopefully few prototypes,
4373 which can conflict with char $ac_func (); below.
4374 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4375 <limits.h> exists even on freestanding compilers. */
4378 # include <limits.h>
4380 # include <assert.h>
4385 /* Override any gcc2 internal prototype to avoid an error. */
4390 /* We use char because int might match the return type of a gcc2
4391 builtin and then its argument prototype would still apply. */
4393 /* The GNU C library defines this for functions which it implements
4394 to always fail with ENOSYS. Some functions are actually named
4395 something starting with __ and the normal name is an alias. */
4396 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4399 char (*f) () = $ac_func;
4408 return f != $ac_func;
4413 rm -f conftest.$ac_objext conftest$ac_exeext
4414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4415 (eval $ac_link) 2>conftest.er1
4417 grep -v '^ *+' conftest.er1 >conftest.err
4419 cat conftest.err >&5
4420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4421 (exit $ac_status); } &&
4422 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4427 (exit $ac_status); }; } &&
4428 { ac_try='test -s conftest$ac_exeext'
4429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4433 (exit $ac_status); }; }; then
4434 eval "$as_ac_var=yes"
4436 echo "$as_me: failed program was:" >&5
4437 sed 's/^/| /' conftest.$ac_ext >&5
4439 eval "$as_ac_var=no"
4441 rm -f conftest.err conftest.$ac_objext \
4442 conftest$ac_exeext conftest.$ac_ext
4444 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4445 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4446 if test `eval echo '${'$as_ac_var'}'` = yes; then
4447 cat >>confdefs.h <<_ACEOF
4448 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4454 echo "$as_me:$LINENO: checking for working mmap" >&5
4455 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
4456 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
4457 echo $ECHO_N "(cached) $ECHO_C" >&6
4459 if test "$cross_compiling" = yes; then
4460 ac_cv_func_mmap_fixed_mapped=no
4462 cat >conftest.$ac_ext <<_ACEOF
4465 cat confdefs.h >>conftest.$ac_ext
4466 cat >>conftest.$ac_ext <<_ACEOF
4467 /* end confdefs.h. */
4468 $ac_includes_default
4469 /* malloc might have been renamed as rpl_malloc. */
4472 /* Thanks to Mike Haertel and Jim Avera for this test.
4473 Here is a matrix of mmap possibilities:
4474 mmap private not fixed
4475 mmap private fixed at somewhere currently unmapped
4476 mmap private fixed at somewhere already mapped
4477 mmap shared not fixed
4478 mmap shared fixed at somewhere currently unmapped
4479 mmap shared fixed at somewhere already mapped
4480 For private mappings, we should verify that changes cannot be read()
4481 back from the file, nor mmap's back from the file at a different
4482 address. (There have been systems where private was not correctly
4483 implemented like the infamous i386 svr4.0, and systems where the
4484 VM page cache was not coherent with the file system buffer cache
4485 like early versions of FreeBSD and possibly contemporary NetBSD.)
4486 For shared mappings, we should conversely verify that changes get
4487 propagated back to all the places they're supposed to be.
4489 Grep wants private fixed already mapped.
4490 The main things grep needs to know about mmap are:
4491 * does it exist and is it safe to write into the mmap'd area
4492 * how to use it (BSD variants) */
4495 #include <sys/mman.h>
4497 #if !STDC_HEADERS && !HAVE_STDLIB_H
4501 /* This mess was copied from the GNU getpagesize.h. */
4502 #if !HAVE_GETPAGESIZE
4503 /* Assume that all systems that can run configure have sys/param.h. */
4504 # if !HAVE_SYS_PARAM_H
4505 # define HAVE_SYS_PARAM_H 1
4508 # ifdef _SC_PAGESIZE
4509 # define getpagesize() sysconf(_SC_PAGESIZE)
4510 # else /* no _SC_PAGESIZE */
4511 # if HAVE_SYS_PARAM_H
4512 # include <sys/param.h>
4513 # ifdef EXEC_PAGESIZE
4514 # define getpagesize() EXEC_PAGESIZE
4515 # else /* no EXEC_PAGESIZE */
4517 # define getpagesize() NBPG * CLSIZE
4520 # endif /* no CLSIZE */
4521 # else /* no NBPG */
4523 # define getpagesize() NBPC
4524 # else /* no NBPC */
4526 # define getpagesize() PAGESIZE
4527 # endif /* PAGESIZE */
4528 # endif /* no NBPC */
4529 # endif /* no NBPG */
4530 # endif /* no EXEC_PAGESIZE */
4531 # else /* no HAVE_SYS_PARAM_H */
4532 # define getpagesize() 8192 /* punt totally */
4533 # endif /* no HAVE_SYS_PARAM_H */
4534 # endif /* no _SC_PAGESIZE */
4536 #endif /* no HAVE_GETPAGESIZE */
4541 char *data, *data2, *data3;
4545 pagesize = getpagesize ();
4547 /* First, make a file with some known garbage in it. */
4548 data = (char *) malloc (pagesize);
4551 for (i = 0; i < pagesize; ++i)
4552 *(data + i) = rand ();
4554 fd = creat ("conftest.mmap", 0600);
4557 if (write (fd, data, pagesize) != pagesize)
4561 /* Next, try to mmap the file at a fixed address which already has
4562 something else allocated at it. If we can, also make sure that
4563 we see the same garbage. */
4564 fd = open ("conftest.mmap", O_RDWR);
4567 data2 = (char *) malloc (2 * pagesize);
4570 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
4571 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
4572 MAP_PRIVATE | MAP_FIXED, fd, 0L))
4574 for (i = 0; i < pagesize; ++i)
4575 if (*(data + i) != *(data2 + i))
4578 /* Finally, make sure that changes to the mapped area do not
4579 percolate back to the file as seen by read(). (This is a bug on
4580 some variants of i386 svr4.0.) */
4581 for (i = 0; i < pagesize; ++i)
4582 *(data2 + i) = *(data2 + i) + 1;
4583 data3 = (char *) malloc (pagesize);
4586 if (read (fd, data3, pagesize) != pagesize)
4588 for (i = 0; i < pagesize; ++i)
4589 if (*(data + i) != *(data3 + i))
4595 rm -f conftest$ac_exeext
4596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4597 (eval $ac_link) 2>&5
4599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4600 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4605 (exit $ac_status); }; }; then
4606 ac_cv_func_mmap_fixed_mapped=yes
4608 echo "$as_me: program exited with status $ac_status" >&5
4609 echo "$as_me: failed program was:" >&5
4610 sed 's/^/| /' conftest.$ac_ext >&5
4613 ac_cv_func_mmap_fixed_mapped=no
4615 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4618 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
4619 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
4620 if test $ac_cv_func_mmap_fixed_mapped = yes; then
4622 cat >>confdefs.h <<\_ACEOF
4631 for ac_header in sys/select.h sys/socket.h
4633 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4634 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4635 echo "$as_me:$LINENO: checking for $ac_header" >&5
4636 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4637 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4638 echo $ECHO_N "(cached) $ECHO_C" >&6
4640 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4641 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4643 # Is the header compilable?
4644 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4645 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4646 cat >conftest.$ac_ext <<_ACEOF
4649 cat confdefs.h >>conftest.$ac_ext
4650 cat >>conftest.$ac_ext <<_ACEOF
4651 /* end confdefs.h. */
4652 $ac_includes_default
4653 #include <$ac_header>
4655 rm -f conftest.$ac_objext
4656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4657 (eval $ac_compile) 2>conftest.er1
4659 grep -v '^ *+' conftest.er1 >conftest.err
4661 cat conftest.err >&5
4662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4663 (exit $ac_status); } &&
4664 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4669 (exit $ac_status); }; } &&
4670 { ac_try='test -s conftest.$ac_objext'
4671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675 (exit $ac_status); }; }; then
4676 ac_header_compiler=yes
4678 echo "$as_me: failed program was:" >&5
4679 sed 's/^/| /' conftest.$ac_ext >&5
4681 ac_header_compiler=no
4683 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4684 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4685 echo "${ECHO_T}$ac_header_compiler" >&6
4687 # Is the header present?
4688 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4689 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4690 cat >conftest.$ac_ext <<_ACEOF
4693 cat confdefs.h >>conftest.$ac_ext
4694 cat >>conftest.$ac_ext <<_ACEOF
4695 /* end confdefs.h. */
4696 #include <$ac_header>
4698 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4699 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4701 grep -v '^ *+' conftest.er1 >conftest.err
4703 cat conftest.err >&5
4704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4705 (exit $ac_status); } >/dev/null; then
4706 if test -s conftest.err; then
4707 ac_cpp_err=$ac_c_preproc_warn_flag
4708 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4715 if test -z "$ac_cpp_err"; then
4716 ac_header_preproc=yes
4718 echo "$as_me: failed program was:" >&5
4719 sed 's/^/| /' conftest.$ac_ext >&5
4721 ac_header_preproc=no
4723 rm -f conftest.err conftest.$ac_ext
4724 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4725 echo "${ECHO_T}$ac_header_preproc" >&6
4727 # So? What about this header?
4728 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4730 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4731 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4732 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4733 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4734 ac_header_preproc=yes
4737 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4738 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4739 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4740 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4741 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4742 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4743 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4744 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4745 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4746 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4747 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4748 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4751 ## ---------------------------------------- ##
4752 ## Report this to fred_nerk@sourceforge.net ##
4753 ## ---------------------------------------- ##
4756 sed "s/^/$as_me: WARNING: /" >&2
4759 echo "$as_me:$LINENO: checking for $ac_header" >&5
4760 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4761 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4762 echo $ECHO_N "(cached) $ECHO_C" >&6
4764 eval "$as_ac_Header=\$ac_header_preproc"
4766 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4767 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4770 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4771 cat >>confdefs.h <<_ACEOF
4772 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4779 echo "$as_me:$LINENO: checking types of arguments for select" >&5
4780 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
4781 if test "${ac_cv_func_select_args+set}" = set; then
4782 echo $ECHO_N "(cached) $ECHO_C" >&6
4784 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
4785 for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
4786 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
4787 cat >conftest.$ac_ext <<_ACEOF
4790 cat confdefs.h >>conftest.$ac_ext
4791 cat >>conftest.$ac_ext <<_ACEOF
4792 /* end confdefs.h. */
4793 $ac_includes_default
4794 #if HAVE_SYS_SELECT_H
4795 # include <sys/select.h>
4797 #if HAVE_SYS_SOCKET_H
4798 # include <sys/socket.h>
4804 extern int select ($ac_arg1,
4805 $ac_arg234, $ac_arg234, $ac_arg234,
4811 rm -f conftest.$ac_objext
4812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4813 (eval $ac_compile) 2>conftest.er1
4815 grep -v '^ *+' conftest.er1 >conftest.err
4817 cat conftest.err >&5
4818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4819 (exit $ac_status); } &&
4820 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4825 (exit $ac_status); }; } &&
4826 { ac_try='test -s conftest.$ac_objext'
4827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4831 (exit $ac_status); }; }; then
4832 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
4834 echo "$as_me: failed program was:" >&5
4835 sed 's/^/| /' conftest.$ac_ext >&5
4838 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4842 # Provide a safe default value.
4843 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
4846 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
4847 echo "${ECHO_T}$ac_cv_func_select_args" >&6
4848 ac_save_IFS=$IFS; IFS=','
4849 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
4853 cat >>confdefs.h <<_ACEOF
4854 #define SELECT_TYPE_ARG1 $1
4858 cat >>confdefs.h <<_ACEOF
4859 #define SELECT_TYPE_ARG234 ($2)
4863 cat >>confdefs.h <<_ACEOF
4864 #define SELECT_TYPE_ARG5 ($3)
4869 echo "$as_me:$LINENO: checking for function prototypes" >&5
4870 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
4871 if test "$ac_cv_prog_cc_stdc" != no; then
4872 echo "$as_me:$LINENO: result: yes" >&5
4873 echo "${ECHO_T}yes" >&6
4875 cat >>confdefs.h <<\_ACEOF
4876 #define PROTOTYPES 1
4880 cat >>confdefs.h <<\_ACEOF
4881 #define __PROTOTYPES 1
4885 echo "$as_me:$LINENO: result: no" >&5
4886 echo "${ECHO_T}no" >&6
4889 echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
4890 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
4891 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
4892 echo $ECHO_N "(cached) $ECHO_C" >&6
4894 ac_cv_func_setvbuf_reversed=no
4895 cat >conftest.$ac_ext <<_ACEOF
4898 cat confdefs.h >>conftest.$ac_ext
4899 cat >>conftest.$ac_ext <<_ACEOF
4900 /* end confdefs.h. */
4903 int (setvbuf) (FILE *, int, char *, size_t);
4908 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
4913 rm -f conftest.$ac_objext conftest$ac_exeext
4914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4915 (eval $ac_link) 2>conftest.er1
4917 grep -v '^ *+' conftest.er1 >conftest.err
4919 cat conftest.err >&5
4920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4921 (exit $ac_status); } &&
4922 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4927 (exit $ac_status); }; } &&
4928 { ac_try='test -s conftest$ac_exeext'
4929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4933 (exit $ac_status); }; }; then
4934 cat >conftest.$ac_ext <<_ACEOF
4937 cat confdefs.h >>conftest.$ac_ext
4938 cat >>conftest.$ac_ext <<_ACEOF
4939 /* end confdefs.h. */
4942 int (setvbuf) (FILE *, int, char *, size_t);
4947 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
4952 rm -f conftest.$ac_objext conftest$ac_exeext
4953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4954 (eval $ac_link) 2>conftest.er1
4956 grep -v '^ *+' conftest.er1 >conftest.err
4958 cat conftest.err >&5
4959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4960 (exit $ac_status); } &&
4961 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4966 (exit $ac_status); }; } &&
4967 { ac_try='test -s conftest$ac_exeext'
4968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4972 (exit $ac_status); }; }; then
4973 # It compiles and links either way, so it must not be declared
4974 # with a prototype and most likely this is a K&R C compiler.
4976 if test "$cross_compiling" = yes; then
4977 : # Assume setvbuf is not reversed when cross-compiling.
4979 cat >conftest.$ac_ext <<_ACEOF
4982 cat confdefs.h >>conftest.$ac_ext
4983 cat >>conftest.$ac_ext <<_ACEOF
4984 /* end confdefs.h. */
4989 /* This call has the arguments reversed.
4990 A reversed system may check and see that the address of buf
4991 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
4993 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
4996 exit (0); /* Non-reversed systems SEGV here. */
5001 rm -f conftest$ac_exeext
5002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5003 (eval $ac_link) 2>&5
5005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5006 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5011 (exit $ac_status); }; }; then
5012 ac_cv_func_setvbuf_reversed=yes
5014 echo "$as_me: program exited with status $ac_status" >&5
5015 echo "$as_me: failed program was:" >&5
5016 sed 's/^/| /' conftest.$ac_ext >&5
5021 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5023 ac_cv_func_setvbuf_reversed=yes
5025 echo "$as_me: failed program was:" >&5
5026 sed 's/^/| /' conftest.$ac_ext >&5
5029 rm -f conftest.err conftest.$ac_objext \
5030 conftest$ac_exeext conftest.$ac_ext
5032 echo "$as_me: failed program was:" >&5
5033 sed 's/^/| /' conftest.$ac_ext >&5
5036 rm -f conftest.err conftest.$ac_objext \
5037 conftest$ac_exeext conftest.$ac_ext
5039 echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
5040 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
5041 if test $ac_cv_func_setvbuf_reversed = yes; then
5043 cat >>confdefs.h <<\_ACEOF
5044 #define SETVBUF_REVERSED 1
5049 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5050 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
5051 if test "${ac_cv_type_signal+set}" = set; then
5052 echo $ECHO_N "(cached) $ECHO_C" >&6
5054 cat >conftest.$ac_ext <<_ACEOF
5057 cat confdefs.h >>conftest.$ac_ext
5058 cat >>conftest.$ac_ext <<_ACEOF
5059 /* end confdefs.h. */
5060 #include <sys/types.h>
5066 extern "C" void (*signal (int, void (*)(int)))(int);
5068 void (*signal ()) ();
5079 rm -f conftest.$ac_objext
5080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5081 (eval $ac_compile) 2>conftest.er1
5083 grep -v '^ *+' conftest.er1 >conftest.err
5085 cat conftest.err >&5
5086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5087 (exit $ac_status); } &&
5088 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5093 (exit $ac_status); }; } &&
5094 { ac_try='test -s conftest.$ac_objext'
5095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5099 (exit $ac_status); }; }; then
5100 ac_cv_type_signal=void
5102 echo "$as_me: failed program was:" >&5
5103 sed 's/^/| /' conftest.$ac_ext >&5
5105 ac_cv_type_signal=int
5107 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5109 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5110 echo "${ECHO_T}$ac_cv_type_signal" >&6
5112 cat >>confdefs.h <<_ACEOF
5113 #define RETSIGTYPE $ac_cv_type_signal
5117 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
5118 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
5119 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
5120 echo $ECHO_N "(cached) $ECHO_C" >&6
5122 rm -f conftest.sym conftest.file
5124 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
5125 if test "$cross_compiling" = yes; then
5126 ac_cv_func_lstat_dereferences_slashed_symlink=no
5128 cat >conftest.$ac_ext <<_ACEOF
5131 cat confdefs.h >>conftest.$ac_ext
5132 cat >>conftest.$ac_ext <<_ACEOF
5133 /* end confdefs.h. */
5134 $ac_includes_default
5139 /* Linux will dereference the symlink and fail.
5140 That is better in the sense that it means we will not
5141 have to compile and use the lstat wrapper. */
5142 exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
5147 rm -f conftest$ac_exeext
5148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5149 (eval $ac_link) 2>&5
5151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5152 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5157 (exit $ac_status); }; }; then
5158 ac_cv_func_lstat_dereferences_slashed_symlink=yes
5160 echo "$as_me: program exited with status $ac_status" >&5
5161 echo "$as_me: failed program was:" >&5
5162 sed 's/^/| /' conftest.$ac_ext >&5
5165 ac_cv_func_lstat_dereferences_slashed_symlink=no
5167 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5170 # If the `ln -s' command failed, then we probably don't even
5171 # have an lstat function.
5172 ac_cv_func_lstat_dereferences_slashed_symlink=no
5174 rm -f conftest.sym conftest.file
5177 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
5178 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
5180 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
5182 cat >>confdefs.h <<_ACEOF
5183 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
5187 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
5189 "lstat.$ac_objext" | \
5190 *" lstat.$ac_objext" | \
5191 "lstat.$ac_objext "* | \
5192 *" lstat.$ac_objext "* ) ;;
5193 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
5198 echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
5199 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
5200 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
5201 echo $ECHO_N "(cached) $ECHO_C" >&6
5203 if test "$cross_compiling" = yes; then
5204 ac_cv_func_stat_empty_string_bug=yes
5206 cat >conftest.$ac_ext <<_ACEOF
5209 cat confdefs.h >>conftest.$ac_ext
5210 cat >>conftest.$ac_ext <<_ACEOF
5211 /* end confdefs.h. */
5212 $ac_includes_default
5217 exit (stat ("", &sbuf) ? 1 : 0);
5222 rm -f conftest$ac_exeext
5223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5224 (eval $ac_link) 2>&5
5226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5227 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5232 (exit $ac_status); }; }; then
5233 ac_cv_func_stat_empty_string_bug=yes
5235 echo "$as_me: program exited with status $ac_status" >&5
5236 echo "$as_me: failed program was:" >&5
5237 sed 's/^/| /' conftest.$ac_ext >&5
5240 ac_cv_func_stat_empty_string_bug=no
5242 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5245 echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
5246 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
5247 if test $ac_cv_func_stat_empty_string_bug = yes; then
5249 "stat.$ac_objext" | \
5250 *" stat.$ac_objext" | \
5251 "stat.$ac_objext "* | \
5252 *" stat.$ac_objext "* ) ;;
5253 *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;;
5257 cat >>confdefs.h <<_ACEOF
5258 #define HAVE_STAT_EMPTY_STRING_BUG 1
5264 for ac_func in strftime
5266 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5267 echo "$as_me:$LINENO: checking for $ac_func" >&5
5268 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5269 if eval "test \"\${$as_ac_var+set}\" = set"; then
5270 echo $ECHO_N "(cached) $ECHO_C" >&6
5272 cat >conftest.$ac_ext <<_ACEOF
5275 cat confdefs.h >>conftest.$ac_ext
5276 cat >>conftest.$ac_ext <<_ACEOF
5277 /* end confdefs.h. */
5278 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5279 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5280 #define $ac_func innocuous_$ac_func
5282 /* System header to define __stub macros and hopefully few prototypes,
5283 which can conflict with char $ac_func (); below.
5284 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5285 <limits.h> exists even on freestanding compilers. */
5288 # include <limits.h>
5290 # include <assert.h>
5295 /* Override any gcc2 internal prototype to avoid an error. */
5300 /* We use char because int might match the return type of a gcc2
5301 builtin and then its argument prototype would still apply. */
5303 /* The GNU C library defines this for functions which it implements
5304 to always fail with ENOSYS. Some functions are actually named
5305 something starting with __ and the normal name is an alias. */
5306 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5309 char (*f) () = $ac_func;
5318 return f != $ac_func;
5323 rm -f conftest.$ac_objext conftest$ac_exeext
5324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5325 (eval $ac_link) 2>conftest.er1
5327 grep -v '^ *+' conftest.er1 >conftest.err
5329 cat conftest.err >&5
5330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5331 (exit $ac_status); } &&
5332 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5337 (exit $ac_status); }; } &&
5338 { ac_try='test -s conftest$ac_exeext'
5339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5343 (exit $ac_status); }; }; then
5344 eval "$as_ac_var=yes"
5346 echo "$as_me: failed program was:" >&5
5347 sed 's/^/| /' conftest.$ac_ext >&5
5349 eval "$as_ac_var=no"
5351 rm -f conftest.err conftest.$ac_objext \
5352 conftest$ac_exeext conftest.$ac_ext
5354 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5355 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5356 if test `eval echo '${'$as_ac_var'}'` = yes; then
5357 cat >>confdefs.h <<_ACEOF
5358 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5362 # strftime is in -lintl on SCO UNIX.
5363 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
5364 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
5365 if test "${ac_cv_lib_intl_strftime+set}" = set; then
5366 echo $ECHO_N "(cached) $ECHO_C" >&6
5368 ac_check_lib_save_LIBS=$LIBS
5370 cat >conftest.$ac_ext <<_ACEOF
5373 cat confdefs.h >>conftest.$ac_ext
5374 cat >>conftest.$ac_ext <<_ACEOF
5375 /* end confdefs.h. */
5377 /* Override any gcc2 internal prototype to avoid an error. */
5381 /* We use char because int might match the return type of a gcc2
5382 builtin and then its argument prototype would still apply. */
5392 rm -f conftest.$ac_objext conftest$ac_exeext
5393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5394 (eval $ac_link) 2>conftest.er1
5396 grep -v '^ *+' conftest.er1 >conftest.err
5398 cat conftest.err >&5
5399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5400 (exit $ac_status); } &&
5401 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5406 (exit $ac_status); }; } &&
5407 { ac_try='test -s conftest$ac_exeext'
5408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5412 (exit $ac_status); }; }; then
5413 ac_cv_lib_intl_strftime=yes
5415 echo "$as_me: failed program was:" >&5
5416 sed 's/^/| /' conftest.$ac_ext >&5
5418 ac_cv_lib_intl_strftime=no
5420 rm -f conftest.err conftest.$ac_objext \
5421 conftest$ac_exeext conftest.$ac_ext
5422 LIBS=$ac_check_lib_save_LIBS
5424 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
5425 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
5426 if test $ac_cv_lib_intl_strftime = yes; then
5427 cat >>confdefs.h <<\_ACEOF
5428 #define HAVE_STRFTIME 1
5438 for ac_func in vprintf
5440 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5441 echo "$as_me:$LINENO: checking for $ac_func" >&5
5442 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5443 if eval "test \"\${$as_ac_var+set}\" = set"; then
5444 echo $ECHO_N "(cached) $ECHO_C" >&6
5446 cat >conftest.$ac_ext <<_ACEOF
5449 cat confdefs.h >>conftest.$ac_ext
5450 cat >>conftest.$ac_ext <<_ACEOF
5451 /* end confdefs.h. */
5452 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5453 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5454 #define $ac_func innocuous_$ac_func
5456 /* System header to define __stub macros and hopefully few prototypes,
5457 which can conflict with char $ac_func (); below.
5458 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5459 <limits.h> exists even on freestanding compilers. */
5462 # include <limits.h>
5464 # include <assert.h>
5469 /* Override any gcc2 internal prototype to avoid an error. */
5474 /* We use char because int might match the return type of a gcc2
5475 builtin and then its argument prototype would still apply. */
5477 /* The GNU C library defines this for functions which it implements
5478 to always fail with ENOSYS. Some functions are actually named
5479 something starting with __ and the normal name is an alias. */
5480 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5483 char (*f) () = $ac_func;
5492 return f != $ac_func;
5497 rm -f conftest.$ac_objext conftest$ac_exeext
5498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5499 (eval $ac_link) 2>conftest.er1
5501 grep -v '^ *+' conftest.er1 >conftest.err
5503 cat conftest.err >&5
5504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5505 (exit $ac_status); } &&
5506 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5511 (exit $ac_status); }; } &&
5512 { ac_try='test -s conftest$ac_exeext'
5513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5517 (exit $ac_status); }; }; then
5518 eval "$as_ac_var=yes"
5520 echo "$as_me: failed program was:" >&5
5521 sed 's/^/| /' conftest.$ac_ext >&5
5523 eval "$as_ac_var=no"
5525 rm -f conftest.err conftest.$ac_objext \
5526 conftest$ac_exeext conftest.$ac_ext
5528 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5529 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5530 if test `eval echo '${'$as_ac_var'}'` = yes; then
5531 cat >>confdefs.h <<_ACEOF
5532 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5535 echo "$as_me:$LINENO: checking for _doprnt" >&5
5536 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
5537 if test "${ac_cv_func__doprnt+set}" = set; then
5538 echo $ECHO_N "(cached) $ECHO_C" >&6
5540 cat >conftest.$ac_ext <<_ACEOF
5543 cat confdefs.h >>conftest.$ac_ext
5544 cat >>conftest.$ac_ext <<_ACEOF
5545 /* end confdefs.h. */
5546 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
5547 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5548 #define _doprnt innocuous__doprnt
5550 /* System header to define __stub macros and hopefully few prototypes,
5551 which can conflict with char _doprnt (); below.
5552 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5553 <limits.h> exists even on freestanding compilers. */
5556 # include <limits.h>
5558 # include <assert.h>
5563 /* Override any gcc2 internal prototype to avoid an error. */
5568 /* We use char because int might match the return type of a gcc2
5569 builtin and then its argument prototype would still apply. */
5571 /* The GNU C library defines this for functions which it implements
5572 to always fail with ENOSYS. Some functions are actually named
5573 something starting with __ and the normal name is an alias. */
5574 #if defined (__stub__doprnt) || defined (__stub____doprnt)
5577 char (*f) () = _doprnt;
5586 return f != _doprnt;
5591 rm -f conftest.$ac_objext conftest$ac_exeext
5592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5593 (eval $ac_link) 2>conftest.er1
5595 grep -v '^ *+' conftest.er1 >conftest.err
5597 cat conftest.err >&5
5598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5599 (exit $ac_status); } &&
5600 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5605 (exit $ac_status); }; } &&
5606 { ac_try='test -s conftest$ac_exeext'
5607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5611 (exit $ac_status); }; }; then
5612 ac_cv_func__doprnt=yes
5614 echo "$as_me: failed program was:" >&5
5615 sed 's/^/| /' conftest.$ac_ext >&5
5617 ac_cv_func__doprnt=no
5619 rm -f conftest.err conftest.$ac_objext \
5620 conftest$ac_exeext conftest.$ac_ext
5622 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
5623 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
5624 if test $ac_cv_func__doprnt = yes; then
5626 cat >>confdefs.h <<\_ACEOF
5627 #define HAVE_DOPRNT 1
5650 for ac_func in alarm gethostbyname gethostname gettimeofday inet_ntoa memset pow select socket strcasecmp strchr strdup strerror strrchr
5652 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5653 echo "$as_me:$LINENO: checking for $ac_func" >&5
5654 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5655 if eval "test \"\${$as_ac_var+set}\" = set"; then
5656 echo $ECHO_N "(cached) $ECHO_C" >&6
5658 cat >conftest.$ac_ext <<_ACEOF
5661 cat confdefs.h >>conftest.$ac_ext
5662 cat >>conftest.$ac_ext <<_ACEOF
5663 /* end confdefs.h. */
5664 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5665 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5666 #define $ac_func innocuous_$ac_func
5668 /* System header to define __stub macros and hopefully few prototypes,
5669 which can conflict with char $ac_func (); below.
5670 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5671 <limits.h> exists even on freestanding compilers. */
5674 # include <limits.h>
5676 # include <assert.h>
5681 /* Override any gcc2 internal prototype to avoid an error. */
5686 /* We use char because int might match the return type of a gcc2
5687 builtin and then its argument prototype would still apply. */
5689 /* The GNU C library defines this for functions which it implements
5690 to always fail with ENOSYS. Some functions are actually named
5691 something starting with __ and the normal name is an alias. */
5692 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5695 char (*f) () = $ac_func;
5704 return f != $ac_func;
5709 rm -f conftest.$ac_objext conftest$ac_exeext
5710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5711 (eval $ac_link) 2>conftest.er1
5713 grep -v '^ *+' conftest.er1 >conftest.err
5715 cat conftest.err >&5
5716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5717 (exit $ac_status); } &&
5718 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5723 (exit $ac_status); }; } &&
5724 { ac_try='test -s conftest$ac_exeext'
5725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729 (exit $ac_status); }; }; then
5730 eval "$as_ac_var=yes"
5732 echo "$as_me: failed program was:" >&5
5733 sed 's/^/| /' conftest.$ac_ext >&5
5735 eval "$as_ac_var=no"
5737 rm -f conftest.err conftest.$ac_objext \
5738 conftest$ac_exeext conftest.$ac_ext
5740 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5741 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5742 if test `eval echo '${'$as_ac_var'}'` = yes; then
5743 cat >>confdefs.h <<_ACEOF
5744 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5751 # Checks for libraries.
5753 echo "$as_me:$LINENO: checking for cli_init in -lcli" >&5
5754 echo $ECHO_N "checking for cli_init in -lcli... $ECHO_C" >&6
5755 if test "${ac_cv_lib_cli_cli_init+set}" = set; then
5756 echo $ECHO_N "(cached) $ECHO_C" >&6
5758 ac_check_lib_save_LIBS=$LIBS
5760 cat >conftest.$ac_ext <<_ACEOF
5763 cat confdefs.h >>conftest.$ac_ext
5764 cat >>conftest.$ac_ext <<_ACEOF
5765 /* end confdefs.h. */
5767 /* Override any gcc2 internal prototype to avoid an error. */
5771 /* We use char because int might match the return type of a gcc2
5772 builtin and then its argument prototype would still apply. */
5782 rm -f conftest.$ac_objext conftest$ac_exeext
5783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5784 (eval $ac_link) 2>conftest.er1
5786 grep -v '^ *+' conftest.er1 >conftest.err
5788 cat conftest.err >&5
5789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5790 (exit $ac_status); } &&
5791 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5796 (exit $ac_status); }; } &&
5797 { ac_try='test -s conftest$ac_exeext'
5798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5802 (exit $ac_status); }; }; then
5803 ac_cv_lib_cli_cli_init=yes
5805 echo "$as_me: failed program was:" >&5
5806 sed 's/^/| /' conftest.$ac_ext >&5
5808 ac_cv_lib_cli_cli_init=no
5810 rm -f conftest.err conftest.$ac_objext \
5811 conftest$ac_exeext conftest.$ac_ext
5812 LIBS=$ac_check_lib_save_LIBS
5814 echo "$as_me:$LINENO: result: $ac_cv_lib_cli_cli_init" >&5
5815 echo "${ECHO_T}$ac_cv_lib_cli_cli_init" >&6
5816 if test $ac_cv_lib_cli_cli_init = yes; then
5817 cat >>confdefs.h <<_ACEOF
5818 #define HAVE_LIBCLI 1
5826 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
5827 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
5828 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
5829 echo $ECHO_N "(cached) $ECHO_C" >&6
5831 ac_check_lib_save_LIBS=$LIBS
5833 cat >conftest.$ac_ext <<_ACEOF
5836 cat confdefs.h >>conftest.$ac_ext
5837 cat >>conftest.$ac_ext <<_ACEOF
5838 /* end confdefs.h. */
5840 /* Override any gcc2 internal prototype to avoid an error. */
5844 /* We use char because int might match the return type of a gcc2
5845 builtin and then its argument prototype would still apply. */
5855 rm -f conftest.$ac_objext conftest$ac_exeext
5856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5857 (eval $ac_link) 2>conftest.er1
5859 grep -v '^ *+' conftest.er1 >conftest.err
5861 cat conftest.err >&5
5862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5863 (exit $ac_status); } &&
5864 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5869 (exit $ac_status); }; } &&
5870 { ac_try='test -s conftest$ac_exeext'
5871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5875 (exit $ac_status); }; }; then
5876 ac_cv_lib_dl_dlopen=yes
5878 echo "$as_me: failed program was:" >&5
5879 sed 's/^/| /' conftest.$ac_ext >&5
5881 ac_cv_lib_dl_dlopen=no
5883 rm -f conftest.err conftest.$ac_objext \
5884 conftest$ac_exeext conftest.$ac_ext
5885 LIBS=$ac_check_lib_save_LIBS
5887 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
5888 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
5889 if test $ac_cv_lib_dl_dlopen = yes; then
5890 cat >>confdefs.h <<_ACEOF
5891 #define HAVE_LIBDL 1
5899 echo "$as_me:$LINENO: checking for pow in -lm" >&5
5900 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6
5901 if test "${ac_cv_lib_m_pow+set}" = set; then
5902 echo $ECHO_N "(cached) $ECHO_C" >&6
5904 ac_check_lib_save_LIBS=$LIBS
5906 cat >conftest.$ac_ext <<_ACEOF
5909 cat confdefs.h >>conftest.$ac_ext
5910 cat >>conftest.$ac_ext <<_ACEOF
5911 /* end confdefs.h. */
5913 /* Override any gcc2 internal prototype to avoid an error. */
5917 /* We use char because int might match the return type of a gcc2
5918 builtin and then its argument prototype would still apply. */
5928 rm -f conftest.$ac_objext conftest$ac_exeext
5929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5930 (eval $ac_link) 2>conftest.er1
5932 grep -v '^ *+' conftest.er1 >conftest.err
5934 cat conftest.err >&5
5935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936 (exit $ac_status); } &&
5937 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5942 (exit $ac_status); }; } &&
5943 { ac_try='test -s conftest$ac_exeext'
5944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5948 (exit $ac_status); }; }; then
5951 echo "$as_me: failed program was:" >&5
5952 sed 's/^/| /' conftest.$ac_ext >&5
5956 rm -f conftest.err conftest.$ac_objext \
5957 conftest$ac_exeext conftest.$ac_ext
5958 LIBS=$ac_check_lib_save_LIBS
5960 echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
5961 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6
5962 if test $ac_cv_lib_m_pow = yes; then
5963 cat >>confdefs.h <<_ACEOF
5972 cat >>confdefs.h <<_ACEOF
5973 #define LIBDIR "$prefix/lib/l2tpns"
5976 cat >>confdefs.h <<_ACEOF
5977 #define ETCDIR "$sysconfdir"
5980 cat >>confdefs.h <<_ACEOF
5981 #define BINDIR "$prefix/bin"
5985 ac_config_files="$ac_config_files Makefile"
5987 cat >confcache <<\_ACEOF
5988 # This file is a shell script that caches the results of configure
5989 # tests run on this system so they can be shared between configure
5990 # scripts and configure runs, see configure's option --config-cache.
5991 # It is not useful on other systems. If it contains results you don't
5992 # want to keep, you may remove or edit it.
5994 # config.status only pays attention to the cache file if you give it
5995 # the --recheck option to rerun configure.
5997 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5998 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6003 # The following way of writing the cache mishandles newlines in values,
6004 # but we know of no workaround that is simple, portable, and efficient.
6005 # So, don't put newlines in cache variables' values.
6006 # Ultrix sh set writes to stderr and can't be redirected directly,
6007 # and sets the high bit in the cache file unless we assign to the vars.
6010 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6012 # `set' does not quote correctly, so add quotes (double-quote
6013 # substitution turns \\\\ into \\, and sed turns \\ into \).
6016 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6019 # `set' quotes correctly as required by POSIX, so do not add quotes.
6021 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6028 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6030 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6032 if diff $cache_file confcache >/dev/null 2>&1; then :; else
6033 if test -w $cache_file; then
6034 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6035 cat confcache >$cache_file
6037 echo "not updating unwritable cache $cache_file"
6042 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6043 # Let make expand exec_prefix.
6044 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6046 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6047 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6048 # trailing colons and then remove the whole line if VPATH becomes empty
6049 # (actually we leave an empty line to preserve line numbers).
6050 if test "x$srcdir" = x.; then
6051 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6052 s/:*\$(srcdir):*/:/;
6053 s/:*\${srcdir}:*/:/;
6055 s/^\([^=]*=[ ]*\):*/\1/;
6061 DEFS=-DHAVE_CONFIG_H
6065 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6066 # 1. Remove the extension, and $U if already installed.
6067 ac_i=`echo "$ac_i" |
6068 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6070 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6071 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6075 LTLIBOBJS=$ac_ltlibobjs
6079 : ${CONFIG_STATUS=./config.status}
6080 ac_clean_files_save=$ac_clean_files
6081 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6082 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6083 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6084 cat >$CONFIG_STATUS <<_ACEOF
6086 # Generated by $as_me.
6087 # Run this file to recreate the current configuration.
6088 # Compiler output produced by configure, useful for debugging
6089 # configure, is in config.log if it exists.
6094 SHELL=\${CONFIG_SHELL-$SHELL}
6097 cat >>$CONFIG_STATUS <<\_ACEOF
6098 ## --------------------- ##
6099 ## M4sh Initialization. ##
6100 ## --------------------- ##
6102 # Be Bourne compatible
6103 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6106 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6107 # is contrary to our usage. Disable this feature.
6108 alias -g '${1+"$@"}'='"$@"'
6109 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6112 DUALCASE=1; export DUALCASE # for MKS sh
6114 # Support unset when possible.
6115 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6122 # Work around bugs in pre-3.0 UWIN ksh.
6123 $as_unset ENV MAIL MAILPATH
6130 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6131 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6132 LC_TELEPHONE LC_TIME
6134 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
6135 eval $as_var=C; export $as_var
6141 # Required to use basename.
6142 if expr a : '\(a\)' >/dev/null 2>&1; then
6148 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6149 as_basename=basename
6155 # Name of the executable.
6156 as_me=`$as_basename "$0" ||
6157 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6158 X"$0" : 'X\(//\)$' \| \
6159 X"$0" : 'X\(/\)$' \| \
6160 . : '\(.\)' 2>/dev/null ||
6162 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6163 /^X\/\(\/\/\)$/{ s//\1/; q; }
6164 /^X\/\(\/\).*/{ s//\1/; q; }
6168 # PATH needs CR, and LINENO needs CR and PATH.
6169 # Avoid depending upon Character Ranges.
6170 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6171 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6172 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6173 as_cr_digits='0123456789'
6174 as_cr_alnum=$as_cr_Letters$as_cr_digits
6176 # The user is always right.
6177 if test "${PATH_SEPARATOR+set}" != set; then
6178 echo "#! /bin/sh" >conf$$.sh
6179 echo "exit 0" >>conf$$.sh
6181 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6192 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6193 test "x$as_lineno_1" != "x$as_lineno_2" &&
6194 test "x$as_lineno_3" = "x$as_lineno_2" || {
6195 # Find who we are. Look in the path if we contain no path at all
6198 *[\\/]* ) as_myself=$0 ;;
6199 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6203 test -z "$as_dir" && as_dir=.
6204 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6209 # We did not find ourselves, most probably we were run as `sh COMMAND'
6210 # in which case we are not to be found in the path.
6211 if test "x$as_myself" = x; then
6214 if test ! -f "$as_myself"; then
6215 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6216 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6217 { (exit 1); exit 1; }; }
6219 case $CONFIG_SHELL in
6221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6225 test -z "$as_dir" && as_dir=.
6226 for as_base in sh bash ksh sh5; do
6229 if ("$as_dir/$as_base" -c '
6232 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6233 test "x$as_lineno_1" != "x$as_lineno_2" &&
6234 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
6235 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
6236 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
6237 CONFIG_SHELL=$as_dir/$as_base
6239 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6247 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6248 # uniformly replaced by the line number. The first 'sed' inserts a
6249 # line-number line before each line; the second 'sed' does the real
6250 # work. The second script uses 'N' to pair each line-number line
6251 # with the numbered line, and appends trailing '-' during
6252 # substitution so that $LINENO is not a special case at line end.
6253 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6254 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
6255 sed '=' <$as_myself |
6260 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6263 s,^['$as_cr_digits']*\n,,
6265 chmod +x $as_me.lineno ||
6266 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6267 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6268 { (exit 1); exit 1; }; }
6270 # Don't try to exec as it changes $[0], causing all sort of problems
6271 # (the dirname of $[0] is not the place where we might find the
6272 # original and so on. Autoconf is especially sensible to this).
6274 # Exit status is that of the last command.
6279 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6280 *c*,-n*) ECHO_N= ECHO_C='
6282 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6283 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
6286 if expr a : '\(a\)' >/dev/null 2>&1; then
6292 rm -f conf$$ conf$$.exe conf$$.file
6294 if ln -s conf$$.file conf$$ 2>/dev/null; then
6295 # We could just check for DJGPP; but this test a) works b) is more generic
6296 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6297 if test -f conf$$.exe; then
6298 # Don't use ln at all; we don't have any links
6303 elif ln conf$$.file conf$$ 2>/dev/null; then
6308 rm -f conf$$ conf$$.exe conf$$.file
6310 if mkdir -p . 2>/dev/null; then
6313 test -d ./-p && rmdir ./-p
6317 as_executable_p="test -f"
6319 # Sed expression to map a string onto a valid CPP name.
6320 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6322 # Sed expression to map a string onto a valid variable name.
6323 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6327 # We need space, tab and new line, in precisely that order.
6337 # Open the log real soon, to keep \$[0] and so on meaningful, and to
6338 # report actual input values of CONFIG_FILES etc. instead of their
6339 # values after options handling. Logging --version etc. is OK.
6343 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6344 ## Running $as_me. ##
6349 This file was extended by l2tpns $as_me 1.0.0, which was
6350 generated by GNU Autoconf 2.58. Invocation command line was
6352 CONFIG_FILES = $CONFIG_FILES
6353 CONFIG_HEADERS = $CONFIG_HEADERS
6354 CONFIG_LINKS = $CONFIG_LINKS
6355 CONFIG_COMMANDS = $CONFIG_COMMANDS
6359 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6363 # Files that config.status was made for.
6364 if test -n "$ac_config_files"; then
6365 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6368 if test -n "$ac_config_headers"; then
6369 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6372 if test -n "$ac_config_links"; then
6373 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6376 if test -n "$ac_config_commands"; then
6377 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6380 cat >>$CONFIG_STATUS <<\_ACEOF
6383 \`$as_me' instantiates files from templates according to the
6384 current configuration.
6386 Usage: $0 [OPTIONS] [FILE]...
6388 -h, --help print this help, then exit
6389 -V, --version print version number, then exit
6390 -q, --quiet do not print progress messages
6391 -d, --debug don't remove temporary files
6392 --recheck update $as_me by reconfiguring in the same conditions
6393 --file=FILE[:TEMPLATE]
6394 instantiate the configuration file FILE
6395 --header=FILE[:TEMPLATE]
6396 instantiate the configuration header FILE
6398 Configuration files:
6401 Configuration headers:
6404 Report bugs to <bug-autoconf@gnu.org>."
6407 cat >>$CONFIG_STATUS <<_ACEOF
6409 l2tpns config.status 1.0.0
6410 configured by $0, generated by GNU Autoconf 2.58,
6411 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6413 Copyright (C) 2003 Free Software Foundation, Inc.
6414 This config.status script is free software; the Free Software Foundation
6415 gives unlimited permission to copy, distribute and modify it."
6420 cat >>$CONFIG_STATUS <<\_ACEOF
6421 # If no file are specified by the user, then we need to provide default
6422 # value. By we need to know if files were specified by the user.
6428 ac_option=`expr "x$1" : 'x\([^=]*\)='`
6429 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
6437 *) # This is not an option, so the user has probably given explicit
6440 ac_need_defaults=false;;
6444 # Handling of the options.
6446 cat >>$CONFIG_STATUS <<\_ACEOF
6447 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6449 --version | --vers* | -V )
6450 echo "$ac_cs_version"; exit 0 ;;
6452 # Conflict between --help and --header
6453 { { echo "$as_me:$LINENO: error: ambiguous option: $1
6454 Try \`$0 --help' for more information." >&5
6455 echo "$as_me: error: ambiguous option: $1
6456 Try \`$0 --help' for more information." >&2;}
6457 { (exit 1); exit 1; }; };;
6458 --help | --hel | -h )
6459 echo "$ac_cs_usage"; exit 0 ;;
6460 --debug | --d* | -d )
6462 --file | --fil | --fi | --f )
6464 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
6465 ac_need_defaults=false;;
6466 --header | --heade | --head | --hea )
6468 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
6469 ac_need_defaults=false;;
6470 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6471 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6475 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
6476 Try \`$0 --help' for more information." >&5
6477 echo "$as_me: error: unrecognized option: $1
6478 Try \`$0 --help' for more information." >&2;}
6479 { (exit 1); exit 1; }; } ;;
6481 *) ac_config_targets="$ac_config_targets $1" ;;
6487 ac_configure_extra_args=
6489 if $ac_cs_silent; then
6491 ac_configure_extra_args="$ac_configure_extra_args --silent"
6495 cat >>$CONFIG_STATUS <<_ACEOF
6496 if \$ac_cs_recheck; then
6497 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
6498 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6507 cat >>$CONFIG_STATUS <<\_ACEOF
6508 for ac_config_target in $ac_config_targets
6510 case "$ac_config_target" in
6511 # Handling of arguments.
6512 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6513 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6514 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6515 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6516 { (exit 1); exit 1; }; };;
6520 # If the user did not use the arguments to specify the items to instantiate,
6521 # then the envvar interface is used. Set only those that are not.
6522 # We use the long form for the default assignment because of an extremely
6523 # bizarre bug on SunOS 4.1.3.
6524 if $ac_need_defaults; then
6525 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6526 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6529 # Have a temporary directory for convenience. Make it in the build tree
6530 # simply because there is no reason to put it here, and in addition,
6531 # creating and moving files from /tmp can sometimes cause problems.
6532 # Create a temporary directory, and hook for its removal unless debugging.
6535 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6536 trap '{ (exit 1); exit 1; }' 1 2 13 15
6539 # Create a (secure) tmp directory for tmp files.
6542 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
6543 test -n "$tmp" && test -d "$tmp"
6546 tmp=./confstat$$-$RANDOM
6547 (umask 077 && mkdir $tmp)
6550 echo "$me: cannot create a temporary directory in ." >&2
6551 { (exit 1); exit 1; }
6556 cat >>$CONFIG_STATUS <<_ACEOF
6559 # CONFIG_FILES section.
6562 # No need to generate the scripts if there are no CONFIG_FILES.
6563 # This happens for instance when ./config.status config.h
6564 if test -n "\$CONFIG_FILES"; then
6565 # Protect against being on the right side of a sed subst in config.status.
6566 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6567 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
6568 s,@SHELL@,$SHELL,;t t
6569 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6570 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6571 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6572 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6573 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6574 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6575 s,@exec_prefix@,$exec_prefix,;t t
6576 s,@prefix@,$prefix,;t t
6577 s,@program_transform_name@,$program_transform_name,;t t
6578 s,@bindir@,$bindir,;t t
6579 s,@sbindir@,$sbindir,;t t
6580 s,@libexecdir@,$libexecdir,;t t
6581 s,@datadir@,$datadir,;t t
6582 s,@sysconfdir@,$sysconfdir,;t t
6583 s,@sharedstatedir@,$sharedstatedir,;t t
6584 s,@localstatedir@,$localstatedir,;t t
6585 s,@libdir@,$libdir,;t t
6586 s,@includedir@,$includedir,;t t
6587 s,@oldincludedir@,$oldincludedir,;t t
6588 s,@infodir@,$infodir,;t t
6589 s,@mandir@,$mandir,;t t
6590 s,@build_alias@,$build_alias,;t t
6591 s,@host_alias@,$host_alias,;t t
6592 s,@target_alias@,$target_alias,;t t
6594 s,@ECHO_C@,$ECHO_C,;t t
6595 s,@ECHO_N@,$ECHO_N,;t t
6596 s,@ECHO_T@,$ECHO_T,;t t
6599 s,@CFLAGS@,$CFLAGS,;t t
6600 s,@LDFLAGS@,$LDFLAGS,;t t
6601 s,@CPPFLAGS@,$CPPFLAGS,;t t
6602 s,@ac_ct_CC@,$ac_ct_CC,;t t
6603 s,@EXEEXT@,$EXEEXT,;t t
6604 s,@OBJEXT@,$OBJEXT,;t t
6605 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
6606 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
6607 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
6609 s,@EGREP@,$EGREP,;t t
6610 s,@LIBOBJS@,$LIBOBJS,;t t
6611 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
6616 cat >>$CONFIG_STATUS <<\_ACEOF
6617 # Split the substitutions into bite-sized pieces for seds with
6618 # small command number limits, like on Digital OSF/1 and HP-UX.
6620 ac_sed_frag=1 # Number of current file.
6621 ac_beg=1 # First line for current file.
6622 ac_end=$ac_max_sed_lines # Line after last line for current file.
6625 while $ac_more_lines; do
6626 if test $ac_beg -gt 1; then
6627 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6629 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6631 if test ! -s $tmp/subs.frag; then
6634 # The purpose of the label and of the branching condition is to
6635 # speed up the sed processing (if there are no `@' at all, there
6636 # is no need to browse any of the substitutions).
6637 # These are the two extra sed commands mentioned above.
6639 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
6640 if test -z "$ac_sed_cmds"; then
6641 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
6643 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6645 ac_sed_frag=`expr $ac_sed_frag + 1`
6647 ac_end=`expr $ac_end + $ac_max_sed_lines`
6650 if test -z "$ac_sed_cmds"; then
6653 fi # test -n "$CONFIG_FILES"
6656 cat >>$CONFIG_STATUS <<\_ACEOF
6657 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
6658 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6660 - | *:- | *:-:* ) # input from stdin
6662 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6663 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6664 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6665 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6666 * ) ac_file_in=$ac_file.in ;;
6669 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6670 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6671 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6672 X"$ac_file" : 'X\(//\)[^/]' \| \
6673 X"$ac_file" : 'X\(//\)$' \| \
6674 X"$ac_file" : 'X\(/\)' \| \
6675 . : '\(.\)' 2>/dev/null ||
6677 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6678 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6679 /^X\(\/\/\)$/{ s//\1/; q; }
6680 /^X\(\/\).*/{ s//\1/; q; }
6682 { if $as_mkdir_p; then
6687 while test ! -d "$as_dir"; do
6688 as_dirs="$as_dir $as_dirs"
6689 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6690 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6691 X"$as_dir" : 'X\(//\)[^/]' \| \
6692 X"$as_dir" : 'X\(//\)$' \| \
6693 X"$as_dir" : 'X\(/\)' \| \
6694 . : '\(.\)' 2>/dev/null ||
6696 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6697 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6698 /^X\(\/\/\)$/{ s//\1/; q; }
6699 /^X\(\/\).*/{ s//\1/; q; }
6702 test ! -n "$as_dirs" || mkdir $as_dirs
6703 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6704 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6705 { (exit 1); exit 1; }; }; }
6709 if test "$ac_dir" != .; then
6710 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6711 # A "../" for each directory in $ac_dir_suffix.
6712 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6714 ac_dir_suffix= ac_top_builddir=
6718 .) # No --srcdir option. We are building in place.
6720 if test -z "$ac_top_builddir"; then
6723 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6725 [\\/]* | ?:[\\/]* ) # Absolute path.
6726 ac_srcdir=$srcdir$ac_dir_suffix;
6727 ac_top_srcdir=$srcdir ;;
6729 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6730 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6733 # Do not use `cd foo && pwd` to compute absolute paths, because
6734 # the directories may not exist.
6736 .) ac_abs_builddir="$ac_dir";;
6739 .) ac_abs_builddir=`pwd`;;
6740 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
6741 *) ac_abs_builddir=`pwd`/"$ac_dir";;
6744 case $ac_abs_builddir in
6745 .) ac_abs_top_builddir=${ac_top_builddir}.;;
6747 case ${ac_top_builddir}. in
6748 .) ac_abs_top_builddir=$ac_abs_builddir;;
6749 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
6750 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
6753 case $ac_abs_builddir in
6754 .) ac_abs_srcdir=$ac_srcdir;;
6757 .) ac_abs_srcdir=$ac_abs_builddir;;
6758 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
6759 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
6762 case $ac_abs_builddir in
6763 .) ac_abs_top_srcdir=$ac_top_srcdir;;
6765 case $ac_top_srcdir in
6766 .) ac_abs_top_srcdir=$ac_abs_builddir;;
6767 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
6768 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
6774 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6775 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
6778 if test x"$ac_file" != x-; then
6779 { echo "$as_me:$LINENO: creating $ac_file" >&5
6780 echo "$as_me: creating $ac_file" >&6;}
6783 # Let's still pretend it is `configure' which instantiates (i.e., don't
6784 # use $as_me), people would be surprised to read:
6785 # /* config.h. Generated by config.status. */
6786 if test x"$ac_file" = x-; then
6789 configure_input="$ac_file. "
6791 configure_input=$configure_input"Generated from `echo $ac_file_in |
6792 sed 's,.*/,,'` by configure."
6794 # First look for the input files in the build tree, otherwise in the
6796 ac_file_inputs=`IFS=:
6797 for f in $ac_file_in; do
6799 -) echo $tmp/stdin ;;
6801 # Absolute (can't be DOS-style, as IFS=:)
6802 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6803 echo "$as_me: error: cannot find input file: $f" >&2;}
6804 { (exit 1); exit 1; }; }
6807 if test -f "$f"; then
6810 elif test -f "$srcdir/$f"; then
6815 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6816 echo "$as_me: error: cannot find input file: $f" >&2;}
6817 { (exit 1); exit 1; }; }
6820 done` || { (exit 1); exit 1; }
6822 cat >>$CONFIG_STATUS <<_ACEOF
6826 cat >>$CONFIG_STATUS <<\_ACEOF
6828 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6829 s,@configure_input@,$configure_input,;t t
6830 s,@srcdir@,$ac_srcdir,;t t
6831 s,@abs_srcdir@,$ac_abs_srcdir,;t t
6832 s,@top_srcdir@,$ac_top_srcdir,;t t
6833 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
6834 s,@builddir@,$ac_builddir,;t t
6835 s,@abs_builddir@,$ac_abs_builddir,;t t
6836 s,@top_builddir@,$ac_top_builddir,;t t
6837 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
6838 s,@INSTALL@,$ac_INSTALL,;t t
6839 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6841 if test x"$ac_file" != x-; then
6842 mv $tmp/out $ac_file
6850 cat >>$CONFIG_STATUS <<\_ACEOF
6853 # CONFIG_HEADER section.
6856 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6857 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6859 # ac_d sets the value in "#define NAME VALUE" lines.
6860 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6861 ac_dB='[ ].*$,\1#\2'
6864 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6865 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6866 ac_uB='$,\1#\2define\3'
6870 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
6871 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6873 - | *:- | *:-:* ) # input from stdin
6875 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6876 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6877 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6878 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6879 * ) ac_file_in=$ac_file.in ;;
6882 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
6883 echo "$as_me: creating $ac_file" >&6;}
6885 # First look for the input files in the build tree, otherwise in the
6887 ac_file_inputs=`IFS=:
6888 for f in $ac_file_in; do
6890 -) echo $tmp/stdin ;;
6892 # Absolute (can't be DOS-style, as IFS=:)
6893 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6894 echo "$as_me: error: cannot find input file: $f" >&2;}
6895 { (exit 1); exit 1; }; }
6896 # Do quote $f, to prevent DOS paths from being IFS'd.
6899 if test -f "$f"; then
6902 elif test -f "$srcdir/$f"; then
6907 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6908 echo "$as_me: error: cannot find input file: $f" >&2;}
6909 { (exit 1); exit 1; }; }
6912 done` || { (exit 1); exit 1; }
6913 # Remove the trailing spaces.
6914 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
6918 # Transform confdefs.h into two sed scripts, `conftest.defines' and
6919 # `conftest.undefs', that substitutes the proper values into
6920 # config.h.in to produce config.h. The first handles `#define'
6921 # templates, and the second `#undef' templates.
6922 # And first: Protect against being on the right side of a sed subst in
6923 # config.status. Protect against being in an unquoted here document
6925 rm -f conftest.defines conftest.undefs
6926 # Using a here document instead of a string reduces the quoting nightmare.
6927 # Putting comments in sed scripts is not portable.
6929 # `end' is used to avoid that the second main sed command (meant for
6930 # 0-ary CPP macros) applies to n-ary macro definitions.
6931 # See the Autoconf documentation for `clear'.
6932 cat >confdef2sed.sed <<\_ACEOF
6937 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
6939 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
6942 # If some macros were called several times there might be several times
6943 # the same #defines, which is useless. Nevertheless, we may not want to
6944 # sort them, since we want the *last* AC-DEFINE to be honored.
6945 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
6946 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
6947 rm -f confdef2sed.sed
6949 # This sed command replaces #undef with comments. This is necessary, for
6950 # example, in the case of _POSIX_SOURCE, which is predefined and required
6951 # on some systems where configure will not decide to define it.
6952 cat >>conftest.undefs <<\_ACEOF
6953 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
6956 # Break up conftest.defines because some shells have a limit on the size
6957 # of here documents, and old seds have small limits too (100 cmds).
6958 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
6959 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
6960 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
6961 echo ' :' >>$CONFIG_STATUS
6963 while grep . conftest.defines >/dev/null
6965 # Write a limited-size here document to $tmp/defines.sed.
6966 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
6967 # Speed up: don't consider the non `#define' lines.
6968 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
6969 # Work around the forget-to-reset-the-flag bug.
6970 echo 't clr' >>$CONFIG_STATUS
6971 echo ': clr' >>$CONFIG_STATUS
6972 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
6974 sed -f $tmp/defines.sed $tmp/in >$tmp/out
6978 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
6979 rm -f conftest.defines
6980 mv conftest.tail conftest.defines
6982 rm -f conftest.defines
6983 echo ' fi # grep' >>$CONFIG_STATUS
6984 echo >>$CONFIG_STATUS
6986 # Break up conftest.undefs because some shells have a limit on the size
6987 # of here documents, and old seds have small limits too (100 cmds).
6988 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
6990 while grep . conftest.undefs >/dev/null
6992 # Write a limited-size here document to $tmp/undefs.sed.
6993 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
6994 # Speed up: don't consider the non `#undef'
6995 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
6996 # Work around the forget-to-reset-the-flag bug.
6997 echo 't clr' >>$CONFIG_STATUS
6998 echo ': clr' >>$CONFIG_STATUS
6999 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7001 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7005 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7006 rm -f conftest.undefs
7007 mv conftest.tail conftest.undefs
7009 rm -f conftest.undefs
7011 cat >>$CONFIG_STATUS <<\_ACEOF
7012 # Let's still pretend it is `configure' which instantiates (i.e., don't
7013 # use $as_me), people would be surprised to read:
7014 # /* config.h. Generated by config.status. */
7015 if test x"$ac_file" = x-; then
7016 echo "/* Generated by configure. */" >$tmp/config.h
7018 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
7020 cat $tmp/in >>$tmp/config.h
7022 if test x"$ac_file" != x-; then
7023 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
7024 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7025 echo "$as_me: $ac_file is unchanged" >&6;}
7027 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7028 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7029 X"$ac_file" : 'X\(//\)[^/]' \| \
7030 X"$ac_file" : 'X\(//\)$' \| \
7031 X"$ac_file" : 'X\(/\)' \| \
7032 . : '\(.\)' 2>/dev/null ||
7034 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7035 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7036 /^X\(\/\/\)$/{ s//\1/; q; }
7037 /^X\(\/\).*/{ s//\1/; q; }
7039 { if $as_mkdir_p; then
7044 while test ! -d "$as_dir"; do
7045 as_dirs="$as_dir $as_dirs"
7046 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7047 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7048 X"$as_dir" : 'X\(//\)[^/]' \| \
7049 X"$as_dir" : 'X\(//\)$' \| \
7050 X"$as_dir" : 'X\(/\)' \| \
7051 . : '\(.\)' 2>/dev/null ||
7053 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7054 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7055 /^X\(\/\/\)$/{ s//\1/; q; }
7056 /^X\(\/\).*/{ s//\1/; q; }
7059 test ! -n "$as_dirs" || mkdir $as_dirs
7060 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7061 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7062 { (exit 1); exit 1; }; }; }
7065 mv $tmp/config.h $ac_file
7074 cat >>$CONFIG_STATUS <<\_ACEOF
7076 { (exit 0); exit 0; }
7078 chmod +x $CONFIG_STATUS
7079 ac_clean_files=$ac_clean_files_save
7082 # configure is writing to config.log, and then calls config.status.
7083 # config.status does its own redirection, appending to config.log.
7084 # Unfortunately, on DOS this fails, as config.log is still kept open
7085 # by configure, so config.status won't be able to write to it; its
7086 # output is simply discarded. So we exec the FD to /dev/null,
7087 # effectively closing config.log, so it can be properly (re)opened and
7088 # appended to by config.status. When coming back to configure, we
7089 # need to make the FD available again.
7090 if test "$no_create" != yes; then
7092 ac_config_status_args=
7093 test "$silent" = yes &&
7094 ac_config_status_args="$ac_config_status_args --quiet"
7096 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7098 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7099 # would make configure fail if this is the last instruction.
7100 $ac_cs_success || { (exit 1); exit 1; }