Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # From configure.ac .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.58 for Ample AMPLE_VERSION.
5 #
6 # Report bugs to <[email protected]>.
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
16 if 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+"$@"}'='"$@"'
22 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23 set -o posix
24 fi
25 DUALCASE=1; export DUALCASE # for MKS sh
26
27 # Support unset when possible.
28 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29 as_unset=unset
30 else
31 as_unset=false
32 fi
33
34
35 # Work around bugs in pre-3.0 UWIN ksh.
36 $as_unset ENV MAIL MAILPATH
37 PS1='$ '
38 PS2='> '
39 PS4='+ '
40
41 # NLS nuisances.
42 for 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
46 do
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
52 done
53
54 # Required to use basename.
55 if expr a : '\(a\)' >/dev/null 2>&1; then
56 as_expr=expr
57 else
58 as_expr=false
59 fi
60
61 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62 as_basename=basename
63 else
64 as_basename=false
65 fi
66
67
68 # Name of the executable.
69 as_me=`$as_basename "$0" ||
70 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71 X"$0" : 'X\(//\)$' \| \
72 X"$0" : 'X\(/\)$' \| \
73 . : '\(.\)' 2>/dev/null ||
74 echo 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.
83 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86 as_cr_digits='0123456789'
87 as_cr_alnum=$as_cr_Letters$as_cr_digits
88
89 # The user is always right.
90 if test "${PATH_SEPARATOR+set}" != set; then
91 echo "#! /bin/sh" >conf$$.sh
92 echo "exit 0" >>conf$$.sh
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
100 fi
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
113 for as_dir in $PATH
114 do
115 IFS=$as_save_IFS
116 test -z "$as_dir" && as_dir=.
117 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
118 done
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
134 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135 do
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
155 done
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
190 case `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= ;;
195 esac
196
197 if expr a : '\(a\)' >/dev/null 2>&1; then
198 as_expr=expr
199 else
200 as_expr=false
201 fi
202
203 rm -f conf$$ conf$$.exe conf$$.file
204 echo >conf$$.file
205 if ln -s conf$$.file conf$$ 2>/dev/null; then
206 # We could just check for DJGPP; but this test a) works b) is more generic
207 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208 if test -f conf$$.exe; then
209 # Don't use ln at all; we don't have any links
210 as_ln_s='cp -p'
211 else
212 as_ln_s='ln -s'
213 fi
214 elif ln conf$$.file conf$$ 2>/dev/null; then
215 as_ln_s=ln
216 else
217 as_ln_s='cp -p'
218 fi
219 rm -f conf$$ conf$$.exe conf$$.file
220
221 if mkdir -p . 2>/dev/null; then
222 as_mkdir_p=:
223 else
224 test -d ./-p && rmdir ./-p
225 as_mkdir_p=false
226 fi
227
228 as_executable_p="test -f"
229
230 # Sed expression to map a string onto a valid CPP name.
231 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232
233 # Sed expression to map a string onto a valid variable name.
234 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235
236
237 # IFS
238 # We need space, tab and new line, in precisely that order.
239 as_nl='
240 '
241 IFS=" $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.
250 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
251
252 exec 6>&1
253
254 #
255 # Initializations.
256 #
257 ac_default_prefix=/usr/local
258 ac_config_libobj_dir=.
259 cross_compiling=no
260 subdirs=
261 MFLAGS=
262 MAKEFLAGS=
263 SHELL=${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.
271 PACKAGE_NAME='Ample'
272 PACKAGE_TARNAME='ample'
273 PACKAGE_VERSION='AMPLE_VERSION'
274 PACKAGE_STRING='Ample AMPLE_VERSION'
275 PACKAGE_BUGREPORT='[email protected]'
276
277 ac_unique_file="src/ample.c"
278 # Factoring default headers for most tests.
279 ac_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
315 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT SET_MAKE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CPP EGREP LIBOBJS LTLIBOBJS'
316 ac_subst_files=''
317
318 # Initialize some variables set by options.
319 ac_init_help=
320 ac_init_version=false
321 # The variables have the same names as the options, with
322 # dashes changed to underlines.
323 cache_file=/dev/null
324 exec_prefix=NONE
325 no_create=
326 no_recursion=
327 prefix=NONE
328 program_prefix=NONE
329 program_suffix=NONE
330 program_transform_name=s,x,x,
331 silent=
332 site=
333 srcdir=
334 verbose=
335 x_includes=NONE
336 x_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.
343 bindir='${exec_prefix}/bin'
344 sbindir='${exec_prefix}/sbin'
345 libexecdir='${exec_prefix}/libexec'
346 datadir='${prefix}/share'
347 sysconfdir='${prefix}/etc'
348 sharedstatedir='${prefix}/com'
349 localstatedir='${prefix}/var'
350 libdir='${exec_prefix}/lib'
351 includedir='${prefix}/include'
352 oldincludedir='/usr/include'
353 infodir='${prefix}/info'
354 mandir='${prefix}/man'
355
356 ac_prev=
357 for ac_option
358 do
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
630 Try \`$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
653 done
654
655 if test -n "$ac_prev"; then
656 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
657 { echo "$as_me: error: missing argument to $ac_option" >&2
658 { (exit 1); exit 1; }; }
659 fi
660
661 # Be sure to have absolute paths.
662 for ac_var in exec_prefix prefix
663 do
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
670 done
671
672 # Be sure to have absolute paths.
673 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
674 localstatedir libdir includedir oldincludedir infodir mandir
675 do
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
682 done
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.
687 build=$build_alias
688 host=$host_alias
689 target=$target_alias
690
691 # FIXME: To remove some day.
692 if test "x$host_alias" != x; then
693 if test "x$build_alias" = x; then
694 cross_compiling=maybe
695 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
696 If a cross compiler is detected then cross compile mode will be used." >&2
697 elif test "x$build_alias" != "x$host_alias"; then
698 cross_compiling=yes
699 fi
700 fi
701
702 ac_tool_prefix=
703 test -n "$host_alias" && ac_tool_prefix=$host_alias-
704
705 test "$silent" = yes && exec 6>/dev/null
706
707
708 # Find the source files, if location was not specified.
709 if test -z "$srcdir"; then
710 ac_srcdir_defaulted=yes
711 # Try the directory containing this script, then its parent.
712 ac_confdir=`(dirname "$0") 2>/dev/null ||
713 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
714 X"$0" : 'X\(//\)[^/]' \| \
715 X"$0" : 'X\(//\)$' \| \
716 X"$0" : 'X\(/\)' \| \
717 . : '\(.\)' 2>/dev/null ||
718 echo 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
728 else
729 ac_srcdir_defaulted=no
730 fi
731 if test ! -r $srcdir/$ac_unique_file; then
732 if test "$ac_srcdir_defaulted" = yes; then
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
734 { (exit 1); exit 1; }; }
735 else
736 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
737 { (exit 1); exit 1; }; }
738 fi
739 fi
740 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
741 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
742 { (exit 1); exit 1; }; }
743 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
744 ac_env_build_alias_set=${build_alias+set}
745 ac_env_build_alias_value=$build_alias
746 ac_cv_env_build_alias_set=${build_alias+set}
747 ac_cv_env_build_alias_value=$build_alias
748 ac_env_host_alias_set=${host_alias+set}
749 ac_env_host_alias_value=$host_alias
750 ac_cv_env_host_alias_set=${host_alias+set}
751 ac_cv_env_host_alias_value=$host_alias
752 ac_env_target_alias_set=${target_alias+set}
753 ac_env_target_alias_value=$target_alias
754 ac_cv_env_target_alias_set=${target_alias+set}
755 ac_cv_env_target_alias_value=$target_alias
756 ac_env_CC_set=${CC+set}
757 ac_env_CC_value=$CC
758 ac_cv_env_CC_set=${CC+set}
759 ac_cv_env_CC_value=$CC
760 ac_env_CFLAGS_set=${CFLAGS+set}
761 ac_env_CFLAGS_value=$CFLAGS
762 ac_cv_env_CFLAGS_set=${CFLAGS+set}
763 ac_cv_env_CFLAGS_value=$CFLAGS
764 ac_env_LDFLAGS_set=${LDFLAGS+set}
765 ac_env_LDFLAGS_value=$LDFLAGS
766 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
767 ac_cv_env_LDFLAGS_value=$LDFLAGS
768 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_env_CPPFLAGS_value=$CPPFLAGS
770 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
771 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
772 ac_env_CPP_set=${CPP+set}
773 ac_env_CPP_value=$CPP
774 ac_cv_env_CPP_set=${CPP+set}
775 ac_cv_env_CPP_value=$CPP
776
777 #
778 # Report the --help message.
779 #
780 if test "$ac_init_help" = "long"; then
781 # Omit some internal or obsolete options to make the list less imposing.
782 # This message is too long to be a string in the A/UX 3.1 sh.
783 cat <<_ACEOF
784 \`configure' configures Ample AMPLE_VERSION to adapt to many kinds of systems.
785
786 Usage: $0 [OPTION]... [VAR=VALUE]...
787
788 To assign environment variables (e.g., CC, CFLAGS...), specify them as
789 VAR=VALUE. See below for descriptions of some of the useful variables.
790
791 Defaults for the options are specified in brackets.
792
793 Configuration:
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
807 Installation 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
813 By default, \`make install' will install all the files in
814 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
815 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
816 for instance \`--prefix=\$HOME'.
817
818 For better control, use the options below.
819
820 Fine tuning of the installation directories:
821 --bindir=DIR user executables [EPREFIX/bin]
822 --sbindir=DIR system admin executables [EPREFIX/sbin]
823 --libexecdir=DIR program executables [EPREFIX/libexec]
824 --datadir=DIR read-only architecture-independent data [PREFIX/share]
825 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
826 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
827 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
828 --libdir=DIR object code libraries [EPREFIX/lib]
829 --includedir=DIR C header files [PREFIX/include]
830 --oldincludedir=DIR C header files for non-gcc [/usr/include]
831 --infodir=DIR info documentation [PREFIX/info]
832 --mandir=DIR man documentation [PREFIX/man]
833 _ACEOF
834
835 cat <<\_ACEOF
836 _ACEOF
837 fi
838
839 if test -n "$ac_init_help"; then
840 case $ac_init_help in
841 short | recursive ) echo "Configuration of Ample AMPLE_VERSION:";;
842 esac
843 cat <<\_ACEOF
844
845 Optional Features:
846 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
847 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
848 --enable-libwrap Use tcpd wrappers
849 --disable-syslog Disable the use of syslog
850 --enable-facility=ARG Syslog to ARG instead of LOG_DAEMON
851
852 Some influential environment variables:
853 CC C compiler command
854 CFLAGS C compiler flags
855 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
856 nonstandard directory <lib dir>
857 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
858 headers in a nonstandard directory <include dir>
859 CPP C preprocessor
860
861 Use these variables to override the choices made by `configure' or to help
862 it to find libraries and programs with nonstandard names/locations.
863
864 Report bugs to <[email protected]>.
865 _ACEOF
866 fi
867
868 if test "$ac_init_help" = "recursive"; then
869 # If there are subdirs, report their specific --help.
870 ac_popdir=`pwd`
871 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
872 test -d $ac_dir || continue
873 ac_builddir=.
874
875 if test "$ac_dir" != .; then
876 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
877 # A "../" for each directory in $ac_dir_suffix.
878 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
879 else
880 ac_dir_suffix= ac_top_builddir=
881 fi
882
883 case $srcdir in
884 .) # No --srcdir option. We are building in place.
885 ac_srcdir=.
886 if test -z "$ac_top_builddir"; then
887 ac_top_srcdir=.
888 else
889 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
890 fi ;;
891 [\\/]* | ?:[\\/]* ) # Absolute path.
892 ac_srcdir=$srcdir$ac_dir_suffix;
893 ac_top_srcdir=$srcdir ;;
894 *) # Relative path.
895 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
896 ac_top_srcdir=$ac_top_builddir$srcdir ;;
897 esac
898
899 # Do not use `cd foo && pwd` to compute absolute paths, because
900 # the directories may not exist.
901 case `pwd` in
902 .) ac_abs_builddir="$ac_dir";;
903 *)
904 case "$ac_dir" in
905 .) ac_abs_builddir=`pwd`;;
906 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
907 *) ac_abs_builddir=`pwd`/"$ac_dir";;
908 esac;;
909 esac
910 case $ac_abs_builddir in
911 .) ac_abs_top_builddir=${ac_top_builddir}.;;
912 *)
913 case ${ac_top_builddir}. in
914 .) ac_abs_top_builddir=$ac_abs_builddir;;
915 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
916 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
917 esac;;
918 esac
919 case $ac_abs_builddir in
920 .) ac_abs_srcdir=$ac_srcdir;;
921 *)
922 case $ac_srcdir in
923 .) ac_abs_srcdir=$ac_abs_builddir;;
924 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
925 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
926 esac;;
927 esac
928 case $ac_abs_builddir in
929 .) ac_abs_top_srcdir=$ac_top_srcdir;;
930 *)
931 case $ac_top_srcdir in
932 .) ac_abs_top_srcdir=$ac_abs_builddir;;
933 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
934 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
935 esac;;
936 esac
937
938 cd $ac_dir
939 # Check for guested configure; otherwise get Cygnus style configure.
940 if test -f $ac_srcdir/configure.gnu; then
941 echo
942 $SHELL $ac_srcdir/configure.gnu --help=recursive
943 elif test -f $ac_srcdir/configure; then
944 echo
945 $SHELL $ac_srcdir/configure --help=recursive
946 elif test -f $ac_srcdir/configure.ac ||
947 test -f $ac_srcdir/configure.in; then
948 echo
949 $ac_configure --help
950 else
951 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
952 fi
953 cd "$ac_popdir"
954 done
955 fi
956
957 test -n "$ac_init_help" && exit 0
958 if $ac_init_version; then
959 cat <<\_ACEOF
960 Ample configure AMPLE_VERSION
961 generated by GNU Autoconf 2.58
962
963 Copyright (C) 2003 Free Software Foundation, Inc.
964 This configure script is free software; the Free Software Foundation
965 gives unlimited permission to copy, distribute and modify it.
966 _ACEOF
967 exit 0
968 fi
969 exec 5>config.log
970 cat >&5 <<_ACEOF
971 This file contains any messages produced by compilers while
972 running configure, to aid debugging if configure makes a mistake.
973
974 It was created by Ample $as_me AMPLE_VERSION, which was
975 generated by GNU Autoconf 2.58. Invocation command line was
976
977 $ $0 $@
978
979 _ACEOF
980 {
981 cat <<_ASUNAME
982 ## --------- ##
983 ## Platform. ##
984 ## --------- ##
985
986 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
987 uname -m = `(uname -m) 2>/dev/null || echo unknown`
988 uname -r = `(uname -r) 2>/dev/null || echo unknown`
989 uname -s = `(uname -s) 2>/dev/null || echo unknown`
990 uname -v = `(uname -v) 2>/dev/null || echo unknown`
991
992 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
993 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
994
995 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
996 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
997 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
998 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
999 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1000 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1001 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1002
1003 _ASUNAME
1004
1005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1006 for as_dir in $PATH
1007 do
1008 IFS=$as_save_IFS
1009 test -z "$as_dir" && as_dir=.
1010 echo "PATH: $as_dir"
1011 done
1012
1013 } >&5
1014
1015 cat >&5 <<_ACEOF
1016
1017
1018 ## ----------- ##
1019 ## Core tests. ##
1020 ## ----------- ##
1021
1022 _ACEOF
1023
1024
1025 # Keep a trace of the command line.
1026 # Strip out --no-create and --no-recursion so they do not pile up.
1027 # Strip out --silent because we don't want to record it for future runs.
1028 # Also quote any args containing shell meta-characters.
1029 # Make two passes to allow for proper duplicate-argument suppression.
1030 ac_configure_args=
1031 ac_configure_args0=
1032 ac_configure_args1=
1033 ac_sep=
1034 ac_must_keep_next=false
1035 for ac_pass in 1 2
1036 do
1037 for ac_arg
1038 do
1039 case $ac_arg in
1040 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1041 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1042 | -silent | --silent | --silen | --sile | --sil)
1043 continue ;;
1044 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1045 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1046 esac
1047 case $ac_pass in
1048 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1049 2)
1050 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1051 if test $ac_must_keep_next = true; then
1052 ac_must_keep_next=false # Got value, back to normal.
1053 else
1054 case $ac_arg in
1055 *=* | --config-cache | -C | -disable-* | --disable-* \
1056 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1057 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1058 | -with-* | --with-* | -without-* | --without-* | --x)
1059 case "$ac_configure_args0 " in
1060 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1061 esac
1062 ;;
1063 -* ) ac_must_keep_next=true ;;
1064 esac
1065 fi
1066 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1067 # Get rid of the leading space.
1068 ac_sep=" "
1069 ;;
1070 esac
1071 done
1072 done
1073 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1074 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1075
1076 # When interrupted or exit'd, cleanup temporary files, and complete
1077 # config.log. We remove comments because anyway the quotes in there
1078 # would cause problems or look ugly.
1079 # WARNING: Be sure not to use single quotes in there, as some shells,
1080 # such as our DU 5.0 friend, will then `close' the trap.
1081 trap 'exit_status=$?
1082 # Save into config.log some information that might help in debugging.
1083 {
1084 echo
1085
1086 cat <<\_ASBOX
1087 ## ---------------- ##
1088 ## Cache variables. ##
1089 ## ---------------- ##
1090 _ASBOX
1091 echo
1092 # The following way of writing the cache mishandles newlines in values,
1093 {
1094 (set) 2>&1 |
1095 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1096 *ac_space=\ *)
1097 sed -n \
1098 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1099 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1100 ;;
1101 *)
1102 sed -n \
1103 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1104 ;;
1105 esac;
1106 }
1107 echo
1108
1109 cat <<\_ASBOX
1110 ## ----------------- ##
1111 ## Output variables. ##
1112 ## ----------------- ##
1113 _ASBOX
1114 echo
1115 for ac_var in $ac_subst_vars
1116 do
1117 eval ac_val=$`echo $ac_var`
1118 echo "$ac_var='"'"'$ac_val'"'"'"
1119 done | sort
1120 echo
1121
1122 if test -n "$ac_subst_files"; then
1123 cat <<\_ASBOX
1124 ## ------------- ##
1125 ## Output files. ##
1126 ## ------------- ##
1127 _ASBOX
1128 echo
1129 for ac_var in $ac_subst_files
1130 do
1131 eval ac_val=$`echo $ac_var`
1132 echo "$ac_var='"'"'$ac_val'"'"'"
1133 done | sort
1134 echo
1135 fi
1136
1137 if test -s confdefs.h; then
1138 cat <<\_ASBOX
1139 ## ----------- ##
1140 ## confdefs.h. ##
1141 ## ----------- ##
1142 _ASBOX
1143 echo
1144 sed "/^$/d" confdefs.h | sort
1145 echo
1146 fi
1147 test "$ac_signal" != 0 &&
1148 echo "$as_me: caught signal $ac_signal"
1149 echo "$as_me: exit $exit_status"
1150 } >&5
1151 rm -f core *.core &&
1152 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1153 exit $exit_status
1154 ' 0
1155 for ac_signal in 1 2 13 15; do
1156 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1157 done
1158 ac_signal=0
1159
1160 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1161 rm -rf conftest* confdefs.h
1162 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1163 echo >confdefs.h
1164
1165 # Predefined preprocessor variables.
1166
1167 cat >>confdefs.h <<_ACEOF
1168 #define PACKAGE_NAME "$PACKAGE_NAME"
1169 _ACEOF
1170
1171
1172 cat >>confdefs.h <<_ACEOF
1173 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1174 _ACEOF
1175
1176
1177 cat >>confdefs.h <<_ACEOF
1178 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1179 _ACEOF
1180
1181
1182 cat >>confdefs.h <<_ACEOF
1183 #define PACKAGE_STRING "$PACKAGE_STRING"
1184 _ACEOF
1185
1186
1187 cat >>confdefs.h <<_ACEOF
1188 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1189 _ACEOF
1190
1191
1192 # Let the site file select an alternate cache file if it wants to.
1193 # Prefer explicitly selected file to automatically selected ones.
1194 if test -z "$CONFIG_SITE"; then
1195 if test "x$prefix" != xNONE; then
1196 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1197 else
1198 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1199 fi
1200 fi
1201 for ac_site_file in $CONFIG_SITE; do
1202 if test -r "$ac_site_file"; then
1203 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1204 echo "$as_me: loading site script $ac_site_file" >&6;}
1205 sed 's/^/| /' "$ac_site_file" >&5
1206 . "$ac_site_file"
1207 fi
1208 done
1209
1210 if test -r "$cache_file"; then
1211 # Some versions of bash will fail to source /dev/null (special
1212 # files actually), so we avoid doing that.
1213 if test -f "$cache_file"; then
1214 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1215 echo "$as_me: loading cache $cache_file" >&6;}
1216 case $cache_file in
1217 [\\/]* | ?:[\\/]* ) . $cache_file;;
1218 *) . ./$cache_file;;
1219 esac
1220 fi
1221 else
1222 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1223 echo "$as_me: creating cache $cache_file" >&6;}
1224 >$cache_file
1225 fi
1226
1227 # Check that the precious variables saved in the cache have kept the same
1228 # value.
1229 ac_cache_corrupted=false
1230 for ac_var in `(set) 2>&1 |
1231 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1232 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1233 eval ac_new_set=\$ac_env_${ac_var}_set
1234 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1235 eval ac_new_val="\$ac_env_${ac_var}_value"
1236 case $ac_old_set,$ac_new_set in
1237 set,)
1238 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1239 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1240 ac_cache_corrupted=: ;;
1241 ,set)
1242 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1243 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1244 ac_cache_corrupted=: ;;
1245 ,);;
1246 *)
1247 if test "x$ac_old_val" != "x$ac_new_val"; then
1248 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1249 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1250 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1251 echo "$as_me: former value: $ac_old_val" >&2;}
1252 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1253 echo "$as_me: current value: $ac_new_val" >&2;}
1254 ac_cache_corrupted=:
1255 fi;;
1256 esac
1257 # Pass precious variables to config.status.
1258 if test "$ac_new_set" = set; then
1259 case $ac_new_val in
1260 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1261 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1262 *) ac_arg=$ac_var=$ac_new_val ;;
1263 esac
1264 case " $ac_configure_args " in
1265 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1266 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1267 esac
1268 fi
1269 done
1270 if $ac_cache_corrupted; then
1271 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1272 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1273 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1274 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1275 { (exit 1); exit 1; }; }
1276 fi
1277
1278 ac_ext=c
1279 ac_cpp='$CPP $CPPFLAGS'
1280 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1281 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1282 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310 ($Id: configure,v 1.28 2003/11/25 09:28:27 alphix Exp $)
1311
1312
1313 ac_config_headers="$ac_config_headers config.h"
1314
1315
1316 PACKAGE=ample
1317 AMPLE_MAJOR_VERSION=0
1318 AMPLE_MINOR_VERSION=5
1319 AMPLE_MICRO_VERSION=7
1320
1321 AMPLE_VERSION=\"$AMPLE_MAJOR_VERSION.$AMPLE_MINOR_VERSION.$AMPLE_MICRO_VERSION\"
1322
1323 cat >>confdefs.h <<_ACEOF
1324 #define AMPLE_VERSION $AMPLE_VERSION
1325 _ACEOF
1326
1327
1328
1329
1330 ac_ext=c
1331 ac_cpp='$CPP $CPPFLAGS'
1332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1335 if test -n "$ac_tool_prefix"; then
1336 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1337 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1338 echo "$as_me:$LINENO: checking for $ac_word" >&5
1339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1340 if test "${ac_cv_prog_CC+set}" = set; then
1341 echo $ECHO_N "(cached) $ECHO_C" >&6
1342 else
1343 if test -n "$CC"; then
1344 ac_cv_prog_CC="$CC" # Let the user override the test.
1345 else
1346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1347 for as_dir in $PATH
1348 do
1349 IFS=$as_save_IFS
1350 test -z "$as_dir" && as_dir=.
1351 for ac_exec_ext in '' $ac_executable_extensions; do
1352 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1353 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1354 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1355 break 2
1356 fi
1357 done
1358 done
1359
1360 fi
1361 fi
1362 CC=$ac_cv_prog_CC
1363 if test -n "$CC"; then
1364 echo "$as_me:$LINENO: result: $CC" >&5
1365 echo "${ECHO_T}$CC" >&6
1366 else
1367 echo "$as_me:$LINENO: result: no" >&5
1368 echo "${ECHO_T}no" >&6
1369 fi
1370
1371 fi
1372 if test -z "$ac_cv_prog_CC"; then
1373 ac_ct_CC=$CC
1374 # Extract the first word of "gcc", so it can be a program name with args.
1375 set dummy gcc; ac_word=$2
1376 echo "$as_me:$LINENO: checking for $ac_word" >&5
1377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1378 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1379 echo $ECHO_N "(cached) $ECHO_C" >&6
1380 else
1381 if test -n "$ac_ct_CC"; then
1382 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1383 else
1384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1385 for as_dir in $PATH
1386 do
1387 IFS=$as_save_IFS
1388 test -z "$as_dir" && as_dir=.
1389 for ac_exec_ext in '' $ac_executable_extensions; do
1390 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1391 ac_cv_prog_ac_ct_CC="gcc"
1392 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1393 break 2
1394 fi
1395 done
1396 done
1397
1398 fi
1399 fi
1400 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1401 if test -n "$ac_ct_CC"; then
1402 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1403 echo "${ECHO_T}$ac_ct_CC" >&6
1404 else
1405 echo "$as_me:$LINENO: result: no" >&5
1406 echo "${ECHO_T}no" >&6
1407 fi
1408
1409 CC=$ac_ct_CC
1410 else
1411 CC="$ac_cv_prog_CC"
1412 fi
1413
1414 if test -z "$CC"; then
1415 if test -n "$ac_tool_prefix"; then
1416 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1417 set dummy ${ac_tool_prefix}cc; ac_word=$2
1418 echo "$as_me:$LINENO: checking for $ac_word" >&5
1419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1420 if test "${ac_cv_prog_CC+set}" = set; then
1421 echo $ECHO_N "(cached) $ECHO_C" >&6
1422 else
1423 if test -n "$CC"; then
1424 ac_cv_prog_CC="$CC" # Let the user override the test.
1425 else
1426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1427 for as_dir in $PATH
1428 do
1429 IFS=$as_save_IFS
1430 test -z "$as_dir" && as_dir=.
1431 for ac_exec_ext in '' $ac_executable_extensions; do
1432 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1433 ac_cv_prog_CC="${ac_tool_prefix}cc"
1434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1435 break 2
1436 fi
1437 done
1438 done
1439
1440 fi
1441 fi
1442 CC=$ac_cv_prog_CC
1443 if test -n "$CC"; then
1444 echo "$as_me:$LINENO: result: $CC" >&5
1445 echo "${ECHO_T}$CC" >&6
1446 else
1447 echo "$as_me:$LINENO: result: no" >&5
1448 echo "${ECHO_T}no" >&6
1449 fi
1450
1451 fi
1452 if test -z "$ac_cv_prog_CC"; then
1453 ac_ct_CC=$CC
1454 # Extract the first word of "cc", so it can be a program name with args.
1455 set dummy cc; ac_word=$2
1456 echo "$as_me:$LINENO: checking for $ac_word" >&5
1457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1458 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1459 echo $ECHO_N "(cached) $ECHO_C" >&6
1460 else
1461 if test -n "$ac_ct_CC"; then
1462 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1463 else
1464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1465 for as_dir in $PATH
1466 do
1467 IFS=$as_save_IFS
1468 test -z "$as_dir" && as_dir=.
1469 for ac_exec_ext in '' $ac_executable_extensions; do
1470 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1471 ac_cv_prog_ac_ct_CC="cc"
1472 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1473 break 2
1474 fi
1475 done
1476 done
1477
1478 fi
1479 fi
1480 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1481 if test -n "$ac_ct_CC"; then
1482 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1483 echo "${ECHO_T}$ac_ct_CC" >&6
1484 else
1485 echo "$as_me:$LINENO: result: no" >&5
1486 echo "${ECHO_T}no" >&6
1487 fi
1488
1489 CC=$ac_ct_CC
1490 else
1491 CC="$ac_cv_prog_CC"
1492 fi
1493
1494 fi
1495 if test -z "$CC"; then
1496 # Extract the first word of "cc", so it can be a program name with args.
1497 set dummy cc; ac_word=$2
1498 echo "$as_me:$LINENO: checking for $ac_word" >&5
1499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1500 if test "${ac_cv_prog_CC+set}" = set; then
1501 echo $ECHO_N "(cached) $ECHO_C" >&6
1502 else
1503 if test -n "$CC"; then
1504 ac_cv_prog_CC="$CC" # Let the user override the test.
1505 else
1506 ac_prog_rejected=no
1507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1508 for as_dir in $PATH
1509 do
1510 IFS=$as_save_IFS
1511 test -z "$as_dir" && as_dir=.
1512 for ac_exec_ext in '' $ac_executable_extensions; do
1513 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1514 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1515 ac_prog_rejected=yes
1516 continue
1517 fi
1518 ac_cv_prog_CC="cc"
1519 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1520 break 2
1521 fi
1522 done
1523 done
1524
1525 if test $ac_prog_rejected = yes; then
1526 # We found a bogon in the path, so make sure we never use it.
1527 set dummy $ac_cv_prog_CC
1528 shift
1529 if test $# != 0; then
1530 # We chose a different compiler from the bogus one.
1531 # However, it has the same basename, so the bogon will be chosen
1532 # first if we set CC to just the basename; use the full file name.
1533 shift
1534 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1535 fi
1536 fi
1537 fi
1538 fi
1539 CC=$ac_cv_prog_CC
1540 if test -n "$CC"; then
1541 echo "$as_me:$LINENO: result: $CC" >&5
1542 echo "${ECHO_T}$CC" >&6
1543 else
1544 echo "$as_me:$LINENO: result: no" >&5
1545 echo "${ECHO_T}no" >&6
1546 fi
1547
1548 fi
1549 if test -z "$CC"; then
1550 if test -n "$ac_tool_prefix"; then
1551 for ac_prog in cl
1552 do
1553 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1554 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1555 echo "$as_me:$LINENO: checking for $ac_word" >&5
1556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1557 if test "${ac_cv_prog_CC+set}" = set; then
1558 echo $ECHO_N "(cached) $ECHO_C" >&6
1559 else
1560 if test -n "$CC"; then
1561 ac_cv_prog_CC="$CC" # Let the user override the test.
1562 else
1563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1564 for as_dir in $PATH
1565 do
1566 IFS=$as_save_IFS
1567 test -z "$as_dir" && as_dir=.
1568 for ac_exec_ext in '' $ac_executable_extensions; do
1569 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1570 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1572 break 2
1573 fi
1574 done
1575 done
1576
1577 fi
1578 fi
1579 CC=$ac_cv_prog_CC
1580 if test -n "$CC"; then
1581 echo "$as_me:$LINENO: result: $CC" >&5
1582 echo "${ECHO_T}$CC" >&6
1583 else
1584 echo "$as_me:$LINENO: result: no" >&5
1585 echo "${ECHO_T}no" >&6
1586 fi
1587
1588 test -n "$CC" && break
1589 done
1590 fi
1591 if test -z "$CC"; then
1592 ac_ct_CC=$CC
1593 for ac_prog in cl
1594 do
1595 # Extract the first word of "$ac_prog", so it can be a program name with args.
1596 set dummy $ac_prog; ac_word=$2
1597 echo "$as_me:$LINENO: checking for $ac_word" >&5
1598 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1599 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1600 echo $ECHO_N "(cached) $ECHO_C" >&6
1601 else
1602 if test -n "$ac_ct_CC"; then
1603 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1604 else
1605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1606 for as_dir in $PATH
1607 do
1608 IFS=$as_save_IFS
1609 test -z "$as_dir" && as_dir=.
1610 for ac_exec_ext in '' $ac_executable_extensions; do
1611 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1612 ac_cv_prog_ac_ct_CC="$ac_prog"
1613 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1614 break 2
1615 fi
1616 done
1617 done
1618
1619 fi
1620 fi
1621 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1622 if test -n "$ac_ct_CC"; then
1623 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1624 echo "${ECHO_T}$ac_ct_CC" >&6
1625 else
1626 echo "$as_me:$LINENO: result: no" >&5
1627 echo "${ECHO_T}no" >&6
1628 fi
1629
1630 test -n "$ac_ct_CC" && break
1631 done
1632
1633 CC=$ac_ct_CC
1634 fi
1635
1636 fi
1637
1638
1639 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1640 See \`config.log' for more details." >&5
1641 echo "$as_me: error: no acceptable C compiler found in \$PATH
1642 See \`config.log' for more details." >&2;}
1643 { (exit 1); exit 1; }; }
1644
1645 # Provide some information about the compiler.
1646 echo "$as_me:$LINENO:" \
1647 "checking for C compiler version" >&5
1648 ac_compiler=`set X $ac_compile; echo $2`
1649 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1650 (eval $ac_compiler --version </dev/null >&5) 2>&5
1651 ac_status=$?
1652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1653 (exit $ac_status); }
1654 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1655 (eval $ac_compiler -v </dev/null >&5) 2>&5
1656 ac_status=$?
1657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1658 (exit $ac_status); }
1659 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1660 (eval $ac_compiler -V </dev/null >&5) 2>&5
1661 ac_status=$?
1662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1663 (exit $ac_status); }
1664
1665 cat >conftest.$ac_ext <<_ACEOF
1666 /* confdefs.h. */
1667 _ACEOF
1668 cat confdefs.h >>conftest.$ac_ext
1669 cat >>conftest.$ac_ext <<_ACEOF
1670 /* end confdefs.h. */
1671
1672 int
1673 main ()
1674 {
1675
1676 ;
1677 return 0;
1678 }
1679 _ACEOF
1680 ac_clean_files_save=$ac_clean_files
1681 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1682 # Try to create an executable without -o first, disregard a.out.
1683 # It will help us diagnose broken compilers, and finding out an intuition
1684 # of exeext.
1685 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1686 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1687 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1688 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1689 (eval $ac_link_default) 2>&5
1690 ac_status=$?
1691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1692 (exit $ac_status); }; then
1693 # Find the output, starting from the most likely. This scheme is
1694 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1695 # resort.
1696
1697 # Be careful to initialize this variable, since it used to be cached.
1698 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1699 ac_cv_exeext=
1700 # b.out is created by i960 compilers.
1701 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1702 do
1703 test -f "$ac_file" || continue
1704 case $ac_file in
1705 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1706 ;;
1707 conftest.$ac_ext )
1708 # This is the source file.
1709 ;;
1710 [ab].out )
1711 # We found the default executable, but exeext='' is most
1712 # certainly right.
1713 break;;
1714 *.* )
1715 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1716 # FIXME: I believe we export ac_cv_exeext for Libtool,
1717 # but it would be cool to find out if it's true. Does anybody
1718 # maintain Libtool? --akim.
1719 export ac_cv_exeext
1720 break;;
1721 * )
1722 break;;
1723 esac
1724 done
1725 else
1726 echo "$as_me: failed program was:" >&5
1727 sed 's/^/| /' conftest.$ac_ext >&5
1728
1729 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1730 See \`config.log' for more details." >&5
1731 echo "$as_me: error: C compiler cannot create executables
1732 See \`config.log' for more details." >&2;}
1733 { (exit 77); exit 77; }; }
1734 fi
1735
1736 ac_exeext=$ac_cv_exeext
1737 echo "$as_me:$LINENO: result: $ac_file" >&5
1738 echo "${ECHO_T}$ac_file" >&6
1739
1740 # Check the compiler produces executables we can run. If not, either
1741 # the compiler is broken, or we cross compile.
1742 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1743 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1744 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1745 # If not cross compiling, check that we can run a simple program.
1746 if test "$cross_compiling" != yes; then
1747 if { ac_try='./$ac_file'
1748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1749 (eval $ac_try) 2>&5
1750 ac_status=$?
1751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1752 (exit $ac_status); }; }; then
1753 cross_compiling=no
1754 else
1755 if test "$cross_compiling" = maybe; then
1756 cross_compiling=yes
1757 else
1758 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1759 If you meant to cross compile, use \`--host'.
1760 See \`config.log' for more details." >&5
1761 echo "$as_me: error: cannot run C compiled programs.
1762 If you meant to cross compile, use \`--host'.
1763 See \`config.log' for more details." >&2;}
1764 { (exit 1); exit 1; }; }
1765 fi
1766 fi
1767 fi
1768 echo "$as_me:$LINENO: result: yes" >&5
1769 echo "${ECHO_T}yes" >&6
1770
1771 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1772 ac_clean_files=$ac_clean_files_save
1773 # Check the compiler produces executables we can run. If not, either
1774 # the compiler is broken, or we cross compile.
1775 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1776 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1777 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1778 echo "${ECHO_T}$cross_compiling" >&6
1779
1780 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1781 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1783 (eval $ac_link) 2>&5
1784 ac_status=$?
1785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1786 (exit $ac_status); }; then
1787 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1788 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1789 # work properly (i.e., refer to `conftest.exe'), while it won't with
1790 # `rm'.
1791 for ac_file in conftest.exe conftest conftest.*; do
1792 test -f "$ac_file" || continue
1793 case $ac_file in
1794 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1795 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1796 export ac_cv_exeext
1797 break;;
1798 * ) break;;
1799 esac
1800 done
1801 else
1802 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1803 See \`config.log' for more details." >&5
1804 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1805 See \`config.log' for more details." >&2;}
1806 { (exit 1); exit 1; }; }
1807 fi
1808
1809 rm -f conftest$ac_cv_exeext
1810 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1811 echo "${ECHO_T}$ac_cv_exeext" >&6
1812
1813 rm -f conftest.$ac_ext
1814 EXEEXT=$ac_cv_exeext
1815 ac_exeext=$EXEEXT
1816 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1817 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1818 if test "${ac_cv_objext+set}" = set; then
1819 echo $ECHO_N "(cached) $ECHO_C" >&6
1820 else
1821 cat >conftest.$ac_ext <<_ACEOF
1822 /* confdefs.h. */
1823 _ACEOF
1824 cat confdefs.h >>conftest.$ac_ext
1825 cat >>conftest.$ac_ext <<_ACEOF
1826 /* end confdefs.h. */
1827
1828 int
1829 main ()
1830 {
1831
1832 ;
1833 return 0;
1834 }
1835 _ACEOF
1836 rm -f conftest.o conftest.obj
1837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1838 (eval $ac_compile) 2>&5
1839 ac_status=$?
1840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1841 (exit $ac_status); }; then
1842 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1843 case $ac_file in
1844 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1845 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1846 break;;
1847 esac
1848 done
1849 else
1850 echo "$as_me: failed program was:" >&5
1851 sed 's/^/| /' conftest.$ac_ext >&5
1852
1853 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1854 See \`config.log' for more details." >&5
1855 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1856 See \`config.log' for more details." >&2;}
1857 { (exit 1); exit 1; }; }
1858 fi
1859
1860 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1861 fi
1862 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1863 echo "${ECHO_T}$ac_cv_objext" >&6
1864 OBJEXT=$ac_cv_objext
1865 ac_objext=$OBJEXT
1866 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1867 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1868 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1869 echo $ECHO_N "(cached) $ECHO_C" >&6
1870 else
1871 cat >conftest.$ac_ext <<_ACEOF
1872 /* confdefs.h. */
1873 _ACEOF
1874 cat confdefs.h >>conftest.$ac_ext
1875 cat >>conftest.$ac_ext <<_ACEOF
1876 /* end confdefs.h. */
1877
1878 int
1879 main ()
1880 {
1881 #ifndef __GNUC__
1882 choke me
1883 #endif
1884
1885 ;
1886 return 0;
1887 }
1888 _ACEOF
1889 rm -f conftest.$ac_objext
1890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1891 (eval $ac_compile) 2>conftest.er1
1892 ac_status=$?
1893 grep -v '^ *+' conftest.er1 >conftest.err
1894 rm -f conftest.er1
1895 cat conftest.err >&5
1896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1897 (exit $ac_status); } &&
1898 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1900 (eval $ac_try) 2>&5
1901 ac_status=$?
1902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1903 (exit $ac_status); }; } &&
1904 { ac_try='test -s conftest.$ac_objext'
1905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1906 (eval $ac_try) 2>&5
1907 ac_status=$?
1908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1909 (exit $ac_status); }; }; then
1910 ac_compiler_gnu=yes
1911 else
1912 echo "$as_me: failed program was:" >&5
1913 sed 's/^/| /' conftest.$ac_ext >&5
1914
1915 ac_compiler_gnu=no
1916 fi
1917 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1918 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1919
1920 fi
1921 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1922 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1923 GCC=`test $ac_compiler_gnu = yes && echo yes`
1924 ac_test_CFLAGS=${CFLAGS+set}
1925 ac_save_CFLAGS=$CFLAGS
1926 CFLAGS="-g"
1927 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1928 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1929 if test "${ac_cv_prog_cc_g+set}" = set; then
1930 echo $ECHO_N "(cached) $ECHO_C" >&6
1931 else
1932 cat >conftest.$ac_ext <<_ACEOF
1933 /* confdefs.h. */
1934 _ACEOF
1935 cat confdefs.h >>conftest.$ac_ext
1936 cat >>conftest.$ac_ext <<_ACEOF
1937 /* end confdefs.h. */
1938
1939 int
1940 main ()
1941 {
1942
1943 ;
1944 return 0;
1945 }
1946 _ACEOF
1947 rm -f conftest.$ac_objext
1948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1949 (eval $ac_compile) 2>conftest.er1
1950 ac_status=$?
1951 grep -v '^ *+' conftest.er1 >conftest.err
1952 rm -f conftest.er1
1953 cat conftest.err >&5
1954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1955 (exit $ac_status); } &&
1956 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1958 (eval $ac_try) 2>&5
1959 ac_status=$?
1960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1961 (exit $ac_status); }; } &&
1962 { ac_try='test -s conftest.$ac_objext'
1963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1964 (eval $ac_try) 2>&5
1965 ac_status=$?
1966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1967 (exit $ac_status); }; }; then
1968 ac_cv_prog_cc_g=yes
1969 else
1970 echo "$as_me: failed program was:" >&5
1971 sed 's/^/| /' conftest.$ac_ext >&5
1972
1973 ac_cv_prog_cc_g=no
1974 fi
1975 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1976 fi
1977 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1978 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1979 if test "$ac_test_CFLAGS" = set; then
1980 CFLAGS=$ac_save_CFLAGS
1981 elif test $ac_cv_prog_cc_g = yes; then
1982 if test "$GCC" = yes; then
1983 CFLAGS="-g -O2"
1984 else
1985 CFLAGS="-g"
1986 fi
1987 else
1988 if test "$GCC" = yes; then
1989 CFLAGS="-O2"
1990 else
1991 CFLAGS=
1992 fi
1993 fi
1994 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1995 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1996 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1997 echo $ECHO_N "(cached) $ECHO_C" >&6
1998 else
1999 ac_cv_prog_cc_stdc=no
2000 ac_save_CC=$CC
2001 cat >conftest.$ac_ext <<_ACEOF
2002 /* confdefs.h. */
2003 _ACEOF
2004 cat confdefs.h >>conftest.$ac_ext
2005 cat >>conftest.$ac_ext <<_ACEOF
2006 /* end confdefs.h. */
2007 #include <stdarg.h>
2008 #include <stdio.h>
2009 #include <sys/types.h>
2010 #include <sys/stat.h>
2011 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2012 struct buf { int x; };
2013 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2014 static char *e (p, i)
2015 char **p;
2016 int i;
2017 {
2018 return p[i];
2019 }
2020 static char *f (char * (*g) (char **, int), char **p, ...)
2021 {
2022 char *s;
2023 va_list v;
2024 va_start (v,p);
2025 s = g (p, va_arg (v,int));
2026 va_end (v);
2027 return s;
2028 }
2029
2030 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2031 function prototypes and stuff, but not '\xHH' hex character constants.
2032 These don't provoke an error unfortunately, instead are silently treated
2033 as 'x'. The following induces an error, until -std1 is added to get
2034 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2035 array size at least. It's necessary to write '\x00'==0 to get something
2036 that's true only with -std1. */
2037 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2038
2039 int test (int i, double x);
2040 struct s1 {int (*f) (int a);};
2041 struct s2 {int (*f) (double a);};
2042 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2043 int argc;
2044 char **argv;
2045 int
2046 main ()
2047 {
2048 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2049 ;
2050 return 0;
2051 }
2052 _ACEOF
2053 # Don't try gcc -ansi; that turns off useful extensions and
2054 # breaks some systems' header files.
2055 # AIX -qlanglvl=ansi
2056 # Ultrix and OSF/1 -std1
2057 # HP-UX 10.20 and later -Ae
2058 # HP-UX older versions -Aa -D_HPUX_SOURCE
2059 # SVR4 -Xc -D__EXTENSIONS__
2060 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2061 do
2062 CC="$ac_save_CC $ac_arg"
2063 rm -f conftest.$ac_objext
2064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2065 (eval $ac_compile) 2>conftest.er1
2066 ac_status=$?
2067 grep -v '^ *+' conftest.er1 >conftest.err
2068 rm -f conftest.er1
2069 cat conftest.err >&5
2070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2071 (exit $ac_status); } &&
2072 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2074 (eval $ac_try) 2>&5
2075 ac_status=$?
2076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2077 (exit $ac_status); }; } &&
2078 { ac_try='test -s conftest.$ac_objext'
2079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2080 (eval $ac_try) 2>&5
2081 ac_status=$?
2082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2083 (exit $ac_status); }; }; then
2084 ac_cv_prog_cc_stdc=$ac_arg
2085 break
2086 else
2087 echo "$as_me: failed program was:" >&5
2088 sed 's/^/| /' conftest.$ac_ext >&5
2089
2090 fi
2091 rm -f conftest.err conftest.$ac_objext
2092 done
2093 rm -f conftest.$ac_ext conftest.$ac_objext
2094 CC=$ac_save_CC
2095
2096 fi
2097
2098 case "x$ac_cv_prog_cc_stdc" in
2099 x|xno)
2100 echo "$as_me:$LINENO: result: none needed" >&5
2101 echo "${ECHO_T}none needed" >&6 ;;
2102 *)
2103 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2104 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2105 CC="$CC $ac_cv_prog_cc_stdc" ;;
2106 esac
2107
2108 # Some people use a C++ compiler to compile C. Since we use `exit',
2109 # in C++ we need to declare it. In case someone uses the same compiler
2110 # for both compiling C and C++ we need to have the C++ compiler decide
2111 # the declaration of exit, since it's the most demanding environment.
2112 cat >conftest.$ac_ext <<_ACEOF
2113 #ifndef __cplusplus
2114 choke me
2115 #endif
2116 _ACEOF
2117 rm -f conftest.$ac_objext
2118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2119 (eval $ac_compile) 2>conftest.er1
2120 ac_status=$?
2121 grep -v '^ *+' conftest.er1 >conftest.err
2122 rm -f conftest.er1
2123 cat conftest.err >&5
2124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2125 (exit $ac_status); } &&
2126 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2128 (eval $ac_try) 2>&5
2129 ac_status=$?
2130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2131 (exit $ac_status); }; } &&
2132 { ac_try='test -s conftest.$ac_objext'
2133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2134 (eval $ac_try) 2>&5
2135 ac_status=$?
2136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2137 (exit $ac_status); }; }; then
2138 for ac_declaration in \
2139 '' \
2140 'extern "C" void std::exit (int) throw (); using std::exit;' \
2141 'extern "C" void std::exit (int); using std::exit;' \
2142 'extern "C" void exit (int) throw ();' \
2143 'extern "C" void exit (int);' \
2144 'void exit (int);'
2145 do
2146 cat >conftest.$ac_ext <<_ACEOF
2147 /* confdefs.h. */
2148 _ACEOF
2149 cat confdefs.h >>conftest.$ac_ext
2150 cat >>conftest.$ac_ext <<_ACEOF
2151 /* end confdefs.h. */
2152 $ac_declaration
2153 #include <stdlib.h>
2154 int
2155 main ()
2156 {
2157 exit (42);
2158 ;
2159 return 0;
2160 }
2161 _ACEOF
2162 rm -f conftest.$ac_objext
2163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2164 (eval $ac_compile) 2>conftest.er1
2165 ac_status=$?
2166 grep -v '^ *+' conftest.er1 >conftest.err
2167 rm -f conftest.er1
2168 cat conftest.err >&5
2169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2170 (exit $ac_status); } &&
2171 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2173 (eval $ac_try) 2>&5
2174 ac_status=$?
2175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2176 (exit $ac_status); }; } &&
2177 { ac_try='test -s conftest.$ac_objext'
2178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2179 (eval $ac_try) 2>&5
2180 ac_status=$?
2181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2182 (exit $ac_status); }; }; then
2183 :
2184 else
2185 echo "$as_me: failed program was:" >&5
2186 sed 's/^/| /' conftest.$ac_ext >&5
2187
2188 continue
2189 fi
2190 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2191 cat >conftest.$ac_ext <<_ACEOF
2192 /* confdefs.h. */
2193 _ACEOF
2194 cat confdefs.h >>conftest.$ac_ext
2195 cat >>conftest.$ac_ext <<_ACEOF
2196 /* end confdefs.h. */
2197 $ac_declaration
2198 int
2199 main ()
2200 {
2201 exit (42);
2202 ;
2203 return 0;
2204 }
2205 _ACEOF
2206 rm -f conftest.$ac_objext
2207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2208 (eval $ac_compile) 2>conftest.er1
2209 ac_status=$?
2210 grep -v '^ *+' conftest.er1 >conftest.err
2211 rm -f conftest.er1
2212 cat conftest.err >&5
2213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2214 (exit $ac_status); } &&
2215 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2217 (eval $ac_try) 2>&5
2218 ac_status=$?
2219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2220 (exit $ac_status); }; } &&
2221 { ac_try='test -s conftest.$ac_objext'
2222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2223 (eval $ac_try) 2>&5
2224 ac_status=$?
2225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2226 (exit $ac_status); }; }; then
2227 break
2228 else
2229 echo "$as_me: failed program was:" >&5
2230 sed 's/^/| /' conftest.$ac_ext >&5
2231
2232 fi
2233 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2234 done
2235 rm -f conftest*
2236 if test -n "$ac_declaration"; then
2237 echo '#ifdef __cplusplus' >>confdefs.h
2238 echo $ac_declaration >>confdefs.h
2239 echo '#endif' >>confdefs.h
2240 fi
2241
2242 else
2243 echo "$as_me: failed program was:" >&5
2244 sed 's/^/| /' conftest.$ac_ext >&5
2245
2246 fi
2247 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2248 ac_ext=c
2249 ac_cpp='$CPP $CPPFLAGS'
2250 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2251 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2252 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2253
2254 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2255 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2256 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2257 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2258 echo $ECHO_N "(cached) $ECHO_C" >&6
2259 else
2260 cat >conftest.make <<\_ACEOF
2261 all:
2262 @echo 'ac_maketemp="$(MAKE)"'
2263 _ACEOF
2264 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2265 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2266 if test -n "$ac_maketemp"; then
2267 eval ac_cv_prog_make_${ac_make}_set=yes
2268 else
2269 eval ac_cv_prog_make_${ac_make}_set=no
2270 fi
2271 rm -f conftest.make
2272 fi
2273 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2274 echo "$as_me:$LINENO: result: yes" >&5
2275 echo "${ECHO_T}yes" >&6
2276 SET_MAKE=
2277 else
2278 echo "$as_me:$LINENO: result: no" >&5
2279 echo "${ECHO_T}no" >&6
2280 SET_MAKE="MAKE=${MAKE-make}"
2281 fi
2282
2283 ac_aux_dir=
2284 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2285 if test -f $ac_dir/install-sh; then
2286 ac_aux_dir=$ac_dir
2287 ac_install_sh="$ac_aux_dir/install-sh -c"
2288 break
2289 elif test -f $ac_dir/install.sh; then
2290 ac_aux_dir=$ac_dir
2291 ac_install_sh="$ac_aux_dir/install.sh -c"
2292 break
2293 elif test -f $ac_dir/shtool; then
2294 ac_aux_dir=$ac_dir
2295 ac_install_sh="$ac_aux_dir/shtool install -c"
2296 break
2297 fi
2298 done
2299 if test -z "$ac_aux_dir"; then
2300 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2301 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2302 { (exit 1); exit 1; }; }
2303 fi
2304 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2305 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2306 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2307
2308 # Find a good install program. We prefer a C program (faster),
2309 # so one script is as good as another. But avoid the broken or
2310 # incompatible versions:
2311 # SysV /etc/install, /usr/sbin/install
2312 # SunOS /usr/etc/install
2313 # IRIX /sbin/install
2314 # AIX /bin/install
2315 # AmigaOS /C/install, which installs bootblocks on floppy discs
2316 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2317 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2318 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2319 # OS/2's system install, which has a completely different semantic
2320 # ./install, which can be erroneously created by make from ./install.sh.
2321 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2322 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2323 if test -z "$INSTALL"; then
2324 if test "${ac_cv_path_install+set}" = set; then
2325 echo $ECHO_N "(cached) $ECHO_C" >&6
2326 else
2327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2328 for as_dir in $PATH
2329 do
2330 IFS=$as_save_IFS
2331 test -z "$as_dir" && as_dir=.
2332 # Account for people who put trailing slashes in PATH elements.
2333 case $as_dir/ in
2334 ./ | .// | /cC/* | \
2335 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2336 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2337 /usr/ucb/* ) ;;
2338 *)
2339 # OSF1 and SCO ODT 3.0 have their own names for install.
2340 # Don't use installbsd from OSF since it installs stuff as root
2341 # by default.
2342 for ac_prog in ginstall scoinst install; do
2343 for ac_exec_ext in '' $ac_executable_extensions; do
2344 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2345 if test $ac_prog = install &&
2346 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2347 # AIX install. It has an incompatible calling convention.
2348 :
2349 elif test $ac_prog = install &&
2350 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2351 # program-specific install script used by HP pwplus--don't use.
2352 :
2353 else
2354 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2355 break 3
2356 fi
2357 fi
2358 done
2359 done
2360 ;;
2361 esac
2362 done
2363
2364
2365 fi
2366 if test "${ac_cv_path_install+set}" = set; then
2367 INSTALL=$ac_cv_path_install
2368 else
2369 # As a last resort, use the slow shell script. We don't cache a
2370 # path for INSTALL within a source directory, because that will
2371 # break other packages using the cache if that directory is
2372 # removed, or if the path is relative.
2373 INSTALL=$ac_install_sh
2374 fi
2375 fi
2376 echo "$as_me:$LINENO: result: $INSTALL" >&5
2377 echo "${ECHO_T}$INSTALL" >&6
2378
2379 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2380 # It thinks the first close brace ends the variable substitution.
2381 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2382
2383 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2384
2385 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2386
2387
2388
2389
2390
2391
2392 echo "$as_me:$LINENO: checking for extra libraries needed for socket functions" >&5
2393 echo $ECHO_N "checking for extra libraries needed for socket functions... $ECHO_C" >&6
2394 if test "${ac_cv_socket_libs+set}" = set; then
2395 echo $ECHO_N "(cached) $ECHO_C" >&6
2396 else
2397
2398 oLIBS=$LIBS
2399
2400 cat >conftest.$ac_ext <<_ACEOF
2401 /* confdefs.h. */
2402 _ACEOF
2403 cat confdefs.h >>conftest.$ac_ext
2404 cat >>conftest.$ac_ext <<_ACEOF
2405 /* end confdefs.h. */
2406
2407 #include <sys/types.h>
2408 #include <sys/socket.h>
2409 #include <netinet/in.h>
2410 #include <arpa/inet.h>
2411
2412 int
2413 main ()
2414 {
2415
2416 struct in_addr add;
2417 int sd = socket(AF_INET, SOCK_STREAM, 0);
2418 inet_ntoa(add);
2419
2420 ;
2421 return 0;
2422 }
2423 _ACEOF
2424 rm -f conftest.$ac_objext conftest$ac_exeext
2425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2426 (eval $ac_link) 2>conftest.er1
2427 ac_status=$?
2428 grep -v '^ *+' conftest.er1 >conftest.err
2429 rm -f conftest.er1
2430 cat conftest.err >&5
2431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2432 (exit $ac_status); } &&
2433 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2435 (eval $ac_try) 2>&5
2436 ac_status=$?
2437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2438 (exit $ac_status); }; } &&
2439 { ac_try='test -s conftest$ac_exeext'
2440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2441 (eval $ac_try) 2>&5
2442 ac_status=$?
2443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2444 (exit $ac_status); }; }; then
2445 ac_cv_socket_libs="none"
2446 else
2447 echo "$as_me: failed program was:" >&5
2448 sed 's/^/| /' conftest.$ac_ext >&5
2449
2450 ac_cv_socket_libs=no
2451 fi
2452 rm -f conftest.err conftest.$ac_objext \
2453 conftest$ac_exeext conftest.$ac_ext
2454
2455 if test "x$ac_cv_socket_libs" = "xno"
2456 then
2457 LIBS="$oLIBS -lsocket"
2458 cat >conftest.$ac_ext <<_ACEOF
2459 /* confdefs.h. */
2460 _ACEOF
2461 cat confdefs.h >>conftest.$ac_ext
2462 cat >>conftest.$ac_ext <<_ACEOF
2463 /* end confdefs.h. */
2464
2465 #include <sys/types.h>
2466 #include <sys/socket.h>
2467 #include <netinet/in.h>
2468 #include <arpa/inet.h>
2469
2470 int
2471 main ()
2472 {
2473
2474 struct in_addr add;
2475 int sd = socket(AF_INET, SOCK_STREAM, 0);
2476 inet_ntoa(add);
2477
2478 ;
2479 return 0;
2480 }
2481 _ACEOF
2482 rm -f conftest.$ac_objext conftest$ac_exeext
2483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2484 (eval $ac_link) 2>conftest.er1
2485 ac_status=$?
2486 grep -v '^ *+' conftest.er1 >conftest.err
2487 rm -f conftest.er1
2488 cat conftest.err >&5
2489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2490 (exit $ac_status); } &&
2491 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2493 (eval $ac_try) 2>&5
2494 ac_status=$?
2495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2496 (exit $ac_status); }; } &&
2497 { ac_try='test -s conftest$ac_exeext'
2498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2499 (eval $ac_try) 2>&5
2500 ac_status=$?
2501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2502 (exit $ac_status); }; }; then
2503 ac_cv_socket_libs=-lsocket
2504 else
2505 echo "$as_me: failed program was:" >&5
2506 sed 's/^/| /' conftest.$ac_ext >&5
2507
2508 ac_cv_socket_libs=no
2509 fi
2510 rm -f conftest.err conftest.$ac_objext \
2511 conftest$ac_exeext conftest.$ac_ext
2512 fi
2513
2514 if test "x$ac_cv_socket_libs" = "xno"
2515 then
2516 LIBS="$oLIBS -lsocket -lnsl"
2517 cat >conftest.$ac_ext <<_ACEOF
2518 /* confdefs.h. */
2519 _ACEOF
2520 cat confdefs.h >>conftest.$ac_ext
2521 cat >>conftest.$ac_ext <<_ACEOF
2522 /* end confdefs.h. */
2523
2524 #include <sys/types.h>
2525 #include <sys/socket.h>
2526 #include <netinet/in.h>
2527 #include <arpa/inet.h>
2528
2529 int
2530 main ()
2531 {
2532
2533 struct in_addr add;
2534 int sd = socket(AF_INET, SOCK_STREAM, 0);
2535 inet_ntoa(add);
2536
2537 ;
2538 return 0;
2539 }
2540 _ACEOF
2541 rm -f conftest.$ac_objext conftest$ac_exeext
2542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2543 (eval $ac_link) 2>conftest.er1
2544 ac_status=$?
2545 grep -v '^ *+' conftest.er1 >conftest.err
2546 rm -f conftest.er1
2547 cat conftest.err >&5
2548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2549 (exit $ac_status); } &&
2550 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2552 (eval $ac_try) 2>&5
2553 ac_status=$?
2554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2555 (exit $ac_status); }; } &&
2556 { ac_try='test -s conftest$ac_exeext'
2557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2558 (eval $ac_try) 2>&5
2559 ac_status=$?
2560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2561 (exit $ac_status); }; }; then
2562 ac_cv_socket_libs="-lsocket -lnsl"
2563 else
2564 echo "$as_me: failed program was:" >&5
2565 sed 's/^/| /' conftest.$ac_ext >&5
2566
2567 ac_cv_socket_libs=no
2568 fi
2569 rm -f conftest.err conftest.$ac_objext \
2570 conftest$ac_exeext conftest.$ac_ext
2571 fi
2572
2573
2574 fi
2575 echo "$as_me:$LINENO: result: $ac_cv_socket_libs" >&5
2576 echo "${ECHO_T}$ac_cv_socket_libs" >&6
2577
2578 if test "x$ac_cv_socket_libs" = "xno"
2579 then
2580 { { echo "$as_me:$LINENO: error: cannot find socket libraries" >&5
2581 echo "$as_me: error: cannot find socket libraries" >&2;}
2582 { (exit 1); exit 1; }; }
2583 fi
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593 ac_header_dirent=no
2594 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
2595 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
2596 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
2597 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
2598 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2599 echo $ECHO_N "(cached) $ECHO_C" >&6
2600 else
2601 cat >conftest.$ac_ext <<_ACEOF
2602 /* confdefs.h. */
2603 _ACEOF
2604 cat confdefs.h >>conftest.$ac_ext
2605 cat >>conftest.$ac_ext <<_ACEOF
2606 /* end confdefs.h. */
2607 #include <sys/types.h>
2608 #include <$ac_hdr>
2609
2610 int
2611 main ()
2612 {
2613 if ((DIR *) 0)
2614 return 0;
2615 ;
2616 return 0;
2617 }
2618 _ACEOF
2619 rm -f conftest.$ac_objext
2620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2621 (eval $ac_compile) 2>conftest.er1
2622 ac_status=$?
2623 grep -v '^ *+' conftest.er1 >conftest.err
2624 rm -f conftest.er1
2625 cat conftest.err >&5
2626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627 (exit $ac_status); } &&
2628 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2630 (eval $ac_try) 2>&5
2631 ac_status=$?
2632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2633 (exit $ac_status); }; } &&
2634 { ac_try='test -s conftest.$ac_objext'
2635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2636 (eval $ac_try) 2>&5
2637 ac_status=$?
2638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2639 (exit $ac_status); }; }; then
2640 eval "$as_ac_Header=yes"
2641 else
2642 echo "$as_me: failed program was:" >&5
2643 sed 's/^/| /' conftest.$ac_ext >&5
2644
2645 eval "$as_ac_Header=no"
2646 fi
2647 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2648 fi
2649 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2650 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2651 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2652 cat >>confdefs.h <<_ACEOF
2653 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
2654 _ACEOF
2655
2656 ac_header_dirent=$ac_hdr; break
2657 fi
2658
2659 done
2660 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2661 if test $ac_header_dirent = dirent.h; then
2662 echo "$as_me:$LINENO: checking for library containing opendir" >&5
2663 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
2664 if test "${ac_cv_search_opendir+set}" = set; then
2665 echo $ECHO_N "(cached) $ECHO_C" >&6
2666 else
2667 ac_func_search_save_LIBS=$LIBS
2668 ac_cv_search_opendir=no
2669 cat >conftest.$ac_ext <<_ACEOF
2670 /* confdefs.h. */
2671 _ACEOF
2672 cat confdefs.h >>conftest.$ac_ext
2673 cat >>conftest.$ac_ext <<_ACEOF
2674 /* end confdefs.h. */
2675
2676 /* Override any gcc2 internal prototype to avoid an error. */
2677 #ifdef __cplusplus
2678 extern "C"
2679 #endif
2680 /* We use char because int might match the return type of a gcc2
2681 builtin and then its argument prototype would still apply. */
2682 char opendir ();
2683 int
2684 main ()
2685 {
2686 opendir ();
2687 ;
2688 return 0;
2689 }
2690 _ACEOF
2691 rm -f conftest.$ac_objext conftest$ac_exeext
2692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2693 (eval $ac_link) 2>conftest.er1
2694 ac_status=$?
2695 grep -v '^ *+' conftest.er1 >conftest.err
2696 rm -f conftest.er1
2697 cat conftest.err >&5
2698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2699 (exit $ac_status); } &&
2700 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2702 (eval $ac_try) 2>&5
2703 ac_status=$?
2704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2705 (exit $ac_status); }; } &&
2706 { ac_try='test -s conftest$ac_exeext'
2707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2708 (eval $ac_try) 2>&5
2709 ac_status=$?
2710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711 (exit $ac_status); }; }; then
2712 ac_cv_search_opendir="none required"
2713 else
2714 echo "$as_me: failed program was:" >&5
2715 sed 's/^/| /' conftest.$ac_ext >&5
2716
2717 fi
2718 rm -f conftest.err conftest.$ac_objext \
2719 conftest$ac_exeext conftest.$ac_ext
2720 if test "$ac_cv_search_opendir" = no; then
2721 for ac_lib in dir; do
2722 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2723 cat >conftest.$ac_ext <<_ACEOF
2724 /* confdefs.h. */
2725 _ACEOF
2726 cat confdefs.h >>conftest.$ac_ext
2727 cat >>conftest.$ac_ext <<_ACEOF
2728 /* end confdefs.h. */
2729
2730 /* Override any gcc2 internal prototype to avoid an error. */
2731 #ifdef __cplusplus
2732 extern "C"
2733 #endif
2734 /* We use char because int might match the return type of a gcc2
2735 builtin and then its argument prototype would still apply. */
2736 char opendir ();
2737 int
2738 main ()
2739 {
2740 opendir ();
2741 ;
2742 return 0;
2743 }
2744 _ACEOF
2745 rm -f conftest.$ac_objext conftest$ac_exeext
2746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2747 (eval $ac_link) 2>conftest.er1
2748 ac_status=$?
2749 grep -v '^ *+' conftest.er1 >conftest.err
2750 rm -f conftest.er1
2751 cat conftest.err >&5
2752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753 (exit $ac_status); } &&
2754 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2756 (eval $ac_try) 2>&5
2757 ac_status=$?
2758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759 (exit $ac_status); }; } &&
2760 { ac_try='test -s conftest$ac_exeext'
2761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2762 (eval $ac_try) 2>&5
2763 ac_status=$?
2764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765 (exit $ac_status); }; }; then
2766 ac_cv_search_opendir="-l$ac_lib"
2767 break
2768 else
2769 echo "$as_me: failed program was:" >&5
2770 sed 's/^/| /' conftest.$ac_ext >&5
2771
2772 fi
2773 rm -f conftest.err conftest.$ac_objext \
2774 conftest$ac_exeext conftest.$ac_ext
2775 done
2776 fi
2777 LIBS=$ac_func_search_save_LIBS
2778 fi
2779 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
2780 echo "${ECHO_T}$ac_cv_search_opendir" >&6
2781 if test "$ac_cv_search_opendir" != no; then
2782 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
2783
2784 fi
2785
2786 else
2787 echo "$as_me:$LINENO: checking for library containing opendir" >&5
2788 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
2789 if test "${ac_cv_search_opendir+set}" = set; then
2790 echo $ECHO_N "(cached) $ECHO_C" >&6
2791 else
2792 ac_func_search_save_LIBS=$LIBS
2793 ac_cv_search_opendir=no
2794 cat >conftest.$ac_ext <<_ACEOF
2795 /* confdefs.h. */
2796 _ACEOF
2797 cat confdefs.h >>conftest.$ac_ext
2798 cat >>conftest.$ac_ext <<_ACEOF
2799 /* end confdefs.h. */
2800
2801 /* Override any gcc2 internal prototype to avoid an error. */
2802 #ifdef __cplusplus
2803 extern "C"
2804 #endif
2805 /* We use char because int might match the return type of a gcc2
2806 builtin and then its argument prototype would still apply. */
2807 char opendir ();
2808 int
2809 main ()
2810 {
2811 opendir ();
2812 ;
2813 return 0;
2814 }
2815 _ACEOF
2816 rm -f conftest.$ac_objext conftest$ac_exeext
2817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2818 (eval $ac_link) 2>conftest.er1
2819 ac_status=$?
2820 grep -v '^ *+' conftest.er1 >conftest.err
2821 rm -f conftest.er1
2822 cat conftest.err >&5
2823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2824 (exit $ac_status); } &&
2825 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2827 (eval $ac_try) 2>&5
2828 ac_status=$?
2829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2830 (exit $ac_status); }; } &&
2831 { ac_try='test -s conftest$ac_exeext'
2832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2833 (eval $ac_try) 2>&5
2834 ac_status=$?
2835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2836 (exit $ac_status); }; }; then
2837 ac_cv_search_opendir="none required"
2838 else
2839 echo "$as_me: failed program was:" >&5
2840 sed 's/^/| /' conftest.$ac_ext >&5
2841
2842 fi
2843 rm -f conftest.err conftest.$ac_objext \
2844 conftest$ac_exeext conftest.$ac_ext
2845 if test "$ac_cv_search_opendir" = no; then
2846 for ac_lib in x; do
2847 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2848 cat >conftest.$ac_ext <<_ACEOF
2849 /* confdefs.h. */
2850 _ACEOF
2851 cat confdefs.h >>conftest.$ac_ext
2852 cat >>conftest.$ac_ext <<_ACEOF
2853 /* end confdefs.h. */
2854
2855 /* Override any gcc2 internal prototype to avoid an error. */
2856 #ifdef __cplusplus
2857 extern "C"
2858 #endif
2859 /* We use char because int might match the return type of a gcc2
2860 builtin and then its argument prototype would still apply. */
2861 char opendir ();
2862 int
2863 main ()
2864 {
2865 opendir ();
2866 ;
2867 return 0;
2868 }
2869 _ACEOF
2870 rm -f conftest.$ac_objext conftest$ac_exeext
2871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2872 (eval $ac_link) 2>conftest.er1
2873 ac_status=$?
2874 grep -v '^ *+' conftest.er1 >conftest.err
2875 rm -f conftest.er1
2876 cat conftest.err >&5
2877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2878 (exit $ac_status); } &&
2879 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2881 (eval $ac_try) 2>&5
2882 ac_status=$?
2883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2884 (exit $ac_status); }; } &&
2885 { ac_try='test -s conftest$ac_exeext'
2886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2887 (eval $ac_try) 2>&5
2888 ac_status=$?
2889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2890 (exit $ac_status); }; }; then
2891 ac_cv_search_opendir="-l$ac_lib"
2892 break
2893 else
2894 echo "$as_me: failed program was:" >&5
2895 sed 's/^/| /' conftest.$ac_ext >&5
2896
2897 fi
2898 rm -f conftest.err conftest.$ac_objext \
2899 conftest$ac_exeext conftest.$ac_ext
2900 done
2901 fi
2902 LIBS=$ac_func_search_save_LIBS
2903 fi
2904 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
2905 echo "${ECHO_T}$ac_cv_search_opendir" >&6
2906 if test "$ac_cv_search_opendir" != no; then
2907 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
2908
2909 fi
2910
2911 fi
2912
2913 ac_ext=c
2914 ac_cpp='$CPP $CPPFLAGS'
2915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2918 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2919 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2920 # On Suns, sometimes $CPP names a directory.
2921 if test -n "$CPP" && test -d "$CPP"; then
2922 CPP=
2923 fi
2924 if test -z "$CPP"; then
2925 if test "${ac_cv_prog_CPP+set}" = set; then
2926 echo $ECHO_N "(cached) $ECHO_C" >&6
2927 else
2928 # Double quotes because CPP needs to be expanded
2929 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2930 do
2931 ac_preproc_ok=false
2932 for ac_c_preproc_warn_flag in '' yes
2933 do
2934 # Use a header file that comes with gcc, so configuring glibc
2935 # with a fresh cross-compiler works.
2936 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2937 # <limits.h> exists even on freestanding compilers.
2938 # On the NeXT, cc -E runs the code through the compiler's parser,
2939 # not just through cpp. "Syntax error" is here to catch this case.
2940 cat >conftest.$ac_ext <<_ACEOF
2941 /* confdefs.h. */
2942 _ACEOF
2943 cat confdefs.h >>conftest.$ac_ext
2944 cat >>conftest.$ac_ext <<_ACEOF
2945 /* end confdefs.h. */
2946 #ifdef __STDC__
2947 # include <limits.h>
2948 #else
2949 # include <assert.h>
2950 #endif
2951 Syntax error
2952 _ACEOF
2953 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2954 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2955 ac_status=$?
2956 grep -v '^ *+' conftest.er1 >conftest.err
2957 rm -f conftest.er1
2958 cat conftest.err >&5
2959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2960 (exit $ac_status); } >/dev/null; then
2961 if test -s conftest.err; then
2962 ac_cpp_err=$ac_c_preproc_warn_flag
2963 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2964 else
2965 ac_cpp_err=
2966 fi
2967 else
2968 ac_cpp_err=yes
2969 fi
2970 if test -z "$ac_cpp_err"; then
2971 :
2972 else
2973 echo "$as_me: failed program was:" >&5
2974 sed 's/^/| /' conftest.$ac_ext >&5
2975
2976 # Broken: fails on valid input.
2977 continue
2978 fi
2979 rm -f conftest.err conftest.$ac_ext
2980
2981 # OK, works on sane cases. Now check whether non-existent headers
2982 # can be detected and how.
2983 cat >conftest.$ac_ext <<_ACEOF
2984 /* confdefs.h. */
2985 _ACEOF
2986 cat confdefs.h >>conftest.$ac_ext
2987 cat >>conftest.$ac_ext <<_ACEOF
2988 /* end confdefs.h. */
2989 #include <ac_nonexistent.h>
2990 _ACEOF
2991 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2992 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2993 ac_status=$?
2994 grep -v '^ *+' conftest.er1 >conftest.err
2995 rm -f conftest.er1
2996 cat conftest.err >&5
2997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2998 (exit $ac_status); } >/dev/null; then
2999 if test -s conftest.err; then
3000 ac_cpp_err=$ac_c_preproc_warn_flag
3001 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3002 else
3003 ac_cpp_err=
3004 fi
3005 else
3006 ac_cpp_err=yes
3007 fi
3008 if test -z "$ac_cpp_err"; then
3009 # Broken: success on invalid input.
3010 continue
3011 else
3012 echo "$as_me: failed program was:" >&5
3013 sed 's/^/| /' conftest.$ac_ext >&5
3014
3015 # Passes both tests.
3016 ac_preproc_ok=:
3017 break
3018 fi
3019 rm -f conftest.err conftest.$ac_ext
3020
3021 done
3022 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3023 rm -f conftest.err conftest.$ac_ext
3024 if $ac_preproc_ok; then
3025 break
3026 fi
3027
3028 done
3029 ac_cv_prog_CPP=$CPP
3030
3031 fi
3032 CPP=$ac_cv_prog_CPP
3033 else
3034 ac_cv_prog_CPP=$CPP
3035 fi
3036 echo "$as_me:$LINENO: result: $CPP" >&5
3037 echo "${ECHO_T}$CPP" >&6
3038 ac_preproc_ok=false
3039 for ac_c_preproc_warn_flag in '' yes
3040 do
3041 # Use a header file that comes with gcc, so configuring glibc
3042 # with a fresh cross-compiler works.
3043 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3044 # <limits.h> exists even on freestanding compilers.
3045 # On the NeXT, cc -E runs the code through the compiler's parser,
3046 # not just through cpp. "Syntax error" is here to catch this case.
3047 cat >conftest.$ac_ext <<_ACEOF
3048 /* confdefs.h. */
3049 _ACEOF
3050 cat confdefs.h >>conftest.$ac_ext
3051 cat >>conftest.$ac_ext <<_ACEOF
3052 /* end confdefs.h. */
3053 #ifdef __STDC__
3054 # include <limits.h>
3055 #else
3056 # include <assert.h>
3057 #endif
3058 Syntax error
3059 _ACEOF
3060 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3061 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3062 ac_status=$?
3063 grep -v '^ *+' conftest.er1 >conftest.err
3064 rm -f conftest.er1
3065 cat conftest.err >&5
3066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3067 (exit $ac_status); } >/dev/null; then
3068 if test -s conftest.err; then
3069 ac_cpp_err=$ac_c_preproc_warn_flag
3070 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3071 else
3072 ac_cpp_err=
3073 fi
3074 else
3075 ac_cpp_err=yes
3076 fi
3077 if test -z "$ac_cpp_err"; then
3078 :
3079 else
3080 echo "$as_me: failed program was:" >&5
3081 sed 's/^/| /' conftest.$ac_ext >&5
3082
3083 # Broken: fails on valid input.
3084 continue
3085 fi
3086 rm -f conftest.err conftest.$ac_ext
3087
3088 # OK, works on sane cases. Now check whether non-existent headers
3089 # can be detected and how.
3090 cat >conftest.$ac_ext <<_ACEOF
3091 /* confdefs.h. */
3092 _ACEOF
3093 cat confdefs.h >>conftest.$ac_ext
3094 cat >>conftest.$ac_ext <<_ACEOF
3095 /* end confdefs.h. */
3096 #include <ac_nonexistent.h>
3097 _ACEOF
3098 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3099 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3100 ac_status=$?
3101 grep -v '^ *+' conftest.er1 >conftest.err
3102 rm -f conftest.er1
3103 cat conftest.err >&5
3104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105 (exit $ac_status); } >/dev/null; then
3106 if test -s conftest.err; then
3107 ac_cpp_err=$ac_c_preproc_warn_flag
3108 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3109 else
3110 ac_cpp_err=
3111 fi
3112 else
3113 ac_cpp_err=yes
3114 fi
3115 if test -z "$ac_cpp_err"; then
3116 # Broken: success on invalid input.
3117 continue
3118 else
3119 echo "$as_me: failed program was:" >&5
3120 sed 's/^/| /' conftest.$ac_ext >&5
3121
3122 # Passes both tests.
3123 ac_preproc_ok=:
3124 break
3125 fi
3126 rm -f conftest.err conftest.$ac_ext
3127
3128 done
3129 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3130 rm -f conftest.err conftest.$ac_ext
3131 if $ac_preproc_ok; then
3132 :
3133 else
3134 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3135 See \`config.log' for more details." >&5
3136 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3137 See \`config.log' for more details." >&2;}
3138 { (exit 1); exit 1; }; }
3139 fi
3140
3141 ac_ext=c
3142 ac_cpp='$CPP $CPPFLAGS'
3143 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3144 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3145 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3146
3147
3148 echo "$as_me:$LINENO: checking for egrep" >&5
3149 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3150 if test "${ac_cv_prog_egrep+set}" = set; then
3151 echo $ECHO_N "(cached) $ECHO_C" >&6
3152 else
3153 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3154 then ac_cv_prog_egrep='grep -E'
3155 else ac_cv_prog_egrep='egrep'
3156 fi
3157 fi
3158 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3159 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3160 EGREP=$ac_cv_prog_egrep
3161
3162
3163 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3164 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3165 if test "${ac_cv_header_stdc+set}" = set; then
3166 echo $ECHO_N "(cached) $ECHO_C" >&6
3167 else
3168 cat >conftest.$ac_ext <<_ACEOF
3169 /* confdefs.h. */
3170 _ACEOF
3171 cat confdefs.h >>conftest.$ac_ext
3172 cat >>conftest.$ac_ext <<_ACEOF
3173 /* end confdefs.h. */
3174 #include <stdlib.h>
3175 #include <stdarg.h>
3176 #include <string.h>
3177 #include <float.h>
3178
3179 int
3180 main ()
3181 {
3182
3183 ;
3184 return 0;
3185 }
3186 _ACEOF
3187 rm -f conftest.$ac_objext
3188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3189 (eval $ac_compile) 2>conftest.er1
3190 ac_status=$?
3191 grep -v '^ *+' conftest.er1 >conftest.err
3192 rm -f conftest.er1
3193 cat conftest.err >&5
3194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3195 (exit $ac_status); } &&
3196 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3198 (eval $ac_try) 2>&5
3199 ac_status=$?
3200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3201 (exit $ac_status); }; } &&
3202 { ac_try='test -s conftest.$ac_objext'
3203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3204 (eval $ac_try) 2>&5
3205 ac_status=$?
3206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3207 (exit $ac_status); }; }; then
3208 ac_cv_header_stdc=yes
3209 else
3210 echo "$as_me: failed program was:" >&5
3211 sed 's/^/| /' conftest.$ac_ext >&5
3212
3213 ac_cv_header_stdc=no
3214 fi
3215 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3216
3217 if test $ac_cv_header_stdc = yes; then
3218 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3219 cat >conftest.$ac_ext <<_ACEOF
3220 /* confdefs.h. */
3221 _ACEOF
3222 cat confdefs.h >>conftest.$ac_ext
3223 cat >>conftest.$ac_ext <<_ACEOF
3224 /* end confdefs.h. */
3225 #include <string.h>
3226
3227 _ACEOF
3228 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3229 $EGREP "memchr" >/dev/null 2>&1; then
3230 :
3231 else
3232 ac_cv_header_stdc=no
3233 fi
3234 rm -f conftest*
3235
3236 fi
3237
3238 if test $ac_cv_header_stdc = yes; then
3239 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3240 cat >conftest.$ac_ext <<_ACEOF
3241 /* confdefs.h. */
3242 _ACEOF
3243 cat confdefs.h >>conftest.$ac_ext
3244 cat >>conftest.$ac_ext <<_ACEOF
3245 /* end confdefs.h. */
3246 #include <stdlib.h>
3247
3248 _ACEOF
3249 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3250 $EGREP "free" >/dev/null 2>&1; then
3251 :
3252 else
3253 ac_cv_header_stdc=no
3254 fi
3255 rm -f conftest*
3256
3257 fi
3258
3259 if test $ac_cv_header_stdc = yes; then
3260 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3261 if test "$cross_compiling" = yes; then
3262 :
3263 else
3264 cat >conftest.$ac_ext <<_ACEOF
3265 /* confdefs.h. */
3266 _ACEOF
3267 cat confdefs.h >>conftest.$ac_ext
3268 cat >>conftest.$ac_ext <<_ACEOF
3269 /* end confdefs.h. */
3270 #include <ctype.h>
3271 #if ((' ' & 0x0FF) == 0x020)
3272 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3273 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3274 #else
3275 # define ISLOWER(c) \
3276 (('a' <= (c) && (c) <= 'i') \
3277 || ('j' <= (c) && (c) <= 'r') \
3278 || ('s' <= (c) && (c) <= 'z'))
3279 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3280 #endif
3281
3282 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3283 int
3284 main ()
3285 {
3286 int i;
3287 for (i = 0; i < 256; i++)
3288 if (XOR (islower (i), ISLOWER (i))
3289 || toupper (i) != TOUPPER (i))
3290 exit(2);
3291 exit (0);
3292 }
3293 _ACEOF
3294 rm -f conftest$ac_exeext
3295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3296 (eval $ac_link) 2>&5
3297 ac_status=$?
3298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3299 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3301 (eval $ac_try) 2>&5
3302 ac_status=$?
3303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3304 (exit $ac_status); }; }; then
3305 :
3306 else
3307 echo "$as_me: program exited with status $ac_status" >&5
3308 echo "$as_me: failed program was:" >&5
3309 sed 's/^/| /' conftest.$ac_ext >&5
3310
3311 ( exit $ac_status )
3312 ac_cv_header_stdc=no
3313 fi
3314 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3315 fi
3316 fi
3317 fi
3318 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3319 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3320 if test $ac_cv_header_stdc = yes; then
3321
3322 cat >>confdefs.h <<\_ACEOF
3323 #define STDC_HEADERS 1
3324 _ACEOF
3325
3326 fi
3327
3328 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
3329 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
3330 if test "${ac_cv_header_sys_wait_h+set}" = set; then
3331 echo $ECHO_N "(cached) $ECHO_C" >&6
3332 else
3333 cat >conftest.$ac_ext <<_ACEOF
3334 /* confdefs.h. */
3335 _ACEOF
3336 cat confdefs.h >>conftest.$ac_ext
3337 cat >>conftest.$ac_ext <<_ACEOF
3338 /* end confdefs.h. */
3339 #include <sys/types.h>
3340 #include <sys/wait.h>
3341 #ifndef WEXITSTATUS
3342 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3343 #endif
3344 #ifndef WIFEXITED
3345 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3346 #endif
3347
3348 int
3349 main ()
3350 {
3351 int s;
3352 wait (&s);
3353 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3354 ;
3355 return 0;
3356 }
3357 _ACEOF
3358 rm -f conftest.$ac_objext
3359 if { (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_header_sys_wait_h=yes
3380 else
3381 echo "$as_me: failed program was:" >&5
3382 sed 's/^/| /' conftest.$ac_ext >&5
3383
3384 ac_cv_header_sys_wait_h=no
3385 fi
3386 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3387 fi
3388 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
3389 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
3390 if test $ac_cv_header_sys_wait_h = yes; then
3391
3392 cat >>confdefs.h <<\_ACEOF
3393 #define HAVE_SYS_WAIT_H 1
3394 _ACEOF
3395
3396 fi
3397
3398 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3409 inttypes.h stdint.h unistd.h
3410 do
3411 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3412 echo "$as_me:$LINENO: checking for $ac_header" >&5
3413 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3414 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3415 echo $ECHO_N "(cached) $ECHO_C" >&6
3416 else
3417 cat >conftest.$ac_ext <<_ACEOF
3418 /* confdefs.h. */
3419 _ACEOF
3420 cat confdefs.h >>conftest.$ac_ext
3421 cat >>conftest.$ac_ext <<_ACEOF
3422 /* end confdefs.h. */
3423 $ac_includes_default
3424
3425 #include <$ac_header>
3426 _ACEOF
3427 rm -f conftest.$ac_objext
3428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3429 (eval $ac_compile) 2>conftest.er1
3430 ac_status=$?
3431 grep -v '^ *+' conftest.er1 >conftest.err
3432 rm -f conftest.er1
3433 cat conftest.err >&5
3434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3435 (exit $ac_status); } &&
3436 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3438 (eval $ac_try) 2>&5
3439 ac_status=$?
3440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441 (exit $ac_status); }; } &&
3442 { ac_try='test -s conftest.$ac_objext'
3443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3444 (eval $ac_try) 2>&5
3445 ac_status=$?
3446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3447 (exit $ac_status); }; }; then
3448 eval "$as_ac_Header=yes"
3449 else
3450 echo "$as_me: failed program was:" >&5
3451 sed 's/^/| /' conftest.$ac_ext >&5
3452
3453 eval "$as_ac_Header=no"
3454 fi
3455 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3456 fi
3457 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3458 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3459 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3460 cat >>confdefs.h <<_ACEOF
3461 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3462 _ACEOF
3463
3464 fi
3465
3466 done
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482 for ac_header in arpa/inet.h errno.h fcntl.h limits.h netinet/in.h stdlib.h \
3483 string.h sys/socket.h unistd.h getopt.h signal.h stdint.h \
3484 netdb.h
3485 do
3486 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3487 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3488 echo "$as_me:$LINENO: checking for $ac_header" >&5
3489 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3490 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3491 echo $ECHO_N "(cached) $ECHO_C" >&6
3492 fi
3493 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3494 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3495 else
3496 # Is the header compilable?
3497 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3498 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3499 cat >conftest.$ac_ext <<_ACEOF
3500 /* confdefs.h. */
3501 _ACEOF
3502 cat confdefs.h >>conftest.$ac_ext
3503 cat >>conftest.$ac_ext <<_ACEOF
3504 /* end confdefs.h. */
3505 $ac_includes_default
3506 #include <$ac_header>
3507 _ACEOF
3508 rm -f conftest.$ac_objext
3509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3510 (eval $ac_compile) 2>conftest.er1
3511 ac_status=$?
3512 grep -v '^ *+' conftest.er1 >conftest.err
3513 rm -f conftest.er1
3514 cat conftest.err >&5
3515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3516 (exit $ac_status); } &&
3517 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3519 (eval $ac_try) 2>&5
3520 ac_status=$?
3521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3522 (exit $ac_status); }; } &&
3523 { ac_try='test -s conftest.$ac_objext'
3524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3525 (eval $ac_try) 2>&5
3526 ac_status=$?
3527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3528 (exit $ac_status); }; }; then
3529 ac_header_compiler=yes
3530 else
3531 echo "$as_me: failed program was:" >&5
3532 sed 's/^/| /' conftest.$ac_ext >&5
3533
3534 ac_header_compiler=no
3535 fi
3536 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3537 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3538 echo "${ECHO_T}$ac_header_compiler" >&6
3539
3540 # Is the header present?
3541 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3542 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3543 cat >conftest.$ac_ext <<_ACEOF
3544 /* confdefs.h. */
3545 _ACEOF
3546 cat confdefs.h >>conftest.$ac_ext
3547 cat >>conftest.$ac_ext <<_ACEOF
3548 /* end confdefs.h. */
3549 #include <$ac_header>
3550 _ACEOF
3551 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3552 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3553 ac_status=$?
3554 grep -v '^ *+' conftest.er1 >conftest.err
3555 rm -f conftest.er1
3556 cat conftest.err >&5
3557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3558 (exit $ac_status); } >/dev/null; then
3559 if test -s conftest.err; then
3560 ac_cpp_err=$ac_c_preproc_warn_flag
3561 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3562 else
3563 ac_cpp_err=
3564 fi
3565 else
3566 ac_cpp_err=yes
3567 fi
3568 if test -z "$ac_cpp_err"; then
3569 ac_header_preproc=yes
3570 else
3571 echo "$as_me: failed program was:" >&5
3572 sed 's/^/| /' conftest.$ac_ext >&5
3573
3574 ac_header_preproc=no
3575 fi
3576 rm -f conftest.err conftest.$ac_ext
3577 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3578 echo "${ECHO_T}$ac_header_preproc" >&6
3579
3580 # So? What about this header?
3581 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3582 yes:no: )
3583 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3584 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3585 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3586 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3587 ac_header_preproc=yes
3588 ;;
3589 no:yes:* )
3590 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3591 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3592 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3593 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3594 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3595 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3596 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3597 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3598 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3599 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3600 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3601 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3602 (
3603 cat <<\_ASBOX
3604 ## ----------------------------- ##
3605 ## Report this to [email protected] ##
3606 ## ----------------------------- ##
3607 _ASBOX
3608 ) |
3609 sed "s/^/$as_me: WARNING: /" >&2
3610 ;;
3611 esac
3612 echo "$as_me:$LINENO: checking for $ac_header" >&5
3613 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3614 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3615 echo $ECHO_N "(cached) $ECHO_C" >&6
3616 else
3617 eval "$as_ac_Header=\$ac_header_preproc"
3618 fi
3619 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3620 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3621
3622 fi
3623 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3624 cat >>confdefs.h <<_ACEOF
3625 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3626 _ACEOF
3627
3628 fi
3629
3630 done
3631
3632
3633
3634
3635 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3636 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3637 if test "${ac_cv_c_const+set}" = set; then
3638 echo $ECHO_N "(cached) $ECHO_C" >&6
3639 else
3640 cat >conftest.$ac_ext <<_ACEOF
3641 /* confdefs.h. */
3642 _ACEOF
3643 cat confdefs.h >>conftest.$ac_ext
3644 cat >>conftest.$ac_ext <<_ACEOF
3645 /* end confdefs.h. */
3646
3647 int
3648 main ()
3649 {
3650 /* FIXME: Include the comments suggested by Paul. */
3651 #ifndef __cplusplus
3652 /* Ultrix mips cc rejects this. */
3653 typedef int charset[2];
3654 const charset x;
3655 /* SunOS 4.1.1 cc rejects this. */
3656 char const *const *ccp;
3657 char **p;
3658 /* NEC SVR4.0.2 mips cc rejects this. */
3659 struct point {int x, y;};
3660 static struct point const zero = {0,0};
3661 /* AIX XL C 1.02.0.0 rejects this.
3662 It does not let you subtract one const X* pointer from another in
3663 an arm of an if-expression whose if-part is not a constant
3664 expression */
3665 const char *g = "string";
3666 ccp = &g + (g ? g-g : 0);
3667 /* HPUX 7.0 cc rejects these. */
3668 ++ccp;
3669 p = (char**) ccp;
3670 ccp = (char const *const *) p;
3671 { /* SCO 3.2v4 cc rejects this. */
3672 char *t;
3673 char const *s = 0 ? (char *) 0 : (char const *) 0;
3674
3675 *t++ = 0;
3676 }
3677 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3678 int x[] = {25, 17};
3679 const int *foo = &x[0];
3680 ++foo;
3681 }
3682 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3683 typedef const int *iptr;
3684 iptr p = 0;
3685 ++p;
3686 }
3687 { /* AIX XL C 1.02.0.0 rejects this saying
3688 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3689 struct s { int j; const int *ap[3]; };
3690 struct s *b; b->j = 5;
3691 }
3692 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3693 const int foo = 10;
3694 }
3695 #endif
3696
3697 ;
3698 return 0;
3699 }
3700 _ACEOF
3701 rm -f conftest.$ac_objext
3702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3703 (eval $ac_compile) 2>conftest.er1
3704 ac_status=$?
3705 grep -v '^ *+' conftest.er1 >conftest.err
3706 rm -f conftest.er1
3707 cat conftest.err >&5
3708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3709 (exit $ac_status); } &&
3710 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3712 (eval $ac_try) 2>&5
3713 ac_status=$?
3714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3715 (exit $ac_status); }; } &&
3716 { ac_try='test -s conftest.$ac_objext'
3717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3718 (eval $ac_try) 2>&5
3719 ac_status=$?
3720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3721 (exit $ac_status); }; }; then
3722 ac_cv_c_const=yes
3723 else
3724 echo "$as_me: failed program was:" >&5
3725 sed 's/^/| /' conftest.$ac_ext >&5
3726
3727 ac_cv_c_const=no
3728 fi
3729 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3730 fi
3731 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3732 echo "${ECHO_T}$ac_cv_c_const" >&6
3733 if test $ac_cv_c_const = no; then
3734
3735 cat >>confdefs.h <<\_ACEOF
3736 #define const
3737 _ACEOF
3738
3739 fi
3740
3741 echo "$as_me:$LINENO: checking for size_t" >&5
3742 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3743 if test "${ac_cv_type_size_t+set}" = set; then
3744 echo $ECHO_N "(cached) $ECHO_C" >&6
3745 else
3746 cat >conftest.$ac_ext <<_ACEOF
3747 /* confdefs.h. */
3748 _ACEOF
3749 cat confdefs.h >>conftest.$ac_ext
3750 cat >>conftest.$ac_ext <<_ACEOF
3751 /* end confdefs.h. */
3752 $ac_includes_default
3753 int
3754 main ()
3755 {
3756 if ((size_t *) 0)
3757 return 0;
3758 if (sizeof (size_t))
3759 return 0;
3760 ;
3761 return 0;
3762 }
3763 _ACEOF
3764 rm -f conftest.$ac_objext
3765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3766 (eval $ac_compile) 2>conftest.er1
3767 ac_status=$?
3768 grep -v '^ *+' conftest.er1 >conftest.err
3769 rm -f conftest.er1
3770 cat conftest.err >&5
3771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3772 (exit $ac_status); } &&
3773 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3775 (eval $ac_try) 2>&5
3776 ac_status=$?
3777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3778 (exit $ac_status); }; } &&
3779 { ac_try='test -s conftest.$ac_objext'
3780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3781 (eval $ac_try) 2>&5
3782 ac_status=$?
3783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3784 (exit $ac_status); }; }; then
3785 ac_cv_type_size_t=yes
3786 else
3787 echo "$as_me: failed program was:" >&5
3788 sed 's/^/| /' conftest.$ac_ext >&5
3789
3790 ac_cv_type_size_t=no
3791 fi
3792 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3793 fi
3794 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
3795 echo "${ECHO_T}$ac_cv_type_size_t" >&6
3796 if test $ac_cv_type_size_t = yes; then
3797 :
3798 else
3799
3800 cat >>confdefs.h <<_ACEOF
3801 #define size_t unsigned
3802 _ACEOF
3803
3804 fi
3805
3806 echo "$as_me:$LINENO: checking for off_t" >&5
3807 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
3808 if test "${ac_cv_type_off_t+set}" = set; then
3809 echo $ECHO_N "(cached) $ECHO_C" >&6
3810 else
3811 cat >conftest.$ac_ext <<_ACEOF
3812 /* confdefs.h. */
3813 _ACEOF
3814 cat confdefs.h >>conftest.$ac_ext
3815 cat >>conftest.$ac_ext <<_ACEOF
3816 /* end confdefs.h. */
3817 $ac_includes_default
3818 int
3819 main ()
3820 {
3821 if ((off_t *) 0)
3822 return 0;
3823 if (sizeof (off_t))
3824 return 0;
3825 ;
3826 return 0;
3827 }
3828 _ACEOF
3829 rm -f conftest.$ac_objext
3830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3831 (eval $ac_compile) 2>conftest.er1
3832 ac_status=$?
3833 grep -v '^ *+' conftest.er1 >conftest.err
3834 rm -f conftest.er1
3835 cat conftest.err >&5
3836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3837 (exit $ac_status); } &&
3838 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3840 (eval $ac_try) 2>&5
3841 ac_status=$?
3842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3843 (exit $ac_status); }; } &&
3844 { ac_try='test -s conftest.$ac_objext'
3845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3846 (eval $ac_try) 2>&5
3847 ac_status=$?
3848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3849 (exit $ac_status); }; }; then
3850 ac_cv_type_off_t=yes
3851 else
3852 echo "$as_me: failed program was:" >&5
3853 sed 's/^/| /' conftest.$ac_ext >&5
3854
3855 ac_cv_type_off_t=no
3856 fi
3857 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3858 fi
3859 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
3860 echo "${ECHO_T}$ac_cv_type_off_t" >&6
3861 if test $ac_cv_type_off_t = yes; then
3862 :
3863 else
3864
3865 cat >>confdefs.h <<_ACEOF
3866 #define off_t long
3867 _ACEOF
3868
3869 fi
3870
3871 echo "$as_me:$LINENO: checking for pid_t" >&5
3872 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
3873 if test "${ac_cv_type_pid_t+set}" = set; then
3874 echo $ECHO_N "(cached) $ECHO_C" >&6
3875 else
3876 cat >conftest.$ac_ext <<_ACEOF
3877 /* confdefs.h. */
3878 _ACEOF
3879 cat confdefs.h >>conftest.$ac_ext
3880 cat >>conftest.$ac_ext <<_ACEOF
3881 /* end confdefs.h. */
3882 $ac_includes_default
3883 int
3884 main ()
3885 {
3886 if ((pid_t *) 0)
3887 return 0;
3888 if (sizeof (pid_t))
3889 return 0;
3890 ;
3891 return 0;
3892 }
3893 _ACEOF
3894 rm -f conftest.$ac_objext
3895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3896 (eval $ac_compile) 2>conftest.er1
3897 ac_status=$?
3898 grep -v '^ *+' conftest.er1 >conftest.err
3899 rm -f conftest.er1
3900 cat conftest.err >&5
3901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3902 (exit $ac_status); } &&
3903 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3905 (eval $ac_try) 2>&5
3906 ac_status=$?
3907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3908 (exit $ac_status); }; } &&
3909 { ac_try='test -s conftest.$ac_objext'
3910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3911 (eval $ac_try) 2>&5
3912 ac_status=$?
3913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3914 (exit $ac_status); }; }; then
3915 ac_cv_type_pid_t=yes
3916 else
3917 echo "$as_me: failed program was:" >&5
3918 sed 's/^/| /' conftest.$ac_ext >&5
3919
3920 ac_cv_type_pid_t=no
3921 fi
3922 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3923 fi
3924 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
3925 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
3926 if test $ac_cv_type_pid_t = yes; then
3927 :
3928 else
3929
3930 cat >>confdefs.h <<_ACEOF
3931 #define pid_t int
3932 _ACEOF
3933
3934 fi
3935
3936 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
3937 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
3938 if test "${ac_cv_type_signal+set}" = set; then
3939 echo $ECHO_N "(cached) $ECHO_C" >&6
3940 else
3941 cat >conftest.$ac_ext <<_ACEOF
3942 /* confdefs.h. */
3943 _ACEOF
3944 cat confdefs.h >>conftest.$ac_ext
3945 cat >>conftest.$ac_ext <<_ACEOF
3946 /* end confdefs.h. */
3947 #include <sys/types.h>
3948 #include <signal.h>
3949 #ifdef signal
3950 # undef signal
3951 #endif
3952 #ifdef __cplusplus
3953 extern "C" void (*signal (int, void (*)(int)))(int);
3954 #else
3955 void (*signal ()) ();
3956 #endif
3957
3958 int
3959 main ()
3960 {
3961 int i;
3962 ;
3963 return 0;
3964 }
3965 _ACEOF
3966 rm -f conftest.$ac_objext
3967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3968 (eval $ac_compile) 2>conftest.er1
3969 ac_status=$?
3970 grep -v '^ *+' conftest.er1 >conftest.err
3971 rm -f conftest.er1
3972 cat conftest.err >&5
3973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3974 (exit $ac_status); } &&
3975 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3977 (eval $ac_try) 2>&5
3978 ac_status=$?
3979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3980 (exit $ac_status); }; } &&
3981 { ac_try='test -s conftest.$ac_objext'
3982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3983 (eval $ac_try) 2>&5
3984 ac_status=$?
3985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3986 (exit $ac_status); }; }; then
3987 ac_cv_type_signal=void
3988 else
3989 echo "$as_me: failed program was:" >&5
3990 sed 's/^/| /' conftest.$ac_ext >&5
3991
3992 ac_cv_type_signal=int
3993 fi
3994 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3995 fi
3996 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
3997 echo "${ECHO_T}$ac_cv_type_signal" >&6
3998
3999 cat >>confdefs.h <<_ACEOF
4000 #define RETSIGTYPE $ac_cv_type_signal
4001 _ACEOF
4002
4003
4004
4005 echo "$as_me:$LINENO: checking for socklen_t" >&5
4006 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
4007 if test "${ac_cv_type_socklen_t+set}" = set; then
4008 echo $ECHO_N "(cached) $ECHO_C" >&6
4009 else
4010
4011 cat >conftest.$ac_ext <<_ACEOF
4012 /* confdefs.h. */
4013 _ACEOF
4014 cat confdefs.h >>conftest.$ac_ext
4015 cat >>conftest.$ac_ext <<_ACEOF
4016 /* end confdefs.h. */
4017
4018 #include <sys/types.h>
4019 #include <sys/socket.h>
4020
4021 int
4022 main ()
4023 {
4024
4025 socklen_t len = 42; return 0;
4026
4027 ;
4028 return 0;
4029 }
4030 _ACEOF
4031 rm -f conftest.$ac_objext
4032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4033 (eval $ac_compile) 2>conftest.er1
4034 ac_status=$?
4035 grep -v '^ *+' conftest.er1 >conftest.err
4036 rm -f conftest.er1
4037 cat conftest.err >&5
4038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4039 (exit $ac_status); } &&
4040 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4042 (eval $ac_try) 2>&5
4043 ac_status=$?
4044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4045 (exit $ac_status); }; } &&
4046 { ac_try='test -s conftest.$ac_objext'
4047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4048 (eval $ac_try) 2>&5
4049 ac_status=$?
4050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4051 (exit $ac_status); }; }; then
4052 ac_cv_type_socklen_t="yes"
4053 else
4054 echo "$as_me: failed program was:" >&5
4055 sed 's/^/| /' conftest.$ac_ext >&5
4056
4057 ac_cv_type_socklen_t="no"
4058 fi
4059 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4060
4061 fi
4062 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
4063 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
4064
4065 if test "x$ac_cv_type_socklen_t" = "xno"; then
4066
4067 cat >>confdefs.h <<\_ACEOF
4068 #define socklen_t int
4069 _ACEOF
4070
4071 fi
4072
4073
4074
4075
4076
4077 for ac_func in vprintf
4078 do
4079 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4080 echo "$as_me:$LINENO: checking for $ac_func" >&5
4081 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4082 if eval "test \"\${$as_ac_var+set}\" = set"; then
4083 echo $ECHO_N "(cached) $ECHO_C" >&6
4084 else
4085 cat >conftest.$ac_ext <<_ACEOF
4086 /* confdefs.h. */
4087 _ACEOF
4088 cat confdefs.h >>conftest.$ac_ext
4089 cat >>conftest.$ac_ext <<_ACEOF
4090 /* end confdefs.h. */
4091 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4092 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4093 #define $ac_func innocuous_$ac_func
4094
4095 /* System header to define __stub macros and hopefully few prototypes,
4096 which can conflict with char $ac_func (); below.
4097 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4098 <limits.h> exists even on freestanding compilers. */
4099
4100 #ifdef __STDC__
4101 # include <limits.h>
4102 #else
4103 # include <assert.h>
4104 #endif
4105
4106 #undef $ac_func
4107
4108 /* Override any gcc2 internal prototype to avoid an error. */
4109 #ifdef __cplusplus
4110 extern "C"
4111 {
4112 #endif
4113 /* We use char because int might match the return type of a gcc2
4114 builtin and then its argument prototype would still apply. */
4115 char $ac_func ();
4116 /* The GNU C library defines this for functions which it implements
4117 to always fail with ENOSYS. Some functions are actually named
4118 something starting with __ and the normal name is an alias. */
4119 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4120 choke me
4121 #else
4122 char (*f) () = $ac_func;
4123 #endif
4124 #ifdef __cplusplus
4125 }
4126 #endif
4127
4128 int
4129 main ()
4130 {
4131 return f != $ac_func;
4132 ;
4133 return 0;
4134 }
4135 _ACEOF
4136 rm -f conftest.$ac_objext conftest$ac_exeext
4137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4138 (eval $ac_link) 2>conftest.er1
4139 ac_status=$?
4140 grep -v '^ *+' conftest.er1 >conftest.err
4141 rm -f conftest.er1
4142 cat conftest.err >&5
4143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4144 (exit $ac_status); } &&
4145 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4147 (eval $ac_try) 2>&5
4148 ac_status=$?
4149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4150 (exit $ac_status); }; } &&
4151 { ac_try='test -s conftest$ac_exeext'
4152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4153 (eval $ac_try) 2>&5
4154 ac_status=$?
4155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4156 (exit $ac_status); }; }; then
4157 eval "$as_ac_var=yes"
4158 else
4159 echo "$as_me: failed program was:" >&5
4160 sed 's/^/| /' conftest.$ac_ext >&5
4161
4162 eval "$as_ac_var=no"
4163 fi
4164 rm -f conftest.err conftest.$ac_objext \
4165 conftest$ac_exeext conftest.$ac_ext
4166 fi
4167 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4168 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4169 if test `eval echo '${'$as_ac_var'}'` = yes; then
4170 cat >>confdefs.h <<_ACEOF
4171 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4172 _ACEOF
4173
4174 echo "$as_me:$LINENO: checking for _doprnt" >&5
4175 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
4176 if test "${ac_cv_func__doprnt+set}" = set; then
4177 echo $ECHO_N "(cached) $ECHO_C" >&6
4178 else
4179 cat >conftest.$ac_ext <<_ACEOF
4180 /* confdefs.h. */
4181 _ACEOF
4182 cat confdefs.h >>conftest.$ac_ext
4183 cat >>conftest.$ac_ext <<_ACEOF
4184 /* end confdefs.h. */
4185 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
4186 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4187 #define _doprnt innocuous__doprnt
4188
4189 /* System header to define __stub macros and hopefully few prototypes,
4190 which can conflict with char _doprnt (); below.
4191 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4192 <limits.h> exists even on freestanding compilers. */
4193
4194 #ifdef __STDC__
4195 # include <limits.h>
4196 #else
4197 # include <assert.h>
4198 #endif
4199
4200 #undef _doprnt
4201
4202 /* Override any gcc2 internal prototype to avoid an error. */
4203 #ifdef __cplusplus
4204 extern "C"
4205 {
4206 #endif
4207 /* We use char because int might match the return type of a gcc2
4208 builtin and then its argument prototype would still apply. */
4209 char _doprnt ();
4210 /* The GNU C library defines this for functions which it implements
4211 to always fail with ENOSYS. Some functions are actually named
4212 something starting with __ and the normal name is an alias. */
4213 #if defined (__stub__doprnt) || defined (__stub____doprnt)
4214 choke me
4215 #else
4216 char (*f) () = _doprnt;
4217 #endif
4218 #ifdef __cplusplus
4219 }
4220 #endif
4221
4222 int
4223 main ()
4224 {
4225 return f != _doprnt;
4226 ;
4227 return 0;
4228 }
4229 _ACEOF
4230 rm -f conftest.$ac_objext conftest$ac_exeext
4231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4232 (eval $ac_link) 2>conftest.er1
4233 ac_status=$?
4234 grep -v '^ *+' conftest.er1 >conftest.err
4235 rm -f conftest.er1
4236 cat conftest.err >&5
4237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4238 (exit $ac_status); } &&
4239 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4241 (eval $ac_try) 2>&5
4242 ac_status=$?
4243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4244 (exit $ac_status); }; } &&
4245 { ac_try='test -s conftest$ac_exeext'
4246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4247 (eval $ac_try) 2>&5
4248 ac_status=$?
4249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4250 (exit $ac_status); }; }; then
4251 ac_cv_func__doprnt=yes
4252 else
4253 echo "$as_me: failed program was:" >&5
4254 sed 's/^/| /' conftest.$ac_ext >&5
4255
4256 ac_cv_func__doprnt=no
4257 fi
4258 rm -f conftest.err conftest.$ac_objext \
4259 conftest$ac_exeext conftest.$ac_ext
4260 fi
4261 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
4262 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
4263 if test $ac_cv_func__doprnt = yes; then
4264
4265 cat >>confdefs.h <<\_ACEOF
4266 #define HAVE_DOPRNT 1
4267 _ACEOF
4268
4269 fi
4270
4271 fi
4272 done
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287 for ac_func in getcwd inet_ntoa memset socket strcasecmp alarm strchr strdup strerror strncasecmp strrchr strtol
4288 do
4289 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4290 echo "$as_me:$LINENO: checking for $ac_func" >&5
4291 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4292 if eval "test \"\${$as_ac_var+set}\" = set"; then
4293 echo $ECHO_N "(cached) $ECHO_C" >&6
4294 else
4295 cat >conftest.$ac_ext <<_ACEOF
4296 /* confdefs.h. */
4297 _ACEOF
4298 cat confdefs.h >>conftest.$ac_ext
4299 cat >>conftest.$ac_ext <<_ACEOF
4300 /* end confdefs.h. */
4301 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4302 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4303 #define $ac_func innocuous_$ac_func
4304
4305 /* System header to define __stub macros and hopefully few prototypes,
4306 which can conflict with char $ac_func (); below.
4307 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4308 <limits.h> exists even on freestanding compilers. */
4309
4310 #ifdef __STDC__
4311 # include <limits.h>
4312 #else
4313 # include <assert.h>
4314 #endif
4315
4316 #undef $ac_func
4317
4318 /* Override any gcc2 internal prototype to avoid an error. */
4319 #ifdef __cplusplus
4320 extern "C"
4321 {
4322 #endif
4323 /* We use char because int might match the return type of a gcc2
4324 builtin and then its argument prototype would still apply. */
4325 char $ac_func ();
4326 /* The GNU C library defines this for functions which it implements
4327 to always fail with ENOSYS. Some functions are actually named
4328 something starting with __ and the normal name is an alias. */
4329 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4330 choke me
4331 #else
4332 char (*f) () = $ac_func;
4333 #endif
4334 #ifdef __cplusplus
4335 }
4336 #endif
4337
4338 int
4339 main ()
4340 {
4341 return f != $ac_func;
4342 ;
4343 return 0;
4344 }
4345 _ACEOF
4346 rm -f conftest.$ac_objext conftest$ac_exeext
4347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4348 (eval $ac_link) 2>conftest.er1
4349 ac_status=$?
4350 grep -v '^ *+' conftest.er1 >conftest.err
4351 rm -f conftest.er1
4352 cat conftest.err >&5
4353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354 (exit $ac_status); } &&
4355 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4357 (eval $ac_try) 2>&5
4358 ac_status=$?
4359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4360 (exit $ac_status); }; } &&
4361 { ac_try='test -s conftest$ac_exeext'
4362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4363 (eval $ac_try) 2>&5
4364 ac_status=$?
4365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4366 (exit $ac_status); }; }; then
4367 eval "$as_ac_var=yes"
4368 else
4369 echo "$as_me: failed program was:" >&5
4370 sed 's/^/| /' conftest.$ac_ext >&5
4371
4372 eval "$as_ac_var=no"
4373 fi
4374 rm -f conftest.err conftest.$ac_objext \
4375 conftest$ac_exeext conftest.$ac_ext
4376 fi
4377 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4378 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4379 if test `eval echo '${'$as_ac_var'}'` = yes; then
4380 cat >>confdefs.h <<_ACEOF
4381 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4382 _ACEOF
4383
4384 fi
4385 done
4386
4387
4388
4389 for ac_header in unistd.h vfork.h
4390 do
4391 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4392 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4393 echo "$as_me:$LINENO: checking for $ac_header" >&5
4394 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4395 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4396 echo $ECHO_N "(cached) $ECHO_C" >&6
4397 fi
4398 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4399 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4400 else
4401 # Is the header compilable?
4402 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4403 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4404 cat >conftest.$ac_ext <<_ACEOF
4405 /* confdefs.h. */
4406 _ACEOF
4407 cat confdefs.h >>conftest.$ac_ext
4408 cat >>conftest.$ac_ext <<_ACEOF
4409 /* end confdefs.h. */
4410 $ac_includes_default
4411 #include <$ac_header>
4412 _ACEOF
4413 rm -f conftest.$ac_objext
4414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4415 (eval $ac_compile) 2>conftest.er1
4416 ac_status=$?
4417 grep -v '^ *+' conftest.er1 >conftest.err
4418 rm -f conftest.er1
4419 cat conftest.err >&5
4420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4421 (exit $ac_status); } &&
4422 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4424 (eval $ac_try) 2>&5
4425 ac_status=$?
4426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4427 (exit $ac_status); }; } &&
4428 { ac_try='test -s conftest.$ac_objext'
4429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4430 (eval $ac_try) 2>&5
4431 ac_status=$?
4432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4433 (exit $ac_status); }; }; then
4434 ac_header_compiler=yes
4435 else
4436 echo "$as_me: failed program was:" >&5
4437 sed 's/^/| /' conftest.$ac_ext >&5
4438
4439 ac_header_compiler=no
4440 fi
4441 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4442 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4443 echo "${ECHO_T}$ac_header_compiler" >&6
4444
4445 # Is the header present?
4446 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4447 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4448 cat >conftest.$ac_ext <<_ACEOF
4449 /* confdefs.h. */
4450 _ACEOF
4451 cat confdefs.h >>conftest.$ac_ext
4452 cat >>conftest.$ac_ext <<_ACEOF
4453 /* end confdefs.h. */
4454 #include <$ac_header>
4455 _ACEOF
4456 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4457 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4458 ac_status=$?
4459 grep -v '^ *+' conftest.er1 >conftest.err
4460 rm -f conftest.er1
4461 cat conftest.err >&5
4462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4463 (exit $ac_status); } >/dev/null; then
4464 if test -s conftest.err; then
4465 ac_cpp_err=$ac_c_preproc_warn_flag
4466 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4467 else
4468 ac_cpp_err=
4469 fi
4470 else
4471 ac_cpp_err=yes
4472 fi
4473 if test -z "$ac_cpp_err"; then
4474 ac_header_preproc=yes
4475 else
4476 echo "$as_me: failed program was:" >&5
4477 sed 's/^/| /' conftest.$ac_ext >&5
4478
4479 ac_header_preproc=no
4480 fi
4481 rm -f conftest.err conftest.$ac_ext
4482 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4483 echo "${ECHO_T}$ac_header_preproc" >&6
4484
4485 # So? What about this header?
4486 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4487 yes:no: )
4488 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4489 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4490 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4491 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4492 ac_header_preproc=yes
4493 ;;
4494 no:yes:* )
4495 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4496 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4497 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4498 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4499 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4500 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4501 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4502 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4503 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4504 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4505 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4506 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4507 (
4508 cat <<\_ASBOX
4509 ## ----------------------------- ##
4510 ## Report this to [email protected] ##
4511 ## ----------------------------- ##
4512 _ASBOX
4513 ) |
4514 sed "s/^/$as_me: WARNING: /" >&2
4515 ;;
4516 esac
4517 echo "$as_me:$LINENO: checking for $ac_header" >&5
4518 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4519 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4520 echo $ECHO_N "(cached) $ECHO_C" >&6
4521 else
4522 eval "$as_ac_Header=\$ac_header_preproc"
4523 fi
4524 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4525 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4526
4527 fi
4528 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4529 cat >>confdefs.h <<_ACEOF
4530 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4531 _ACEOF
4532
4533 fi
4534
4535 done
4536
4537
4538
4539 for ac_func in fork vfork
4540 do
4541 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4542 echo "$as_me:$LINENO: checking for $ac_func" >&5
4543 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4544 if eval "test \"\${$as_ac_var+set}\" = set"; then
4545 echo $ECHO_N "(cached) $ECHO_C" >&6
4546 else
4547 cat >conftest.$ac_ext <<_ACEOF
4548 /* confdefs.h. */
4549 _ACEOF
4550 cat confdefs.h >>conftest.$ac_ext
4551 cat >>conftest.$ac_ext <<_ACEOF
4552 /* end confdefs.h. */
4553 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4554 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4555 #define $ac_func innocuous_$ac_func
4556
4557 /* System header to define __stub macros and hopefully few prototypes,
4558 which can conflict with char $ac_func (); below.
4559 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4560 <limits.h> exists even on freestanding compilers. */
4561
4562 #ifdef __STDC__
4563 # include <limits.h>
4564 #else
4565 # include <assert.h>
4566 #endif
4567
4568 #undef $ac_func
4569
4570 /* Override any gcc2 internal prototype to avoid an error. */
4571 #ifdef __cplusplus
4572 extern "C"
4573 {
4574 #endif
4575 /* We use char because int might match the return type of a gcc2
4576 builtin and then its argument prototype would still apply. */
4577 char $ac_func ();
4578 /* The GNU C library defines this for functions which it implements
4579 to always fail with ENOSYS. Some functions are actually named
4580 something starting with __ and the normal name is an alias. */
4581 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4582 choke me
4583 #else
4584 char (*f) () = $ac_func;
4585 #endif
4586 #ifdef __cplusplus
4587 }
4588 #endif
4589
4590 int
4591 main ()
4592 {
4593 return f != $ac_func;
4594 ;
4595 return 0;
4596 }
4597 _ACEOF
4598 rm -f conftest.$ac_objext conftest$ac_exeext
4599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4600 (eval $ac_link) 2>conftest.er1
4601 ac_status=$?
4602 grep -v '^ *+' conftest.er1 >conftest.err
4603 rm -f conftest.er1
4604 cat conftest.err >&5
4605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4606 (exit $ac_status); } &&
4607 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4609 (eval $ac_try) 2>&5
4610 ac_status=$?
4611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4612 (exit $ac_status); }; } &&
4613 { ac_try='test -s conftest$ac_exeext'
4614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4615 (eval $ac_try) 2>&5
4616 ac_status=$?
4617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4618 (exit $ac_status); }; }; then
4619 eval "$as_ac_var=yes"
4620 else
4621 echo "$as_me: failed program was:" >&5
4622 sed 's/^/| /' conftest.$ac_ext >&5
4623
4624 eval "$as_ac_var=no"
4625 fi
4626 rm -f conftest.err conftest.$ac_objext \
4627 conftest$ac_exeext conftest.$ac_ext
4628 fi
4629 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4630 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4631 if test `eval echo '${'$as_ac_var'}'` = yes; then
4632 cat >>confdefs.h <<_ACEOF
4633 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4634 _ACEOF
4635
4636 fi
4637 done
4638
4639 if test "x$ac_cv_func_fork" = xyes; then
4640 echo "$as_me:$LINENO: checking for working fork" >&5
4641 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
4642 if test "${ac_cv_func_fork_works+set}" = set; then
4643 echo $ECHO_N "(cached) $ECHO_C" >&6
4644 else
4645 if test "$cross_compiling" = yes; then
4646 ac_cv_func_fork_works=cross
4647 else
4648 cat >conftest.$ac_ext <<_ACEOF
4649 /* By Ruediger Kuhlmann. */
4650 #include <sys/types.h>
4651 #if HAVE_UNISTD_H
4652 # include <unistd.h>
4653 #endif
4654 /* Some systems only have a dummy stub for fork() */
4655 int main ()
4656 {
4657 if (fork() < 0)
4658 exit (1);
4659 exit (0);
4660 }
4661 _ACEOF
4662 rm -f conftest$ac_exeext
4663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4664 (eval $ac_link) 2>&5
4665 ac_status=$?
4666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4667 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4669 (eval $ac_try) 2>&5
4670 ac_status=$?
4671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4672 (exit $ac_status); }; }; then
4673 ac_cv_func_fork_works=yes
4674 else
4675 echo "$as_me: program exited with status $ac_status" >&5
4676 echo "$as_me: failed program was:" >&5
4677 sed 's/^/| /' conftest.$ac_ext >&5
4678
4679 ( exit $ac_status )
4680 ac_cv_func_fork_works=no
4681 fi
4682 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4683 fi
4684 fi
4685 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
4686 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
4687
4688 else
4689 ac_cv_func_fork_works=$ac_cv_func_fork
4690 fi
4691 if test "x$ac_cv_func_fork_works" = xcross; then
4692 case $host in
4693 *-*-amigaos* | *-*-msdosdjgpp*)
4694 # Override, as these systems have only a dummy fork() stub
4695 ac_cv_func_fork_works=no
4696 ;;
4697 *)
4698 ac_cv_func_fork_works=yes
4699 ;;
4700 esac
4701 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
4702 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
4703 fi
4704 ac_cv_func_vfork_works=$ac_cv_func_vfork
4705 if test "x$ac_cv_func_vfork" = xyes; then
4706 echo "$as_me:$LINENO: checking for working vfork" >&5
4707 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
4708 if test "${ac_cv_func_vfork_works+set}" = set; then
4709 echo $ECHO_N "(cached) $ECHO_C" >&6
4710 else
4711 if test "$cross_compiling" = yes; then
4712 ac_cv_func_vfork_works=cross
4713 else
4714 cat >conftest.$ac_ext <<_ACEOF
4715 /* confdefs.h. */
4716 _ACEOF
4717 cat confdefs.h >>conftest.$ac_ext
4718 cat >>conftest.$ac_ext <<_ACEOF
4719 /* end confdefs.h. */
4720 /* Thanks to Paul Eggert for this test. */
4721 #include <stdio.h>
4722 #include <stdlib.h>
4723 #include <sys/types.h>
4724 #include <sys/stat.h>
4725 #include <sys/wait.h>
4726 #if HAVE_UNISTD_H
4727 # include <unistd.h>
4728 #endif
4729 #if HAVE_VFORK_H
4730 # include <vfork.h>
4731 #endif
4732 /* On some sparc systems, changes by the child to local and incoming
4733 argument registers are propagated back to the parent. The compiler
4734 is told about this with #include <vfork.h>, but some compilers
4735 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
4736 static variable whose address is put into a register that is
4737 clobbered by the vfork. */
4738 static void
4739 #ifdef __cplusplus
4740 sparc_address_test (int arg)
4741 # else
4742 sparc_address_test (arg) int arg;
4743 #endif
4744 {
4745 static pid_t child;
4746 if (!child) {
4747 child = vfork ();
4748 if (child < 0) {
4749 perror ("vfork");
4750 _exit(2);
4751 }
4752 if (!child) {
4753 arg = getpid();
4754 write(-1, "", 0);
4755 _exit (arg);
4756 }
4757 }
4758 }
4759
4760 int
4761 main ()
4762 {
4763 pid_t parent = getpid ();
4764 pid_t child;
4765
4766 sparc_address_test (0);
4767
4768 child = vfork ();
4769
4770 if (child == 0) {
4771 /* Here is another test for sparc vfork register problems. This
4772 test uses lots of local variables, at least as many local
4773 variables as main has allocated so far including compiler
4774 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
4775 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
4776 reuse the register of parent for one of the local variables,
4777 since it will think that parent can't possibly be used any more
4778 in this routine. Assigning to the local variable will thus
4779 munge parent in the parent process. */
4780 pid_t
4781 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
4782 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
4783 /* Convince the compiler that p..p7 are live; otherwise, it might
4784 use the same hardware register for all 8 local variables. */
4785 if (p != p1 || p != p2 || p != p3 || p != p4
4786 || p != p5 || p != p6 || p != p7)
4787 _exit(1);
4788
4789 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
4790 from child file descriptors. If the child closes a descriptor
4791 before it execs or exits, this munges the parent's descriptor
4792 as well. Test for this by closing stdout in the child. */
4793 _exit(close(fileno(stdout)) != 0);
4794 } else {
4795 int status;
4796 struct stat st;
4797
4798 while (wait(&status) != child)
4799 ;
4800 exit(
4801 /* Was there some problem with vforking? */
4802 child < 0
4803
4804 /* Did the child fail? (This shouldn't happen.) */
4805 || status
4806
4807 /* Did the vfork/compiler bug occur? */
4808 || parent != getpid()
4809
4810 /* Did the file descriptor bug occur? */
4811 || fstat(fileno(stdout), &st) != 0
4812 );
4813 }
4814 }
4815 _ACEOF
4816 rm -f conftest$ac_exeext
4817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4818 (eval $ac_link) 2>&5
4819 ac_status=$?
4820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4821 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4823 (eval $ac_try) 2>&5
4824 ac_status=$?
4825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4826 (exit $ac_status); }; }; then
4827 ac_cv_func_vfork_works=yes
4828 else
4829 echo "$as_me: program exited with status $ac_status" >&5
4830 echo "$as_me: failed program was:" >&5
4831 sed 's/^/| /' conftest.$ac_ext >&5
4832
4833 ( exit $ac_status )
4834 ac_cv_func_vfork_works=no
4835 fi
4836 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4837 fi
4838 fi
4839 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
4840 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
4841
4842 fi;
4843 if test "x$ac_cv_func_fork_works" = xcross; then
4844 ac_cv_func_vfork_works=$ac_cv_func_vfork
4845 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
4846 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
4847 fi
4848
4849 if test "x$ac_cv_func_vfork_works" = xyes; then
4850
4851 cat >>confdefs.h <<\_ACEOF
4852 #define HAVE_WORKING_VFORK 1
4853 _ACEOF
4854
4855 else
4856
4857 cat >>confdefs.h <<\_ACEOF
4858 #define vfork fork
4859 _ACEOF
4860
4861 fi
4862 if test "x$ac_cv_func_fork_works" = xyes; then
4863
4864 cat >>confdefs.h <<\_ACEOF
4865 #define HAVE_WORKING_FORK 1
4866 _ACEOF
4867
4868 fi
4869
4870
4871 for ac_header in stdlib.h
4872 do
4873 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4874 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4875 echo "$as_me:$LINENO: checking for $ac_header" >&5
4876 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4877 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4878 echo $ECHO_N "(cached) $ECHO_C" >&6
4879 fi
4880 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4881 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4882 else
4883 # Is the header compilable?
4884 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4885 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4886 cat >conftest.$ac_ext <<_ACEOF
4887 /* confdefs.h. */
4888 _ACEOF
4889 cat confdefs.h >>conftest.$ac_ext
4890 cat >>conftest.$ac_ext <<_ACEOF
4891 /* end confdefs.h. */
4892 $ac_includes_default
4893 #include <$ac_header>
4894 _ACEOF
4895 rm -f conftest.$ac_objext
4896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4897 (eval $ac_compile) 2>conftest.er1
4898 ac_status=$?
4899 grep -v '^ *+' conftest.er1 >conftest.err
4900 rm -f conftest.er1
4901 cat conftest.err >&5
4902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4903 (exit $ac_status); } &&
4904 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4906 (eval $ac_try) 2>&5
4907 ac_status=$?
4908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4909 (exit $ac_status); }; } &&
4910 { ac_try='test -s conftest.$ac_objext'
4911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4912 (eval $ac_try) 2>&5
4913 ac_status=$?
4914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4915 (exit $ac_status); }; }; then
4916 ac_header_compiler=yes
4917 else
4918 echo "$as_me: failed program was:" >&5
4919 sed 's/^/| /' conftest.$ac_ext >&5
4920
4921 ac_header_compiler=no
4922 fi
4923 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4924 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4925 echo "${ECHO_T}$ac_header_compiler" >&6
4926
4927 # Is the header present?
4928 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4929 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4930 cat >conftest.$ac_ext <<_ACEOF
4931 /* confdefs.h. */
4932 _ACEOF
4933 cat confdefs.h >>conftest.$ac_ext
4934 cat >>conftest.$ac_ext <<_ACEOF
4935 /* end confdefs.h. */
4936 #include <$ac_header>
4937 _ACEOF
4938 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4939 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4940 ac_status=$?
4941 grep -v '^ *+' conftest.er1 >conftest.err
4942 rm -f conftest.er1
4943 cat conftest.err >&5
4944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4945 (exit $ac_status); } >/dev/null; then
4946 if test -s conftest.err; then
4947 ac_cpp_err=$ac_c_preproc_warn_flag
4948 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4949 else
4950 ac_cpp_err=
4951 fi
4952 else
4953 ac_cpp_err=yes
4954 fi
4955 if test -z "$ac_cpp_err"; then
4956 ac_header_preproc=yes
4957 else
4958 echo "$as_me: failed program was:" >&5
4959 sed 's/^/| /' conftest.$ac_ext >&5
4960
4961 ac_header_preproc=no
4962 fi
4963 rm -f conftest.err conftest.$ac_ext
4964 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4965 echo "${ECHO_T}$ac_header_preproc" >&6
4966
4967 # So? What about this header?
4968 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4969 yes:no: )
4970 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4971 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4972 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4973 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4974 ac_header_preproc=yes
4975 ;;
4976 no:yes:* )
4977 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4978 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4979 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4980 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4981 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4982 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4983 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4984 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4985 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4986 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4987 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4988 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4989 (
4990 cat <<\_ASBOX
4991 ## ----------------------------- ##
4992 ## Report this to [email protected] ##
4993 ## ----------------------------- ##
4994 _ASBOX
4995 ) |
4996 sed "s/^/$as_me: WARNING: /" >&2
4997 ;;
4998 esac
4999 echo "$as_me:$LINENO: checking for $ac_header" >&5
5000 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5001 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5002 echo $ECHO_N "(cached) $ECHO_C" >&6
5003 else
5004 eval "$as_ac_Header=\$ac_header_preproc"
5005 fi
5006 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5007 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5008
5009 fi
5010 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5011 cat >>confdefs.h <<_ACEOF
5012 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5013 _ACEOF
5014
5015 fi
5016
5017 done
5018
5019 echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
5020 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
5021 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
5022 echo $ECHO_N "(cached) $ECHO_C" >&6
5023 else
5024 if test "$cross_compiling" = yes; then
5025 ac_cv_func_malloc_0_nonnull=no
5026 else
5027 cat >conftest.$ac_ext <<_ACEOF
5028 /* confdefs.h. */
5029 _ACEOF
5030 cat confdefs.h >>conftest.$ac_ext
5031 cat >>conftest.$ac_ext <<_ACEOF
5032 /* end confdefs.h. */
5033 #if STDC_HEADERS || HAVE_STDLIB_H
5034 # include <stdlib.h>
5035 #else
5036 char *malloc ();
5037 #endif
5038
5039 int
5040 main ()
5041 {
5042 exit (malloc (0) ? 0 : 1);
5043 ;
5044 return 0;
5045 }
5046 _ACEOF
5047 rm -f conftest$ac_exeext
5048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5049 (eval $ac_link) 2>&5
5050 ac_status=$?
5051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5052 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5054 (eval $ac_try) 2>&5
5055 ac_status=$?
5056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5057 (exit $ac_status); }; }; then
5058 ac_cv_func_malloc_0_nonnull=yes
5059 else
5060 echo "$as_me: program exited with status $ac_status" >&5
5061 echo "$as_me: failed program was:" >&5
5062 sed 's/^/| /' conftest.$ac_ext >&5
5063
5064 ( exit $ac_status )
5065 ac_cv_func_malloc_0_nonnull=no
5066 fi
5067 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5068 fi
5069 fi
5070 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
5071 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
5072 if test $ac_cv_func_malloc_0_nonnull = yes; then
5073
5074 cat >>confdefs.h <<\_ACEOF
5075 #define HAVE_MALLOC 1
5076 _ACEOF
5077
5078 else
5079 cat >>confdefs.h <<\_ACEOF
5080 #define HAVE_MALLOC 0
5081 _ACEOF
5082
5083 case $LIBOBJS in
5084 "malloc.$ac_objext" | \
5085 *" malloc.$ac_objext" | \
5086 "malloc.$ac_objext "* | \
5087 *" malloc.$ac_objext "* ) ;;
5088 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
5089 esac
5090
5091
5092 cat >>confdefs.h <<\_ACEOF
5093 #define malloc rpl_malloc
5094 _ACEOF
5095
5096 fi
5097
5098
5099
5100
5101
5102
5103
5104 # Check whether --enable-libwrap or --disable-libwrap was given.
5105 if test "${enable_libwrap+set}" = set; then
5106 enableval="$enable_libwrap"
5107
5108 fi;
5109 # Check whether --enable-syslog or --disable-syslog was given.
5110 if test "${enable_syslog+set}" = set; then
5111 enableval="$enable_syslog"
5112
5113 fi;
5114 echo "$as_me:$LINENO: checking libwrap/sysconf interoperability" >&5
5115 echo $ECHO_N "checking libwrap/sysconf interoperability... $ECHO_C" >&6
5116 if test "x$enable_libwrap" = "xyes" -a "x$enable_syslog" = "xno" ; then
5117 { { echo "$as_me:$LINENO: error: you can't enable libwrap and disable syslog" >&5
5118 echo "$as_me: error: you can't enable libwrap and disable syslog" >&2;}
5119 { (exit 1); exit 1; }; }
5120 elif test "x$enable_libwrap" = "xyes" ; then
5121 echo "$as_me:$LINENO: result: ok" >&5
5122 echo "${ECHO_T}ok" >&6
5123
5124 for ac_header in syslog.h
5125 do
5126 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5127 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5128 echo "$as_me:$LINENO: checking for $ac_header" >&5
5129 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5130 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5131 echo $ECHO_N "(cached) $ECHO_C" >&6
5132 fi
5133 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5134 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5135 else
5136 # Is the header compilable?
5137 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5138 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5139 cat >conftest.$ac_ext <<_ACEOF
5140 /* confdefs.h. */
5141 _ACEOF
5142 cat confdefs.h >>conftest.$ac_ext
5143 cat >>conftest.$ac_ext <<_ACEOF
5144 /* end confdefs.h. */
5145 $ac_includes_default
5146 #include <$ac_header>
5147 _ACEOF
5148 rm -f conftest.$ac_objext
5149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5150 (eval $ac_compile) 2>conftest.er1
5151 ac_status=$?
5152 grep -v '^ *+' conftest.er1 >conftest.err
5153 rm -f conftest.er1
5154 cat conftest.err >&5
5155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5156 (exit $ac_status); } &&
5157 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5159 (eval $ac_try) 2>&5
5160 ac_status=$?
5161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5162 (exit $ac_status); }; } &&
5163 { ac_try='test -s conftest.$ac_objext'
5164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5165 (eval $ac_try) 2>&5
5166 ac_status=$?
5167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5168 (exit $ac_status); }; }; then
5169 ac_header_compiler=yes
5170 else
5171 echo "$as_me: failed program was:" >&5
5172 sed 's/^/| /' conftest.$ac_ext >&5
5173
5174 ac_header_compiler=no
5175 fi
5176 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5177 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5178 echo "${ECHO_T}$ac_header_compiler" >&6
5179
5180 # Is the header present?
5181 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5182 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5183 cat >conftest.$ac_ext <<_ACEOF
5184 /* confdefs.h. */
5185 _ACEOF
5186 cat confdefs.h >>conftest.$ac_ext
5187 cat >>conftest.$ac_ext <<_ACEOF
5188 /* end confdefs.h. */
5189 #include <$ac_header>
5190 _ACEOF
5191 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5192 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5193 ac_status=$?
5194 grep -v '^ *+' conftest.er1 >conftest.err
5195 rm -f conftest.er1
5196 cat conftest.err >&5
5197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5198 (exit $ac_status); } >/dev/null; then
5199 if test -s conftest.err; then
5200 ac_cpp_err=$ac_c_preproc_warn_flag
5201 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5202 else
5203 ac_cpp_err=
5204 fi
5205 else
5206 ac_cpp_err=yes
5207 fi
5208 if test -z "$ac_cpp_err"; then
5209 ac_header_preproc=yes
5210 else
5211 echo "$as_me: failed program was:" >&5
5212 sed 's/^/| /' conftest.$ac_ext >&5
5213
5214 ac_header_preproc=no
5215 fi
5216 rm -f conftest.err conftest.$ac_ext
5217 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5218 echo "${ECHO_T}$ac_header_preproc" >&6
5219
5220 # So? What about this header?
5221 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5222 yes:no: )
5223 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5224 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5225 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5226 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5227 ac_header_preproc=yes
5228 ;;
5229 no:yes:* )
5230 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5231 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5232 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5233 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5234 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5235 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5236 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5237 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5238 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5239 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5240 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5241 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5242 (
5243 cat <<\_ASBOX
5244 ## ----------------------------- ##
5245 ## Report this to [email protected] ##
5246 ## ----------------------------- ##
5247 _ASBOX
5248 ) |
5249 sed "s/^/$as_me: WARNING: /" >&2
5250 ;;
5251 esac
5252 echo "$as_me:$LINENO: checking for $ac_header" >&5
5253 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5254 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5255 echo $ECHO_N "(cached) $ECHO_C" >&6
5256 else
5257 eval "$as_ac_Header=\$ac_header_preproc"
5258 fi
5259 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5260 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5261
5262 fi
5263 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5264 cat >>confdefs.h <<_ACEOF
5265 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5266 _ACEOF
5267
5268 else
5269 { { echo "$as_me:$LINENO: error: syslog enabled but syslog header not found" >&5
5270 echo "$as_me: error: syslog enabled but syslog header not found" >&2;}
5271 { (exit 1); exit 1; }; }
5272 fi
5273
5274 done
5275
5276
5277 if test "${ac_cv_libwrap_libs+set}" = set; then
5278 echo $ECHO_N "(cached) $ECHO_C" >&6
5279 else
5280
5281
5282 oLIBS=$LIBS
5283 if test "${ac_cv_header_tcpd_h+set}" = set; then
5284 echo "$as_me:$LINENO: checking for tcpd.h" >&5
5285 echo $ECHO_N "checking for tcpd.h... $ECHO_C" >&6
5286 if test "${ac_cv_header_tcpd_h+set}" = set; then
5287 echo $ECHO_N "(cached) $ECHO_C" >&6
5288 fi
5289 echo "$as_me:$LINENO: result: $ac_cv_header_tcpd_h" >&5
5290 echo "${ECHO_T}$ac_cv_header_tcpd_h" >&6
5291 else
5292 # Is the header compilable?
5293 echo "$as_me:$LINENO: checking tcpd.h usability" >&5
5294 echo $ECHO_N "checking tcpd.h usability... $ECHO_C" >&6
5295 cat >conftest.$ac_ext <<_ACEOF
5296 /* confdefs.h. */
5297 _ACEOF
5298 cat confdefs.h >>conftest.$ac_ext
5299 cat >>conftest.$ac_ext <<_ACEOF
5300 /* end confdefs.h. */
5301 $ac_includes_default
5302 #include <tcpd.h>
5303 _ACEOF
5304 rm -f conftest.$ac_objext
5305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5306 (eval $ac_compile) 2>conftest.er1
5307 ac_status=$?
5308 grep -v '^ *+' conftest.er1 >conftest.err
5309 rm -f conftest.er1
5310 cat conftest.err >&5
5311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5312 (exit $ac_status); } &&
5313 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5315 (eval $ac_try) 2>&5
5316 ac_status=$?
5317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5318 (exit $ac_status); }; } &&
5319 { ac_try='test -s conftest.$ac_objext'
5320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5321 (eval $ac_try) 2>&5
5322 ac_status=$?
5323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5324 (exit $ac_status); }; }; then
5325 ac_header_compiler=yes
5326 else
5327 echo "$as_me: failed program was:" >&5
5328 sed 's/^/| /' conftest.$ac_ext >&5
5329
5330 ac_header_compiler=no
5331 fi
5332 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5333 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5334 echo "${ECHO_T}$ac_header_compiler" >&6
5335
5336 # Is the header present?
5337 echo "$as_me:$LINENO: checking tcpd.h presence" >&5
5338 echo $ECHO_N "checking tcpd.h presence... $ECHO_C" >&6
5339 cat >conftest.$ac_ext <<_ACEOF
5340 /* confdefs.h. */
5341 _ACEOF
5342 cat confdefs.h >>conftest.$ac_ext
5343 cat >>conftest.$ac_ext <<_ACEOF
5344 /* end confdefs.h. */
5345 #include <tcpd.h>
5346 _ACEOF
5347 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5348 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5349 ac_status=$?
5350 grep -v '^ *+' conftest.er1 >conftest.err
5351 rm -f conftest.er1
5352 cat conftest.err >&5
5353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5354 (exit $ac_status); } >/dev/null; then
5355 if test -s conftest.err; then
5356 ac_cpp_err=$ac_c_preproc_warn_flag
5357 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5358 else
5359 ac_cpp_err=
5360 fi
5361 else
5362 ac_cpp_err=yes
5363 fi
5364 if test -z "$ac_cpp_err"; then
5365 ac_header_preproc=yes
5366 else
5367 echo "$as_me: failed program was:" >&5
5368 sed 's/^/| /' conftest.$ac_ext >&5
5369
5370 ac_header_preproc=no
5371 fi
5372 rm -f conftest.err conftest.$ac_ext
5373 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5374 echo "${ECHO_T}$ac_header_preproc" >&6
5375
5376 # So? What about this header?
5377 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5378 yes:no: )
5379 { echo "$as_me:$LINENO: WARNING: tcpd.h: accepted by the compiler, rejected by the preprocessor!" >&5
5380 echo "$as_me: WARNING: tcpd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5381 { echo "$as_me:$LINENO: WARNING: tcpd.h: proceeding with the compiler's result" >&5
5382 echo "$as_me: WARNING: tcpd.h: proceeding with the compiler's result" >&2;}
5383 ac_header_preproc=yes
5384 ;;
5385 no:yes:* )
5386 { echo "$as_me:$LINENO: WARNING: tcpd.h: present but cannot be compiled" >&5
5387 echo "$as_me: WARNING: tcpd.h: present but cannot be compiled" >&2;}
5388 { echo "$as_me:$LINENO: WARNING: tcpd.h: check for missing prerequisite headers?" >&5
5389 echo "$as_me: WARNING: tcpd.h: check for missing prerequisite headers?" >&2;}
5390 { echo "$as_me:$LINENO: WARNING: tcpd.h: see the Autoconf documentation" >&5
5391 echo "$as_me: WARNING: tcpd.h: see the Autoconf documentation" >&2;}
5392 { echo "$as_me:$LINENO: WARNING: tcpd.h: section \"Present But Cannot Be Compiled\"" >&5
5393 echo "$as_me: WARNING: tcpd.h: section \"Present But Cannot Be Compiled\"" >&2;}
5394 { echo "$as_me:$LINENO: WARNING: tcpd.h: proceeding with the preprocessor's result" >&5
5395 echo "$as_me: WARNING: tcpd.h: proceeding with the preprocessor's result" >&2;}
5396 { echo "$as_me:$LINENO: WARNING: tcpd.h: in the future, the compiler will take precedence" >&5
5397 echo "$as_me: WARNING: tcpd.h: in the future, the compiler will take precedence" >&2;}
5398 (
5399 cat <<\_ASBOX
5400 ## ----------------------------- ##
5401 ## Report this to [email protected] ##
5402 ## ----------------------------- ##
5403 _ASBOX
5404 ) |
5405 sed "s/^/$as_me: WARNING: /" >&2
5406 ;;
5407 esac
5408 echo "$as_me:$LINENO: checking for tcpd.h" >&5
5409 echo $ECHO_N "checking for tcpd.h... $ECHO_C" >&6
5410 if test "${ac_cv_header_tcpd_h+set}" = set; then
5411 echo $ECHO_N "(cached) $ECHO_C" >&6
5412 else
5413 ac_cv_header_tcpd_h=$ac_header_preproc
5414 fi
5415 echo "$as_me:$LINENO: result: $ac_cv_header_tcpd_h" >&5
5416 echo "${ECHO_T}$ac_cv_header_tcpd_h" >&6
5417
5418 fi
5419 if test $ac_cv_header_tcpd_h = yes; then
5420 :
5421 else
5422 { { echo "$as_me:$LINENO: error: cannot find tcpd.h" >&5
5423 echo "$as_me: error: cannot find tcpd.h" >&2;}
5424 { (exit 1); exit 1; }; }
5425 fi
5426
5427
5428 echo "$as_me:$LINENO: checking for libwrap libraries" >&5
5429 echo $ECHO_N "checking for libwrap libraries... $ECHO_C" >&6
5430
5431 LIBS="$oLIBS -lwrap"
5432 cat >conftest.$ac_ext <<_ACEOF
5433 /* confdefs.h. */
5434 _ACEOF
5435 cat confdefs.h >>conftest.$ac_ext
5436 cat >>conftest.$ac_ext <<_ACEOF
5437 /* end confdefs.h. */
5438
5439 #include <syslog.h>
5440 #include <tcpd.h>
5441 int allow_severity = LOG_INFO;
5442 int deny_severity = LOG_WARNING;
5443
5444 int
5445 main ()
5446 {
5447
5448 struct request_info request;
5449 hosts_access(&request);
5450
5451 ;
5452 return 0;
5453 }
5454 _ACEOF
5455 rm -f conftest.$ac_objext conftest$ac_exeext
5456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5457 (eval $ac_link) 2>conftest.er1
5458 ac_status=$?
5459 grep -v '^ *+' conftest.er1 >conftest.err
5460 rm -f conftest.er1
5461 cat conftest.err >&5
5462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5463 (exit $ac_status); } &&
5464 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5466 (eval $ac_try) 2>&5
5467 ac_status=$?
5468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5469 (exit $ac_status); }; } &&
5470 { ac_try='test -s conftest$ac_exeext'
5471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5472 (eval $ac_try) 2>&5
5473 ac_status=$?
5474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5475 (exit $ac_status); }; }; then
5476 ac_cv_libwrap_libs=-lwrap
5477 else
5478 echo "$as_me: failed program was:" >&5
5479 sed 's/^/| /' conftest.$ac_ext >&5
5480
5481 ac_cv_libwrap_libs=no
5482 fi
5483 rm -f conftest.err conftest.$ac_objext \
5484 conftest$ac_exeext conftest.$ac_ext
5485
5486 if test "x$ac_cv_libwrap_libs" = "xno"
5487 then
5488 LIBS="$oLIBS -lwrap -lnsl"
5489 cat >conftest.$ac_ext <<_ACEOF
5490 /* confdefs.h. */
5491 _ACEOF
5492 cat confdefs.h >>conftest.$ac_ext
5493 cat >>conftest.$ac_ext <<_ACEOF
5494 /* end confdefs.h. */
5495
5496 #include <syslog.h>
5497 #include <tcpd.h>
5498 int allow_severity = LOG_INFO;
5499 int deny_severity = LOG_WARNING;
5500
5501 int
5502 main ()
5503 {
5504
5505 struct request_info request;
5506 hosts_access(&request);
5507
5508 ;
5509 return 0;
5510 }
5511 _ACEOF
5512 rm -f conftest.$ac_objext conftest$ac_exeext
5513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5514 (eval $ac_link) 2>conftest.er1
5515 ac_status=$?
5516 grep -v '^ *+' conftest.er1 >conftest.err
5517 rm -f conftest.er1
5518 cat conftest.err >&5
5519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5520 (exit $ac_status); } &&
5521 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5523 (eval $ac_try) 2>&5
5524 ac_status=$?
5525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5526 (exit $ac_status); }; } &&
5527 { ac_try='test -s conftest$ac_exeext'
5528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5529 (eval $ac_try) 2>&5
5530 ac_status=$?
5531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5532 (exit $ac_status); }; }; then
5533 ac_cv_libwrap_libs="-lwrap -lnsl"
5534 else
5535 echo "$as_me: failed program was:" >&5
5536 sed 's/^/| /' conftest.$ac_ext >&5
5537
5538 ac_cv_libwrap_libs=no
5539 fi
5540 rm -f conftest.err conftest.$ac_objext \
5541 conftest$ac_exeext conftest.$ac_ext
5542 fi
5543
5544 fi
5545
5546
5547 if test "x$ac_cv_libwrap_libs" = "xno"
5548 then
5549 { { echo "$as_me:$LINENO: error: cannot find libraries" >&5
5550 echo "$as_me: error: cannot find libraries" >&2;}
5551 { (exit 1); exit 1; }; }
5552 else
5553 echo "$as_me:$LINENO: result: $ac_cv_libwrap_libs" >&5
5554 echo "${ECHO_T}$ac_cv_libwrap_libs" >&6
5555 fi
5556
5557 elif test "x$enable_syslog" != "xno" ; then
5558 echo "$as_me:$LINENO: result: ok" >&5
5559 echo "${ECHO_T}ok" >&6
5560
5561 for ac_header in syslog.h
5562 do
5563 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5564 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5565 echo "$as_me:$LINENO: checking for $ac_header" >&5
5566 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5567 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5568 echo $ECHO_N "(cached) $ECHO_C" >&6
5569 fi
5570 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5571 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5572 else
5573 # Is the header compilable?
5574 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5575 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5576 cat >conftest.$ac_ext <<_ACEOF
5577 /* confdefs.h. */
5578 _ACEOF
5579 cat confdefs.h >>conftest.$ac_ext
5580 cat >>conftest.$ac_ext <<_ACEOF
5581 /* end confdefs.h. */
5582 $ac_includes_default
5583 #include <$ac_header>
5584 _ACEOF
5585 rm -f conftest.$ac_objext
5586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5587 (eval $ac_compile) 2>conftest.er1
5588 ac_status=$?
5589 grep -v '^ *+' conftest.er1 >conftest.err
5590 rm -f conftest.er1
5591 cat conftest.err >&5
5592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5593 (exit $ac_status); } &&
5594 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5596 (eval $ac_try) 2>&5
5597 ac_status=$?
5598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5599 (exit $ac_status); }; } &&
5600 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
5606 ac_header_compiler=yes
5607 else
5608 echo "$as_me: failed program was:" >&5
5609 sed 's/^/| /' conftest.$ac_ext >&5
5610
5611 ac_header_compiler=no
5612 fi
5613 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5614 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5615 echo "${ECHO_T}$ac_header_compiler" >&6
5616
5617 # Is the header present?
5618 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5619 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5620 cat >conftest.$ac_ext <<_ACEOF
5621 /* confdefs.h. */
5622 _ACEOF
5623 cat confdefs.h >>conftest.$ac_ext
5624 cat >>conftest.$ac_ext <<_ACEOF
5625 /* end confdefs.h. */
5626 #include <$ac_header>
5627 _ACEOF
5628 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5629 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5630 ac_status=$?
5631 grep -v '^ *+' conftest.er1 >conftest.err
5632 rm -f conftest.er1
5633 cat conftest.err >&5
5634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5635 (exit $ac_status); } >/dev/null; then
5636 if test -s conftest.err; then
5637 ac_cpp_err=$ac_c_preproc_warn_flag
5638 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5639 else
5640 ac_cpp_err=
5641 fi
5642 else
5643 ac_cpp_err=yes
5644 fi
5645 if test -z "$ac_cpp_err"; then
5646 ac_header_preproc=yes
5647 else
5648 echo "$as_me: failed program was:" >&5
5649 sed 's/^/| /' conftest.$ac_ext >&5
5650
5651 ac_header_preproc=no
5652 fi
5653 rm -f conftest.err conftest.$ac_ext
5654 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5655 echo "${ECHO_T}$ac_header_preproc" >&6
5656
5657 # So? What about this header?
5658 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5659 yes:no: )
5660 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5661 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5662 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5663 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5664 ac_header_preproc=yes
5665 ;;
5666 no:yes:* )
5667 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5668 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5669 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5670 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5671 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5672 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5673 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5674 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5675 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5676 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5677 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5678 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5679 (
5680 cat <<\_ASBOX
5681 ## ----------------------------- ##
5682 ## Report this to [email protected] ##
5683 ## ----------------------------- ##
5684 _ASBOX
5685 ) |
5686 sed "s/^/$as_me: WARNING: /" >&2
5687 ;;
5688 esac
5689 echo "$as_me:$LINENO: checking for $ac_header" >&5
5690 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5691 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5692 echo $ECHO_N "(cached) $ECHO_C" >&6
5693 else
5694 eval "$as_ac_Header=\$ac_header_preproc"
5695 fi
5696 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5697 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5698
5699 fi
5700 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5701 cat >>confdefs.h <<_ACEOF
5702 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5703 _ACEOF
5704
5705 else
5706 { { echo "$as_me:$LINENO: error: syslog enabled but syslog header not found" >&5
5707 echo "$as_me: error: syslog enabled but syslog header not found" >&2;}
5708 { (exit 1); exit 1; }; }
5709 fi
5710
5711 done
5712
5713 else
5714 echo "$as_me:$LINENO: result: ok" >&5
5715 echo "${ECHO_T}ok" >&6
5716 fi
5717
5718 echo "$as_me:$LINENO: checking log facility" >&5
5719 echo $ECHO_N "checking log facility... $ECHO_C" >&6
5720 # Check whether --enable-facility or --disable-facility was given.
5721 if test "${enable_facility+set}" = set; then
5722 enableval="$enable_facility"
5723
5724 fi;
5725 if test "x$enable_facility" = "xyes" ; then
5726 { { echo "$as_me:$LINENO: error: you have to give an option to --enable-facility" >&5
5727 echo "$as_me: error: you have to give an option to --enable-facility" >&2;}
5728 { (exit 1); exit 1; }; }
5729 elif test "x$enable_facility" = "xno" -o "x$enable_facility" = "x"; then
5730
5731 cat >>confdefs.h <<_ACEOF
5732 #define LOG_FACILITY LOG_DAEMON
5733 _ACEOF
5734
5735 else
5736
5737 cat >>confdefs.h <<_ACEOF
5738 #define LOG_FACILITY $enable_facility
5739 _ACEOF
5740
5741 fi
5742 echo "$as_me:$LINENO: result: ok" >&5
5743 echo "${ECHO_T}ok" >&6
5744
5745 echo
5746 echo "Creating files"
5747 ac_config_files="$ac_config_files Makefile src/Makefile docs/Makefile"
5748 cat >confcache <<\_ACEOF
5749 # This file is a shell script that caches the results of configure
5750 # tests run on this system so they can be shared between configure
5751 # scripts and configure runs, see configure's option --config-cache.
5752 # It is not useful on other systems. If it contains results you don't
5753 # want to keep, you may remove or edit it.
5754 #
5755 # config.status only pays attention to the cache file if you give it
5756 # the --recheck option to rerun configure.
5757 #
5758 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5759 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5760 # following values.
5761
5762 _ACEOF
5763
5764 # The following way of writing the cache mishandles newlines in values,
5765 # but we know of no workaround that is simple, portable, and efficient.
5766 # So, don't put newlines in cache variables' values.
5767 # Ultrix sh set writes to stderr and can't be redirected directly,
5768 # and sets the high bit in the cache file unless we assign to the vars.
5769 {
5770 (set) 2>&1 |
5771 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5772 *ac_space=\ *)
5773 # `set' does not quote correctly, so add quotes (double-quote
5774 # substitution turns \\\\ into \\, and sed turns \\ into \).
5775 sed -n \
5776 "s/'/'\\\\''/g;
5777 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5778 ;;
5779 *)
5780 # `set' quotes correctly as required by POSIX, so do not add quotes.
5781 sed -n \
5782 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5783 ;;
5784 esac;
5785 } |
5786 sed '
5787 t clear
5788 : clear
5789 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5790 t end
5791 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5792 : end' >>confcache
5793 if diff $cache_file confcache >/dev/null 2>&1; then :; else
5794 if test -w $cache_file; then
5795 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5796 cat confcache >$cache_file
5797 else
5798 echo "not updating unwritable cache $cache_file"
5799 fi
5800 fi
5801 rm -f confcache
5802
5803 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5804 # Let make expand exec_prefix.
5805 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5806
5807 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5808 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5809 # trailing colons and then remove the whole line if VPATH becomes empty
5810 # (actually we leave an empty line to preserve line numbers).
5811 if test "x$srcdir" = x.; then
5812 ac_vpsub='/^[ ]*VPATH[ ]*=/{
5813 s/:*\$(srcdir):*/:/;
5814 s/:*\${srcdir}:*/:/;
5815 s/:*@srcdir@:*/:/;
5816 s/^\([^=]*=[ ]*\):*/\1/;
5817 s/:*$//;
5818 s/^[^=]*=[ ]*$//;
5819 }'
5820 fi
5821
5822 DEFS=-DHAVE_CONFIG_H
5823
5824 ac_libobjs=
5825 ac_ltlibobjs=
5826 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5827 # 1. Remove the extension, and $U if already installed.
5828 ac_i=`echo "$ac_i" |
5829 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
5830 # 2. Add them.
5831 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
5832 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
5833 done
5834 LIBOBJS=$ac_libobjs
5835
5836 LTLIBOBJS=$ac_ltlibobjs
5837
5838
5839
5840 : ${CONFIG_STATUS=./config.status}
5841 ac_clean_files_save=$ac_clean_files
5842 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5843 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5844 echo "$as_me: creating $CONFIG_STATUS" >&6;}
5845 cat >$CONFIG_STATUS <<_ACEOF
5846 #! $SHELL
5847 # Generated by $as_me.
5848 # Run this file to recreate the current configuration.
5849 # Compiler output produced by configure, useful for debugging
5850 # configure, is in config.log if it exists.
5851
5852 debug=false
5853 ac_cs_recheck=false
5854 ac_cs_silent=false
5855 SHELL=\${CONFIG_SHELL-$SHELL}
5856 _ACEOF
5857
5858 cat >>$CONFIG_STATUS <<\_ACEOF
5859 ## --------------------- ##
5860 ## M4sh Initialization. ##
5861 ## --------------------- ##
5862
5863 # Be Bourne compatible
5864 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5865 emulate sh
5866 NULLCMD=:
5867 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5868 # is contrary to our usage. Disable this feature.
5869 alias -g '${1+"$@"}'='"$@"'
5870 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5871 set -o posix
5872 fi
5873 DUALCASE=1; export DUALCASE # for MKS sh
5874
5875 # Support unset when possible.
5876 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5877 as_unset=unset
5878 else
5879 as_unset=false
5880 fi
5881
5882
5883 # Work around bugs in pre-3.0 UWIN ksh.
5884 $as_unset ENV MAIL MAILPATH
5885 PS1='$ '
5886 PS2='> '
5887 PS4='+ '
5888
5889 # NLS nuisances.
5890 for as_var in \
5891 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5892 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5893 LC_TELEPHONE LC_TIME
5894 do
5895 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
5896 eval $as_var=C; export $as_var
5897 else
5898 $as_unset $as_var
5899 fi
5900 done
5901
5902 # Required to use basename.
5903 if expr a : '\(a\)' >/dev/null 2>&1; then
5904 as_expr=expr
5905 else
5906 as_expr=false
5907 fi
5908
5909 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
5910 as_basename=basename
5911 else
5912 as_basename=false
5913 fi
5914
5915
5916 # Name of the executable.
5917 as_me=`$as_basename "$0" ||
5918 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5919 X"$0" : 'X\(//\)$' \| \
5920 X"$0" : 'X\(/\)$' \| \
5921 . : '\(.\)' 2>/dev/null ||
5922 echo X/"$0" |
5923 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5924 /^X\/\(\/\/\)$/{ s//\1/; q; }
5925 /^X\/\(\/\).*/{ s//\1/; q; }
5926 s/.*/./; q'`
5927
5928
5929 # PATH needs CR, and LINENO needs CR and PATH.
5930 # Avoid depending upon Character Ranges.
5931 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5932 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5933 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5934 as_cr_digits='0123456789'
5935 as_cr_alnum=$as_cr_Letters$as_cr_digits
5936
5937 # The user is always right.
5938 if test "${PATH_SEPARATOR+set}" != set; then
5939 echo "#! /bin/sh" >conf$$.sh
5940 echo "exit 0" >>conf$$.sh
5941 chmod +x conf$$.sh
5942 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5943 PATH_SEPARATOR=';'
5944 else
5945 PATH_SEPARATOR=:
5946 fi
5947 rm -f conf$$.sh
5948 fi
5949
5950
5951 as_lineno_1=$LINENO
5952 as_lineno_2=$LINENO
5953 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5954 test "x$as_lineno_1" != "x$as_lineno_2" &&
5955 test "x$as_lineno_3" = "x$as_lineno_2" || {
5956 # Find who we are. Look in the path if we contain no path at all
5957 # relative or not.
5958 case $0 in
5959 *[\\/]* ) as_myself=$0 ;;
5960 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5961 for as_dir in $PATH
5962 do
5963 IFS=$as_save_IFS
5964 test -z "$as_dir" && as_dir=.
5965 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5966 done
5967
5968 ;;
5969 esac
5970 # We did not find ourselves, most probably we were run as `sh COMMAND'
5971 # in which case we are not to be found in the path.
5972 if test "x$as_myself" = x; then
5973 as_myself=$0
5974 fi
5975 if test ! -f "$as_myself"; then
5976 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
5977 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
5978 { (exit 1); exit 1; }; }
5979 fi
5980 case $CONFIG_SHELL in
5981 '')
5982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5983 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5984 do
5985 IFS=$as_save_IFS
5986 test -z "$as_dir" && as_dir=.
5987 for as_base in sh bash ksh sh5; do
5988 case $as_dir in
5989 /*)
5990 if ("$as_dir/$as_base" -c '
5991 as_lineno_1=$LINENO
5992 as_lineno_2=$LINENO
5993 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5994 test "x$as_lineno_1" != "x$as_lineno_2" &&
5995 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
5996 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
5997 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
5998 CONFIG_SHELL=$as_dir/$as_base
5999 export CONFIG_SHELL
6000 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6001 fi;;
6002 esac
6003 done
6004 done
6005 ;;
6006 esac
6007
6008 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6009 # uniformly replaced by the line number. The first 'sed' inserts a
6010 # line-number line before each line; the second 'sed' does the real
6011 # work. The second script uses 'N' to pair each line-number line
6012 # with the numbered line, and appends trailing '-' during
6013 # substitution so that $LINENO is not a special case at line end.
6014 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6015 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
6016 sed '=' <$as_myself |
6017 sed '
6018 N
6019 s,$,-,
6020 : loop
6021 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6022 t loop
6023 s,-$,,
6024 s,^['$as_cr_digits']*\n,,
6025 ' >$as_me.lineno &&
6026 chmod +x $as_me.lineno ||
6027 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6028 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6029 { (exit 1); exit 1; }; }
6030
6031 # Don't try to exec as it changes $[0], causing all sort of problems
6032 # (the dirname of $[0] is not the place where we might find the
6033 # original and so on. Autoconf is especially sensible to this).
6034 . ./$as_me.lineno
6035 # Exit status is that of the last command.
6036 exit
6037 }
6038
6039
6040 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6041 *c*,-n*) ECHO_N= ECHO_C='
6042 ' ECHO_T=' ' ;;
6043 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6044 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
6045 esac
6046
6047 if expr a : '\(a\)' >/dev/null 2>&1; then
6048 as_expr=expr
6049 else
6050 as_expr=false
6051 fi
6052
6053 rm -f conf$$ conf$$.exe conf$$.file
6054 echo >conf$$.file
6055 if ln -s conf$$.file conf$$ 2>/dev/null; then
6056 # We could just check for DJGPP; but this test a) works b) is more generic
6057 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6058 if test -f conf$$.exe; then
6059 # Don't use ln at all; we don't have any links
6060 as_ln_s='cp -p'
6061 else
6062 as_ln_s='ln -s'
6063 fi
6064 elif ln conf$$.file conf$$ 2>/dev/null; then
6065 as_ln_s=ln
6066 else
6067 as_ln_s='cp -p'
6068 fi
6069 rm -f conf$$ conf$$.exe conf$$.file
6070
6071 if mkdir -p . 2>/dev/null; then
6072 as_mkdir_p=:
6073 else
6074 test -d ./-p && rmdir ./-p
6075 as_mkdir_p=false
6076 fi
6077
6078 as_executable_p="test -f"
6079
6080 # Sed expression to map a string onto a valid CPP name.
6081 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6082
6083 # Sed expression to map a string onto a valid variable name.
6084 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6085
6086
6087 # IFS
6088 # We need space, tab and new line, in precisely that order.
6089 as_nl='
6090 '
6091 IFS=" $as_nl"
6092
6093 # CDPATH.
6094 $as_unset CDPATH
6095
6096 exec 6>&1
6097
6098 # Open the log real soon, to keep \$[0] and so on meaningful, and to
6099 # report actual input values of CONFIG_FILES etc. instead of their
6100 # values after options handling. Logging --version etc. is OK.
6101 exec 5>>config.log
6102 {
6103 echo
6104 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6105 ## Running $as_me. ##
6106 _ASBOX
6107 } >&5
6108 cat >&5 <<_CSEOF
6109
6110 This file was extended by Ample $as_me AMPLE_VERSION, which was
6111 generated by GNU Autoconf 2.58. Invocation command line was
6112
6113 CONFIG_FILES = $CONFIG_FILES
6114 CONFIG_HEADERS = $CONFIG_HEADERS
6115 CONFIG_LINKS = $CONFIG_LINKS
6116 CONFIG_COMMANDS = $CONFIG_COMMANDS
6117 $ $0 $@
6118
6119 _CSEOF
6120 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6121 echo >&5
6122 _ACEOF
6123
6124 # Files that config.status was made for.
6125 if test -n "$ac_config_files"; then
6126 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6127 fi
6128
6129 if test -n "$ac_config_headers"; then
6130 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6131 fi
6132
6133 if test -n "$ac_config_links"; then
6134 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6135 fi
6136
6137 if test -n "$ac_config_commands"; then
6138 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6139 fi
6140
6141 cat >>$CONFIG_STATUS <<\_ACEOF
6142
6143 ac_cs_usage="\
6144 \`$as_me' instantiates files from templates according to the
6145 current configuration.
6146
6147 Usage: $0 [OPTIONS] [FILE]...
6148
6149 -h, --help print this help, then exit
6150 -V, --version print version number, then exit
6151 -q, --quiet do not print progress messages
6152 -d, --debug don't remove temporary files
6153 --recheck update $as_me by reconfiguring in the same conditions
6154 --file=FILE[:TEMPLATE]
6155 instantiate the configuration file FILE
6156 --header=FILE[:TEMPLATE]
6157 instantiate the configuration header FILE
6158
6159 Configuration files:
6160 $config_files
6161
6162 Configuration headers:
6163 $config_headers
6164
6165 Report bugs to <[email protected]>."
6166 _ACEOF
6167
6168 cat >>$CONFIG_STATUS <<_ACEOF
6169 ac_cs_version="\\
6170 Ample config.status AMPLE_VERSION
6171 configured by $0, generated by GNU Autoconf 2.58,
6172 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6173
6174 Copyright (C) 2003 Free Software Foundation, Inc.
6175 This config.status script is free software; the Free Software Foundation
6176 gives unlimited permission to copy, distribute and modify it."
6177 srcdir=$srcdir
6178 INSTALL="$INSTALL"
6179 _ACEOF
6180
6181 cat >>$CONFIG_STATUS <<\_ACEOF
6182 # If no file are specified by the user, then we need to provide default
6183 # value. By we need to know if files were specified by the user.
6184 ac_need_defaults=:
6185 while test $# != 0
6186 do
6187 case $1 in
6188 --*=*)
6189 ac_option=`expr "x$1" : 'x\([^=]*\)='`
6190 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
6191 ac_shift=:
6192 ;;
6193 -*)
6194 ac_option=$1
6195 ac_optarg=$2
6196 ac_shift=shift
6197 ;;
6198 *) # This is not an option, so the user has probably given explicit
6199 # arguments.
6200 ac_option=$1
6201 ac_need_defaults=false;;
6202 esac
6203
6204 case $ac_option in
6205 # Handling of the options.
6206 _ACEOF
6207 cat >>$CONFIG_STATUS <<\_ACEOF
6208 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6209 ac_cs_recheck=: ;;
6210 --version | --vers* | -V )
6211 echo "$ac_cs_version"; exit 0 ;;
6212 --he | --h)
6213 # Conflict between --help and --header
6214 { { echo "$as_me:$LINENO: error: ambiguous option: $1
6215 Try \`$0 --help' for more information." >&5
6216 echo "$as_me: error: ambiguous option: $1
6217 Try \`$0 --help' for more information." >&2;}
6218 { (exit 1); exit 1; }; };;
6219 --help | --hel | -h )
6220 echo "$ac_cs_usage"; exit 0 ;;
6221 --debug | --d* | -d )
6222 debug=: ;;
6223 --file | --fil | --fi | --f )
6224 $ac_shift
6225 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
6226 ac_need_defaults=false;;
6227 --header | --heade | --head | --hea )
6228 $ac_shift
6229 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
6230 ac_need_defaults=false;;
6231 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6232 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6233 ac_cs_silent=: ;;
6234
6235 # This is an error.
6236 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
6237 Try \`$0 --help' for more information." >&5
6238 echo "$as_me: error: unrecognized option: $1
6239 Try \`$0 --help' for more information." >&2;}
6240 { (exit 1); exit 1; }; } ;;
6241
6242 *) ac_config_targets="$ac_config_targets $1" ;;
6243
6244 esac
6245 shift
6246 done
6247
6248 ac_configure_extra_args=
6249
6250 if $ac_cs_silent; then
6251 exec 6>/dev/null
6252 ac_configure_extra_args="$ac_configure_extra_args --silent"
6253 fi
6254
6255 _ACEOF
6256 cat >>$CONFIG_STATUS <<_ACEOF
6257 if \$ac_cs_recheck; then
6258 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
6259 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6260 fi
6261
6262 _ACEOF
6263
6264
6265
6266
6267
6268 cat >>$CONFIG_STATUS <<\_ACEOF
6269 for ac_config_target in $ac_config_targets
6270 do
6271 case "$ac_config_target" in
6272 # Handling of arguments.
6273 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6274 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
6275 "docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
6276 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6277 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6278 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6279 { (exit 1); exit 1; }; };;
6280 esac
6281 done
6282
6283 # If the user did not use the arguments to specify the items to instantiate,
6284 # then the envvar interface is used. Set only those that are not.
6285 # We use the long form for the default assignment because of an extremely
6286 # bizarre bug on SunOS 4.1.3.
6287 if $ac_need_defaults; then
6288 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6289 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6290 fi
6291
6292 # Have a temporary directory for convenience. Make it in the build tree
6293 # simply because there is no reason to put it here, and in addition,
6294 # creating and moving files from /tmp can sometimes cause problems.
6295 # Create a temporary directory, and hook for its removal unless debugging.
6296 $debug ||
6297 {
6298 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6299 trap '{ (exit 1); exit 1; }' 1 2 13 15
6300 }
6301
6302 # Create a (secure) tmp directory for tmp files.
6303
6304 {
6305 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
6306 test -n "$tmp" && test -d "$tmp"
6307 } ||
6308 {
6309 tmp=./confstat$$-$RANDOM
6310 (umask 077 && mkdir $tmp)
6311 } ||
6312 {
6313 echo "$me: cannot create a temporary directory in ." >&2
6314 { (exit 1); exit 1; }
6315 }
6316
6317 _ACEOF
6318
6319 cat >>$CONFIG_STATUS <<_ACEOF
6320
6321 #
6322 # CONFIG_FILES section.
6323 #
6324
6325 # No need to generate the scripts if there are no CONFIG_FILES.
6326 # This happens for instance when ./config.status config.h
6327 if test -n "\$CONFIG_FILES"; then
6328 # Protect against being on the right side of a sed subst in config.status.
6329 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6330 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
6331 s,@SHELL@,$SHELL,;t t
6332 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6333 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6334 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6335 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6336 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6337 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6338 s,@exec_prefix@,$exec_prefix,;t t
6339 s,@prefix@,$prefix,;t t
6340 s,@program_transform_name@,$program_transform_name,;t t
6341 s,@bindir@,$bindir,;t t
6342 s,@sbindir@,$sbindir,;t t
6343 s,@libexecdir@,$libexecdir,;t t
6344 s,@datadir@,$datadir,;t t
6345 s,@sysconfdir@,$sysconfdir,;t t
6346 s,@sharedstatedir@,$sharedstatedir,;t t
6347 s,@localstatedir@,$localstatedir,;t t
6348 s,@libdir@,$libdir,;t t
6349 s,@includedir@,$includedir,;t t
6350 s,@oldincludedir@,$oldincludedir,;t t
6351 s,@infodir@,$infodir,;t t
6352 s,@mandir@,$mandir,;t t
6353 s,@build_alias@,$build_alias,;t t
6354 s,@host_alias@,$host_alias,;t t
6355 s,@target_alias@,$target_alias,;t t
6356 s,@DEFS@,$DEFS,;t t
6357 s,@ECHO_C@,$ECHO_C,;t t
6358 s,@ECHO_N@,$ECHO_N,;t t
6359 s,@ECHO_T@,$ECHO_T,;t t
6360 s,@LIBS@,$LIBS,;t t
6361 s,@CC@,$CC,;t t
6362 s,@CFLAGS@,$CFLAGS,;t t
6363 s,@LDFLAGS@,$LDFLAGS,;t t
6364 s,@CPPFLAGS@,$CPPFLAGS,;t t
6365 s,@ac_ct_CC@,$ac_ct_CC,;t t
6366 s,@EXEEXT@,$EXEEXT,;t t
6367 s,@OBJEXT@,$OBJEXT,;t t
6368 s,@SET_MAKE@,$SET_MAKE,;t t
6369 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
6370 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
6371 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
6372 s,@CPP@,$CPP,;t t
6373 s,@EGREP@,$EGREP,;t t
6374 s,@LIBOBJS@,$LIBOBJS,;t t
6375 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
6376 CEOF
6377
6378 _ACEOF
6379
6380 cat >>$CONFIG_STATUS <<\_ACEOF
6381 # Split the substitutions into bite-sized pieces for seds with
6382 # small command number limits, like on Digital OSF/1 and HP-UX.
6383 ac_max_sed_lines=48
6384 ac_sed_frag=1 # Number of current file.
6385 ac_beg=1 # First line for current file.
6386 ac_end=$ac_max_sed_lines # Line after last line for current file.
6387 ac_more_lines=:
6388 ac_sed_cmds=
6389 while $ac_more_lines; do
6390 if test $ac_beg -gt 1; then
6391 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6392 else
6393 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6394 fi
6395 if test ! -s $tmp/subs.frag; then
6396 ac_more_lines=false
6397 else
6398 # The purpose of the label and of the branching condition is to
6399 # speed up the sed processing (if there are no `@' at all, there
6400 # is no need to browse any of the substitutions).
6401 # These are the two extra sed commands mentioned above.
6402 (echo ':t
6403 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
6404 if test -z "$ac_sed_cmds"; then
6405 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
6406 else
6407 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6408 fi
6409 ac_sed_frag=`expr $ac_sed_frag + 1`
6410 ac_beg=$ac_end
6411 ac_end=`expr $ac_end + $ac_max_sed_lines`
6412 fi
6413 done
6414 if test -z "$ac_sed_cmds"; then
6415 ac_sed_cmds=cat
6416 fi
6417 fi # test -n "$CONFIG_FILES"
6418
6419 _ACEOF
6420 cat >>$CONFIG_STATUS <<\_ACEOF
6421 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
6422 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6423 case $ac_file in
6424 - | *:- | *:-:* ) # input from stdin
6425 cat >$tmp/stdin
6426 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6427 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6428 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6429 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6430 * ) ac_file_in=$ac_file.in ;;
6431 esac
6432
6433 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6434 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6435 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6436 X"$ac_file" : 'X\(//\)[^/]' \| \
6437 X"$ac_file" : 'X\(//\)$' \| \
6438 X"$ac_file" : 'X\(/\)' \| \
6439 . : '\(.\)' 2>/dev/null ||
6440 echo X"$ac_file" |
6441 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6442 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6443 /^X\(\/\/\)$/{ s//\1/; q; }
6444 /^X\(\/\).*/{ s//\1/; q; }
6445 s/.*/./; q'`
6446 { if $as_mkdir_p; then
6447 mkdir -p "$ac_dir"
6448 else
6449 as_dir="$ac_dir"
6450 as_dirs=
6451 while test ! -d "$as_dir"; do
6452 as_dirs="$as_dir $as_dirs"
6453 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6454 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6455 X"$as_dir" : 'X\(//\)[^/]' \| \
6456 X"$as_dir" : 'X\(//\)$' \| \
6457 X"$as_dir" : 'X\(/\)' \| \
6458 . : '\(.\)' 2>/dev/null ||
6459 echo X"$as_dir" |
6460 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6461 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6462 /^X\(\/\/\)$/{ s//\1/; q; }
6463 /^X\(\/\).*/{ s//\1/; q; }
6464 s/.*/./; q'`
6465 done
6466 test ! -n "$as_dirs" || mkdir $as_dirs
6467 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6468 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6469 { (exit 1); exit 1; }; }; }
6470
6471 ac_builddir=.
6472
6473 if test "$ac_dir" != .; then
6474 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6475 # A "../" for each directory in $ac_dir_suffix.
6476 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6477 else
6478 ac_dir_suffix= ac_top_builddir=
6479 fi
6480
6481 case $srcdir in
6482 .) # No --srcdir option. We are building in place.
6483 ac_srcdir=.
6484 if test -z "$ac_top_builddir"; then
6485 ac_top_srcdir=.
6486 else
6487 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6488 fi ;;
6489 [\\/]* | ?:[\\/]* ) # Absolute path.
6490 ac_srcdir=$srcdir$ac_dir_suffix;
6491 ac_top_srcdir=$srcdir ;;
6492 *) # Relative path.
6493 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6494 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6495 esac
6496
6497 # Do not use `cd foo && pwd` to compute absolute paths, because
6498 # the directories may not exist.
6499 case `pwd` in
6500 .) ac_abs_builddir="$ac_dir";;
6501 *)
6502 case "$ac_dir" in
6503 .) ac_abs_builddir=`pwd`;;
6504 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
6505 *) ac_abs_builddir=`pwd`/"$ac_dir";;
6506 esac;;
6507 esac
6508 case $ac_abs_builddir in
6509 .) ac_abs_top_builddir=${ac_top_builddir}.;;
6510 *)
6511 case ${ac_top_builddir}. in
6512 .) ac_abs_top_builddir=$ac_abs_builddir;;
6513 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
6514 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
6515 esac;;
6516 esac
6517 case $ac_abs_builddir in
6518 .) ac_abs_srcdir=$ac_srcdir;;
6519 *)
6520 case $ac_srcdir in
6521 .) ac_abs_srcdir=$ac_abs_builddir;;
6522 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
6523 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
6524 esac;;
6525 esac
6526 case $ac_abs_builddir in
6527 .) ac_abs_top_srcdir=$ac_top_srcdir;;
6528 *)
6529 case $ac_top_srcdir in
6530 .) ac_abs_top_srcdir=$ac_abs_builddir;;
6531 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
6532 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
6533 esac;;
6534 esac
6535
6536
6537 case $INSTALL in
6538 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6539 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
6540 esac
6541
6542 if test x"$ac_file" != x-; then
6543 { echo "$as_me:$LINENO: creating $ac_file" >&5
6544 echo "$as_me: creating $ac_file" >&6;}
6545 rm -f "$ac_file"
6546 fi
6547 # Let's still pretend it is `configure' which instantiates (i.e., don't
6548 # use $as_me), people would be surprised to read:
6549 # /* config.h. Generated by config.status. */
6550 if test x"$ac_file" = x-; then
6551 configure_input=
6552 else
6553 configure_input="$ac_file. "
6554 fi
6555 configure_input=$configure_input"Generated from `echo $ac_file_in |
6556 sed 's,.*/,,'` by configure."
6557
6558 # First look for the input files in the build tree, otherwise in the
6559 # src tree.
6560 ac_file_inputs=`IFS=:
6561 for f in $ac_file_in; do
6562 case $f in
6563 -) echo $tmp/stdin ;;
6564 [\\/$]*)
6565 # Absolute (can't be DOS-style, as IFS=:)
6566 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6567 echo "$as_me: error: cannot find input file: $f" >&2;}
6568 { (exit 1); exit 1; }; }
6569 echo "$f";;
6570 *) # Relative
6571 if test -f "$f"; then
6572 # Build tree
6573 echo "$f"
6574 elif test -f "$srcdir/$f"; then
6575 # Source tree
6576 echo "$srcdir/$f"
6577 else
6578 # /dev/null tree
6579 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6580 echo "$as_me: error: cannot find input file: $f" >&2;}
6581 { (exit 1); exit 1; }; }
6582 fi;;
6583 esac
6584 done` || { (exit 1); exit 1; }
6585 _ACEOF
6586 cat >>$CONFIG_STATUS <<_ACEOF
6587 sed "$ac_vpsub
6588 $extrasub
6589 _ACEOF
6590 cat >>$CONFIG_STATUS <<\_ACEOF
6591 :t
6592 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6593 s,@configure_input@,$configure_input,;t t
6594 s,@srcdir@,$ac_srcdir,;t t
6595 s,@abs_srcdir@,$ac_abs_srcdir,;t t
6596 s,@top_srcdir@,$ac_top_srcdir,;t t
6597 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
6598 s,@builddir@,$ac_builddir,;t t
6599 s,@abs_builddir@,$ac_abs_builddir,;t t
6600 s,@top_builddir@,$ac_top_builddir,;t t
6601 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
6602 s,@INSTALL@,$ac_INSTALL,;t t
6603 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6604 rm -f $tmp/stdin
6605 if test x"$ac_file" != x-; then
6606 mv $tmp/out $ac_file
6607 else
6608 cat $tmp/out
6609 rm -f $tmp/out
6610 fi
6611
6612 done
6613 _ACEOF
6614 cat >>$CONFIG_STATUS <<\_ACEOF
6615
6616 #
6617 # CONFIG_HEADER section.
6618 #
6619
6620 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6621 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6622 #
6623 # ac_d sets the value in "#define NAME VALUE" lines.
6624 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6625 ac_dB='[ ].*$,\1#\2'
6626 ac_dC=' '
6627 ac_dD=',;t'
6628 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6629 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6630 ac_uB='$,\1#\2define\3'
6631 ac_uC=' '
6632 ac_uD=',;t'
6633
6634 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
6635 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6636 case $ac_file in
6637 - | *:- | *:-:* ) # input from stdin
6638 cat >$tmp/stdin
6639 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6640 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6641 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6642 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6643 * ) ac_file_in=$ac_file.in ;;
6644 esac
6645
6646 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
6647 echo "$as_me: creating $ac_file" >&6;}
6648
6649 # First look for the input files in the build tree, otherwise in the
6650 # src tree.
6651 ac_file_inputs=`IFS=:
6652 for f in $ac_file_in; do
6653 case $f in
6654 -) echo $tmp/stdin ;;
6655 [\\/$]*)
6656 # Absolute (can't be DOS-style, as IFS=:)
6657 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6658 echo "$as_me: error: cannot find input file: $f" >&2;}
6659 { (exit 1); exit 1; }; }
6660 # Do quote $f, to prevent DOS paths from being IFS'd.
6661 echo "$f";;
6662 *) # Relative
6663 if test -f "$f"; then
6664 # Build tree
6665 echo "$f"
6666 elif test -f "$srcdir/$f"; then
6667 # Source tree
6668 echo "$srcdir/$f"
6669 else
6670 # /dev/null tree
6671 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6672 echo "$as_me: error: cannot find input file: $f" >&2;}
6673 { (exit 1); exit 1; }; }
6674 fi;;
6675 esac
6676 done` || { (exit 1); exit 1; }
6677 # Remove the trailing spaces.
6678 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
6679
6680 _ACEOF
6681
6682 # Transform confdefs.h into two sed scripts, `conftest.defines' and
6683 # `conftest.undefs', that substitutes the proper values into
6684 # config.h.in to produce config.h. The first handles `#define'
6685 # templates, and the second `#undef' templates.
6686 # And first: Protect against being on the right side of a sed subst in
6687 # config.status. Protect against being in an unquoted here document
6688 # in config.status.
6689 rm -f conftest.defines conftest.undefs
6690 # Using a here document instead of a string reduces the quoting nightmare.
6691 # Putting comments in sed scripts is not portable.
6692 #
6693 # `end' is used to avoid that the second main sed command (meant for
6694 # 0-ary CPP macros) applies to n-ary macro definitions.
6695 # See the Autoconf documentation for `clear'.
6696 cat >confdef2sed.sed <<\_ACEOF
6697 s/[\\&,]/\\&/g
6698 s,[\\$`],\\&,g
6699 t clear
6700 : clear
6701 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
6702 t end
6703 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
6704 : end
6705 _ACEOF
6706 # If some macros were called several times there might be several times
6707 # the same #defines, which is useless. Nevertheless, we may not want to
6708 # sort them, since we want the *last* AC-DEFINE to be honored.
6709 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
6710 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
6711 rm -f confdef2sed.sed
6712
6713 # This sed command replaces #undef with comments. This is necessary, for
6714 # example, in the case of _POSIX_SOURCE, which is predefined and required
6715 # on some systems where configure will not decide to define it.
6716 cat >>conftest.undefs <<\_ACEOF
6717 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
6718 _ACEOF
6719
6720 # Break up conftest.defines because some shells have a limit on the size
6721 # of here documents, and old seds have small limits too (100 cmds).
6722 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
6723 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
6724 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
6725 echo ' :' >>$CONFIG_STATUS
6726 rm -f conftest.tail
6727 while grep . conftest.defines >/dev/null
6728 do
6729 # Write a limited-size here document to $tmp/defines.sed.
6730 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
6731 # Speed up: don't consider the non `#define' lines.
6732 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
6733 # Work around the forget-to-reset-the-flag bug.
6734 echo 't clr' >>$CONFIG_STATUS
6735 echo ': clr' >>$CONFIG_STATUS
6736 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
6737 echo 'CEOF
6738 sed -f $tmp/defines.sed $tmp/in >$tmp/out
6739 rm -f $tmp/in
6740 mv $tmp/out $tmp/in
6741 ' >>$CONFIG_STATUS
6742 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
6743 rm -f conftest.defines
6744 mv conftest.tail conftest.defines
6745 done
6746 rm -f conftest.defines
6747 echo ' fi # grep' >>$CONFIG_STATUS
6748 echo >>$CONFIG_STATUS
6749
6750 # Break up conftest.undefs because some shells have a limit on the size
6751 # of here documents, and old seds have small limits too (100 cmds).
6752 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
6753 rm -f conftest.tail
6754 while grep . conftest.undefs >/dev/null
6755 do
6756 # Write a limited-size here document to $tmp/undefs.sed.
6757 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
6758 # Speed up: don't consider the non `#undef'
6759 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
6760 # Work around the forget-to-reset-the-flag bug.
6761 echo 't clr' >>$CONFIG_STATUS
6762 echo ': clr' >>$CONFIG_STATUS
6763 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
6764 echo 'CEOF
6765 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
6766 rm -f $tmp/in
6767 mv $tmp/out $tmp/in
6768 ' >>$CONFIG_STATUS
6769 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
6770 rm -f conftest.undefs
6771 mv conftest.tail conftest.undefs
6772 done
6773 rm -f conftest.undefs
6774
6775 cat >>$CONFIG_STATUS <<\_ACEOF
6776 # Let's still pretend it is `configure' which instantiates (i.e., don't
6777 # use $as_me), people would be surprised to read:
6778 # /* config.h. Generated by config.status. */
6779 if test x"$ac_file" = x-; then
6780 echo "/* Generated by configure. */" >$tmp/config.h
6781 else
6782 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
6783 fi
6784 cat $tmp/in >>$tmp/config.h
6785 rm -f $tmp/in
6786 if test x"$ac_file" != x-; then
6787 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
6788 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
6789 echo "$as_me: $ac_file is unchanged" >&6;}
6790 else
6791 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6792 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6793 X"$ac_file" : 'X\(//\)[^/]' \| \
6794 X"$ac_file" : 'X\(//\)$' \| \
6795 X"$ac_file" : 'X\(/\)' \| \
6796 . : '\(.\)' 2>/dev/null ||
6797 echo X"$ac_file" |
6798 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6799 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6800 /^X\(\/\/\)$/{ s//\1/; q; }
6801 /^X\(\/\).*/{ s//\1/; q; }
6802 s/.*/./; q'`
6803 { if $as_mkdir_p; then
6804 mkdir -p "$ac_dir"
6805 else
6806 as_dir="$ac_dir"
6807 as_dirs=
6808 while test ! -d "$as_dir"; do
6809 as_dirs="$as_dir $as_dirs"
6810 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6811 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6812 X"$as_dir" : 'X\(//\)[^/]' \| \
6813 X"$as_dir" : 'X\(//\)$' \| \
6814 X"$as_dir" : 'X\(/\)' \| \
6815 . : '\(.\)' 2>/dev/null ||
6816 echo X"$as_dir" |
6817 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6818 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6819 /^X\(\/\/\)$/{ s//\1/; q; }
6820 /^X\(\/\).*/{ s//\1/; q; }
6821 s/.*/./; q'`
6822 done
6823 test ! -n "$as_dirs" || mkdir $as_dirs
6824 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6825 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6826 { (exit 1); exit 1; }; }; }
6827
6828 rm -f $ac_file
6829 mv $tmp/config.h $ac_file
6830 fi
6831 else
6832 cat $tmp/config.h
6833 rm -f $tmp/config.h
6834 fi
6835 done
6836 _ACEOF
6837
6838 cat >>$CONFIG_STATUS <<\_ACEOF
6839
6840 { (exit 0); exit 0; }
6841 _ACEOF
6842 chmod +x $CONFIG_STATUS
6843 ac_clean_files=$ac_clean_files_save
6844
6845
6846 # configure is writing to config.log, and then calls config.status.
6847 # config.status does its own redirection, appending to config.log.
6848 # Unfortunately, on DOS this fails, as config.log is still kept open
6849 # by configure, so config.status won't be able to write to it; its
6850 # output is simply discarded. So we exec the FD to /dev/null,
6851 # effectively closing config.log, so it can be properly (re)opened and
6852 # appended to by config.status. When coming back to configure, we
6853 # need to make the FD available again.
6854 if test "$no_create" != yes; then
6855 ac_cs_success=:
6856 ac_config_status_args=
6857 test "$silent" = yes &&
6858 ac_config_status_args="$ac_config_status_args --quiet"
6859 exec 5>/dev/null
6860 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6861 exec 5>>config.log
6862 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6863 # would make configure fail if this is the last instruction.
6864 $ac_cs_success || { (exit 1); exit 1; }
6865 fi
6866
6867 echo
6868
6869
6870
6871 echo "+----------------------------------------+"
6872 echo "| SUCCESS |"
6873 echo "+----------------------------------------+"
6874 echo " Ample has been configured, you should"
6875 echo " now type 'make' to compile Ample."
6876 echo
6877 echo "+----------------------------------------+"
6878 echo "| YOUR CONFIGURATION |"
6879 echo "+----------------------------------------+"
6880
6881 echo " Version: $AMPLE_MAJOR_VERSION.$AMPLE_MINOR_VERSION.$AMPLE_MICRO_VERSION"
6882
6883 if test "x$enable_syslog" = "xno" ; then
6884 echo " Syslog: disabled"
6885 echo " Libwrap: disabled"
6886 elif test "x$enable_libwrap" = "xyes" ; then
6887 echo " Syslog: enabled"
6888 echo " Libwrap: enabled"
6889 else
6890 echo " Syslog: enabled"
6891 echo " Libwrap: disabled"
6892 fi
6893
6894 if test "x$enable_facility" != "xno" -a "x$enable_facility" != "x"; then
6895 echo " Log facility: $enable_facility"
6896 fi
6897
6898 echo
6899