]> jfr.im git - irc/evilnet/x3.git/blame - configure
now works with OREGISTER. Email required must be set on. Accounts registered with...
[irc/evilnet/x3.git] / configure
CommitLineData
b3076f16
AS
1#! /bin/sh
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.
5#
6# Report bugs to <srvx-bugs@lists.sourceforge.net>.
7#
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## --------------------- ##
14
15# Be Bourne compatible
16if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
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+"$@"}'='"$@"'
22elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23 set -o posix
24fi
25DUALCASE=1; export DUALCASE # for MKS sh
26
27# Support unset when possible.
28if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29 as_unset=unset
30else
31 as_unset=false
32fi
33
34
35# Work around bugs in pre-3.0 UWIN ksh.
36$as_unset ENV MAIL MAILPATH
37PS1='$ '
38PS2='> '
39PS4='+ '
40
41# NLS nuisances.
42for as_var in \
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 \
45 LC_TELEPHONE LC_TIME
46do
47 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
48 eval $as_var=C; export $as_var
49 else
50 $as_unset $as_var
51 fi
52done
53
54# Required to use basename.
55if expr a : '\(a\)' >/dev/null 2>&1; then
56 as_expr=expr
57else
58 as_expr=false
59fi
60
61if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62 as_basename=basename
63else
64 as_basename=false
65fi
66
67
68# Name of the executable.
69as_me=`$as_basename "$0" ||
70$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71 X"$0" : 'X\(//\)$' \| \
72 X"$0" : 'X\(/\)$' \| \
73 . : '\(.\)' 2>/dev/null ||
74echo X/"$0" |
75 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76 /^X\/\(\/\/\)$/{ s//\1/; q; }
77 /^X\/\(\/\).*/{ s//\1/; q; }
78 s/.*/./; q'`
79
80
81# PATH needs CR, and LINENO needs CR and PATH.
82# Avoid depending upon Character Ranges.
83as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86as_cr_digits='0123456789'
87as_cr_alnum=$as_cr_Letters$as_cr_digits
88
89# The user is always right.
90if test "${PATH_SEPARATOR+set}" != set; then
91 echo "#! /bin/sh" >conf$$.sh
92 echo "exit 0" >>conf$$.sh
93 chmod +x conf$$.sh
94 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
95 PATH_SEPARATOR=';'
96 else
97 PATH_SEPARATOR=:
98 fi
99 rm -f conf$$.sh
100fi
101
102
103 as_lineno_1=$LINENO
104 as_lineno_2=$LINENO
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
109 # relative or not.
110 case $0 in
111 *[\\/]* ) as_myself=$0 ;;
112 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113for as_dir in $PATH
114do
115 IFS=$as_save_IFS
116 test -z "$as_dir" && as_dir=.
117 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
118done
119
120 ;;
121 esac
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
125 as_myself=$0
126 fi
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; }; }
130 fi
131 case $CONFIG_SHELL in
132 '')
133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135do
136 IFS=$as_save_IFS
137 test -z "$as_dir" && as_dir=.
138 for as_base in sh bash ksh sh5; do
139 case $as_dir in
140 /*)
141 if ("$as_dir/$as_base" -c '
142 as_lineno_1=$LINENO
143 as_lineno_2=$LINENO
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
150 export CONFIG_SHELL
151 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
152 fi;;
153 esac
154 done
155done
156;;
157 esac
158
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 |
168 sed '
169 N
170 s,$,-,
171 : loop
172 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173 t loop
174 s,-$,,
175 s,^['$as_cr_digits']*\n,,
176 ' >$as_me.lineno &&
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; }; }
180
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).
184 . ./$as_me.lineno
185 # Exit status is that of the last command.
186 exit
187}
188
189
190case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191 *c*,-n*) ECHO_N= ECHO_C='
192' ECHO_T=' ' ;;
193 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
194 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
195esac
196
197if expr a : '\(a\)' >/dev/null 2>&1; then
198 as_expr=expr
199else
200 as_expr=false
201fi
202
203rm -f conf$$ conf$$.exe conf$$.file
204echo >conf$$.file
205if 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
210 as_ln_s='cp -p'
211 else
212 as_ln_s='ln -s'
213 fi
214elif ln conf$$.file conf$$ 2>/dev/null; then
215 as_ln_s=ln
216else
217 as_ln_s='cp -p'
218fi
219rm -f conf$$ conf$$.exe conf$$.file
220
221if mkdir -p . 2>/dev/null; then
222 as_mkdir_p=:
223else
224 test -d ./-p && rmdir ./-p
225 as_mkdir_p=false
226fi
227
228as_executable_p="test -f"
229
230# Sed expression to map a string onto a valid CPP name.
231as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232
233# Sed expression to map a string onto a valid variable name.
234as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235
236
237# IFS
238# We need space, tab and new line, in precisely that order.
239as_nl='
240'
241IFS=" $as_nl"
242
243# CDPATH.
244$as_unset CDPATH
245
246
247# Name of the host.
248# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
249# so uname gets run too.
250ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
251
252exec 6>&1
253
254#
255# Initializations.
256#
257ac_default_prefix=/usr/local
258ac_config_libobj_dir=.
259cross_compiling=no
260subdirs=
261MFLAGS=
262MAKEFLAGS=
263SHELL=${CONFIG_SHELL-/bin/sh}
264
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}
269
270# Identity of this package.
271PACKAGE_NAME='srvx'
272PACKAGE_TARNAME='srvx'
273PACKAGE_VERSION='1.3'
274PACKAGE_STRING='srvx 1.3'
275PACKAGE_BUGREPORT='srvx-bugs@lists.sourceforge.net'
276
277ac_unique_file="src/opserv.c"
278# Factoring default headers for most tests.
279ac_includes_default="\
280#include <stdio.h>
281#if HAVE_SYS_TYPES_H
282# include <sys/types.h>
283#endif
284#if HAVE_SYS_STAT_H
285# include <sys/stat.h>
286#endif
287#if STDC_HEADERS
288# include <stdlib.h>
289# include <stddef.h>
290#else
291# if HAVE_STDLIB_H
292# include <stdlib.h>
293# endif
294#endif
295#if HAVE_STRING_H
296# if !STDC_HEADERS && HAVE_MEMORY_H
297# include <memory.h>
298# endif
299# include <string.h>
300#endif
301#if HAVE_STRINGS_H
302# include <strings.h>
303#endif
304#if HAVE_INTTYPES_H
305# include <inttypes.h>
306#else
307# if HAVE_STDINT_H
308# include <stdint.h>
309# endif
310#endif
311#if HAVE_UNISTD_H
312# include <unistd.h>
313#endif"
314
b2cf3d66 315ac_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'
b3076f16
AS
316ac_subst_files=''
317
318# Initialize some variables set by options.
319ac_init_help=
320ac_init_version=false
321# The variables have the same names as the options, with
322# dashes changed to underlines.
323cache_file=/dev/null
324exec_prefix=NONE
325no_create=
326no_recursion=
327prefix=NONE
328program_prefix=NONE
329program_suffix=NONE
330program_transform_name=s,x,x,
331silent=
332site=
333srcdir=
334verbose=
335x_includes=NONE
336x_libraries=NONE
337
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.
343bindir='${exec_prefix}/bin'
344sbindir='${exec_prefix}/sbin'
345libexecdir='${exec_prefix}/libexec'
346datadir='${prefix}/share'
347sysconfdir='${prefix}/etc'
348sharedstatedir='${prefix}/com'
349localstatedir='${prefix}/var'
350libdir='${exec_prefix}/lib'
351includedir='${prefix}/include'
352oldincludedir='/usr/include'
353infodir='${prefix}/info'
354mandir='${prefix}/man'
355
356ac_prev=
357for ac_option
358do
359 # If the previous option needs an argument, assign it.
360 if test -n "$ac_prev"; then
361 eval "$ac_prev=\$ac_option"
362 ac_prev=
363 continue
364 fi
365
366 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
367
368 # Accept the important Cygnus configure options, so we can diagnose typos.
369
370 case $ac_option in
371
372 -bindir | --bindir | --bindi | --bind | --bin | --bi)
373 ac_prev=bindir ;;
374 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
375 bindir=$ac_optarg ;;
376
377 -build | --build | --buil | --bui | --bu)
378 ac_prev=build_alias ;;
379 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
380 build_alias=$ac_optarg ;;
381
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 ;;
388
389 --config-cache | -C)
390 cache_file=config.cache ;;
391
392 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
393 ac_prev=datadir ;;
394 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
395 | --da=*)
396 datadir=$ac_optarg ;;
397
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" ;;
406
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'`
414 case $ac_option in
415 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
416 *) ac_optarg=yes ;;
417 esac
418 eval "enable_$ac_feature='$ac_optarg'" ;;
419
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 ;;
428
429 -gas | --gas | --ga | --g)
430 # Obsolete; use --with-gas.
431 with_gas=yes ;;
432
433 -help | --help | --hel | --he | -h)
434 ac_init_help=long ;;
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 ;;
439
440 -host | --host | --hos | --ho)
441 ac_prev=host_alias ;;
442 -host=* | --host=* | --hos=* | --ho=*)
443 host_alias=$ac_optarg ;;
444
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 ;;
451
452 -infodir | --infodir | --infodi | --infod | --info | --inf)
453 ac_prev=infodir ;;
454 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
455 infodir=$ac_optarg ;;
456
457 -libdir | --libdir | --libdi | --libd)
458 ac_prev=libdir ;;
459 -libdir=* | --libdir=* | --libdi=* | --libd=*)
460 libdir=$ac_optarg ;;
461
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 ;;
468
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 ;;
477
478 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
479 ac_prev=mandir ;;
480 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
481 mandir=$ac_optarg ;;
482
483 -nfp | --nfp | --nf)
484 # Obsolete; use --without-fp.
485 with_fp=no ;;
486
487 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
488 | --no-cr | --no-c | -n)
489 no_create=yes ;;
490
491 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
492 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
493 no_recursion=yes ;;
494
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 ;;
503
504 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
505 ac_prev=prefix ;;
506 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
507 prefix=$ac_optarg ;;
508
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 ;;
515
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 ;;
522
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 ;;
539
540 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
541 | -silent | --silent | --silen | --sile | --sil)
542 silent=yes ;;
543
544 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
545 ac_prev=sbindir ;;
546 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
547 | --sbi=* | --sb=*)
548 sbindir=$ac_optarg ;;
549
550 -sharedstatedir | --sharedstatedir | --sharedstatedi \
551 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
552 | --sharedst | --shareds | --shared | --share | --shar \
553 | --sha | --sh)
554 ac_prev=sharedstatedir ;;
555 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
556 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
557 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
558 | --sha=* | --sh=*)
559 sharedstatedir=$ac_optarg ;;
560
561 -site | --site | --sit)
562 ac_prev=site ;;
563 -site=* | --site=* | --sit=*)
564 site=$ac_optarg ;;
565
566 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
567 ac_prev=srcdir ;;
568 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
569 srcdir=$ac_optarg ;;
570
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 ;;
577
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 ;;
582
583 -v | -verbose | --verbose | --verbos | --verbo | --verb)
584 verbose=yes ;;
585
586 -version | --version | --versio | --versi | --vers | -V)
587 ac_init_version=: ;;
588
589 -with-* | --with-*)
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'`
596 case $ac_option in
597 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
598 *) ac_optarg=yes ;;
599 esac
600 eval "with_$ac_package='$ac_optarg'" ;;
601
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" ;;
610
611 --x)
612 # Obsolete; use --with-x.
613 with_x=yes ;;
614
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 ;;
621
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 ;;
628
629 -*) { echo "$as_me: error: unrecognized option: $ac_option
630Try \`$0 --help' for more information." >&2
631 { (exit 1); exit 1; }; }
632 ;;
633
634 *=*)
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'"
642 export $ac_envvar ;;
643
644 *)
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}
650 ;;
651
652 esac
653done
654
655if 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; }; }
659fi
660
661# Be sure to have absolute paths.
662for ac_var in exec_prefix prefix
663do
664 eval ac_val=$`echo $ac_var`
665 case $ac_val in
666 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
667 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
668 { (exit 1); exit 1; }; };;
669 esac
670done
671
672# Be sure to have absolute paths.
673for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
674 localstatedir libdir includedir oldincludedir infodir mandir
675do
676 eval ac_val=$`echo $ac_var`
677 case $ac_val in
678 [\\/$]* | ?:[\\/]* ) ;;
679 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
680 { (exit 1); exit 1; }; };;
681 esac
682done
683
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.
687build=$build_alias
688host=$host_alias
689target=$target_alias
690
691# FIXME: To remove some day.
692if 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
698 cross_compiling=yes
699 fi
700fi
701
702ac_tool_prefix=
703test -n "$host_alias" && ac_tool_prefix=$host_alias-
704
705test "$silent" = yes && exec 6>/dev/null
706
707
708# Find the source files, if location was not specified.
709if 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 ||
718echo X"$0" |
719 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
720 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
721 /^X\(\/\/\)$/{ s//\1/; q; }
722 /^X\(\/\).*/{ s//\1/; q; }
723 s/.*/./; q'`
724 srcdir=$ac_confdir
725 if test ! -r $srcdir/$ac_unique_file; then
726 srcdir=..
727 fi
728else
729 ac_srcdir_defaulted=no
730fi
731if 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; }; }
735 else
736 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
737 { (exit 1); exit 1; }; }
738 fi
739fi
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; }; }
743srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
744ac_env_build_alias_set=${build_alias+set}
745ac_env_build_alias_value=$build_alias
746ac_cv_env_build_alias_set=${build_alias+set}
747ac_cv_env_build_alias_value=$build_alias
748ac_env_host_alias_set=${host_alias+set}
749ac_env_host_alias_value=$host_alias
750ac_cv_env_host_alias_set=${host_alias+set}
751ac_cv_env_host_alias_value=$host_alias
752ac_env_target_alias_set=${target_alias+set}
753ac_env_target_alias_value=$target_alias
754ac_cv_env_target_alias_set=${target_alias+set}
755ac_cv_env_target_alias_value=$target_alias
756ac_env_CC_set=${CC+set}
757ac_env_CC_value=$CC
758ac_cv_env_CC_set=${CC+set}
759ac_cv_env_CC_value=$CC
760ac_env_CFLAGS_set=${CFLAGS+set}
761ac_env_CFLAGS_value=$CFLAGS
762ac_cv_env_CFLAGS_set=${CFLAGS+set}
763ac_cv_env_CFLAGS_value=$CFLAGS
764ac_env_LDFLAGS_set=${LDFLAGS+set}
765ac_env_LDFLAGS_value=$LDFLAGS
766ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
767ac_cv_env_LDFLAGS_value=$LDFLAGS
768ac_env_CPPFLAGS_set=${CPPFLAGS+set}
769ac_env_CPPFLAGS_value=$CPPFLAGS
770ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
771ac_cv_env_CPPFLAGS_value=$CPPFLAGS
772ac_env_CPP_set=${CPP+set}
773ac_env_CPP_value=$CPP
774ac_cv_env_CPP_set=${CPP+set}
775ac_cv_env_CPP_value=$CPP
776
777#
778# Report the --help message.
779#
780if 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.
783 cat <<_ACEOF
784\`configure' configures srvx 1.3 to adapt to many kinds of systems.
785
786Usage: $0 [OPTION]... [VAR=VALUE]...
787
788To assign environment variables (e.g., CC, CFLAGS...), specify them as
789VAR=VALUE. See below for descriptions of some of the useful variables.
790
791Defaults for the options are specified in brackets.
792
793Configuration:
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 \`..']
803
804_ACEOF
805
806 cat <<_ACEOF
807Installation directories:
808 --prefix=PREFIX install architecture-independent files in PREFIX
809 [$ac_default_prefix]
810 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
811 [PREFIX]
812
813By default, \`make install' will install all the files in
814\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
815an installation prefix other than \`$ac_default_prefix' using \`--prefix',
816for instance \`--prefix=\$HOME'.
817
818For better control, use the options below.
819
820Fine 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]
833_ACEOF
834
835 cat <<\_ACEOF
836
837Program names:
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
841
842System types:
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]
846_ACEOF
847fi
848
849if test -n "$ac_init_help"; then
850 case $ac_init_help in
851 short | recursive ) echo "Configuration of srvx 1.3:";;
852 esac
853 cat <<\_ACEOF
854
855Optional Features:
856 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
857 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
b2cf3d66
AS
858 --enable-maintainer-mode enable make rules and dependencies not useful
859 (and sometimes confusing) to the casual installer
b3076f16
AS
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
864
865Optional Packages:
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
873
874Some 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>
881 CPP C preprocessor
882
883Use these variables to override the choices made by `configure' or to help
884it to find libraries and programs with nonstandard names/locations.
885
886Report bugs to <srvx-bugs@lists.sourceforge.net>.
887_ACEOF
888fi
889
890if test "$ac_init_help" = "recursive"; then
891 # If there are subdirs, report their specific --help.
892 ac_popdir=`pwd`
893 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
894 test -d $ac_dir || continue
895 ac_builddir=.
896
897if 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'`
901else
902 ac_dir_suffix= ac_top_builddir=
903fi
904
905case $srcdir in
906 .) # No --srcdir option. We are building in place.
907 ac_srcdir=.
908 if test -z "$ac_top_builddir"; then
909 ac_top_srcdir=.
910 else
911 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
912 fi ;;
913 [\\/]* | ?:[\\/]* ) # Absolute path.
914 ac_srcdir=$srcdir$ac_dir_suffix;
915 ac_top_srcdir=$srcdir ;;
916 *) # Relative path.
917 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
918 ac_top_srcdir=$ac_top_builddir$srcdir ;;
919esac
920
921# Do not use `cd foo && pwd` to compute absolute paths, because
922# the directories may not exist.
923case `pwd` in
924.) ac_abs_builddir="$ac_dir";;
925*)
926 case "$ac_dir" in
927 .) ac_abs_builddir=`pwd`;;
928 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
929 *) ac_abs_builddir=`pwd`/"$ac_dir";;
930 esac;;
931esac
932case $ac_abs_builddir in
933.) ac_abs_top_builddir=${ac_top_builddir}.;;
934*)
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}.;;
939 esac;;
940esac
941case $ac_abs_builddir in
942.) ac_abs_srcdir=$ac_srcdir;;
943*)
944 case $ac_srcdir in
945 .) ac_abs_srcdir=$ac_abs_builddir;;
946 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
947 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
948 esac;;
949esac
950case $ac_abs_builddir in
951.) ac_abs_top_srcdir=$ac_top_srcdir;;
952*)
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;;
957 esac;;
958esac
959
960 cd $ac_dir
961 # Check for guested configure; otherwise get Cygnus style configure.
962 if test -f $ac_srcdir/configure.gnu; then
963 echo
964 $SHELL $ac_srcdir/configure.gnu --help=recursive
965 elif test -f $ac_srcdir/configure; then
966 echo
967 $SHELL $ac_srcdir/configure --help=recursive
968 elif test -f $ac_srcdir/configure.ac ||
969 test -f $ac_srcdir/configure.in; then
970 echo
971 $ac_configure --help
972 else
973 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
974 fi
975 cd "$ac_popdir"
976 done
977fi
978
979test -n "$ac_init_help" && exit 0
980if $ac_init_version; then
981 cat <<\_ACEOF
982srvx configure 1.3
983generated by GNU Autoconf 2.59
984
985Copyright (C) 2003 Free Software Foundation, Inc.
986This configure script is free software; the Free Software Foundation
987gives unlimited permission to copy, distribute and modify it.
988_ACEOF
989 exit 0
990fi
991exec 5>config.log
992cat >&5 <<_ACEOF
993This file contains any messages produced by compilers while
994running configure, to aid debugging if configure makes a mistake.
995
996It was created by srvx $as_me 1.3, which was
997generated by GNU Autoconf 2.59. Invocation command line was
998
999 $ $0 $@
1000
1001_ACEOF
1002{
1003cat <<_ASUNAME
1004## --------- ##
1005## Platform. ##
1006## --------- ##
1007
1008hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1009uname -m = `(uname -m) 2>/dev/null || echo unknown`
1010uname -r = `(uname -r) 2>/dev/null || echo unknown`
1011uname -s = `(uname -s) 2>/dev/null || echo unknown`
1012uname -v = `(uname -v) 2>/dev/null || echo unknown`
1013
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`
1016
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`
1020hostinfo = `(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`
1024
1025_ASUNAME
1026
1027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1028for as_dir in $PATH
1029do
1030 IFS=$as_save_IFS
1031 test -z "$as_dir" && as_dir=.
1032 echo "PATH: $as_dir"
1033done
1034
1035} >&5
1036
1037cat >&5 <<_ACEOF
1038
1039
1040## ----------- ##
1041## Core tests. ##
1042## ----------- ##
1043
1044_ACEOF
1045
1046
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.
1052ac_configure_args=
1053ac_configure_args0=
1054ac_configure_args1=
1055ac_sep=
1056ac_must_keep_next=false
1057for ac_pass in 1 2
1058do
1059 for ac_arg
1060 do
1061 case $ac_arg in
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)
1065 continue ;;
1066 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1067 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1068 esac
1069 case $ac_pass in
1070 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1071 2)
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.
1075 else
1076 case $ac_arg in
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 ;;
1083 esac
1084 ;;
1085 -* ) ac_must_keep_next=true ;;
1086 esac
1087 fi
1088 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1089 # Get rid of the leading space.
1090 ac_sep=" "
1091 ;;
1092 esac
1093 done
1094done
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; }
1097
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.
1103trap 'exit_status=$?
1104 # Save into config.log some information that might help in debugging.
1105 {
1106 echo
1107
1108 cat <<\_ASBOX
1109## ---------------- ##
1110## Cache variables. ##
1111## ---------------- ##
1112_ASBOX
1113 echo
1114 # The following way of writing the cache mishandles newlines in values,
1115{
1116 (set) 2>&1 |
1117 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1118 *ac_space=\ *)
1119 sed -n \
1120 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1121 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1122 ;;
1123 *)
1124 sed -n \
1125 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1126 ;;
1127 esac;
1128}
1129 echo
1130
1131 cat <<\_ASBOX
1132## ----------------- ##
1133## Output variables. ##
1134## ----------------- ##
1135_ASBOX
1136 echo
1137 for ac_var in $ac_subst_vars
1138 do
1139 eval ac_val=$`echo $ac_var`
1140 echo "$ac_var='"'"'$ac_val'"'"'"
1141 done | sort
1142 echo
1143
1144 if test -n "$ac_subst_files"; then
1145 cat <<\_ASBOX
1146## ------------- ##
1147## Output files. ##
1148## ------------- ##
1149_ASBOX
1150 echo
1151 for ac_var in $ac_subst_files
1152 do
1153 eval ac_val=$`echo $ac_var`
1154 echo "$ac_var='"'"'$ac_val'"'"'"
1155 done | sort
1156 echo
1157 fi
1158
1159 if test -s confdefs.h; then
1160 cat <<\_ASBOX
1161## ----------- ##
1162## confdefs.h. ##
1163## ----------- ##
1164_ASBOX
1165 echo
1166 sed "/^$/d" confdefs.h | sort
1167 echo
1168 fi
1169 test "$ac_signal" != 0 &&
1170 echo "$as_me: caught signal $ac_signal"
1171 echo "$as_me: exit $exit_status"
1172 } >&5
1173 rm -f core *.core &&
1174 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1175 exit $exit_status
1176 ' 0
1177for ac_signal in 1 2 13 15; do
1178 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1179done
1180ac_signal=0
1181
1182# confdefs.h avoids OS command line length limits that DEFS can exceed.
1183rm -rf conftest* confdefs.h
1184# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1185echo >confdefs.h
1186
1187# Predefined preprocessor variables.
1188
1189cat >>confdefs.h <<_ACEOF
1190#define PACKAGE_NAME "$PACKAGE_NAME"
1191_ACEOF
1192
1193
1194cat >>confdefs.h <<_ACEOF
1195#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1196_ACEOF
1197
1198
1199cat >>confdefs.h <<_ACEOF
1200#define PACKAGE_VERSION "$PACKAGE_VERSION"
1201_ACEOF
1202
1203
1204cat >>confdefs.h <<_ACEOF
1205#define PACKAGE_STRING "$PACKAGE_STRING"
1206_ACEOF
1207
1208
1209cat >>confdefs.h <<_ACEOF
1210#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1211_ACEOF
1212
1213
1214# Let the site file select an alternate cache file if it wants to.
1215# Prefer explicitly selected file to automatically selected ones.
1216if test -z "$CONFIG_SITE"; then
1217 if test "x$prefix" != xNONE; then
1218 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1219 else
1220 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1221 fi
1222fi
1223for 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
1226echo "$as_me: loading site script $ac_site_file" >&6;}
1227 sed 's/^/| /' "$ac_site_file" >&5
1228 . "$ac_site_file"
1229 fi
1230done
1231
1232if 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
1237echo "$as_me: loading cache $cache_file" >&6;}
1238 case $cache_file in
1239 [\\/]* | ?:[\\/]* ) . $cache_file;;
1240 *) . ./$cache_file;;
1241 esac
1242 fi
1243else
1244 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1245echo "$as_me: creating cache $cache_file" >&6;}
1246 >$cache_file
1247fi
1248
1249# Check that the precious variables saved in the cache have kept the same
1250# value.
1251ac_cache_corrupted=false
1252for 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
1259 set,)
1260 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1261echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1262 ac_cache_corrupted=: ;;
1263 ,set)
1264 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1265echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1266 ac_cache_corrupted=: ;;
1267 ,);;
1268 *)
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
1271echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1272 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1273echo "$as_me: former value: $ac_old_val" >&2;}
1274 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1275echo "$as_me: current value: $ac_new_val" >&2;}
1276 ac_cache_corrupted=:
1277 fi;;
1278 esac
1279 # Pass precious variables to config.status.
1280 if test "$ac_new_set" = set; then
1281 case $ac_new_val in
1282 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1283 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1284 *) ac_arg=$ac_var=$ac_new_val ;;
1285 esac
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'" ;;
1289 esac
1290 fi
1291done
1292if $ac_cache_corrupted; then
1293 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1294echo "$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
1296echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1297 { (exit 1); exit 1; }; }
1298fi
1299
1300ac_ext=c
1301ac_cpp='$CPP $CPPFLAGS'
1302ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1303ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1304ac_compiler_gnu=$ac_cv_c_compiler_gnu
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332CODENAME=surge
1333 ac_config_headers="$ac_config_headers src/config.h"
1334
1335
1336ac_aux_dir=
1337for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1338 if test -f $ac_dir/install-sh; then
1339 ac_aux_dir=$ac_dir
1340 ac_install_sh="$ac_aux_dir/install-sh -c"
1341 break
1342 elif test -f $ac_dir/install.sh; then
1343 ac_aux_dir=$ac_dir
1344 ac_install_sh="$ac_aux_dir/install.sh -c"
1345 break
1346 elif test -f $ac_dir/shtool; then
1347 ac_aux_dir=$ac_dir
1348 ac_install_sh="$ac_aux_dir/shtool install -c"
1349 break
1350 fi
1351done
1352if test -z "$ac_aux_dir"; then
1353 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1354echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1355 { (exit 1); exit 1; }; }
1356fi
1357ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1358ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1359ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1360
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
1364echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1365 { (exit 1); exit 1; }; }
1366
1367echo "$as_me:$LINENO: checking build system type" >&5
1368echo $ECHO_N "checking build system type... $ECHO_C" >&6
1369if test "${ac_cv_build+set}" = set; then
1370 echo $ECHO_N "(cached) $ECHO_C" >&6
1371else
1372 ac_cv_build_alias=$build_alias
1373test -z "$ac_cv_build_alias" &&
1374 ac_cv_build_alias=`$ac_config_guess`
1375test -z "$ac_cv_build_alias" &&
1376 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1377echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1378 { (exit 1); exit 1; }; }
1379ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1380 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1381echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1382 { (exit 1); exit 1; }; }
1383
1384fi
1385echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1386echo "${ECHO_T}$ac_cv_build" >&6
1387build=$ac_cv_build
1388build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1389build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1390build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1391
1392
1393echo "$as_me:$LINENO: checking host system type" >&5
1394echo $ECHO_N "checking host system type... $ECHO_C" >&6
1395if test "${ac_cv_host+set}" = set; then
1396 echo $ECHO_N "(cached) $ECHO_C" >&6
1397else
1398 ac_cv_host_alias=$host_alias
1399test -z "$ac_cv_host_alias" &&
1400 ac_cv_host_alias=$ac_cv_build_alias
1401ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1402 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1403echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1404 { (exit 1); exit 1; }; }
1405
1406fi
1407echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1408echo "${ECHO_T}$ac_cv_host" >&6
1409host=$ac_cv_host
1410host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1411host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1412host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1413
1414
1415echo "$as_me:$LINENO: checking target system type" >&5
1416echo $ECHO_N "checking target system type... $ECHO_C" >&6
1417if test "${ac_cv_target+set}" = set; then
1418 echo $ECHO_N "(cached) $ECHO_C" >&6
1419else
1420 ac_cv_target_alias=$target_alias
1421test "x$ac_cv_target_alias" = "x" &&
1422 ac_cv_target_alias=$ac_cv_host_alias
1423ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1424 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1425echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1426 { (exit 1); exit 1; }; }
1427
1428fi
1429echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1430echo "${ECHO_T}$ac_cv_target" >&6
1431target=$ac_cv_target
1432target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1433target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1434target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1435
1436
1437# The aliases save the names the user supplied, while $host etc.
1438# will get canonicalized.
1439test -n "$target_alias" &&
1440 test "$program_prefix$program_suffix$program_transform_name" = \
1441 NONENONEs,x,x, &&
1442 program_prefix=${target_alias}-
b3076f16
AS
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
1449# AIX /bin/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.
1456echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1457echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1458if test -z "$INSTALL"; then
1459if test "${ac_cv_path_install+set}" = set; then
1460 echo $ECHO_N "(cached) $ECHO_C" >&6
1461else
1462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1463for as_dir in $PATH
1464do
1465 IFS=$as_save_IFS
1466 test -z "$as_dir" && as_dir=.
1467 # Account for people who put trailing slashes in PATH elements.
1468case $as_dir/ in
1469 ./ | .// | /cC/* | \
1470 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1471 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1472 /usr/ucb/* ) ;;
1473 *)
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
1476 # by default.
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.
1483 :
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.
1487 :
1488 else
1489 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1490 break 3
1491 fi
1492 fi
1493 done
1494 done
1495 ;;
1496esac
1497done
1498
1499
1500fi
1501 if test "${ac_cv_path_install+set}" = set; then
1502 INSTALL=$ac_cv_path_install
1503 else
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
1509 fi
1510fi
1511echo "$as_me:$LINENO: result: $INSTALL" >&5
1512echo "${ECHO_T}$INSTALL" >&6
1513
1514# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1515# It thinks the first close brace ends the variable substitution.
1516test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1517
1518test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1519
1520test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1521
1522echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1523echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1524# Just in case
1525sleep 1
b2cf3d66 1526echo timestamp > conftestfile
b3076f16
AS
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
1531# directory).
1532if (
b2cf3d66 1533 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
b3076f16
AS
1534 if test "$*" = "X"; then
1535 # -L didn't work.
b2cf3d66 1536 set X `ls -t $srcdir/configure conftestfile`
b3076f16 1537 fi
b2cf3d66
AS
1538 if test "$*" != "X $srcdir/configure conftestfile" \
1539 && test "$*" != "X conftestfile $srcdir/configure"; then
b3076f16
AS
1540
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
1546alias in your environment" >&5
1547echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1548alias in your environment" >&2;}
1549 { (exit 1); exit 1; }; }
1550 fi
1551
b2cf3d66 1552 test "$2" = conftestfile
b3076f16
AS
1553 )
1554then
1555 # Ok.
1556 :
1557else
1558 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1559Check your system clock" >&5
1560echo "$as_me: error: newly created file is older than distributed files!
1561Check your system clock" >&2;}
1562 { (exit 1); exit 1; }; }
1563fi
b2cf3d66 1564rm -f conftest*
b3076f16
AS
1565echo "$as_me:$LINENO: result: yes" >&5
1566echo "${ECHO_T}yes" >&6
1567test "$program_prefix" != NONE &&
1568 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1569# Use a double $ so make ignores it.
1570test "$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.
1574cat <<\_ACEOF >conftest.sed
1575s/[\\$]/&&/g;s/;s,x,x,$//
1576_ACEOF
1577program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1578rm conftest.sed
1579
b3076f16
AS
1580echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1581echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1582set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1583if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1584 echo $ECHO_N "(cached) $ECHO_C" >&6
1585else
1586 cat >conftest.make <<\_ACEOF
1587all:
1588 @echo 'ac_maketemp="$(MAKE)"'
1589_ACEOF
1590# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1591eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1592if test -n "$ac_maketemp"; then
1593 eval ac_cv_prog_make_${ac_make}_set=yes
1594else
1595 eval ac_cv_prog_make_${ac_make}_set=no
1596fi
1597rm -f conftest.make
1598fi
1599if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1600 echo "$as_me:$LINENO: result: yes" >&5
1601echo "${ECHO_T}yes" >&6
1602 SET_MAKE=
1603else
1604 echo "$as_me:$LINENO: result: no" >&5
1605echo "${ECHO_T}no" >&6
1606 SET_MAKE="MAKE=${MAKE-make}"
1607fi
1608
b3076f16 1609
b2cf3d66
AS
1610PACKAGE=gnu 1.6
1611
1612VERSION=
1613
1614if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
b3076f16
AS
1615 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1616echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1617 { (exit 1); exit 1; }; }
1618fi
1619
b3076f16
AS
1620cat >>confdefs.h <<_ACEOF
1621#define PACKAGE "$PACKAGE"
1622_ACEOF
1623
1624
1625cat >>confdefs.h <<_ACEOF
1626#define VERSION "$VERSION"
1627_ACEOF
1628
b3076f16 1629
b3076f16 1630
b2cf3d66
AS
1631missing_dir=`cd $ac_aux_dir && pwd`
1632echo "$as_me:$LINENO: checking for working aclocal" >&5
1633echo $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.
1637if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1638 ACLOCAL=aclocal
1639 echo "$as_me:$LINENO: result: found" >&5
1640echo "${ECHO_T}found" >&6
b3076f16 1641else
b2cf3d66
AS
1642 ACLOCAL="$missing_dir/missing aclocal"
1643 echo "$as_me:$LINENO: result: missing" >&5
1644echo "${ECHO_T}missing" >&6
b3076f16
AS
1645fi
1646
b2cf3d66
AS
1647echo "$as_me:$LINENO: checking for working autoconf" >&5
1648echo $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.
1652if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1653 AUTOCONF=autoconf
1654 echo "$as_me:$LINENO: result: found" >&5
1655echo "${ECHO_T}found" >&6
b3076f16 1656else
b2cf3d66
AS
1657 AUTOCONF="$missing_dir/missing autoconf"
1658 echo "$as_me:$LINENO: result: missing" >&5
1659echo "${ECHO_T}missing" >&6
b3076f16 1660fi
b2cf3d66
AS
1661
1662echo "$as_me:$LINENO: checking for working automake" >&5
1663echo $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.
1667if (automake --version) < /dev/null > /dev/null 2>&1; then
1668 AUTOMAKE=automake
1669 echo "$as_me:$LINENO: result: found" >&5
1670echo "${ECHO_T}found" >&6
b3076f16 1671else
b2cf3d66
AS
1672 AUTOMAKE="$missing_dir/missing automake"
1673 echo "$as_me:$LINENO: result: missing" >&5
1674echo "${ECHO_T}missing" >&6
b3076f16
AS
1675fi
1676
b2cf3d66
AS
1677echo "$as_me:$LINENO: checking for working autoheader" >&5
1678echo $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.
1682if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1683 AUTOHEADER=autoheader
1684 echo "$as_me:$LINENO: result: found" >&5
1685echo "${ECHO_T}found" >&6
b3076f16 1686else
b2cf3d66
AS
1687 AUTOHEADER="$missing_dir/missing autoheader"
1688 echo "$as_me:$LINENO: result: missing" >&5
1689echo "${ECHO_T}missing" >&6
b3076f16
AS
1690fi
1691
b2cf3d66
AS
1692echo "$as_me:$LINENO: checking for working makeinfo" >&5
1693echo $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.
1697if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1698 MAKEINFO=makeinfo
1699 echo "$as_me:$LINENO: result: found" >&5
1700echo "${ECHO_T}found" >&6
1701else
1702 MAKEINFO="$missing_dir/missing makeinfo"
1703 echo "$as_me:$LINENO: result: missing" >&5
1704echo "${ECHO_T}missing" >&6
b3076f16 1705fi
b3076f16
AS
1706
1707
1708echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1709echo $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.
1711if test "${enable_maintainer_mode+set}" = set; then
1712 enableval="$enable_maintainer_mode"
1713 USE_MAINTAINER_MODE=$enableval
1714else
1715 USE_MAINTAINER_MODE=no
1716fi;
1717 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1718echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1719
1720
1721if test $USE_MAINTAINER_MODE = yes; then
1722 MAINTAINER_MODE_TRUE=
1723 MAINTAINER_MODE_FALSE='#'
1724else
1725 MAINTAINER_MODE_TRUE='#'
1726 MAINTAINER_MODE_FALSE=
1727fi
b3076f16
AS
1728 MAINT=$MAINTAINER_MODE_TRUE
1729
1730
1731
b3076f16
AS
1732ac_ext=c
1733ac_cpp='$CPP $CPPFLAGS'
1734ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1735ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1736ac_compiler_gnu=$ac_cv_c_compiler_gnu
1737if 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.
1739set dummy ${ac_tool_prefix}gcc; ac_word=$2
1740echo "$as_me:$LINENO: checking for $ac_word" >&5
1741echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1742if test "${ac_cv_prog_CC+set}" = set; then
1743 echo $ECHO_N "(cached) $ECHO_C" >&6
1744else
1745 if test -n "$CC"; then
1746 ac_cv_prog_CC="$CC" # Let the user override the test.
1747else
1748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1749for as_dir in $PATH
1750do
1751 IFS=$as_save_IFS
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
1757 break 2
1758 fi
1759done
1760done
1761
1762fi
1763fi
1764CC=$ac_cv_prog_CC
1765if test -n "$CC"; then
1766 echo "$as_me:$LINENO: result: $CC" >&5
1767echo "${ECHO_T}$CC" >&6
1768else
1769 echo "$as_me:$LINENO: result: no" >&5
1770echo "${ECHO_T}no" >&6
1771fi
1772
1773fi
1774if test -z "$ac_cv_prog_CC"; then
1775 ac_ct_CC=$CC
1776 # Extract the first word of "gcc", so it can be a program name with args.
1777set dummy gcc; ac_word=$2
1778echo "$as_me:$LINENO: checking for $ac_word" >&5
1779echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1780if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1781 echo $ECHO_N "(cached) $ECHO_C" >&6
1782else
1783 if test -n "$ac_ct_CC"; then
1784 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1785else
1786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1787for as_dir in $PATH
1788do
1789 IFS=$as_save_IFS
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
1795 break 2
1796 fi
1797done
1798done
1799
1800fi
1801fi
1802ac_ct_CC=$ac_cv_prog_ac_ct_CC
1803if test -n "$ac_ct_CC"; then
1804 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1805echo "${ECHO_T}$ac_ct_CC" >&6
1806else
1807 echo "$as_me:$LINENO: result: no" >&5
1808echo "${ECHO_T}no" >&6
1809fi
1810
1811 CC=$ac_ct_CC
1812else
1813 CC="$ac_cv_prog_CC"
1814fi
1815
1816if 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.
1819set dummy ${ac_tool_prefix}cc; ac_word=$2
1820echo "$as_me:$LINENO: checking for $ac_word" >&5
1821echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1822if test "${ac_cv_prog_CC+set}" = set; then
1823 echo $ECHO_N "(cached) $ECHO_C" >&6
1824else
1825 if test -n "$CC"; then
1826 ac_cv_prog_CC="$CC" # Let the user override the test.
1827else
1828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1829for as_dir in $PATH
1830do
1831 IFS=$as_save_IFS
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
1837 break 2
1838 fi
1839done
1840done
1841
1842fi
1843fi
1844CC=$ac_cv_prog_CC
1845if test -n "$CC"; then
1846 echo "$as_me:$LINENO: result: $CC" >&5
1847echo "${ECHO_T}$CC" >&6
1848else
1849 echo "$as_me:$LINENO: result: no" >&5
1850echo "${ECHO_T}no" >&6
1851fi
1852
1853fi
1854if test -z "$ac_cv_prog_CC"; then
1855 ac_ct_CC=$CC
1856 # Extract the first word of "cc", so it can be a program name with args.
1857set dummy cc; ac_word=$2
1858echo "$as_me:$LINENO: checking for $ac_word" >&5
1859echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1860if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1861 echo $ECHO_N "(cached) $ECHO_C" >&6
1862else
1863 if test -n "$ac_ct_CC"; then
1864 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1865else
1866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1867for as_dir in $PATH
1868do
1869 IFS=$as_save_IFS
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
1875 break 2
1876 fi
1877done
1878done
1879
1880fi
1881fi
1882ac_ct_CC=$ac_cv_prog_ac_ct_CC
1883if test -n "$ac_ct_CC"; then
1884 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1885echo "${ECHO_T}$ac_ct_CC" >&6
1886else
1887 echo "$as_me:$LINENO: result: no" >&5
1888echo "${ECHO_T}no" >&6
1889fi
1890
1891 CC=$ac_ct_CC
1892else
1893 CC="$ac_cv_prog_CC"
1894fi
1895
1896fi
1897if test -z "$CC"; then
1898 # Extract the first word of "cc", so it can be a program name with args.
1899set dummy cc; ac_word=$2
1900echo "$as_me:$LINENO: checking for $ac_word" >&5
1901echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1902if test "${ac_cv_prog_CC+set}" = set; then
1903 echo $ECHO_N "(cached) $ECHO_C" >&6
1904else
1905 if test -n "$CC"; then
1906 ac_cv_prog_CC="$CC" # Let the user override the test.
1907else
1908 ac_prog_rejected=no
1909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1910for as_dir in $PATH
1911do
1912 IFS=$as_save_IFS
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
1918 continue
1919 fi
1920 ac_cv_prog_CC="cc"
1921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1922 break 2
1923 fi
1924done
1925done
1926
1927if 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
1930 shift
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.
1935 shift
1936 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1937 fi
1938fi
1939fi
1940fi
1941CC=$ac_cv_prog_CC
1942if test -n "$CC"; then
1943 echo "$as_me:$LINENO: result: $CC" >&5
1944echo "${ECHO_T}$CC" >&6
1945else
1946 echo "$as_me:$LINENO: result: no" >&5
1947echo "${ECHO_T}no" >&6
1948fi
1949
1950fi
1951if test -z "$CC"; then
1952 if test -n "$ac_tool_prefix"; then
1953 for ac_prog in cl
1954 do
1955 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1956set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1957echo "$as_me:$LINENO: checking for $ac_word" >&5
1958echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1959if test "${ac_cv_prog_CC+set}" = set; then
1960 echo $ECHO_N "(cached) $ECHO_C" >&6
1961else
1962 if test -n "$CC"; then
1963 ac_cv_prog_CC="$CC" # Let the user override the test.
1964else
1965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1966for as_dir in $PATH
1967do
1968 IFS=$as_save_IFS
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
1974 break 2
1975 fi
1976done
1977done
1978
1979fi
1980fi
1981CC=$ac_cv_prog_CC
1982if test -n "$CC"; then
1983 echo "$as_me:$LINENO: result: $CC" >&5
1984echo "${ECHO_T}$CC" >&6
1985else
1986 echo "$as_me:$LINENO: result: no" >&5
1987echo "${ECHO_T}no" >&6
1988fi
1989
1990 test -n "$CC" && break
1991 done
1992fi
1993if test -z "$CC"; then
1994 ac_ct_CC=$CC
1995 for ac_prog in cl
1996do
1997 # Extract the first word of "$ac_prog", so it can be a program name with args.
1998set dummy $ac_prog; ac_word=$2
1999echo "$as_me:$LINENO: checking for $ac_word" >&5
2000echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2001if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2002 echo $ECHO_N "(cached) $ECHO_C" >&6
2003else
2004 if test -n "$ac_ct_CC"; then
2005 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2006else
2007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2008for as_dir in $PATH
2009do
2010 IFS=$as_save_IFS
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
2016 break 2
2017 fi
2018done
2019done
2020
2021fi
2022fi
2023ac_ct_CC=$ac_cv_prog_ac_ct_CC
2024if test -n "$ac_ct_CC"; then
2025 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2026echo "${ECHO_T}$ac_ct_CC" >&6
2027else
2028 echo "$as_me:$LINENO: result: no" >&5
2029echo "${ECHO_T}no" >&6
2030fi
2031
2032 test -n "$ac_ct_CC" && break
2033done
2034
2035 CC=$ac_ct_CC
2036fi
2037
2038fi
2039
2040
2041test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2042See \`config.log' for more details." >&5
2043echo "$as_me: error: no acceptable C compiler found in \$PATH
2044See \`config.log' for more details." >&2;}
2045 { (exit 1); exit 1; }; }
2046
2047# Provide some information about the compiler.
2048echo "$as_me:$LINENO:" \
2049 "checking for C compiler version" >&5
2050ac_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
2053 ac_status=$?
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
2058 ac_status=$?
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
2063 ac_status=$?
2064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2065 (exit $ac_status); }
2066
2067cat >conftest.$ac_ext <<_ACEOF
2068/* confdefs.h. */
2069_ACEOF
2070cat confdefs.h >>conftest.$ac_ext
2071cat >>conftest.$ac_ext <<_ACEOF
2072/* end confdefs.h. */
2073
2074int
2075main ()
2076{
2077
2078 ;
2079 return 0;
2080}
2081_ACEOF
2082ac_clean_files_save=$ac_clean_files
2083ac_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
2086# of exeext.
2087echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2088echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2089ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2090if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2091 (eval $ac_link_default) 2>&5
2092 ac_status=$?
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
2097# resort.
2098
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.
2101ac_cv_exeext=
2102# b.out is created by i960 compilers.
2103for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2104do
2105 test -f "$ac_file" || continue
2106 case $ac_file in
2107 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2108 ;;
2109 conftest.$ac_ext )
2110 # This is the source file.
2111 ;;
2112 [ab].out )
2113 # We found the default executable, but exeext='' is most
2114 # certainly right.
2115 break;;
2116 *.* )
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.
2121 export ac_cv_exeext
2122 break;;
2123 * )
2124 break;;
2125 esac
2126done
2127else
2128 echo "$as_me: failed program was:" >&5
2129sed 's/^/| /' conftest.$ac_ext >&5
2130
2131{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2132See \`config.log' for more details." >&5
2133echo "$as_me: error: C compiler cannot create executables
2134See \`config.log' for more details." >&2;}
2135 { (exit 77); exit 77; }; }
2136fi
2137
2138ac_exeext=$ac_cv_exeext
2139echo "$as_me:$LINENO: result: $ac_file" >&5
2140echo "${ECHO_T}$ac_file" >&6
2141
2142# Check the compiler produces executables we can run. If not, either
2143# the compiler is broken, or we cross compile.
2144echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2145echo $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.
2148if test "$cross_compiling" != yes; then
2149 if { ac_try='./$ac_file'
2150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2151 (eval $ac_try) 2>&5
2152 ac_status=$?
2153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2154 (exit $ac_status); }; }; then
2155 cross_compiling=no
2156 else
2157 if test "$cross_compiling" = maybe; then
2158 cross_compiling=yes
2159 else
2160 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2161If you meant to cross compile, use \`--host'.
2162See \`config.log' for more details." >&5
2163echo "$as_me: error: cannot run C compiled programs.
2164If you meant to cross compile, use \`--host'.
2165See \`config.log' for more details." >&2;}
2166 { (exit 1); exit 1; }; }
2167 fi
2168 fi
2169fi
2170echo "$as_me:$LINENO: result: yes" >&5
2171echo "${ECHO_T}yes" >&6
2172
2173rm -f a.out a.exe conftest$ac_cv_exeext b.out
2174ac_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.
2177echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2178echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2179echo "$as_me:$LINENO: result: $cross_compiling" >&5
2180echo "${ECHO_T}$cross_compiling" >&6
2181
2182echo "$as_me:$LINENO: checking for suffix of executables" >&5
2183echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2184if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2185 (eval $ac_link) 2>&5
2186 ac_status=$?
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
2192# `rm'.
2193for ac_file in conftest.exe conftest conftest.*; do
2194 test -f "$ac_file" || continue
2195 case $ac_file in
2196 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2197 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2198 export ac_cv_exeext
2199 break;;
2200 * ) break;;
2201 esac
2202done
2203else
2204 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2205See \`config.log' for more details." >&5
2206echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2207See \`config.log' for more details." >&2;}
2208 { (exit 1); exit 1; }; }
2209fi
2210
2211rm -f conftest$ac_cv_exeext
2212echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2213echo "${ECHO_T}$ac_cv_exeext" >&6
2214
2215rm -f conftest.$ac_ext
2216EXEEXT=$ac_cv_exeext
2217ac_exeext=$EXEEXT
2218echo "$as_me:$LINENO: checking for suffix of object files" >&5
2219echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2220if test "${ac_cv_objext+set}" = set; then
2221 echo $ECHO_N "(cached) $ECHO_C" >&6
2222else
2223 cat >conftest.$ac_ext <<_ACEOF
2224/* confdefs.h. */
2225_ACEOF
2226cat confdefs.h >>conftest.$ac_ext
2227cat >>conftest.$ac_ext <<_ACEOF
2228/* end confdefs.h. */
2229
2230int
2231main ()
2232{
2233
2234 ;
2235 return 0;
2236}
2237_ACEOF
2238rm -f conftest.o conftest.obj
2239if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2240 (eval $ac_compile) 2>&5
2241 ac_status=$?
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
2245 case $ac_file in
2246 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2247 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2248 break;;
2249 esac
2250done
2251else
2252 echo "$as_me: failed program was:" >&5
2253sed 's/^/| /' conftest.$ac_ext >&5
2254
2255{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2256See \`config.log' for more details." >&5
2257echo "$as_me: error: cannot compute suffix of object files: cannot compile
2258See \`config.log' for more details." >&2;}
2259 { (exit 1); exit 1; }; }
2260fi
2261
2262rm -f conftest.$ac_cv_objext conftest.$ac_ext
2263fi
2264echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2265echo "${ECHO_T}$ac_cv_objext" >&6
2266OBJEXT=$ac_cv_objext
2267ac_objext=$OBJEXT
2268echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2269echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2270if test "${ac_cv_c_compiler_gnu+set}" = set; then
2271 echo $ECHO_N "(cached) $ECHO_C" >&6
2272else
2273 cat >conftest.$ac_ext <<_ACEOF
2274/* confdefs.h. */
2275_ACEOF
2276cat confdefs.h >>conftest.$ac_ext
2277cat >>conftest.$ac_ext <<_ACEOF
2278/* end confdefs.h. */
2279
2280int
2281main ()
2282{
2283#ifndef __GNUC__
2284 choke me
2285#endif
2286
2287 ;
2288 return 0;
2289}
2290_ACEOF
2291rm -f conftest.$ac_objext
2292if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2293 (eval $ac_compile) 2>conftest.er1
2294 ac_status=$?
2295 grep -v '^ *+' conftest.er1 >conftest.err
2296 rm -f conftest.er1
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
2302 (eval $ac_try) 2>&5
2303 ac_status=$?
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
2308 (eval $ac_try) 2>&5
2309 ac_status=$?
2310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2311 (exit $ac_status); }; }; then
2312 ac_compiler_gnu=yes
2313else
2314 echo "$as_me: failed program was:" >&5
2315sed 's/^/| /' conftest.$ac_ext >&5
2316
2317ac_compiler_gnu=no
2318fi
2319rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2320ac_cv_c_compiler_gnu=$ac_compiler_gnu
2321
2322fi
2323echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2324echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2325GCC=`test $ac_compiler_gnu = yes && echo yes`
2326ac_test_CFLAGS=${CFLAGS+set}
2327ac_save_CFLAGS=$CFLAGS
2328CFLAGS="-g"
2329echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2330echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2331if test "${ac_cv_prog_cc_g+set}" = set; then
2332 echo $ECHO_N "(cached) $ECHO_C" >&6
2333else
2334 cat >conftest.$ac_ext <<_ACEOF
2335/* confdefs.h. */
2336_ACEOF
2337cat confdefs.h >>conftest.$ac_ext
2338cat >>conftest.$ac_ext <<_ACEOF
2339/* end confdefs.h. */
2340
2341int
2342main ()
2343{
2344
2345 ;
2346 return 0;
2347}
2348_ACEOF
2349rm -f conftest.$ac_objext
2350if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2351 (eval $ac_compile) 2>conftest.er1
2352 ac_status=$?
2353 grep -v '^ *+' conftest.er1 >conftest.err
2354 rm -f conftest.er1
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
2360 (eval $ac_try) 2>&5
2361 ac_status=$?
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
2366 (eval $ac_try) 2>&5
2367 ac_status=$?
2368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2369 (exit $ac_status); }; }; then
2370 ac_cv_prog_cc_g=yes
2371else
2372 echo "$as_me: failed program was:" >&5
2373sed 's/^/| /' conftest.$ac_ext >&5
2374
2375ac_cv_prog_cc_g=no
2376fi
2377rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2378fi
2379echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2380echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2381if test "$ac_test_CFLAGS" = set; then
2382 CFLAGS=$ac_save_CFLAGS
2383elif test $ac_cv_prog_cc_g = yes; then
2384 if test "$GCC" = yes; then
2385 CFLAGS="-g -O2"
2386 else
2387 CFLAGS="-g"
2388 fi
2389else
2390 if test "$GCC" = yes; then
2391 CFLAGS="-O2"
2392 else
2393 CFLAGS=
2394 fi
2395fi
2396echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2397echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2398if test "${ac_cv_prog_cc_stdc+set}" = set; then
2399 echo $ECHO_N "(cached) $ECHO_C" >&6
2400else
2401 ac_cv_prog_cc_stdc=no
2402ac_save_CC=$CC
2403cat >conftest.$ac_ext <<_ACEOF
2404/* confdefs.h. */
2405_ACEOF
2406cat confdefs.h >>conftest.$ac_ext
2407cat >>conftest.$ac_ext <<_ACEOF
2408/* end confdefs.h. */
2409#include <stdarg.h>
2410#include <stdio.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. */
2414struct buf { int x; };
2415FILE * (*rcsopen) (struct buf *, struct stat *, int);
2416static char *e (p, i)
2417 char **p;
2418 int i;
2419{
2420 return p[i];
2421}
2422static char *f (char * (*g) (char **, int), char **p, ...)
2423{
2424 char *s;
2425 va_list v;
2426 va_start (v,p);
2427 s = g (p, va_arg (v,int));
2428 va_end (v);
2429 return s;
2430}
2431
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. */
2439int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2440
2441int test (int i, double x);
2442struct s1 {int (*f) (int a);};
2443struct s2 {int (*f) (double a);};
2444int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2445int argc;
2446char **argv;
2447int
2448main ()
2449{
2450return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2451 ;
2452 return 0;
2453}
2454_ACEOF
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__
2462for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2463do
2464 CC="$ac_save_CC $ac_arg"
2465 rm -f conftest.$ac_objext
2466if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2467 (eval $ac_compile) 2>conftest.er1
2468 ac_status=$?
2469 grep -v '^ *+' conftest.er1 >conftest.err
2470 rm -f conftest.er1
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
2476 (eval $ac_try) 2>&5
2477 ac_status=$?
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
2482 (eval $ac_try) 2>&5
2483 ac_status=$?
2484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2485 (exit $ac_status); }; }; then
2486 ac_cv_prog_cc_stdc=$ac_arg
2487break
2488else
2489 echo "$as_me: failed program was:" >&5
2490sed 's/^/| /' conftest.$ac_ext >&5
2491
2492fi
2493rm -f conftest.err conftest.$ac_objext
2494done
2495rm -f conftest.$ac_ext conftest.$ac_objext
2496CC=$ac_save_CC
2497
2498fi
2499
2500case "x$ac_cv_prog_cc_stdc" in
2501 x|xno)
2502 echo "$as_me:$LINENO: result: none needed" >&5
2503echo "${ECHO_T}none needed" >&6 ;;
2504 *)
2505 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2506echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2507 CC="$CC $ac_cv_prog_cc_stdc" ;;
2508esac
2509
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.
2514cat >conftest.$ac_ext <<_ACEOF
2515#ifndef __cplusplus
2516 choke me
2517#endif
2518_ACEOF
2519rm -f conftest.$ac_objext
2520if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2521 (eval $ac_compile) 2>conftest.er1
2522 ac_status=$?
2523 grep -v '^ *+' conftest.er1 >conftest.err
2524 rm -f conftest.er1
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
2530 (eval $ac_try) 2>&5
2531 ac_status=$?
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
2536 (eval $ac_try) 2>&5
2537 ac_status=$?
2538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539 (exit $ac_status); }; }; then
2540 for ac_declaration in \
2541 '' \
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);' \
2546 'void exit (int);'
2547do
2548 cat >conftest.$ac_ext <<_ACEOF
2549/* confdefs.h. */
2550_ACEOF
2551cat confdefs.h >>conftest.$ac_ext
2552cat >>conftest.$ac_ext <<_ACEOF
2553/* end confdefs.h. */
2554$ac_declaration
2555#include <stdlib.h>
2556int
2557main ()
2558{
2559exit (42);
2560 ;
2561 return 0;
2562}
2563_ACEOF
2564rm -f conftest.$ac_objext
2565if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2566 (eval $ac_compile) 2>conftest.er1
2567 ac_status=$?
2568 grep -v '^ *+' conftest.er1 >conftest.err
2569 rm -f conftest.er1
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
2575 (eval $ac_try) 2>&5
2576 ac_status=$?
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
2581 (eval $ac_try) 2>&5
2582 ac_status=$?
2583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2584 (exit $ac_status); }; }; then
2585 :
2586else
2587 echo "$as_me: failed program was:" >&5
2588sed 's/^/| /' conftest.$ac_ext >&5
2589
2590continue
2591fi
2592rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2593 cat >conftest.$ac_ext <<_ACEOF
2594/* confdefs.h. */
2595_ACEOF
2596cat confdefs.h >>conftest.$ac_ext
2597cat >>conftest.$ac_ext <<_ACEOF
2598/* end confdefs.h. */
2599$ac_declaration
2600int
2601main ()
2602{
2603exit (42);
2604 ;
2605 return 0;
2606}
2607_ACEOF
2608rm -f conftest.$ac_objext
2609if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2610 (eval $ac_compile) 2>conftest.er1
2611 ac_status=$?
2612 grep -v '^ *+' conftest.er1 >conftest.err
2613 rm -f conftest.er1
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
2619 (eval $ac_try) 2>&5
2620 ac_status=$?
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
2625 (eval $ac_try) 2>&5
2626 ac_status=$?
2627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628 (exit $ac_status); }; }; then
2629 break
2630else
2631 echo "$as_me: failed program was:" >&5
2632sed 's/^/| /' conftest.$ac_ext >&5
2633
2634fi
2635rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2636done
2637rm -f conftest*
2638if test -n "$ac_declaration"; then
2639 echo '#ifdef __cplusplus' >>confdefs.h
2640 echo $ac_declaration >>confdefs.h
2641 echo '#endif' >>confdefs.h
2642fi
2643
2644else
2645 echo "$as_me: failed program was:" >&5
2646sed 's/^/| /' conftest.$ac_ext >&5
2647
2648fi
2649rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2650ac_ext=c
2651ac_cpp='$CPP $CPPFLAGS'
2652ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2653ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2654ac_compiler_gnu=$ac_cv_c_compiler_gnu
2655
b3076f16
AS
2656
2657echo "$as_me:$LINENO: checking return type of signal handlers" >&5
2658echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
2659if test "${ac_cv_type_signal+set}" = set; then
2660 echo $ECHO_N "(cached) $ECHO_C" >&6
2661else
2662 cat >conftest.$ac_ext <<_ACEOF
2663/* confdefs.h. */
2664_ACEOF
2665cat confdefs.h >>conftest.$ac_ext
2666cat >>conftest.$ac_ext <<_ACEOF
2667/* end confdefs.h. */
2668#include <sys/types.h>
2669#include <signal.h>
2670#ifdef signal
2671# undef signal
2672#endif
2673#ifdef __cplusplus
2674extern "C" void (*signal (int, void (*)(int)))(int);
2675#else
2676void (*signal ()) ();
2677#endif
2678
2679int
2680main ()
2681{
2682int i;
2683 ;
2684 return 0;
2685}
2686_ACEOF
2687rm -f conftest.$ac_objext
2688if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2689 (eval $ac_compile) 2>conftest.er1
2690 ac_status=$?
2691 grep -v '^ *+' conftest.er1 >conftest.err
2692 rm -f conftest.er1
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
2698 (eval $ac_try) 2>&5
2699 ac_status=$?
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
2704 (eval $ac_try) 2>&5
2705 ac_status=$?
2706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707 (exit $ac_status); }; }; then
2708 ac_cv_type_signal=void
2709else
2710 echo "$as_me: failed program was:" >&5
2711sed 's/^/| /' conftest.$ac_ext >&5
2712
2713ac_cv_type_signal=int
2714fi
2715rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2716fi
2717echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
2718echo "${ECHO_T}$ac_cv_type_signal" >&6
2719
2720cat >>confdefs.h <<_ACEOF
2721#define RETSIGTYPE $ac_cv_type_signal
2722_ACEOF
2723
2724
2725echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
2726echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
2727if test "${ac_cv_c_const+set}" = set; then
2728 echo $ECHO_N "(cached) $ECHO_C" >&6
2729else
2730 cat >conftest.$ac_ext <<_ACEOF
2731/* confdefs.h. */
2732_ACEOF
2733cat confdefs.h >>conftest.$ac_ext
2734cat >>conftest.$ac_ext <<_ACEOF
2735/* end confdefs.h. */
2736
2737int
2738main ()
2739{
2740/* FIXME: Include the comments suggested by Paul. */
2741#ifndef __cplusplus
2742 /* Ultrix mips cc rejects this. */
2743 typedef int charset[2];
2744 const charset x;
2745 /* SunOS 4.1.1 cc rejects this. */
2746 char const *const *ccp;
2747 char **p;
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
2754 expression */
2755 const char *g = "string";
2756 ccp = &g + (g ? g-g : 0);
2757 /* HPUX 7.0 cc rejects these. */
2758 ++ccp;
2759 p = (char**) ccp;
2760 ccp = (char const *const *) p;
2761 { /* SCO 3.2v4 cc rejects this. */
2762 char *t;
2763 char const *s = 0 ? (char *) 0 : (char const *) 0;
2764
2765 *t++ = 0;
2766 }
2767 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2768 int x[] = {25, 17};
2769 const int *foo = &x[0];
2770 ++foo;
2771 }
2772 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2773 typedef const int *iptr;
2774 iptr p = 0;
2775 ++p;
2776 }
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;
2781 }
2782 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2783 const int foo = 10;
2784 }
2785#endif
2786
2787 ;
2788 return 0;
2789}
2790_ACEOF
2791rm -f conftest.$ac_objext
2792if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2793 (eval $ac_compile) 2>conftest.er1
2794 ac_status=$?
2795 grep -v '^ *+' conftest.er1 >conftest.err
2796 rm -f conftest.er1
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
2802 (eval $ac_try) 2>&5
2803 ac_status=$?
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
2808 (eval $ac_try) 2>&5
2809 ac_status=$?
2810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2811 (exit $ac_status); }; }; then
2812 ac_cv_c_const=yes
2813else
2814 echo "$as_me: failed program was:" >&5
2815sed 's/^/| /' conftest.$ac_ext >&5
2816
2817ac_cv_c_const=no
2818fi
2819rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2820fi
2821echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
2822echo "${ECHO_T}$ac_cv_c_const" >&6
2823if test $ac_cv_c_const = no; then
2824
2825cat >>confdefs.h <<\_ACEOF
2826#define const
2827_ACEOF
2828
2829fi
2830
2831echo "$as_me:$LINENO: checking for inline" >&5
2832echo $ECHO_N "checking for inline... $ECHO_C" >&6
2833if test "${ac_cv_c_inline+set}" = set; then
2834 echo $ECHO_N "(cached) $ECHO_C" >&6
2835else
2836 ac_cv_c_inline=no
2837for ac_kw in inline __inline__ __inline; do
2838 cat >conftest.$ac_ext <<_ACEOF
2839/* confdefs.h. */
2840_ACEOF
2841cat confdefs.h >>conftest.$ac_ext
2842cat >>conftest.$ac_ext <<_ACEOF
2843/* end confdefs.h. */
2844#ifndef __cplusplus
2845typedef int foo_t;
2846static $ac_kw foo_t static_foo () {return 0; }
2847$ac_kw foo_t foo () {return 0; }
2848#endif
2849
2850_ACEOF
2851rm -f conftest.$ac_objext
2852if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2853 (eval $ac_compile) 2>conftest.er1
2854 ac_status=$?
2855 grep -v '^ *+' conftest.er1 >conftest.err
2856 rm -f conftest.er1
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
2862 (eval $ac_try) 2>&5
2863 ac_status=$?
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
2868 (eval $ac_try) 2>&5
2869 ac_status=$?
2870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2871 (exit $ac_status); }; }; then
2872 ac_cv_c_inline=$ac_kw; break
2873else
2874 echo "$as_me: failed program was:" >&5
2875sed 's/^/| /' conftest.$ac_ext >&5
2876
2877fi
2878rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2879done
2880
2881fi
2882echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
2883echo "${ECHO_T}$ac_cv_c_inline" >&6
2884
2885
2886case $ac_cv_c_inline in
2887 inline | yes) ;;
2888 *)
2889 case $ac_cv_c_inline in
2890 no) ac_val=;;
2891 *) ac_val=$ac_cv_c_inline;;
2892 esac
2893 cat >>confdefs.h <<_ACEOF
2894#ifndef __cplusplus
2895#define inline $ac_val
2896#endif
2897_ACEOF
2898 ;;
2899esac
2900
2901
2902for ac_prog in gawk mawk nawk awk
2903do
2904 # Extract the first word of "$ac_prog", so it can be a program name with args.
2905set dummy $ac_prog; ac_word=$2
2906echo "$as_me:$LINENO: checking for $ac_word" >&5
2907echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2908if test "${ac_cv_prog_AWK+set}" = set; then
2909 echo $ECHO_N "(cached) $ECHO_C" >&6
2910else
2911 if test -n "$AWK"; then
2912 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2913else
2914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2915for as_dir in $PATH
2916do
2917 IFS=$as_save_IFS
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
2923 break 2
2924 fi
2925done
2926done
2927
2928fi
2929fi
2930AWK=$ac_cv_prog_AWK
2931if test -n "$AWK"; then
2932 echo "$as_me:$LINENO: result: $AWK" >&5
2933echo "${ECHO_T}$AWK" >&6
2934else
2935 echo "$as_me:$LINENO: result: no" >&5
2936echo "${ECHO_T}no" >&6
2937fi
2938
2939 test -n "$AWK" && break
2940done
2941
2942ac_ext=c
2943ac_cpp='$CPP $CPPFLAGS'
2944ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2945ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2946ac_compiler_gnu=$ac_cv_c_compiler_gnu
2947if 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.
2949set dummy ${ac_tool_prefix}gcc; ac_word=$2
2950echo "$as_me:$LINENO: checking for $ac_word" >&5
2951echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2952if test "${ac_cv_prog_CC+set}" = set; then
2953 echo $ECHO_N "(cached) $ECHO_C" >&6
2954else
2955 if test -n "$CC"; then
2956 ac_cv_prog_CC="$CC" # Let the user override the test.
2957else
2958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2959for as_dir in $PATH
2960do
2961 IFS=$as_save_IFS
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
2967 break 2
2968 fi
2969done
2970done
2971
2972fi
2973fi
2974CC=$ac_cv_prog_CC
2975if test -n "$CC"; then
2976 echo "$as_me:$LINENO: result: $CC" >&5
2977echo "${ECHO_T}$CC" >&6
2978else
2979 echo "$as_me:$LINENO: result: no" >&5
2980echo "${ECHO_T}no" >&6
2981fi
2982
2983fi
2984if test -z "$ac_cv_prog_CC"; then
2985 ac_ct_CC=$CC
2986 # Extract the first word of "gcc", so it can be a program name with args.
2987set dummy gcc; ac_word=$2
2988echo "$as_me:$LINENO: checking for $ac_word" >&5
2989echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2990if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2991 echo $ECHO_N "(cached) $ECHO_C" >&6
2992else
2993 if test -n "$ac_ct_CC"; then
2994 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2995else
2996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2997for as_dir in $PATH
2998do
2999 IFS=$as_save_IFS
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
3005 break 2
3006 fi
3007done
3008done
3009
3010fi
3011fi
3012ac_ct_CC=$ac_cv_prog_ac_ct_CC
3013if test -n "$ac_ct_CC"; then
3014 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3015echo "${ECHO_T}$ac_ct_CC" >&6
3016else
3017 echo "$as_me:$LINENO: result: no" >&5
3018echo "${ECHO_T}no" >&6
3019fi
3020
3021 CC=$ac_ct_CC
3022else
3023 CC="$ac_cv_prog_CC"
3024fi
3025
3026if 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.
3029set dummy ${ac_tool_prefix}cc; ac_word=$2
3030echo "$as_me:$LINENO: checking for $ac_word" >&5
3031echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3032if test "${ac_cv_prog_CC+set}" = set; then
3033 echo $ECHO_N "(cached) $ECHO_C" >&6
3034else
3035 if test -n "$CC"; then
3036 ac_cv_prog_CC="$CC" # Let the user override the test.
3037else
3038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3039for as_dir in $PATH
3040do
3041 IFS=$as_save_IFS
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
3047 break 2
3048 fi
3049done
3050done
3051
3052fi
3053fi
3054CC=$ac_cv_prog_CC
3055if test -n "$CC"; then
3056 echo "$as_me:$LINENO: result: $CC" >&5
3057echo "${ECHO_T}$CC" >&6
3058else
3059 echo "$as_me:$LINENO: result: no" >&5
3060echo "${ECHO_T}no" >&6
3061fi
3062
3063fi
3064if test -z "$ac_cv_prog_CC"; then
3065 ac_ct_CC=$CC
3066 # Extract the first word of "cc", so it can be a program name with args.
3067set dummy cc; ac_word=$2
3068echo "$as_me:$LINENO: checking for $ac_word" >&5
3069echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3070if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3071 echo $ECHO_N "(cached) $ECHO_C" >&6
3072else
3073 if test -n "$ac_ct_CC"; then
3074 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3075else
3076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3077for as_dir in $PATH
3078do
3079 IFS=$as_save_IFS
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
3085 break 2
3086 fi
3087done
3088done
3089
3090fi
3091fi
3092ac_ct_CC=$ac_cv_prog_ac_ct_CC
3093if test -n "$ac_ct_CC"; then
3094 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3095echo "${ECHO_T}$ac_ct_CC" >&6
3096else
3097 echo "$as_me:$LINENO: result: no" >&5
3098echo "${ECHO_T}no" >&6
3099fi
3100
3101 CC=$ac_ct_CC
3102else
3103 CC="$ac_cv_prog_CC"
3104fi
3105
3106fi
3107if test -z "$CC"; then
3108 # Extract the first word of "cc", so it can be a program name with args.
3109set dummy cc; ac_word=$2
3110echo "$as_me:$LINENO: checking for $ac_word" >&5
3111echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3112if test "${ac_cv_prog_CC+set}" = set; then
3113 echo $ECHO_N "(cached) $ECHO_C" >&6
3114else
3115 if test -n "$CC"; then
3116 ac_cv_prog_CC="$CC" # Let the user override the test.
3117else
3118 ac_prog_rejected=no
3119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3120for as_dir in $PATH
3121do
3122 IFS=$as_save_IFS
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
3128 continue
3129 fi
3130 ac_cv_prog_CC="cc"
3131 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3132 break 2
3133 fi
3134done
3135done
3136
3137if 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
3140 shift
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.
3145 shift
3146 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3147 fi
3148fi
3149fi
3150fi
3151CC=$ac_cv_prog_CC
3152if test -n "$CC"; then
3153 echo "$as_me:$LINENO: result: $CC" >&5
3154echo "${ECHO_T}$CC" >&6
3155else
3156 echo "$as_me:$LINENO: result: no" >&5
3157echo "${ECHO_T}no" >&6
3158fi
3159
3160fi
3161if test -z "$CC"; then
3162 if test -n "$ac_tool_prefix"; then
3163 for ac_prog in cl
3164 do
3165 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3166set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3167echo "$as_me:$LINENO: checking for $ac_word" >&5
3168echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3169if test "${ac_cv_prog_CC+set}" = set; then
3170 echo $ECHO_N "(cached) $ECHO_C" >&6
3171else
3172 if test -n "$CC"; then
3173 ac_cv_prog_CC="$CC" # Let the user override the test.
3174else
3175as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3176for as_dir in $PATH
3177do
3178 IFS=$as_save_IFS
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
3184 break 2
3185 fi
3186done
3187done
3188
3189fi
3190fi
3191CC=$ac_cv_prog_CC
3192if test -n "$CC"; then
3193 echo "$as_me:$LINENO: result: $CC" >&5
3194echo "${ECHO_T}$CC" >&6
3195else
3196 echo "$as_me:$LINENO: result: no" >&5
3197echo "${ECHO_T}no" >&6
3198fi
3199
3200 test -n "$CC" && break
3201 done
3202fi
3203if test -z "$CC"; then
3204 ac_ct_CC=$CC
3205 for ac_prog in cl
3206do
3207 # Extract the first word of "$ac_prog", so it can be a program name with args.
3208set dummy $ac_prog; ac_word=$2
3209echo "$as_me:$LINENO: checking for $ac_word" >&5
3210echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3211if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3212 echo $ECHO_N "(cached) $ECHO_C" >&6
3213else
3214 if test -n "$ac_ct_CC"; then
3215 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3216else
3217as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3218for as_dir in $PATH
3219do
3220 IFS=$as_save_IFS
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
3226 break 2
3227 fi
3228done
3229done
3230
3231fi
3232fi
3233ac_ct_CC=$ac_cv_prog_ac_ct_CC
3234if test -n "$ac_ct_CC"; then
3235 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3236echo "${ECHO_T}$ac_ct_CC" >&6
3237else
3238 echo "$as_me:$LINENO: result: no" >&5
3239echo "${ECHO_T}no" >&6
3240fi
3241
3242 test -n "$ac_ct_CC" && break
3243done
3244
3245 CC=$ac_ct_CC
3246fi
3247
3248fi
3249
3250
3251test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3252See \`config.log' for more details." >&5
3253echo "$as_me: error: no acceptable C compiler found in \$PATH
3254See \`config.log' for more details." >&2;}
3255 { (exit 1); exit 1; }; }
3256
3257# Provide some information about the compiler.
3258echo "$as_me:$LINENO:" \
3259 "checking for C compiler version" >&5
3260ac_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
3263 ac_status=$?
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
3268 ac_status=$?
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
3273 ac_status=$?
3274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3275 (exit $ac_status); }
3276
3277echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3278echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3279if test "${ac_cv_c_compiler_gnu+set}" = set; then
3280 echo $ECHO_N "(cached) $ECHO_C" >&6
3281else
3282 cat >conftest.$ac_ext <<_ACEOF
3283/* confdefs.h. */
3284_ACEOF
3285cat confdefs.h >>conftest.$ac_ext
3286cat >>conftest.$ac_ext <<_ACEOF
3287/* end confdefs.h. */
3288
3289int
3290main ()
3291{
3292#ifndef __GNUC__
3293 choke me
3294#endif
3295
3296 ;
3297 return 0;
3298}
3299_ACEOF
3300rm -f conftest.$ac_objext
3301if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3302 (eval $ac_compile) 2>conftest.er1
3303 ac_status=$?
3304 grep -v '^ *+' conftest.er1 >conftest.err
3305 rm -f conftest.er1
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
3311 (eval $ac_try) 2>&5
3312 ac_status=$?
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
3317 (eval $ac_try) 2>&5
3318 ac_status=$?
3319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320 (exit $ac_status); }; }; then
3321 ac_compiler_gnu=yes
3322else
3323 echo "$as_me: failed program was:" >&5
3324sed 's/^/| /' conftest.$ac_ext >&5
3325
3326ac_compiler_gnu=no
3327fi
3328rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3329ac_cv_c_compiler_gnu=$ac_compiler_gnu
3330
3331fi
3332echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3333echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3334GCC=`test $ac_compiler_gnu = yes && echo yes`
3335ac_test_CFLAGS=${CFLAGS+set}
3336ac_save_CFLAGS=$CFLAGS
3337CFLAGS="-g"
3338echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3339echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3340if test "${ac_cv_prog_cc_g+set}" = set; then
3341 echo $ECHO_N "(cached) $ECHO_C" >&6
3342else
3343 cat >conftest.$ac_ext <<_ACEOF
3344/* confdefs.h. */
3345_ACEOF
3346cat confdefs.h >>conftest.$ac_ext
3347cat >>conftest.$ac_ext <<_ACEOF
3348/* end confdefs.h. */
3349
3350int
3351main ()
3352{
3353
3354 ;
3355 return 0;
3356}
3357_ACEOF
3358rm -f conftest.$ac_objext
3359if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3360 (eval $ac_compile) 2>conftest.er1
3361 ac_status=$?
3362 grep -v '^ *+' conftest.er1 >conftest.err
3363 rm -f conftest.er1
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
3369 (eval $ac_try) 2>&5
3370 ac_status=$?
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
3375 (eval $ac_try) 2>&5
3376 ac_status=$?
3377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3378 (exit $ac_status); }; }; then
3379 ac_cv_prog_cc_g=yes
3380else
3381 echo "$as_me: failed program was:" >&5
3382sed 's/^/| /' conftest.$ac_ext >&5
3383
3384ac_cv_prog_cc_g=no
3385fi
3386rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3387fi
3388echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3389echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3390if test "$ac_test_CFLAGS" = set; then
3391 CFLAGS=$ac_save_CFLAGS
3392elif test $ac_cv_prog_cc_g = yes; then
3393 if test "$GCC" = yes; then
3394 CFLAGS="-g -O2"
3395 else
3396 CFLAGS="-g"
3397 fi
3398else
3399 if test "$GCC" = yes; then
3400 CFLAGS="-O2"
3401 else
3402 CFLAGS=
3403 fi
3404fi
3405echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3406echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3407if test "${ac_cv_prog_cc_stdc+set}" = set; then
3408 echo $ECHO_N "(cached) $ECHO_C" >&6
3409else
3410 ac_cv_prog_cc_stdc=no
3411ac_save_CC=$CC
3412cat >conftest.$ac_ext <<_ACEOF
3413/* confdefs.h. */
3414_ACEOF
3415cat confdefs.h >>conftest.$ac_ext
3416cat >>conftest.$ac_ext <<_ACEOF
3417/* end confdefs.h. */
3418#include <stdarg.h>
3419#include <stdio.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. */
3423struct buf { int x; };
3424FILE * (*rcsopen) (struct buf *, struct stat *, int);
3425static char *e (p, i)
3426 char **p;
3427 int i;
3428{
3429 return p[i];
3430}
3431static char *f (char * (*g) (char **, int), char **p, ...)
3432{
3433 char *s;
3434 va_list v;
3435 va_start (v,p);
3436 s = g (p, va_arg (v,int));
3437 va_end (v);
3438 return s;
3439}
3440
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. */
3448int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3449
3450int test (int i, double x);
3451struct s1 {int (*f) (int a);};
3452struct s2 {int (*f) (double a);};
3453int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3454int argc;
3455char **argv;
3456int
3457main ()
3458{
3459return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3460 ;
3461 return 0;
3462}
3463_ACEOF
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__
3471for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3472do
3473 CC="$ac_save_CC $ac_arg"
3474 rm -f conftest.$ac_objext
3475if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3476 (eval $ac_compile) 2>conftest.er1
3477 ac_status=$?
3478 grep -v '^ *+' conftest.er1 >conftest.err
3479 rm -f conftest.er1
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
3485 (eval $ac_try) 2>&5
3486 ac_status=$?
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
3491 (eval $ac_try) 2>&5
3492 ac_status=$?
3493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3494 (exit $ac_status); }; }; then
3495 ac_cv_prog_cc_stdc=$ac_arg
3496break
3497else
3498 echo "$as_me: failed program was:" >&5
3499sed 's/^/| /' conftest.$ac_ext >&5
3500
3501fi
3502rm -f conftest.err conftest.$ac_objext
3503done
3504rm -f conftest.$ac_ext conftest.$ac_objext
3505CC=$ac_save_CC
3506
3507fi
3508
3509case "x$ac_cv_prog_cc_stdc" in
3510 x|xno)
3511 echo "$as_me:$LINENO: result: none needed" >&5
3512echo "${ECHO_T}none needed" >&6 ;;
3513 *)
3514 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3515echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3516 CC="$CC $ac_cv_prog_cc_stdc" ;;
3517esac
3518
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.
3523cat >conftest.$ac_ext <<_ACEOF
3524#ifndef __cplusplus
3525 choke me
3526#endif
3527_ACEOF
3528rm -f conftest.$ac_objext
3529if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3530 (eval $ac_compile) 2>conftest.er1
3531 ac_status=$?
3532 grep -v '^ *+' conftest.er1 >conftest.err
3533 rm -f conftest.er1
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
3539 (eval $ac_try) 2>&5
3540 ac_status=$?
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
3545 (eval $ac_try) 2>&5
3546 ac_status=$?
3547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3548 (exit $ac_status); }; }; then
3549 for ac_declaration in \
3550 '' \
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);' \
3555 'void exit (int);'
3556do
3557 cat >conftest.$ac_ext <<_ACEOF
3558/* confdefs.h. */
3559_ACEOF
3560cat confdefs.h >>conftest.$ac_ext
3561cat >>conftest.$ac_ext <<_ACEOF
3562/* end confdefs.h. */
3563$ac_declaration
3564#include <stdlib.h>
3565int
3566main ()
3567{
3568exit (42);
3569 ;
3570 return 0;
3571}
3572_ACEOF
3573rm -f conftest.$ac_objext
3574if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3575 (eval $ac_compile) 2>conftest.er1
3576 ac_status=$?
3577 grep -v '^ *+' conftest.er1 >conftest.err
3578 rm -f conftest.er1
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
3584 (eval $ac_try) 2>&5
3585 ac_status=$?
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
3590 (eval $ac_try) 2>&5
3591 ac_status=$?
3592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3593 (exit $ac_status); }; }; then
3594 :
3595else
3596 echo "$as_me: failed program was:" >&5
3597sed 's/^/| /' conftest.$ac_ext >&5
3598
3599continue
3600fi
3601rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3602 cat >conftest.$ac_ext <<_ACEOF
3603/* confdefs.h. */
3604_ACEOF
3605cat confdefs.h >>conftest.$ac_ext
3606cat >>conftest.$ac_ext <<_ACEOF
3607/* end confdefs.h. */
3608$ac_declaration
3609int
3610main ()
3611{
3612exit (42);
3613 ;
3614 return 0;
3615}
3616_ACEOF
3617rm -f conftest.$ac_objext
3618if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3619 (eval $ac_compile) 2>conftest.er1
3620 ac_status=$?
3621 grep -v '^ *+' conftest.er1 >conftest.err
3622 rm -f conftest.er1
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
3628 (eval $ac_try) 2>&5
3629 ac_status=$?
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
3634 (eval $ac_try) 2>&5
3635 ac_status=$?
3636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3637 (exit $ac_status); }; }; then
3638 break
3639else
3640 echo "$as_me: failed program was:" >&5
3641sed 's/^/| /' conftest.$ac_ext >&5
3642
3643fi
3644rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3645done
3646rm -f conftest*
3647if test -n "$ac_declaration"; then
3648 echo '#ifdef __cplusplus' >>confdefs.h
3649 echo $ac_declaration >>confdefs.h
3650 echo '#endif' >>confdefs.h
3651fi
3652
3653else
3654 echo "$as_me: failed program was:" >&5
3655sed 's/^/| /' conftest.$ac_ext >&5
3656
3657fi
3658rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3659ac_ext=c
3660ac_cpp='$CPP $CPPFLAGS'
3661ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3662ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3663ac_compiler_gnu=$ac_cv_c_compiler_gnu
3664
b3076f16
AS
3665if 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.
3667set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3668echo "$as_me:$LINENO: checking for $ac_word" >&5
3669echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3670if test "${ac_cv_prog_RANLIB+set}" = set; then
3671 echo $ECHO_N "(cached) $ECHO_C" >&6
3672else
3673 if test -n "$RANLIB"; then
3674 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3675else
3676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3677for as_dir in $PATH
3678do
3679 IFS=$as_save_IFS
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
3685 break 2
3686 fi
3687done
3688done
3689
3690fi
3691fi
3692RANLIB=$ac_cv_prog_RANLIB
3693if test -n "$RANLIB"; then
3694 echo "$as_me:$LINENO: result: $RANLIB" >&5
3695echo "${ECHO_T}$RANLIB" >&6
3696else
3697 echo "$as_me:$LINENO: result: no" >&5
3698echo "${ECHO_T}no" >&6
3699fi
3700
3701fi
3702if 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.
3705set dummy ranlib; ac_word=$2
3706echo "$as_me:$LINENO: checking for $ac_word" >&5
3707echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3708if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3709 echo $ECHO_N "(cached) $ECHO_C" >&6
3710else
3711 if test -n "$ac_ct_RANLIB"; then
3712 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3713else
3714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3715for as_dir in $PATH
3716do
3717 IFS=$as_save_IFS
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
3723 break 2
3724 fi
3725done
3726done
3727
3728 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3729fi
3730fi
3731ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3732if test -n "$ac_ct_RANLIB"; then
3733 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3734echo "${ECHO_T}$ac_ct_RANLIB" >&6
3735else
3736 echo "$as_me:$LINENO: result: no" >&5
3737echo "${ECHO_T}no" >&6
3738fi
3739
3740 RANLIB=$ac_ct_RANLIB
3741else
3742 RANLIB="$ac_cv_prog_RANLIB"
3743fi
3744
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
3751# AIX /bin/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.
3758echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3759echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3760if test -z "$INSTALL"; then
3761if test "${ac_cv_path_install+set}" = set; then
3762 echo $ECHO_N "(cached) $ECHO_C" >&6
3763else
3764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3765for as_dir in $PATH
3766do
3767 IFS=$as_save_IFS
3768 test -z "$as_dir" && as_dir=.
3769 # Account for people who put trailing slashes in PATH elements.
3770case $as_dir/ in
3771 ./ | .// | /cC/* | \
3772 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3773 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3774 /usr/ucb/* ) ;;
3775 *)
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
3778 # by default.
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.
3785 :
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.
3789 :
3790 else
3791 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3792 break 3
3793 fi
3794 fi
3795 done
3796 done
3797 ;;
3798esac
3799done
3800
3801
3802fi
3803 if test "${ac_cv_path_install+set}" = set; then
3804 INSTALL=$ac_cv_path_install
3805 else
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
3811 fi
3812fi
3813echo "$as_me:$LINENO: result: $INSTALL" >&5
3814echo "${ECHO_T}$INSTALL" >&6
3815
3816# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3817# It thinks the first close brace ends the variable substitution.
3818test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3819
3820test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3821
3822test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3823
3824echo "$as_me:$LINENO: checking whether ln -s works" >&5
3825echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3826LN_S=$as_ln_s
3827if test "$LN_S" = "ln -s"; then
3828 echo "$as_me:$LINENO: result: yes" >&5
3829echo "${ECHO_T}yes" >&6
3830else
3831 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3832echo "${ECHO_T}no, using $LN_S" >&6
3833fi
3834
3835echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3836echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3837set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3838if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3839 echo $ECHO_N "(cached) $ECHO_C" >&6
3840else
3841 cat >conftest.make <<\_ACEOF
3842all:
3843 @echo 'ac_maketemp="$(MAKE)"'
3844_ACEOF
3845# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3846eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3847if test -n "$ac_maketemp"; then
3848 eval ac_cv_prog_make_${ac_make}_set=yes
3849else
3850 eval ac_cv_prog_make_${ac_make}_set=no
3851fi
3852rm -f conftest.make
3853fi
3854if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3855 echo "$as_me:$LINENO: result: yes" >&5
3856echo "${ECHO_T}yes" >&6
3857 SET_MAKE=
3858else
3859 echo "$as_me:$LINENO: result: no" >&5
3860echo "${ECHO_T}no" >&6
3861 SET_MAKE="MAKE=${MAKE-make}"
3862fi
3863
3864ac_ext=c
3865ac_cpp='$CPP $CPPFLAGS'
3866ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3867ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3868ac_compiler_gnu=$ac_cv_c_compiler_gnu
3869echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3870echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3871# On Suns, sometimes $CPP names a directory.
3872if test -n "$CPP" && test -d "$CPP"; then
3873 CPP=
3874fi
3875if test -z "$CPP"; then
3876 if test "${ac_cv_prog_CPP+set}" = set; then
3877 echo $ECHO_N "(cached) $ECHO_C" >&6
3878else
3879 # Double quotes because CPP needs to be expanded
3880 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3881 do
3882 ac_preproc_ok=false
3883for ac_c_preproc_warn_flag in '' yes
3884do
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
3892/* confdefs.h. */
3893_ACEOF
3894cat confdefs.h >>conftest.$ac_ext
3895cat >>conftest.$ac_ext <<_ACEOF
3896/* end confdefs.h. */
3897#ifdef __STDC__
3898# include <limits.h>
3899#else
3900# include <assert.h>
3901#endif
3902 Syntax error
3903_ACEOF
3904if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3905 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3906 ac_status=$?
3907 grep -v '^ *+' conftest.er1 >conftest.err
3908 rm -f conftest.er1
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
3915 else
3916 ac_cpp_err=
3917 fi
3918else
3919 ac_cpp_err=yes
3920fi
3921if test -z "$ac_cpp_err"; then
3922 :
3923else
3924 echo "$as_me: failed program was:" >&5
3925sed 's/^/| /' conftest.$ac_ext >&5
3926
3927 # Broken: fails on valid input.
3928continue
3929fi
3930rm -f conftest.err conftest.$ac_ext
3931
3932 # OK, works on sane cases. Now check whether non-existent headers
3933 # can be detected and how.
3934 cat >conftest.$ac_ext <<_ACEOF
3935/* confdefs.h. */
3936_ACEOF
3937cat confdefs.h >>conftest.$ac_ext
3938cat >>conftest.$ac_ext <<_ACEOF
3939/* end confdefs.h. */
3940#include <ac_nonexistent.h>
3941_ACEOF
3942if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3943 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3944 ac_status=$?
3945 grep -v '^ *+' conftest.er1 >conftest.err
3946 rm -f conftest.er1
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
3953 else
3954 ac_cpp_err=
3955 fi
3956else
3957 ac_cpp_err=yes
3958fi
3959if test -z "$ac_cpp_err"; then
3960 # Broken: success on invalid input.
3961continue
3962else
3963 echo "$as_me: failed program was:" >&5
3964sed 's/^/| /' conftest.$ac_ext >&5
3965
3966 # Passes both tests.
3967ac_preproc_ok=:
3968break
3969fi
3970rm -f conftest.err conftest.$ac_ext
3971
3972done
3973# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3974rm -f conftest.err conftest.$ac_ext
3975if $ac_preproc_ok; then
3976 break
3977fi
3978
3979 done
3980 ac_cv_prog_CPP=$CPP
3981
3982fi
3983 CPP=$ac_cv_prog_CPP
3984else
3985 ac_cv_prog_CPP=$CPP
3986fi
3987echo "$as_me:$LINENO: result: $CPP" >&5
3988echo "${ECHO_T}$CPP" >&6
3989ac_preproc_ok=false
3990for ac_c_preproc_warn_flag in '' yes
3991do
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
3999/* confdefs.h. */
4000_ACEOF
4001cat confdefs.h >>conftest.$ac_ext
4002cat >>conftest.$ac_ext <<_ACEOF
4003/* end confdefs.h. */
4004#ifdef __STDC__
4005# include <limits.h>
4006#else
4007# include <assert.h>
4008#endif
4009 Syntax error
4010_ACEOF
4011if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4012 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4013 ac_status=$?
4014 grep -v '^ *+' conftest.er1 >conftest.err
4015 rm -f conftest.er1
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
4022 else
4023 ac_cpp_err=
4024 fi
4025else
4026 ac_cpp_err=yes
4027fi
4028if test -z "$ac_cpp_err"; then
4029 :
4030else
4031 echo "$as_me: failed program was:" >&5
4032sed 's/^/| /' conftest.$ac_ext >&5
4033
4034 # Broken: fails on valid input.
4035continue
4036fi
4037rm -f conftest.err conftest.$ac_ext
4038
4039 # OK, works on sane cases. Now check whether non-existent headers
4040 # can be detected and how.
4041 cat >conftest.$ac_ext <<_ACEOF
4042/* confdefs.h. */
4043_ACEOF
4044cat confdefs.h >>conftest.$ac_ext
4045cat >>conftest.$ac_ext <<_ACEOF
4046/* end confdefs.h. */
4047#include <ac_nonexistent.h>
4048_ACEOF
4049if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4050 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4051 ac_status=$?
4052 grep -v '^ *+' conftest.er1 >conftest.err
4053 rm -f conftest.er1
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
4060 else
4061 ac_cpp_err=
4062 fi
4063else
4064 ac_cpp_err=yes
4065fi
4066if test -z "$ac_cpp_err"; then
4067 # Broken: success on invalid input.
4068continue
4069else
4070 echo "$as_me: failed program was:" >&5
4071sed 's/^/| /' conftest.$ac_ext >&5
4072
4073 # Passes both tests.
4074ac_preproc_ok=:
4075break
4076fi
4077rm -f conftest.err conftest.$ac_ext
4078
4079done
4080# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4081rm -f conftest.err conftest.$ac_ext
4082if $ac_preproc_ok; then
4083 :
4084else
4085 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4086See \`config.log' for more details." >&5
4087echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4088See \`config.log' for more details." >&2;}
4089 { (exit 1); exit 1; }; }
4090fi
4091
4092ac_ext=c
4093ac_cpp='$CPP $CPPFLAGS'
4094ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4095ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4096ac_compiler_gnu=$ac_cv_c_compiler_gnu
4097
4098
4099echo "$as_me:$LINENO: checking for egrep" >&5
4100echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4101if test "${ac_cv_prog_egrep+set}" = set; then
4102 echo $ECHO_N "(cached) $ECHO_C" >&6
4103else
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'
4107 fi
4108fi
4109echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4110echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4111 EGREP=$ac_cv_prog_egrep
4112
4113
4114if test $ac_cv_c_compiler_gnu = yes; then
4115 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4116echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
4117if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4118 echo $ECHO_N "(cached) $ECHO_C" >&6
4119else
4120 ac_pattern="Autoconf.*'x'"
4121 cat >conftest.$ac_ext <<_ACEOF
4122/* confdefs.h. */
4123_ACEOF
4124cat confdefs.h >>conftest.$ac_ext
4125cat >>conftest.$ac_ext <<_ACEOF
4126/* end confdefs.h. */
4127#include <sgtty.h>
4128Autoconf TIOCGETP
4129_ACEOF
4130if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4131 $EGREP "$ac_pattern" >/dev/null 2>&1; then
4132 ac_cv_prog_gcc_traditional=yes
4133else
4134 ac_cv_prog_gcc_traditional=no
4135fi
4136rm -f conftest*
4137
4138
4139 if test $ac_cv_prog_gcc_traditional = no; then
4140 cat >conftest.$ac_ext <<_ACEOF
4141/* confdefs.h. */
4142_ACEOF
4143cat confdefs.h >>conftest.$ac_ext
4144cat >>conftest.$ac_ext <<_ACEOF
4145/* end confdefs.h. */
4146#include <termio.h>
4147Autoconf TCGETA
4148_ACEOF
4149if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4150 $EGREP "$ac_pattern" >/dev/null 2>&1; then
4151 ac_cv_prog_gcc_traditional=yes
4152fi
4153rm -f conftest*
4154
4155 fi
4156fi
4157echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4158echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
4159 if test $ac_cv_prog_gcc_traditional = yes; then
4160 CC="$CC -traditional"
4161 fi
4162fi
4163
4164
4165case $target in
4166 *-freebsd2* | *-freebsdelf2* | *-freebsd*out3*)
4167 ANSI_SRC=""
4168 ;;
4169 *-freebsd3* | *-freebsdelf3* | *-freebsd*out3*)
4170 ANSI_SRC=""
4171
4172cat >>confdefs.h <<\_ACEOF
4173#define BROKEN_REGEX 1
4174_ACEOF
4175
4176 BROKEN_REGEX=yes
4177 ;;
4178 *-solaris*)
4179 EXTRA_DEFINE="-D__SOLARIS__"
4180 ANSI_SRC="-fno-builtin"
4181 ;;
4182 *-cygwin)
4183 ANSI_SRC="-fno-builtin"
4184 ;;
4185 *-linux*)
4186 EXTRA_DEFINE="-D_GNU_SOURCE"
4187 ANSI_SRC=""
4188 ;;
4189 *)
4190 ANSI_SRC=""
4191 ;;
4192esac
4193CFLAGS="$CFLAGS $EXTRA_DEFINE"
4194
4195
4196echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
4197echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
4198if test "${ac_cv_lib_socket_socket+set}" = set; then
4199 echo $ECHO_N "(cached) $ECHO_C" >&6
4200else
4201 ac_check_lib_save_LIBS=$LIBS
4202LIBS="-lsocket $LIBS"
4203cat >conftest.$ac_ext <<_ACEOF
4204/* confdefs.h. */
4205_ACEOF
4206cat confdefs.h >>conftest.$ac_ext
4207cat >>conftest.$ac_ext <<_ACEOF
4208/* end confdefs.h. */
4209
4210/* Override any gcc2 internal prototype to avoid an error. */
4211#ifdef __cplusplus
4212extern "C"
4213#endif
4214/* We use char because int might match the return type of a gcc2
4215 builtin and then its argument prototype would still apply. */
4216char socket ();
4217int
4218main ()
4219{
4220socket ();
4221 ;
4222 return 0;
4223}
4224_ACEOF
4225rm -f conftest.$ac_objext conftest$ac_exeext
4226if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4227 (eval $ac_link) 2>conftest.er1
4228 ac_status=$?
4229 grep -v '^ *+' conftest.er1 >conftest.err
4230 rm -f conftest.er1
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
4236 (eval $ac_try) 2>&5
4237 ac_status=$?
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
4242 (eval $ac_try) 2>&5
4243 ac_status=$?
4244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4245 (exit $ac_status); }; }; then
4246 ac_cv_lib_socket_socket=yes
4247else
4248 echo "$as_me: failed program was:" >&5
4249sed 's/^/| /' conftest.$ac_ext >&5
4250
4251ac_cv_lib_socket_socket=no
4252fi
4253rm -f conftest.err conftest.$ac_objext \
4254 conftest$ac_exeext conftest.$ac_ext
4255LIBS=$ac_check_lib_save_LIBS
4256fi
4257echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
4258echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
4259if test $ac_cv_lib_socket_socket = yes; then
4260 cat >>confdefs.h <<_ACEOF
4261#define HAVE_LIBSOCKET 1
4262_ACEOF
4263
4264 LIBS="-lsocket $LIBS"
4265
4266fi
4267
4268
4269echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4270echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4271if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4272 echo $ECHO_N "(cached) $ECHO_C" >&6
4273else
4274 ac_check_lib_save_LIBS=$LIBS
4275LIBS="-lnsl $LIBS"
4276cat >conftest.$ac_ext <<_ACEOF
4277/* confdefs.h. */
4278_ACEOF
4279cat confdefs.h >>conftest.$ac_ext
4280cat >>conftest.$ac_ext <<_ACEOF
4281/* end confdefs.h. */
4282
4283/* Override any gcc2 internal prototype to avoid an error. */
4284#ifdef __cplusplus
4285extern "C"
4286#endif
4287/* We use char because int might match the return type of a gcc2
4288 builtin and then its argument prototype would still apply. */
4289char gethostbyname ();
4290int
4291main ()
4292{
4293gethostbyname ();
4294 ;
4295 return 0;
4296}
4297_ACEOF
4298rm -f conftest.$ac_objext conftest$ac_exeext
4299if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4300 (eval $ac_link) 2>conftest.er1
4301 ac_status=$?
4302 grep -v '^ *+' conftest.er1 >conftest.err
4303 rm -f conftest.er1
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
4309 (eval $ac_try) 2>&5
4310 ac_status=$?
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
4315 (eval $ac_try) 2>&5
4316 ac_status=$?
4317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318 (exit $ac_status); }; }; then
4319 ac_cv_lib_nsl_gethostbyname=yes
4320else
4321 echo "$as_me: failed program was:" >&5
4322sed 's/^/| /' conftest.$ac_ext >&5
4323
4324ac_cv_lib_nsl_gethostbyname=no
4325fi
4326rm -f conftest.err conftest.$ac_objext \
4327 conftest$ac_exeext conftest.$ac_ext
4328LIBS=$ac_check_lib_save_LIBS
4329fi
4330echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4331echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
4332if test $ac_cv_lib_nsl_gethostbyname = yes; then
4333 cat >>confdefs.h <<_ACEOF
4334#define HAVE_LIBNSL 1
4335_ACEOF
4336
4337 LIBS="-lnsl $LIBS"
4338
4339fi
4340
4341
4342echo "$as_me:$LINENO: checking for main in -lm" >&5
4343echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
4344if test "${ac_cv_lib_m_main+set}" = set; then
4345 echo $ECHO_N "(cached) $ECHO_C" >&6
4346else
4347 ac_check_lib_save_LIBS=$LIBS
4348LIBS="-lm $LIBS"
4349cat >conftest.$ac_ext <<_ACEOF
4350/* confdefs.h. */
4351_ACEOF
4352cat confdefs.h >>conftest.$ac_ext
4353cat >>conftest.$ac_ext <<_ACEOF
4354/* end confdefs.h. */
4355
4356
4357int
4358main ()
4359{
4360main ();
4361 ;
4362 return 0;
4363}
4364_ACEOF
4365rm -f conftest.$ac_objext conftest$ac_exeext
4366if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4367 (eval $ac_link) 2>conftest.er1
4368 ac_status=$?
4369 grep -v '^ *+' conftest.er1 >conftest.err
4370 rm -f conftest.er1
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
4376 (eval $ac_try) 2>&5
4377 ac_status=$?
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
4382 (eval $ac_try) 2>&5
4383 ac_status=$?
4384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4385 (exit $ac_status); }; }; then
4386 ac_cv_lib_m_main=yes
4387else
4388 echo "$as_me: failed program was:" >&5
4389sed 's/^/| /' conftest.$ac_ext >&5
4390
4391ac_cv_lib_m_main=no
4392fi
4393rm -f conftest.err conftest.$ac_objext \
4394 conftest$ac_exeext conftest.$ac_ext
4395LIBS=$ac_check_lib_save_LIBS
4396fi
4397echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
4398echo "${ECHO_T}$ac_cv_lib_m_main" >&6
4399if test $ac_cv_lib_m_main = yes; then
4400 cat >>confdefs.h <<_ACEOF
4401#define HAVE_LIBM 1
4402_ACEOF
4403
4404 LIBS="-lm $LIBS"
4405
4406fi
4407
4408
4409echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4410echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4411if test "${ac_cv_header_stdc+set}" = set; then
4412 echo $ECHO_N "(cached) $ECHO_C" >&6
4413else
4414 cat >conftest.$ac_ext <<_ACEOF
4415/* confdefs.h. */
4416_ACEOF
4417cat confdefs.h >>conftest.$ac_ext
4418cat >>conftest.$ac_ext <<_ACEOF
4419/* end confdefs.h. */
4420#include <stdlib.h>
4421#include <stdarg.h>
4422#include <string.h>
4423#include <float.h>
4424
4425int
4426main ()
4427{
4428
4429 ;
4430 return 0;
4431}
4432_ACEOF
4433rm -f conftest.$ac_objext
4434if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4435 (eval $ac_compile) 2>conftest.er1
4436 ac_status=$?
4437 grep -v '^ *+' conftest.er1 >conftest.err
4438 rm -f conftest.er1
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
4444 (eval $ac_try) 2>&5
4445 ac_status=$?
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
4450 (eval $ac_try) 2>&5
4451 ac_status=$?
4452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4453 (exit $ac_status); }; }; then
4454 ac_cv_header_stdc=yes
4455else
4456 echo "$as_me: failed program was:" >&5
4457sed 's/^/| /' conftest.$ac_ext >&5
4458
4459ac_cv_header_stdc=no
4460fi
4461rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4462
4463if 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
4466/* confdefs.h. */
4467_ACEOF
4468cat confdefs.h >>conftest.$ac_ext
4469cat >>conftest.$ac_ext <<_ACEOF
4470/* end confdefs.h. */
4471#include <string.h>
4472
4473_ACEOF
4474if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4475 $EGREP "memchr" >/dev/null 2>&1; then
4476 :
4477else
4478 ac_cv_header_stdc=no
4479fi
4480rm -f conftest*
4481
4482fi
4483
4484if 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
4487/* confdefs.h. */
4488_ACEOF
4489cat confdefs.h >>conftest.$ac_ext
4490cat >>conftest.$ac_ext <<_ACEOF
4491/* end confdefs.h. */
4492#include <stdlib.h>
4493
4494_ACEOF
4495if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4496 $EGREP "free" >/dev/null 2>&1; then
4497 :
4498else
4499 ac_cv_header_stdc=no
4500fi
4501rm -f conftest*
4502
4503fi
4504
4505if 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
4508 :
4509else
4510 cat >conftest.$ac_ext <<_ACEOF
4511/* confdefs.h. */
4512_ACEOF
4513cat confdefs.h >>conftest.$ac_ext
4514cat >>conftest.$ac_ext <<_ACEOF
4515/* end confdefs.h. */
4516#include <ctype.h>
4517#if ((' ' & 0x0FF) == 0x020)
4518# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4519# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4520#else
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))
4526#endif
4527
4528#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4529int
4530main ()
4531{
4532 int i;
4533 for (i = 0; i < 256; i++)
4534 if (XOR (islower (i), ISLOWER (i))
4535 || toupper (i) != TOUPPER (i))
4536 exit(2);
4537 exit (0);
4538}
4539_ACEOF
4540rm -f conftest$ac_exeext
4541if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4542 (eval $ac_link) 2>&5
4543 ac_status=$?
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
4547 (eval $ac_try) 2>&5
4548 ac_status=$?
4549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4550 (exit $ac_status); }; }; then
4551 :
4552else
4553 echo "$as_me: program exited with status $ac_status" >&5
4554echo "$as_me: failed program was:" >&5
4555sed 's/^/| /' conftest.$ac_ext >&5
4556
4557( exit $ac_status )
4558ac_cv_header_stdc=no
4559fi
4560rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4561fi
4562fi
4563fi
4564echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4565echo "${ECHO_T}$ac_cv_header_stdc" >&6
4566if test $ac_cv_header_stdc = yes; then
4567
4568cat >>confdefs.h <<\_ACEOF
4569#define STDC_HEADERS 1
4570_ACEOF
4571
4572fi
4573
4574
4575echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4576echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
4577if test "${ac_cv_header_time+set}" = set; then
4578 echo $ECHO_N "(cached) $ECHO_C" >&6
4579else
4580 cat >conftest.$ac_ext <<_ACEOF
4581/* confdefs.h. */
4582_ACEOF
4583cat confdefs.h >>conftest.$ac_ext
4584cat >>conftest.$ac_ext <<_ACEOF
4585/* end confdefs.h. */
4586#include <sys/types.h>
4587#include <sys/time.h>
4588#include <time.h>
4589
4590int
4591main ()
4592{
4593if ((struct tm *) 0)
4594return 0;
4595 ;
4596 return 0;
4597}
4598_ACEOF
4599rm -f conftest.$ac_objext
4600if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4601 (eval $ac_compile) 2>conftest.er1
4602 ac_status=$?
4603 grep -v '^ *+' conftest.er1 >conftest.err
4604 rm -f conftest.er1
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
4610 (eval $ac_try) 2>&5
4611 ac_status=$?
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
4616 (eval $ac_try) 2>&5
4617 ac_status=$?
4618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4619 (exit $ac_status); }; }; then
4620 ac_cv_header_time=yes
4621else
4622 echo "$as_me: failed program was:" >&5
4623sed 's/^/| /' conftest.$ac_ext >&5
4624
4625ac_cv_header_time=no
4626fi
4627rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4628fi
4629echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4630echo "${ECHO_T}$ac_cv_header_time" >&6
4631if test $ac_cv_header_time = yes; then
4632
4633cat >>confdefs.h <<\_ACEOF
4634#define TIME_WITH_SYS_TIME 1
4635_ACEOF
4636
4637fi
4638
4639echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
4640echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
4641if test "${ac_cv_struct_tm+set}" = set; then
4642 echo $ECHO_N "(cached) $ECHO_C" >&6
4643else
4644 cat >conftest.$ac_ext <<_ACEOF
4645/* confdefs.h. */
4646_ACEOF
4647cat confdefs.h >>conftest.$ac_ext
4648cat >>conftest.$ac_ext <<_ACEOF
4649/* end confdefs.h. */
4650#include <sys/types.h>
4651#include <time.h>
4652
4653int
4654main ()
4655{
4656struct tm *tp; tp->tm_sec;
4657 ;
4658 return 0;
4659}
4660_ACEOF
4661rm -f conftest.$ac_objext
4662if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4663 (eval $ac_compile) 2>conftest.er1
4664 ac_status=$?
4665 grep -v '^ *+' conftest.er1 >conftest.err
4666 rm -f conftest.er1
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
4672 (eval $ac_try) 2>&5
4673 ac_status=$?
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
4678 (eval $ac_try) 2>&5
4679 ac_status=$?
4680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4681 (exit $ac_status); }; }; then
4682 ac_cv_struct_tm=time.h
4683else
4684 echo "$as_me: failed program was:" >&5
4685sed 's/^/| /' conftest.$ac_ext >&5
4686
4687ac_cv_struct_tm=sys/time.h
4688fi
4689rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4690fi
4691echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
4692echo "${ECHO_T}$ac_cv_struct_tm" >&6
4693if test $ac_cv_struct_tm = sys/time.h; then
4694
4695cat >>confdefs.h <<\_ACEOF
4696#define TM_IN_SYS_TIME 1
4697_ACEOF
4698
4699fi
4700
4701
4702# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4713 inttypes.h stdint.h unistd.h
4714do
4715as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4716echo "$as_me:$LINENO: checking for $ac_header" >&5
4717echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4718if eval "test \"\${$as_ac_Header+set}\" = set"; then
4719 echo $ECHO_N "(cached) $ECHO_C" >&6
4720else
4721 cat >conftest.$ac_ext <<_ACEOF
4722/* confdefs.h. */
4723_ACEOF
4724cat confdefs.h >>conftest.$ac_ext
4725cat >>conftest.$ac_ext <<_ACEOF
4726/* end confdefs.h. */
4727$ac_includes_default
4728
4729#include <$ac_header>
4730_ACEOF
4731rm -f conftest.$ac_objext
4732if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4733 (eval $ac_compile) 2>conftest.er1
4734 ac_status=$?
4735 grep -v '^ *+' conftest.er1 >conftest.err
4736 rm -f conftest.er1
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
4742 (eval $ac_try) 2>&5
4743 ac_status=$?
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
4748 (eval $ac_try) 2>&5
4749 ac_status=$?
4750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4751 (exit $ac_status); }; }; then
4752 eval "$as_ac_Header=yes"
4753else
4754 echo "$as_me: failed program was:" >&5
4755sed 's/^/| /' conftest.$ac_ext >&5
4756
4757eval "$as_ac_Header=no"
4758fi
4759rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4760fi
4761echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4762echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4763if test `eval echo '${'$as_ac_Header'}'` = yes; then
4764 cat >>confdefs.h <<_ACEOF
4765#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4766_ACEOF
4767
4768fi
4769
4770done
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793for 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
4794do
4795as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4796if eval "test \"\${$as_ac_Header+set}\" = set"; then
4797 echo "$as_me:$LINENO: checking for $ac_header" >&5
4798echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4799if eval "test \"\${$as_ac_Header+set}\" = set"; then
4800 echo $ECHO_N "(cached) $ECHO_C" >&6
4801fi
4802echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4803echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4804else
4805 # Is the header compilable?
4806echo "$as_me:$LINENO: checking $ac_header usability" >&5
4807echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4808cat >conftest.$ac_ext <<_ACEOF
4809/* confdefs.h. */
4810_ACEOF
4811cat confdefs.h >>conftest.$ac_ext
4812cat >>conftest.$ac_ext <<_ACEOF
4813/* end confdefs.h. */
4814$ac_includes_default
4815#include <$ac_header>
4816_ACEOF
4817rm -f conftest.$ac_objext
4818if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4819 (eval $ac_compile) 2>conftest.er1
4820 ac_status=$?
4821 grep -v '^ *+' conftest.er1 >conftest.err
4822 rm -f conftest.er1
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
4828 (eval $ac_try) 2>&5
4829 ac_status=$?
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
4834 (eval $ac_try) 2>&5
4835 ac_status=$?
4836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4837 (exit $ac_status); }; }; then
4838 ac_header_compiler=yes
4839else
4840 echo "$as_me: failed program was:" >&5
4841sed 's/^/| /' conftest.$ac_ext >&5
4842
4843ac_header_compiler=no
4844fi
4845rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4846echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4847echo "${ECHO_T}$ac_header_compiler" >&6
4848
4849# Is the header present?
4850echo "$as_me:$LINENO: checking $ac_header presence" >&5
4851echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4852cat >conftest.$ac_ext <<_ACEOF
4853/* confdefs.h. */
4854_ACEOF
4855cat confdefs.h >>conftest.$ac_ext
4856cat >>conftest.$ac_ext <<_ACEOF
4857/* end confdefs.h. */
4858#include <$ac_header>
4859_ACEOF
4860if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4861 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4862 ac_status=$?
4863 grep -v '^ *+' conftest.er1 >conftest.err
4864 rm -f conftest.er1
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
4871 else
4872 ac_cpp_err=
4873 fi
4874else
4875 ac_cpp_err=yes
4876fi
4877if test -z "$ac_cpp_err"; then
4878 ac_header_preproc=yes
4879else
4880 echo "$as_me: failed program was:" >&5
4881sed 's/^/| /' conftest.$ac_ext >&5
4882
4883 ac_header_preproc=no
4884fi
4885rm -f conftest.err conftest.$ac_ext
4886echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4887echo "${ECHO_T}$ac_header_preproc" >&6
4888
4889# So? What about this header?
4890case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4891 yes:no: )
4892 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4893echo "$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
4895echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4896 ac_header_preproc=yes
4897 ;;
4898 no:yes:* )
4899 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4900echo "$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
4902echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4903 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4904echo "$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
4906echo "$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
4908echo "$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
4910echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4911 (
4912 cat <<\_ASBOX
4913## ---------------------------------------------- ##
4914## Report this to srvx-bugs@lists.sourceforge.net ##
4915## ---------------------------------------------- ##
4916_ASBOX
4917 ) |
4918 sed "s/^/$as_me: WARNING: /" >&2
4919 ;;
4920esac
4921echo "$as_me:$LINENO: checking for $ac_header" >&5
4922echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4923if eval "test \"\${$as_ac_Header+set}\" = set"; then
4924 echo $ECHO_N "(cached) $ECHO_C" >&6
4925else
4926 eval "$as_ac_Header=\$ac_header_preproc"
4927fi
4928echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4929echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4930
4931fi
4932if test `eval echo '${'$as_ac_Header'}'` = yes; then
4933 cat >>confdefs.h <<_ACEOF
4934#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4935_ACEOF
4936
4937fi
4938
4939done
4940
4941
4942echo "$as_me:$LINENO: checking for struct dirent.d_type" >&5
4943echo $ECHO_N "checking for struct dirent.d_type... $ECHO_C" >&6
4944if test "${ac_cv_member_struct_dirent_d_type+set}" = set; then
4945 echo $ECHO_N "(cached) $ECHO_C" >&6
4946else
4947 cat >conftest.$ac_ext <<_ACEOF
4948/* confdefs.h. */
4949_ACEOF
4950cat confdefs.h >>conftest.$ac_ext
4951cat >>conftest.$ac_ext <<_ACEOF
4952/* end confdefs.h. */
4953#include <dirent.h>
4954
4955int
4956main ()
4957{
4958static struct dirent ac_aggr;
4959if (ac_aggr.d_type)
4960return 0;
4961 ;
4962 return 0;
4963}
4964_ACEOF
4965rm -f conftest.$ac_objext
4966if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4967 (eval $ac_compile) 2>conftest.er1
4968 ac_status=$?
4969 grep -v '^ *+' conftest.er1 >conftest.err
4970 rm -f conftest.er1
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
4976 (eval $ac_try) 2>&5
4977 ac_status=$?
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
4982 (eval $ac_try) 2>&5
4983 ac_status=$?
4984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985 (exit $ac_status); }; }; then
4986 ac_cv_member_struct_dirent_d_type=yes
4987else
4988 echo "$as_me: failed program was:" >&5
4989sed 's/^/| /' conftest.$ac_ext >&5
4990
4991cat >conftest.$ac_ext <<_ACEOF
4992/* confdefs.h. */
4993_ACEOF
4994cat confdefs.h >>conftest.$ac_ext
4995cat >>conftest.$ac_ext <<_ACEOF
4996/* end confdefs.h. */
4997#include <dirent.h>
4998
4999int
5000main ()
5001{
5002static struct dirent ac_aggr;
5003if (sizeof ac_aggr.d_type)
5004return 0;
5005 ;
5006 return 0;
5007}
5008_ACEOF
5009rm -f conftest.$ac_objext
5010if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5011 (eval $ac_compile) 2>conftest.er1
5012 ac_status=$?
5013 grep -v '^ *+' conftest.er1 >conftest.err
5014 rm -f conftest.er1
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
5020 (eval $ac_try) 2>&5
5021 ac_status=$?
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
5026 (eval $ac_try) 2>&5
5027 ac_status=$?
5028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5029 (exit $ac_status); }; }; then
5030 ac_cv_member_struct_dirent_d_type=yes
5031else
5032 echo "$as_me: failed program was:" >&5
5033sed 's/^/| /' conftest.$ac_ext >&5
5034
5035ac_cv_member_struct_dirent_d_type=no
5036fi
5037rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5038fi
5039rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5040fi
5041echo "$as_me:$LINENO: result: $ac_cv_member_struct_dirent_d_type" >&5
5042echo "${ECHO_T}$ac_cv_member_struct_dirent_d_type" >&6
5043if test $ac_cv_member_struct_dirent_d_type = yes; then
5044
5045cat >>confdefs.h <<\_ACEOF
5046#define HAVE_DIRENT_D_TYPE 1
5047_ACEOF
5048
5049fi
5050
5051
5052
5053for ac_func in gettimeofday
5054do
5055as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5056echo "$as_me:$LINENO: checking for $ac_func" >&5
5057echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5058if eval "test \"\${$as_ac_var+set}\" = set"; then
5059 echo $ECHO_N "(cached) $ECHO_C" >&6
5060else
5061 cat >conftest.$ac_ext <<_ACEOF
5062/* confdefs.h. */
5063_ACEOF
5064cat confdefs.h >>conftest.$ac_ext
5065cat >>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
5070
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. */
5075
5076#ifdef __STDC__
5077# include <limits.h>
5078#else
5079# include <assert.h>
5080#endif
5081
5082#undef $ac_func
5083
5084/* Override any gcc2 internal prototype to avoid an error. */
5085#ifdef __cplusplus
5086extern "C"
5087{
5088#endif
5089/* We use char because int might match the return type of a gcc2
5090 builtin and then its argument prototype would still apply. */
5091char $ac_func ();
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)
5096choke me
5097#else
5098char (*f) () = $ac_func;
5099#endif
5100#ifdef __cplusplus
5101}
5102#endif
5103
5104int
5105main ()
5106{
5107return f != $ac_func;
5108 ;
5109 return 0;
5110}
5111_ACEOF
5112rm -f conftest.$ac_objext conftest$ac_exeext
5113if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5114 (eval $ac_link) 2>conftest.er1
5115 ac_status=$?
5116 grep -v '^ *+' conftest.er1 >conftest.err
5117 rm -f conftest.er1
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
5123 (eval $ac_try) 2>&5
5124 ac_status=$?
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
5129 (eval $ac_try) 2>&5
5130 ac_status=$?
5131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5132 (exit $ac_status); }; }; then
5133 eval "$as_ac_var=yes"
5134else
5135 echo "$as_me: failed program was:" >&5
5136sed 's/^/| /' conftest.$ac_ext >&5
5137
5138eval "$as_ac_var=no"
5139fi
5140rm -f conftest.err conftest.$ac_objext \
5141 conftest$ac_exeext conftest.$ac_ext
5142fi
5143echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5144echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5145if test `eval echo '${'$as_ac_var'}'` = yes; then
5146 cat >>confdefs.h <<_ACEOF
5147#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5148_ACEOF
5149
5150fi
5151done
5152
5153if test $ac_cv_func_gettimeofday = no; then
5154
5155for ac_func in ftime
5156do
5157as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5158echo "$as_me:$LINENO: checking for $ac_func" >&5
5159echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5160if eval "test \"\${$as_ac_var+set}\" = set"; then
5161 echo $ECHO_N "(cached) $ECHO_C" >&6
5162else
5163 cat >conftest.$ac_ext <<_ACEOF
5164/* confdefs.h. */
5165_ACEOF
5166cat confdefs.h >>conftest.$ac_ext
5167cat >>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
5172
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. */
5177
5178#ifdef __STDC__
5179# include <limits.h>
5180#else
5181# include <assert.h>
5182#endif
5183
5184#undef $ac_func
5185
5186/* Override any gcc2 internal prototype to avoid an error. */
5187#ifdef __cplusplus
5188extern "C"
5189{
5190#endif
5191/* We use char because int might match the return type of a gcc2
5192 builtin and then its argument prototype would still apply. */
5193char $ac_func ();
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)
5198choke me
5199#else
5200char (*f) () = $ac_func;
5201#endif
5202#ifdef __cplusplus
5203}
5204#endif
5205
5206int
5207main ()
5208{
5209return f != $ac_func;
5210 ;
5211 return 0;
5212}
5213_ACEOF
5214rm -f conftest.$ac_objext conftest$ac_exeext
5215if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5216 (eval $ac_link) 2>conftest.er1
5217 ac_status=$?
5218 grep -v '^ *+' conftest.er1 >conftest.err
5219 rm -f conftest.er1
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
5225 (eval $ac_try) 2>&5
5226 ac_status=$?
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
5231 (eval $ac_try) 2>&5
5232 ac_status=$?
5233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5234 (exit $ac_status); }; }; then
5235 eval "$as_ac_var=yes"
5236else
5237 echo "$as_me: failed program was:" >&5
5238sed 's/^/| /' conftest.$ac_ext >&5
5239
5240eval "$as_ac_var=no"
5241fi
5242rm -f conftest.err conftest.$ac_objext \
5243 conftest$ac_exeext conftest.$ac_ext
5244fi
5245echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5246echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5247if test `eval echo '${'$as_ac_var'}'` = yes; then
5248 cat >>confdefs.h <<_ACEOF
5249#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5250_ACEOF
5251
5252else
5253 { { echo "$as_me:$LINENO: error: ftime or gettimeofday required. srvx build will fail." >&5
5254echo "$as_me: error: ftime or gettimeofday required. srvx build will fail." >&2;}
5255 { (exit 1); exit 1; }; }
5256fi
5257done
5258
5259fi
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276for ac_func in bcopy memcpy memset strdup strerror strsignal localtime_r setrlimit inet_ntoa getopt getopt_long regcomp regexec regfree sysconf
5277do
5278as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5279echo "$as_me:$LINENO: checking for $ac_func" >&5
5280echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5281if eval "test \"\${$as_ac_var+set}\" = set"; then
5282 echo $ECHO_N "(cached) $ECHO_C" >&6
5283else
5284 cat >conftest.$ac_ext <<_ACEOF
5285/* confdefs.h. */
5286_ACEOF
5287cat confdefs.h >>conftest.$ac_ext
5288cat >>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
5293
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. */
5298
5299#ifdef __STDC__
5300# include <limits.h>
5301#else
5302# include <assert.h>
5303#endif
5304
5305#undef $ac_func
5306
5307/* Override any gcc2 internal prototype to avoid an error. */
5308#ifdef __cplusplus
5309extern "C"
5310{
5311#endif
5312/* We use char because int might match the return type of a gcc2
5313 builtin and then its argument prototype would still apply. */
5314char $ac_func ();
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)
5319choke me
5320#else
5321char (*f) () = $ac_func;
5322#endif
5323#ifdef __cplusplus
5324}
5325#endif
5326
5327int
5328main ()
5329{
5330return f != $ac_func;
5331 ;
5332 return 0;
5333}
5334_ACEOF
5335rm -f conftest.$ac_objext conftest$ac_exeext
5336if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5337 (eval $ac_link) 2>conftest.er1
5338 ac_status=$?
5339 grep -v '^ *+' conftest.er1 >conftest.err
5340 rm -f conftest.er1
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
5346 (eval $ac_try) 2>&5
5347 ac_status=$?
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
5352 (eval $ac_try) 2>&5
5353 ac_status=$?
5354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5355 (exit $ac_status); }; }; then
5356 eval "$as_ac_var=yes"
5357else
5358 echo "$as_me: failed program was:" >&5
5359sed 's/^/| /' conftest.$ac_ext >&5
5360
5361eval "$as_ac_var=no"
5362fi
5363rm -f conftest.err conftest.$ac_objext \
5364 conftest$ac_exeext conftest.$ac_ext
5365fi
5366echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5367echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5368if test `eval echo '${'$as_ac_var'}'` = yes; then
5369 cat >>confdefs.h <<_ACEOF
5370#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5371_ACEOF
5372
5373fi
5374done
5375
5376
5377
5378
5379
5380
5381
5382
5383for ac_func in select socket strcspn strspn strtod strtoul
5384do
5385as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5386echo "$as_me:$LINENO: checking for $ac_func" >&5
5387echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5388if eval "test \"\${$as_ac_var+set}\" = set"; then
5389 echo $ECHO_N "(cached) $ECHO_C" >&6
5390else
5391 cat >conftest.$ac_ext <<_ACEOF
5392/* confdefs.h. */
5393_ACEOF
5394cat confdefs.h >>conftest.$ac_ext
5395cat >>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
5400
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. */
5405
5406#ifdef __STDC__
5407# include <limits.h>
5408#else
5409# include <assert.h>
5410#endif
5411
5412#undef $ac_func
5413
5414/* Override any gcc2 internal prototype to avoid an error. */
5415#ifdef __cplusplus
5416extern "C"
5417{
5418#endif
5419/* We use char because int might match the return type of a gcc2
5420 builtin and then its argument prototype would still apply. */
5421char $ac_func ();
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)
5426choke me
5427#else
5428char (*f) () = $ac_func;
5429#endif
5430#ifdef __cplusplus
5431}
5432#endif
5433
5434int
5435main ()
5436{
5437return f != $ac_func;
5438 ;
5439 return 0;
5440}
5441_ACEOF
5442rm -f conftest.$ac_objext conftest$ac_exeext
5443if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5444 (eval $ac_link) 2>conftest.er1
5445 ac_status=$?
5446 grep -v '^ *+' conftest.er1 >conftest.err
5447 rm -f conftest.er1
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
5453 (eval $ac_try) 2>&5
5454 ac_status=$?
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
5459 (eval $ac_try) 2>&5
5460 ac_status=$?
5461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5462 (exit $ac_status); }; }; then
5463 eval "$as_ac_var=yes"
5464else
5465 echo "$as_me: failed program was:" >&5
5466sed 's/^/| /' conftest.$ac_ext >&5
5467
5468eval "$as_ac_var=no"
5469fi
5470rm -f conftest.err conftest.$ac_objext \
5471 conftest$ac_exeext conftest.$ac_ext
5472fi
5473echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5474echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5475if test `eval echo '${'$as_ac_var'}'` = yes; then
5476 cat >>confdefs.h <<_ACEOF
5477#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5478_ACEOF
5479
5480else
5481 { { echo "$as_me:$LINENO: error: a required function was not found. srvx build will fail." >&5
5482echo "$as_me: error: a required function was not found. srvx build will fail." >&2;}
5483 { (exit 1); exit 1; }; }
5484fi
5485done
5486
5487
5488# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5489# for constant arguments. Useless!
5490echo "$as_me:$LINENO: checking for working alloca.h" >&5
5491echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
5492if test "${ac_cv_working_alloca_h+set}" = set; then
5493 echo $ECHO_N "(cached) $ECHO_C" >&6
5494else
5495 cat >conftest.$ac_ext <<_ACEOF
5496/* confdefs.h. */
5497_ACEOF
5498cat confdefs.h >>conftest.$ac_ext
5499cat >>conftest.$ac_ext <<_ACEOF
5500/* end confdefs.h. */
5501#include <alloca.h>
5502int
5503main ()
5504{
5505char *p = (char *) alloca (2 * sizeof (int));
5506 ;
5507 return 0;
5508}
5509_ACEOF
5510rm -f conftest.$ac_objext conftest$ac_exeext
5511if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5512 (eval $ac_link) 2>conftest.er1
5513 ac_status=$?
5514 grep -v '^ *+' conftest.er1 >conftest.err
5515 rm -f conftest.er1
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
5521 (eval $ac_try) 2>&5
5522 ac_status=$?
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
5527 (eval $ac_try) 2>&5
5528 ac_status=$?
5529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5530 (exit $ac_status); }; }; then
5531 ac_cv_working_alloca_h=yes
5532else
5533 echo "$as_me: failed program was:" >&5
5534sed 's/^/| /' conftest.$ac_ext >&5
5535
5536ac_cv_working_alloca_h=no
5537fi
5538rm -f conftest.err conftest.$ac_objext \
5539 conftest$ac_exeext conftest.$ac_ext
5540fi
5541echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
5542echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
5543if test $ac_cv_working_alloca_h = yes; then
5544
5545cat >>confdefs.h <<\_ACEOF
5546#define HAVE_ALLOCA_H 1
5547_ACEOF
5548
5549fi
5550
5551echo "$as_me:$LINENO: checking for alloca" >&5
5552echo $ECHO_N "checking for alloca... $ECHO_C" >&6
5553if test "${ac_cv_func_alloca_works+set}" = set; then
5554 echo $ECHO_N "(cached) $ECHO_C" >&6
5555else
5556 cat >conftest.$ac_ext <<_ACEOF
5557/* confdefs.h. */
5558_ACEOF
5559cat confdefs.h >>conftest.$ac_ext
5560cat >>conftest.$ac_ext <<_ACEOF
5561/* end confdefs.h. */
5562#ifdef __GNUC__
5563# define alloca __builtin_alloca
5564#else
5565# ifdef _MSC_VER
5566# include <malloc.h>
5567# define alloca _alloca
5568# else
5569# if HAVE_ALLOCA_H
5570# include <alloca.h>
5571# else
5572# ifdef _AIX
5573 #pragma alloca
5574# else
5575# ifndef alloca /* predefined by HP cc +Olibcalls */
5576char *alloca ();
5577# endif
5578# endif
5579# endif
5580# endif
5581#endif
5582
5583int
5584main ()
5585{
5586char *p = (char *) alloca (1);
5587 ;
5588 return 0;
5589}
5590_ACEOF
5591rm -f conftest.$ac_objext conftest$ac_exeext
5592if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5593 (eval $ac_link) 2>conftest.er1
5594 ac_status=$?
5595 grep -v '^ *+' conftest.er1 >conftest.err
5596 rm -f conftest.er1
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
5602 (eval $ac_try) 2>&5
5603 ac_status=$?
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
5608 (eval $ac_try) 2>&5
5609 ac_status=$?
5610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5611 (exit $ac_status); }; }; then
5612 ac_cv_func_alloca_works=yes
5613else
5614 echo "$as_me: failed program was:" >&5
5615sed 's/^/| /' conftest.$ac_ext >&5
5616
5617ac_cv_func_alloca_works=no
5618fi
5619rm -f conftest.err conftest.$ac_objext \
5620 conftest$ac_exeext conftest.$ac_ext
5621fi
5622echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
5623echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
5624
5625if test $ac_cv_func_alloca_works = yes; then
5626
5627cat >>confdefs.h <<\_ACEOF
5628#define HAVE_ALLOCA 1
5629_ACEOF
5630
5631else
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.
5636
5637ALLOCA=alloca.$ac_objext
5638
5639cat >>confdefs.h <<\_ACEOF
5640#define C_ALLOCA 1
5641_ACEOF
5642
5643
5644echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
5645echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
5646if test "${ac_cv_os_cray+set}" = set; then
5647 echo $ECHO_N "(cached) $ECHO_C" >&6
5648else
5649 cat >conftest.$ac_ext <<_ACEOF
5650/* confdefs.h. */
5651_ACEOF
5652cat confdefs.h >>conftest.$ac_ext
5653cat >>conftest.$ac_ext <<_ACEOF
5654/* end confdefs.h. */
5655#if defined(CRAY) && ! defined(CRAY2)
5656webecray
5657#else
5658wenotbecray
5659#endif
5660
5661_ACEOF
5662if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5663 $EGREP "webecray" >/dev/null 2>&1; then
5664 ac_cv_os_cray=yes
5665else
5666 ac_cv_os_cray=no
5667fi
5668rm -f conftest*
5669
5670fi
5671echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
5672echo "${ECHO_T}$ac_cv_os_cray" >&6
5673if 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`
5676echo "$as_me:$LINENO: checking for $ac_func" >&5
5677echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5678if eval "test \"\${$as_ac_var+set}\" = set"; then
5679 echo $ECHO_N "(cached) $ECHO_C" >&6
5680else
5681 cat >conftest.$ac_ext <<_ACEOF
5682/* confdefs.h. */
5683_ACEOF
5684cat confdefs.h >>conftest.$ac_ext
5685cat >>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
5690
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. */
5695
5696#ifdef __STDC__
5697# include <limits.h>
5698#else
5699# include <assert.h>
5700#endif
5701
5702#undef $ac_func
5703
5704/* Override any gcc2 internal prototype to avoid an error. */
5705#ifdef __cplusplus
5706extern "C"
5707{
5708#endif
5709/* We use char because int might match the return type of a gcc2
5710 builtin and then its argument prototype would still apply. */
5711char $ac_func ();
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)
5716choke me
5717#else
5718char (*f) () = $ac_func;
5719#endif
5720#ifdef __cplusplus
5721}
5722#endif
5723
5724int
5725main ()
5726{
5727return f != $ac_func;
5728 ;
5729 return 0;
5730}
5731_ACEOF
5732rm -f conftest.$ac_objext conftest$ac_exeext
5733if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5734 (eval $ac_link) 2>conftest.er1
5735 ac_status=$?
5736 grep -v '^ *+' conftest.er1 >conftest.err
5737 rm -f conftest.er1
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
5743 (eval $ac_try) 2>&5
5744 ac_status=$?
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
5749 (eval $ac_try) 2>&5
5750 ac_status=$?
5751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5752 (exit $ac_status); }; }; then
5753 eval "$as_ac_var=yes"
5754else
5755 echo "$as_me: failed program was:" >&5
5756sed 's/^/| /' conftest.$ac_ext >&5
5757
5758eval "$as_ac_var=no"
5759fi
5760rm -f conftest.err conftest.$ac_objext \
5761 conftest$ac_exeext conftest.$ac_ext
5762fi
5763echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5764echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5765if test `eval echo '${'$as_ac_var'}'` = yes; then
5766
5767cat >>confdefs.h <<_ACEOF
5768#define CRAY_STACKSEG_END $ac_func
5769_ACEOF
5770
5771 break
5772fi
5773
5774 done
5775fi
5776
5777echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
5778echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
5779if test "${ac_cv_c_stack_direction+set}" = set; then
5780 echo $ECHO_N "(cached) $ECHO_C" >&6
5781else
5782 if test "$cross_compiling" = yes; then
5783 ac_cv_c_stack_direction=0
5784else
5785 cat >conftest.$ac_ext <<_ACEOF
5786/* confdefs.h. */
5787_ACEOF
5788cat confdefs.h >>conftest.$ac_ext
5789cat >>conftest.$ac_ext <<_ACEOF
5790/* end confdefs.h. */
5791int
5792find_stack_direction ()
5793{
5794 static char *addr = 0;
5795 auto char dummy;
5796 if (addr == 0)
5797 {
5798 addr = &dummy;
5799 return find_stack_direction ();
5800 }
5801 else
5802 return (&dummy > addr) ? 1 : -1;
5803}
5804
5805int
5806main ()
5807{
5808 exit (find_stack_direction () < 0);
5809}
5810_ACEOF
5811rm -f conftest$ac_exeext
5812if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5813 (eval $ac_link) 2>&5
5814 ac_status=$?
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
5818 (eval $ac_try) 2>&5
5819 ac_status=$?
5820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5821 (exit $ac_status); }; }; then
5822 ac_cv_c_stack_direction=1
5823else
5824 echo "$as_me: program exited with status $ac_status" >&5
5825echo "$as_me: failed program was:" >&5
5826sed 's/^/| /' conftest.$ac_ext >&5
5827
5828( exit $ac_status )
5829ac_cv_c_stack_direction=-1
5830fi
5831rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5832fi
5833fi
5834echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
5835echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
5836
5837cat >>confdefs.h <<_ACEOF
5838#define STACK_DIRECTION $ac_cv_c_stack_direction
5839_ACEOF
5840
5841
5842fi
5843
5844
5845
5846for ac_header in stdlib.h unistd.h
5847do
5848as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5849if eval "test \"\${$as_ac_Header+set}\" = set"; then
5850 echo "$as_me:$LINENO: checking for $ac_header" >&5
5851echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5852if eval "test \"\${$as_ac_Header+set}\" = set"; then
5853 echo $ECHO_N "(cached) $ECHO_C" >&6
5854fi
5855echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5856echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5857else
5858 # Is the header compilable?
5859echo "$as_me:$LINENO: checking $ac_header usability" >&5
5860echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5861cat >conftest.$ac_ext <<_ACEOF
5862/* confdefs.h. */
5863_ACEOF
5864cat confdefs.h >>conftest.$ac_ext
5865cat >>conftest.$ac_ext <<_ACEOF
5866/* end confdefs.h. */
5867$ac_includes_default
5868#include <$ac_header>
5869_ACEOF
5870rm -f conftest.$ac_objext
5871if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5872 (eval $ac_compile) 2>conftest.er1
5873 ac_status=$?
5874 grep -v '^ *+' conftest.er1 >conftest.err
5875 rm -f conftest.er1
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
5881 (eval $ac_try) 2>&5
5882 ac_status=$?
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
5887 (eval $ac_try) 2>&5
5888 ac_status=$?
5889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5890 (exit $ac_status); }; }; then
5891 ac_header_compiler=yes
5892else
5893 echo "$as_me: failed program was:" >&5
5894sed 's/^/| /' conftest.$ac_ext >&5
5895
5896ac_header_compiler=no
5897fi
5898rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5899echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5900echo "${ECHO_T}$ac_header_compiler" >&6
5901
5902# Is the header present?
5903echo "$as_me:$LINENO: checking $ac_header presence" >&5
5904echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5905cat >conftest.$ac_ext <<_ACEOF
5906/* confdefs.h. */
5907_ACEOF
5908cat confdefs.h >>conftest.$ac_ext
5909cat >>conftest.$ac_ext <<_ACEOF
5910/* end confdefs.h. */
5911#include <$ac_header>
5912_ACEOF
5913if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5914 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5915 ac_status=$?
5916 grep -v '^ *+' conftest.er1 >conftest.err
5917 rm -f conftest.er1
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
5924 else
5925 ac_cpp_err=
5926 fi
5927else
5928 ac_cpp_err=yes
5929fi
5930if test -z "$ac_cpp_err"; then
5931 ac_header_preproc=yes
5932else
5933 echo "$as_me: failed program was:" >&5
5934sed 's/^/| /' conftest.$ac_ext >&5
5935
5936 ac_header_preproc=no
5937fi
5938rm -f conftest.err conftest.$ac_ext
5939echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5940echo "${ECHO_T}$ac_header_preproc" >&6
5941
5942# So? What about this header?
5943case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5944 yes:no: )
5945 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5946echo "$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
5948echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5949 ac_header_preproc=yes
5950 ;;
5951 no:yes:* )
5952 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5953echo "$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
5955echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5956 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5957echo "$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
5959echo "$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
5961echo "$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
5963echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5964 (
5965 cat <<\_ASBOX
5966## ---------------------------------------------- ##
5967## Report this to srvx-bugs@lists.sourceforge.net ##
5968## ---------------------------------------------- ##
5969_ASBOX
5970 ) |
5971 sed "s/^/$as_me: WARNING: /" >&2
5972 ;;
5973esac
5974echo "$as_me:$LINENO: checking for $ac_header" >&5
5975echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5976if eval "test \"\${$as_ac_Header+set}\" = set"; then
5977 echo $ECHO_N "(cached) $ECHO_C" >&6
5978else
5979 eval "$as_ac_Header=\$ac_header_preproc"
5980fi
5981echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5982echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5983
5984fi
5985if test `eval echo '${'$as_ac_Header'}'` = yes; then
5986 cat >>confdefs.h <<_ACEOF
5987#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5988_ACEOF
5989
5990fi
5991
5992done
5993
5994
5995for ac_func in getpagesize
5996do
5997as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5998echo "$as_me:$LINENO: checking for $ac_func" >&5
5999echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6000if eval "test \"\${$as_ac_var+set}\" = set"; then
6001 echo $ECHO_N "(cached) $ECHO_C" >&6
6002else
6003 cat >conftest.$ac_ext <<_ACEOF
6004/* confdefs.h. */
6005_ACEOF
6006cat confdefs.h >>conftest.$ac_ext
6007cat >>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
6012
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. */
6017
6018#ifdef __STDC__
6019# include <limits.h>
6020#else
6021# include <assert.h>
6022#endif
6023
6024#undef $ac_func
6025
6026/* Override any gcc2 internal prototype to avoid an error. */
6027#ifdef __cplusplus
6028extern "C"
6029{
6030#endif
6031/* We use char because int might match the return type of a gcc2
6032 builtin and then its argument prototype would still apply. */
6033char $ac_func ();
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)
6038choke me
6039#else
6040char (*f) () = $ac_func;
6041#endif
6042#ifdef __cplusplus
6043}
6044#endif
6045
6046int
6047main ()
6048{
6049return f != $ac_func;
6050 ;
6051 return 0;
6052}
6053_ACEOF
6054rm -f conftest.$ac_objext conftest$ac_exeext
6055if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6056 (eval $ac_link) 2>conftest.er1
6057 ac_status=$?
6058 grep -v '^ *+' conftest.er1 >conftest.err
6059 rm -f conftest.er1
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
6065 (eval $ac_try) 2>&5
6066 ac_status=$?
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
6071 (eval $ac_try) 2>&5
6072 ac_status=$?
6073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6074 (exit $ac_status); }; }; then
6075 eval "$as_ac_var=yes"
6076else
6077 echo "$as_me: failed program was:" >&5
6078sed 's/^/| /' conftest.$ac_ext >&5
6079
6080eval "$as_ac_var=no"
6081fi
6082rm -f conftest.err conftest.$ac_objext \
6083 conftest$ac_exeext conftest.$ac_ext
6084fi
6085echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6086echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6087if test `eval echo '${'$as_ac_var'}'` = yes; then
6088 cat >>confdefs.h <<_ACEOF
6089#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6090_ACEOF
6091
6092fi
6093done
6094
6095echo "$as_me:$LINENO: checking for working mmap" >&5
6096echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6097if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6098 echo $ECHO_N "(cached) $ECHO_C" >&6
6099else
6100 if test "$cross_compiling" = yes; then
6101 ac_cv_func_mmap_fixed_mapped=no
6102else
6103 cat >conftest.$ac_ext <<_ACEOF
6104/* confdefs.h. */
6105_ACEOF
6106cat confdefs.h >>conftest.$ac_ext
6107cat >>conftest.$ac_ext <<_ACEOF
6108/* end confdefs.h. */
6109$ac_includes_default
6110/* malloc might have been renamed as rpl_malloc. */
6111#undef malloc
6112
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.
6129
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) */
6134
6135#include <fcntl.h>
6136#include <sys/mman.h>
6137
6138#if !STDC_HEADERS && !HAVE_STDLIB_H
6139char *malloc ();
6140#endif
6141
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
6147# endif
6148
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 */
6157# ifdef NBPG
6158# define getpagesize() NBPG * CLSIZE
6159# ifndef CLSIZE
6160# define CLSIZE 1
6161# endif /* no CLSIZE */
6162# else /* no NBPG */
6163# ifdef NBPC
6164# define getpagesize() NBPC
6165# else /* no NBPC */
6166# ifdef PAGESIZE
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 */
6176
6177#endif /* no HAVE_GETPAGESIZE */
6178
6179int
6180main ()
6181{
6182 char *data, *data2, *data3;
6183 int i, pagesize;
6184 int fd;
6185
6186 pagesize = getpagesize ();
6187
6188 /* First, make a file with some known garbage in it. */
6189 data = (char *) malloc (pagesize);
6190 if (!data)
6191 exit (1);
6192 for (i = 0; i < pagesize; ++i)
6193 *(data + i) = rand ();
6194 umask (0);
6195 fd = creat ("conftest.mmap", 0600);
6196 if (fd < 0)
6197 exit (1);
6198 if (write (fd, data, pagesize) != pagesize)
6199 exit (1);
6200 close (fd);
6201
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);
6206 if (fd < 0)
6207 exit (1);
6208 data2 = (char *) malloc (2 * pagesize);
6209 if (!data2)
6210 exit (1);
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))
6214 exit (1);
6215 for (i = 0; i < pagesize; ++i)
6216 if (*(data + i) != *(data2 + i))
6217 exit (1);
6218
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);
6225 if (!data3)
6226 exit (1);
6227 if (read (fd, data3, pagesize) != pagesize)
6228 exit (1);
6229 for (i = 0; i < pagesize; ++i)
6230 if (*(data + i) != *(data3 + i))
6231 exit (1);
6232 close (fd);
6233 exit (0);
6234}
6235_ACEOF
6236rm -f conftest$ac_exeext
6237if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6238 (eval $ac_link) 2>&5
6239 ac_status=$?
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
6243 (eval $ac_try) 2>&5
6244 ac_status=$?
6245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6246 (exit $ac_status); }; }; then
6247 ac_cv_func_mmap_fixed_mapped=yes
6248else
6249 echo "$as_me: program exited with status $ac_status" >&5
6250echo "$as_me: failed program was:" >&5
6251sed 's/^/| /' conftest.$ac_ext >&5
6252
6253( exit $ac_status )
6254ac_cv_func_mmap_fixed_mapped=no
6255fi
6256rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6257fi
6258fi
6259echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6260echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
6261if test $ac_cv_func_mmap_fixed_mapped = yes; then
6262
6263cat >>confdefs.h <<\_ACEOF
6264#define HAVE_MMAP 1
6265_ACEOF
6266
6267fi
6268rm -f conftest.mmap
6269
6270
6271echo "$as_me:$LINENO: checking for sin_len" >&5
6272echo $ECHO_N "checking for sin_len... $ECHO_C" >&6
6273if test "${ac_cv_sin_len+set}" = set; then
6274 echo $ECHO_N "(cached) $ECHO_C" >&6
6275else
6276 cat >conftest.$ac_ext <<_ACEOF
6277/* confdefs.h. */
6278_ACEOF
6279cat confdefs.h >>conftest.$ac_ext
6280cat >>conftest.$ac_ext <<_ACEOF
6281/* end confdefs.h. */
6282#include <sys/types.h>
6283#include <netinet/in.h>
6284int
6285main ()
6286{
6287struct sockaddr_in *sin; sin->sin_len = 0;
6288 ;
6289 return 0;
6290}
6291_ACEOF
6292rm -f conftest.$ac_objext
6293if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6294 (eval $ac_compile) 2>conftest.er1
6295 ac_status=$?
6296 grep -v '^ *+' conftest.er1 >conftest.err
6297 rm -f conftest.er1
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
6303 (eval $ac_try) 2>&5
6304 ac_status=$?
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
6309 (eval $ac_try) 2>&5
6310 ac_status=$?
6311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6312 (exit $ac_status); }; }; then
6313 ac_cv_sin_len="yes"
6314else
6315 echo "$as_me: failed program was:" >&5
6316sed 's/^/| /' conftest.$ac_ext >&5
6317
6318ac_cv_sin_len="no"
6319fi
6320rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6321fi
6322echo "$as_me:$LINENO: result: $ac_cv_sin_len" >&5
6323echo "${ECHO_T}$ac_cv_sin_len" >&6
6324if test $ac_cv_sin_len = yes ; then
6325
6326cat >>confdefs.h <<\_ACEOF
6327#define HAVE_SIN_LEN 1
6328_ACEOF
6329
6330fi
6331
6332OLD_CFLAGS=$CFLAGS
6333CFLAGS="$CFLAGS -W -Wall -Werror"
6334
6335echo "$as_me:$LINENO: checking for time_t format" >&5
6336echo $ECHO_N "checking for time_t format... $ECHO_C" >&6
6337if test "${ac_cv_fmt_time_t+set}" = set; then
6338 echo $ECHO_N "(cached) $ECHO_C" >&6
6339else
6340
6341ac_cv_fmt_time_t=no
6342cat >conftest.$ac_ext <<_ACEOF
6343#include <sys/types.h>
6344#include <stdio.h>
6345void myfunc(void) {
6346 time_t test=0;
6347 printf("%li", test);
6348}
6349_ACEOF
6350rm -f conftest.$ac_objext
6351if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6352 (eval $ac_compile) 2>conftest.er1
6353 ac_status=$?
6354 grep -v '^ *+' conftest.er1 >conftest.err
6355 rm -f conftest.er1
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
6361 (eval $ac_try) 2>&5
6362 ac_status=$?
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
6367 (eval $ac_try) 2>&5
6368 ac_status=$?
6369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6370 (exit $ac_status); }; }; then
6371 ac_cv_fmt_time_t="\"%li\""
6372else
6373 echo "$as_me: failed program was:" >&5
6374sed 's/^/| /' conftest.$ac_ext >&5
6375
6376fi
6377rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6378if test $ac_cv_fmt_time_t = no; then
6379cat >conftest.$ac_ext <<_ACEOF
6380#include <sys/types.h>
6381#include <stdio.h>
6382void myfunc(void) {
6383 time_t test=0;
6384 printf("%i", test);
6385}
6386_ACEOF
6387rm -f conftest.$ac_objext
6388if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6389 (eval $ac_compile) 2>conftest.er1
6390 ac_status=$?
6391 grep -v '^ *+' conftest.er1 >conftest.err
6392 rm -f conftest.er1
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
6398 (eval $ac_try) 2>&5
6399 ac_status=$?
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
6404 (eval $ac_try) 2>&5
6405 ac_status=$?
6406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6407 (exit $ac_status); }; }; then
6408 ac_cv_fmt_time_t="\"%i\""
6409else
6410 echo "$as_me: failed program was:" >&5
6411sed 's/^/| /' conftest.$ac_ext >&5
6412
6413fi
6414rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6415fi
6416if test $ac_cv_fmt_time_t = no; then
6417{ { echo "$as_me:$LINENO: error: Cannot detect format string for time_t
6418Please check sys/types.h for the typedef of time_t and submit to a developer" >&5
6419echo "$as_me: error: Cannot detect format string for time_t
6420Please check sys/types.h for the typedef of time_t and submit to a developer" >&2;}
6421 { (exit 1); exit 1; }; }
6422fi
6423
6424fi
6425
6426
6427cat >>confdefs.h <<_ACEOF
6428#define FMT_TIME_T $ac_cv_fmt_time_t
6429_ACEOF
6430
6431echo "$as_me:$LINENO: result: $ac_cv_fmt_time_t" >&5
6432echo "${ECHO_T}$ac_cv_fmt_time_t" >&6
6433
6434echo "$as_me:$LINENO: checking for va_copy" >&5
6435echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
6436if test "${ac_cv_c_va_copy+set}" = set; then
6437 echo $ECHO_N "(cached) $ECHO_C" >&6
6438else
6439 cat >conftest.$ac_ext <<_ACEOF
6440/* confdefs.h. */
6441_ACEOF
6442cat confdefs.h >>conftest.$ac_ext
6443cat >>conftest.$ac_ext <<_ACEOF
6444/* end confdefs.h. */
6445#include <stdarg.h>
6446int
6447main ()
6448{
6449va_list ap1, ap2; va_copy(ap1, ap2);
6450 ;
6451 return 0;
6452}
6453_ACEOF
6454rm -f conftest.$ac_objext conftest$ac_exeext
6455if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6456 (eval $ac_link) 2>conftest.er1
6457 ac_status=$?
6458 grep -v '^ *+' conftest.er1 >conftest.err
6459 rm -f conftest.er1
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
6465 (eval $ac_try) 2>&5
6466 ac_status=$?
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
6471 (eval $ac_try) 2>&5
6472 ac_status=$?
6473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6474 (exit $ac_status); }; }; then
6475 ac_cv_c_va_copy="yes"
6476else
6477 echo "$as_me: failed program was:" >&5
6478sed 's/^/| /' conftest.$ac_ext >&5
6479
6480ac_cv_c_va_copy="no"
6481
6482fi
6483rm -f conftest.err conftest.$ac_objext \
6484 conftest$ac_exeext conftest.$ac_ext
6485fi
6486echo "$as_me:$LINENO: result: $ac_cv_c_va_copy" >&5
6487echo "${ECHO_T}$ac_cv_c_va_copy" >&6
6488if test "$ac_cv_c_va_copy" = "yes" ; then
6489
6490cat >>confdefs.h <<\_ACEOF
6491#define HAVE_VA_COPY 1
6492_ACEOF
6493
6494fi
6495
6496echo "$as_me:$LINENO: checking for __va_copy" >&5
6497echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
6498if test "${ac_cv_c___va_copy+set}" = set; then
6499 echo $ECHO_N "(cached) $ECHO_C" >&6
6500else
6501 cat >conftest.$ac_ext <<_ACEOF
6502/* confdefs.h. */
6503_ACEOF
6504cat confdefs.h >>conftest.$ac_ext
6505cat >>conftest.$ac_ext <<_ACEOF
6506/* end confdefs.h. */
6507#include <stdarg.h>
6508int
6509main ()
6510{
6511va_list ap1, ap2; __va_copy(ap1, ap2);
6512 ;
6513 return 0;
6514}
6515_ACEOF
6516rm -f conftest.$ac_objext conftest$ac_exeext
6517if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6518 (eval $ac_link) 2>conftest.er1
6519 ac_status=$?
6520 grep -v '^ *+' conftest.er1 >conftest.err
6521 rm -f conftest.er1
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
6527 (eval $ac_try) 2>&5
6528 ac_status=$?
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
6533 (eval $ac_try) 2>&5
6534 ac_status=$?
6535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6536 (exit $ac_status); }; }; then
6537 ac_cv_c___va_copy="yes"
6538else
6539 echo "$as_me: failed program was:" >&5
6540sed 's/^/| /' conftest.$ac_ext >&5
6541
6542ac_cv_c___va_copy="no"
6543
6544fi
6545rm -f conftest.err conftest.$ac_objext \
6546 conftest$ac_exeext conftest.$ac_ext
6547fi
6548echo "$as_me:$LINENO: result: $ac_cv_c___va_copy" >&5
6549echo "${ECHO_T}$ac_cv_c___va_copy" >&6
6550if test "$ac_cv_c___va_copy" = "yes" ; then
6551
6552cat >>confdefs.h <<\_ACEOF
6553#define HAVE___VA_COPY 1
6554_ACEOF
6555
6556fi
6557
6558CFLAGS=$OLD_CFLAGS
6559
6560echo "$as_me:$LINENO: checking which malloc to use" >&5
6561echo $ECHO_N "checking which malloc to use... $ECHO_C" >&6
6562
6563# Check whether --with-malloc or --without-malloc was given.
6564if test "${with_malloc+set}" = set; then
6565 withval="$with_malloc"
6566
6567else
6568 withval="system"
6569fi;
6570if test "x$withval" = "xsystem" ; then
6571 echo "$as_me:$LINENO: result: system" >&5
6572echo "${ECHO_T}system" >&6
6573
6574cat >>confdefs.h <<\_ACEOF
6575#define WITH_MALLOC_SYSTEM 1
6576_ACEOF
6577
6578elif test "x$withval" = "xdmalloc" ; then
6579 echo "$as_me:$LINENO: result: dmalloc" >&5
6580echo "${ECHO_T}dmalloc" >&6
6581
6582for ac_header in dmalloc.h
6583do
6584as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6585if eval "test \"\${$as_ac_Header+set}\" = set"; then
6586 echo "$as_me:$LINENO: checking for $ac_header" >&5
6587echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6588if eval "test \"\${$as_ac_Header+set}\" = set"; then
6589 echo $ECHO_N "(cached) $ECHO_C" >&6
6590fi
6591echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6592echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6593else
6594 # Is the header compilable?
6595echo "$as_me:$LINENO: checking $ac_header usability" >&5
6596echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6597cat >conftest.$ac_ext <<_ACEOF
6598/* confdefs.h. */
6599_ACEOF
6600cat confdefs.h >>conftest.$ac_ext
6601cat >>conftest.$ac_ext <<_ACEOF
6602/* end confdefs.h. */
6603$ac_includes_default
6604#include <$ac_header>
6605_ACEOF
6606rm -f conftest.$ac_objext
6607if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6608 (eval $ac_compile) 2>conftest.er1
6609 ac_status=$?
6610 grep -v '^ *+' conftest.er1 >conftest.err
6611 rm -f conftest.er1
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
6617 (eval $ac_try) 2>&5
6618 ac_status=$?
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
6623 (eval $ac_try) 2>&5
6624 ac_status=$?
6625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6626 (exit $ac_status); }; }; then
6627 ac_header_compiler=yes
6628else
6629 echo "$as_me: failed program was:" >&5
6630sed 's/^/| /' conftest.$ac_ext >&5
6631
6632ac_header_compiler=no
6633fi
6634rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6635echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6636echo "${ECHO_T}$ac_header_compiler" >&6
6637
6638# Is the header present?
6639echo "$as_me:$LINENO: checking $ac_header presence" >&5
6640echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6641cat >conftest.$ac_ext <<_ACEOF
6642/* confdefs.h. */
6643_ACEOF
6644cat confdefs.h >>conftest.$ac_ext
6645cat >>conftest.$ac_ext <<_ACEOF
6646/* end confdefs.h. */
6647#include <$ac_header>
6648_ACEOF
6649if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6650 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6651 ac_status=$?
6652 grep -v '^ *+' conftest.er1 >conftest.err
6653 rm -f conftest.er1
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
6660 else
6661 ac_cpp_err=
6662 fi
6663else
6664 ac_cpp_err=yes
6665fi
6666if test -z "$ac_cpp_err"; then
6667 ac_header_preproc=yes
6668else
6669 echo "$as_me: failed program was:" >&5
6670sed 's/^/| /' conftest.$ac_ext >&5
6671
6672 ac_header_preproc=no
6673fi
6674rm -f conftest.err conftest.$ac_ext
6675echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6676echo "${ECHO_T}$ac_header_preproc" >&6
6677
6678# So? What about this header?
6679case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6680 yes:no: )
6681 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6682echo "$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
6684echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6685 ac_header_preproc=yes
6686 ;;
6687 no:yes:* )
6688 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6689echo "$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
6691echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6692 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6693echo "$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
6695echo "$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
6697echo "$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
6699echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6700 (
6701 cat <<\_ASBOX
6702## ---------------------------------------------- ##
6703## Report this to srvx-bugs@lists.sourceforge.net ##
6704## ---------------------------------------------- ##
6705_ASBOX
6706 ) |
6707 sed "s/^/$as_me: WARNING: /" >&2
6708 ;;
6709esac
6710echo "$as_me:$LINENO: checking for $ac_header" >&5
6711echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6712if eval "test \"\${$as_ac_Header+set}\" = set"; then
6713 echo $ECHO_N "(cached) $ECHO_C" >&6
6714else
6715 eval "$as_ac_Header=\$ac_header_preproc"
6716fi
6717echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6718echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6719
6720fi
6721if test `eval echo '${'$as_ac_Header'}'` = yes; then
6722 cat >>confdefs.h <<_ACEOF
6723#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6724_ACEOF
6725
6726else
6727 { { echo "$as_me:$LINENO: error: dmalloc header file missing. dmalloc build will fail." >&5
6728echo "$as_me: error: dmalloc header file missing. dmalloc build will fail." >&2;}
6729 { (exit 1); exit 1; }; }
6730fi
6731
6732done
6733
6734
6735echo "$as_me:$LINENO: checking for malloc in -ldmalloc" >&5
6736echo $ECHO_N "checking for malloc in -ldmalloc... $ECHO_C" >&6
6737if test "${ac_cv_lib_dmalloc_malloc+set}" = set; then
6738 echo $ECHO_N "(cached) $ECHO_C" >&6
6739else
6740 ac_check_lib_save_LIBS=$LIBS
6741LIBS="-ldmalloc $LIBS"
6742cat >conftest.$ac_ext <<_ACEOF
6743/* confdefs.h. */
6744_ACEOF
6745cat confdefs.h >>conftest.$ac_ext
6746cat >>conftest.$ac_ext <<_ACEOF
6747/* end confdefs.h. */
6748
6749/* Override any gcc2 internal prototype to avoid an error. */
6750#ifdef __cplusplus
6751extern "C"
6752#endif
6753/* We use char because int might match the return type of a gcc2
6754 builtin and then its argument prototype would still apply. */
6755char malloc ();
6756int
6757main ()
6758{
6759malloc ();
6760 ;
6761 return 0;
6762}
6763_ACEOF
6764rm -f conftest.$ac_objext conftest$ac_exeext
6765if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6766 (eval $ac_link) 2>conftest.er1
6767 ac_status=$?
6768 grep -v '^ *+' conftest.er1 >conftest.err
6769 rm -f conftest.er1
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
6775 (eval $ac_try) 2>&5
6776 ac_status=$?
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
6781 (eval $ac_try) 2>&5
6782 ac_status=$?
6783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6784 (exit $ac_status); }; }; then
6785 ac_cv_lib_dmalloc_malloc=yes
6786else
6787 echo "$as_me: failed program was:" >&5
6788sed 's/^/| /' conftest.$ac_ext >&5
6789
6790ac_cv_lib_dmalloc_malloc=no
6791fi
6792rm -f conftest.err conftest.$ac_objext \
6793 conftest$ac_exeext conftest.$ac_ext
6794LIBS=$ac_check_lib_save_LIBS
6795fi
6796echo "$as_me:$LINENO: result: $ac_cv_lib_dmalloc_malloc" >&5
6797echo "${ECHO_T}$ac_cv_lib_dmalloc_malloc" >&6
6798if test $ac_cv_lib_dmalloc_malloc = yes; then
6799 cat >>confdefs.h <<_ACEOF
6800#define HAVE_LIBDMALLOC 1
6801_ACEOF
6802
6803 LIBS="-ldmalloc $LIBS"
6804
6805else
6806 { { echo "$as_me:$LINENO: error: dmalloc library is missing. dmalloc build will fail." >&5
6807echo "$as_me: error: dmalloc library is missing. dmalloc build will fail." >&2;}
6808 { (exit 1); exit 1; }; }
6809fi
6810
6811
6812cat >>confdefs.h <<\_ACEOF
6813#define WITH_MALLOC_DMALLOC 1
6814_ACEOF
6815
6816elif test "x$withval" = "xmpatrol" ; then
6817 echo "$as_me:$LINENO: result: mpatrol" >&5
6818echo "${ECHO_T}mpatrol" >&6
6819
6820for ac_header in mpatrol.h
6821do
6822as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6823if eval "test \"\${$as_ac_Header+set}\" = set"; then
6824 echo "$as_me:$LINENO: checking for $ac_header" >&5
6825echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6826if eval "test \"\${$as_ac_Header+set}\" = set"; then
6827 echo $ECHO_N "(cached) $ECHO_C" >&6
6828fi
6829echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6830echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6831else
6832 # Is the header compilable?
6833echo "$as_me:$LINENO: checking $ac_header usability" >&5
6834echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6835cat >conftest.$ac_ext <<_ACEOF
6836/* confdefs.h. */
6837_ACEOF
6838cat confdefs.h >>conftest.$ac_ext
6839cat >>conftest.$ac_ext <<_ACEOF
6840/* end confdefs.h. */
6841$ac_includes_default
6842#include <$ac_header>
6843_ACEOF
6844rm -f conftest.$ac_objext
6845if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6846 (eval $ac_compile) 2>conftest.er1
6847 ac_status=$?
6848 grep -v '^ *+' conftest.er1 >conftest.err
6849 rm -f conftest.er1
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
6855 (eval $ac_try) 2>&5
6856 ac_status=$?
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
6861 (eval $ac_try) 2>&5
6862 ac_status=$?
6863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6864 (exit $ac_status); }; }; then
6865 ac_header_compiler=yes
6866else
6867 echo "$as_me: failed program was:" >&5
6868sed 's/^/| /' conftest.$ac_ext >&5
6869
6870ac_header_compiler=no
6871fi
6872rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6873echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6874echo "${ECHO_T}$ac_header_compiler" >&6
6875
6876# Is the header present?
6877echo "$as_me:$LINENO: checking $ac_header presence" >&5
6878echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6879cat >conftest.$ac_ext <<_ACEOF
6880/* confdefs.h. */
6881_ACEOF
6882cat confdefs.h >>conftest.$ac_ext
6883cat >>conftest.$ac_ext <<_ACEOF
6884/* end confdefs.h. */
6885#include <$ac_header>
6886_ACEOF
6887if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6888 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6889 ac_status=$?
6890 grep -v '^ *+' conftest.er1 >conftest.err
6891 rm -f conftest.er1
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
6898 else
6899 ac_cpp_err=
6900 fi
6901else
6902 ac_cpp_err=yes
6903fi
6904if test -z "$ac_cpp_err"; then
6905 ac_header_preproc=yes
6906else
6907 echo "$as_me: failed program was:" >&5
6908sed 's/^/| /' conftest.$ac_ext >&5
6909
6910 ac_header_preproc=no
6911fi
6912rm -f conftest.err conftest.$ac_ext
6913echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6914echo "${ECHO_T}$ac_header_preproc" >&6
6915
6916# So? What about this header?
6917case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6918 yes:no: )
6919 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6920echo "$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
6922echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6923 ac_header_preproc=yes
6924 ;;
6925 no:yes:* )
6926 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6927echo "$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
6929echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6930 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6931echo "$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
6933echo "$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
6935echo "$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
6937echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6938 (
6939 cat <<\_ASBOX
6940## ---------------------------------------------- ##
6941## Report this to srvx-bugs@lists.sourceforge.net ##
6942## ---------------------------------------------- ##
6943_ASBOX
6944 ) |
6945 sed "s/^/$as_me: WARNING: /" >&2
6946 ;;
6947esac
6948echo "$as_me:$LINENO: checking for $ac_header" >&5
6949echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6950if eval "test \"\${$as_ac_Header+set}\" = set"; then
6951 echo $ECHO_N "(cached) $ECHO_C" >&6
6952else
6953 eval "$as_ac_Header=\$ac_header_preproc"
6954fi
6955echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6956echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6957
6958fi
6959if test `eval echo '${'$as_ac_Header'}'` = yes; then
6960 cat >>confdefs.h <<_ACEOF
6961#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6962_ACEOF
6963
6964else
6965 { { echo "$as_me:$LINENO: error: mpatrol header file missing. mpatrol build will fail." >&5
6966echo "$as_me: error: mpatrol header file missing. mpatrol build will fail." >&2;}
6967 { (exit 1); exit 1; }; }
6968fi
6969
6970done
6971
6972
6973echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
6974echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
6975if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
6976 echo $ECHO_N "(cached) $ECHO_C" >&6
6977else
6978 ac_check_lib_save_LIBS=$LIBS
6979LIBS="-lelf $LIBS"
6980cat >conftest.$ac_ext <<_ACEOF
6981/* confdefs.h. */
6982_ACEOF
6983cat confdefs.h >>conftest.$ac_ext
6984cat >>conftest.$ac_ext <<_ACEOF
6985/* end confdefs.h. */
6986
6987/* Override any gcc2 internal prototype to avoid an error. */
6988#ifdef __cplusplus
6989extern "C"
6990#endif
6991/* We use char because int might match the return type of a gcc2
6992 builtin and then its argument prototype would still apply. */
6993char elf_begin ();
6994int
6995main ()
6996{
6997elf_begin ();
6998 ;
6999 return 0;
7000}
7001_ACEOF
7002rm -f conftest.$ac_objext conftest$ac_exeext
7003if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7004 (eval $ac_link) 2>conftest.er1
7005 ac_status=$?
7006 grep -v '^ *+' conftest.er1 >conftest.err
7007 rm -f conftest.er1
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
7013 (eval $ac_try) 2>&5
7014 ac_status=$?
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
7019 (eval $ac_try) 2>&5
7020 ac_status=$?
7021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7022 (exit $ac_status); }; }; then
7023 ac_cv_lib_elf_elf_begin=yes
7024else
7025 echo "$as_me: failed program was:" >&5
7026sed 's/^/| /' conftest.$ac_ext >&5
7027
7028ac_cv_lib_elf_elf_begin=no
7029fi
7030rm -f conftest.err conftest.$ac_objext \
7031 conftest$ac_exeext conftest.$ac_ext
7032LIBS=$ac_check_lib_save_LIBS
7033fi
7034echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
7035echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
7036if test $ac_cv_lib_elf_elf_begin = yes; then
7037 cat >>confdefs.h <<_ACEOF
7038#define HAVE_LIBELF 1
7039_ACEOF
7040
7041 LIBS="-lelf $LIBS"
7042
7043fi
7044
7045
7046echo "$as_me:$LINENO: checking for __mp_atexit in -lmpatrol" >&5
7047echo $ECHO_N "checking for __mp_atexit in -lmpatrol... $ECHO_C" >&6
7048if test "${ac_cv_lib_mpatrol___mp_atexit+set}" = set; then
7049 echo $ECHO_N "(cached) $ECHO_C" >&6
7050else
7051 ac_check_lib_save_LIBS=$LIBS
7052LIBS="-lmpatrol $LIBS"
7053cat >conftest.$ac_ext <<_ACEOF
7054/* confdefs.h. */
7055_ACEOF
7056cat confdefs.h >>conftest.$ac_ext
7057cat >>conftest.$ac_ext <<_ACEOF
7058/* end confdefs.h. */
7059
7060/* Override any gcc2 internal prototype to avoid an error. */
7061#ifdef __cplusplus
7062extern "C"
7063#endif
7064/* We use char because int might match the return type of a gcc2
7065 builtin and then its argument prototype would still apply. */
7066char __mp_atexit ();
7067int
7068main ()
7069{
7070__mp_atexit ();
7071 ;
7072 return 0;
7073}
7074_ACEOF
7075rm -f conftest.$ac_objext conftest$ac_exeext
7076if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7077 (eval $ac_link) 2>conftest.er1
7078 ac_status=$?
7079 grep -v '^ *+' conftest.er1 >conftest.err
7080 rm -f conftest.er1
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
7086 (eval $ac_try) 2>&5
7087 ac_status=$?
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
7092 (eval $ac_try) 2>&5
7093 ac_status=$?
7094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7095 (exit $ac_status); }; }; then
7096 ac_cv_lib_mpatrol___mp_atexit=yes
7097else
7098 echo "$as_me: failed program was:" >&5
7099sed 's/^/| /' conftest.$ac_ext >&5
7100
7101ac_cv_lib_mpatrol___mp_atexit=no
7102fi
7103rm -f conftest.err conftest.$ac_objext \
7104 conftest$ac_exeext conftest.$ac_ext
7105LIBS=$ac_check_lib_save_LIBS
7106fi
7107echo "$as_me:$LINENO: result: $ac_cv_lib_mpatrol___mp_atexit" >&5
7108echo "${ECHO_T}$ac_cv_lib_mpatrol___mp_atexit" >&6
7109if test $ac_cv_lib_mpatrol___mp_atexit = yes; then
7110 cat >>confdefs.h <<_ACEOF
7111#define HAVE_LIBMPATROL 1
7112_ACEOF
7113
7114 LIBS="-lmpatrol $LIBS"
7115
7116else
7117 { { echo "$as_me:$LINENO: error: mpatrol library is missing completely. mpatrol build will fail." >&5
7118echo "$as_me: error: mpatrol library is missing completely. mpatrol build will fail." >&2;}
7119 { (exit 1); exit 1; }; }
7120fi
7121
7122
7123cat >>confdefs.h <<\_ACEOF
7124#define WITH_MALLOC_MPATROL 1
7125_ACEOF
7126
7127elif test "x$withval" = "xboehm-gc" ; then
7128 echo "$as_me:$LINENO: result: boehm-gc" >&5
7129echo "${ECHO_T}boehm-gc" >&6
7130
7131for ac_header in gc/gc.h
7132do
7133as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7134if eval "test \"\${$as_ac_Header+set}\" = set"; then
7135 echo "$as_me:$LINENO: checking for $ac_header" >&5
7136echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7137if eval "test \"\${$as_ac_Header+set}\" = set"; then
7138 echo $ECHO_N "(cached) $ECHO_C" >&6
7139fi
7140echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7141echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7142else
7143 # Is the header compilable?
7144echo "$as_me:$LINENO: checking $ac_header usability" >&5
7145echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7146cat >conftest.$ac_ext <<_ACEOF
7147/* confdefs.h. */
7148_ACEOF
7149cat confdefs.h >>conftest.$ac_ext
7150cat >>conftest.$ac_ext <<_ACEOF
7151/* end confdefs.h. */
7152$ac_includes_default
7153#include <$ac_header>
7154_ACEOF
7155rm -f conftest.$ac_objext
7156if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7157 (eval $ac_compile) 2>conftest.er1
7158 ac_status=$?
7159 grep -v '^ *+' conftest.er1 >conftest.err
7160 rm -f conftest.er1
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
7166 (eval $ac_try) 2>&5
7167 ac_status=$?
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
7172 (eval $ac_try) 2>&5
7173 ac_status=$?
7174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7175 (exit $ac_status); }; }; then
7176 ac_header_compiler=yes
7177else
7178 echo "$as_me: failed program was:" >&5
7179sed 's/^/| /' conftest.$ac_ext >&5
7180
7181ac_header_compiler=no
7182fi
7183rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7184echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7185echo "${ECHO_T}$ac_header_compiler" >&6
7186
7187# Is the header present?
7188echo "$as_me:$LINENO: checking $ac_header presence" >&5
7189echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7190cat >conftest.$ac_ext <<_ACEOF
7191/* confdefs.h. */
7192_ACEOF
7193cat confdefs.h >>conftest.$ac_ext
7194cat >>conftest.$ac_ext <<_ACEOF
7195/* end confdefs.h. */
7196#include <$ac_header>
7197_ACEOF
7198if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7199 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7200 ac_status=$?
7201 grep -v '^ *+' conftest.er1 >conftest.err
7202 rm -f conftest.er1
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
7209 else
7210 ac_cpp_err=
7211 fi
7212else
7213 ac_cpp_err=yes
7214fi
7215if test -z "$ac_cpp_err"; then
7216 ac_header_preproc=yes
7217else
7218 echo "$as_me: failed program was:" >&5
7219sed 's/^/| /' conftest.$ac_ext >&5
7220
7221 ac_header_preproc=no
7222fi
7223rm -f conftest.err conftest.$ac_ext
7224echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7225echo "${ECHO_T}$ac_header_preproc" >&6
7226
7227# So? What about this header?
7228case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7229 yes:no: )
7230 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7231echo "$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
7233echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7234 ac_header_preproc=yes
7235 ;;
7236 no:yes:* )
7237 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7238echo "$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
7240echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7241 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7242echo "$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
7244echo "$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
7246echo "$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
7248echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7249 (
7250 cat <<\_ASBOX
7251## ---------------------------------------------- ##
7252## Report this to srvx-bugs@lists.sourceforge.net ##
7253## ---------------------------------------------- ##
7254_ASBOX
7255 ) |
7256 sed "s/^/$as_me: WARNING: /" >&2
7257 ;;
7258esac
7259echo "$as_me:$LINENO: checking for $ac_header" >&5
7260echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7261if eval "test \"\${$as_ac_Header+set}\" = set"; then
7262 echo $ECHO_N "(cached) $ECHO_C" >&6
7263else
7264 eval "$as_ac_Header=\$ac_header_preproc"
7265fi
7266echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7267echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7268
7269fi
7270if test `eval echo '${'$as_ac_Header'}'` = yes; then
7271 cat >>confdefs.h <<_ACEOF
7272#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7273_ACEOF
7274
7275else
7276 { { echo "$as_me:$LINENO: error: Boehm GC header file missing. boehm-gc build will fail." >&5
7277echo "$as_me: error: Boehm GC header file missing. boehm-gc build will fail." >&2;}
7278 { (exit 1); exit 1; }; }
7279fi
7280
7281done
7282
7283
7284echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7285echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7286if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7287 echo $ECHO_N "(cached) $ECHO_C" >&6
7288else
7289 ac_check_lib_save_LIBS=$LIBS
7290LIBS="-ldl $LIBS"
7291cat >conftest.$ac_ext <<_ACEOF
7292/* confdefs.h. */
7293_ACEOF
7294cat confdefs.h >>conftest.$ac_ext
7295cat >>conftest.$ac_ext <<_ACEOF
7296/* end confdefs.h. */
7297
7298/* Override any gcc2 internal prototype to avoid an error. */
7299#ifdef __cplusplus
7300extern "C"
7301#endif
7302/* We use char because int might match the return type of a gcc2
7303 builtin and then its argument prototype would still apply. */
7304char dlopen ();
7305int
7306main ()
7307{
7308dlopen ();
7309 ;
7310 return 0;
7311}
7312_ACEOF
7313rm -f conftest.$ac_objext conftest$ac_exeext
7314if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7315 (eval $ac_link) 2>conftest.er1
7316 ac_status=$?
7317 grep -v '^ *+' conftest.er1 >conftest.err
7318 rm -f conftest.er1
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
7324 (eval $ac_try) 2>&5
7325 ac_status=$?
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
7330 (eval $ac_try) 2>&5
7331 ac_status=$?
7332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7333 (exit $ac_status); }; }; then
7334 ac_cv_lib_dl_dlopen=yes
7335else
7336 echo "$as_me: failed program was:" >&5
7337sed 's/^/| /' conftest.$ac_ext >&5
7338
7339ac_cv_lib_dl_dlopen=no
7340fi
7341rm -f conftest.err conftest.$ac_objext \
7342 conftest$ac_exeext conftest.$ac_ext
7343LIBS=$ac_check_lib_save_LIBS
7344fi
7345echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7346echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7347if test $ac_cv_lib_dl_dlopen = yes; then
7348 cat >>confdefs.h <<_ACEOF
7349#define HAVE_LIBDL 1
7350_ACEOF
7351
7352 LIBS="-ldl $LIBS"
7353
7354else
7355 { { echo "$as_me:$LINENO: error: libdl library is missing. boehm-gc build will fail." >&5
7356echo "$as_me: error: libdl library is missing. boehm-gc build will fail." >&2;}
7357 { (exit 1); exit 1; }; }
7358fi
7359
7360
7361echo "$as_me:$LINENO: checking for GC_gcollect in -lgc" >&5
7362echo $ECHO_N "checking for GC_gcollect in -lgc... $ECHO_C" >&6
7363if test "${ac_cv_lib_gc_GC_gcollect+set}" = set; then
7364 echo $ECHO_N "(cached) $ECHO_C" >&6
7365else
7366 ac_check_lib_save_LIBS=$LIBS
7367LIBS="-lgc $LIBS"
7368cat >conftest.$ac_ext <<_ACEOF
7369/* confdefs.h. */
7370_ACEOF
7371cat confdefs.h >>conftest.$ac_ext
7372cat >>conftest.$ac_ext <<_ACEOF
7373/* end confdefs.h. */
7374
7375/* Override any gcc2 internal prototype to avoid an error. */
7376#ifdef __cplusplus
7377extern "C"
7378#endif
7379/* We use char because int might match the return type of a gcc2
7380 builtin and then its argument prototype would still apply. */
7381char GC_gcollect ();
7382int
7383main ()
7384{
7385GC_gcollect ();
7386 ;
7387 return 0;
7388}
7389_ACEOF
7390rm -f conftest.$ac_objext conftest$ac_exeext
7391if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7392 (eval $ac_link) 2>conftest.er1
7393 ac_status=$?
7394 grep -v '^ *+' conftest.er1 >conftest.err
7395 rm -f conftest.er1
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
7401 (eval $ac_try) 2>&5
7402 ac_status=$?
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
7407 (eval $ac_try) 2>&5
7408 ac_status=$?
7409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7410 (exit $ac_status); }; }; then
7411 ac_cv_lib_gc_GC_gcollect=yes
7412else
7413 echo "$as_me: failed program was:" >&5
7414sed 's/^/| /' conftest.$ac_ext >&5
7415
7416ac_cv_lib_gc_GC_gcollect=no
7417fi
7418rm -f conftest.err conftest.$ac_objext \
7419 conftest$ac_exeext conftest.$ac_ext
7420LIBS=$ac_check_lib_save_LIBS
7421fi
7422echo "$as_me:$LINENO: result: $ac_cv_lib_gc_GC_gcollect" >&5
7423echo "${ECHO_T}$ac_cv_lib_gc_GC_gcollect" >&6
7424if test $ac_cv_lib_gc_GC_gcollect = yes; then
7425 cat >>confdefs.h <<_ACEOF
7426#define HAVE_LIBGC 1
7427_ACEOF
7428
7429 LIBS="-lgc $LIBS"
7430
7431else
7432 { { echo "$as_me:$LINENO: error: Boehm GC library is missing. boehm-gc build will fail." >&5
7433echo "$as_me: error: Boehm GC library is missing. boehm-gc build will fail." >&2;}
7434 { (exit 1); exit 1; }; }
7435fi
7436
7437
7438cat >>confdefs.h <<\_ACEOF
7439#define WITH_MALLOC_BOEHM_GC 1
7440_ACEOF
7441
7442else
7443 { { echo "$as_me:$LINENO: error: Unknown malloc type $withval" >&5
7444echo "$as_me: error: Unknown malloc type $withval" >&2;}
7445 { (exit 1); exit 1; }; }
7446fi
7447
7448echo "$as_me:$LINENO: checking which protocol to use" >&5
7449echo $ECHO_N "checking which protocol to use... $ECHO_C" >&6
7450
7451# Check whether --with-protocol or --without-protocol was given.
7452if test "${with_protocol+set}" = set; then
7453 withval="$with_protocol"
7454
7455else
7456 withval="p10"
7457fi;
7458if test "x$withval" = "xp10" ; then
7459 echo "$as_me:$LINENO: result: P10" >&5
7460echo "${ECHO_T}P10" >&6
7461
7462cat >>confdefs.h <<\_ACEOF
7463#define WITH_PROTOCOL_P10 1
7464_ACEOF
7465
b2cf3d66 7466 MODULE_OBJS="$MODULE_OBJS proto-p10.o"
b3076f16
AS
7467 PROTO_FILES=proto-p10.c
7468elif test "x$withval" = "xbahamut" ; then
7469 echo "$as_me:$LINENO: result: Bahamut" >&5
7470echo "${ECHO_T}Bahamut" >&6
7471
7472cat >>confdefs.h <<\_ACEOF
7473#define WITH_PROTOCOL_BAHAMUT 1
7474_ACEOF
7475
7476 MODULE_OBJS="$MODULE_OBJS proto-bahamut.\$(OBJEXT)"
7477else
7478 { { echo "$as_me:$LINENO: error: Unknown IRC dialect $withval" >&5
7479echo "$as_me: error: Unknown IRC dialect $withval" >&2;}
7480 { (exit 1); exit 1; }; }
7481fi
7482
7483
7484# Check whether --with-getopt or --without-getopt was given.
7485if test "${with_getopt+set}" = set; then
7486 withval="$with_getopt"
7487 if test "$withval" = no; then
7488
7489cat >>confdefs.h <<\_ACEOF
7490#define IGNORE_GETOPT 1
7491_ACEOF
7492
7493fi
7494fi;
7495
7496echo "$as_me:$LINENO: checking whether to enable tokenization" >&5
7497echo $ECHO_N "checking whether to enable tokenization... $ECHO_C" >&6
7498# Check whether --enable-tokens or --disable-tokens was given.
7499if test "${enable_tokens+set}" = set; then
7500 enableval="$enable_tokens"
7501
7502else
7503 enableval=yes
7504fi;
7505if test "z$enableval" = zno ; then
7506 echo "$as_me:$LINENO: result: no" >&5
7507echo "${ECHO_T}no" >&6
7508else
7509
7510cat >>confdefs.h <<\_ACEOF
7511#define ENABLE_TOKENS 1
7512_ACEOF
7513
7514 echo "$as_me:$LINENO: result: yes" >&5
7515echo "${ECHO_T}yes" >&6
7516fi
7517
7518echo "$as_me:$LINENO: checking whether to enable debug behaviors" >&5
7519echo $ECHO_N "checking whether to enable debug behaviors... $ECHO_C" >&6
7520# Check whether --enable-debug or --disable-debug was given.
7521if test "${enable_debug+set}" = set; then
7522 enableval="$enable_debug"
7523
7524 CPPFLAGS="$CPPFLAGS"
7525 echo "$as_me:$LINENO: result: yes" >&5
7526echo "${ECHO_T}yes" >&6
7527
7528else
7529
7530 CPPFLAGS="$CPPFLAGS -DNDEBUG"
7531 echo "$as_me:$LINENO: result: no" >&5
7532echo "${ECHO_T}no" >&6
7533
7534fi;
7535
7536if 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
7539echo "$as_me: error: src exists but is not a directory; please move it out of the way." >&2;}
7540 { (exit 1); exit 1; }; }
7541 fi
7542else
7543 mkdir src
7544fi
7545echo "$as_me:$LINENO: checking for extra module files" >&5
7546echo $ECHO_N "checking for extra module files... $ECHO_C" >&6
7547MODULE_DEFINES="src/modules-list.h"
7548echo > $MODULE_DEFINES
7549touch $MODULE_DEFINES
7550# Check whether --enable-modules or --disable-modules was given.
7551if test "${enable_modules+set}" = set; then
7552 enableval="$enable_modules"
7553
7554 OIFS="$IFS"
7555 IFS=','
7556 EXTRA_MODULE_OBJS=""
7557 module_list=""
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
7563 done
7564 IFS="$OIFS"
7565 MODULE_OBJS="$MODULE_OBJS $EXTRA_MODULE_OBJS"
7566 echo "$as_me:$LINENO: result: $module_list" >&5
7567echo "${ECHO_T}$module_list" >&6
7568
7569else
7570
7571 echo "$as_me:$LINENO: result: none" >&5
7572echo "${ECHO_T}none" >&6
7573
7574fi;
7575
7576MY_SUBDIRS=""
7577RX_INCLUDES=""
7578RX_LIBS=""
7579if 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"
7583fi
7584MY_SUBDIRS="$MY_SUBDIRS src"
7585CFLAGS="$CFLAGS $ANSI_SRC -W -Wall"
7586if test "z$USE_MAINTAINER_MODE" = zyes ; then
7587 CFLAGS="$CFLAGS -Werror"
7588fi
7589
7590
7591cat >>confdefs.h <<_ACEOF
7592#define CODENAME "${CODENAME}"
7593_ACEOF
7594
7595
7596
7597
7598
7599 ac_config_files="$ac_config_files Makefile rx/Makefile src/Makefile"
7600
7601cat >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.
7607#
7608# config.status only pays attention to the cache file if you give it
7609# the --recheck option to rerun configure.
7610#
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
7613# following values.
7614
7615_ACEOF
7616
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.
7622{
7623 (set) 2>&1 |
7624 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7625 *ac_space=\ *)
7626 # `set' does not quote correctly, so add quotes (double-quote
7627 # substitution turns \\\\ into \\, and sed turns \\ into \).
7628 sed -n \
7629 "s/'/'\\\\''/g;
7630 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7631 ;;
7632 *)
7633 # `set' quotes correctly as required by POSIX, so do not add quotes.
7634 sed -n \
7635 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7636 ;;
7637 esac;
7638} |
7639 sed '
7640 t clear
7641 : clear
7642 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7643 t end
7644 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7645 : end' >>confcache
7646if 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
7650 else
7651 echo "not updating unwritable cache $cache_file"
7652 fi
7653fi
7654rm -f confcache
7655
7656test "x$prefix" = xNONE && prefix=$ac_default_prefix
7657# Let make expand exec_prefix.
7658test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7659
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).
7664if test "x$srcdir" = x.; then
7665 ac_vpsub='/^[ ]*VPATH[ ]*=/{
7666s/:*\$(srcdir):*/:/;
7667s/:*\${srcdir}:*/:/;
7668s/:*@srcdir@:*/:/;
7669s/^\([^=]*=[ ]*\):*/\1/;
7670s/:*$//;
7671s/^[^=]*=[ ]*$//;
7672}'
7673fi
7674
7675DEFS=-DHAVE_CONFIG_H
7676
7677ac_libobjs=
7678ac_ltlibobjs=
7679for 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$//'`
7683 # 2. Add them.
7684 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
7685 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
7686done
7687LIBOBJS=$ac_libobjs
7688
7689LTLIBOBJS=$ac_ltlibobjs
7690
7691
b3076f16
AS
7692
7693: ${CONFIG_STATUS=./config.status}
7694ac_clean_files_save=$ac_clean_files
7695ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7696{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7697echo "$as_me: creating $CONFIG_STATUS" >&6;}
7698cat >$CONFIG_STATUS <<_ACEOF
7699#! $SHELL
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.
7704
7705debug=false
7706ac_cs_recheck=false
7707ac_cs_silent=false
7708SHELL=\${CONFIG_SHELL-$SHELL}
7709_ACEOF
7710
7711cat >>$CONFIG_STATUS <<\_ACEOF
7712## --------------------- ##
7713## M4sh Initialization. ##
7714## --------------------- ##
7715
7716# Be Bourne compatible
7717if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7718 emulate sh
7719 NULLCMD=:
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+"$@"}'='"$@"'
7723elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7724 set -o posix
7725fi
7726DUALCASE=1; export DUALCASE # for MKS sh
7727
7728# Support unset when possible.
7729if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7730 as_unset=unset
7731else
7732 as_unset=false
7733fi
7734
7735
7736# Work around bugs in pre-3.0 UWIN ksh.
7737$as_unset ENV MAIL MAILPATH
7738PS1='$ '
7739PS2='> '
7740PS4='+ '
7741
7742# NLS nuisances.
7743for as_var in \
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
7747do
7748 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7749 eval $as_var=C; export $as_var
7750 else
7751 $as_unset $as_var
7752 fi
7753done
7754
7755# Required to use basename.
7756if expr a : '\(a\)' >/dev/null 2>&1; then
7757 as_expr=expr
7758else
7759 as_expr=false
7760fi
7761
7762if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
7763 as_basename=basename
7764else
7765 as_basename=false
7766fi
7767
7768
7769# Name of the executable.
7770as_me=`$as_basename "$0" ||
7771$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7772 X"$0" : 'X\(//\)$' \| \
7773 X"$0" : 'X\(/\)$' \| \
7774 . : '\(.\)' 2>/dev/null ||
7775echo X/"$0" |
7776 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7777 /^X\/\(\/\/\)$/{ s//\1/; q; }
7778 /^X\/\(\/\).*/{ s//\1/; q; }
7779 s/.*/./; q'`
7780
7781
7782# PATH needs CR, and LINENO needs CR and PATH.
7783# Avoid depending upon Character Ranges.
7784as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7785as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7786as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7787as_cr_digits='0123456789'
7788as_cr_alnum=$as_cr_Letters$as_cr_digits
7789
7790# The user is always right.
7791if test "${PATH_SEPARATOR+set}" != set; then
7792 echo "#! /bin/sh" >conf$$.sh
7793 echo "exit 0" >>conf$$.sh
7794 chmod +x conf$$.sh
7795 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7796 PATH_SEPARATOR=';'
7797 else
7798 PATH_SEPARATOR=:
7799 fi
7800 rm -f conf$$.sh
7801fi
7802
7803
7804 as_lineno_1=$LINENO
7805 as_lineno_2=$LINENO
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
7810 # relative or not.
7811 case $0 in
7812 *[\\/]* ) as_myself=$0 ;;
7813 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7814for as_dir in $PATH
7815do
7816 IFS=$as_save_IFS
7817 test -z "$as_dir" && as_dir=.
7818 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7819done
7820
7821 ;;
7822 esac
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
7826 as_myself=$0
7827 fi
7828 if test ! -f "$as_myself"; then
7829 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7830echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7831 { (exit 1); exit 1; }; }
7832 fi
7833 case $CONFIG_SHELL in
7834 '')
7835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7836for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
7837do
7838 IFS=$as_save_IFS
7839 test -z "$as_dir" && as_dir=.
7840 for as_base in sh bash ksh sh5; do
7841 case $as_dir in
7842 /*)
7843 if ("$as_dir/$as_base" -c '
7844 as_lineno_1=$LINENO
7845 as_lineno_2=$LINENO
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
7852 export CONFIG_SHELL
7853 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7854 fi;;
7855 esac
7856 done
7857done
7858;;
7859 esac
7860
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 |
7870 sed '
7871 N
7872 s,$,-,
7873 : loop
7874 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7875 t loop
7876 s,-$,,
7877 s,^['$as_cr_digits']*\n,,
7878 ' >$as_me.lineno &&
7879 chmod +x $as_me.lineno ||
7880 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7881echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7882 { (exit 1); exit 1; }; }
7883
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).
7887 . ./$as_me.lineno
7888 # Exit status is that of the last command.
7889 exit
7890}
7891
7892
7893case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7894 *c*,-n*) ECHO_N= ECHO_C='
7895' ECHO_T=' ' ;;
7896 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
7897 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
7898esac
7899
7900if expr a : '\(a\)' >/dev/null 2>&1; then
7901 as_expr=expr
7902else
7903 as_expr=false
7904fi
7905
7906rm -f conf$$ conf$$.exe conf$$.file
7907echo >conf$$.file
7908if 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
7913 as_ln_s='cp -p'
7914 else
7915 as_ln_s='ln -s'
7916 fi
7917elif ln conf$$.file conf$$ 2>/dev/null; then
7918 as_ln_s=ln
7919else
7920 as_ln_s='cp -p'
7921fi
7922rm -f conf$$ conf$$.exe conf$$.file
7923
7924if mkdir -p . 2>/dev/null; then
7925 as_mkdir_p=:
7926else
7927 test -d ./-p && rmdir ./-p
7928 as_mkdir_p=false
7929fi
7930
7931as_executable_p="test -f"
7932
7933# Sed expression to map a string onto a valid CPP name.
7934as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7935
7936# Sed expression to map a string onto a valid variable name.
7937as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7938
7939
7940# IFS
7941# We need space, tab and new line, in precisely that order.
7942as_nl='
7943'
7944IFS=" $as_nl"
7945
7946# CDPATH.
7947$as_unset CDPATH
7948
7949exec 6>&1
7950
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.
7954exec 5>>config.log
7955{
7956 echo
7957 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7958## Running $as_me. ##
7959_ASBOX
7960} >&5
7961cat >&5 <<_CSEOF
7962
7963This file was extended by srvx $as_me 1.3, which was
7964generated by GNU Autoconf 2.59. Invocation command line was
7965
7966 CONFIG_FILES = $CONFIG_FILES
7967 CONFIG_HEADERS = $CONFIG_HEADERS
7968 CONFIG_LINKS = $CONFIG_LINKS
7969 CONFIG_COMMANDS = $CONFIG_COMMANDS
7970 $ $0 $@
7971
7972_CSEOF
7973echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7974echo >&5
7975_ACEOF
7976
7977# Files that config.status was made for.
7978if test -n "$ac_config_files"; then
7979 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7980fi
7981
7982if test -n "$ac_config_headers"; then
7983 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7984fi
7985
7986if test -n "$ac_config_links"; then
7987 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7988fi
7989
7990if test -n "$ac_config_commands"; then
7991 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7992fi
7993
7994cat >>$CONFIG_STATUS <<\_ACEOF
7995
7996ac_cs_usage="\
7997\`$as_me' instantiates files from templates according to the
7998current configuration.
7999
8000Usage: $0 [OPTIONS] [FILE]...
8001
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
8011
8012Configuration files:
8013$config_files
8014
8015Configuration headers:
8016$config_headers
8017
b3076f16
AS
8018Report bugs to <bug-autoconf@gnu.org>."
8019_ACEOF
8020
8021cat >>$CONFIG_STATUS <<_ACEOF
8022ac_cs_version="\\
8023srvx config.status 1.3
8024configured by $0, generated by GNU Autoconf 2.59,
8025 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8026
8027Copyright (C) 2003 Free Software Foundation, Inc.
8028This config.status script is free software; the Free Software Foundation
8029gives unlimited permission to copy, distribute and modify it."
8030srcdir=$srcdir
8031INSTALL="$INSTALL"
8032_ACEOF
8033
8034cat >>$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.
8037ac_need_defaults=:
8038while test $# != 0
8039do
8040 case $1 in
8041 --*=*)
8042 ac_option=`expr "x$1" : 'x\([^=]*\)='`
8043 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
8044 ac_shift=:
8045 ;;
8046 -*)
8047 ac_option=$1
8048 ac_optarg=$2
8049 ac_shift=shift
8050 ;;
8051 *) # This is not an option, so the user has probably given explicit
8052 # arguments.
8053 ac_option=$1
8054 ac_need_defaults=false;;
8055 esac
8056
8057 case $ac_option in
8058 # Handling of the options.
8059_ACEOF
8060cat >>$CONFIG_STATUS <<\_ACEOF
8061 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8062 ac_cs_recheck=: ;;
8063 --version | --vers* | -V )
8064 echo "$ac_cs_version"; exit 0 ;;
8065 --he | --h)
8066 # Conflict between --help and --header
8067 { { echo "$as_me:$LINENO: error: ambiguous option: $1
8068Try \`$0 --help' for more information." >&5
8069echo "$as_me: error: ambiguous option: $1
8070Try \`$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 )
8075 debug=: ;;
8076 --file | --fil | --fi | --f )
8077 $ac_shift
8078 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
8079 ac_need_defaults=false;;
8080 --header | --heade | --head | --hea )
8081 $ac_shift
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)
8086 ac_cs_silent=: ;;
8087
8088 # This is an error.
8089 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
8090Try \`$0 --help' for more information." >&5
8091echo "$as_me: error: unrecognized option: $1
8092Try \`$0 --help' for more information." >&2;}
8093 { (exit 1); exit 1; }; } ;;
8094
8095 *) ac_config_targets="$ac_config_targets $1" ;;
8096
8097 esac
8098 shift
8099done
8100
8101ac_configure_extra_args=
8102
8103if $ac_cs_silent; then
8104 exec 6>/dev/null
8105 ac_configure_extra_args="$ac_configure_extra_args --silent"
8106fi
8107
8108_ACEOF
8109cat >>$CONFIG_STATUS <<_ACEOF
8110if \$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
8113fi
8114
8115_ACEOF
8116
b3076f16 8117
b3076f16
AS
8118
8119
8120
8121cat >>$CONFIG_STATUS <<\_ACEOF
8122for ac_config_target in $ac_config_targets
8123do
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" ;;
b3076f16
AS
8129 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
8130 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8131echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8132 { (exit 1); exit 1; }; };;
8133 esac
8134done
8135
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.
8140if $ac_need_defaults; then
8141 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8142 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
b3076f16
AS
8143fi
8144
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.
8149$debug ||
8150{
8151 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8152 trap '{ (exit 1); exit 1; }' 1 2 13 15
8153}
8154
8155# Create a (secure) tmp directory for tmp files.
8156
8157{
8158 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
8159 test -n "$tmp" && test -d "$tmp"
8160} ||
8161{
8162 tmp=./confstat$$-$RANDOM
8163 (umask 077 && mkdir $tmp)
8164} ||
8165{
8166 echo "$me: cannot create a temporary directory in ." >&2
8167 { (exit 1); exit 1; }
8168}
8169
8170_ACEOF
8171
8172cat >>$CONFIG_STATUS <<_ACEOF
8173
8174#
8175# CONFIG_FILES section.
8176#
8177
8178# No need to generate the scripts if there are no CONFIG_FILES.
8179# This happens for instance when ./config.status config.h
8180if 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
8184s,@SHELL@,$SHELL,;t t
8185s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8186s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
8187s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
8188s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
8189s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
8190s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
8191s,@exec_prefix@,$exec_prefix,;t t
8192s,@prefix@,$prefix,;t t
8193s,@program_transform_name@,$program_transform_name,;t t
8194s,@bindir@,$bindir,;t t
8195s,@sbindir@,$sbindir,;t t
8196s,@libexecdir@,$libexecdir,;t t
8197s,@datadir@,$datadir,;t t
8198s,@sysconfdir@,$sysconfdir,;t t
8199s,@sharedstatedir@,$sharedstatedir,;t t
8200s,@localstatedir@,$localstatedir,;t t
8201s,@libdir@,$libdir,;t t
8202s,@includedir@,$includedir,;t t
8203s,@oldincludedir@,$oldincludedir,;t t
8204s,@infodir@,$infodir,;t t
8205s,@mandir@,$mandir,;t t
8206s,@build_alias@,$build_alias,;t t
8207s,@host_alias@,$host_alias,;t t
8208s,@target_alias@,$target_alias,;t t
8209s,@DEFS@,$DEFS,;t t
8210s,@ECHO_C@,$ECHO_C,;t t
8211s,@ECHO_N@,$ECHO_N,;t t
8212s,@ECHO_T@,$ECHO_T,;t t
8213s,@LIBS@,$LIBS,;t t
8214s,@build@,$build,;t t
8215s,@build_cpu@,$build_cpu,;t t
8216s,@build_vendor@,$build_vendor,;t t
8217s,@build_os@,$build_os,;t t
8218s,@host@,$host,;t t
8219s,@host_cpu@,$host_cpu,;t t
8220s,@host_vendor@,$host_vendor,;t t
8221s,@host_os@,$host_os,;t t
8222s,@target@,$target,;t t
8223s,@target_cpu@,$target_cpu,;t t
8224s,@target_vendor@,$target_vendor,;t t
8225s,@target_os@,$target_os,;t t
8226s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
8227s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
8228s,@INSTALL_DATA@,$INSTALL_DATA,;t t
b3076f16
AS
8229s,@PACKAGE@,$PACKAGE,;t t
8230s,@VERSION@,$VERSION,;t t
8231s,@ACLOCAL@,$ACLOCAL,;t t
8232s,@AUTOCONF@,$AUTOCONF,;t t
8233s,@AUTOMAKE@,$AUTOMAKE,;t t
8234s,@AUTOHEADER@,$AUTOHEADER,;t t
8235s,@MAKEINFO@,$MAKEINFO,;t t
b3076f16 8236s,@SET_MAKE@,$SET_MAKE,;t t
b3076f16
AS
8237s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
8238s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
8239s,@MAINT@,$MAINT,;t t
8240s,@CC@,$CC,;t t
8241s,@CFLAGS@,$CFLAGS,;t t
8242s,@LDFLAGS@,$LDFLAGS,;t t
8243s,@CPPFLAGS@,$CPPFLAGS,;t t
8244s,@ac_ct_CC@,$ac_ct_CC,;t t
8245s,@EXEEXT@,$EXEEXT,;t t
8246s,@OBJEXT@,$OBJEXT,;t t
b2cf3d66 8247s,@AWK@,$AWK,;t t
b3076f16
AS
8248s,@RANLIB@,$RANLIB,;t t
8249s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
8250s,@LN_S@,$LN_S,;t t
8251s,@CPP@,$CPP,;t t
8252s,@EGREP@,$EGREP,;t t
8253s,@ALLOCA@,$ALLOCA,;t t
8254s,@MODULE_OBJS@,$MODULE_OBJS,;t t
8255s,@MY_SUBDIRS@,$MY_SUBDIRS,;t t
8256s,@RX_INCLUDES@,$RX_INCLUDES,;t t
8257s,@RX_LIBS@,$RX_LIBS,;t t
8258s,@LIBOBJS@,$LIBOBJS,;t t
8259s,@LTLIBOBJS@,$LTLIBOBJS,;t t
8260CEOF
8261
8262_ACEOF
8263
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.
8267 ac_max_sed_lines=48
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.
8271 ac_more_lines=:
8272 ac_sed_cmds=
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
8276 else
8277 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8278 fi
8279 if test ! -s $tmp/subs.frag; then
8280 ac_more_lines=false
8281 else
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.
8286 (echo ':t
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"
8290 else
8291 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8292 fi
8293 ac_sed_frag=`expr $ac_sed_frag + 1`
8294 ac_beg=$ac_end
8295 ac_end=`expr $ac_end + $ac_max_sed_lines`
8296 fi
8297 done
8298 if test -z "$ac_sed_cmds"; then
8299 ac_sed_cmds=cat
8300 fi
8301fi # test -n "$CONFIG_FILES"
8302
8303_ACEOF
8304cat >>$CONFIG_STATUS <<\_ACEOF
8305for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
8306 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8307 case $ac_file in
8308 - | *:- | *:-:* ) # input from stdin
8309 cat >$tmp/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 ;;
8315 esac
8316
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 ||
8324echo X"$ac_file" |
8325 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8326 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8327 /^X\(\/\/\)$/{ s//\1/; q; }
8328 /^X\(\/\).*/{ s//\1/; q; }
8329 s/.*/./; q'`
8330 { if $as_mkdir_p; then
8331 mkdir -p "$ac_dir"
8332 else
8333 as_dir="$ac_dir"
8334 as_dirs=
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 ||
8343echo X"$as_dir" |
8344 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8345 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8346 /^X\(\/\/\)$/{ s//\1/; q; }
8347 /^X\(\/\).*/{ s//\1/; q; }
8348 s/.*/./; q'`
8349 done
8350 test ! -n "$as_dirs" || mkdir $as_dirs
8351 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8352echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8353 { (exit 1); exit 1; }; }; }
8354
8355 ac_builddir=.
8356
8357if 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'`
8361else
8362 ac_dir_suffix= ac_top_builddir=
8363fi
8364
8365case $srcdir in
8366 .) # No --srcdir option. We are building in place.
8367 ac_srcdir=.
8368 if test -z "$ac_top_builddir"; then
8369 ac_top_srcdir=.
8370 else
8371 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8372 fi ;;
8373 [\\/]* | ?:[\\/]* ) # Absolute path.
8374 ac_srcdir=$srcdir$ac_dir_suffix;
8375 ac_top_srcdir=$srcdir ;;
8376 *) # Relative path.
8377 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8378 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8379esac
8380
8381# Do not use `cd foo && pwd` to compute absolute paths, because
8382# the directories may not exist.
8383case `pwd` in
8384.) ac_abs_builddir="$ac_dir";;
8385*)
8386 case "$ac_dir" in
8387 .) ac_abs_builddir=`pwd`;;
8388 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8389 *) ac_abs_builddir=`pwd`/"$ac_dir";;
8390 esac;;
8391esac
8392case $ac_abs_builddir in
8393.) ac_abs_top_builddir=${ac_top_builddir}.;;
8394*)
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}.;;
8399 esac;;
8400esac
8401case $ac_abs_builddir in
8402.) ac_abs_srcdir=$ac_srcdir;;
8403*)
8404 case $ac_srcdir in
8405 .) ac_abs_srcdir=$ac_abs_builddir;;
8406 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8407 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8408 esac;;
8409esac
8410case $ac_abs_builddir in
8411.) ac_abs_top_srcdir=$ac_top_srcdir;;
8412*)
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;;
8417 esac;;
8418esac
8419
8420
8421 case $INSTALL in
8422 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8423 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
8424 esac
8425
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
8430 configure_input=
8431 else
8432 configure_input="$ac_file. "
8433 fi
8434 configure_input=$configure_input"Generated from `echo $ac_file_in |
8435 sed 's,.*/,,'` by configure."
8436
8437 # First look for the input files in the build tree, otherwise in the
8438 # src tree.
8439 ac_file_inputs=`IFS=:
8440 for f in $ac_file_in; do
8441 case $f in
8442 -) echo $tmp/stdin ;;
8443 [\\/$]*)
8444 # Absolute (can't be DOS-style, as IFS=:)
8445 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8446echo "$as_me: error: cannot find input file: $f" >&2;}
8447 { (exit 1); exit 1; }; }
8448 echo "$f";;
8449 *) # Relative
8450 if test -f "$f"; then
8451 # Build tree
8452 echo "$f"
8453 elif test -f "$srcdir/$f"; then
8454 # Source tree
8455 echo "$srcdir/$f"
8456 else
8457 # /dev/null tree
8458 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8459echo "$as_me: error: cannot find input file: $f" >&2;}
8460 { (exit 1); exit 1; }; }
8461 fi;;
8462 esac
8463 done` || { (exit 1); exit 1; }
8464
8465 if test x"$ac_file" != x-; then
8466 { echo "$as_me:$LINENO: creating $ac_file" >&5
8467echo "$as_me: creating $ac_file" >&6;}
8468 rm -f "$ac_file"
8469 fi
8470_ACEOF
8471cat >>$CONFIG_STATUS <<_ACEOF
8472 sed "$ac_vpsub
8473$extrasub
8474_ACEOF
8475cat >>$CONFIG_STATUS <<\_ACEOF
8476:t
8477/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8478s,@configure_input@,$configure_input,;t t
8479s,@srcdir@,$ac_srcdir,;t t
8480s,@abs_srcdir@,$ac_abs_srcdir,;t t
8481s,@top_srcdir@,$ac_top_srcdir,;t t
8482s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
8483s,@builddir@,$ac_builddir,;t t
8484s,@abs_builddir@,$ac_abs_builddir,;t t
8485s,@top_builddir@,$ac_top_builddir,;t t
8486s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
8487s,@INSTALL@,$ac_INSTALL,;t t
8488" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
8489 rm -f $tmp/stdin
8490 if test x"$ac_file" != x-; then
8491 mv $tmp/out $ac_file
8492 else
8493 cat $tmp/out
8494 rm -f $tmp/out
8495 fi
8496
8497done
8498_ACEOF
8499cat >>$CONFIG_STATUS <<\_ACEOF
8500
8501#
8502# CONFIG_HEADER section.
8503#
8504
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.
8507#
8508# ac_d sets the value in "#define NAME VALUE" lines.
8509ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8510ac_dB='[ ].*$,\1#\2'
8511ac_dC=' '
8512ac_dD=',;t'
8513# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8514ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8515ac_uB='$,\1#\2define\3'
8516ac_uC=' '
8517ac_uD=',;t'
8518
8519for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
8520 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8521 case $ac_file in
8522 - | *:- | *:-:* ) # input from stdin
8523 cat >$tmp/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 ;;
8529 esac
8530
8531 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
8532echo "$as_me: creating $ac_file" >&6;}
8533
8534 # First look for the input files in the build tree, otherwise in the
8535 # src tree.
8536 ac_file_inputs=`IFS=:
8537 for f in $ac_file_in; do
8538 case $f in
8539 -) echo $tmp/stdin ;;
8540 [\\/$]*)
8541 # Absolute (can't be DOS-style, as IFS=:)
8542 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8543echo "$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.
8546 echo "$f";;
8547 *) # Relative
8548 if test -f "$f"; then
8549 # Build tree
8550 echo "$f"
8551 elif test -f "$srcdir/$f"; then
8552 # Source tree
8553 echo "$srcdir/$f"
8554 else
8555 # /dev/null tree
8556 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8557echo "$as_me: error: cannot find input file: $f" >&2;}
8558 { (exit 1); exit 1; }; }
8559 fi;;
8560 esac
8561 done` || { (exit 1); exit 1; }
8562 # Remove the trailing spaces.
8563 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
8564
8565_ACEOF
8566
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
8573# in config.status.
8574rm -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.
8577#
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'.
8581cat >confdef2sed.sed <<\_ACEOF
8582s/[\\&,]/\\&/g
8583s,[\\$`],\\&,g
8584t clear
8585: clear
8586s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
8587t end
8588s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8589: end
8590_ACEOF
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.
8594uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
8595sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
8596rm -f confdef2sed.sed
8597
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.
8601cat >>conftest.undefs <<\_ACEOF
8602s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8603_ACEOF
8604
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).
8607echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
8608echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8609echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8610echo ' :' >>$CONFIG_STATUS
8611rm -f conftest.tail
8612while grep . conftest.defines >/dev/null
8613do
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
8622 echo 'CEOF
8623 sed -f $tmp/defines.sed $tmp/in >$tmp/out
8624 rm -f $tmp/in
8625 mv $tmp/out $tmp/in
8626' >>$CONFIG_STATUS
8627 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
8628 rm -f conftest.defines
8629 mv conftest.tail conftest.defines
8630done
8631rm -f conftest.defines
8632echo ' fi # grep' >>$CONFIG_STATUS
8633echo >>$CONFIG_STATUS
8634
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).
8637echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
8638rm -f conftest.tail
8639while grep . conftest.undefs >/dev/null
8640do
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
8649 echo 'CEOF
8650 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
8651 rm -f $tmp/in
8652 mv $tmp/out $tmp/in
8653' >>$CONFIG_STATUS
8654 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
8655 rm -f conftest.undefs
8656 mv conftest.tail conftest.undefs
8657done
8658rm -f conftest.undefs
8659
8660cat >>$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
8666 else
8667 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
8668 fi
8669 cat $tmp/in >>$tmp/config.h
8670 rm -f $tmp/in
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
8674echo "$as_me: $ac_file is unchanged" >&6;}
8675 else
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 ||
8682echo X"$ac_file" |
8683 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8684 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8685 /^X\(\/\/\)$/{ s//\1/; q; }
8686 /^X\(\/\).*/{ s//\1/; q; }
8687 s/.*/./; q'`
8688 { if $as_mkdir_p; then
8689 mkdir -p "$ac_dir"
8690 else
8691 as_dir="$ac_dir"
8692 as_dirs=
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 ||
8701echo X"$as_dir" |
8702 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8703 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8704 /^X\(\/\/\)$/{ s//\1/; q; }
8705 /^X\(\/\).*/{ s//\1/; q; }
8706 s/.*/./; q'`
8707 done
8708 test ! -n "$as_dirs" || mkdir $as_dirs
8709 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8710echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8711 { (exit 1); exit 1; }; }; }
8712
8713 rm -f $ac_file
8714 mv $tmp/config.h $ac_file
8715 fi
8716 else
8717 cat $tmp/config.h
8718 rm -f $tmp/config.h
8719 fi
b3076f16
AS
8720done
8721_ACEOF
8722
8723cat >>$CONFIG_STATUS <<\_ACEOF
8724
8725{ (exit 0); exit 0; }
8726_ACEOF
8727chmod +x $CONFIG_STATUS
8728ac_clean_files=$ac_clean_files_save
8729
8730
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.
8739if test "$no_create" != yes; then
8740 ac_cs_success=:
8741 ac_config_status_args=
8742 test "$silent" = yes &&
8743 ac_config_status_args="$ac_config_status_args --quiet"
8744 exec 5>/dev/null
8745 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8746 exec 5>>config.log
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; }
8750fi
8751