2 # From configure.in Id: configure.in,v 1.2 2004/06/28 22:45:19 r33d Exp .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59 for srvx 1.3.
6 # Report bugs to <srvx-bugs@lists.sourceforge.net>.
8 # Copyright (C) 2003 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
25 DUALCASE
=1; export DUALCASE
# for MKS sh
27 # Support unset when possible.
28 if ( (MAIL
=60; unset MAIL
) || exit) >/dev
/null
2>&1; then
35 # Work around bugs in pre-3.0 UWIN ksh.
36 $as_unset ENV MAIL MAILPATH
43 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
47 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
48 eval $as_var=C
; export $as_var
54 # Required to use basename.
55 if expr a
: '\(a\)' >/dev
/null
2>&1; then
61 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
68 # Name of the executable.
69 as_me
=`$as_basename "$0" ||
70 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71 X"$0" : 'X\(//\)$' \| \
72 X"$0" : 'X\(/\)$' \| \
73 . : '\(.\)' 2>/dev/null ||
75 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76 /^X\/\(\/\/\)$/{ s//\1/; q; }
77 /^X\/\(\/\).*/{ s//\1/; q; }
81 # PATH needs CR, and LINENO needs CR and PATH.
82 # Avoid depending upon Character Ranges.
83 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
84 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
86 as_cr_digits
='0123456789'
87 as_cr_alnum
=$as_cr_Letters$as_cr_digits
89 # The user is always right.
90 if test "${PATH_SEPARATOR+set}" != set; then
91 echo "#! /bin/sh" >conf$$.sh
92 echo "exit 0" >>conf$$.sh
94 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
105 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
106 test "x$as_lineno_1" != "x$as_lineno_2" &&
107 test "x$as_lineno_3" = "x$as_lineno_2" || {
108 # Find who we are. Look in the path if we contain no path at all
111 *[\\/]* ) as_myself
=$0 ;;
112 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
116 test -z "$as_dir" && as_dir
=.
117 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
122 # We did not find ourselves, most probably we were run as `sh COMMAND'
123 # in which case we are not to be found in the path.
124 if test "x$as_myself" = x
; then
127 if test ! -f "$as_myself"; then
128 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129 { (exit 1); exit 1; }; }
131 case $CONFIG_SHELL in
133 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
134 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
137 test -z "$as_dir" && as_dir
=.
138 for as_base
in sh bash ksh sh5
; do
141 if ("$as_dir/$as_base" -c '
144 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145 test "x$as_lineno_1" != "x$as_lineno_2" &&
146 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
147 $as_unset BASH_ENV
|| test "${BASH_ENV+set}" != set || { BASH_ENV
=; export BASH_ENV
; }
148 $as_unset ENV
|| test "${ENV+set}" != set || { ENV
=; export ENV
; }
149 CONFIG_SHELL
=$as_dir/$as_base
151 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
159 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160 # uniformly replaced by the line number. The first 'sed' inserts a
161 # line-number line before each line; the second 'sed' does the real
162 # work. The second script uses 'N' to pair each line-number line
163 # with the numbered line, and appends trailing '-' during
164 # substitution so that $LINENO is not a special case at line end.
165 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
167 sed '=' <$as_myself |
172 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
175 s,^['$as_cr_digits']*\n,,
177 chmod +x
$as_me.lineno
||
178 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179 { (exit 1); exit 1; }; }
181 # Don't try to exec as it changes $[0], causing all sort of problems
182 # (the dirname of $[0] is not the place where we might find the
183 # original and so on. Autoconf is especially sensible to this).
185 # Exit status is that of the last command.
190 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191 *c
*,-n*) ECHO_N
= ECHO_C
='
193 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
194 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
197 if expr a
: '\(a\)' >/dev
/null
2>&1; then
203 rm -f conf$$ conf$$.exe conf$$.
file
205 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
206 # We could just check for DJGPP; but this test a) works b) is more generic
207 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208 if test -f conf$$.exe
; then
209 # Don't use ln at all; we don't have any links
214 elif ln conf$$.
file conf$$
2>/dev
/null
; then
219 rm -f conf$$ conf$$.exe conf$$.
file
221 if mkdir -p .
2>/dev
/null
; then
224 test -d .
/-p && rmdir .
/-p
228 as_executable_p
="test -f"
230 # Sed expression to map a string onto a valid CPP name.
231 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
233 # Sed expression to map a string onto a valid variable name.
234 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
238 # We need space, tab and new line, in precisely that order.
248 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
249 # so uname gets run too.
250 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
257 ac_default_prefix
=/usr
/local
258 ac_config_libobj_dir
=.
263 SHELL
=${CONFIG_SHELL-/bin/sh}
265 # Maximum number of lines to put in a shell here document.
266 # This variable seems obsolete. It should probably be removed, and
267 # only ac_max_sed_lines should be used.
268 : ${ac_max_here_lines=38}
270 # Identity of this package.
272 PACKAGE_TARNAME
='srvx'
273 PACKAGE_VERSION
='1.3'
274 PACKAGE_STRING
='srvx 1.3'
275 PACKAGE_BUGREPORT
='srvx-bugs@lists.sourceforge.net'
277 ac_unique_file
="src/opserv.c"
278 # Factoring default headers for most tests.
279 ac_includes_default
="\
282 # include <sys/types.h>
285 # include <sys/stat.h>
296 # if !STDC_HEADERS && HAVE_MEMORY_H
302 # include <strings.h>
305 # include <inttypes.h>
315 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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO SET_MAKE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT AWK RANLIB ac_ct_RANLIB LN_S CPP EGREP ALLOCA MODULE_OBJS MY_SUBDIRS RX_INCLUDES RX_LIBS LIBOBJS LTLIBOBJS'
318 # Initialize some variables set by options.
320 ac_init_version
=false
321 # The variables have the same names as the options, with
322 # dashes changed to underlines.
330 program_transform_name
=s
,x
,x
,
338 # Installation directory options.
339 # These are left unexpanded so users can "make install exec_prefix=/foo"
340 # and all the variables that are supposed to be based on exec_prefix
341 # by default will actually change.
342 # Use braces instead of parens because sh, perl, etc. also accept them.
343 bindir
='${exec_prefix}/bin'
344 sbindir
='${exec_prefix}/sbin'
345 libexecdir
='${exec_prefix}/libexec'
346 datadir
='${prefix}/share'
347 sysconfdir
='${prefix}/etc'
348 sharedstatedir
='${prefix}/com'
349 localstatedir
='${prefix}/var'
350 libdir
='${exec_prefix}/lib'
351 includedir
='${prefix}/include'
352 oldincludedir
='/usr/include'
353 infodir
='${prefix}/info'
354 mandir
='${prefix}/man'
359 # If the previous option needs an argument, assign it.
360 if test -n "$ac_prev"; then
361 eval "$ac_prev=\$ac_option"
366 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
368 # Accept the important Cygnus configure options, so we can diagnose typos.
372 -bindir | --bindir | --bindi | --bind | --bin | --bi)
374 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
377 -build | --build | --buil | --bui | --bu)
378 ac_prev
=build_alias
;;
379 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
380 build_alias
=$ac_optarg ;;
382 -cache-file | --cache-file | --cache-fil | --cache-fi \
383 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
384 ac_prev
=cache_file
;;
385 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
386 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
387 cache_file
=$ac_optarg ;;
390 cache_file
=config.cache
;;
392 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
394 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
396 datadir
=$ac_optarg ;;
398 -disable-* | --disable-*)
399 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
400 # Reject names that are not valid shell variable names.
401 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
402 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
403 { (exit 1); exit 1; }; }
404 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
405 eval "enable_$ac_feature=no" ;;
407 -enable-* | --enable-*)
408 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
409 # Reject names that are not valid shell variable names.
410 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
411 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
412 { (exit 1); exit 1; }; }
413 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
415 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
418 eval "enable_$ac_feature='$ac_optarg'" ;;
420 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
421 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
422 | --exec | --exe | --ex)
423 ac_prev
=exec_prefix
;;
424 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
425 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
426 | --exec=* | --exe=* | --ex=*)
427 exec_prefix
=$ac_optarg ;;
429 -gas | --gas | --ga | --g)
430 # Obsolete; use --with-gas.
433 -help | --help | --hel | --he | -h)
435 -help=r
* | --help=r
* | --hel=r
* | --he=r
* | -hr*)
436 ac_init_help
=recursive
;;
437 -help=s
* | --help=s
* | --hel=s
* | --he=s
* | -hs*)
438 ac_init_help
=short
;;
440 -host | --host | --hos | --ho)
441 ac_prev
=host_alias
;;
442 -host=* | --host=* | --hos=* | --ho=*)
443 host_alias
=$ac_optarg ;;
445 -includedir | --includedir | --includedi | --included | --include \
446 | --includ | --inclu | --incl | --inc)
447 ac_prev
=includedir
;;
448 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
449 | --includ=* | --inclu=* | --incl=* | --inc=*)
450 includedir
=$ac_optarg ;;
452 -infodir | --infodir | --infodi | --infod | --info | --inf)
454 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
455 infodir
=$ac_optarg ;;
457 -libdir | --libdir | --libdi | --libd)
459 -libdir=* | --libdir=* | --libdi=* | --libd=*)
462 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
463 | --libexe | --libex | --libe)
464 ac_prev
=libexecdir
;;
465 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
466 | --libexe=* | --libex=* | --libe=*)
467 libexecdir
=$ac_optarg ;;
469 -localstatedir | --localstatedir | --localstatedi | --localstated \
470 | --localstate | --localstat | --localsta | --localst \
471 | --locals | --local | --loca | --loc | --lo)
472 ac_prev
=localstatedir
;;
473 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
474 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
475 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
476 localstatedir
=$ac_optarg ;;
478 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
480 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
484 # Obsolete; use --without-fp.
487 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
488 | --no-cr | --no-c | -n)
491 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
492 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
495 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
496 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
497 | --oldin | --oldi | --old | --ol | --o)
498 ac_prev
=oldincludedir
;;
499 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
500 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
501 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
502 oldincludedir
=$ac_optarg ;;
504 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
506 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
509 -program-prefix | --program-prefix | --program-prefi | --program-pref \
510 | --program-pre | --program-pr | --program-p)
511 ac_prev
=program_prefix
;;
512 -program-prefix=* | --program-prefix=* | --program-prefi=* \
513 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
514 program_prefix
=$ac_optarg ;;
516 -program-suffix | --program-suffix | --program-suffi | --program-suff \
517 | --program-suf | --program-su | --program-s)
518 ac_prev
=program_suffix
;;
519 -program-suffix=* | --program-suffix=* | --program-suffi=* \
520 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
521 program_suffix
=$ac_optarg ;;
523 -program-transform-name | --program-transform-name \
524 | --program-transform-nam | --program-transform-na \
525 | --program-transform-n | --program-transform- \
526 | --program-transform | --program-transfor \
527 | --program-transfo | --program-transf \
528 | --program-trans | --program-tran \
529 | --progr-tra | --program-tr | --program-t)
530 ac_prev
=program_transform_name
;;
531 -program-transform-name=* | --program-transform-name=* \
532 | --program-transform-nam=* | --program-transform-na=* \
533 | --program-transform-n=* | --program-transform-=* \
534 | --program-transform=* | --program-transfor=* \
535 | --program-transfo=* | --program-transf=* \
536 | --program-trans=* | --program-tran=* \
537 | --progr-tra=* | --program-tr=* | --program-t=*)
538 program_transform_name
=$ac_optarg ;;
540 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
541 | -silent | --silent | --silen | --sile | --sil)
544 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
546 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
548 sbindir
=$ac_optarg ;;
550 -sharedstatedir | --sharedstatedir | --sharedstatedi \
551 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
552 | --sharedst | --shareds | --shared | --share | --shar \
554 ac_prev
=sharedstatedir
;;
555 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
556 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
557 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
559 sharedstatedir
=$ac_optarg ;;
561 -site | --site | --sit)
563 -site=* | --site=* | --sit=*)
566 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
568 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
571 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
572 | --syscon | --sysco | --sysc | --sys | --sy)
573 ac_prev
=sysconfdir
;;
574 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
575 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
576 sysconfdir
=$ac_optarg ;;
578 -target | --target | --targe | --targ | --tar | --ta | --t)
579 ac_prev
=target_alias
;;
580 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
581 target_alias
=$ac_optarg ;;
583 -v | -verbose | --verbose | --verbos | --verbo | --verb)
586 -version | --version | --versio | --versi | --vers | -V)
590 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
591 # Reject names that are not valid shell variable names.
592 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
593 { echo "$as_me: error: invalid package name: $ac_package" >&2
594 { (exit 1); exit 1; }; }
595 ac_package
=`echo $ac_package| sed 's/-/_/g'`
597 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
600 eval "with_$ac_package='$ac_optarg'" ;;
602 -without-* | --without-*)
603 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
604 # Reject names that are not valid shell variable names.
605 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
606 { echo "$as_me: error: invalid package name: $ac_package" >&2
607 { (exit 1); exit 1; }; }
608 ac_package
=`echo $ac_package | sed 's/-/_/g'`
609 eval "with_$ac_package=no" ;;
612 # Obsolete; use --with-x.
615 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
616 | --x-incl | --x-inc | --x-in | --x-i)
617 ac_prev
=x_includes
;;
618 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
619 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
620 x_includes
=$ac_optarg ;;
622 -x-libraries | --x-libraries | --x-librarie | --x-librari \
623 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
624 ac_prev
=x_libraries
;;
625 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
626 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
627 x_libraries
=$ac_optarg ;;
629 -*) { echo "$as_me: error: unrecognized option: $ac_option
630 Try \`$0 --help' for more information." >&2
631 { (exit 1); exit 1; }; }
635 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
636 # Reject names that are not valid shell variable names.
637 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
638 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
639 { (exit 1); exit 1; }; }
640 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
641 eval "$ac_envvar='$ac_optarg'"
645 # FIXME: should be removed in autoconf 3.0.
646 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
647 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
648 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
649 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
655 if test -n "$ac_prev"; then
656 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
657 { echo "$as_me: error: missing argument to $ac_option" >&2
658 { (exit 1); exit 1; }; }
661 # Be sure to have absolute paths.
662 for ac_var
in exec_prefix prefix
664 eval ac_val
=$
`echo $ac_var`
666 [\\/$
]* | ?
:[\\/]* | NONE
| '' ) ;;
667 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
668 { (exit 1); exit 1; }; };;
672 # Be sure to have absolute paths.
673 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
674 localstatedir libdir includedir oldincludedir infodir mandir
676 eval ac_val
=$
`echo $ac_var`
678 [\\/$
]* | ?
:[\\/]* ) ;;
679 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
680 { (exit 1); exit 1; }; };;
684 # There might be people who depend on the old broken behavior: `$host'
685 # used to hold the argument of --host etc.
686 # FIXME: To remove some day.
691 # FIXME: To remove some day.
692 if test "x$host_alias" != x
; then
693 if test "x$build_alias" = x
; then
694 cross_compiling
=maybe
695 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
696 If a cross compiler is detected then cross compile mode will be used." >&2
697 elif test "x$build_alias" != "x$host_alias"; then
703 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
705 test "$silent" = yes && exec 6>/dev
/null
708 # Find the source files, if location was not specified.
709 if test -z "$srcdir"; then
710 ac_srcdir_defaulted
=yes
711 # Try the directory containing this script, then its parent.
712 ac_confdir
=`(dirname "$0") 2>/dev/null ||
713 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
714 X"$0" : 'X\(//\)[^/]' \| \
715 X"$0" : 'X\(//\)$' \| \
716 X"$0" : 'X\(/\)' \| \
717 . : '\(.\)' 2>/dev/null ||
719 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
720 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
721 /^X\(\/\/\)$/{ s//\1/; q; }
722 /^X\(\/\).*/{ s//\1/; q; }
725 if test ! -r $srcdir/$ac_unique_file; then
729 ac_srcdir_defaulted
=no
731 if test ! -r $srcdir/$ac_unique_file; then
732 if test "$ac_srcdir_defaulted" = yes; then
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
734 { (exit 1); exit 1; }; }
736 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
737 { (exit 1); exit 1; }; }
740 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null
||
741 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
742 { (exit 1); exit 1; }; }
743 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
744 ac_env_build_alias_set
=${build_alias+set}
745 ac_env_build_alias_value
=$build_alias
746 ac_cv_env_build_alias_set
=${build_alias+set}
747 ac_cv_env_build_alias_value
=$build_alias
748 ac_env_host_alias_set
=${host_alias+set}
749 ac_env_host_alias_value
=$host_alias
750 ac_cv_env_host_alias_set
=${host_alias+set}
751 ac_cv_env_host_alias_value
=$host_alias
752 ac_env_target_alias_set
=${target_alias+set}
753 ac_env_target_alias_value
=$target_alias
754 ac_cv_env_target_alias_set
=${target_alias+set}
755 ac_cv_env_target_alias_value
=$target_alias
756 ac_env_CC_set
=${CC+set}
758 ac_cv_env_CC_set
=${CC+set}
759 ac_cv_env_CC_value
=$CC
760 ac_env_CFLAGS_set
=${CFLAGS+set}
761 ac_env_CFLAGS_value
=$CFLAGS
762 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
763 ac_cv_env_CFLAGS_value
=$CFLAGS
764 ac_env_LDFLAGS_set
=${LDFLAGS+set}
765 ac_env_LDFLAGS_value
=$LDFLAGS
766 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
767 ac_cv_env_LDFLAGS_value
=$LDFLAGS
768 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
769 ac_env_CPPFLAGS_value
=$CPPFLAGS
770 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
771 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
772 ac_env_CPP_set
=${CPP+set}
773 ac_env_CPP_value
=$CPP
774 ac_cv_env_CPP_set
=${CPP+set}
775 ac_cv_env_CPP_value
=$CPP
778 # Report the --help message.
780 if test "$ac_init_help" = "long"; then
781 # Omit some internal or obsolete options to make the list less imposing.
782 # This message is too long to be a string in the A/UX 3.1 sh.
784 \`configure' configures srvx 1.3 to adapt to many kinds of systems.
786 Usage: $0 [OPTION]... [VAR=VALUE]...
788 To assign environment variables (e.g., CC, CFLAGS...), specify them as
789 VAR=VALUE. See below for descriptions of some of the useful variables.
791 Defaults for the options are specified in brackets.
794 -h, --help display this help and exit
795 --help=short display options specific to this package
796 --help=recursive display the short help of all the included packages
797 -V, --version display version information and exit
798 -q, --quiet, --silent do not print \`checking...' messages
799 --cache-file=FILE cache test results in FILE [disabled]
800 -C, --config-cache alias for \`--cache-file=config.cache'
801 -n, --no-create do not create output files
802 --srcdir=DIR find the sources in DIR [configure dir or \`..']
807 Installation directories:
808 --prefix=PREFIX install architecture-independent files in PREFIX
810 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
813 By default, \`make install' will install all the files in
814 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
815 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
816 for instance \`--prefix=\$HOME'.
818 For better control, use the options below.
820 Fine tuning of the installation directories:
821 --bindir=DIR user executables [EPREFIX/bin]
822 --sbindir=DIR system admin executables [EPREFIX/sbin]
823 --libexecdir=DIR program executables [EPREFIX/libexec]
824 --datadir=DIR read-only architecture-independent data [PREFIX/share]
825 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
826 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
827 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
828 --libdir=DIR object code libraries [EPREFIX/lib]
829 --includedir=DIR C header files [PREFIX/include]
830 --oldincludedir=DIR C header files for non-gcc [/usr/include]
831 --infodir=DIR info documentation [PREFIX/info]
832 --mandir=DIR man documentation [PREFIX/man]
838 --program-prefix=PREFIX prepend PREFIX to installed program names
839 --program-suffix=SUFFIX append SUFFIX to installed program names
840 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
843 --build=BUILD configure
for building on BUILD
[guessed
]
844 --host=HOST cross
-compile to build programs to run on HOST
[BUILD
]
845 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
849 if test -n "$ac_init_help"; then
850 case $ac_init_help in
851 short
| recursive
) echo "Configuration of srvx 1.3:";;
856 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
857 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
858 --enable-maintainer-mode enable make rules and dependencies not useful
859 (and sometimes confusing
) to the casual installer
860 --disable-tokens Disables tokenization of P10 protocol output
861 (tokens required
if linking to ircu
2.10.11)
862 --enable-debug Enables debugging behaviors
863 --enable-modules=list
,of
,modules Enable extra modules
866 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
867 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
868 --with-malloc=type Enables use of a special malloc library
; one of
:
869 system
(the default
), boehm
-gc, dmalloc
, mpatrol
870 --with-protocol=name Choose IRC dialect to support
; one of
:
871 p10
(the default
), bahamut
872 --without-getopt Disables building of the GNU getopt library
874 Some influential environment variables
:
875 CC C compiler
command
876 CFLAGS C compiler flags
877 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
878 nonstandard directory
<lib dir
>
879 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
880 headers
in a nonstandard directory
<include dir
>
883 Use these variables to override the choices made by
`configure' or to help
884 it to find libraries and programs with nonstandard names/locations.
886 Report bugs to <srvx-bugs@lists.sourceforge.net>.
890 if test "$ac_init_help" = "recursive"; then
891 # If there are subdirs, report their specific --help.
893 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
894 test -d $ac_dir || continue
897 if test "$ac_dir" != .; then
898 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
899 # A "../" for each directory in $ac_dir_suffix.
900 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
902 ac_dir_suffix= ac_top_builddir=
906 .) # No --srcdir option. We are building in place.
908 if test -z "$ac_top_builddir"; then
911 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
913 [\\/]* | ?:[\\/]* ) # Absolute path.
914 ac_srcdir=$srcdir$ac_dir_suffix;
915 ac_top_srcdir=$srcdir ;;
917 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
918 ac_top_srcdir=$ac_top_builddir$srcdir ;;
921 # Do not use `cd foo
&& pwd` to compute absolute paths, because
922 # the directories may not exist.
924 .) ac_abs_builddir="$ac_dir";;
927 .) ac_abs_builddir=`pwd`;;
928 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
929 *) ac_abs_builddir=`pwd`/"$ac_dir";;
932 case $ac_abs_builddir in
933 .) ac_abs_top_builddir=${ac_top_builddir}.;;
935 case ${ac_top_builddir}. in
936 .) ac_abs_top_builddir=$ac_abs_builddir;;
937 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
938 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
941 case $ac_abs_builddir in
942 .) ac_abs_srcdir=$ac_srcdir;;
945 .) ac_abs_srcdir=$ac_abs_builddir;;
946 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
947 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
950 case $ac_abs_builddir in
951 .) ac_abs_top_srcdir=$ac_top_srcdir;;
953 case $ac_top_srcdir in
954 .) ac_abs_top_srcdir=$ac_abs_builddir;;
955 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
956 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
961 # Check for guested configure; otherwise get Cygnus style configure.
962 if test -f $ac_srcdir/configure.gnu; then
964 $SHELL $ac_srcdir/configure.gnu --help=recursive
965 elif test -f $ac_srcdir/configure; then
967 $SHELL $ac_srcdir/configure --help=recursive
968 elif test -f $ac_srcdir/configure.ac ||
969 test -f $ac_srcdir/configure.in; then
973 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
979 test -n "$ac_init_help" && exit 0
980 if $ac_init_version; then
983 generated by GNU Autoconf 2.59
985 Copyright (C) 2003 Free Software Foundation, Inc.
986 This configure script is free software; the Free Software Foundation
987 gives unlimited permission to copy, distribute and modify it.
993 This file contains any messages produced by compilers while
994 running configure, to aid debugging if configure makes a mistake.
996 It was created by srvx $as_me 1.3, which was
997 generated by GNU Autoconf 2.59. Invocation command line was
1008 hostname = `(hostname
|| uname
-n) 2>/dev
/null
| sed 1q
`
1009 uname -m = `(uname
-m) 2>/dev
/null
|| echo unknown
`
1010 uname -r = `(uname
-r) 2>/dev
/null
|| echo unknown
`
1011 uname -s = `(uname
-s) 2>/dev
/null
|| echo unknown
`
1012 uname -v = `(uname
-v) 2>/dev
/null
|| echo unknown
`
1014 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null
|| echo unknown
`
1015 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null
|| echo unknown
`
1017 /bin/arch = `(/bin
/arch
) 2>/dev
/null
|| echo unknown
`
1018 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null
|| echo unknown
`
1019 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null
|| echo unknown
`
1020 hostinfo = `(hostinfo
) 2>/dev
/null
|| echo unknown
`
1021 /bin/machine = `(/bin
/machine
) 2>/dev
/null
|| echo unknown
`
1022 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null
|| echo unknown
`
1023 /bin/universe = `(/bin
/universe
) 2>/dev
/null
|| echo unknown
`
1027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1031 test -z "$as_dir" && as_dir=.
1032 echo "PATH: $as_dir"
1047 # Keep a trace of the command line.
1048 # Strip out --no-create and --no-recursion so they do not pile up.
1049 # Strip out --silent because we don't want to record it for future runs.
1050 # Also quote any args containing shell meta-characters.
1051 # Make two passes to allow for proper duplicate-argument suppression.
1056 ac_must_keep_next=false
1062 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1063 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1064 | -silent | --silent | --silen | --sile | --sil)
1066 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1067 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1070 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1072 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1073 if test $ac_must_keep_next = true; then
1074 ac_must_keep_next=false # Got value, back to normal.
1077 *=* | --config-cache | -C | -disable-* | --disable-* \
1078 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1079 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1080 | -with-* | --with-* | -without-* | --without-* | --x)
1081 case "$ac_configure_args0 " in
1082 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1085 -* ) ac_must_keep_next=true ;;
1088 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1089 # Get rid of the leading space.
1095 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1096 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1098 # When interrupted or exit'd, cleanup temporary files, and complete
1099 # config.log. We remove comments because anyway the quotes in there
1100 # would cause problems or look ugly.
1101 # WARNING: Be sure not to use single quotes in there, as some shells,
1102 # such as our DU 5.0 friend, will then `close
' the trap.
1103 trap 'exit_status
=$?
1104 # Save into config.log some information that might help in debugging.
1109 ## ---------------- ##
1110 ## Cache variables. ##
1111 ## ---------------- ##
1114 # The following way of writing the cache mishandles newlines in values,
1117 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1120 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1121 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1125 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1132 ## ----------------- ##
1133 ## Output variables. ##
1134 ## ----------------- ##
1137 for ac_var
in $ac_subst_vars
1139 eval ac_val
=$
`echo $ac_var`
1140 echo "$ac_var='"'"'$ac_val'"'"'"
1144 if test -n "$ac_subst_files"; then
1151 for ac_var
in $ac_subst_files
1153 eval ac_val
=$
`echo $ac_var`
1154 echo "$ac_var='"'"'$ac_val'"'"'"
1159 if test -s confdefs.h
; then
1166 sed "/^$/d" confdefs.h
| sort
1169 test "$ac_signal" != 0 &&
1170 echo "$as_me: caught signal $ac_signal"
1171 echo "$as_me: exit $exit_status"
1173 rm -f core
*.core
&&
1174 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1177 for ac_signal in 1 2 13 15; do
1178 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1182 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1183 rm -rf conftest* confdefs.h
1184 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1187 # Predefined preprocessor variables.
1189 cat >>confdefs.h <<_ACEOF
1190 #define PACKAGE_NAME "$PACKAGE_NAME"
1194 cat >>confdefs.h <<_ACEOF
1195 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1199 cat >>confdefs.h <<_ACEOF
1200 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1204 cat >>confdefs.h <<_ACEOF
1205 #define PACKAGE_STRING "$PACKAGE_STRING"
1209 cat >>confdefs.h <<_ACEOF
1210 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1214 # Let the site file select an alternate cache file if it wants to.
1215 # Prefer explicitly selected file to automatically selected ones.
1216 if test -z "$CONFIG_SITE"; then
1217 if test "x$prefix" != xNONE; then
1218 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1220 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1223 for ac_site_file in $CONFIG_SITE; do
1224 if test -r "$ac_site_file"; then
1225 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1226 echo "$as_me: loading site script $ac_site_file" >&6;}
1227 sed 's
/^
/| /' "$ac_site_file" >&5
1232 if test -r "$cache_file"; then
1233 # Some versions of bash will fail to source /dev/null (special
1234 # files actually), so we avoid doing that.
1235 if test -f "$cache_file"; then
1236 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1237 echo "$as_me: loading cache $cache_file" >&6;}
1239 [\\/]* | ?:[\\/]* ) . $cache_file;;
1240 *) . ./$cache_file;;
1244 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1245 echo "$as_me: creating cache $cache_file" >&6;}
1249 # Check that the precious variables saved in the cache have kept the same
1251 ac_cache_corrupted=false
1252 for ac_var in `(set) 2>&1 |
1253 sed -n 's
/^ac_env_\
([a
-zA-Z_0-9]*\
)_set
=.
*/\
1/p
'`; do
1254 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1255 eval ac_new_set=\$ac_env_${ac_var}_set
1256 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1257 eval ac_new_val="\$ac_env_${ac_var}_value"
1258 case $ac_old_set,$ac_new_set in
1260 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1261 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1262 ac_cache_corrupted=: ;;
1264 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1265 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1266 ac_cache_corrupted=: ;;
1269 if test "x$ac_old_val" != "x$ac_new_val"; then
1270 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1271 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1272 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1273 echo "$as_me: former value: $ac_old_val" >&2;}
1274 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1275 echo "$as_me: current value: $ac_new_val" >&2;}
1276 ac_cache_corrupted=:
1279 # Pass precious variables to config.status.
1280 if test "$ac_new_set" = set; then
1282 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1283 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1284 *) ac_arg=$ac_var=$ac_new_val ;;
1286 case " $ac_configure_args " in
1287 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1288 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1292 if $ac_cache_corrupted; then
1293 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1294 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1295 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1296 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1297 { (exit 1); exit 1; }; }
1301 ac_cpp='$CPP $CPPFLAGS'
1302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1303 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1333 ac_config_headers="$ac_config_headers src/config.h"
1337 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1338 if test -f $ac_dir/install-sh; then
1340 ac_install_sh="$ac_aux_dir/install-sh -c"
1342 elif test -f $ac_dir/install.sh; then
1344 ac_install_sh="$ac_aux_dir/install.sh -c"
1346 elif test -f $ac_dir/shtool; then
1348 ac_install_sh="$ac_aux_dir/shtool install -c"
1352 if test -z "$ac_aux_dir"; then
1353 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1354 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1355 { (exit 1); exit 1; }; }
1357 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1358 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1359 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1361 # Make sure we can run config.sub.
1362 $ac_config_sub sun4 >/dev/null 2>&1 ||
1363 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1364 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1365 { (exit 1); exit 1; }; }
1367 echo "$as_me:$LINENO: checking build system type" >&5
1368 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1369 if test "${ac_cv_build+set}" = set; then
1370 echo $ECHO_N "(cached) $ECHO_C" >&6
1372 ac_cv_build_alias=$build_alias
1373 test -z "$ac_cv_build_alias" &&
1374 ac_cv_build_alias=`$ac_config_guess`
1375 test -z "$ac_cv_build_alias" &&
1376 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1377 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1378 { (exit 1); exit 1; }; }
1379 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1380 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1381 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1382 { (exit 1); exit 1; }; }
1385 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1386 echo "${ECHO_T}$ac_cv_build" >&6
1388 build_cpu=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1389 build_vendor=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1390 build_os=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1393 echo "$as_me:$LINENO: checking host system type" >&5
1394 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1395 if test "${ac_cv_host+set}" = set; then
1396 echo $ECHO_N "(cached) $ECHO_C" >&6
1398 ac_cv_host_alias=$host_alias
1399 test -z "$ac_cv_host_alias" &&
1400 ac_cv_host_alias=$ac_cv_build_alias
1401 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1402 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1403 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1404 { (exit 1); exit 1; }; }
1407 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1408 echo "${ECHO_T}$ac_cv_host" >&6
1410 host_cpu=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1411 host_vendor=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1412 host_os=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1415 echo "$as_me:$LINENO: checking target system type" >&5
1416 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1417 if test "${ac_cv_target+set}" = set; then
1418 echo $ECHO_N "(cached) $ECHO_C" >&6
1420 ac_cv_target_alias=$target_alias
1421 test "x$ac_cv_target_alias" = "x" &&
1422 ac_cv_target_alias=$ac_cv_host_alias
1423 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1424 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1425 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1426 { (exit 1); exit 1; }; }
1429 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1430 echo "${ECHO_T}$ac_cv_target" >&6
1431 target=$ac_cv_target
1432 target_cpu=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1433 target_vendor=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1434 target_os=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1437 # The aliases save the names the user supplied, while $host etc.
1438 # will get canonicalized.
1439 test -n "$target_alias" &&
1440 test "$program_prefix$program_suffix$program_transform_name" = \
1442 program_prefix=${target_alias}-
1443 # Find a good install program. We prefer a C program (faster),
1444 # so one script is as good as another. But avoid the broken or
1445 # incompatible versions:
1446 # SysV /etc/install, /usr/sbin/install
1447 # SunOS /usr/etc/install
1448 # IRIX /sbin/install
1450 # AmigaOS /C/install, which installs bootblocks on floppy discs
1451 # AIX 4 /usr/bin/installbsd, which doesn't work without a
-g flag
1452 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1453 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1454 # OS/2's system install, which has a completely different semantic
1455 # ./install, which can be erroneously created by make from ./install.sh.
1456 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1457 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1458 if test -z "$INSTALL"; then
1459 if test "${ac_cv_path_install+set}" = set; then
1460 echo $ECHO_N "(cached) $ECHO_C" >&6
1462 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1466 test -z "$as_dir" && as_dir
=.
1467 # Account for people who put trailing slashes in PATH elements.
1469 .
/ | .
// | /cC
/* | \
1470 /etc
/* | /usr
/sbin
/* | /usr
/etc
/* | /sbin
/* | /usr
/afsws
/bin
/* | \
1471 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
1474 # OSF1 and SCO ODT 3.0 have their own names for install.
1475 # Don't use installbsd from OSF since it installs stuff as root
1477 for ac_prog
in ginstall scoinst
install; do
1478 for ac_exec_ext
in '' $ac_executable_extensions; do
1479 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1480 if test $ac_prog = install &&
1481 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
1482 # AIX install. It has an incompatible calling convention.
1484 elif test $ac_prog = install &&
1485 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
1486 # program-specific install script used by HP pwplus--don't use.
1489 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
1501 if test "${ac_cv_path_install+set}" = set; then
1502 INSTALL
=$ac_cv_path_install
1504 # As a last resort, use the slow shell script. We don't cache a
1505 # path for INSTALL within a source directory, because that will
1506 # break other packages using the cache if that directory is
1507 # removed, or if the path is relative.
1508 INSTALL
=$ac_install_sh
1511 echo "$as_me:$LINENO: result: $INSTALL" >&5
1512 echo "${ECHO_T}$INSTALL" >&6
1514 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1515 # It thinks the first close brace ends the variable substitution.
1516 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1518 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
1520 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1522 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1523 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1526 echo timestamp
> conftestfile
1527 # Do `set' in a subshell so we don't clobber the current shell's
1528 # arguments. Must try -L first in case configure is actually a
1529 # symlink; some systems play weird games with the mod time of symlinks
1530 # (eg FreeBSD returns the mod time of the symlink's containing
1533 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1534 if test "$*" = "X"; then
1536 set X
`ls -t $srcdir/configure conftestfile`
1538 if test "$*" != "X $srcdir/configure conftestfile" \
1539 && test "$*" != "X conftestfile $srcdir/configure"; then
1541 # If neither matched, then we have a broken ls. This can happen
1542 # if, for instance, CONFIG_SHELL is bash and it inherits a
1543 # broken ls alias from the environment. This has actually
1544 # happened. Such a system could not be considered "sane".
1545 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1546 alias in your environment" >&5
1547 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1548 alias in your environment" >&2;}
1549 { (exit 1); exit 1; }; }
1552 test "$2" = conftestfile
1558 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1559 Check your system clock" >&5
1560 echo "$as_me: error: newly created file is older than distributed files!
1561 Check your system clock" >&2;}
1562 { (exit 1); exit 1; }; }
1565 echo "$as_me:$LINENO: result: yes" >&5
1566 echo "${ECHO_T}yes" >&6
1567 test "$program_prefix" != NONE
&&
1568 program_transform_name
="s,^,$program_prefix,;$program_transform_name"
1569 # Use a double $ so make ignores it.
1570 test "$program_suffix" != NONE
&&
1571 program_transform_name
="s,\$,$program_suffix,;$program_transform_name"
1572 # Double any \ or $. echo might interpret backslashes.
1573 # By default was `s,x,x', remove it if useless.
1574 cat <<\_ACEOF
>conftest.
sed
1575 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1577 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1580 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1581 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1582 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
1583 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1584 echo $ECHO_N "(cached) $ECHO_C" >&6
1586 cat >conftest.
make <<\_ACEOF
1588 @
echo 'ac_maketemp="$(MAKE)"'
1590 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1591 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1592 if test -n "$ac_maketemp"; then
1593 eval ac_cv_prog_make_
${ac_make}_set
=yes
1595 eval ac_cv_prog_make_
${ac_make}_set
=no
1599 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1600 echo "$as_me:$LINENO: result: yes" >&5
1601 echo "${ECHO_T}yes" >&6
1604 echo "$as_me:$LINENO: result: no" >&5
1605 echo "${ECHO_T}no" >&6
1606 SET_MAKE
="MAKE=${MAKE-make}"
1614 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status
; then
1615 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1616 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1617 { (exit 1); exit 1; }; }
1620 cat >>confdefs.h
<<_ACEOF
1621 #define PACKAGE "$PACKAGE"
1625 cat >>confdefs.h
<<_ACEOF
1626 #define VERSION "$VERSION"
1631 missing_dir
=`cd $ac_aux_dir && pwd`
1632 echo "$as_me:$LINENO: checking for working aclocal" >&5
1633 echo $ECHO_N "checking for working aclocal... $ECHO_C" >&6
1634 # Run test in a subshell; some versions of sh will print an error if
1635 # an executable is not found, even if stderr is redirected.
1636 # Redirect stdin to placate older versions of autoconf. Sigh.
1637 if (aclocal
--version) < /dev
/null
> /dev
/null
2>&1; then
1639 echo "$as_me:$LINENO: result: found" >&5
1640 echo "${ECHO_T}found" >&6
1642 ACLOCAL
="$missing_dir/missing aclocal"
1643 echo "$as_me:$LINENO: result: missing" >&5
1644 echo "${ECHO_T}missing" >&6
1647 echo "$as_me:$LINENO: checking for working autoconf" >&5
1648 echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
1649 # Run test in a subshell; some versions of sh will print an error if
1650 # an executable is not found, even if stderr is redirected.
1651 # Redirect stdin to placate older versions of autoconf. Sigh.
1652 if (autoconf
--version) < /dev
/null
> /dev
/null
2>&1; then
1654 echo "$as_me:$LINENO: result: found" >&5
1655 echo "${ECHO_T}found" >&6
1657 AUTOCONF
="$missing_dir/missing autoconf"
1658 echo "$as_me:$LINENO: result: missing" >&5
1659 echo "${ECHO_T}missing" >&6
1662 echo "$as_me:$LINENO: checking for working automake" >&5
1663 echo $ECHO_N "checking for working automake... $ECHO_C" >&6
1664 # Run test in a subshell; some versions of sh will print an error if
1665 # an executable is not found, even if stderr is redirected.
1666 # Redirect stdin to placate older versions of autoconf. Sigh.
1667 if (automake
--version) < /dev
/null
> /dev
/null
2>&1; then
1669 echo "$as_me:$LINENO: result: found" >&5
1670 echo "${ECHO_T}found" >&6
1672 AUTOMAKE
="$missing_dir/missing automake"
1673 echo "$as_me:$LINENO: result: missing" >&5
1674 echo "${ECHO_T}missing" >&6
1677 echo "$as_me:$LINENO: checking for working autoheader" >&5
1678 echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
1679 # Run test in a subshell; some versions of sh will print an error if
1680 # an executable is not found, even if stderr is redirected.
1681 # Redirect stdin to placate older versions of autoconf. Sigh.
1682 if (autoheader
--version) < /dev
/null
> /dev
/null
2>&1; then
1683 AUTOHEADER
=autoheader
1684 echo "$as_me:$LINENO: result: found" >&5
1685 echo "${ECHO_T}found" >&6
1687 AUTOHEADER
="$missing_dir/missing autoheader"
1688 echo "$as_me:$LINENO: result: missing" >&5
1689 echo "${ECHO_T}missing" >&6
1692 echo "$as_me:$LINENO: checking for working makeinfo" >&5
1693 echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
1694 # Run test in a subshell; some versions of sh will print an error if
1695 # an executable is not found, even if stderr is redirected.
1696 # Redirect stdin to placate older versions of autoconf. Sigh.
1697 if (makeinfo
--version) < /dev
/null
> /dev
/null
2>&1; then
1699 echo "$as_me:$LINENO: result: found" >&5
1700 echo "${ECHO_T}found" >&6
1702 MAKEINFO
="$missing_dir/missing makeinfo"
1703 echo "$as_me:$LINENO: result: missing" >&5
1704 echo "${ECHO_T}missing" >&6
1708 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1709 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1710 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1711 if test "${enable_maintainer_mode+set}" = set; then
1712 enableval
="$enable_maintainer_mode"
1713 USE_MAINTAINER_MODE
=$enableval
1715 USE_MAINTAINER_MODE
=no
1717 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1718 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1721 if test $USE_MAINTAINER_MODE = yes; then
1722 MAINTAINER_MODE_TRUE
=
1723 MAINTAINER_MODE_FALSE
='#'
1725 MAINTAINER_MODE_TRUE
='#'
1726 MAINTAINER_MODE_FALSE
=
1728 MAINT
=$MAINTAINER_MODE_TRUE
1733 ac_cpp
='$CPP $CPPFLAGS'
1734 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1735 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1736 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1737 if test -n "$ac_tool_prefix"; then
1738 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1739 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1740 echo "$as_me:$LINENO: checking for $ac_word" >&5
1741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1742 if test "${ac_cv_prog_CC+set}" = set; then
1743 echo $ECHO_N "(cached) $ECHO_C" >&6
1745 if test -n "$CC"; then
1746 ac_cv_prog_CC
="$CC" # Let the user override the test.
1748 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1752 test -z "$as_dir" && as_dir
=.
1753 for ac_exec_ext
in '' $ac_executable_extensions; do
1754 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1755 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1765 if test -n "$CC"; then
1766 echo "$as_me:$LINENO: result: $CC" >&5
1767 echo "${ECHO_T}$CC" >&6
1769 echo "$as_me:$LINENO: result: no" >&5
1770 echo "${ECHO_T}no" >&6
1774 if test -z "$ac_cv_prog_CC"; then
1776 # Extract the first word of "gcc", so it can be a program name with args.
1777 set dummy gcc
; ac_word
=$2
1778 echo "$as_me:$LINENO: checking for $ac_word" >&5
1779 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1780 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1781 echo $ECHO_N "(cached) $ECHO_C" >&6
1783 if test -n "$ac_ct_CC"; then
1784 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1786 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1790 test -z "$as_dir" && as_dir
=.
1791 for ac_exec_ext
in '' $ac_executable_extensions; do
1792 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1793 ac_cv_prog_ac_ct_CC
="gcc"
1794 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1802 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1803 if test -n "$ac_ct_CC"; then
1804 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1805 echo "${ECHO_T}$ac_ct_CC" >&6
1807 echo "$as_me:$LINENO: result: no" >&5
1808 echo "${ECHO_T}no" >&6
1816 if test -z "$CC"; then
1817 if test -n "$ac_tool_prefix"; then
1818 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1819 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1820 echo "$as_me:$LINENO: checking for $ac_word" >&5
1821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1822 if test "${ac_cv_prog_CC+set}" = set; then
1823 echo $ECHO_N "(cached) $ECHO_C" >&6
1825 if test -n "$CC"; then
1826 ac_cv_prog_CC
="$CC" # Let the user override the test.
1828 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1832 test -z "$as_dir" && as_dir
=.
1833 for ac_exec_ext
in '' $ac_executable_extensions; do
1834 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1835 ac_cv_prog_CC
="${ac_tool_prefix}cc"
1836 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1845 if test -n "$CC"; then
1846 echo "$as_me:$LINENO: result: $CC" >&5
1847 echo "${ECHO_T}$CC" >&6
1849 echo "$as_me:$LINENO: result: no" >&5
1850 echo "${ECHO_T}no" >&6
1854 if test -z "$ac_cv_prog_CC"; then
1856 # Extract the first word of "cc", so it can be a program name with args.
1857 set dummy cc
; ac_word
=$2
1858 echo "$as_me:$LINENO: checking for $ac_word" >&5
1859 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1860 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1861 echo $ECHO_N "(cached) $ECHO_C" >&6
1863 if test -n "$ac_ct_CC"; then
1864 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1866 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1870 test -z "$as_dir" && as_dir
=.
1871 for ac_exec_ext
in '' $ac_executable_extensions; do
1872 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1873 ac_cv_prog_ac_ct_CC
="cc"
1874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1882 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1883 if test -n "$ac_ct_CC"; then
1884 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1885 echo "${ECHO_T}$ac_ct_CC" >&6
1887 echo "$as_me:$LINENO: result: no" >&5
1888 echo "${ECHO_T}no" >&6
1897 if test -z "$CC"; then
1898 # Extract the first word of "cc", so it can be a program name with args.
1899 set dummy cc
; ac_word
=$2
1900 echo "$as_me:$LINENO: checking for $ac_word" >&5
1901 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1902 if test "${ac_cv_prog_CC+set}" = set; then
1903 echo $ECHO_N "(cached) $ECHO_C" >&6
1905 if test -n "$CC"; then
1906 ac_cv_prog_CC
="$CC" # Let the user override the test.
1909 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1913 test -z "$as_dir" && as_dir
=.
1914 for ac_exec_ext
in '' $ac_executable_extensions; do
1915 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1916 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1917 ac_prog_rejected
=yes
1921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1927 if test $ac_prog_rejected = yes; then
1928 # We found a bogon in the path, so make sure we never use it.
1929 set dummy
$ac_cv_prog_CC
1931 if test $# != 0; then
1932 # We chose a different compiler from the bogus one.
1933 # However, it has the same basename, so the bogon will be chosen
1934 # first if we set CC to just the basename; use the full file name.
1936 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
1942 if test -n "$CC"; then
1943 echo "$as_me:$LINENO: result: $CC" >&5
1944 echo "${ECHO_T}$CC" >&6
1946 echo "$as_me:$LINENO: result: no" >&5
1947 echo "${ECHO_T}no" >&6
1951 if test -z "$CC"; then
1952 if test -n "$ac_tool_prefix"; then
1955 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1956 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
1957 echo "$as_me:$LINENO: checking for $ac_word" >&5
1958 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1959 if test "${ac_cv_prog_CC+set}" = set; then
1960 echo $ECHO_N "(cached) $ECHO_C" >&6
1962 if test -n "$CC"; then
1963 ac_cv_prog_CC
="$CC" # Let the user override the test.
1965 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1969 test -z "$as_dir" && as_dir
=.
1970 for ac_exec_ext
in '' $ac_executable_extensions; do
1971 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1972 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
1973 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1982 if test -n "$CC"; then
1983 echo "$as_me:$LINENO: result: $CC" >&5
1984 echo "${ECHO_T}$CC" >&6
1986 echo "$as_me:$LINENO: result: no" >&5
1987 echo "${ECHO_T}no" >&6
1990 test -n "$CC" && break
1993 if test -z "$CC"; then
1997 # Extract the first word of "$ac_prog", so it can be a program name with args.
1998 set dummy
$ac_prog; ac_word
=$2
1999 echo "$as_me:$LINENO: checking for $ac_word" >&5
2000 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2001 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2002 echo $ECHO_N "(cached) $ECHO_C" >&6
2004 if test -n "$ac_ct_CC"; then
2005 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2007 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2011 test -z "$as_dir" && as_dir
=.
2012 for ac_exec_ext
in '' $ac_executable_extensions; do
2013 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2014 ac_cv_prog_ac_ct_CC
="$ac_prog"
2015 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2023 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2024 if test -n "$ac_ct_CC"; then
2025 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2026 echo "${ECHO_T}$ac_ct_CC" >&6
2028 echo "$as_me:$LINENO: result: no" >&5
2029 echo "${ECHO_T}no" >&6
2032 test -n "$ac_ct_CC" && break
2041 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2042 See \`config.log' for more details." >&5
2043 echo "$as_me: error: no acceptable C compiler found in \$PATH
2044 See \`config.log' for more details." >&2;}
2045 { (exit 1); exit 1; }; }
2047 # Provide some information about the compiler.
2048 echo "$as_me:$LINENO:" \
2049 "checking for C compiler version" >&5
2050 ac_compiler
=`set X $ac_compile; echo $2`
2051 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2052 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2055 (exit $ac_status); }
2056 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2057 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2060 (exit $ac_status); }
2061 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2062 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2065 (exit $ac_status); }
2067 cat >conftest.
$ac_ext <<_ACEOF
2070 cat confdefs.h
>>conftest.
$ac_ext
2071 cat >>conftest.
$ac_ext <<_ACEOF
2072 /* end confdefs.h. */
2082 ac_clean_files_save
=$ac_clean_files
2083 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
2084 # Try to create an executable without -o first, disregard a.out.
2085 # It will help us diagnose broken compilers, and finding out an intuition
2087 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2088 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2089 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2090 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2091 (eval $ac_link_default) 2>&5
2093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2094 (exit $ac_status); }; then
2095 # Find the output, starting from the most likely. This scheme is
2096 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2099 # Be careful to initialize this variable, since it used to be cached.
2100 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2102 # b.out is created by i960 compilers.
2103 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
2105 test -f "$ac_file" || continue
2107 *.
$ac_ext | *.xcoff
| *.tds
| *.d
| *.pdb
| *.xSYM
| *.bb
| *.bbg
| *.o
| *.obj
)
2110 # This is the source file.
2113 # We found the default executable, but exeext='' is most
2117 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2118 # FIXME: I believe we export ac_cv_exeext for Libtool,
2119 # but it would be cool to find out if it's true. Does anybody
2120 # maintain Libtool? --akim.
2128 echo "$as_me: failed program was:" >&5
2129 sed 's/^/| /' conftest.
$ac_ext >&5
2131 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2132 See \`config.log' for more details." >&5
2133 echo "$as_me: error: C compiler cannot create executables
2134 See \`config.log' for more details." >&2;}
2135 { (exit 77); exit 77; }; }
2138 ac_exeext
=$ac_cv_exeext
2139 echo "$as_me:$LINENO: result: $ac_file" >&5
2140 echo "${ECHO_T}$ac_file" >&6
2142 # Check the compiler produces executables we can run. If not, either
2143 # the compiler is broken, or we cross compile.
2144 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2145 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2146 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2147 # If not cross compiling, check that we can run a simple program.
2148 if test "$cross_compiling" != yes; then
2149 if { ac_try
='./$ac_file'
2150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2154 (exit $ac_status); }; }; then
2157 if test "$cross_compiling" = maybe
; then
2160 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2161 If you meant to cross compile, use \`--host'.
2162 See \`config.log' for more details." >&5
2163 echo "$as_me: error: cannot run C compiled programs.
2164 If you meant to cross compile, use \`--host'.
2165 See \`config.log' for more details." >&2;}
2166 { (exit 1); exit 1; }; }
2170 echo "$as_me:$LINENO: result: yes" >&5
2171 echo "${ECHO_T}yes" >&6
2173 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
2174 ac_clean_files
=$ac_clean_files_save
2175 # Check the compiler produces executables we can run. If not, either
2176 # the compiler is broken, or we cross compile.
2177 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2178 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2179 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2180 echo "${ECHO_T}$cross_compiling" >&6
2182 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2183 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2185 (eval $ac_link) 2>&5
2187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2188 (exit $ac_status); }; then
2189 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2190 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2191 # work properly (i.e., refer to `conftest.exe'), while it won't with
2193 for ac_file
in conftest.exe conftest conftest.
*; do
2194 test -f "$ac_file" || continue
2196 *.
$ac_ext | *.xcoff
| *.tds
| *.d
| *.pdb
| *.xSYM
| *.bb
| *.bbg
| *.o
| *.obj
) ;;
2197 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2204 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2205 See \`config.log' for more details." >&5
2206 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2207 See \`config.log' for more details." >&2;}
2208 { (exit 1); exit 1; }; }
2211 rm -f conftest
$ac_cv_exeext
2212 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2213 echo "${ECHO_T}$ac_cv_exeext" >&6
2215 rm -f conftest.
$ac_ext
2216 EXEEXT
=$ac_cv_exeext
2218 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2219 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2220 if test "${ac_cv_objext+set}" = set; then
2221 echo $ECHO_N "(cached) $ECHO_C" >&6
2223 cat >conftest.
$ac_ext <<_ACEOF
2226 cat confdefs.h
>>conftest.
$ac_ext
2227 cat >>conftest.
$ac_ext <<_ACEOF
2228 /* end confdefs.h. */
2238 rm -f conftest.o conftest.obj
2239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2240 (eval $ac_compile) 2>&5
2242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2243 (exit $ac_status); }; then
2244 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2246 *.
$ac_ext | *.xcoff
| *.tds
| *.d
| *.pdb
| *.xSYM
| *.bb
| *.bbg
) ;;
2247 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2252 echo "$as_me: failed program was:" >&5
2253 sed 's/^/| /' conftest.
$ac_ext >&5
2255 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2256 See \`config.log' for more details." >&5
2257 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2258 See \`config.log' for more details." >&2;}
2259 { (exit 1); exit 1; }; }
2262 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2264 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2265 echo "${ECHO_T}$ac_cv_objext" >&6
2266 OBJEXT
=$ac_cv_objext
2268 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2269 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2270 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2271 echo $ECHO_N "(cached) $ECHO_C" >&6
2273 cat >conftest.
$ac_ext <<_ACEOF
2276 cat confdefs.h
>>conftest.
$ac_ext
2277 cat >>conftest.
$ac_ext <<_ACEOF
2278 /* end confdefs.h. */
2291 rm -f conftest.
$ac_objext
2292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2293 (eval $ac_compile) 2>conftest.er1
2295 grep -v '^ *+' conftest.er1
>conftest.err
2297 cat conftest.err
>&5
2298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2299 (exit $ac_status); } &&
2300 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2305 (exit $ac_status); }; } &&
2306 { ac_try
='test -s conftest.$ac_objext'
2307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2311 (exit $ac_status); }; }; then
2314 echo "$as_me: failed program was:" >&5
2315 sed 's/^/| /' conftest.
$ac_ext >&5
2319 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2320 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2323 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2324 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2325 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2326 ac_test_CFLAGS
=${CFLAGS+set}
2327 ac_save_CFLAGS
=$CFLAGS
2329 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2330 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2331 if test "${ac_cv_prog_cc_g+set}" = set; then
2332 echo $ECHO_N "(cached) $ECHO_C" >&6
2334 cat >conftest.
$ac_ext <<_ACEOF
2337 cat confdefs.h
>>conftest.
$ac_ext
2338 cat >>conftest.
$ac_ext <<_ACEOF
2339 /* end confdefs.h. */
2349 rm -f conftest.
$ac_objext
2350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2351 (eval $ac_compile) 2>conftest.er1
2353 grep -v '^ *+' conftest.er1
>conftest.err
2355 cat conftest.err
>&5
2356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2357 (exit $ac_status); } &&
2358 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363 (exit $ac_status); }; } &&
2364 { ac_try
='test -s conftest.$ac_objext'
2365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2369 (exit $ac_status); }; }; then
2372 echo "$as_me: failed program was:" >&5
2373 sed 's/^/| /' conftest.
$ac_ext >&5
2377 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2379 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2380 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2381 if test "$ac_test_CFLAGS" = set; then
2382 CFLAGS
=$ac_save_CFLAGS
2383 elif test $ac_cv_prog_cc_g = yes; then
2384 if test "$GCC" = yes; then
2390 if test "$GCC" = yes; then
2396 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2397 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2398 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2399 echo $ECHO_N "(cached) $ECHO_C" >&6
2401 ac_cv_prog_cc_stdc
=no
2403 cat >conftest.
$ac_ext <<_ACEOF
2406 cat confdefs.h
>>conftest.
$ac_ext
2407 cat >>conftest.
$ac_ext <<_ACEOF
2408 /* end confdefs.h. */
2411 #include <sys/types.h>
2412 #include <sys/stat.h>
2413 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2414 struct buf { int x; };
2415 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2416 static char *e (p, i)
2422 static char *f (char * (*g) (char **, int), char **p, ...)
2427 s = g (p, va_arg (v,int));
2432 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2433 function prototypes and stuff, but not '\xHH' hex character constants.
2434 These don't provoke an error unfortunately, instead are silently treated
2435 as 'x'. The following induces an error, until -std1 is added to get
2436 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2437 array size at least. It's necessary to write '\x00'==0 to get something
2438 that's true only with -std1. */
2439 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2441 int test (int i, double x);
2442 struct s1 {int (*f) (int a);};
2443 struct s2 {int (*f) (double a);};
2444 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2450 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2455 # Don't try gcc -ansi; that turns off useful extensions and
2456 # breaks some systems' header files.
2457 # AIX -qlanglvl=ansi
2458 # Ultrix and OSF/1 -std1
2459 # HP-UX 10.20 and later -Ae
2460 # HP-UX older versions -Aa -D_HPUX_SOURCE
2461 # SVR4 -Xc -D__EXTENSIONS__
2462 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2464 CC
="$ac_save_CC $ac_arg"
2465 rm -f conftest.
$ac_objext
2466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2467 (eval $ac_compile) 2>conftest.er1
2469 grep -v '^ *+' conftest.er1
>conftest.err
2471 cat conftest.err
>&5
2472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473 (exit $ac_status); } &&
2474 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2479 (exit $ac_status); }; } &&
2480 { ac_try
='test -s conftest.$ac_objext'
2481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2485 (exit $ac_status); }; }; then
2486 ac_cv_prog_cc_stdc
=$ac_arg
2489 echo "$as_me: failed program was:" >&5
2490 sed 's/^/| /' conftest.
$ac_ext >&5
2493 rm -f conftest.err conftest.
$ac_objext
2495 rm -f conftest.
$ac_ext conftest.
$ac_objext
2500 case "x$ac_cv_prog_cc_stdc" in
2502 echo "$as_me:$LINENO: result: none needed" >&5
2503 echo "${ECHO_T}none needed" >&6 ;;
2505 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2506 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2507 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2510 # Some people use a C++ compiler to compile C. Since we use `exit',
2511 # in C++ we need to declare it. In case someone uses the same compiler
2512 # for both compiling C and C++ we need to have the C++ compiler decide
2513 # the declaration of exit, since it's the most demanding environment.
2514 cat >conftest.
$ac_ext <<_ACEOF
2519 rm -f conftest.
$ac_objext
2520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2521 (eval $ac_compile) 2>conftest.er1
2523 grep -v '^ *+' conftest.er1
>conftest.err
2525 cat conftest.err
>&5
2526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2527 (exit $ac_status); } &&
2528 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533 (exit $ac_status); }; } &&
2534 { ac_try
='test -s conftest.$ac_objext'
2535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539 (exit $ac_status); }; }; then
2540 for ac_declaration
in \
2542 'extern "C" void std::exit (int) throw (); using std::exit;' \
2543 'extern "C" void std::exit (int); using std::exit;' \
2544 'extern "C" void exit (int) throw ();' \
2545 'extern "C" void exit (int);' \
2548 cat >conftest.
$ac_ext <<_ACEOF
2551 cat confdefs.h
>>conftest.
$ac_ext
2552 cat >>conftest.
$ac_ext <<_ACEOF
2553 /* end confdefs.h. */
2564 rm -f conftest.
$ac_objext
2565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2566 (eval $ac_compile) 2>conftest.er1
2568 grep -v '^ *+' conftest.er1
>conftest.err
2570 cat conftest.err
>&5
2571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572 (exit $ac_status); } &&
2573 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2578 (exit $ac_status); }; } &&
2579 { ac_try
='test -s conftest.$ac_objext'
2580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2584 (exit $ac_status); }; }; then
2587 echo "$as_me: failed program was:" >&5
2588 sed 's/^/| /' conftest.
$ac_ext >&5
2592 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2593 cat >conftest.
$ac_ext <<_ACEOF
2596 cat confdefs.h
>>conftest.
$ac_ext
2597 cat >>conftest.
$ac_ext <<_ACEOF
2598 /* end confdefs.h. */
2608 rm -f conftest.
$ac_objext
2609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2610 (eval $ac_compile) 2>conftest.er1
2612 grep -v '^ *+' conftest.er1
>conftest.err
2614 cat conftest.err
>&5
2615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2616 (exit $ac_status); } &&
2617 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2622 (exit $ac_status); }; } &&
2623 { ac_try
='test -s conftest.$ac_objext'
2624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628 (exit $ac_status); }; }; then
2631 echo "$as_me: failed program was:" >&5
2632 sed 's/^/| /' conftest.
$ac_ext >&5
2635 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2638 if test -n "$ac_declaration"; then
2639 echo '#ifdef __cplusplus' >>confdefs.h
2640 echo $ac_declaration >>confdefs.h
2641 echo '#endif' >>confdefs.h
2645 echo "$as_me: failed program was:" >&5
2646 sed 's/^/| /' conftest.
$ac_ext >&5
2649 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2651 ac_cpp
='$CPP $CPPFLAGS'
2652 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2653 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2654 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2657 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
2658 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
2659 if test "${ac_cv_type_signal+set}" = set; then
2660 echo $ECHO_N "(cached) $ECHO_C" >&6
2662 cat >conftest.
$ac_ext <<_ACEOF
2665 cat confdefs.h
>>conftest.
$ac_ext
2666 cat >>conftest.
$ac_ext <<_ACEOF
2667 /* end confdefs.h. */
2668 #include <sys/types.h>
2674 extern "C" void (*signal (int, void (*)(int)))(int);
2676 void (*signal ()) ();
2687 rm -f conftest.
$ac_objext
2688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2689 (eval $ac_compile) 2>conftest.er1
2691 grep -v '^ *+' conftest.er1
>conftest.err
2693 cat conftest.err
>&5
2694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2695 (exit $ac_status); } &&
2696 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2701 (exit $ac_status); }; } &&
2702 { ac_try
='test -s conftest.$ac_objext'
2703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707 (exit $ac_status); }; }; then
2708 ac_cv_type_signal
=void
2710 echo "$as_me: failed program was:" >&5
2711 sed 's/^/| /' conftest.
$ac_ext >&5
2713 ac_cv_type_signal
=int
2715 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2717 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
2718 echo "${ECHO_T}$ac_cv_type_signal" >&6
2720 cat >>confdefs.h
<<_ACEOF
2721 #define RETSIGTYPE $ac_cv_type_signal
2725 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
2726 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
2727 if test "${ac_cv_c_const+set}" = set; then
2728 echo $ECHO_N "(cached) $ECHO_C" >&6
2730 cat >conftest.
$ac_ext <<_ACEOF
2733 cat confdefs.h
>>conftest.
$ac_ext
2734 cat >>conftest.
$ac_ext <<_ACEOF
2735 /* end confdefs.h. */
2740 /* FIXME: Include the comments suggested by Paul. */
2742 /* Ultrix mips cc rejects this. */
2743 typedef int charset[2];
2745 /* SunOS 4.1.1 cc rejects this. */
2746 char const *const *ccp;
2748 /* NEC SVR4.0.2 mips cc rejects this. */
2749 struct point {int x, y;};
2750 static struct point const zero = {0,0};
2751 /* AIX XL C 1.02.0.0 rejects this.
2752 It does not let you subtract one const X* pointer from another in
2753 an arm of an if-expression whose if-part is not a constant
2755 const char *g = "string";
2756 ccp = &g + (g ? g-g : 0);
2757 /* HPUX 7.0 cc rejects these. */
2760 ccp = (char const *const *) p;
2761 { /* SCO 3.2v4 cc rejects this. */
2763 char const *s = 0 ? (char *) 0 : (char const *) 0;
2767 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2769 const int *foo = &x[0];
2772 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2773 typedef const int *iptr;
2777 { /* AIX XL C 1.02.0.0 rejects this saying
2778 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2779 struct s { int j; const int *ap[3]; };
2780 struct s *b; b->j = 5;
2782 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2791 rm -f conftest.
$ac_objext
2792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2793 (eval $ac_compile) 2>conftest.er1
2795 grep -v '^ *+' conftest.er1
>conftest.err
2797 cat conftest.err
>&5
2798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2799 (exit $ac_status); } &&
2800 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2805 (exit $ac_status); }; } &&
2806 { ac_try
='test -s conftest.$ac_objext'
2807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2811 (exit $ac_status); }; }; then
2814 echo "$as_me: failed program was:" >&5
2815 sed 's/^/| /' conftest.
$ac_ext >&5
2819 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2821 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
2822 echo "${ECHO_T}$ac_cv_c_const" >&6
2823 if test $ac_cv_c_const = no
; then
2825 cat >>confdefs.h
<<\_ACEOF
2831 echo "$as_me:$LINENO: checking for inline" >&5
2832 echo $ECHO_N "checking for inline... $ECHO_C" >&6
2833 if test "${ac_cv_c_inline+set}" = set; then
2834 echo $ECHO_N "(cached) $ECHO_C" >&6
2837 for ac_kw
in inline __inline__ __inline
; do
2838 cat >conftest.
$ac_ext <<_ACEOF
2841 cat confdefs.h
>>conftest.
$ac_ext
2842 cat >>conftest.
$ac_ext <<_ACEOF
2843 /* end confdefs.h. */
2846 static $ac_kw foo_t static_foo () {return 0; }
2847 $ac_kw foo_t foo () {return 0; }
2851 rm -f conftest.
$ac_objext
2852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2853 (eval $ac_compile) 2>conftest.er1
2855 grep -v '^ *+' conftest.er1
>conftest.err
2857 cat conftest.err
>&5
2858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2859 (exit $ac_status); } &&
2860 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2865 (exit $ac_status); }; } &&
2866 { ac_try
='test -s conftest.$ac_objext'
2867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2871 (exit $ac_status); }; }; then
2872 ac_cv_c_inline
=$ac_kw; break
2874 echo "$as_me: failed program was:" >&5
2875 sed 's/^/| /' conftest.
$ac_ext >&5
2878 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2882 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
2883 echo "${ECHO_T}$ac_cv_c_inline" >&6
2886 case $ac_cv_c_inline in
2889 case $ac_cv_c_inline in
2891 *) ac_val
=$ac_cv_c_inline;;
2893 cat >>confdefs.h
<<_ACEOF
2895 #define inline $ac_val
2902 for ac_prog
in gawk mawk nawk
awk
2904 # Extract the first word of "$ac_prog", so it can be a program name with args.
2905 set dummy
$ac_prog; ac_word
=$2
2906 echo "$as_me:$LINENO: checking for $ac_word" >&5
2907 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2908 if test "${ac_cv_prog_AWK+set}" = set; then
2909 echo $ECHO_N "(cached) $ECHO_C" >&6
2911 if test -n "$AWK"; then
2912 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2914 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2918 test -z "$as_dir" && as_dir
=.
2919 for ac_exec_ext
in '' $ac_executable_extensions; do
2920 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2921 ac_cv_prog_AWK
="$ac_prog"
2922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2931 if test -n "$AWK"; then
2932 echo "$as_me:$LINENO: result: $AWK" >&5
2933 echo "${ECHO_T}$AWK" >&6
2935 echo "$as_me:$LINENO: result: no" >&5
2936 echo "${ECHO_T}no" >&6
2939 test -n "$AWK" && break
2943 ac_cpp
='$CPP $CPPFLAGS'
2944 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2945 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2946 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2947 if test -n "$ac_tool_prefix"; then
2948 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2949 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2950 echo "$as_me:$LINENO: checking for $ac_word" >&5
2951 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2952 if test "${ac_cv_prog_CC+set}" = set; then
2953 echo $ECHO_N "(cached) $ECHO_C" >&6
2955 if test -n "$CC"; then
2956 ac_cv_prog_CC
="$CC" # Let the user override the test.
2958 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2962 test -z "$as_dir" && as_dir
=.
2963 for ac_exec_ext
in '' $ac_executable_extensions; do
2964 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2965 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2966 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2975 if test -n "$CC"; then
2976 echo "$as_me:$LINENO: result: $CC" >&5
2977 echo "${ECHO_T}$CC" >&6
2979 echo "$as_me:$LINENO: result: no" >&5
2980 echo "${ECHO_T}no" >&6
2984 if test -z "$ac_cv_prog_CC"; then
2986 # Extract the first word of "gcc", so it can be a program name with args.
2987 set dummy gcc
; ac_word
=$2
2988 echo "$as_me:$LINENO: checking for $ac_word" >&5
2989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2990 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2991 echo $ECHO_N "(cached) $ECHO_C" >&6
2993 if test -n "$ac_ct_CC"; then
2994 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2996 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3000 test -z "$as_dir" && as_dir
=.
3001 for ac_exec_ext
in '' $ac_executable_extensions; do
3002 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3003 ac_cv_prog_ac_ct_CC
="gcc"
3004 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3012 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3013 if test -n "$ac_ct_CC"; then
3014 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3015 echo "${ECHO_T}$ac_ct_CC" >&6
3017 echo "$as_me:$LINENO: result: no" >&5
3018 echo "${ECHO_T}no" >&6
3026 if test -z "$CC"; then
3027 if test -n "$ac_tool_prefix"; then
3028 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3029 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3030 echo "$as_me:$LINENO: checking for $ac_word" >&5
3031 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3032 if test "${ac_cv_prog_CC+set}" = set; then
3033 echo $ECHO_N "(cached) $ECHO_C" >&6
3035 if test -n "$CC"; then
3036 ac_cv_prog_CC
="$CC" # Let the user override the test.
3038 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3042 test -z "$as_dir" && as_dir
=.
3043 for ac_exec_ext
in '' $ac_executable_extensions; do
3044 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3045 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3055 if test -n "$CC"; then
3056 echo "$as_me:$LINENO: result: $CC" >&5
3057 echo "${ECHO_T}$CC" >&6
3059 echo "$as_me:$LINENO: result: no" >&5
3060 echo "${ECHO_T}no" >&6
3064 if test -z "$ac_cv_prog_CC"; then
3066 # Extract the first word of "cc", so it can be a program name with args.
3067 set dummy cc
; ac_word
=$2
3068 echo "$as_me:$LINENO: checking for $ac_word" >&5
3069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3070 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3071 echo $ECHO_N "(cached) $ECHO_C" >&6
3073 if test -n "$ac_ct_CC"; then
3074 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3076 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3080 test -z "$as_dir" && as_dir
=.
3081 for ac_exec_ext
in '' $ac_executable_extensions; do
3082 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3083 ac_cv_prog_ac_ct_CC
="cc"
3084 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3092 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3093 if test -n "$ac_ct_CC"; then
3094 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3095 echo "${ECHO_T}$ac_ct_CC" >&6
3097 echo "$as_me:$LINENO: result: no" >&5
3098 echo "${ECHO_T}no" >&6
3107 if test -z "$CC"; then
3108 # Extract the first word of "cc", so it can be a program name with args.
3109 set dummy cc
; ac_word
=$2
3110 echo "$as_me:$LINENO: checking for $ac_word" >&5
3111 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3112 if test "${ac_cv_prog_CC+set}" = set; then
3113 echo $ECHO_N "(cached) $ECHO_C" >&6
3115 if test -n "$CC"; then
3116 ac_cv_prog_CC
="$CC" # Let the user override the test.
3119 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3123 test -z "$as_dir" && as_dir
=.
3124 for ac_exec_ext
in '' $ac_executable_extensions; do
3125 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3126 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3127 ac_prog_rejected
=yes
3131 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3137 if test $ac_prog_rejected = yes; then
3138 # We found a bogon in the path, so make sure we never use it.
3139 set dummy
$ac_cv_prog_CC
3141 if test $# != 0; then
3142 # We chose a different compiler from the bogus one.
3143 # However, it has the same basename, so the bogon will be chosen
3144 # first if we set CC to just the basename; use the full file name.
3146 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3152 if test -n "$CC"; then
3153 echo "$as_me:$LINENO: result: $CC" >&5
3154 echo "${ECHO_T}$CC" >&6
3156 echo "$as_me:$LINENO: result: no" >&5
3157 echo "${ECHO_T}no" >&6
3161 if test -z "$CC"; then
3162 if test -n "$ac_tool_prefix"; then
3165 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3166 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3167 echo "$as_me:$LINENO: checking for $ac_word" >&5
3168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3169 if test "${ac_cv_prog_CC+set}" = set; then
3170 echo $ECHO_N "(cached) $ECHO_C" >&6
3172 if test -n "$CC"; then
3173 ac_cv_prog_CC
="$CC" # Let the user override the test.
3175 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3179 test -z "$as_dir" && as_dir
=.
3180 for ac_exec_ext
in '' $ac_executable_extensions; do
3181 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3182 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3183 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3192 if test -n "$CC"; then
3193 echo "$as_me:$LINENO: result: $CC" >&5
3194 echo "${ECHO_T}$CC" >&6
3196 echo "$as_me:$LINENO: result: no" >&5
3197 echo "${ECHO_T}no" >&6
3200 test -n "$CC" && break
3203 if test -z "$CC"; then
3207 # Extract the first word of "$ac_prog", so it can be a program name with args.
3208 set dummy
$ac_prog; ac_word
=$2
3209 echo "$as_me:$LINENO: checking for $ac_word" >&5
3210 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3211 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3212 echo $ECHO_N "(cached) $ECHO_C" >&6
3214 if test -n "$ac_ct_CC"; then
3215 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3217 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3221 test -z "$as_dir" && as_dir
=.
3222 for ac_exec_ext
in '' $ac_executable_extensions; do
3223 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3224 ac_cv_prog_ac_ct_CC
="$ac_prog"
3225 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3233 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3234 if test -n "$ac_ct_CC"; then
3235 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3236 echo "${ECHO_T}$ac_ct_CC" >&6
3238 echo "$as_me:$LINENO: result: no" >&5
3239 echo "${ECHO_T}no" >&6
3242 test -n "$ac_ct_CC" && break
3251 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3252 See \`config.log' for more details." >&5
3253 echo "$as_me: error: no acceptable C compiler found in \$PATH
3254 See \`config.log' for more details." >&2;}
3255 { (exit 1); exit 1; }; }
3257 # Provide some information about the compiler.
3258 echo "$as_me:$LINENO:" \
3259 "checking for C compiler version" >&5
3260 ac_compiler
=`set X $ac_compile; echo $2`
3261 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3262 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
3264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3265 (exit $ac_status); }
3266 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3267 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
3269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3270 (exit $ac_status); }
3271 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3272 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
3274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3275 (exit $ac_status); }
3277 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3278 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3279 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3280 echo $ECHO_N "(cached) $ECHO_C" >&6
3282 cat >conftest.
$ac_ext <<_ACEOF
3285 cat confdefs.h
>>conftest.
$ac_ext
3286 cat >>conftest.
$ac_ext <<_ACEOF
3287 /* end confdefs.h. */
3300 rm -f conftest.
$ac_objext
3301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3302 (eval $ac_compile) 2>conftest.er1
3304 grep -v '^ *+' conftest.er1
>conftest.err
3306 cat conftest.err
>&5
3307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3308 (exit $ac_status); } &&
3309 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3314 (exit $ac_status); }; } &&
3315 { ac_try
='test -s conftest.$ac_objext'
3316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320 (exit $ac_status); }; }; then
3323 echo "$as_me: failed program was:" >&5
3324 sed 's/^/| /' conftest.
$ac_ext >&5
3328 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3329 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
3332 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3333 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3334 GCC
=`test $ac_compiler_gnu = yes && echo yes`
3335 ac_test_CFLAGS
=${CFLAGS+set}
3336 ac_save_CFLAGS
=$CFLAGS
3338 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3339 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3340 if test "${ac_cv_prog_cc_g+set}" = set; then
3341 echo $ECHO_N "(cached) $ECHO_C" >&6
3343 cat >conftest.
$ac_ext <<_ACEOF
3346 cat confdefs.h
>>conftest.
$ac_ext
3347 cat >>conftest.
$ac_ext <<_ACEOF
3348 /* end confdefs.h. */
3358 rm -f conftest.
$ac_objext
3359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3360 (eval $ac_compile) 2>conftest.er1
3362 grep -v '^ *+' conftest.er1
>conftest.err
3364 cat conftest.err
>&5
3365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3366 (exit $ac_status); } &&
3367 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3372 (exit $ac_status); }; } &&
3373 { ac_try
='test -s conftest.$ac_objext'
3374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3378 (exit $ac_status); }; }; then
3381 echo "$as_me: failed program was:" >&5
3382 sed 's/^/| /' conftest.
$ac_ext >&5
3386 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3388 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3389 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3390 if test "$ac_test_CFLAGS" = set; then
3391 CFLAGS
=$ac_save_CFLAGS
3392 elif test $ac_cv_prog_cc_g = yes; then
3393 if test "$GCC" = yes; then
3399 if test "$GCC" = yes; then
3405 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3406 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3407 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3408 echo $ECHO_N "(cached) $ECHO_C" >&6
3410 ac_cv_prog_cc_stdc
=no
3412 cat >conftest.
$ac_ext <<_ACEOF
3415 cat confdefs.h
>>conftest.
$ac_ext
3416 cat >>conftest.
$ac_ext <<_ACEOF
3417 /* end confdefs.h. */
3420 #include <sys/types.h>
3421 #include <sys/stat.h>
3422 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3423 struct buf { int x; };
3424 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3425 static char *e (p, i)
3431 static char *f (char * (*g) (char **, int), char **p, ...)
3436 s = g (p, va_arg (v,int));
3441 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3442 function prototypes and stuff, but not '\xHH' hex character constants.
3443 These don't provoke an error unfortunately, instead are silently treated
3444 as 'x'. The following induces an error, until -std1 is added to get
3445 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3446 array size at least. It's necessary to write '\x00'==0 to get something
3447 that's true only with -std1. */
3448 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3450 int test (int i, double x);
3451 struct s1 {int (*f) (int a);};
3452 struct s2 {int (*f) (double a);};
3453 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3459 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3464 # Don't try gcc -ansi; that turns off useful extensions and
3465 # breaks some systems' header files.
3466 # AIX -qlanglvl=ansi
3467 # Ultrix and OSF/1 -std1
3468 # HP-UX 10.20 and later -Ae
3469 # HP-UX older versions -Aa -D_HPUX_SOURCE
3470 # SVR4 -Xc -D__EXTENSIONS__
3471 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3473 CC
="$ac_save_CC $ac_arg"
3474 rm -f conftest.
$ac_objext
3475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3476 (eval $ac_compile) 2>conftest.er1
3478 grep -v '^ *+' conftest.er1
>conftest.err
3480 cat conftest.err
>&5
3481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3482 (exit $ac_status); } &&
3483 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3488 (exit $ac_status); }; } &&
3489 { ac_try
='test -s conftest.$ac_objext'
3490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3494 (exit $ac_status); }; }; then
3495 ac_cv_prog_cc_stdc
=$ac_arg
3498 echo "$as_me: failed program was:" >&5
3499 sed 's/^/| /' conftest.
$ac_ext >&5
3502 rm -f conftest.err conftest.
$ac_objext
3504 rm -f conftest.
$ac_ext conftest.
$ac_objext
3509 case "x$ac_cv_prog_cc_stdc" in
3511 echo "$as_me:$LINENO: result: none needed" >&5
3512 echo "${ECHO_T}none needed" >&6 ;;
3514 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3515 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3516 CC
="$CC $ac_cv_prog_cc_stdc" ;;
3519 # Some people use a C++ compiler to compile C. Since we use `exit',
3520 # in C++ we need to declare it. In case someone uses the same compiler
3521 # for both compiling C and C++ we need to have the C++ compiler decide
3522 # the declaration of exit, since it's the most demanding environment.
3523 cat >conftest.
$ac_ext <<_ACEOF
3528 rm -f conftest.
$ac_objext
3529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3530 (eval $ac_compile) 2>conftest.er1
3532 grep -v '^ *+' conftest.er1
>conftest.err
3534 cat conftest.err
>&5
3535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3536 (exit $ac_status); } &&
3537 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3542 (exit $ac_status); }; } &&
3543 { ac_try
='test -s conftest.$ac_objext'
3544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3548 (exit $ac_status); }; }; then
3549 for ac_declaration
in \
3551 'extern "C" void std::exit (int) throw (); using std::exit;' \
3552 'extern "C" void std::exit (int); using std::exit;' \
3553 'extern "C" void exit (int) throw ();' \
3554 'extern "C" void exit (int);' \
3557 cat >conftest.
$ac_ext <<_ACEOF
3560 cat confdefs.h
>>conftest.
$ac_ext
3561 cat >>conftest.
$ac_ext <<_ACEOF
3562 /* end confdefs.h. */
3573 rm -f conftest.
$ac_objext
3574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3575 (eval $ac_compile) 2>conftest.er1
3577 grep -v '^ *+' conftest.er1
>conftest.err
3579 cat conftest.err
>&5
3580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3581 (exit $ac_status); } &&
3582 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3587 (exit $ac_status); }; } &&
3588 { ac_try
='test -s conftest.$ac_objext'
3589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3593 (exit $ac_status); }; }; then
3596 echo "$as_me: failed program was:" >&5
3597 sed 's/^/| /' conftest.
$ac_ext >&5
3601 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3602 cat >conftest.
$ac_ext <<_ACEOF
3605 cat confdefs.h
>>conftest.
$ac_ext
3606 cat >>conftest.
$ac_ext <<_ACEOF
3607 /* end confdefs.h. */
3617 rm -f conftest.
$ac_objext
3618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3619 (eval $ac_compile) 2>conftest.er1
3621 grep -v '^ *+' conftest.er1
>conftest.err
3623 cat conftest.err
>&5
3624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3625 (exit $ac_status); } &&
3626 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3631 (exit $ac_status); }; } &&
3632 { ac_try
='test -s conftest.$ac_objext'
3633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3637 (exit $ac_status); }; }; then
3640 echo "$as_me: failed program was:" >&5
3641 sed 's/^/| /' conftest.
$ac_ext >&5
3644 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3647 if test -n "$ac_declaration"; then
3648 echo '#ifdef __cplusplus' >>confdefs.h
3649 echo $ac_declaration >>confdefs.h
3650 echo '#endif' >>confdefs.h
3654 echo "$as_me: failed program was:" >&5
3655 sed 's/^/| /' conftest.
$ac_ext >&5
3658 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3660 ac_cpp
='$CPP $CPPFLAGS'
3661 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3662 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3663 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3665 if test -n "$ac_tool_prefix"; then
3666 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3667 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3668 echo "$as_me:$LINENO: checking for $ac_word" >&5
3669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3670 if test "${ac_cv_prog_RANLIB+set}" = set; then
3671 echo $ECHO_N "(cached) $ECHO_C" >&6
3673 if test -n "$RANLIB"; then
3674 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3676 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3680 test -z "$as_dir" && as_dir
=.
3681 for ac_exec_ext
in '' $ac_executable_extensions; do
3682 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3683 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3692 RANLIB
=$ac_cv_prog_RANLIB
3693 if test -n "$RANLIB"; then
3694 echo "$as_me:$LINENO: result: $RANLIB" >&5
3695 echo "${ECHO_T}$RANLIB" >&6
3697 echo "$as_me:$LINENO: result: no" >&5
3698 echo "${ECHO_T}no" >&6
3702 if test -z "$ac_cv_prog_RANLIB"; then
3703 ac_ct_RANLIB
=$RANLIB
3704 # Extract the first word of "ranlib", so it can be a program name with args.
3705 set dummy ranlib
; ac_word
=$2
3706 echo "$as_me:$LINENO: checking for $ac_word" >&5
3707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3708 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3709 echo $ECHO_N "(cached) $ECHO_C" >&6
3711 if test -n "$ac_ct_RANLIB"; then
3712 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
3714 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3718 test -z "$as_dir" && as_dir
=.
3719 for ac_exec_ext
in '' $ac_executable_extensions; do
3720 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3721 ac_cv_prog_ac_ct_RANLIB
="ranlib"
3722 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3728 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
3731 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
3732 if test -n "$ac_ct_RANLIB"; then
3733 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3734 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3736 echo "$as_me:$LINENO: result: no" >&5
3737 echo "${ECHO_T}no" >&6
3740 RANLIB
=$ac_ct_RANLIB
3742 RANLIB
="$ac_cv_prog_RANLIB"
3745 # Find a good install program. We prefer a C program (faster),
3746 # so one script is as good as another. But avoid the broken or
3747 # incompatible versions:
3748 # SysV /etc/install, /usr/sbin/install
3749 # SunOS /usr/etc/install
3750 # IRIX /sbin/install
3752 # AmigaOS /C/install, which installs bootblocks on floppy discs
3753 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3754 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3755 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3756 # OS/2's system install, which has a completely different semantic
3757 # ./install, which can be erroneously created by make from ./install.sh.
3758 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3759 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3760 if test -z "$INSTALL"; then
3761 if test "${ac_cv_path_install+set}" = set; then
3762 echo $ECHO_N "(cached) $ECHO_C" >&6
3764 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3768 test -z "$as_dir" && as_dir
=.
3769 # Account for people who put trailing slashes in PATH elements.
3771 .
/ | .
// | /cC
/* | \
3772 /etc
/* | /usr
/sbin
/* | /usr
/etc
/* | /sbin
/* | /usr
/afsws
/bin
/* | \
3773 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
3776 # OSF1 and SCO ODT 3.0 have their own names for install.
3777 # Don't use installbsd from OSF since it installs stuff as root
3779 for ac_prog
in ginstall scoinst
install; do
3780 for ac_exec_ext
in '' $ac_executable_extensions; do
3781 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3782 if test $ac_prog = install &&
3783 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3784 # AIX install. It has an incompatible calling convention.
3786 elif test $ac_prog = install &&
3787 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3788 # program-specific install script used by HP pwplus--don't use.
3791 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3803 if test "${ac_cv_path_install+set}" = set; then
3804 INSTALL
=$ac_cv_path_install
3806 # As a last resort, use the slow shell script. We don't cache a
3807 # path for INSTALL within a source directory, because that will
3808 # break other packages using the cache if that directory is
3809 # removed, or if the path is relative.
3810 INSTALL
=$ac_install_sh
3813 echo "$as_me:$LINENO: result: $INSTALL" >&5
3814 echo "${ECHO_T}$INSTALL" >&6
3816 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3817 # It thinks the first close brace ends the variable substitution.
3818 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3820 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3822 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3824 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3825 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3827 if test "$LN_S" = "ln -s"; then
3828 echo "$as_me:$LINENO: result: yes" >&5
3829 echo "${ECHO_T}yes" >&6
3831 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3832 echo "${ECHO_T}no, using $LN_S" >&6
3835 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3836 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3837 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
3838 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3839 echo $ECHO_N "(cached) $ECHO_C" >&6
3841 cat >conftest.
make <<\_ACEOF
3843 @
echo 'ac_maketemp="$(MAKE)"'
3845 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3846 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3847 if test -n "$ac_maketemp"; then
3848 eval ac_cv_prog_make_
${ac_make}_set
=yes
3850 eval ac_cv_prog_make_
${ac_make}_set
=no
3854 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3855 echo "$as_me:$LINENO: result: yes" >&5
3856 echo "${ECHO_T}yes" >&6
3859 echo "$as_me:$LINENO: result: no" >&5
3860 echo "${ECHO_T}no" >&6
3861 SET_MAKE
="MAKE=${MAKE-make}"
3865 ac_cpp
='$CPP $CPPFLAGS'
3866 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3867 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3868 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3869 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3870 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3871 # On Suns, sometimes $CPP names a directory.
3872 if test -n "$CPP" && test -d "$CPP"; then
3875 if test -z "$CPP"; then
3876 if test "${ac_cv_prog_CPP+set}" = set; then
3877 echo $ECHO_N "(cached) $ECHO_C" >&6
3879 # Double quotes because CPP needs to be expanded
3880 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3883 for ac_c_preproc_warn_flag
in '' yes
3885 # Use a header file that comes with gcc, so configuring glibc
3886 # with a fresh cross-compiler works.
3887 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3888 # <limits.h> exists even on freestanding compilers.
3889 # On the NeXT, cc -E runs the code through the compiler's parser,
3890 # not just through cpp. "Syntax error" is here to catch this case.
3891 cat >conftest.
$ac_ext <<_ACEOF
3894 cat confdefs.h
>>conftest.
$ac_ext
3895 cat >>conftest.
$ac_ext <<_ACEOF
3896 /* end confdefs.h. */
3898 # include <limits.h>
3900 # include <assert.h>
3904 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3905 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3907 grep -v '^ *+' conftest.er1
>conftest.err
3909 cat conftest.err
>&5
3910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3911 (exit $ac_status); } >/dev
/null
; then
3912 if test -s conftest.err
; then
3913 ac_cpp_err
=$ac_c_preproc_warn_flag
3914 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3921 if test -z "$ac_cpp_err"; then
3924 echo "$as_me: failed program was:" >&5
3925 sed 's/^/| /' conftest.
$ac_ext >&5
3927 # Broken: fails on valid input.
3930 rm -f conftest.err conftest.
$ac_ext
3932 # OK, works on sane cases. Now check whether non-existent headers
3933 # can be detected and how.
3934 cat >conftest.
$ac_ext <<_ACEOF
3937 cat confdefs.h
>>conftest.
$ac_ext
3938 cat >>conftest.
$ac_ext <<_ACEOF
3939 /* end confdefs.h. */
3940 #include <ac_nonexistent.h>
3942 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3943 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3945 grep -v '^ *+' conftest.er1
>conftest.err
3947 cat conftest.err
>&5
3948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3949 (exit $ac_status); } >/dev
/null
; then
3950 if test -s conftest.err
; then
3951 ac_cpp_err
=$ac_c_preproc_warn_flag
3952 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3959 if test -z "$ac_cpp_err"; then
3960 # Broken: success on invalid input.
3963 echo "$as_me: failed program was:" >&5
3964 sed 's/^/| /' conftest.
$ac_ext >&5
3966 # Passes both tests.
3970 rm -f conftest.err conftest.
$ac_ext
3973 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3974 rm -f conftest.err conftest.
$ac_ext
3975 if $ac_preproc_ok; then
3987 echo "$as_me:$LINENO: result: $CPP" >&5
3988 echo "${ECHO_T}$CPP" >&6
3990 for ac_c_preproc_warn_flag
in '' yes
3992 # Use a header file that comes with gcc, so configuring glibc
3993 # with a fresh cross-compiler works.
3994 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3995 # <limits.h> exists even on freestanding compilers.
3996 # On the NeXT, cc -E runs the code through the compiler's parser,
3997 # not just through cpp. "Syntax error" is here to catch this case.
3998 cat >conftest.
$ac_ext <<_ACEOF
4001 cat confdefs.h
>>conftest.
$ac_ext
4002 cat >>conftest.
$ac_ext <<_ACEOF
4003 /* end confdefs.h. */
4005 # include <limits.h>
4007 # include <assert.h>
4011 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4012 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4014 grep -v '^ *+' conftest.er1
>conftest.err
4016 cat conftest.err
>&5
4017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4018 (exit $ac_status); } >/dev
/null
; then
4019 if test -s conftest.err
; then
4020 ac_cpp_err
=$ac_c_preproc_warn_flag
4021 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4028 if test -z "$ac_cpp_err"; then
4031 echo "$as_me: failed program was:" >&5
4032 sed 's/^/| /' conftest.
$ac_ext >&5
4034 # Broken: fails on valid input.
4037 rm -f conftest.err conftest.
$ac_ext
4039 # OK, works on sane cases. Now check whether non-existent headers
4040 # can be detected and how.
4041 cat >conftest.
$ac_ext <<_ACEOF
4044 cat confdefs.h
>>conftest.
$ac_ext
4045 cat >>conftest.
$ac_ext <<_ACEOF
4046 /* end confdefs.h. */
4047 #include <ac_nonexistent.h>
4049 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4050 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4052 grep -v '^ *+' conftest.er1
>conftest.err
4054 cat conftest.err
>&5
4055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4056 (exit $ac_status); } >/dev
/null
; then
4057 if test -s conftest.err
; then
4058 ac_cpp_err
=$ac_c_preproc_warn_flag
4059 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4066 if test -z "$ac_cpp_err"; then
4067 # Broken: success on invalid input.
4070 echo "$as_me: failed program was:" >&5
4071 sed 's/^/| /' conftest.
$ac_ext >&5
4073 # Passes both tests.
4077 rm -f conftest.err conftest.
$ac_ext
4080 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4081 rm -f conftest.err conftest.
$ac_ext
4082 if $ac_preproc_ok; then
4085 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4086 See \`config.log' for more details." >&5
4087 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4088 See \`config.log' for more details." >&2;}
4089 { (exit 1); exit 1; }; }
4093 ac_cpp
='$CPP $CPPFLAGS'
4094 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4095 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4096 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4099 echo "$as_me:$LINENO: checking for egrep" >&5
4100 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4101 if test "${ac_cv_prog_egrep+set}" = set; then
4102 echo $ECHO_N "(cached) $ECHO_C" >&6
4104 if echo a
| (grep -E '(a|b)') >/dev
/null
2>&1
4105 then ac_cv_prog_egrep
='grep -E'
4106 else ac_cv_prog_egrep
='egrep'
4109 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4110 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4111 EGREP
=$ac_cv_prog_egrep
4114 if test $ac_cv_c_compiler_gnu = yes; then
4115 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4116 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
4117 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4118 echo $ECHO_N "(cached) $ECHO_C" >&6
4120 ac_pattern
="Autoconf.*'x'"
4121 cat >conftest.
$ac_ext <<_ACEOF
4124 cat confdefs.h
>>conftest.
$ac_ext
4125 cat >>conftest.
$ac_ext <<_ACEOF
4126 /* end confdefs.h. */
4130 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4131 $EGREP "$ac_pattern" >/dev
/null
2>&1; then
4132 ac_cv_prog_gcc_traditional
=yes
4134 ac_cv_prog_gcc_traditional
=no
4139 if test $ac_cv_prog_gcc_traditional = no
; then
4140 cat >conftest.
$ac_ext <<_ACEOF
4143 cat confdefs.h
>>conftest.
$ac_ext
4144 cat >>conftest.
$ac_ext <<_ACEOF
4145 /* end confdefs.h. */
4149 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4150 $EGREP "$ac_pattern" >/dev
/null
2>&1; then
4151 ac_cv_prog_gcc_traditional
=yes
4157 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4158 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
4159 if test $ac_cv_prog_gcc_traditional = yes; then
4160 CC
="$CC -traditional"
4166 *-freebsd2* | *-freebsdelf2* | *-freebsd*out3
*)
4169 *-freebsd3* | *-freebsdelf3* | *-freebsd*out3
*)
4172 cat >>confdefs.h
<<\_ACEOF
4173 #define BROKEN_REGEX 1
4179 EXTRA_DEFINE
="-D__SOLARIS__"
4180 ANSI_SRC
="-fno-builtin"
4183 ANSI_SRC
="-fno-builtin"
4186 EXTRA_DEFINE
="-D_GNU_SOURCE"
4193 CFLAGS
="$CFLAGS $EXTRA_DEFINE"
4196 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
4197 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
4198 if test "${ac_cv_lib_socket_socket+set}" = set; then
4199 echo $ECHO_N "(cached) $ECHO_C" >&6
4201 ac_check_lib_save_LIBS
=$LIBS
4202 LIBS
="-lsocket $LIBS"
4203 cat >conftest.
$ac_ext <<_ACEOF
4206 cat confdefs.h
>>conftest.
$ac_ext
4207 cat >>conftest.
$ac_ext <<_ACEOF
4208 /* end confdefs.h. */
4210 /* Override any gcc2 internal prototype to avoid an error. */
4214 /* We use char because int might match the return type of a gcc2
4215 builtin and then its argument prototype would still apply. */
4225 rm -f conftest.
$ac_objext conftest
$ac_exeext
4226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4227 (eval $ac_link) 2>conftest.er1
4229 grep -v '^ *+' conftest.er1
>conftest.err
4231 cat conftest.err
>&5
4232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233 (exit $ac_status); } &&
4234 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4239 (exit $ac_status); }; } &&
4240 { ac_try
='test -s conftest$ac_exeext'
4241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4245 (exit $ac_status); }; }; then
4246 ac_cv_lib_socket_socket
=yes
4248 echo "$as_me: failed program was:" >&5
4249 sed 's/^/| /' conftest.
$ac_ext >&5
4251 ac_cv_lib_socket_socket
=no
4253 rm -f conftest.err conftest.
$ac_objext \
4254 conftest
$ac_exeext conftest.
$ac_ext
4255 LIBS
=$ac_check_lib_save_LIBS
4257 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
4258 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
4259 if test $ac_cv_lib_socket_socket = yes; then
4260 cat >>confdefs.h
<<_ACEOF
4261 #define HAVE_LIBSOCKET 1
4264 LIBS
="-lsocket $LIBS"
4269 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4270 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4271 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4272 echo $ECHO_N "(cached) $ECHO_C" >&6
4274 ac_check_lib_save_LIBS
=$LIBS
4276 cat >conftest.
$ac_ext <<_ACEOF
4279 cat confdefs.h
>>conftest.
$ac_ext
4280 cat >>conftest.
$ac_ext <<_ACEOF
4281 /* end confdefs.h. */
4283 /* Override any gcc2 internal prototype to avoid an error. */
4287 /* We use char because int might match the return type of a gcc2
4288 builtin and then its argument prototype would still apply. */
4289 char gethostbyname ();
4298 rm -f conftest.
$ac_objext conftest
$ac_exeext
4299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4300 (eval $ac_link) 2>conftest.er1
4302 grep -v '^ *+' conftest.er1
>conftest.err
4304 cat conftest.err
>&5
4305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4306 (exit $ac_status); } &&
4307 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4312 (exit $ac_status); }; } &&
4313 { ac_try
='test -s conftest$ac_exeext'
4314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318 (exit $ac_status); }; }; then
4319 ac_cv_lib_nsl_gethostbyname
=yes
4321 echo "$as_me: failed program was:" >&5
4322 sed 's/^/| /' conftest.
$ac_ext >&5
4324 ac_cv_lib_nsl_gethostbyname
=no
4326 rm -f conftest.err conftest.
$ac_objext \
4327 conftest
$ac_exeext conftest.
$ac_ext
4328 LIBS
=$ac_check_lib_save_LIBS
4330 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4331 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
4332 if test $ac_cv_lib_nsl_gethostbyname = yes; then
4333 cat >>confdefs.h
<<_ACEOF
4334 #define HAVE_LIBNSL 1
4342 echo "$as_me:$LINENO: checking for main in -lm" >&5
4343 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
4344 if test "${ac_cv_lib_m_main+set}" = set; then
4345 echo $ECHO_N "(cached) $ECHO_C" >&6
4347 ac_check_lib_save_LIBS
=$LIBS
4349 cat >conftest.
$ac_ext <<_ACEOF
4352 cat confdefs.h
>>conftest.
$ac_ext
4353 cat >>conftest.
$ac_ext <<_ACEOF
4354 /* end confdefs.h. */
4365 rm -f conftest.
$ac_objext conftest
$ac_exeext
4366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4367 (eval $ac_link) 2>conftest.er1
4369 grep -v '^ *+' conftest.er1
>conftest.err
4371 cat conftest.err
>&5
4372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4373 (exit $ac_status); } &&
4374 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4379 (exit $ac_status); }; } &&
4380 { ac_try
='test -s conftest$ac_exeext'
4381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4385 (exit $ac_status); }; }; then
4386 ac_cv_lib_m_main
=yes
4388 echo "$as_me: failed program was:" >&5
4389 sed 's/^/| /' conftest.
$ac_ext >&5
4393 rm -f conftest.err conftest.
$ac_objext \
4394 conftest
$ac_exeext conftest.
$ac_ext
4395 LIBS
=$ac_check_lib_save_LIBS
4397 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
4398 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
4399 if test $ac_cv_lib_m_main = yes; then
4400 cat >>confdefs.h
<<_ACEOF
4409 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4410 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4411 if test "${ac_cv_header_stdc+set}" = set; then
4412 echo $ECHO_N "(cached) $ECHO_C" >&6
4414 cat >conftest.
$ac_ext <<_ACEOF
4417 cat confdefs.h
>>conftest.
$ac_ext
4418 cat >>conftest.
$ac_ext <<_ACEOF
4419 /* end confdefs.h. */
4433 rm -f conftest.
$ac_objext
4434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4435 (eval $ac_compile) 2>conftest.er1
4437 grep -v '^ *+' conftest.er1
>conftest.err
4439 cat conftest.err
>&5
4440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4441 (exit $ac_status); } &&
4442 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4447 (exit $ac_status); }; } &&
4448 { ac_try
='test -s conftest.$ac_objext'
4449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4453 (exit $ac_status); }; }; then
4454 ac_cv_header_stdc
=yes
4456 echo "$as_me: failed program was:" >&5
4457 sed 's/^/| /' conftest.
$ac_ext >&5
4459 ac_cv_header_stdc
=no
4461 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4463 if test $ac_cv_header_stdc = yes; then
4464 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4465 cat >conftest.
$ac_ext <<_ACEOF
4468 cat confdefs.h
>>conftest.
$ac_ext
4469 cat >>conftest.
$ac_ext <<_ACEOF
4470 /* end confdefs.h. */
4474 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4475 $EGREP "memchr" >/dev
/null
2>&1; then
4478 ac_cv_header_stdc
=no
4484 if test $ac_cv_header_stdc = yes; then
4485 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4486 cat >conftest.
$ac_ext <<_ACEOF
4489 cat confdefs.h
>>conftest.
$ac_ext
4490 cat >>conftest.
$ac_ext <<_ACEOF
4491 /* end confdefs.h. */
4495 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4496 $EGREP "free" >/dev
/null
2>&1; then
4499 ac_cv_header_stdc
=no
4505 if test $ac_cv_header_stdc = yes; then
4506 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4507 if test "$cross_compiling" = yes; then
4510 cat >conftest.
$ac_ext <<_ACEOF
4513 cat confdefs.h
>>conftest.
$ac_ext
4514 cat >>conftest.
$ac_ext <<_ACEOF
4515 /* end confdefs.h. */
4517 #if ((' ' & 0x0FF) == 0x020)
4518 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4519 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4521 # define ISLOWER(c) \
4522 (('a' <= (c) && (c) <= 'i') \
4523 || ('j' <= (c) && (c) <= 'r') \
4524 || ('s' <= (c) && (c) <= 'z'))
4525 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4528 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4533 for (i = 0; i < 256; i++)
4534 if (XOR (islower (i), ISLOWER (i))
4535 || toupper (i) != TOUPPER (i))
4540 rm -f conftest
$ac_exeext
4541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4542 (eval $ac_link) 2>&5
4544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4550 (exit $ac_status); }; }; then
4553 echo "$as_me: program exited with status $ac_status" >&5
4554 echo "$as_me: failed program was:" >&5
4555 sed 's/^/| /' conftest.
$ac_ext >&5
4558 ac_cv_header_stdc
=no
4560 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4564 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4565 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4566 if test $ac_cv_header_stdc = yes; then
4568 cat >>confdefs.h
<<\_ACEOF
4569 #define STDC_HEADERS 1
4575 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4576 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
4577 if test "${ac_cv_header_time+set}" = set; then
4578 echo $ECHO_N "(cached) $ECHO_C" >&6
4580 cat >conftest.
$ac_ext <<_ACEOF
4583 cat confdefs.h
>>conftest.
$ac_ext
4584 cat >>conftest.
$ac_ext <<_ACEOF
4585 /* end confdefs.h. */
4586 #include <sys/types.h>
4587 #include <sys/time.h>
4593 if ((struct tm *) 0)
4599 rm -f conftest.
$ac_objext
4600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4601 (eval $ac_compile) 2>conftest.er1
4603 grep -v '^ *+' conftest.er1
>conftest.err
4605 cat conftest.err
>&5
4606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4607 (exit $ac_status); } &&
4608 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4613 (exit $ac_status); }; } &&
4614 { ac_try
='test -s conftest.$ac_objext'
4615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4619 (exit $ac_status); }; }; then
4620 ac_cv_header_time
=yes
4622 echo "$as_me: failed program was:" >&5
4623 sed 's/^/| /' conftest.
$ac_ext >&5
4625 ac_cv_header_time
=no
4627 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4629 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4630 echo "${ECHO_T}$ac_cv_header_time" >&6
4631 if test $ac_cv_header_time = yes; then
4633 cat >>confdefs.h
<<\_ACEOF
4634 #define TIME_WITH_SYS_TIME 1
4639 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
4640 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
4641 if test "${ac_cv_struct_tm+set}" = set; then
4642 echo $ECHO_N "(cached) $ECHO_C" >&6
4644 cat >conftest.
$ac_ext <<_ACEOF
4647 cat confdefs.h
>>conftest.
$ac_ext
4648 cat >>conftest.
$ac_ext <<_ACEOF
4649 /* end confdefs.h. */
4650 #include <sys/types.h>
4656 struct tm *tp; tp->tm_sec;
4661 rm -f conftest.
$ac_objext
4662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4663 (eval $ac_compile) 2>conftest.er1
4665 grep -v '^ *+' conftest.er1
>conftest.err
4667 cat conftest.err
>&5
4668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4669 (exit $ac_status); } &&
4670 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675 (exit $ac_status); }; } &&
4676 { ac_try
='test -s conftest.$ac_objext'
4677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4681 (exit $ac_status); }; }; then
4682 ac_cv_struct_tm
=time.h
4684 echo "$as_me: failed program was:" >&5
4685 sed 's/^/| /' conftest.
$ac_ext >&5
4687 ac_cv_struct_tm
=sys
/time.h
4689 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4691 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
4692 echo "${ECHO_T}$ac_cv_struct_tm" >&6
4693 if test $ac_cv_struct_tm = sys
/time.h
; then
4695 cat >>confdefs.h
<<\_ACEOF
4696 #define TM_IN_SYS_TIME 1
4702 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4712 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4713 inttypes.h stdint.h unistd.h
4715 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4716 echo "$as_me:$LINENO: checking for $ac_header" >&5
4717 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4718 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4719 echo $ECHO_N "(cached) $ECHO_C" >&6
4721 cat >conftest.
$ac_ext <<_ACEOF
4724 cat confdefs.h
>>conftest.
$ac_ext
4725 cat >>conftest.
$ac_ext <<_ACEOF
4726 /* end confdefs.h. */
4727 $ac_includes_default
4729 #include <$ac_header>
4731 rm -f conftest.
$ac_objext
4732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4733 (eval $ac_compile) 2>conftest.er1
4735 grep -v '^ *+' conftest.er1
>conftest.err
4737 cat conftest.err
>&5
4738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4739 (exit $ac_status); } &&
4740 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4745 (exit $ac_status); }; } &&
4746 { ac_try
='test -s conftest.$ac_objext'
4747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4751 (exit $ac_status); }; }; then
4752 eval "$as_ac_Header=yes"
4754 echo "$as_me: failed program was:" >&5
4755 sed 's/^/| /' conftest.
$ac_ext >&5
4757 eval "$as_ac_Header=no"
4759 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4761 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4762 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4763 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4764 cat >>confdefs.h
<<_ACEOF
4765 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4793 for ac_header
in fcntl.h malloc.h netdb.h netinet
/in.h sys
/resource.h sys
/timeb.h sys
/times.h sys
/param.h sys
/socket.h sys
/time.h sys
/types.h sys
/wait.h unistd.h getopt.h memory.h regex.h arpa
/inet.h sys
/mman.h sys
/stat.h dirent.h
4795 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4796 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4797 echo "$as_me:$LINENO: checking for $ac_header" >&5
4798 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4799 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4800 echo $ECHO_N "(cached) $ECHO_C" >&6
4802 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4803 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4805 # Is the header compilable?
4806 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4807 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4808 cat >conftest.
$ac_ext <<_ACEOF
4811 cat confdefs.h
>>conftest.
$ac_ext
4812 cat >>conftest.
$ac_ext <<_ACEOF
4813 /* end confdefs.h. */
4814 $ac_includes_default
4815 #include <$ac_header>
4817 rm -f conftest.
$ac_objext
4818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4819 (eval $ac_compile) 2>conftest.er1
4821 grep -v '^ *+' conftest.er1
>conftest.err
4823 cat conftest.err
>&5
4824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4825 (exit $ac_status); } &&
4826 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4831 (exit $ac_status); }; } &&
4832 { ac_try
='test -s conftest.$ac_objext'
4833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4837 (exit $ac_status); }; }; then
4838 ac_header_compiler
=yes
4840 echo "$as_me: failed program was:" >&5
4841 sed 's/^/| /' conftest.
$ac_ext >&5
4843 ac_header_compiler
=no
4845 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4846 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4847 echo "${ECHO_T}$ac_header_compiler" >&6
4849 # Is the header present?
4850 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4851 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4852 cat >conftest.
$ac_ext <<_ACEOF
4855 cat confdefs.h
>>conftest.
$ac_ext
4856 cat >>conftest.
$ac_ext <<_ACEOF
4857 /* end confdefs.h. */
4858 #include <$ac_header>
4860 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4861 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4863 grep -v '^ *+' conftest.er1
>conftest.err
4865 cat conftest.err
>&5
4866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4867 (exit $ac_status); } >/dev
/null
; then
4868 if test -s conftest.err
; then
4869 ac_cpp_err
=$ac_c_preproc_warn_flag
4870 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4877 if test -z "$ac_cpp_err"; then
4878 ac_header_preproc
=yes
4880 echo "$as_me: failed program was:" >&5
4881 sed 's/^/| /' conftest.
$ac_ext >&5
4883 ac_header_preproc
=no
4885 rm -f conftest.err conftest.
$ac_ext
4886 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4887 echo "${ECHO_T}$ac_header_preproc" >&6
4889 # So? What about this header?
4890 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4892 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4893 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4894 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4895 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4896 ac_header_preproc
=yes
4899 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4900 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4901 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4902 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4903 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4904 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4905 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4906 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4907 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4908 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4909 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4910 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4913 ## ---------------------------------------------- ##
4914 ## Report this to srvx-bugs@lists.sourceforge.net ##
4915 ## ---------------------------------------------- ##
4918 sed "s/^/$as_me: WARNING: /" >&2
4921 echo "$as_me:$LINENO: checking for $ac_header" >&5
4922 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4923 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4924 echo $ECHO_N "(cached) $ECHO_C" >&6
4926 eval "$as_ac_Header=\$ac_header_preproc"
4928 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4929 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4932 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4933 cat >>confdefs.h
<<_ACEOF
4934 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4942 echo "$as_me:$LINENO: checking for struct dirent.d_type" >&5
4943 echo $ECHO_N "checking for struct dirent.d_type... $ECHO_C" >&6
4944 if test "${ac_cv_member_struct_dirent_d_type+set}" = set; then
4945 echo $ECHO_N "(cached) $ECHO_C" >&6
4947 cat >conftest.
$ac_ext <<_ACEOF
4950 cat confdefs.h
>>conftest.
$ac_ext
4951 cat >>conftest.
$ac_ext <<_ACEOF
4952 /* end confdefs.h. */
4958 static struct dirent ac_aggr;
4965 rm -f conftest.
$ac_objext
4966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4967 (eval $ac_compile) 2>conftest.er1
4969 grep -v '^ *+' conftest.er1
>conftest.err
4971 cat conftest.err
>&5
4972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4973 (exit $ac_status); } &&
4974 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4979 (exit $ac_status); }; } &&
4980 { ac_try
='test -s conftest.$ac_objext'
4981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985 (exit $ac_status); }; }; then
4986 ac_cv_member_struct_dirent_d_type
=yes
4988 echo "$as_me: failed program was:" >&5
4989 sed 's/^/| /' conftest.
$ac_ext >&5
4991 cat >conftest.
$ac_ext <<_ACEOF
4994 cat confdefs.h
>>conftest.
$ac_ext
4995 cat >>conftest.
$ac_ext <<_ACEOF
4996 /* end confdefs.h. */
5002 static struct dirent ac_aggr;
5003 if (sizeof ac_aggr.d_type)
5009 rm -f conftest.
$ac_objext
5010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5011 (eval $ac_compile) 2>conftest.er1
5013 grep -v '^ *+' conftest.er1
>conftest.err
5015 cat conftest.err
>&5
5016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5017 (exit $ac_status); } &&
5018 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5023 (exit $ac_status); }; } &&
5024 { ac_try
='test -s conftest.$ac_objext'
5025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5029 (exit $ac_status); }; }; then
5030 ac_cv_member_struct_dirent_d_type
=yes
5032 echo "$as_me: failed program was:" >&5
5033 sed 's/^/| /' conftest.
$ac_ext >&5
5035 ac_cv_member_struct_dirent_d_type
=no
5037 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5039 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5041 echo "$as_me:$LINENO: result: $ac_cv_member_struct_dirent_d_type" >&5
5042 echo "${ECHO_T}$ac_cv_member_struct_dirent_d_type" >&6
5043 if test $ac_cv_member_struct_dirent_d_type = yes; then
5045 cat >>confdefs.h
<<\_ACEOF
5046 #define HAVE_DIRENT_D_TYPE 1
5053 for ac_func
in gettimeofday
5055 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5056 echo "$as_me:$LINENO: checking for $ac_func" >&5
5057 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5058 if eval "test \"\${$as_ac_var+set}\" = set"; then
5059 echo $ECHO_N "(cached) $ECHO_C" >&6
5061 cat >conftest.
$ac_ext <<_ACEOF
5064 cat confdefs.h
>>conftest.
$ac_ext
5065 cat >>conftest.
$ac_ext <<_ACEOF
5066 /* end confdefs.h. */
5067 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5068 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5069 #define $ac_func innocuous_$ac_func
5071 /* System header to define __stub macros and hopefully few prototypes,
5072 which can conflict with char $ac_func (); below.
5073 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5074 <limits.h> exists even on freestanding compilers. */
5077 # include <limits.h>
5079 # include <assert.h>
5084 /* Override any gcc2 internal prototype to avoid an error. */
5089 /* We use char because int might match the return type of a gcc2
5090 builtin and then its argument prototype would still apply. */
5092 /* The GNU C library defines this for functions which it implements
5093 to always fail with ENOSYS. Some functions are actually named
5094 something starting with __ and the normal name is an alias. */
5095 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5098 char (*f) () = $ac_func;
5107 return f != $ac_func;
5112 rm -f conftest.
$ac_objext conftest
$ac_exeext
5113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5114 (eval $ac_link) 2>conftest.er1
5116 grep -v '^ *+' conftest.er1
>conftest.err
5118 cat conftest.err
>&5
5119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5120 (exit $ac_status); } &&
5121 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5126 (exit $ac_status); }; } &&
5127 { ac_try
='test -s conftest$ac_exeext'
5128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5132 (exit $ac_status); }; }; then
5133 eval "$as_ac_var=yes"
5135 echo "$as_me: failed program was:" >&5
5136 sed 's/^/| /' conftest.
$ac_ext >&5
5138 eval "$as_ac_var=no"
5140 rm -f conftest.err conftest.
$ac_objext \
5141 conftest
$ac_exeext conftest.
$ac_ext
5143 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5144 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5145 if test `eval echo '${'$as_ac_var'}'` = yes; then
5146 cat >>confdefs.h
<<_ACEOF
5147 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5153 if test $ac_cv_func_gettimeofday = no
; then
5155 for ac_func
in ftime
5157 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5158 echo "$as_me:$LINENO: checking for $ac_func" >&5
5159 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5160 if eval "test \"\${$as_ac_var+set}\" = set"; then
5161 echo $ECHO_N "(cached) $ECHO_C" >&6
5163 cat >conftest.
$ac_ext <<_ACEOF
5166 cat confdefs.h
>>conftest.
$ac_ext
5167 cat >>conftest.
$ac_ext <<_ACEOF
5168 /* end confdefs.h. */
5169 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5170 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5171 #define $ac_func innocuous_$ac_func
5173 /* System header to define __stub macros and hopefully few prototypes,
5174 which can conflict with char $ac_func (); below.
5175 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5176 <limits.h> exists even on freestanding compilers. */
5179 # include <limits.h>
5181 # include <assert.h>
5186 /* Override any gcc2 internal prototype to avoid an error. */
5191 /* We use char because int might match the return type of a gcc2
5192 builtin and then its argument prototype would still apply. */
5194 /* The GNU C library defines this for functions which it implements
5195 to always fail with ENOSYS. Some functions are actually named
5196 something starting with __ and the normal name is an alias. */
5197 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5200 char (*f) () = $ac_func;
5209 return f != $ac_func;
5214 rm -f conftest.
$ac_objext conftest
$ac_exeext
5215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5216 (eval $ac_link) 2>conftest.er1
5218 grep -v '^ *+' conftest.er1
>conftest.err
5220 cat conftest.err
>&5
5221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5222 (exit $ac_status); } &&
5223 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5228 (exit $ac_status); }; } &&
5229 { ac_try
='test -s conftest$ac_exeext'
5230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5234 (exit $ac_status); }; }; then
5235 eval "$as_ac_var=yes"
5237 echo "$as_me: failed program was:" >&5
5238 sed 's/^/| /' conftest.
$ac_ext >&5
5240 eval "$as_ac_var=no"
5242 rm -f conftest.err conftest.
$ac_objext \
5243 conftest
$ac_exeext conftest.
$ac_ext
5245 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5246 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5247 if test `eval echo '${'$as_ac_var'}'` = yes; then
5248 cat >>confdefs.h
<<_ACEOF
5249 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5253 { { echo "$as_me:$LINENO: error: ftime or gettimeofday required. srvx build will fail." >&5
5254 echo "$as_me: error: ftime or gettimeofday required. srvx build will fail." >&2;}
5255 { (exit 1); exit 1; }; }
5276 for ac_func
in bcopy memcpy memset strdup strerror strsignal localtime_r setrlimit inet_ntoa getopt getopt_long regcomp regexec regfree sysconf
5278 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5279 echo "$as_me:$LINENO: checking for $ac_func" >&5
5280 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5281 if eval "test \"\${$as_ac_var+set}\" = set"; then
5282 echo $ECHO_N "(cached) $ECHO_C" >&6
5284 cat >conftest.
$ac_ext <<_ACEOF
5287 cat confdefs.h
>>conftest.
$ac_ext
5288 cat >>conftest.
$ac_ext <<_ACEOF
5289 /* end confdefs.h. */
5290 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5291 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5292 #define $ac_func innocuous_$ac_func
5294 /* System header to define __stub macros and hopefully few prototypes,
5295 which can conflict with char $ac_func (); below.
5296 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5297 <limits.h> exists even on freestanding compilers. */
5300 # include <limits.h>
5302 # include <assert.h>
5307 /* Override any gcc2 internal prototype to avoid an error. */
5312 /* We use char because int might match the return type of a gcc2
5313 builtin and then its argument prototype would still apply. */
5315 /* The GNU C library defines this for functions which it implements
5316 to always fail with ENOSYS. Some functions are actually named
5317 something starting with __ and the normal name is an alias. */
5318 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5321 char (*f) () = $ac_func;
5330 return f != $ac_func;
5335 rm -f conftest.
$ac_objext conftest
$ac_exeext
5336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5337 (eval $ac_link) 2>conftest.er1
5339 grep -v '^ *+' conftest.er1
>conftest.err
5341 cat conftest.err
>&5
5342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5343 (exit $ac_status); } &&
5344 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5349 (exit $ac_status); }; } &&
5350 { ac_try
='test -s conftest$ac_exeext'
5351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5355 (exit $ac_status); }; }; then
5356 eval "$as_ac_var=yes"
5358 echo "$as_me: failed program was:" >&5
5359 sed 's/^/| /' conftest.
$ac_ext >&5
5361 eval "$as_ac_var=no"
5363 rm -f conftest.err conftest.
$ac_objext \
5364 conftest
$ac_exeext conftest.
$ac_ext
5366 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5367 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5368 if test `eval echo '${'$as_ac_var'}'` = yes; then
5369 cat >>confdefs.h
<<_ACEOF
5370 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5383 for ac_func
in select socket strcspn strspn strtod strtoul
5385 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5386 echo "$as_me:$LINENO: checking for $ac_func" >&5
5387 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5388 if eval "test \"\${$as_ac_var+set}\" = set"; then
5389 echo $ECHO_N "(cached) $ECHO_C" >&6
5391 cat >conftest.
$ac_ext <<_ACEOF
5394 cat confdefs.h
>>conftest.
$ac_ext
5395 cat >>conftest.
$ac_ext <<_ACEOF
5396 /* end confdefs.h. */
5397 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5398 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5399 #define $ac_func innocuous_$ac_func
5401 /* System header to define __stub macros and hopefully few prototypes,
5402 which can conflict with char $ac_func (); below.
5403 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5404 <limits.h> exists even on freestanding compilers. */
5407 # include <limits.h>
5409 # include <assert.h>
5414 /* Override any gcc2 internal prototype to avoid an error. */
5419 /* We use char because int might match the return type of a gcc2
5420 builtin and then its argument prototype would still apply. */
5422 /* The GNU C library defines this for functions which it implements
5423 to always fail with ENOSYS. Some functions are actually named
5424 something starting with __ and the normal name is an alias. */
5425 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5428 char (*f) () = $ac_func;
5437 return f != $ac_func;
5442 rm -f conftest.
$ac_objext conftest
$ac_exeext
5443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5444 (eval $ac_link) 2>conftest.er1
5446 grep -v '^ *+' conftest.er1
>conftest.err
5448 cat conftest.err
>&5
5449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5450 (exit $ac_status); } &&
5451 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5456 (exit $ac_status); }; } &&
5457 { ac_try
='test -s conftest$ac_exeext'
5458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5462 (exit $ac_status); }; }; then
5463 eval "$as_ac_var=yes"
5465 echo "$as_me: failed program was:" >&5
5466 sed 's/^/| /' conftest.
$ac_ext >&5
5468 eval "$as_ac_var=no"
5470 rm -f conftest.err conftest.
$ac_objext \
5471 conftest
$ac_exeext conftest.
$ac_ext
5473 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5474 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5475 if test `eval echo '${'$as_ac_var'}'` = yes; then
5476 cat >>confdefs.h
<<_ACEOF
5477 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5481 { { echo "$as_me:$LINENO: error: a required function was not found. srvx build will fail." >&5
5482 echo "$as_me: error: a required function was not found. srvx build will fail." >&2;}
5483 { (exit 1); exit 1; }; }
5488 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5489 # for constant arguments. Useless!
5490 echo "$as_me:$LINENO: checking for working alloca.h" >&5
5491 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
5492 if test "${ac_cv_working_alloca_h+set}" = set; then
5493 echo $ECHO_N "(cached) $ECHO_C" >&6
5495 cat >conftest.
$ac_ext <<_ACEOF
5498 cat confdefs.h
>>conftest.
$ac_ext
5499 cat >>conftest.
$ac_ext <<_ACEOF
5500 /* end confdefs.h. */
5505 char *p = (char *) alloca (2 * sizeof (int));
5510 rm -f conftest.
$ac_objext conftest
$ac_exeext
5511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5512 (eval $ac_link) 2>conftest.er1
5514 grep -v '^ *+' conftest.er1
>conftest.err
5516 cat conftest.err
>&5
5517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5518 (exit $ac_status); } &&
5519 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5524 (exit $ac_status); }; } &&
5525 { ac_try
='test -s conftest$ac_exeext'
5526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5530 (exit $ac_status); }; }; then
5531 ac_cv_working_alloca_h
=yes
5533 echo "$as_me: failed program was:" >&5
5534 sed 's/^/| /' conftest.
$ac_ext >&5
5536 ac_cv_working_alloca_h
=no
5538 rm -f conftest.err conftest.
$ac_objext \
5539 conftest
$ac_exeext conftest.
$ac_ext
5541 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
5542 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
5543 if test $ac_cv_working_alloca_h = yes; then
5545 cat >>confdefs.h
<<\_ACEOF
5546 #define HAVE_ALLOCA_H 1
5551 echo "$as_me:$LINENO: checking for alloca" >&5
5552 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
5553 if test "${ac_cv_func_alloca_works+set}" = set; then
5554 echo $ECHO_N "(cached) $ECHO_C" >&6
5556 cat >conftest.
$ac_ext <<_ACEOF
5559 cat confdefs.h
>>conftest.
$ac_ext
5560 cat >>conftest.
$ac_ext <<_ACEOF
5561 /* end confdefs.h. */
5563 # define alloca __builtin_alloca
5566 # include <malloc.h>
5567 # define alloca _alloca
5570 # include <alloca.h>
5575 # ifndef alloca /* predefined by HP cc +Olibcalls */
5586 char *p = (char *) alloca (1);
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_alloca_works
=yes
5614 echo "$as_me: failed program was:" >&5
5615 sed 's/^/| /' conftest.
$ac_ext >&5
5617 ac_cv_func_alloca_works
=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_alloca_works" >&5
5623 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
5625 if test $ac_cv_func_alloca_works = yes; then
5627 cat >>confdefs.h
<<\_ACEOF
5628 #define HAVE_ALLOCA 1
5632 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5633 # that cause trouble. Some versions do not even contain alloca or
5634 # contain a buggy version. If you still want to use their alloca,
5635 # use ar to extract alloca.o from them instead of compiling alloca.c.
5637 ALLOCA
=alloca.
$ac_objext
5639 cat >>confdefs.h
<<\_ACEOF
5644 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
5645 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
5646 if test "${ac_cv_os_cray+set}" = set; then
5647 echo $ECHO_N "(cached) $ECHO_C" >&6
5649 cat >conftest.
$ac_ext <<_ACEOF
5652 cat confdefs.h
>>conftest.
$ac_ext
5653 cat >>conftest.
$ac_ext <<_ACEOF
5654 /* end confdefs.h. */
5655 #if defined(CRAY) && ! defined(CRAY2)
5662 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5663 $EGREP "webecray" >/dev
/null
2>&1; then
5671 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
5672 echo "${ECHO_T}$ac_cv_os_cray" >&6
5673 if test $ac_cv_os_cray = yes; then
5674 for ac_func
in _getb67 GETB67 getb67
; do
5675 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5676 echo "$as_me:$LINENO: checking for $ac_func" >&5
5677 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5678 if eval "test \"\${$as_ac_var+set}\" = set"; then
5679 echo $ECHO_N "(cached) $ECHO_C" >&6
5681 cat >conftest.
$ac_ext <<_ACEOF
5684 cat confdefs.h
>>conftest.
$ac_ext
5685 cat >>conftest.
$ac_ext <<_ACEOF
5686 /* end confdefs.h. */
5687 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5688 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5689 #define $ac_func innocuous_$ac_func
5691 /* System header to define __stub macros and hopefully few prototypes,
5692 which can conflict with char $ac_func (); below.
5693 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5694 <limits.h> exists even on freestanding compilers. */
5697 # include <limits.h>
5699 # include <assert.h>
5704 /* Override any gcc2 internal prototype to avoid an error. */
5709 /* We use char because int might match the return type of a gcc2
5710 builtin and then its argument prototype would still apply. */
5712 /* The GNU C library defines this for functions which it implements
5713 to always fail with ENOSYS. Some functions are actually named
5714 something starting with __ and the normal name is an alias. */
5715 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5718 char (*f) () = $ac_func;
5727 return f != $ac_func;
5732 rm -f conftest.
$ac_objext conftest
$ac_exeext
5733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5734 (eval $ac_link) 2>conftest.er1
5736 grep -v '^ *+' conftest.er1
>conftest.err
5738 cat conftest.err
>&5
5739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5740 (exit $ac_status); } &&
5741 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5746 (exit $ac_status); }; } &&
5747 { ac_try
='test -s conftest$ac_exeext'
5748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5752 (exit $ac_status); }; }; then
5753 eval "$as_ac_var=yes"
5755 echo "$as_me: failed program was:" >&5
5756 sed 's/^/| /' conftest.
$ac_ext >&5
5758 eval "$as_ac_var=no"
5760 rm -f conftest.err conftest.
$ac_objext \
5761 conftest
$ac_exeext conftest.
$ac_ext
5763 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5764 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5765 if test `eval echo '${'$as_ac_var'}'` = yes; then
5767 cat >>confdefs.h
<<_ACEOF
5768 #define CRAY_STACKSEG_END $ac_func
5777 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
5778 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
5779 if test "${ac_cv_c_stack_direction+set}" = set; then
5780 echo $ECHO_N "(cached) $ECHO_C" >&6
5782 if test "$cross_compiling" = yes; then
5783 ac_cv_c_stack_direction
=0
5785 cat >conftest.
$ac_ext <<_ACEOF
5788 cat confdefs.h
>>conftest.
$ac_ext
5789 cat >>conftest.
$ac_ext <<_ACEOF
5790 /* end confdefs.h. */
5792 find_stack_direction ()
5794 static char *addr = 0;
5799 return find_stack_direction ();
5802 return (&dummy > addr) ? 1 : -1;
5808 exit (find_stack_direction () < 0);
5811 rm -f conftest
$ac_exeext
5812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5813 (eval $ac_link) 2>&5
5815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5816 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5821 (exit $ac_status); }; }; then
5822 ac_cv_c_stack_direction
=1
5824 echo "$as_me: program exited with status $ac_status" >&5
5825 echo "$as_me: failed program was:" >&5
5826 sed 's/^/| /' conftest.
$ac_ext >&5
5829 ac_cv_c_stack_direction
=-1
5831 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5834 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
5835 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
5837 cat >>confdefs.h
<<_ACEOF
5838 #define STACK_DIRECTION $ac_cv_c_stack_direction
5846 for ac_header
in stdlib.h unistd.h
5848 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5849 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5850 echo "$as_me:$LINENO: checking for $ac_header" >&5
5851 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5852 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5853 echo $ECHO_N "(cached) $ECHO_C" >&6
5855 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5856 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5858 # Is the header compilable?
5859 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5860 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5861 cat >conftest.
$ac_ext <<_ACEOF
5864 cat confdefs.h
>>conftest.
$ac_ext
5865 cat >>conftest.
$ac_ext <<_ACEOF
5866 /* end confdefs.h. */
5867 $ac_includes_default
5868 #include <$ac_header>
5870 rm -f conftest.
$ac_objext
5871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5872 (eval $ac_compile) 2>conftest.er1
5874 grep -v '^ *+' conftest.er1
>conftest.err
5876 cat conftest.err
>&5
5877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5878 (exit $ac_status); } &&
5879 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5884 (exit $ac_status); }; } &&
5885 { ac_try
='test -s conftest.$ac_objext'
5886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5890 (exit $ac_status); }; }; then
5891 ac_header_compiler
=yes
5893 echo "$as_me: failed program was:" >&5
5894 sed 's/^/| /' conftest.
$ac_ext >&5
5896 ac_header_compiler
=no
5898 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5899 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5900 echo "${ECHO_T}$ac_header_compiler" >&6
5902 # Is the header present?
5903 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5904 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5905 cat >conftest.
$ac_ext <<_ACEOF
5908 cat confdefs.h
>>conftest.
$ac_ext
5909 cat >>conftest.
$ac_ext <<_ACEOF
5910 /* end confdefs.h. */
5911 #include <$ac_header>
5913 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5914 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5916 grep -v '^ *+' conftest.er1
>conftest.err
5918 cat conftest.err
>&5
5919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5920 (exit $ac_status); } >/dev
/null
; then
5921 if test -s conftest.err
; then
5922 ac_cpp_err
=$ac_c_preproc_warn_flag
5923 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5930 if test -z "$ac_cpp_err"; then
5931 ac_header_preproc
=yes
5933 echo "$as_me: failed program was:" >&5
5934 sed 's/^/| /' conftest.
$ac_ext >&5
5936 ac_header_preproc
=no
5938 rm -f conftest.err conftest.
$ac_ext
5939 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5940 echo "${ECHO_T}$ac_header_preproc" >&6
5942 # So? What about this header?
5943 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5945 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5946 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5947 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5948 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5949 ac_header_preproc
=yes
5952 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5953 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5954 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5955 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5956 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5957 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5958 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5959 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5960 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5961 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5962 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5963 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5966 ## ---------------------------------------------- ##
5967 ## Report this to srvx-bugs@lists.sourceforge.net ##
5968 ## ---------------------------------------------- ##
5971 sed "s/^/$as_me: WARNING: /" >&2
5974 echo "$as_me:$LINENO: checking for $ac_header" >&5
5975 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5976 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5977 echo $ECHO_N "(cached) $ECHO_C" >&6
5979 eval "$as_ac_Header=\$ac_header_preproc"
5981 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5982 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5985 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5986 cat >>confdefs.h
<<_ACEOF
5987 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5995 for ac_func
in getpagesize
5997 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5998 echo "$as_me:$LINENO: checking for $ac_func" >&5
5999 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6000 if eval "test \"\${$as_ac_var+set}\" = set"; then
6001 echo $ECHO_N "(cached) $ECHO_C" >&6
6003 cat >conftest.
$ac_ext <<_ACEOF
6006 cat confdefs.h
>>conftest.
$ac_ext
6007 cat >>conftest.
$ac_ext <<_ACEOF
6008 /* end confdefs.h. */
6009 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6010 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6011 #define $ac_func innocuous_$ac_func
6013 /* System header to define __stub macros and hopefully few prototypes,
6014 which can conflict with char $ac_func (); below.
6015 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6016 <limits.h> exists even on freestanding compilers. */
6019 # include <limits.h>
6021 # include <assert.h>
6026 /* Override any gcc2 internal prototype to avoid an error. */
6031 /* We use char because int might match the return type of a gcc2
6032 builtin and then its argument prototype would still apply. */
6034 /* The GNU C library defines this for functions which it implements
6035 to always fail with ENOSYS. Some functions are actually named
6036 something starting with __ and the normal name is an alias. */
6037 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6040 char (*f) () = $ac_func;
6049 return f != $ac_func;
6054 rm -f conftest.
$ac_objext conftest
$ac_exeext
6055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6056 (eval $ac_link) 2>conftest.er1
6058 grep -v '^ *+' conftest.er1
>conftest.err
6060 cat conftest.err
>&5
6061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6062 (exit $ac_status); } &&
6063 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6068 (exit $ac_status); }; } &&
6069 { ac_try
='test -s conftest$ac_exeext'
6070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6074 (exit $ac_status); }; }; then
6075 eval "$as_ac_var=yes"
6077 echo "$as_me: failed program was:" >&5
6078 sed 's/^/| /' conftest.
$ac_ext >&5
6080 eval "$as_ac_var=no"
6082 rm -f conftest.err conftest.
$ac_objext \
6083 conftest
$ac_exeext conftest.
$ac_ext
6085 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6086 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6087 if test `eval echo '${'$as_ac_var'}'` = yes; then
6088 cat >>confdefs.h
<<_ACEOF
6089 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6095 echo "$as_me:$LINENO: checking for working mmap" >&5
6096 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6097 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6098 echo $ECHO_N "(cached) $ECHO_C" >&6
6100 if test "$cross_compiling" = yes; then
6101 ac_cv_func_mmap_fixed_mapped
=no
6103 cat >conftest.
$ac_ext <<_ACEOF
6106 cat confdefs.h
>>conftest.
$ac_ext
6107 cat >>conftest.
$ac_ext <<_ACEOF
6108 /* end confdefs.h. */
6109 $ac_includes_default
6110 /* malloc might have been renamed as rpl_malloc. */
6113 /* Thanks to Mike Haertel and Jim Avera for this test.
6114 Here is a matrix of mmap possibilities:
6115 mmap private not fixed
6116 mmap private fixed at somewhere currently unmapped
6117 mmap private fixed at somewhere already mapped
6118 mmap shared not fixed
6119 mmap shared fixed at somewhere currently unmapped
6120 mmap shared fixed at somewhere already mapped
6121 For private mappings, we should verify that changes cannot be read()
6122 back from the file, nor mmap's back from the file at a different
6123 address. (There have been systems where private was not correctly
6124 implemented like the infamous i386 svr4.0, and systems where the
6125 VM page cache was not coherent with the file system buffer cache
6126 like early versions of FreeBSD and possibly contemporary NetBSD.)
6127 For shared mappings, we should conversely verify that changes get
6128 propagated back to all the places they're supposed to be.
6130 Grep wants private fixed already mapped.
6131 The main things grep needs to know about mmap are:
6132 * does it exist and is it safe to write into the mmap'd area
6133 * how to use it (BSD variants) */
6136 #include <sys/mman.h>
6138 #if !STDC_HEADERS && !HAVE_STDLIB_H
6142 /* This mess was copied from the GNU getpagesize.h. */
6143 #if !HAVE_GETPAGESIZE
6144 /* Assume that all systems that can run configure have sys/param.h. */
6145 # if !HAVE_SYS_PARAM_H
6146 # define HAVE_SYS_PARAM_H 1
6149 # ifdef _SC_PAGESIZE
6150 # define getpagesize() sysconf(_SC_PAGESIZE)
6151 # else /* no _SC_PAGESIZE */
6152 # if HAVE_SYS_PARAM_H
6153 # include <sys/param.h>
6154 # ifdef EXEC_PAGESIZE
6155 # define getpagesize() EXEC_PAGESIZE
6156 # else /* no EXEC_PAGESIZE */
6158 # define getpagesize() NBPG * CLSIZE
6161 # endif /* no CLSIZE */
6162 # else /* no NBPG */
6164 # define getpagesize() NBPC
6165 # else /* no NBPC */
6167 # define getpagesize() PAGESIZE
6168 # endif /* PAGESIZE */
6169 # endif /* no NBPC */
6170 # endif /* no NBPG */
6171 # endif /* no EXEC_PAGESIZE */
6172 # else /* no HAVE_SYS_PARAM_H */
6173 # define getpagesize() 8192 /* punt totally */
6174 # endif /* no HAVE_SYS_PARAM_H */
6175 # endif /* no _SC_PAGESIZE */
6177 #endif /* no HAVE_GETPAGESIZE */
6182 char *data, *data2, *data3;
6186 pagesize = getpagesize ();
6188 /* First, make a file with some known garbage in it. */
6189 data = (char *) malloc (pagesize);
6192 for (i = 0; i < pagesize; ++i)
6193 *(data + i) = rand ();
6195 fd = creat ("conftest.mmap", 0600);
6198 if (write (fd, data, pagesize) != pagesize)
6202 /* Next, try to mmap the file at a fixed address which already has
6203 something else allocated at it. If we can, also make sure that
6204 we see the same garbage. */
6205 fd = open ("conftest.mmap", O_RDWR);
6208 data2 = (char *) malloc (2 * pagesize);
6211 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
6212 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6213 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6215 for (i = 0; i < pagesize; ++i)
6216 if (*(data + i) != *(data2 + i))
6219 /* Finally, make sure that changes to the mapped area do not
6220 percolate back to the file as seen by read(). (This is a bug on
6221 some variants of i386 svr4.0.) */
6222 for (i = 0; i < pagesize; ++i)
6223 *(data2 + i) = *(data2 + i) + 1;
6224 data3 = (char *) malloc (pagesize);
6227 if (read (fd, data3, pagesize) != pagesize)
6229 for (i = 0; i < pagesize; ++i)
6230 if (*(data + i) != *(data3 + i))
6236 rm -f conftest
$ac_exeext
6237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6238 (eval $ac_link) 2>&5
6240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6241 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6246 (exit $ac_status); }; }; then
6247 ac_cv_func_mmap_fixed_mapped
=yes
6249 echo "$as_me: program exited with status $ac_status" >&5
6250 echo "$as_me: failed program was:" >&5
6251 sed 's/^/| /' conftest.
$ac_ext >&5
6254 ac_cv_func_mmap_fixed_mapped
=no
6256 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6259 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6260 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
6261 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6263 cat >>confdefs.h
<<\_ACEOF
6271 echo "$as_me:$LINENO: checking for sin_len" >&5
6272 echo $ECHO_N "checking for sin_len... $ECHO_C" >&6
6273 if test "${ac_cv_sin_len+set}" = set; then
6274 echo $ECHO_N "(cached) $ECHO_C" >&6
6276 cat >conftest.
$ac_ext <<_ACEOF
6279 cat confdefs.h
>>conftest.
$ac_ext
6280 cat >>conftest.
$ac_ext <<_ACEOF
6281 /* end confdefs.h. */
6282 #include <sys/types.h>
6283 #include <netinet/in.h>
6287 struct sockaddr_in *sin; sin->sin_len = 0;
6292 rm -f conftest.
$ac_objext
6293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6294 (eval $ac_compile) 2>conftest.er1
6296 grep -v '^ *+' conftest.er1
>conftest.err
6298 cat conftest.err
>&5
6299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6300 (exit $ac_status); } &&
6301 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6306 (exit $ac_status); }; } &&
6307 { ac_try
='test -s conftest.$ac_objext'
6308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6312 (exit $ac_status); }; }; then
6315 echo "$as_me: failed program was:" >&5
6316 sed 's/^/| /' conftest.
$ac_ext >&5
6320 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6322 echo "$as_me:$LINENO: result: $ac_cv_sin_len" >&5
6323 echo "${ECHO_T}$ac_cv_sin_len" >&6
6324 if test $ac_cv_sin_len = yes ; then
6326 cat >>confdefs.h
<<\_ACEOF
6327 #define HAVE_SIN_LEN 1
6333 CFLAGS
="$CFLAGS -W -Wall -Werror"
6335 echo "$as_me:$LINENO: checking for time_t format" >&5
6336 echo $ECHO_N "checking for time_t format... $ECHO_C" >&6
6337 if test "${ac_cv_fmt_time_t+set}" = set; then
6338 echo $ECHO_N "(cached) $ECHO_C" >&6
6342 cat >conftest.
$ac_ext <<_ACEOF
6343 #include <sys/types.h>
6347 printf("%li", test);
6350 rm -f conftest.
$ac_objext
6351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6352 (eval $ac_compile) 2>conftest.er1
6354 grep -v '^ *+' conftest.er1
>conftest.err
6356 cat conftest.err
>&5
6357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6358 (exit $ac_status); } &&
6359 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6364 (exit $ac_status); }; } &&
6365 { ac_try
='test -s conftest.$ac_objext'
6366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6370 (exit $ac_status); }; }; then
6371 ac_cv_fmt_time_t
="\"%li\""
6373 echo "$as_me: failed program was:" >&5
6374 sed 's/^/| /' conftest.
$ac_ext >&5
6377 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6378 if test $ac_cv_fmt_time_t = no
; then
6379 cat >conftest.
$ac_ext <<_ACEOF
6380 #include <sys/types.h>
6387 rm -f conftest.
$ac_objext
6388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6389 (eval $ac_compile) 2>conftest.er1
6391 grep -v '^ *+' conftest.er1
>conftest.err
6393 cat conftest.err
>&5
6394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6395 (exit $ac_status); } &&
6396 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6401 (exit $ac_status); }; } &&
6402 { ac_try
='test -s conftest.$ac_objext'
6403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6407 (exit $ac_status); }; }; then
6408 ac_cv_fmt_time_t
="\"%i\""
6410 echo "$as_me: failed program was:" >&5
6411 sed 's/^/| /' conftest.
$ac_ext >&5
6414 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6416 if test $ac_cv_fmt_time_t = no
; then
6417 { { echo "$as_me:$LINENO: error: Cannot detect format string for time_t
6418 Please check sys/types.h for the typedef of time_t and submit to a developer" >&5
6419 echo "$as_me: error: Cannot detect format string for time_t
6420 Please check sys/types.h for the typedef of time_t and submit to a developer" >&2;}
6421 { (exit 1); exit 1; }; }
6427 cat >>confdefs.h
<<_ACEOF
6428 #define FMT_TIME_T $ac_cv_fmt_time_t
6431 echo "$as_me:$LINENO: result: $ac_cv_fmt_time_t" >&5
6432 echo "${ECHO_T}$ac_cv_fmt_time_t" >&6
6434 echo "$as_me:$LINENO: checking for va_copy" >&5
6435 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
6436 if test "${ac_cv_c_va_copy+set}" = set; then
6437 echo $ECHO_N "(cached) $ECHO_C" >&6
6439 cat >conftest.
$ac_ext <<_ACEOF
6442 cat confdefs.h
>>conftest.
$ac_ext
6443 cat >>conftest.
$ac_ext <<_ACEOF
6444 /* end confdefs.h. */
6449 va_list ap1, ap2; va_copy(ap1, ap2);
6454 rm -f conftest.
$ac_objext conftest
$ac_exeext
6455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6456 (eval $ac_link) 2>conftest.er1
6458 grep -v '^ *+' conftest.er1
>conftest.err
6460 cat conftest.err
>&5
6461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6462 (exit $ac_status); } &&
6463 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6468 (exit $ac_status); }; } &&
6469 { ac_try
='test -s conftest$ac_exeext'
6470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6474 (exit $ac_status); }; }; then
6475 ac_cv_c_va_copy
="yes"
6477 echo "$as_me: failed program was:" >&5
6478 sed 's/^/| /' conftest.
$ac_ext >&5
6480 ac_cv_c_va_copy
="no"
6483 rm -f conftest.err conftest.
$ac_objext \
6484 conftest
$ac_exeext conftest.
$ac_ext
6486 echo "$as_me:$LINENO: result: $ac_cv_c_va_copy" >&5
6487 echo "${ECHO_T}$ac_cv_c_va_copy" >&6
6488 if test "$ac_cv_c_va_copy" = "yes" ; then
6490 cat >>confdefs.h
<<\_ACEOF
6491 #define HAVE_VA_COPY 1
6496 echo "$as_me:$LINENO: checking for __va_copy" >&5
6497 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
6498 if test "${ac_cv_c___va_copy+set}" = set; then
6499 echo $ECHO_N "(cached) $ECHO_C" >&6
6501 cat >conftest.
$ac_ext <<_ACEOF
6504 cat confdefs.h
>>conftest.
$ac_ext
6505 cat >>conftest.
$ac_ext <<_ACEOF
6506 /* end confdefs.h. */
6511 va_list ap1, ap2; __va_copy(ap1, ap2);
6516 rm -f conftest.
$ac_objext conftest
$ac_exeext
6517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6518 (eval $ac_link) 2>conftest.er1
6520 grep -v '^ *+' conftest.er1
>conftest.err
6522 cat conftest.err
>&5
6523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6524 (exit $ac_status); } &&
6525 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6530 (exit $ac_status); }; } &&
6531 { ac_try
='test -s conftest$ac_exeext'
6532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6536 (exit $ac_status); }; }; then
6537 ac_cv_c___va_copy
="yes"
6539 echo "$as_me: failed program was:" >&5
6540 sed 's/^/| /' conftest.
$ac_ext >&5
6542 ac_cv_c___va_copy
="no"
6545 rm -f conftest.err conftest.
$ac_objext \
6546 conftest
$ac_exeext conftest.
$ac_ext
6548 echo "$as_me:$LINENO: result: $ac_cv_c___va_copy" >&5
6549 echo "${ECHO_T}$ac_cv_c___va_copy" >&6
6550 if test "$ac_cv_c___va_copy" = "yes" ; then
6552 cat >>confdefs.h
<<\_ACEOF
6553 #define HAVE___VA_COPY 1
6560 echo "$as_me:$LINENO: checking which malloc to use" >&5
6561 echo $ECHO_N "checking which malloc to use... $ECHO_C" >&6
6563 # Check whether --with-malloc or --without-malloc was given.
6564 if test "${with_malloc+set}" = set; then
6565 withval
="$with_malloc"
6570 if test "x$withval" = "xsystem" ; then
6571 echo "$as_me:$LINENO: result: system" >&5
6572 echo "${ECHO_T}system" >&6
6574 cat >>confdefs.h
<<\_ACEOF
6575 #define WITH_MALLOC_SYSTEM 1
6578 elif test "x$withval" = "xdmalloc" ; then
6579 echo "$as_me:$LINENO: result: dmalloc" >&5
6580 echo "${ECHO_T}dmalloc" >&6
6582 for ac_header
in dmalloc.h
6584 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6585 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6586 echo "$as_me:$LINENO: checking for $ac_header" >&5
6587 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6588 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6589 echo $ECHO_N "(cached) $ECHO_C" >&6
6591 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6592 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6594 # Is the header compilable?
6595 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6596 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6597 cat >conftest.
$ac_ext <<_ACEOF
6600 cat confdefs.h
>>conftest.
$ac_ext
6601 cat >>conftest.
$ac_ext <<_ACEOF
6602 /* end confdefs.h. */
6603 $ac_includes_default
6604 #include <$ac_header>
6606 rm -f conftest.
$ac_objext
6607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6608 (eval $ac_compile) 2>conftest.er1
6610 grep -v '^ *+' conftest.er1
>conftest.err
6612 cat conftest.err
>&5
6613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6614 (exit $ac_status); } &&
6615 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6620 (exit $ac_status); }; } &&
6621 { ac_try
='test -s conftest.$ac_objext'
6622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6626 (exit $ac_status); }; }; then
6627 ac_header_compiler
=yes
6629 echo "$as_me: failed program was:" >&5
6630 sed 's/^/| /' conftest.
$ac_ext >&5
6632 ac_header_compiler
=no
6634 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6635 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6636 echo "${ECHO_T}$ac_header_compiler" >&6
6638 # Is the header present?
6639 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6640 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6641 cat >conftest.
$ac_ext <<_ACEOF
6644 cat confdefs.h
>>conftest.
$ac_ext
6645 cat >>conftest.
$ac_ext <<_ACEOF
6646 /* end confdefs.h. */
6647 #include <$ac_header>
6649 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6650 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6652 grep -v '^ *+' conftest.er1
>conftest.err
6654 cat conftest.err
>&5
6655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6656 (exit $ac_status); } >/dev
/null
; then
6657 if test -s conftest.err
; then
6658 ac_cpp_err
=$ac_c_preproc_warn_flag
6659 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6666 if test -z "$ac_cpp_err"; then
6667 ac_header_preproc
=yes
6669 echo "$as_me: failed program was:" >&5
6670 sed 's/^/| /' conftest.
$ac_ext >&5
6672 ac_header_preproc
=no
6674 rm -f conftest.err conftest.
$ac_ext
6675 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6676 echo "${ECHO_T}$ac_header_preproc" >&6
6678 # So? What about this header?
6679 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6681 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6682 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6683 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6684 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6685 ac_header_preproc
=yes
6688 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6689 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6690 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6691 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6692 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6693 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6694 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6695 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6696 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6697 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6698 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6699 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6702 ## ---------------------------------------------- ##
6703 ## Report this to srvx-bugs@lists.sourceforge.net ##
6704 ## ---------------------------------------------- ##
6707 sed "s/^/$as_me: WARNING: /" >&2
6710 echo "$as_me:$LINENO: checking for $ac_header" >&5
6711 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6712 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6713 echo $ECHO_N "(cached) $ECHO_C" >&6
6715 eval "$as_ac_Header=\$ac_header_preproc"
6717 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6718 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6721 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6722 cat >>confdefs.h
<<_ACEOF
6723 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6727 { { echo "$as_me:$LINENO: error: dmalloc header file missing. dmalloc build will fail." >&5
6728 echo "$as_me: error: dmalloc header file missing. dmalloc build will fail." >&2;}
6729 { (exit 1); exit 1; }; }
6735 echo "$as_me:$LINENO: checking for malloc in -ldmalloc" >&5
6736 echo $ECHO_N "checking for malloc in -ldmalloc... $ECHO_C" >&6
6737 if test "${ac_cv_lib_dmalloc_malloc+set}" = set; then
6738 echo $ECHO_N "(cached) $ECHO_C" >&6
6740 ac_check_lib_save_LIBS
=$LIBS
6741 LIBS
="-ldmalloc $LIBS"
6742 cat >conftest.
$ac_ext <<_ACEOF
6745 cat confdefs.h
>>conftest.
$ac_ext
6746 cat >>conftest.
$ac_ext <<_ACEOF
6747 /* end confdefs.h. */
6749 /* Override any gcc2 internal prototype to avoid an error. */
6753 /* We use char because int might match the return type of a gcc2
6754 builtin and then its argument prototype would still apply. */
6764 rm -f conftest.
$ac_objext conftest
$ac_exeext
6765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6766 (eval $ac_link) 2>conftest.er1
6768 grep -v '^ *+' conftest.er1
>conftest.err
6770 cat conftest.err
>&5
6771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6772 (exit $ac_status); } &&
6773 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6778 (exit $ac_status); }; } &&
6779 { ac_try
='test -s conftest$ac_exeext'
6780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6784 (exit $ac_status); }; }; then
6785 ac_cv_lib_dmalloc_malloc
=yes
6787 echo "$as_me: failed program was:" >&5
6788 sed 's/^/| /' conftest.
$ac_ext >&5
6790 ac_cv_lib_dmalloc_malloc
=no
6792 rm -f conftest.err conftest.
$ac_objext \
6793 conftest
$ac_exeext conftest.
$ac_ext
6794 LIBS
=$ac_check_lib_save_LIBS
6796 echo "$as_me:$LINENO: result: $ac_cv_lib_dmalloc_malloc" >&5
6797 echo "${ECHO_T}$ac_cv_lib_dmalloc_malloc" >&6
6798 if test $ac_cv_lib_dmalloc_malloc = yes; then
6799 cat >>confdefs.h
<<_ACEOF
6800 #define HAVE_LIBDMALLOC 1
6803 LIBS
="-ldmalloc $LIBS"
6806 { { echo "$as_me:$LINENO: error: dmalloc library is missing. dmalloc build will fail." >&5
6807 echo "$as_me: error: dmalloc library is missing. dmalloc build will fail." >&2;}
6808 { (exit 1); exit 1; }; }
6812 cat >>confdefs.h
<<\_ACEOF
6813 #define WITH_MALLOC_DMALLOC 1
6816 elif test "x$withval" = "xmpatrol" ; then
6817 echo "$as_me:$LINENO: result: mpatrol" >&5
6818 echo "${ECHO_T}mpatrol" >&6
6820 for ac_header
in mpatrol.h
6822 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6823 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6824 echo "$as_me:$LINENO: checking for $ac_header" >&5
6825 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6826 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6827 echo $ECHO_N "(cached) $ECHO_C" >&6
6829 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6830 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6832 # Is the header compilable?
6833 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6834 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6835 cat >conftest.
$ac_ext <<_ACEOF
6838 cat confdefs.h
>>conftest.
$ac_ext
6839 cat >>conftest.
$ac_ext <<_ACEOF
6840 /* end confdefs.h. */
6841 $ac_includes_default
6842 #include <$ac_header>
6844 rm -f conftest.
$ac_objext
6845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6846 (eval $ac_compile) 2>conftest.er1
6848 grep -v '^ *+' conftest.er1
>conftest.err
6850 cat conftest.err
>&5
6851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6852 (exit $ac_status); } &&
6853 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6858 (exit $ac_status); }; } &&
6859 { ac_try
='test -s conftest.$ac_objext'
6860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6864 (exit $ac_status); }; }; then
6865 ac_header_compiler
=yes
6867 echo "$as_me: failed program was:" >&5
6868 sed 's/^/| /' conftest.
$ac_ext >&5
6870 ac_header_compiler
=no
6872 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6873 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6874 echo "${ECHO_T}$ac_header_compiler" >&6
6876 # Is the header present?
6877 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6878 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6879 cat >conftest.
$ac_ext <<_ACEOF
6882 cat confdefs.h
>>conftest.
$ac_ext
6883 cat >>conftest.
$ac_ext <<_ACEOF
6884 /* end confdefs.h. */
6885 #include <$ac_header>
6887 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6888 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6890 grep -v '^ *+' conftest.er1
>conftest.err
6892 cat conftest.err
>&5
6893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6894 (exit $ac_status); } >/dev
/null
; then
6895 if test -s conftest.err
; then
6896 ac_cpp_err
=$ac_c_preproc_warn_flag
6897 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6904 if test -z "$ac_cpp_err"; then
6905 ac_header_preproc
=yes
6907 echo "$as_me: failed program was:" >&5
6908 sed 's/^/| /' conftest.
$ac_ext >&5
6910 ac_header_preproc
=no
6912 rm -f conftest.err conftest.
$ac_ext
6913 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6914 echo "${ECHO_T}$ac_header_preproc" >&6
6916 # So? What about this header?
6917 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6919 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6920 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6921 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6922 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6923 ac_header_preproc
=yes
6926 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6927 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6928 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6929 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6930 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6931 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6932 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6933 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6934 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6935 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6936 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6937 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6940 ## ---------------------------------------------- ##
6941 ## Report this to srvx-bugs@lists.sourceforge.net ##
6942 ## ---------------------------------------------- ##
6945 sed "s/^/$as_me: WARNING: /" >&2
6948 echo "$as_me:$LINENO: checking for $ac_header" >&5
6949 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6950 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6951 echo $ECHO_N "(cached) $ECHO_C" >&6
6953 eval "$as_ac_Header=\$ac_header_preproc"
6955 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6956 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6959 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6960 cat >>confdefs.h
<<_ACEOF
6961 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6965 { { echo "$as_me:$LINENO: error: mpatrol header file missing. mpatrol build will fail." >&5
6966 echo "$as_me: error: mpatrol header file missing. mpatrol build will fail." >&2;}
6967 { (exit 1); exit 1; }; }
6973 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
6974 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
6975 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
6976 echo $ECHO_N "(cached) $ECHO_C" >&6
6978 ac_check_lib_save_LIBS
=$LIBS
6980 cat >conftest.
$ac_ext <<_ACEOF
6983 cat confdefs.h
>>conftest.
$ac_ext
6984 cat >>conftest.
$ac_ext <<_ACEOF
6985 /* end confdefs.h. */
6987 /* Override any gcc2 internal prototype to avoid an error. */
6991 /* We use char because int might match the return type of a gcc2
6992 builtin and then its argument prototype would still apply. */
7002 rm -f conftest.
$ac_objext conftest
$ac_exeext
7003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7004 (eval $ac_link) 2>conftest.er1
7006 grep -v '^ *+' conftest.er1
>conftest.err
7008 cat conftest.err
>&5
7009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7010 (exit $ac_status); } &&
7011 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7016 (exit $ac_status); }; } &&
7017 { ac_try
='test -s conftest$ac_exeext'
7018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7022 (exit $ac_status); }; }; then
7023 ac_cv_lib_elf_elf_begin
=yes
7025 echo "$as_me: failed program was:" >&5
7026 sed 's/^/| /' conftest.
$ac_ext >&5
7028 ac_cv_lib_elf_elf_begin
=no
7030 rm -f conftest.err conftest.
$ac_objext \
7031 conftest
$ac_exeext conftest.
$ac_ext
7032 LIBS
=$ac_check_lib_save_LIBS
7034 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
7035 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
7036 if test $ac_cv_lib_elf_elf_begin = yes; then
7037 cat >>confdefs.h
<<_ACEOF
7038 #define HAVE_LIBELF 1
7046 echo "$as_me:$LINENO: checking for __mp_atexit in -lmpatrol" >&5
7047 echo $ECHO_N "checking for __mp_atexit in -lmpatrol... $ECHO_C" >&6
7048 if test "${ac_cv_lib_mpatrol___mp_atexit+set}" = set; then
7049 echo $ECHO_N "(cached) $ECHO_C" >&6
7051 ac_check_lib_save_LIBS
=$LIBS
7052 LIBS
="-lmpatrol $LIBS"
7053 cat >conftest.
$ac_ext <<_ACEOF
7056 cat confdefs.h
>>conftest.
$ac_ext
7057 cat >>conftest.
$ac_ext <<_ACEOF
7058 /* end confdefs.h. */
7060 /* Override any gcc2 internal prototype to avoid an error. */
7064 /* We use char because int might match the return type of a gcc2
7065 builtin and then its argument prototype would still apply. */
7066 char __mp_atexit ();
7075 rm -f conftest.
$ac_objext conftest
$ac_exeext
7076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7077 (eval $ac_link) 2>conftest.er1
7079 grep -v '^ *+' conftest.er1
>conftest.err
7081 cat conftest.err
>&5
7082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7083 (exit $ac_status); } &&
7084 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7089 (exit $ac_status); }; } &&
7090 { ac_try
='test -s conftest$ac_exeext'
7091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7095 (exit $ac_status); }; }; then
7096 ac_cv_lib_mpatrol___mp_atexit
=yes
7098 echo "$as_me: failed program was:" >&5
7099 sed 's/^/| /' conftest.
$ac_ext >&5
7101 ac_cv_lib_mpatrol___mp_atexit
=no
7103 rm -f conftest.err conftest.
$ac_objext \
7104 conftest
$ac_exeext conftest.
$ac_ext
7105 LIBS
=$ac_check_lib_save_LIBS
7107 echo "$as_me:$LINENO: result: $ac_cv_lib_mpatrol___mp_atexit" >&5
7108 echo "${ECHO_T}$ac_cv_lib_mpatrol___mp_atexit" >&6
7109 if test $ac_cv_lib_mpatrol___mp_atexit = yes; then
7110 cat >>confdefs.h
<<_ACEOF
7111 #define HAVE_LIBMPATROL 1
7114 LIBS
="-lmpatrol $LIBS"
7117 { { echo "$as_me:$LINENO: error: mpatrol library is missing completely. mpatrol build will fail." >&5
7118 echo "$as_me: error: mpatrol library is missing completely. mpatrol build will fail." >&2;}
7119 { (exit 1); exit 1; }; }
7123 cat >>confdefs.h
<<\_ACEOF
7124 #define WITH_MALLOC_MPATROL 1
7127 elif test "x$withval" = "xboehm-gc" ; then
7128 echo "$as_me:$LINENO: result: boehm-gc" >&5
7129 echo "${ECHO_T}boehm-gc" >&6
7131 for ac_header
in gc
/gc.h
7133 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7134 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7135 echo "$as_me:$LINENO: checking for $ac_header" >&5
7136 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7137 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7138 echo $ECHO_N "(cached) $ECHO_C" >&6
7140 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7141 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7143 # Is the header compilable?
7144 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7145 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7146 cat >conftest.
$ac_ext <<_ACEOF
7149 cat confdefs.h
>>conftest.
$ac_ext
7150 cat >>conftest.
$ac_ext <<_ACEOF
7151 /* end confdefs.h. */
7152 $ac_includes_default
7153 #include <$ac_header>
7155 rm -f conftest.
$ac_objext
7156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7157 (eval $ac_compile) 2>conftest.er1
7159 grep -v '^ *+' conftest.er1
>conftest.err
7161 cat conftest.err
>&5
7162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7163 (exit $ac_status); } &&
7164 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7169 (exit $ac_status); }; } &&
7170 { ac_try
='test -s conftest.$ac_objext'
7171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7175 (exit $ac_status); }; }; then
7176 ac_header_compiler
=yes
7178 echo "$as_me: failed program was:" >&5
7179 sed 's/^/| /' conftest.
$ac_ext >&5
7181 ac_header_compiler
=no
7183 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7184 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7185 echo "${ECHO_T}$ac_header_compiler" >&6
7187 # Is the header present?
7188 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7189 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7190 cat >conftest.
$ac_ext <<_ACEOF
7193 cat confdefs.h
>>conftest.
$ac_ext
7194 cat >>conftest.
$ac_ext <<_ACEOF
7195 /* end confdefs.h. */
7196 #include <$ac_header>
7198 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7199 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7201 grep -v '^ *+' conftest.er1
>conftest.err
7203 cat conftest.err
>&5
7204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7205 (exit $ac_status); } >/dev
/null
; then
7206 if test -s conftest.err
; then
7207 ac_cpp_err
=$ac_c_preproc_warn_flag
7208 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
7215 if test -z "$ac_cpp_err"; then
7216 ac_header_preproc
=yes
7218 echo "$as_me: failed program was:" >&5
7219 sed 's/^/| /' conftest.
$ac_ext >&5
7221 ac_header_preproc
=no
7223 rm -f conftest.err conftest.
$ac_ext
7224 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7225 echo "${ECHO_T}$ac_header_preproc" >&6
7227 # So? What about this header?
7228 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7230 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7231 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7232 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7233 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7234 ac_header_preproc
=yes
7237 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7238 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7239 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7240 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7241 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7242 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7243 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7244 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7245 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7246 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7247 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7248 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7251 ## ---------------------------------------------- ##
7252 ## Report this to srvx-bugs@lists.sourceforge.net ##
7253 ## ---------------------------------------------- ##
7256 sed "s/^/$as_me: WARNING: /" >&2
7259 echo "$as_me:$LINENO: checking for $ac_header" >&5
7260 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7261 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7262 echo $ECHO_N "(cached) $ECHO_C" >&6
7264 eval "$as_ac_Header=\$ac_header_preproc"
7266 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7267 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7270 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7271 cat >>confdefs.h
<<_ACEOF
7272 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7276 { { echo "$as_me:$LINENO: error: Boehm GC header file missing. boehm-gc build will fail." >&5
7277 echo "$as_me: error: Boehm GC header file missing. boehm-gc build will fail." >&2;}
7278 { (exit 1); exit 1; }; }
7284 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7285 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7286 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7287 echo $ECHO_N "(cached) $ECHO_C" >&6
7289 ac_check_lib_save_LIBS
=$LIBS
7291 cat >conftest.
$ac_ext <<_ACEOF
7294 cat confdefs.h
>>conftest.
$ac_ext
7295 cat >>conftest.
$ac_ext <<_ACEOF
7296 /* end confdefs.h. */
7298 /* Override any gcc2 internal prototype to avoid an error. */
7302 /* We use char because int might match the return type of a gcc2
7303 builtin and then its argument prototype would still apply. */
7313 rm -f conftest.
$ac_objext conftest
$ac_exeext
7314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7315 (eval $ac_link) 2>conftest.er1
7317 grep -v '^ *+' conftest.er1
>conftest.err
7319 cat conftest.err
>&5
7320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7321 (exit $ac_status); } &&
7322 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7327 (exit $ac_status); }; } &&
7328 { ac_try
='test -s conftest$ac_exeext'
7329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7333 (exit $ac_status); }; }; then
7334 ac_cv_lib_dl_dlopen
=yes
7336 echo "$as_me: failed program was:" >&5
7337 sed 's/^/| /' conftest.
$ac_ext >&5
7339 ac_cv_lib_dl_dlopen
=no
7341 rm -f conftest.err conftest.
$ac_objext \
7342 conftest
$ac_exeext conftest.
$ac_ext
7343 LIBS
=$ac_check_lib_save_LIBS
7345 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7346 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7347 if test $ac_cv_lib_dl_dlopen = yes; then
7348 cat >>confdefs.h
<<_ACEOF
7349 #define HAVE_LIBDL 1
7355 { { echo "$as_me:$LINENO: error: libdl library is missing. boehm-gc build will fail." >&5
7356 echo "$as_me: error: libdl library is missing. boehm-gc build will fail." >&2;}
7357 { (exit 1); exit 1; }; }
7361 echo "$as_me:$LINENO: checking for GC_gcollect in -lgc" >&5
7362 echo $ECHO_N "checking for GC_gcollect in -lgc... $ECHO_C" >&6
7363 if test "${ac_cv_lib_gc_GC_gcollect+set}" = set; then
7364 echo $ECHO_N "(cached) $ECHO_C" >&6
7366 ac_check_lib_save_LIBS
=$LIBS
7368 cat >conftest.
$ac_ext <<_ACEOF
7371 cat confdefs.h
>>conftest.
$ac_ext
7372 cat >>conftest.
$ac_ext <<_ACEOF
7373 /* end confdefs.h. */
7375 /* Override any gcc2 internal prototype to avoid an error. */
7379 /* We use char because int might match the return type of a gcc2
7380 builtin and then its argument prototype would still apply. */
7381 char GC_gcollect ();
7390 rm -f conftest.
$ac_objext conftest
$ac_exeext
7391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7392 (eval $ac_link) 2>conftest.er1
7394 grep -v '^ *+' conftest.er1
>conftest.err
7396 cat conftest.err
>&5
7397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7398 (exit $ac_status); } &&
7399 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7404 (exit $ac_status); }; } &&
7405 { ac_try
='test -s conftest$ac_exeext'
7406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7410 (exit $ac_status); }; }; then
7411 ac_cv_lib_gc_GC_gcollect
=yes
7413 echo "$as_me: failed program was:" >&5
7414 sed 's/^/| /' conftest.
$ac_ext >&5
7416 ac_cv_lib_gc_GC_gcollect
=no
7418 rm -f conftest.err conftest.
$ac_objext \
7419 conftest
$ac_exeext conftest.
$ac_ext
7420 LIBS
=$ac_check_lib_save_LIBS
7422 echo "$as_me:$LINENO: result: $ac_cv_lib_gc_GC_gcollect" >&5
7423 echo "${ECHO_T}$ac_cv_lib_gc_GC_gcollect" >&6
7424 if test $ac_cv_lib_gc_GC_gcollect = yes; then
7425 cat >>confdefs.h
<<_ACEOF
7426 #define HAVE_LIBGC 1
7432 { { echo "$as_me:$LINENO: error: Boehm GC library is missing. boehm-gc build will fail." >&5
7433 echo "$as_me: error: Boehm GC library is missing. boehm-gc build will fail." >&2;}
7434 { (exit 1); exit 1; }; }
7438 cat >>confdefs.h
<<\_ACEOF
7439 #define WITH_MALLOC_BOEHM_GC 1
7443 { { echo "$as_me:$LINENO: error: Unknown malloc type $withval" >&5
7444 echo "$as_me: error: Unknown malloc type $withval" >&2;}
7445 { (exit 1); exit 1; }; }
7448 echo "$as_me:$LINENO: checking which protocol to use" >&5
7449 echo $ECHO_N "checking which protocol to use... $ECHO_C" >&6
7451 # Check whether --with-protocol or --without-protocol was given.
7452 if test "${with_protocol+set}" = set; then
7453 withval
="$with_protocol"
7458 if test "x$withval" = "xp10" ; then
7459 echo "$as_me:$LINENO: result: P10" >&5
7460 echo "${ECHO_T}P10" >&6
7462 cat >>confdefs.h
<<\_ACEOF
7463 #define WITH_PROTOCOL_P10 1
7466 MODULE_OBJS
="$MODULE_OBJS proto-p10.o"
7467 PROTO_FILES
=proto
-p10.c
7468 elif test "x$withval" = "xbahamut" ; then
7469 echo "$as_me:$LINENO: result: Bahamut" >&5
7470 echo "${ECHO_T}Bahamut" >&6
7472 cat >>confdefs.h
<<\_ACEOF
7473 #define WITH_PROTOCOL_BAHAMUT 1
7476 MODULE_OBJS
="$MODULE_OBJS proto-bahamut.\$(OBJEXT)"
7478 { { echo "$as_me:$LINENO: error: Unknown IRC dialect $withval" >&5
7479 echo "$as_me: error: Unknown IRC dialect $withval" >&2;}
7480 { (exit 1); exit 1; }; }
7484 # Check whether --with-getopt or --without-getopt was given.
7485 if test "${with_getopt+set}" = set; then
7486 withval
="$with_getopt"
7487 if test "$withval" = no
; then
7489 cat >>confdefs.h
<<\_ACEOF
7490 #define IGNORE_GETOPT 1
7496 echo "$as_me:$LINENO: checking whether to enable tokenization" >&5
7497 echo $ECHO_N "checking whether to enable tokenization... $ECHO_C" >&6
7498 # Check whether --enable-tokens or --disable-tokens was given.
7499 if test "${enable_tokens+set}" = set; then
7500 enableval
="$enable_tokens"
7505 if test "z$enableval" = zno
; then
7506 echo "$as_me:$LINENO: result: no" >&5
7507 echo "${ECHO_T}no" >&6
7510 cat >>confdefs.h
<<\_ACEOF
7511 #define ENABLE_TOKENS 1
7514 echo "$as_me:$LINENO: result: yes" >&5
7515 echo "${ECHO_T}yes" >&6
7518 echo "$as_me:$LINENO: checking whether to enable debug behaviors" >&5
7519 echo $ECHO_N "checking whether to enable debug behaviors... $ECHO_C" >&6
7520 # Check whether --enable-debug or --disable-debug was given.
7521 if test "${enable_debug+set}" = set; then
7522 enableval
="$enable_debug"
7524 CPPFLAGS
="$CPPFLAGS"
7525 echo "$as_me:$LINENO: result: yes" >&5
7526 echo "${ECHO_T}yes" >&6
7530 CPPFLAGS
="$CPPFLAGS -DNDEBUG"
7531 echo "$as_me:$LINENO: result: no" >&5
7532 echo "${ECHO_T}no" >&6
7536 if test -e src
; then
7537 if test ! -d src
; then
7538 { { echo "$as_me:$LINENO: error: src exists but is not a directory; please move it out of the way." >&5
7539 echo "$as_me: error: src exists but is not a directory; please move it out of the way." >&2;}
7540 { (exit 1); exit 1; }; }
7545 echo "$as_me:$LINENO: checking for extra module files" >&5
7546 echo $ECHO_N "checking for extra module files... $ECHO_C" >&6
7547 MODULE_DEFINES
="src/modules-list.h"
7548 echo > $MODULE_DEFINES
7549 touch $MODULE_DEFINES
7550 # Check whether --enable-modules or --disable-modules was given.
7551 if test "${enable_modules+set}" = set; then
7552 enableval
="$enable_modules"
7556 EXTRA_MODULE_OBJS
=""
7558 for module
in $enableval ; do
7559 module
=`echo $module | sed -e s/^mod-// -e s/\.c\$//`
7560 EXTRA_MODULE_OBJS
="$EXTRA_MODULE_OBJS mod-$module.\$(OBJEXT)"
7561 module_list
="$module_list $module"
7562 echo "WITH_MODULE($module)" >> $MODULE_DEFINES
7565 MODULE_OBJS
="$MODULE_OBJS $EXTRA_MODULE_OBJS"
7566 echo "$as_me:$LINENO: result: $module_list" >&5
7567 echo "${ECHO_T}$module_list" >&6
7571 echo "$as_me:$LINENO: result: none" >&5
7572 echo "${ECHO_T}none" >&6
7579 if test "${BROKEN_REGEX}" = yes -o "${ac_cv_func_regcomp}" = no
; then
7580 MY_SUBDIRS
="rx $MY_SUBDIRS"
7581 RX_INCLUDES
="-I../rx"
7582 RX_LIBS
="../rx/librx.a"
7584 MY_SUBDIRS
="$MY_SUBDIRS src"
7585 CFLAGS
="$CFLAGS $ANSI_SRC -W -Wall"
7586 if test "z$USE_MAINTAINER_MODE" = zyes
; then
7587 CFLAGS
="$CFLAGS -Werror"
7591 cat >>confdefs.h
<<_ACEOF
7592 #define CODENAME "${CODENAME}"
7599 ac_config_files
="$ac_config_files Makefile rx/Makefile src/Makefile"
7601 cat >confcache
<<\_ACEOF
7602 # This file is a shell script that caches the results of configure
7603 # tests run on this system so they can be shared between configure
7604 # scripts and configure runs, see configure's option --config-cache.
7605 # It is not useful on other systems. If it contains results you don't
7606 # want to keep, you may remove or edit it.
7608 # config.status only pays attention to the cache file if you give it
7609 # the --recheck option to rerun configure.
7611 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7612 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7617 # The following way of writing the cache mishandles newlines in values,
7618 # but we know of no workaround that is simple, portable, and efficient.
7619 # So, don't put newlines in cache variables' values.
7620 # Ultrix sh set writes to stderr and can't be redirected directly,
7621 # and sets the high bit in the cache file unless we assign to the vars.
7624 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7626 # `set' does not quote correctly, so add quotes (double-quote
7627 # substitution turns \\\\ into \\, and sed turns \\ into \).
7630 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7633 # `set' quotes correctly as required by POSIX, so do not add quotes.
7635 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7642 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7644 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7646 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
7647 if test -w $cache_file; then
7648 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7649 cat confcache
>$cache_file
7651 echo "not updating unwritable cache $cache_file"
7656 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
7657 # Let make expand exec_prefix.
7658 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7660 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7661 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7662 # trailing colons and then remove the whole line if VPATH becomes empty
7663 # (actually we leave an empty line to preserve line numbers).
7664 if test "x$srcdir" = x.
; then
7665 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
7666 s/:*\$(srcdir):*/:/;
7667 s/:*\${srcdir}:*/:/;
7669 s/^\([^=]*=[ ]*\):*/\1/;
7675 DEFS
=-DHAVE_CONFIG_H
7679 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
7680 # 1. Remove the extension, and $U if already installed.
7681 ac_i
=`echo "$ac_i" |
7682 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
7684 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
7685 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
7689 LTLIBOBJS
=$ac_ltlibobjs
7693 : ${CONFIG_STATUS=./config.status}
7694 ac_clean_files_save
=$ac_clean_files
7695 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
7696 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7697 echo "$as_me: creating $CONFIG_STATUS" >&6;}
7698 cat >$CONFIG_STATUS <<_ACEOF
7700 # Generated by $as_me.
7701 # Run this file to recreate the current configuration.
7702 # Compiler output produced by configure, useful for debugging
7703 # configure, is in config.log if it exists.
7708 SHELL=\${CONFIG_SHELL-$SHELL}
7711 cat >>$CONFIG_STATUS <<\_ACEOF
7712 ## --------------------- ##
7713 ## M4sh Initialization. ##
7714 ## --------------------- ##
7716 # Be Bourne compatible
7717 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
7720 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7721 # is contrary to our usage. Disable this feature.
7722 alias -g '${1+"$@"}'='"$@"'
7723 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
7726 DUALCASE
=1; export DUALCASE
# for MKS sh
7728 # Support unset when possible.
7729 if ( (MAIL
=60; unset MAIL
) || exit) >/dev
/null
2>&1; then
7736 # Work around bugs in pre-3.0 UWIN ksh.
7737 $as_unset ENV MAIL MAILPATH
7744 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7745 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7746 LC_TELEPHONE LC_TIME
7748 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7749 eval $as_var=C
; export $as_var
7755 # Required to use basename.
7756 if expr a
: '\(a\)' >/dev
/null
2>&1; then
7762 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
7763 as_basename
=basename
7769 # Name of the executable.
7770 as_me
=`$as_basename "$0" ||
7771 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7772 X"$0" : 'X\(//\)$' \| \
7773 X"$0" : 'X\(/\)$' \| \
7774 . : '\(.\)' 2>/dev/null ||
7776 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7777 /^X\/\(\/\/\)$/{ s//\1/; q; }
7778 /^X\/\(\/\).*/{ s//\1/; q; }
7782 # PATH needs CR, and LINENO needs CR and PATH.
7783 # Avoid depending upon Character Ranges.
7784 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
7785 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7786 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
7787 as_cr_digits
='0123456789'
7788 as_cr_alnum
=$as_cr_Letters$as_cr_digits
7790 # The user is always right.
7791 if test "${PATH_SEPARATOR+set}" != set; then
7792 echo "#! /bin/sh" >conf$$.sh
7793 echo "exit 0" >>conf$$.sh
7795 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
7806 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
7807 test "x$as_lineno_1" != "x$as_lineno_2" &&
7808 test "x$as_lineno_3" = "x$as_lineno_2" || {
7809 # Find who we are. Look in the path if we contain no path at all
7812 *[\\/]* ) as_myself
=$0 ;;
7813 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7817 test -z "$as_dir" && as_dir
=.
7818 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
7823 # We did not find ourselves, most probably we were run as `sh COMMAND'
7824 # in which case we are not to be found in the path.
7825 if test "x$as_myself" = x
; then
7828 if test ! -f "$as_myself"; then
7829 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7830 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7831 { (exit 1); exit 1; }; }
7833 case $CONFIG_SHELL in
7835 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7836 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
7839 test -z "$as_dir" && as_dir
=.
7840 for as_base
in sh bash ksh sh5
; do
7843 if ("$as_dir/$as_base" -c '
7846 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7847 test "x$as_lineno_1" != "x$as_lineno_2" &&
7848 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
7849 $as_unset BASH_ENV
|| test "${BASH_ENV+set}" != set || { BASH_ENV
=; export BASH_ENV
; }
7850 $as_unset ENV
|| test "${ENV+set}" != set || { ENV
=; export ENV
; }
7851 CONFIG_SHELL
=$as_dir/$as_base
7853 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7861 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7862 # uniformly replaced by the line number. The first 'sed' inserts a
7863 # line-number line before each line; the second 'sed' does the real
7864 # work. The second script uses 'N' to pair each line-number line
7865 # with the numbered line, and appends trailing '-' during
7866 # substitution so that $LINENO is not a special case at line end.
7867 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7868 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
7869 sed '=' <$as_myself |
7874 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7877 s,^['$as_cr_digits']*\n,,
7879 chmod +x
$as_me.lineno
||
7880 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7881 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7882 { (exit 1); exit 1; }; }
7884 # Don't try to exec as it changes $[0], causing all sort of problems
7885 # (the dirname of $[0] is not the place where we might find the
7886 # original and so on. Autoconf is especially sensible to this).
7888 # Exit status is that of the last command.
7893 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7894 *c
*,-n*) ECHO_N
= ECHO_C
='
7896 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
7897 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
7900 if expr a
: '\(a\)' >/dev
/null
2>&1; then
7906 rm -f conf$$ conf$$.exe conf$$.
file
7908 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
7909 # We could just check for DJGPP; but this test a) works b) is more generic
7910 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7911 if test -f conf$$.exe
; then
7912 # Don't use ln at all; we don't have any links
7917 elif ln conf$$.
file conf$$
2>/dev
/null
; then
7922 rm -f conf$$ conf$$.exe conf$$.
file
7924 if mkdir -p .
2>/dev
/null
; then
7927 test -d .
/-p && rmdir .
/-p
7931 as_executable_p
="test -f"
7933 # Sed expression to map a string onto a valid CPP name.
7934 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7936 # Sed expression to map a string onto a valid variable name.
7937 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7941 # We need space, tab and new line, in precisely that order.
7951 # Open the log real soon, to keep \$[0] and so on meaningful, and to
7952 # report actual input values of CONFIG_FILES etc. instead of their
7953 # values after options handling. Logging --version etc. is OK.
7957 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7958 ## Running $as_me. ##
7963 This file was extended by srvx $as_me 1.3, which was
7964 generated by GNU Autoconf 2.59. Invocation command line was
7966 CONFIG_FILES = $CONFIG_FILES
7967 CONFIG_HEADERS = $CONFIG_HEADERS
7968 CONFIG_LINKS = $CONFIG_LINKS
7969 CONFIG_COMMANDS = $CONFIG_COMMANDS
7973 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7977 # Files that config.status was made for.
7978 if test -n "$ac_config_files"; then
7979 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7982 if test -n "$ac_config_headers"; then
7983 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7986 if test -n "$ac_config_links"; then
7987 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7990 if test -n "$ac_config_commands"; then
7991 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7994 cat >>$CONFIG_STATUS <<\_ACEOF
7997 \`$as_me' instantiates files from templates according to the
7998 current configuration.
8000 Usage: $0 [OPTIONS] [FILE]...
8002 -h, --help print this help, then exit
8003 -V, --version print version number, then exit
8004 -q, --quiet do not print progress messages
8005 -d, --debug don't remove temporary files
8006 --recheck update $as_me by reconfiguring in the same conditions
8007 --file=FILE[:TEMPLATE]
8008 instantiate the configuration file FILE
8009 --header=FILE[:TEMPLATE]
8010 instantiate the configuration header FILE
8012 Configuration files:
8015 Configuration headers:
8018 Report bugs to <bug-autoconf@gnu.org>."
8021 cat >>$CONFIG_STATUS <<_ACEOF
8023 srvx config.status 1.3
8024 configured by $0, generated by GNU Autoconf 2.59,
8025 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8027 Copyright (C) 2003 Free Software Foundation, Inc.
8028 This config.status script is free software; the Free Software Foundation
8029 gives unlimited permission to copy, distribute and modify it."
8034 cat >>$CONFIG_STATUS <<\_ACEOF
8035 # If no file are specified by the user, then we need to provide default
8036 # value. By we need to know if files were specified by the user.
8042 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
8043 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
8051 *) # This is not an option, so the user has probably given explicit
8054 ac_need_defaults
=false
;;
8058 # Handling of the options.
8060 cat >>$CONFIG_STATUS <<\_ACEOF
8061 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8063 --version | --vers* | -V )
8064 echo "$ac_cs_version"; exit 0 ;;
8066 # Conflict between --help and --header
8067 { { echo "$as_me:$LINENO: error: ambiguous option: $1
8068 Try \`$0 --help' for more information." >&5
8069 echo "$as_me: error: ambiguous option: $1
8070 Try \`$0 --help' for more information." >&2;}
8071 { (exit 1); exit 1; }; };;
8072 --help | --hel | -h )
8073 echo "$ac_cs_usage"; exit 0 ;;
8074 --debug | --d* | -d )
8076 --file | --fil | --fi | --f )
8078 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
8079 ac_need_defaults
=false
;;
8080 --header | --heade | --head | --hea )
8082 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
8083 ac_need_defaults
=false
;;
8084 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8085 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8089 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
8090 Try \`$0 --help' for more information." >&5
8091 echo "$as_me: error: unrecognized option: $1
8092 Try \`$0 --help' for more information." >&2;}
8093 { (exit 1); exit 1; }; } ;;
8095 *) ac_config_targets
="$ac_config_targets $1" ;;
8101 ac_configure_extra_args
=
8103 if $ac_cs_silent; then
8105 ac_configure_extra_args
="$ac_configure_extra_args --silent"
8109 cat >>$CONFIG_STATUS <<_ACEOF
8110 if \$ac_cs_recheck; then
8111 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
8112 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8121 cat >>$CONFIG_STATUS <<\_ACEOF
8122 for ac_config_target
in $ac_config_targets
8124 case "$ac_config_target" in
8125 # Handling of arguments.
8126 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
8127 "rx/Makefile" ) CONFIG_FILES
="$CONFIG_FILES rx/Makefile" ;;
8128 "src/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
8129 "src/config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h" ;;
8130 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8131 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8132 { (exit 1); exit 1; }; };;
8136 # If the user did not use the arguments to specify the items to instantiate,
8137 # then the envvar interface is used. Set only those that are not.
8138 # We use the long form for the default assignment because of an extremely
8139 # bizarre bug on SunOS 4.1.3.
8140 if $ac_need_defaults; then
8141 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
8142 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
8145 # Have a temporary directory for convenience. Make it in the build tree
8146 # simply because there is no reason to put it here, and in addition,
8147 # creating and moving files from /tmp can sometimes cause problems.
8148 # Create a temporary directory, and hook for its removal unless debugging.
8151 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8152 trap '{ (exit 1); exit 1; }' 1 2 13 15
8155 # Create a (secure) tmp directory for tmp files.
8158 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
8159 test -n "$tmp" && test -d "$tmp"
8162 tmp
=.
/confstat$$
-$RANDOM
8163 (umask 077 && mkdir $tmp)
8166 echo "$me: cannot create a temporary directory in ." >&2
8167 { (exit 1); exit 1; }
8172 cat >>$CONFIG_STATUS <<_ACEOF
8175 # CONFIG_FILES section.
8178 # No need to generate the scripts if there are no CONFIG_FILES.
8179 # This happens for instance when ./config.status config.h
8180 if test -n "\$CONFIG_FILES"; then
8181 # Protect against being on the right side of a sed subst in config.status.
8182 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
8183 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
8184 s,@SHELL@,$SHELL,;t t
8185 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8186 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
8187 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
8188 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
8189 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
8190 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
8191 s,@exec_prefix@,$exec_prefix,;t t
8192 s,@prefix@,$prefix,;t t
8193 s,@program_transform_name@,$program_transform_name,;t t
8194 s,@bindir@,$bindir,;t t
8195 s,@sbindir@,$sbindir,;t t
8196 s,@libexecdir@,$libexecdir,;t t
8197 s,@datadir@,$datadir,;t t
8198 s,@sysconfdir@,$sysconfdir,;t t
8199 s,@sharedstatedir@,$sharedstatedir,;t t
8200 s,@localstatedir@,$localstatedir,;t t
8201 s,@libdir@,$libdir,;t t
8202 s,@includedir@,$includedir,;t t
8203 s,@oldincludedir@,$oldincludedir,;t t
8204 s,@infodir@,$infodir,;t t
8205 s,@mandir@,$mandir,;t t
8206 s,@build_alias@,$build_alias,;t t
8207 s,@host_alias@,$host_alias,;t t
8208 s,@target_alias@,$target_alias,;t t
8210 s,@ECHO_C@,$ECHO_C,;t t
8211 s,@ECHO_N@,$ECHO_N,;t t
8212 s,@ECHO_T@,$ECHO_T,;t t
8214 s,@build@,$build,;t t
8215 s,@build_cpu@,$build_cpu,;t t
8216 s,@build_vendor@,$build_vendor,;t t
8217 s,@build_os@,$build_os,;t t
8219 s,@host_cpu@,$host_cpu,;t t
8220 s,@host_vendor@,$host_vendor,;t t
8221 s,@host_os@,$host_os,;t t
8222 s,@target@,$target,;t t
8223 s,@target_cpu@,$target_cpu,;t t
8224 s,@target_vendor@,$target_vendor,;t t
8225 s,@target_os@,$target_os,;t t
8226 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
8227 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
8228 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
8229 s,@PACKAGE@,$PACKAGE,;t t
8230 s,@VERSION@,$VERSION,;t t
8231 s,@ACLOCAL@,$ACLOCAL,;t t
8232 s,@AUTOCONF@,$AUTOCONF,;t t
8233 s,@AUTOMAKE@,$AUTOMAKE,;t t
8234 s,@AUTOHEADER@,$AUTOHEADER,;t t
8235 s,@MAKEINFO@,$MAKEINFO,;t t
8236 s,@SET_MAKE@,$SET_MAKE,;t t
8237 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
8238 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
8239 s,@MAINT@,$MAINT,;t t
8241 s,@CFLAGS@,$CFLAGS,;t t
8242 s,@LDFLAGS@,$LDFLAGS,;t t
8243 s,@CPPFLAGS@,$CPPFLAGS,;t t
8244 s,@ac_ct_CC@,$ac_ct_CC,;t t
8245 s,@EXEEXT@,$EXEEXT,;t t
8246 s,@OBJEXT@,$OBJEXT,;t t
8248 s,@RANLIB@,$RANLIB,;t t
8249 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
8252 s,@EGREP@,$EGREP,;t t
8253 s,@ALLOCA@,$ALLOCA,;t t
8254 s,@MODULE_OBJS@,$MODULE_OBJS,;t t
8255 s,@MY_SUBDIRS@,$MY_SUBDIRS,;t t
8256 s,@RX_INCLUDES@,$RX_INCLUDES,;t t
8257 s,@RX_LIBS@,$RX_LIBS,;t t
8258 s,@LIBOBJS@,$LIBOBJS,;t t
8259 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
8264 cat >>$CONFIG_STATUS <<\_ACEOF
8265 # Split the substitutions into bite-sized pieces for seds with
8266 # small command number limits, like on Digital OSF/1 and HP-UX.
8268 ac_sed_frag
=1 # Number of current file.
8269 ac_beg
=1 # First line for current file.
8270 ac_end
=$ac_max_sed_lines # Line after last line for current file.
8273 while $ac_more_lines; do
8274 if test $ac_beg -gt 1; then
8275 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
8277 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
8279 if test ! -s $tmp/subs.frag
; then
8282 # The purpose of the label and of the branching condition is to
8283 # speed up the sed processing (if there are no `@' at all, there
8284 # is no need to browse any of the substitutions).
8285 # These are the two extra sed commands mentioned above.
8287 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs
-$ac_sed_frag.
sed
8288 if test -z "$ac_sed_cmds"; then
8289 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
8291 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8293 ac_sed_frag
=`expr $ac_sed_frag + 1`
8295 ac_end
=`expr $ac_end + $ac_max_sed_lines`
8298 if test -z "$ac_sed_cmds"; then
8301 fi # test -n "$CONFIG_FILES"
8304 cat >>$CONFIG_STATUS <<\_ACEOF
8305 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
8306 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8308 - | *:- | *:-:* ) # input from stdin
8310 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
8311 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
8312 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
8313 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
8314 * ) ac_file_in
=$ac_file.
in ;;
8317 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
8318 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
8319 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8320 X"$ac_file" : 'X\(//\)[^/]' \| \
8321 X"$ac_file" : 'X\(//\)$' \| \
8322 X"$ac_file" : 'X\(/\)' \| \
8323 . : '\(.\)' 2>/dev/null ||
8325 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8326 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8327 /^X\(\/\/\)$/{ s//\1/; q; }
8328 /^X\(\/\).*/{ s//\1/; q; }
8330 { if $as_mkdir_p; then
8335 while test ! -d "$as_dir"; do
8336 as_dirs
="$as_dir $as_dirs"
8337 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
8338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8339 X"$as_dir" : 'X\(//\)[^/]' \| \
8340 X"$as_dir" : 'X\(//\)$' \| \
8341 X"$as_dir" : 'X\(/\)' \| \
8342 . : '\(.\)' 2>/dev/null ||
8344 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8345 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8346 /^X\(\/\/\)$/{ s//\1/; q; }
8347 /^X\(\/\).*/{ s//\1/; q; }
8350 test ! -n "$as_dirs" || mkdir $as_dirs
8351 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8352 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8353 { (exit 1); exit 1; }; }; }
8357 if test "$ac_dir" != .
; then
8358 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8359 # A "../" for each directory in $ac_dir_suffix.
8360 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8362 ac_dir_suffix
= ac_top_builddir
=
8366 .
) # No --srcdir option. We are building in place.
8368 if test -z "$ac_top_builddir"; then
8371 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
8373 [\\/]* | ?
:[\\/]* ) # Absolute path.
8374 ac_srcdir
=$srcdir$ac_dir_suffix;
8375 ac_top_srcdir
=$srcdir ;;
8377 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
8378 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
8381 # Do not use `cd foo && pwd` to compute absolute paths, because
8382 # the directories may not exist.
8384 .
) ac_abs_builddir
="$ac_dir";;
8387 .
) ac_abs_builddir
=`pwd`;;
8388 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
8389 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
8392 case $ac_abs_builddir in
8393 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
8395 case ${ac_top_builddir}.
in
8396 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
8397 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
8398 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
8401 case $ac_abs_builddir in
8402 .
) ac_abs_srcdir
=$ac_srcdir;;
8405 .
) ac_abs_srcdir
=$ac_abs_builddir;;
8406 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
8407 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
8410 case $ac_abs_builddir in
8411 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
8413 case $ac_top_srcdir in
8414 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
8415 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
8416 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
8422 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
8423 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
8426 # Let's still pretend it is `configure' which instantiates (i.e., don't
8427 # use $as_me), people would be surprised to read:
8428 # /* config.h. Generated by config.status. */
8429 if test x
"$ac_file" = x
-; then
8432 configure_input
="$ac_file. "
8434 configure_input
=$configure_input"Generated from `echo $ac_file_in |
8435 sed 's,.*/,,'` by configure."
8437 # First look for the input files in the build tree, otherwise in the
8439 ac_file_inputs
=`IFS=:
8440 for f in $ac_file_in; do
8442 -) echo $tmp/stdin ;;
8444 # Absolute (can't be DOS-style, as IFS=:)
8445 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8446 echo "$as_me: error: cannot find input file: $f" >&2;}
8447 { (exit 1); exit 1; }; }
8450 if test -f "$f"; then
8453 elif test -f "$srcdir/$f"; then
8458 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8459 echo "$as_me: error: cannot find input file: $f" >&2;}
8460 { (exit 1); exit 1; }; }
8463 done` || { (exit 1); exit 1; }
8465 if test x
"$ac_file" != x
-; then
8466 { echo "$as_me:$LINENO: creating $ac_file" >&5
8467 echo "$as_me: creating $ac_file" >&6;}
8471 cat >>$CONFIG_STATUS <<_ACEOF
8475 cat >>$CONFIG_STATUS <<\_ACEOF
8477 /@
[a
-zA-Z_][a
-zA-Z_0-9]*@
/!b
8478 s
,@configure_input@
,$configure_input,;t t
8479 s
,@srcdir@
,$ac_srcdir,;t t
8480 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
8481 s
,@top_srcdir@
,$ac_top_srcdir,;t t
8482 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
8483 s
,@builddir@
,$ac_builddir,;t t
8484 s
,@abs_builddir@
,$ac_abs_builddir,;t t
8485 s
,@top_builddir@
,$ac_top_builddir,;t t
8486 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
8487 s
,@INSTALL@
,$ac_INSTALL,;t t
8488 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
8490 if test x"$ac_file" != x-; then
8491 mv $tmp/out $ac_file
8499 cat >>$CONFIG_STATUS <<\_ACEOF
8502 # CONFIG_HEADER section.
8505 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
8506 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8508 # ac_d sets the value in "#define NAME VALUE" lines.
8509 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8510 ac_dB
='[ ].*$,\1#\2'
8513 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8514 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8515 ac_uB
='$,\1#\2define\3'
8519 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
8520 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8522 - | *:- | *:-:* ) # input from stdin
8524 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
8525 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
8526 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
8527 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
8528 * ) ac_file_in
=$ac_file.
in ;;
8531 test x
"$ac_file" != x
- && { echo "$as_me:$LINENO: creating $ac_file" >&5
8532 echo "$as_me: creating $ac_file" >&6;}
8534 # First look for the input files in the build tree, otherwise in the
8536 ac_file_inputs
=`IFS=:
8537 for f in $ac_file_in; do
8539 -) echo $tmp/stdin ;;
8541 # Absolute (can't be DOS-style, as IFS=:)
8542 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8543 echo "$as_me: error: cannot find input file: $f" >&2;}
8544 { (exit 1); exit 1; }; }
8545 # Do quote $f, to prevent DOS paths from being IFS'd.
8548 if test -f "$f"; then
8551 elif test -f "$srcdir/$f"; then
8556 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8557 echo "$as_me: error: cannot find input file: $f" >&2;}
8558 { (exit 1); exit 1; }; }
8561 done` || { (exit 1); exit 1; }
8562 # Remove the trailing spaces.
8563 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
8567 # Transform confdefs.h into two sed scripts, `conftest.defines' and
8568 # `conftest.undefs', that substitutes the proper values into
8569 # config.h.in to produce config.h. The first handles `#define'
8570 # templates, and the second `#undef' templates.
8571 # And first: Protect against being on the right side of a sed subst in
8572 # config.status. Protect against being in an unquoted here document
8574 rm -f conftest.defines conftest.undefs
8575 # Using a here document instead of a string reduces the quoting nightmare.
8576 # Putting comments in sed scripts is not portable.
8578 # `end' is used to avoid that the second main sed command (meant for
8579 # 0-ary CPP macros) applies to n-ary macro definitions.
8580 # See the Autoconf documentation for `clear'.
8581 cat >confdef2sed.
sed <<\_ACEOF
8586 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
8588 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8591 # If some macros were called several times there might be several times
8592 # the same #defines, which is useless. Nevertheless, we may not want to
8593 # sort them, since we want the *last* AC-DEFINE to be honored.
8594 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
8595 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
8596 rm -f confdef2sed.sed
8598 # This sed command replaces #undef with comments. This is necessary, for
8599 # example, in the case of _POSIX_SOURCE, which is predefined and required
8600 # on some systems where configure will not decide to define it.
8601 cat >>conftest.undefs <<\_ACEOF
8602 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8605 # Break up conftest.defines because some shells have a limit on the size
8606 # of here documents, and old seds have small limits too (100 cmds).
8607 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
8608 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8609 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8610 echo ' :' >>$CONFIG_STATUS
8612 while grep . conftest.defines >/dev/null
8614 # Write a limited-size here document to $tmp/defines.sed.
8615 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
8616 # Speed up: don't consider the non `#define' lines.
8617 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
8618 # Work around the forget-to-reset-the-flag bug.
8619 echo 't clr' >>$CONFIG_STATUS
8620 echo ': clr' >>$CONFIG_STATUS
8621 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
8623 sed -f $tmp/defines.sed $tmp/in >$tmp/out
8627 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
8628 rm -f conftest.defines
8629 mv conftest.
tail conftest.defines
8631 rm -f conftest.defines
8632 echo ' fi # grep' >>$CONFIG_STATUS
8633 echo >>$CONFIG_STATUS
8635 # Break up conftest.undefs because some shells have a limit on the size
8636 # of here documents, and old seds have small limits too (100 cmds).
8637 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
8639 while grep . conftest.undefs
>/dev
/null
8641 # Write a limited-size here document to $tmp/undefs.sed.
8642 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
8643 # Speed up: don't consider the non
`#undef'
8644 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
8645 # Work around the forget-to-reset-the-flag bug.
8646 echo 't clr' >>$CONFIG_STATUS
8647 echo ': clr' >>$CONFIG_STATUS
8648 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
8650 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
8654 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
8655 rm -f conftest.undefs
8656 mv conftest.tail conftest.undefs
8658 rm -f conftest.undefs
8660 cat >>$CONFIG_STATUS <<\_ACEOF
8661 # Let's still pretend it is `configure
' which instantiates (i.e., don't
8662 # use $as_me), people would be surprised to read:
8663 # /* config.h. Generated by config.status. */
8664 if test x
"$ac_file" = x
-; then
8665 echo "/* Generated by configure. */" >$tmp/config.h
8667 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
8669 cat $tmp/in >>$tmp/config.h
8671 if test x
"$ac_file" != x
-; then
8672 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
8673 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8674 echo "$as_me: $ac_file is unchanged" >&6;}
8676 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
8677 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8678 X"$ac_file" : 'X\(//\)[^/]' \| \
8679 X"$ac_file" : 'X\(//\)$' \| \
8680 X"$ac_file" : 'X\(/\)' \| \
8681 . : '\(.\)' 2>/dev/null ||
8683 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8684 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8685 /^X\(\/\/\)$/{ s//\1/; q; }
8686 /^X\(\/\).*/{ s//\1/; q; }
8688 { if $as_mkdir_p; then
8693 while test ! -d "$as_dir"; do
8694 as_dirs
="$as_dir $as_dirs"
8695 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
8696 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8697 X"$as_dir" : 'X\(//\)[^/]' \| \
8698 X"$as_dir" : 'X\(//\)$' \| \
8699 X"$as_dir" : 'X\(/\)' \| \
8700 . : '\(.\)' 2>/dev/null ||
8702 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8703 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8704 /^X\(\/\/\)$/{ s//\1/; q; }
8705 /^X\(\/\).*/{ s//\1/; q; }
8708 test ! -n "$as_dirs" || mkdir $as_dirs
8709 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8710 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8711 { (exit 1); exit 1; }; }; }
8714 mv $tmp/config.h
$ac_file
8723 cat >>$CONFIG_STATUS <<\_ACEOF
8725 { (exit 0); exit 0; }
8727 chmod +x
$CONFIG_STATUS
8728 ac_clean_files
=$ac_clean_files_save
8731 # configure is writing to config.log, and then calls config.status.
8732 # config.status does its own redirection, appending to config.log.
8733 # Unfortunately, on DOS this fails, as config.log is still kept open
8734 # by configure, so config.status won't be able to write to it; its
8735 # output is simply discarded. So we exec the FD to /dev/null,
8736 # effectively closing config.log, so it can be properly (re)opened and
8737 # appended to by config.status. When coming back to configure, we
8738 # need to make the FD available again.
8739 if test "$no_create" != yes; then
8741 ac_config_status_args
=
8742 test "$silent" = yes &&
8743 ac_config_status_args
="$ac_config_status_args --quiet"
8745 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
8747 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8748 # would make configure fail if this is the last instruction.
8749 $ac_cs_success || { (exit 1); exit 1; }