Debian Codegraph @

configure

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