Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # From configure.ac Revision: 1.4 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59 for ffproxy 1.6.
5 #
6 # Report bugs to <[email protected]>.
7 #
8 # Copyright (C) 2003 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
14
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23 set -o posix
24 fi
25 DUALCASE=1; export DUALCASE # for MKS sh
26
27 # Support unset when possible.
28 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29 as_unset=unset
30 else
31 as_unset=false
32 fi
33
34
35 # Work around bugs in pre-3.0 UWIN ksh.
36 $as_unset ENV MAIL MAILPATH
37 PS1='$ '
38 PS2='> '
39 PS4='+ '
40
41 # NLS nuisances.
42 for as_var in \
43 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45 LC_TELEPHONE LC_TIME
46 do
47 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
48 eval $as_var=C; export $as_var
49 else
50 $as_unset $as_var
51 fi
52 done
53
54 # Required to use basename.
55 if expr a : '\(a\)' >/dev/null 2>&1; then
56 as_expr=expr
57 else
58 as_expr=false
59 fi
60
61 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62 as_basename=basename
63 else
64 as_basename=false
65 fi
66
67
68 # Name of the executable.
69 as_me=`$as_basename "$0" ||
70 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71 X"$0" : 'X\(//\)$' \| \
72 X"$0" : 'X\(/\)$' \| \
73 . : '\(.\)' 2>/dev/null ||
74 echo X/"$0" |
75 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76 /^X\/\(\/\/\)$/{ s//\1/; q; }
77 /^X\/\(\/\).*/{ s//\1/; q; }
78 s/.*/./; q'`
79
80
81 # PATH needs CR, and LINENO needs CR and PATH.
82 # Avoid depending upon Character Ranges.
83 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86 as_cr_digits='0123456789'
87 as_cr_alnum=$as_cr_Letters$as_cr_digits
88
89 # The user is always right.
90 if test "${PATH_SEPARATOR+set}" != set; then
91 echo "#! /bin/sh" >conf$$.sh
92 echo "exit 0" >>conf$$.sh
93 chmod +x conf$$.sh
94 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
95 PATH_SEPARATOR=';'
96 else
97 PATH_SEPARATOR=:
98 fi
99 rm -f conf$$.sh
100 fi
101
102
103 as_lineno_1=$LINENO
104 as_lineno_2=$LINENO
105 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
106 test "x$as_lineno_1" != "x$as_lineno_2" &&
107 test "x$as_lineno_3" = "x$as_lineno_2" || {
108 # Find who we are. Look in the path if we contain no path at all
109 # relative or not.
110 case $0 in
111 *[\\/]* ) as_myself=$0 ;;
112 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 for as_dir in $PATH
114 do
115 IFS=$as_save_IFS
116 test -z "$as_dir" && as_dir=.
117 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
118 done
119
120 ;;
121 esac
122 # We did not find ourselves, most probably we were run as `sh COMMAND'
123 # in which case we are not to be found in the path.
124 if test "x$as_myself" = x; then
125 as_myself=$0
126 fi
127 if test ! -f "$as_myself"; then
128 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129 { (exit 1); exit 1; }; }
130 fi
131 case $CONFIG_SHELL in
132 '')
133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135 do
136 IFS=$as_save_IFS
137 test -z "$as_dir" && as_dir=.
138 for as_base in sh bash ksh sh5; do
139 case $as_dir in
140 /*)
141 if ("$as_dir/$as_base" -c '
142 as_lineno_1=$LINENO
143 as_lineno_2=$LINENO
144 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145 test "x$as_lineno_1" != "x$as_lineno_2" &&
146 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
147 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
148 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
149 CONFIG_SHELL=$as_dir/$as_base
150 export CONFIG_SHELL
151 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
152 fi;;
153 esac
154 done
155 done
156 ;;
157 esac
158
159 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160 # uniformly replaced by the line number. The first 'sed' inserts a
161 # line-number line before each line; the second 'sed' does the real
162 # work. The second script uses 'N' to pair each line-number line
163 # with the numbered line, and appends trailing '-' during
164 # substitution so that $LINENO is not a special case at line end.
165 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
167 sed '=' <$as_myself |
168 sed '
169 N
170 s,$,-,
171 : loop
172 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173 t loop
174 s,-$,,
175 s,^['$as_cr_digits']*\n,,
176 ' >$as_me.lineno &&
177 chmod +x $as_me.lineno ||
178 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179 { (exit 1); exit 1; }; }
180
181 # Don't try to exec as it changes $[0], causing all sort of problems
182 # (the dirname of $[0] is not the place where we might find the
183 # original and so on. Autoconf is especially sensible to this).
184 . ./$as_me.lineno
185 # Exit status is that of the last command.
186 exit
187 }
188
189
190 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191 *c*,-n*) ECHO_N= ECHO_C='
192 ' ECHO_T=' ' ;;
193 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
194 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
195 esac
196
197 if expr a : '\(a\)' >/dev/null 2>&1; then
198 as_expr=expr
199 else
200 as_expr=false
201 fi
202
203 rm -f conf$$ conf$$.exe conf$$.file
204 echo >conf$$.file
205 if ln -s conf$$.file conf$$ 2>/dev/null; then
206 # We could just check for DJGPP; but this test a) works b) is more generic
207 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208 if test -f conf$$.exe; then
209 # Don't use ln at all; we don't have any links
210 as_ln_s='cp -p'
211 else
212 as_ln_s='ln -s'
213 fi
214 elif ln conf$$.file conf$$ 2>/dev/null; then
215 as_ln_s=ln
216 else
217 as_ln_s='cp -p'
218 fi
219 rm -f conf$$ conf$$.exe conf$$.file
220
221 if mkdir -p . 2>/dev/null; then
222 as_mkdir_p=:
223 else
224 test -d ./-p && rmdir ./-p
225 as_mkdir_p=false
226 fi
227
228 as_executable_p="test -f"
229
230 # Sed expression to map a string onto a valid CPP name.
231 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232
233 # Sed expression to map a string onto a valid variable name.
234 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235
236
237 # IFS
238 # We need space, tab and new line, in precisely that order.
239 as_nl='
240 '
241 IFS=" $as_nl"
242
243 # CDPATH.
244 $as_unset CDPATH
245
246
247 # Name of the host.
248 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
249 # so uname gets run too.
250 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
251
252 exec 6>&1
253
254 #
255 # Initializations.
256 #
257 ac_default_prefix=/usr/local
258 ac_config_libobj_dir=.
259 cross_compiling=no
260 subdirs=
261 MFLAGS=
262 MAKEFLAGS=
263 SHELL=${CONFIG_SHELL-/bin/sh}
264
265 # Maximum number of lines to put in a shell here document.
266 # This variable seems obsolete. It should probably be removed, and
267 # only ac_max_sed_lines should be used.
268 : ${ac_max_here_lines=38}
269
270 # Identity of this package.
271 PACKAGE_NAME='ffproxy'
272 PACKAGE_TARNAME='ffproxy'
273 PACKAGE_VERSION='1.6'
274 PACKAGE_STRING='ffproxy 1.6'
275 PACKAGE_BUGREPORT='[email protected]'
276
277 ac_unique_file="main.c"
278 # Factoring default headers for most tests.
279 ac_includes_default="\
280 #include <stdio.h>
281 #if HAVE_SYS_TYPES_H
282 # include <sys/types.h>
283 #endif
284 #if HAVE_SYS_STAT_H
285 # include <sys/stat.h>
286 #endif
287 #if STDC_HEADERS
288 # include <stdlib.h>
289 # include <stddef.h>
290 #else
291 # if HAVE_STDLIB_H
292 # include <stdlib.h>
293 # endif
294 #endif
295 #if HAVE_STRING_H
296 # if !STDC_HEADERS && HAVE_MEMORY_H
297 # include <memory.h>
298 # endif
299 # include <string.h>
300 #endif
301 #if HAVE_STRINGS_H
302 # include <strings.h>
303 #endif
304 #if HAVE_INTTYPES_H
305 # include <inttypes.h>
306 #else
307 # if HAVE_STDINT_H
308 # include <stdint.h>
309 # endif
310 #endif
311 #if HAVE_UNISTD_H
312 # include <unistd.h>
313 #endif"
314
315 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CPP EGREP LIBOBJS LTLIBOBJS'
316 ac_subst_files=''
317
318 # Initialize some variables set by options.
319 ac_init_help=
320 ac_init_version=false
321 # The variables have the same names as the options, with
322 # dashes changed to underlines.
323 cache_file=/dev/null
324 exec_prefix=NONE
325 no_create=
326 no_recursion=
327 prefix=NONE
328 program_prefix=NONE
329 program_suffix=NONE
330 program_transform_name=s,x,x,
331 silent=
332 site=
333 srcdir=
334 verbose=
335 x_includes=NONE
336 x_libraries=NONE
337
338 # Installation directory options.
339 # These are left unexpanded so users can "make install exec_prefix=/foo"
340 # and all the variables that are supposed to be based on exec_prefix
341 # by default will actually change.
342 # Use braces instead of parens because sh, perl, etc. also accept them.
343 bindir='${exec_prefix}/bin'
344 sbindir='${exec_prefix}/sbin'
345 libexecdir='${exec_prefix}/libexec'
346 datadir='${prefix}/share'
347 sysconfdir='${prefix}/etc'
348 sharedstatedir='${prefix}/com'
349 localstatedir='${prefix}/var'
350 libdir='${exec_prefix}/lib'
351 includedir='${prefix}/include'
352 oldincludedir='/usr/include'
353 infodir='${prefix}/info'
354 mandir='${prefix}/man'
355
356 ac_prev=
357 for ac_option
358 do
359 # If the previous option needs an argument, assign it.
360 if test -n "$ac_prev"; then
361 eval "$ac_prev=\$ac_option"
362 ac_prev=
363 continue
364 fi
365
366 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
367
368 # Accept the important Cygnus configure options, so we can diagnose typos.
369
370 case $ac_option in
371
372 -bindir | --bindir | --bindi | --bind | --bin | --bi)
373 ac_prev=bindir ;;
374 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
375 bindir=$ac_optarg ;;
376
377 -build | --build | --buil | --bui | --bu)
378 ac_prev=build_alias ;;
379 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
380 build_alias=$ac_optarg ;;
381
382 -cache-file | --cache-file | --cache-fil | --cache-fi \
383 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
384 ac_prev=cache_file ;;
385 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
386 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
387 cache_file=$ac_optarg ;;
388
389 --config-cache | -C)
390 cache_file=config.cache ;;
391
392 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
393 ac_prev=datadir ;;
394 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
395 | --da=*)
396 datadir=$ac_optarg ;;
397
398 -disable-* | --disable-*)
399 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
400 # Reject names that are not valid shell variable names.
401 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
402 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
403 { (exit 1); exit 1; }; }
404 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
405 eval "enable_$ac_feature=no" ;;
406
407 -enable-* | --enable-*)
408 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
409 # Reject names that are not valid shell variable names.
410 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
411 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
412 { (exit 1); exit 1; }; }
413 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
414 case $ac_option in
415 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
416 *) ac_optarg=yes ;;
417 esac
418 eval "enable_$ac_feature='$ac_optarg'" ;;
419
420 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
421 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
422 | --exec | --exe | --ex)
423 ac_prev=exec_prefix ;;
424 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
425 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
426 | --exec=* | --exe=* | --ex=*)
427 exec_prefix=$ac_optarg ;;
428
429 -gas | --gas | --ga | --g)
430 # Obsolete; use --with-gas.
431 with_gas=yes ;;
432
433 -help | --help | --hel | --he | -h)
434 ac_init_help=long ;;
435 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
436 ac_init_help=recursive ;;
437 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
438 ac_init_help=short ;;
439
440 -host | --host | --hos | --ho)
441 ac_prev=host_alias ;;
442 -host=* | --host=* | --hos=* | --ho=*)
443 host_alias=$ac_optarg ;;
444
445 -includedir | --includedir | --includedi | --included | --include \
446 | --includ | --inclu | --incl | --inc)
447 ac_prev=includedir ;;
448 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
449 | --includ=* | --inclu=* | --incl=* | --inc=*)
450 includedir=$ac_optarg ;;
451
452 -infodir | --infodir | --infodi | --infod | --info | --inf)
453 ac_prev=infodir ;;
454 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
455 infodir=$ac_optarg ;;
456
457 -libdir | --libdir | --libdi | --libd)
458 ac_prev=libdir ;;
459 -libdir=* | --libdir=* | --libdi=* | --libd=*)
460 libdir=$ac_optarg ;;
461
462 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
463 | --libexe | --libex | --libe)
464 ac_prev=libexecdir ;;
465 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
466 | --libexe=* | --libex=* | --libe=*)
467 libexecdir=$ac_optarg ;;
468
469 -localstatedir | --localstatedir | --localstatedi | --localstated \
470 | --localstate | --localstat | --localsta | --localst \
471 | --locals | --local | --loca | --loc | --lo)
472 ac_prev=localstatedir ;;
473 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
474 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
475 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
476 localstatedir=$ac_optarg ;;
477
478 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
479 ac_prev=mandir ;;
480 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
481 mandir=$ac_optarg ;;
482
483 -nfp | --nfp | --nf)
484 # Obsolete; use --without-fp.
485 with_fp=no ;;
486
487 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
488 | --no-cr | --no-c | -n)
489 no_create=yes ;;
490
491 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
492 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
493 no_recursion=yes ;;
494
495 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
496 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
497 | --oldin | --oldi | --old | --ol | --o)
498 ac_prev=oldincludedir ;;
499 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
500 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
501 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
502 oldincludedir=$ac_optarg ;;
503
504 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
505 ac_prev=prefix ;;
506 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
507 prefix=$ac_optarg ;;
508
509 -program-prefix | --program-prefix | --program-prefi | --program-pref \
510 | --program-pre | --program-pr | --program-p)
511 ac_prev=program_prefix ;;
512 -program-prefix=* | --program-prefix=* | --program-prefi=* \
513 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
514 program_prefix=$ac_optarg ;;
515
516 -program-suffix | --program-suffix | --program-suffi | --program-suff \
517 | --program-suf | --program-su | --program-s)
518 ac_prev=program_suffix ;;
519 -program-suffix=* | --program-suffix=* | --program-suffi=* \
520 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
521 program_suffix=$ac_optarg ;;
522
523 -program-transform-name | --program-transform-name \
524 | --program-transform-nam | --program-transform-na \
525 | --program-transform-n | --program-transform- \
526 | --program-transform | --program-transfor \
527 | --program-transfo | --program-transf \
528 | --program-trans | --program-tran \
529 | --progr-tra | --program-tr | --program-t)
530 ac_prev=program_transform_name ;;
531 -program-transform-name=* | --program-transform-name=* \
532 | --program-transform-nam=* | --program-transform-na=* \
533 | --program-transform-n=* | --program-transform-=* \
534 | --program-transform=* | --program-transfor=* \
535 | --program-transfo=* | --program-transf=* \
536 | --program-trans=* | --program-tran=* \
537 | --progr-tra=* | --program-tr=* | --program-t=*)
538 program_transform_name=$ac_optarg ;;
539
540 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
541 | -silent | --silent | --silen | --sile | --sil)
542 silent=yes ;;
543
544 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
545 ac_prev=sbindir ;;
546 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
547 | --sbi=* | --sb=*)
548 sbindir=$ac_optarg ;;
549
550 -sharedstatedir | --sharedstatedir | --sharedstatedi \
551 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
552 | --sharedst | --shareds | --shared | --share | --shar \
553 | --sha | --sh)
554 ac_prev=sharedstatedir ;;
555 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
556 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
557 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
558 | --sha=* | --sh=*)
559 sharedstatedir=$ac_optarg ;;
560
561 -site | --site | --sit)
562 ac_prev=site ;;
563 -site=* | --site=* | --sit=*)
564 site=$ac_optarg ;;
565
566 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
567 ac_prev=srcdir ;;
568 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
569 srcdir=$ac_optarg ;;
570
571 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
572 | --syscon | --sysco | --sysc | --sys | --sy)
573 ac_prev=sysconfdir ;;
574 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
575 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
576 sysconfdir=$ac_optarg ;;
577
578 -target | --target | --targe | --targ | --tar | --ta | --t)
579 ac_prev=target_alias ;;
580 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
581 target_alias=$ac_optarg ;;
582
583 -v | -verbose | --verbose | --verbos | --verbo | --verb)
584 verbose=yes ;;
585
586 -version | --version | --versio | --versi | --vers | -V)
587 ac_init_version=: ;;
588
589 -with-* | --with-*)
590 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
591 # Reject names that are not valid shell variable names.
592 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
593 { echo "$as_me: error: invalid package name: $ac_package" >&2
594 { (exit 1); exit 1; }; }
595 ac_package=`echo $ac_package| sed 's/-/_/g'`
596 case $ac_option in
597 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
598 *) ac_optarg=yes ;;
599 esac
600 eval "with_$ac_package='$ac_optarg'" ;;
601
602 -without-* | --without-*)
603 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
604 # Reject names that are not valid shell variable names.
605 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
606 { echo "$as_me: error: invalid package name: $ac_package" >&2
607 { (exit 1); exit 1; }; }
608 ac_package=`echo $ac_package | sed 's/-/_/g'`
609 eval "with_$ac_package=no" ;;
610
611 --x)
612 # Obsolete; use --with-x.
613 with_x=yes ;;
614
615 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
616 | --x-incl | --x-inc | --x-in | --x-i)
617 ac_prev=x_includes ;;
618 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
619 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
620 x_includes=$ac_optarg ;;
621
622 -x-libraries | --x-libraries | --x-librarie | --x-librari \
623 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
624 ac_prev=x_libraries ;;
625 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
626 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
627 x_libraries=$ac_optarg ;;
628
629 -*) { echo "$as_me: error: unrecognized option: $ac_option
630 Try \`$0 --help' for more information." >&2
631 { (exit 1); exit 1; }; }
632 ;;
633
634 *=*)
635 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
636 # Reject names that are not valid shell variable names.
637 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
638 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
639 { (exit 1); exit 1; }; }
640 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
641 eval "$ac_envvar='$ac_optarg'"
642 export $ac_envvar ;;
643
644 *)
645 # FIXME: should be removed in autoconf 3.0.
646 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
647 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
648 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
649 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
650 ;;
651
652 esac
653 done
654
655 if test -n "$ac_prev"; then
656 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
657 { echo "$as_me: error: missing argument to $ac_option" >&2
658 { (exit 1); exit 1; }; }
659 fi
660
661 # Be sure to have absolute paths.
662 for ac_var in exec_prefix prefix
663 do
664 eval ac_val=$`echo $ac_var`
665 case $ac_val in
666 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
667 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
668 { (exit 1); exit 1; }; };;
669 esac
670 done
671
672 # Be sure to have absolute paths.
673 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
674 localstatedir libdir includedir oldincludedir infodir mandir
675 do
676 eval ac_val=$`echo $ac_var`
677 case $ac_val in
678 [\\/$]* | ?:[\\/]* ) ;;
679 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
680 { (exit 1); exit 1; }; };;
681 esac
682 done
683
684 # There might be people who depend on the old broken behavior: `$host'
685 # used to hold the argument of --host etc.
686 # FIXME: To remove some day.
687 build=$build_alias
688 host=$host_alias
689 target=$target_alias
690
691 # FIXME: To remove some day.
692 if test "x$host_alias" != x; then
693 if test "x$build_alias" = x; then
694 cross_compiling=maybe
695 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
696 If a cross compiler is detected then cross compile mode will be used." >&2
697 elif test "x$build_alias" != "x$host_alias"; then
698 cross_compiling=yes
699 fi
700 fi
701
702 ac_tool_prefix=
703 test -n "$host_alias" && ac_tool_prefix=$host_alias-
704
705 test "$silent" = yes && exec 6>/dev/null
706
707
708 # Find the source files, if location was not specified.
709 if test -z "$srcdir"; then
710 ac_srcdir_defaulted=yes
711 # Try the directory containing this script, then its parent.
712 ac_confdir=`(dirname "$0") 2>/dev/null ||
713 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
714 X"$0" : 'X\(//\)[^/]' \| \
715 X"$0" : 'X\(//\)$' \| \
716 X"$0" : 'X\(/\)' \| \
717 . : '\(.\)' 2>/dev/null ||
718 echo X"$0" |
719 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
720 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
721 /^X\(\/\/\)$/{ s//\1/; q; }
722 /^X\(\/\).*/{ s//\1/; q; }
723 s/.*/./; q'`
724 srcdir=$ac_confdir
725 if test ! -r $srcdir/$ac_unique_file; then
726 srcdir=..
727 fi
728 else
729 ac_srcdir_defaulted=no
730 fi
731 if test ! -r $srcdir/$ac_unique_file; then
732 if test "$ac_srcdir_defaulted" = yes; then
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
734 { (exit 1); exit 1; }; }
735 else
736 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
737 { (exit 1); exit 1; }; }
738 fi
739 fi
740 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
741 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
742 { (exit 1); exit 1; }; }
743 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
744 ac_env_build_alias_set=${build_alias+set}
745 ac_env_build_alias_value=$build_alias
746 ac_cv_env_build_alias_set=${build_alias+set}
747 ac_cv_env_build_alias_value=$build_alias
748 ac_env_host_alias_set=${host_alias+set}
749 ac_env_host_alias_value=$host_alias
750 ac_cv_env_host_alias_set=${host_alias+set}
751 ac_cv_env_host_alias_value=$host_alias
752 ac_env_target_alias_set=${target_alias+set}
753 ac_env_target_alias_value=$target_alias
754 ac_cv_env_target_alias_set=${target_alias+set}
755 ac_cv_env_target_alias_value=$target_alias
756 ac_env_CC_set=${CC+set}
757 ac_env_CC_value=$CC
758 ac_cv_env_CC_set=${CC+set}
759 ac_cv_env_CC_value=$CC
760 ac_env_CFLAGS_set=${CFLAGS+set}
761 ac_env_CFLAGS_value=$CFLAGS
762 ac_cv_env_CFLAGS_set=${CFLAGS+set}
763 ac_cv_env_CFLAGS_value=$CFLAGS
764 ac_env_LDFLAGS_set=${LDFLAGS+set}
765 ac_env_LDFLAGS_value=$LDFLAGS
766 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
767 ac_cv_env_LDFLAGS_value=$LDFLAGS
768 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_env_CPPFLAGS_value=$CPPFLAGS
770 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
771 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
772 ac_env_CPP_set=${CPP+set}
773 ac_env_CPP_value=$CPP
774 ac_cv_env_CPP_set=${CPP+set}
775 ac_cv_env_CPP_value=$CPP
776
777 #
778 # Report the --help message.
779 #
780 if test "$ac_init_help" = "long"; then
781 # Omit some internal or obsolete options to make the list less imposing.
782 # This message is too long to be a string in the A/UX 3.1 sh.
783 cat <<_ACEOF
784 \`configure' configures ffproxy 1.6 to adapt to many kinds of systems.
785
786 Usage: $0 [OPTION]... [VAR=VALUE]...
787
788 To assign environment variables (e.g., CC, CFLAGS...), specify them as
789 VAR=VALUE. See below for descriptions of some of the useful variables.
790
791 Defaults for the options are specified in brackets.
792
793 Configuration:
794 -h, --help display this help and exit
795 --help=short display options specific to this package
796 --help=recursive display the short help of all the included packages
797 -V, --version display version information and exit
798 -q, --quiet, --silent do not print \`checking...' messages
799 --cache-file=FILE cache test results in FILE [disabled]
800 -C, --config-cache alias for \`--cache-file=config.cache'
801 -n, --no-create do not create output files
802 --srcdir=DIR find the sources in DIR [configure dir or \`..']
803
804 _ACEOF
805
806 cat <<_ACEOF
807 Installation directories:
808 --prefix=PREFIX install architecture-independent files in PREFIX
809 [$ac_default_prefix]
810 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
811 [PREFIX]
812
813 By default, \`make install' will install all the files in
814 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
815 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
816 for instance \`--prefix=\$HOME'.
817
818 For better control, use the options below.
819
820 Fine tuning of the installation directories:
821 --bindir=DIR user executables [EPREFIX/bin]
822 --sbindir=DIR system admin executables [EPREFIX/sbin]
823 --libexecdir=DIR program executables [EPREFIX/libexec]
824 --datadir=DIR read-only architecture-independent data [PREFIX/share]
825 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
826 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
827 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
828 --libdir=DIR object code libraries [EPREFIX/lib]
829 --includedir=DIR C header files [PREFIX/include]
830 --oldincludedir=DIR C header files for non-gcc [/usr/include]
831 --infodir=DIR info documentation [PREFIX/info]
832 --mandir=DIR man documentation [PREFIX/man]
833 _ACEOF
834
835 cat <<\_ACEOF
836 _ACEOF
837 fi
838
839 if test -n "$ac_init_help"; then
840 case $ac_init_help in
841 short | recursive ) echo "Configuration of ffproxy 1.6:";;
842 esac
843 cat <<\_ACEOF
844
845 Some influential environment variables:
846 CC C compiler command
847 CFLAGS C compiler flags
848 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
849 nonstandard directory <lib dir>
850 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
851 headers in a nonstandard directory <include dir>
852 CPP C preprocessor
853
854 Use these variables to override the choices made by `configure' or to help
855 it to find libraries and programs with nonstandard names/locations.
856
857 Report bugs to <[email protected]>.
858 _ACEOF
859 fi
860
861 if test "$ac_init_help" = "recursive"; then
862 # If there are subdirs, report their specific --help.
863 ac_popdir=`pwd`
864 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
865 test -d $ac_dir || continue
866 ac_builddir=.
867
868 if test "$ac_dir" != .; then
869 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
870 # A "../" for each directory in $ac_dir_suffix.
871 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
872 else
873 ac_dir_suffix= ac_top_builddir=
874 fi
875
876 case $srcdir in
877 .) # No --srcdir option. We are building in place.
878 ac_srcdir=.
879 if test -z "$ac_top_builddir"; then
880 ac_top_srcdir=.
881 else
882 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
883 fi ;;
884 [\\/]* | ?:[\\/]* ) # Absolute path.
885 ac_srcdir=$srcdir$ac_dir_suffix;
886 ac_top_srcdir=$srcdir ;;
887 *) # Relative path.
888 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
889 ac_top_srcdir=$ac_top_builddir$srcdir ;;
890 esac
891
892 # Do not use `cd foo && pwd` to compute absolute paths, because
893 # the directories may not exist.
894 case `pwd` in
895 .) ac_abs_builddir="$ac_dir";;
896 *)
897 case "$ac_dir" in
898 .) ac_abs_builddir=`pwd`;;
899 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
900 *) ac_abs_builddir=`pwd`/"$ac_dir";;
901 esac;;
902 esac
903 case $ac_abs_builddir in
904 .) ac_abs_top_builddir=${ac_top_builddir}.;;
905 *)
906 case ${ac_top_builddir}. in
907 .) ac_abs_top_builddir=$ac_abs_builddir;;
908 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
909 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
910 esac;;
911 esac
912 case $ac_abs_builddir in
913 .) ac_abs_srcdir=$ac_srcdir;;
914 *)
915 case $ac_srcdir in
916 .) ac_abs_srcdir=$ac_abs_builddir;;
917 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
918 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
919 esac;;
920 esac
921 case $ac_abs_builddir in
922 .) ac_abs_top_srcdir=$ac_top_srcdir;;
923 *)
924 case $ac_top_srcdir in
925 .) ac_abs_top_srcdir=$ac_abs_builddir;;
926 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
927 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
928 esac;;
929 esac
930
931 cd $ac_dir
932 # Check for guested configure; otherwise get Cygnus style configure.
933 if test -f $ac_srcdir/configure.gnu; then
934 echo
935 $SHELL $ac_srcdir/configure.gnu --help=recursive
936 elif test -f $ac_srcdir/configure; then
937 echo
938 $SHELL $ac_srcdir/configure --help=recursive
939 elif test -f $ac_srcdir/configure.ac ||
940 test -f $ac_srcdir/configure.in; then
941 echo
942 $ac_configure --help
943 else
944 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
945 fi
946 cd $ac_popdir
947 done
948 fi
949
950 test -n "$ac_init_help" && exit 0
951 if $ac_init_version; then
952 cat <<\_ACEOF
953 ffproxy configure 1.6
954 generated by GNU Autoconf 2.59
955
956 Copyright (C) 2003 Free Software Foundation, Inc.
957 This configure script is free software; the Free Software Foundation
958 gives unlimited permission to copy, distribute and modify it.
959 _ACEOF
960 exit 0
961 fi
962 exec 5>config.log
963 cat >&5 <<_ACEOF
964 This file contains any messages produced by compilers while
965 running configure, to aid debugging if configure makes a mistake.
966
967 It was created by ffproxy $as_me 1.6, which was
968 generated by GNU Autoconf 2.59. Invocation command line was
969
970 $ $0 $@
971
972 _ACEOF
973 {
974 cat <<_ASUNAME
975 ## --------- ##
976 ## Platform. ##
977 ## --------- ##
978
979 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
980 uname -m = `(uname -m) 2>/dev/null || echo unknown`
981 uname -r = `(uname -r) 2>/dev/null || echo unknown`
982 uname -s = `(uname -s) 2>/dev/null || echo unknown`
983 uname -v = `(uname -v) 2>/dev/null || echo unknown`
984
985 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
986 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
987
988 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
989 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
990 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
991 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
992 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
993 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
994 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
995
996 _ASUNAME
997
998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
999 for as_dir in $PATH
1000 do
1001 IFS=$as_save_IFS
1002 test -z "$as_dir" && as_dir=.
1003 echo "PATH: $as_dir"
1004 done
1005
1006 } >&5
1007
1008 cat >&5 <<_ACEOF
1009
1010
1011 ## ----------- ##
1012 ## Core tests. ##
1013 ## ----------- ##
1014
1015 _ACEOF
1016
1017
1018 # Keep a trace of the command line.
1019 # Strip out --no-create and --no-recursion so they do not pile up.
1020 # Strip out --silent because we don't want to record it for future runs.
1021 # Also quote any args containing shell meta-characters.
1022 # Make two passes to allow for proper duplicate-argument suppression.
1023 ac_configure_args=
1024 ac_configure_args0=
1025 ac_configure_args1=
1026 ac_sep=
1027 ac_must_keep_next=false
1028 for ac_pass in 1 2
1029 do
1030 for ac_arg
1031 do
1032 case $ac_arg in
1033 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1034 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1035 | -silent | --silent | --silen | --sile | --sil)
1036 continue ;;
1037 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1038 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1039 esac
1040 case $ac_pass in
1041 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1042 2)
1043 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1044 if test $ac_must_keep_next = true; then
1045 ac_must_keep_next=false # Got value, back to normal.
1046 else
1047 case $ac_arg in
1048 *=* | --config-cache | -C | -disable-* | --disable-* \
1049 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1050 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1051 | -with-* | --with-* | -without-* | --without-* | --x)
1052 case "$ac_configure_args0 " in
1053 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1054 esac
1055 ;;
1056 -* ) ac_must_keep_next=true ;;
1057 esac
1058 fi
1059 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1060 # Get rid of the leading space.
1061 ac_sep=" "
1062 ;;
1063 esac
1064 done
1065 done
1066 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1067 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1068
1069 # When interrupted or exit'd, cleanup temporary files, and complete
1070 # config.log. We remove comments because anyway the quotes in there
1071 # would cause problems or look ugly.
1072 # WARNING: Be sure not to use single quotes in there, as some shells,
1073 # such as our DU 5.0 friend, will then `close' the trap.
1074 trap 'exit_status=$?
1075 # Save into config.log some information that might help in debugging.
1076 {
1077 echo
1078
1079 cat <<\_ASBOX
1080 ## ---------------- ##
1081 ## Cache variables. ##
1082 ## ---------------- ##
1083 _ASBOX
1084 echo
1085 # The following way of writing the cache mishandles newlines in values,
1086 {
1087 (set) 2>&1 |
1088 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1089 *ac_space=\ *)
1090 sed -n \
1091 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1092 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1093 ;;
1094 *)
1095 sed -n \
1096 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1097 ;;
1098 esac;
1099 }
1100 echo
1101
1102 cat <<\_ASBOX
1103 ## ----------------- ##
1104 ## Output variables. ##
1105 ## ----------------- ##
1106 _ASBOX
1107 echo
1108 for ac_var in $ac_subst_vars
1109 do
1110 eval ac_val=$`echo $ac_var`
1111 echo "$ac_var='"'"'$ac_val'"'"'"
1112 done | sort
1113 echo
1114
1115 if test -n "$ac_subst_files"; then
1116 cat <<\_ASBOX
1117 ## ------------- ##
1118 ## Output files. ##
1119 ## ------------- ##
1120 _ASBOX
1121 echo
1122 for ac_var in $ac_subst_files
1123 do
1124 eval ac_val=$`echo $ac_var`
1125 echo "$ac_var='"'"'$ac_val'"'"'"
1126 done | sort
1127 echo
1128 fi
1129
1130 if test -s confdefs.h; then
1131 cat <<\_ASBOX
1132 ## ----------- ##
1133 ## confdefs.h. ##
1134 ## ----------- ##
1135 _ASBOX
1136 echo
1137 sed "/^$/d" confdefs.h | sort
1138 echo
1139 fi
1140 test "$ac_signal" != 0 &&
1141 echo "$as_me: caught signal $ac_signal"
1142 echo "$as_me: exit $exit_status"
1143 } >&5
1144 rm -f core *.core &&
1145 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1146 exit $exit_status
1147 ' 0
1148 for ac_signal in 1 2 13 15; do
1149 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1150 done
1151 ac_signal=0
1152
1153 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1154 rm -rf conftest* confdefs.h
1155 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1156 echo >confdefs.h
1157
1158 # Predefined preprocessor variables.
1159
1160 cat >>confdefs.h <<_ACEOF
1161 #define PACKAGE_NAME "$PACKAGE_NAME"
1162 _ACEOF
1163
1164
1165 cat >>confdefs.h <<_ACEOF
1166 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1167 _ACEOF
1168
1169
1170 cat >>confdefs.h <<_ACEOF
1171 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1172 _ACEOF
1173
1174
1175 cat >>confdefs.h <<_ACEOF
1176 #define PACKAGE_STRING "$PACKAGE_STRING"
1177 _ACEOF
1178
1179
1180 cat >>confdefs.h <<_ACEOF
1181 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1182 _ACEOF
1183
1184
1185 # Let the site file select an alternate cache file if it wants to.
1186 # Prefer explicitly selected file to automatically selected ones.
1187 if test -z "$CONFIG_SITE"; then
1188 if test "x$prefix" != xNONE; then
1189 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1190 else
1191 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1192 fi
1193 fi
1194 for ac_site_file in $CONFIG_SITE; do
1195 if test -r "$ac_site_file"; then
1196 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1197 echo "$as_me: loading site script $ac_site_file" >&6;}
1198 sed 's/^/| /' "$ac_site_file" >&5
1199 . "$ac_site_file"
1200 fi
1201 done
1202
1203 if test -r "$cache_file"; then
1204 # Some versions of bash will fail to source /dev/null (special
1205 # files actually), so we avoid doing that.
1206 if test -f "$cache_file"; then
1207 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1208 echo "$as_me: loading cache $cache_file" >&6;}
1209 case $cache_file in
1210 [\\/]* | ?:[\\/]* ) . $cache_file;;
1211 *) . ./$cache_file;;
1212 esac
1213 fi
1214 else
1215 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1216 echo "$as_me: creating cache $cache_file" >&6;}
1217 >$cache_file
1218 fi
1219
1220 # Check that the precious variables saved in the cache have kept the same
1221 # value.
1222 ac_cache_corrupted=false
1223 for ac_var in `(set) 2>&1 |
1224 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1225 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1226 eval ac_new_set=\$ac_env_${ac_var}_set
1227 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1228 eval ac_new_val="\$ac_env_${ac_var}_value"
1229 case $ac_old_set,$ac_new_set in
1230 set,)
1231 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1232 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1233 ac_cache_corrupted=: ;;
1234 ,set)
1235 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1236 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1237 ac_cache_corrupted=: ;;
1238 ,);;
1239 *)
1240 if test "x$ac_old_val" != "x$ac_new_val"; then
1241 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1242 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1243 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1244 echo "$as_me: former value: $ac_old_val" >&2;}
1245 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1246 echo "$as_me: current value: $ac_new_val" >&2;}
1247 ac_cache_corrupted=:
1248 fi;;
1249 esac
1250 # Pass precious variables to config.status.
1251 if test "$ac_new_set" = set; then
1252 case $ac_new_val in
1253 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1254 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1255 *) ac_arg=$ac_var=$ac_new_val ;;
1256 esac
1257 case " $ac_configure_args " in
1258 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1259 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1260 esac
1261 fi
1262 done
1263 if $ac_cache_corrupted; then
1264 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1265 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1266 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1267 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1268 { (exit 1); exit 1; }; }
1269 fi
1270
1271 ac_ext=c
1272 ac_cpp='$CPP $CPPFLAGS'
1273 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1274 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1275 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305 ac_config_headers="$ac_config_headers configure.h"
1306
1307
1308 # Checks for programs.
1309 ac_ext=c
1310 ac_cpp='$CPP $CPPFLAGS'
1311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1314 if test -n "$ac_tool_prefix"; then
1315 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1316 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1317 echo "$as_me:$LINENO: checking for $ac_word" >&5
1318 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1319 if test "${ac_cv_prog_CC+set}" = set; then
1320 echo $ECHO_N "(cached) $ECHO_C" >&6
1321 else
1322 if test -n "$CC"; then
1323 ac_cv_prog_CC="$CC" # Let the user override the test.
1324 else
1325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1326 for as_dir in $PATH
1327 do
1328 IFS=$as_save_IFS
1329 test -z "$as_dir" && as_dir=.
1330 for ac_exec_ext in '' $ac_executable_extensions; do
1331 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1332 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1334 break 2
1335 fi
1336 done
1337 done
1338
1339 fi
1340 fi
1341 CC=$ac_cv_prog_CC
1342 if test -n "$CC"; then
1343 echo "$as_me:$LINENO: result: $CC" >&5
1344 echo "${ECHO_T}$CC" >&6
1345 else
1346 echo "$as_me:$LINENO: result: no" >&5
1347 echo "${ECHO_T}no" >&6
1348 fi
1349
1350 fi
1351 if test -z "$ac_cv_prog_CC"; then
1352 ac_ct_CC=$CC
1353 # Extract the first word of "gcc", so it can be a program name with args.
1354 set dummy gcc; ac_word=$2
1355 echo "$as_me:$LINENO: checking for $ac_word" >&5
1356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1357 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1358 echo $ECHO_N "(cached) $ECHO_C" >&6
1359 else
1360 if test -n "$ac_ct_CC"; then
1361 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1362 else
1363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1364 for as_dir in $PATH
1365 do
1366 IFS=$as_save_IFS
1367 test -z "$as_dir" && as_dir=.
1368 for ac_exec_ext in '' $ac_executable_extensions; do
1369 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1370 ac_cv_prog_ac_ct_CC="gcc"
1371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1372 break 2
1373 fi
1374 done
1375 done
1376
1377 fi
1378 fi
1379 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1380 if test -n "$ac_ct_CC"; then
1381 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1382 echo "${ECHO_T}$ac_ct_CC" >&6
1383 else
1384 echo "$as_me:$LINENO: result: no" >&5
1385 echo "${ECHO_T}no" >&6
1386 fi
1387
1388 CC=$ac_ct_CC
1389 else
1390 CC="$ac_cv_prog_CC"
1391 fi
1392
1393 if test -z "$CC"; then
1394 if test -n "$ac_tool_prefix"; then
1395 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1396 set dummy ${ac_tool_prefix}cc; ac_word=$2
1397 echo "$as_me:$LINENO: checking for $ac_word" >&5
1398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1399 if test "${ac_cv_prog_CC+set}" = set; then
1400 echo $ECHO_N "(cached) $ECHO_C" >&6
1401 else
1402 if test -n "$CC"; then
1403 ac_cv_prog_CC="$CC" # Let the user override the test.
1404 else
1405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1406 for as_dir in $PATH
1407 do
1408 IFS=$as_save_IFS
1409 test -z "$as_dir" && as_dir=.
1410 for ac_exec_ext in '' $ac_executable_extensions; do
1411 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1412 ac_cv_prog_CC="${ac_tool_prefix}cc"
1413 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1414 break 2
1415 fi
1416 done
1417 done
1418
1419 fi
1420 fi
1421 CC=$ac_cv_prog_CC
1422 if test -n "$CC"; then
1423 echo "$as_me:$LINENO: result: $CC" >&5
1424 echo "${ECHO_T}$CC" >&6
1425 else
1426 echo "$as_me:$LINENO: result: no" >&5
1427 echo "${ECHO_T}no" >&6
1428 fi
1429
1430 fi
1431 if test -z "$ac_cv_prog_CC"; then
1432 ac_ct_CC=$CC
1433 # Extract the first word of "cc", so it can be a program name with args.
1434 set dummy cc; ac_word=$2
1435 echo "$as_me:$LINENO: checking for $ac_word" >&5
1436 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1437 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1438 echo $ECHO_N "(cached) $ECHO_C" >&6
1439 else
1440 if test -n "$ac_ct_CC"; then
1441 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1442 else
1443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1444 for as_dir in $PATH
1445 do
1446 IFS=$as_save_IFS
1447 test -z "$as_dir" && as_dir=.
1448 for ac_exec_ext in '' $ac_executable_extensions; do
1449 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1450 ac_cv_prog_ac_ct_CC="cc"
1451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1452 break 2
1453 fi
1454 done
1455 done
1456
1457 fi
1458 fi
1459 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1460 if test -n "$ac_ct_CC"; then
1461 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1462 echo "${ECHO_T}$ac_ct_CC" >&6
1463 else
1464 echo "$as_me:$LINENO: result: no" >&5
1465 echo "${ECHO_T}no" >&6
1466 fi
1467
1468 CC=$ac_ct_CC
1469 else
1470 CC="$ac_cv_prog_CC"
1471 fi
1472
1473 fi
1474 if test -z "$CC"; then
1475 # Extract the first word of "cc", so it can be a program name with args.
1476 set dummy cc; ac_word=$2
1477 echo "$as_me:$LINENO: checking for $ac_word" >&5
1478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1479 if test "${ac_cv_prog_CC+set}" = set; then
1480 echo $ECHO_N "(cached) $ECHO_C" >&6
1481 else
1482 if test -n "$CC"; then
1483 ac_cv_prog_CC="$CC" # Let the user override the test.
1484 else
1485 ac_prog_rejected=no
1486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1487 for as_dir in $PATH
1488 do
1489 IFS=$as_save_IFS
1490 test -z "$as_dir" && as_dir=.
1491 for ac_exec_ext in '' $ac_executable_extensions; do
1492 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1493 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1494 ac_prog_rejected=yes
1495 continue
1496 fi
1497 ac_cv_prog_CC="cc"
1498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1499 break 2
1500 fi
1501 done
1502 done
1503
1504 if test $ac_prog_rejected = yes; then
1505 # We found a bogon in the path, so make sure we never use it.
1506 set dummy $ac_cv_prog_CC
1507 shift
1508 if test $# != 0; then
1509 # We chose a different compiler from the bogus one.
1510 # However, it has the same basename, so the bogon will be chosen
1511 # first if we set CC to just the basename; use the full file name.
1512 shift
1513 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1514 fi
1515 fi
1516 fi
1517 fi
1518 CC=$ac_cv_prog_CC
1519 if test -n "$CC"; then
1520 echo "$as_me:$LINENO: result: $CC" >&5
1521 echo "${ECHO_T}$CC" >&6
1522 else
1523 echo "$as_me:$LINENO: result: no" >&5
1524 echo "${ECHO_T}no" >&6
1525 fi
1526
1527 fi
1528 if test -z "$CC"; then
1529 if test -n "$ac_tool_prefix"; then
1530 for ac_prog in cl
1531 do
1532 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1533 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1534 echo "$as_me:$LINENO: checking for $ac_word" >&5
1535 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1536 if test "${ac_cv_prog_CC+set}" = set; then
1537 echo $ECHO_N "(cached) $ECHO_C" >&6
1538 else
1539 if test -n "$CC"; then
1540 ac_cv_prog_CC="$CC" # Let the user override the test.
1541 else
1542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1543 for as_dir in $PATH
1544 do
1545 IFS=$as_save_IFS
1546 test -z "$as_dir" && as_dir=.
1547 for ac_exec_ext in '' $ac_executable_extensions; do
1548 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1549 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1550 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1551 break 2
1552 fi
1553 done
1554 done
1555
1556 fi
1557 fi
1558 CC=$ac_cv_prog_CC
1559 if test -n "$CC"; then
1560 echo "$as_me:$LINENO: result: $CC" >&5
1561 echo "${ECHO_T}$CC" >&6
1562 else
1563 echo "$as_me:$LINENO: result: no" >&5
1564 echo "${ECHO_T}no" >&6
1565 fi
1566
1567 test -n "$CC" && break
1568 done
1569 fi
1570 if test -z "$CC"; then
1571 ac_ct_CC=$CC
1572 for ac_prog in cl
1573 do
1574 # Extract the first word of "$ac_prog", so it can be a program name with args.
1575 set dummy $ac_prog; ac_word=$2
1576 echo "$as_me:$LINENO: checking for $ac_word" >&5
1577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1578 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1579 echo $ECHO_N "(cached) $ECHO_C" >&6
1580 else
1581 if test -n "$ac_ct_CC"; then
1582 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1583 else
1584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1585 for as_dir in $PATH
1586 do
1587 IFS=$as_save_IFS
1588 test -z "$as_dir" && as_dir=.
1589 for ac_exec_ext in '' $ac_executable_extensions; do
1590 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1591 ac_cv_prog_ac_ct_CC="$ac_prog"
1592 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1593 break 2
1594 fi
1595 done
1596 done
1597
1598 fi
1599 fi
1600 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1601 if test -n "$ac_ct_CC"; then
1602 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1603 echo "${ECHO_T}$ac_ct_CC" >&6
1604 else
1605 echo "$as_me:$LINENO: result: no" >&5
1606 echo "${ECHO_T}no" >&6
1607 fi
1608
1609 test -n "$ac_ct_CC" && break
1610 done
1611
1612 CC=$ac_ct_CC
1613 fi
1614
1615 fi
1616
1617
1618 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1619 See \`config.log' for more details." >&5
1620 echo "$as_me: error: no acceptable C compiler found in \$PATH
1621 See \`config.log' for more details." >&2;}
1622 { (exit 1); exit 1; }; }
1623
1624 # Provide some information about the compiler.
1625 echo "$as_me:$LINENO:" \
1626 "checking for C compiler version" >&5
1627 ac_compiler=`set X $ac_compile; echo $2`
1628 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1629 (eval $ac_compiler --version </dev/null >&5) 2>&5
1630 ac_status=$?
1631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1632 (exit $ac_status); }
1633 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1634 (eval $ac_compiler -v </dev/null >&5) 2>&5
1635 ac_status=$?
1636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1637 (exit $ac_status); }
1638 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1639 (eval $ac_compiler -V </dev/null >&5) 2>&5
1640 ac_status=$?
1641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1642 (exit $ac_status); }
1643
1644 cat >conftest.$ac_ext <<_ACEOF
1645 /* confdefs.h. */
1646 _ACEOF
1647 cat confdefs.h >>conftest.$ac_ext
1648 cat >>conftest.$ac_ext <<_ACEOF
1649 /* end confdefs.h. */
1650
1651 int
1652 main ()
1653 {
1654
1655 ;
1656 return 0;
1657 }
1658 _ACEOF
1659 ac_clean_files_save=$ac_clean_files
1660 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1661 # Try to create an executable without -o first, disregard a.out.
1662 # It will help us diagnose broken compilers, and finding out an intuition
1663 # of exeext.
1664 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1665 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1666 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1667 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1668 (eval $ac_link_default) 2>&5
1669 ac_status=$?
1670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1671 (exit $ac_status); }; then
1672 # Find the output, starting from the most likely. This scheme is
1673 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1674 # resort.
1675
1676 # Be careful to initialize this variable, since it used to be cached.
1677 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1678 ac_cv_exeext=
1679 # b.out is created by i960 compilers.
1680 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1681 do
1682 test -f "$ac_file" || continue
1683 case $ac_file in
1684 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1685 ;;
1686 conftest.$ac_ext )
1687 # This is the source file.
1688 ;;
1689 [ab].out )
1690 # We found the default executable, but exeext='' is most
1691 # certainly right.
1692 break;;
1693 *.* )
1694 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1695 # FIXME: I believe we export ac_cv_exeext for Libtool,
1696 # but it would be cool to find out if it's true. Does anybody
1697 # maintain Libtool? --akim.
1698 export ac_cv_exeext
1699 break;;
1700 * )
1701 break;;
1702 esac
1703 done
1704 else
1705 echo "$as_me: failed program was:" >&5
1706 sed 's/^/| /' conftest.$ac_ext >&5
1707
1708 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1709 See \`config.log' for more details." >&5
1710 echo "$as_me: error: C compiler cannot create executables
1711 See \`config.log' for more details." >&2;}
1712 { (exit 77); exit 77; }; }
1713 fi
1714
1715 ac_exeext=$ac_cv_exeext
1716 echo "$as_me:$LINENO: result: $ac_file" >&5
1717 echo "${ECHO_T}$ac_file" >&6
1718
1719 # Check the compiler produces executables we can run. If not, either
1720 # the compiler is broken, or we cross compile.
1721 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1722 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1723 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1724 # If not cross compiling, check that we can run a simple program.
1725 if test "$cross_compiling" != yes; then
1726 if { ac_try='./$ac_file'
1727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1728 (eval $ac_try) 2>&5
1729 ac_status=$?
1730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1731 (exit $ac_status); }; }; then
1732 cross_compiling=no
1733 else
1734 if test "$cross_compiling" = maybe; then
1735 cross_compiling=yes
1736 else
1737 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1738 If you meant to cross compile, use \`--host'.
1739 See \`config.log' for more details." >&5
1740 echo "$as_me: error: cannot run C compiled programs.
1741 If you meant to cross compile, use \`--host'.
1742 See \`config.log' for more details." >&2;}
1743 { (exit 1); exit 1; }; }
1744 fi
1745 fi
1746 fi
1747 echo "$as_me:$LINENO: result: yes" >&5
1748 echo "${ECHO_T}yes" >&6
1749
1750 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1751 ac_clean_files=$ac_clean_files_save
1752 # Check the compiler produces executables we can run. If not, either
1753 # the compiler is broken, or we cross compile.
1754 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1755 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1756 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1757 echo "${ECHO_T}$cross_compiling" >&6
1758
1759 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1760 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1762 (eval $ac_link) 2>&5
1763 ac_status=$?
1764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1765 (exit $ac_status); }; then
1766 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1767 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1768 # work properly (i.e., refer to `conftest.exe'), while it won't with
1769 # `rm'.
1770 for ac_file in conftest.exe conftest conftest.*; do
1771 test -f "$ac_file" || continue
1772 case $ac_file in
1773 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1774 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1775 export ac_cv_exeext
1776 break;;
1777 * ) break;;
1778 esac
1779 done
1780 else
1781 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1782 See \`config.log' for more details." >&5
1783 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1784 See \`config.log' for more details." >&2;}
1785 { (exit 1); exit 1; }; }
1786 fi
1787
1788 rm -f conftest$ac_cv_exeext
1789 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1790 echo "${ECHO_T}$ac_cv_exeext" >&6
1791
1792 rm -f conftest.$ac_ext
1793 EXEEXT=$ac_cv_exeext
1794 ac_exeext=$EXEEXT
1795 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1796 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1797 if test "${ac_cv_objext+set}" = set; then
1798 echo $ECHO_N "(cached) $ECHO_C" >&6
1799 else
1800 cat >conftest.$ac_ext <<_ACEOF
1801 /* confdefs.h. */
1802 _ACEOF
1803 cat confdefs.h >>conftest.$ac_ext
1804 cat >>conftest.$ac_ext <<_ACEOF
1805 /* end confdefs.h. */
1806
1807 int
1808 main ()
1809 {
1810
1811 ;
1812 return 0;
1813 }
1814 _ACEOF
1815 rm -f conftest.o conftest.obj
1816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1817 (eval $ac_compile) 2>&5
1818 ac_status=$?
1819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1820 (exit $ac_status); }; then
1821 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1822 case $ac_file in
1823 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1824 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1825 break;;
1826 esac
1827 done
1828 else
1829 echo "$as_me: failed program was:" >&5
1830 sed 's/^/| /' conftest.$ac_ext >&5
1831
1832 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1833 See \`config.log' for more details." >&5
1834 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1835 See \`config.log' for more details." >&2;}
1836 { (exit 1); exit 1; }; }
1837 fi
1838
1839 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1840 fi
1841 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1842 echo "${ECHO_T}$ac_cv_objext" >&6
1843 OBJEXT=$ac_cv_objext
1844 ac_objext=$OBJEXT
1845 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1846 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1847 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1848 echo $ECHO_N "(cached) $ECHO_C" >&6
1849 else
1850 cat >conftest.$ac_ext <<_ACEOF
1851 /* confdefs.h. */
1852 _ACEOF
1853 cat confdefs.h >>conftest.$ac_ext
1854 cat >>conftest.$ac_ext <<_ACEOF
1855 /* end confdefs.h. */
1856
1857 int
1858 main ()
1859 {
1860 #ifndef __GNUC__
1861 choke me
1862 #endif
1863
1864 ;
1865 return 0;
1866 }
1867 _ACEOF
1868 rm -f conftest.$ac_objext
1869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1870 (eval $ac_compile) 2>conftest.er1
1871 ac_status=$?
1872 grep -v '^ *+' conftest.er1 >conftest.err
1873 rm -f conftest.er1
1874 cat conftest.err >&5
1875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1876 (exit $ac_status); } &&
1877 { ac_try='test -z "$ac_c_werror_flag"
1878 || test ! -s conftest.err'
1879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1880 (eval $ac_try) 2>&5
1881 ac_status=$?
1882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1883 (exit $ac_status); }; } &&
1884 { ac_try='test -s conftest.$ac_objext'
1885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1886 (eval $ac_try) 2>&5
1887 ac_status=$?
1888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1889 (exit $ac_status); }; }; then
1890 ac_compiler_gnu=yes
1891 else
1892 echo "$as_me: failed program was:" >&5
1893 sed 's/^/| /' conftest.$ac_ext >&5
1894
1895 ac_compiler_gnu=no
1896 fi
1897 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1898 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1899
1900 fi
1901 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1902 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1903 GCC=`test $ac_compiler_gnu = yes && echo yes`
1904 ac_test_CFLAGS=${CFLAGS+set}
1905 ac_save_CFLAGS=$CFLAGS
1906 CFLAGS="-g"
1907 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1908 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1909 if test "${ac_cv_prog_cc_g+set}" = set; then
1910 echo $ECHO_N "(cached) $ECHO_C" >&6
1911 else
1912 cat >conftest.$ac_ext <<_ACEOF
1913 /* confdefs.h. */
1914 _ACEOF
1915 cat confdefs.h >>conftest.$ac_ext
1916 cat >>conftest.$ac_ext <<_ACEOF
1917 /* end confdefs.h. */
1918
1919 int
1920 main ()
1921 {
1922
1923 ;
1924 return 0;
1925 }
1926 _ACEOF
1927 rm -f conftest.$ac_objext
1928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1929 (eval $ac_compile) 2>conftest.er1
1930 ac_status=$?
1931 grep -v '^ *+' conftest.er1 >conftest.err
1932 rm -f conftest.er1
1933 cat conftest.err >&5
1934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1935 (exit $ac_status); } &&
1936 { ac_try='test -z "$ac_c_werror_flag"
1937 || test ! -s conftest.err'
1938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1939 (eval $ac_try) 2>&5
1940 ac_status=$?
1941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1942 (exit $ac_status); }; } &&
1943 { ac_try='test -s conftest.$ac_objext'
1944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1945 (eval $ac_try) 2>&5
1946 ac_status=$?
1947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1948 (exit $ac_status); }; }; then
1949 ac_cv_prog_cc_g=yes
1950 else
1951 echo "$as_me: failed program was:" >&5
1952 sed 's/^/| /' conftest.$ac_ext >&5
1953
1954 ac_cv_prog_cc_g=no
1955 fi
1956 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1957 fi
1958 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1959 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1960 if test "$ac_test_CFLAGS" = set; then
1961 CFLAGS=$ac_save_CFLAGS
1962 elif test $ac_cv_prog_cc_g = yes; then
1963 if test "$GCC" = yes; then
1964 CFLAGS="-g -O2"
1965 else
1966 CFLAGS="-g"
1967 fi
1968 else
1969 if test "$GCC" = yes; then
1970 CFLAGS="-O2"
1971 else
1972 CFLAGS=
1973 fi
1974 fi
1975 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1976 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1977 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1978 echo $ECHO_N "(cached) $ECHO_C" >&6
1979 else
1980 ac_cv_prog_cc_stdc=no
1981 ac_save_CC=$CC
1982 cat >conftest.$ac_ext <<_ACEOF
1983 /* confdefs.h. */
1984 _ACEOF
1985 cat confdefs.h >>conftest.$ac_ext
1986 cat >>conftest.$ac_ext <<_ACEOF
1987 /* end confdefs.h. */
1988 #include <stdarg.h>
1989 #include <stdio.h>
1990 #include <sys/types.h>
1991 #include <sys/stat.h>
1992 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1993 struct buf { int x; };
1994 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1995 static char *e (p, i)
1996 char **p;
1997 int i;
1998 {
1999 return p[i];
2000 }
2001 static char *f (char * (*g) (char **, int), char **p, ...)
2002 {
2003 char *s;
2004 va_list v;
2005 va_start (v,p);
2006 s = g (p, va_arg (v,int));
2007 va_end (v);
2008 return s;
2009 }
2010
2011 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2012 function prototypes and stuff, but not '\xHH' hex character constants.
2013 These don't provoke an error unfortunately, instead are silently treated
2014 as 'x'. The following induces an error, until -std1 is added to get
2015 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2016 array size at least. It's necessary to write '\x00'==0 to get something
2017 that's true only with -std1. */
2018 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2019
2020 int test (int i, double x);
2021 struct s1 {int (*f) (int a);};
2022 struct s2 {int (*f) (double a);};
2023 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2024 int argc;
2025 char **argv;
2026 int
2027 main ()
2028 {
2029 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2030 ;
2031 return 0;
2032 }
2033 _ACEOF
2034 # Don't try gcc -ansi; that turns off useful extensions and
2035 # breaks some systems' header files.
2036 # AIX -qlanglvl=ansi
2037 # Ultrix and OSF/1 -std1
2038 # HP-UX 10.20 and later -Ae
2039 # HP-UX older versions -Aa -D_HPUX_SOURCE
2040 # SVR4 -Xc -D__EXTENSIONS__
2041 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2042 do
2043 CC="$ac_save_CC $ac_arg"
2044 rm -f conftest.$ac_objext
2045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2046 (eval $ac_compile) 2>conftest.er1
2047 ac_status=$?
2048 grep -v '^ *+' conftest.er1 >conftest.err
2049 rm -f conftest.er1
2050 cat conftest.err >&5
2051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2052 (exit $ac_status); } &&
2053 { ac_try='test -z "$ac_c_werror_flag"
2054 || test ! -s conftest.err'
2055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2056 (eval $ac_try) 2>&5
2057 ac_status=$?
2058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2059 (exit $ac_status); }; } &&
2060 { ac_try='test -s conftest.$ac_objext'
2061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2062 (eval $ac_try) 2>&5
2063 ac_status=$?
2064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2065 (exit $ac_status); }; }; then
2066 ac_cv_prog_cc_stdc=$ac_arg
2067 break
2068 else
2069 echo "$as_me: failed program was:" >&5
2070 sed 's/^/| /' conftest.$ac_ext >&5
2071
2072 fi
2073 rm -f conftest.err conftest.$ac_objext
2074 done
2075 rm -f conftest.$ac_ext conftest.$ac_objext
2076 CC=$ac_save_CC
2077
2078 fi
2079
2080 case "x$ac_cv_prog_cc_stdc" in
2081 x|xno)
2082 echo "$as_me:$LINENO: result: none needed" >&5
2083 echo "${ECHO_T}none needed" >&6 ;;
2084 *)
2085 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2086 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2087 CC="$CC $ac_cv_prog_cc_stdc" ;;
2088 esac
2089
2090 # Some people use a C++ compiler to compile C. Since we use `exit',
2091 # in C++ we need to declare it. In case someone uses the same compiler
2092 # for both compiling C and C++ we need to have the C++ compiler decide
2093 # the declaration of exit, since it's the most demanding environment.
2094 cat >conftest.$ac_ext <<_ACEOF
2095 #ifndef __cplusplus
2096 choke me
2097 #endif
2098 _ACEOF
2099 rm -f conftest.$ac_objext
2100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2101 (eval $ac_compile) 2>conftest.er1
2102 ac_status=$?
2103 grep -v '^ *+' conftest.er1 >conftest.err
2104 rm -f conftest.er1
2105 cat conftest.err >&5
2106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2107 (exit $ac_status); } &&
2108 { ac_try='test -z "$ac_c_werror_flag"
2109 || test ! -s conftest.err'
2110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2111 (eval $ac_try) 2>&5
2112 ac_status=$?
2113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2114 (exit $ac_status); }; } &&
2115 { ac_try='test -s conftest.$ac_objext'
2116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2117 (eval $ac_try) 2>&5
2118 ac_status=$?
2119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2120 (exit $ac_status); }; }; then
2121 for ac_declaration in \
2122 '' \
2123 'extern "C" void std::exit (int) throw (); using std::exit;' \
2124 'extern "C" void std::exit (int); using std::exit;' \
2125 'extern "C" void exit (int) throw ();' \
2126 'extern "C" void exit (int);' \
2127 'void exit (int);'
2128 do
2129 cat >conftest.$ac_ext <<_ACEOF
2130 /* confdefs.h. */
2131 _ACEOF
2132 cat confdefs.h >>conftest.$ac_ext
2133 cat >>conftest.$ac_ext <<_ACEOF
2134 /* end confdefs.h. */
2135 $ac_declaration
2136 #include <stdlib.h>
2137 int
2138 main ()
2139 {
2140 exit (42);
2141 ;
2142 return 0;
2143 }
2144 _ACEOF
2145 rm -f conftest.$ac_objext
2146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2147 (eval $ac_compile) 2>conftest.er1
2148 ac_status=$?
2149 grep -v '^ *+' conftest.er1 >conftest.err
2150 rm -f conftest.er1
2151 cat conftest.err >&5
2152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2153 (exit $ac_status); } &&
2154 { ac_try='test -z "$ac_c_werror_flag"
2155 || test ! -s conftest.err'
2156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2157 (eval $ac_try) 2>&5
2158 ac_status=$?
2159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2160 (exit $ac_status); }; } &&
2161 { ac_try='test -s conftest.$ac_objext'
2162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2163 (eval $ac_try) 2>&5
2164 ac_status=$?
2165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2166 (exit $ac_status); }; }; then
2167 :
2168 else
2169 echo "$as_me: failed program was:" >&5
2170 sed 's/^/| /' conftest.$ac_ext >&5
2171
2172 continue
2173 fi
2174 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2175 cat >conftest.$ac_ext <<_ACEOF
2176 /* confdefs.h. */
2177 _ACEOF
2178 cat confdefs.h >>conftest.$ac_ext
2179 cat >>conftest.$ac_ext <<_ACEOF
2180 /* end confdefs.h. */
2181 $ac_declaration
2182 int
2183 main ()
2184 {
2185 exit (42);
2186 ;
2187 return 0;
2188 }
2189 _ACEOF
2190 rm -f conftest.$ac_objext
2191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2192 (eval $ac_compile) 2>conftest.er1
2193 ac_status=$?
2194 grep -v '^ *+' conftest.er1 >conftest.err
2195 rm -f conftest.er1
2196 cat conftest.err >&5
2197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2198 (exit $ac_status); } &&
2199 { ac_try='test -z "$ac_c_werror_flag"
2200 || test ! -s conftest.err'
2201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2202 (eval $ac_try) 2>&5
2203 ac_status=$?
2204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2205 (exit $ac_status); }; } &&
2206 { ac_try='test -s conftest.$ac_objext'
2207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2208 (eval $ac_try) 2>&5
2209 ac_status=$?
2210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2211 (exit $ac_status); }; }; then
2212 break
2213 else
2214 echo "$as_me: failed program was:" >&5
2215 sed 's/^/| /' conftest.$ac_ext >&5
2216
2217 fi
2218 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2219 done
2220 rm -f conftest*
2221 if test -n "$ac_declaration"; then
2222 echo '#ifdef __cplusplus' >>confdefs.h
2223 echo $ac_declaration >>confdefs.h
2224 echo '#endif' >>confdefs.h
2225 fi
2226
2227 else
2228 echo "$as_me: failed program was:" >&5
2229 sed 's/^/| /' conftest.$ac_ext >&5
2230
2231 fi
2232 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2233 ac_ext=c
2234 ac_cpp='$CPP $CPPFLAGS'
2235 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2236 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2237 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2238
2239 ac_aux_dir=
2240 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2241 if test -f $ac_dir/install-sh; then
2242 ac_aux_dir=$ac_dir
2243 ac_install_sh="$ac_aux_dir/install-sh -c"
2244 break
2245 elif test -f $ac_dir/install.sh; then
2246 ac_aux_dir=$ac_dir
2247 ac_install_sh="$ac_aux_dir/install.sh -c"
2248 break
2249 elif test -f $ac_dir/shtool; then
2250 ac_aux_dir=$ac_dir
2251 ac_install_sh="$ac_aux_dir/shtool install -c"
2252 break
2253 fi
2254 done
2255 if test -z "$ac_aux_dir"; then
2256 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2257 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2258 { (exit 1); exit 1; }; }
2259 fi
2260 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2261 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2262 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2263
2264 # Find a good install program. We prefer a C program (faster),
2265 # so one script is as good as another. But avoid the broken or
2266 # incompatible versions:
2267 # SysV /etc/install, /usr/sbin/install
2268 # SunOS /usr/etc/install
2269 # IRIX /sbin/install
2270 # AIX /bin/install
2271 # AmigaOS /C/install, which installs bootblocks on floppy discs
2272 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2273 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2274 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2275 # OS/2's system install, which has a completely different semantic
2276 # ./install, which can be erroneously created by make from ./install.sh.
2277 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2278 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2279 if test -z "$INSTALL"; then
2280 if test "${ac_cv_path_install+set}" = set; then
2281 echo $ECHO_N "(cached) $ECHO_C" >&6
2282 else
2283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2284 for as_dir in $PATH
2285 do
2286 IFS=$as_save_IFS
2287 test -z "$as_dir" && as_dir=.
2288 # Account for people who put trailing slashes in PATH elements.
2289 case $as_dir/ in
2290 ./ | .// | /cC/* | \
2291 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2292 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2293 /usr/ucb/* ) ;;
2294 *)
2295 # OSF1 and SCO ODT 3.0 have their own names for install.
2296 # Don't use installbsd from OSF since it installs stuff as root
2297 # by default.
2298 for ac_prog in ginstall scoinst install; do
2299 for ac_exec_ext in '' $ac_executable_extensions; do
2300 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2301 if test $ac_prog = install &&
2302 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2303 # AIX install. It has an incompatible calling convention.
2304 :
2305 elif test $ac_prog = install &&
2306 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2307 # program-specific install script used by HP pwplus--don't use.
2308 :
2309 else
2310 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2311 break 3
2312 fi
2313 fi
2314 done
2315 done
2316 ;;
2317 esac
2318 done
2319
2320
2321 fi
2322 if test "${ac_cv_path_install+set}" = set; then
2323 INSTALL=$ac_cv_path_install
2324 else
2325 # As a last resort, use the slow shell script. We don't cache a
2326 # path for INSTALL within a source directory, because that will
2327 # break other packages using the cache if that directory is
2328 # removed, or if the path is relative.
2329 INSTALL=$ac_install_sh
2330 fi
2331 fi
2332 echo "$as_me:$LINENO: result: $INSTALL" >&5
2333 echo "${ECHO_T}$INSTALL" >&6
2334
2335 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2336 # It thinks the first close brace ends the variable substitution.
2337 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2338
2339 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2340
2341 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2342
2343
2344 # Checks for libraries.
2345
2346
2347 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
2348 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
2349 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
2350 echo $ECHO_N "(cached) $ECHO_C" >&6
2351 else
2352 ac_check_lib_save_LIBS=$LIBS
2353 LIBS="-lnsl $LIBS"
2354 cat >conftest.$ac_ext <<_ACEOF
2355 /* confdefs.h. */
2356 _ACEOF
2357 cat confdefs.h >>conftest.$ac_ext
2358 cat >>conftest.$ac_ext <<_ACEOF
2359 /* end confdefs.h. */
2360
2361 /* Override any gcc2 internal prototype to avoid an error. */
2362 #ifdef __cplusplus
2363 extern "C"
2364 #endif
2365 /* We use char because int might match the return type of a gcc2
2366 builtin and then its argument prototype would still apply. */
2367 char gethostbyname ();
2368 int
2369 main ()
2370 {
2371 gethostbyname ();
2372 ;
2373 return 0;
2374 }
2375 _ACEOF
2376 rm -f conftest.$ac_objext conftest$ac_exeext
2377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2378 (eval $ac_link) 2>conftest.er1
2379 ac_status=$?
2380 grep -v '^ *+' conftest.er1 >conftest.err
2381 rm -f conftest.er1
2382 cat conftest.err >&5
2383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2384 (exit $ac_status); } &&
2385 { ac_try='test -z "$ac_c_werror_flag"
2386 || test ! -s conftest.err'
2387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2388 (eval $ac_try) 2>&5
2389 ac_status=$?
2390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391 (exit $ac_status); }; } &&
2392 { ac_try='test -s conftest$ac_exeext'
2393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2394 (eval $ac_try) 2>&5
2395 ac_status=$?
2396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397 (exit $ac_status); }; }; then
2398 ac_cv_lib_nsl_gethostbyname=yes
2399 else
2400 echo "$as_me: failed program was:" >&5
2401 sed 's/^/| /' conftest.$ac_ext >&5
2402
2403 ac_cv_lib_nsl_gethostbyname=no
2404 fi
2405 rm -f conftest.err conftest.$ac_objext \
2406 conftest$ac_exeext conftest.$ac_ext
2407 LIBS=$ac_check_lib_save_LIBS
2408 fi
2409 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
2410 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
2411 if test $ac_cv_lib_nsl_gethostbyname = yes; then
2412 cat >>confdefs.h <<_ACEOF
2413 #define HAVE_LIBNSL 1
2414 _ACEOF
2415
2416 LIBS="-lnsl $LIBS"
2417
2418 fi
2419
2420
2421 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
2422 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
2423 if test "${ac_cv_lib_socket_connect+set}" = set; then
2424 echo $ECHO_N "(cached) $ECHO_C" >&6
2425 else
2426 ac_check_lib_save_LIBS=$LIBS
2427 LIBS="-lsocket $LIBS"
2428 cat >conftest.$ac_ext <<_ACEOF
2429 /* confdefs.h. */
2430 _ACEOF
2431 cat confdefs.h >>conftest.$ac_ext
2432 cat >>conftest.$ac_ext <<_ACEOF
2433 /* end confdefs.h. */
2434
2435 /* Override any gcc2 internal prototype to avoid an error. */
2436 #ifdef __cplusplus
2437 extern "C"
2438 #endif
2439 /* We use char because int might match the return type of a gcc2
2440 builtin and then its argument prototype would still apply. */
2441 char connect ();
2442 int
2443 main ()
2444 {
2445 connect ();
2446 ;
2447 return 0;
2448 }
2449 _ACEOF
2450 rm -f conftest.$ac_objext conftest$ac_exeext
2451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2452 (eval $ac_link) 2>conftest.er1
2453 ac_status=$?
2454 grep -v '^ *+' conftest.er1 >conftest.err
2455 rm -f conftest.er1
2456 cat conftest.err >&5
2457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2458 (exit $ac_status); } &&
2459 { ac_try='test -z "$ac_c_werror_flag"
2460 || test ! -s conftest.err'
2461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2462 (eval $ac_try) 2>&5
2463 ac_status=$?
2464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2465 (exit $ac_status); }; } &&
2466 { ac_try='test -s conftest$ac_exeext'
2467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2468 (eval $ac_try) 2>&5
2469 ac_status=$?
2470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2471 (exit $ac_status); }; }; then
2472 ac_cv_lib_socket_connect=yes
2473 else
2474 echo "$as_me: failed program was:" >&5
2475 sed 's/^/| /' conftest.$ac_ext >&5
2476
2477 ac_cv_lib_socket_connect=no
2478 fi
2479 rm -f conftest.err conftest.$ac_objext \
2480 conftest$ac_exeext conftest.$ac_ext
2481 LIBS=$ac_check_lib_save_LIBS
2482 fi
2483 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
2484 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
2485 if test $ac_cv_lib_socket_connect = yes; then
2486 cat >>confdefs.h <<_ACEOF
2487 #define HAVE_LIBSOCKET 1
2488 _ACEOF
2489
2490 LIBS="-lsocket $LIBS"
2491
2492 fi
2493
2494
2495 # Checks for header files.
2496 ac_ext=c
2497 ac_cpp='$CPP $CPPFLAGS'
2498 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2499 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2500 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2501 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2502 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2503 # On Suns, sometimes $CPP names a directory.
2504 if test -n "$CPP" && test -d "$CPP"; then
2505 CPP=
2506 fi
2507 if test -z "$CPP"; then
2508 if test "${ac_cv_prog_CPP+set}" = set; then
2509 echo $ECHO_N "(cached) $ECHO_C" >&6
2510 else
2511 # Double quotes because CPP needs to be expanded
2512 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2513 do
2514 ac_preproc_ok=false
2515 for ac_c_preproc_warn_flag in '' yes
2516 do
2517 # Use a header file that comes with gcc, so configuring glibc
2518 # with a fresh cross-compiler works.
2519 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2520 # <limits.h> exists even on freestanding compilers.
2521 # On the NeXT, cc -E runs the code through the compiler's parser,
2522 # not just through cpp. "Syntax error" is here to catch this case.
2523 cat >conftest.$ac_ext <<_ACEOF
2524 /* confdefs.h. */
2525 _ACEOF
2526 cat confdefs.h >>conftest.$ac_ext
2527 cat >>conftest.$ac_ext <<_ACEOF
2528 /* end confdefs.h. */
2529 #ifdef __STDC__
2530 # include <limits.h>
2531 #else
2532 # include <assert.h>
2533 #endif
2534 Syntax error
2535 _ACEOF
2536 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2537 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2538 ac_status=$?
2539 grep -v '^ *+' conftest.er1 >conftest.err
2540 rm -f conftest.er1
2541 cat conftest.err >&5
2542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2543 (exit $ac_status); } >/dev/null; then
2544 if test -s conftest.err; then
2545 ac_cpp_err=$ac_c_preproc_warn_flag
2546 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2547 else
2548 ac_cpp_err=
2549 fi
2550 else
2551 ac_cpp_err=yes
2552 fi
2553 if test -z "$ac_cpp_err"; then
2554 :
2555 else
2556 echo "$as_me: failed program was:" >&5
2557 sed 's/^/| /' conftest.$ac_ext >&5
2558
2559 # Broken: fails on valid input.
2560 continue
2561 fi
2562 rm -f conftest.err conftest.$ac_ext
2563
2564 # OK, works on sane cases. Now check whether non-existent headers
2565 # can be detected and how.
2566 cat >conftest.$ac_ext <<_ACEOF
2567 /* confdefs.h. */
2568 _ACEOF
2569 cat confdefs.h >>conftest.$ac_ext
2570 cat >>conftest.$ac_ext <<_ACEOF
2571 /* end confdefs.h. */
2572 #include <ac_nonexistent.h>
2573 _ACEOF
2574 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2575 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2576 ac_status=$?
2577 grep -v '^ *+' conftest.er1 >conftest.err
2578 rm -f conftest.er1
2579 cat conftest.err >&5
2580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581 (exit $ac_status); } >/dev/null; then
2582 if test -s conftest.err; then
2583 ac_cpp_err=$ac_c_preproc_warn_flag
2584 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2585 else
2586 ac_cpp_err=
2587 fi
2588 else
2589 ac_cpp_err=yes
2590 fi
2591 if test -z "$ac_cpp_err"; then
2592 # Broken: success on invalid input.
2593 continue
2594 else
2595 echo "$as_me: failed program was:" >&5
2596 sed 's/^/| /' conftest.$ac_ext >&5
2597
2598 # Passes both tests.
2599 ac_preproc_ok=:
2600 break
2601 fi
2602 rm -f conftest.err conftest.$ac_ext
2603
2604 done
2605 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2606 rm -f conftest.err conftest.$ac_ext
2607 if $ac_preproc_ok; then
2608 break
2609 fi
2610
2611 done
2612 ac_cv_prog_CPP=$CPP
2613
2614 fi
2615 CPP=$ac_cv_prog_CPP
2616 else
2617 ac_cv_prog_CPP=$CPP
2618 fi
2619 echo "$as_me:$LINENO: result: $CPP" >&5
2620 echo "${ECHO_T}$CPP" >&6
2621 ac_preproc_ok=false
2622 for ac_c_preproc_warn_flag in '' yes
2623 do
2624 # Use a header file that comes with gcc, so configuring glibc
2625 # with a fresh cross-compiler works.
2626 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2627 # <limits.h> exists even on freestanding compilers.
2628 # On the NeXT, cc -E runs the code through the compiler's parser,
2629 # not just through cpp. "Syntax error" is here to catch this case.
2630 cat >conftest.$ac_ext <<_ACEOF
2631 /* confdefs.h. */
2632 _ACEOF
2633 cat confdefs.h >>conftest.$ac_ext
2634 cat >>conftest.$ac_ext <<_ACEOF
2635 /* end confdefs.h. */
2636 #ifdef __STDC__
2637 # include <limits.h>
2638 #else
2639 # include <assert.h>
2640 #endif
2641 Syntax error
2642 _ACEOF
2643 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2644 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2645 ac_status=$?
2646 grep -v '^ *+' conftest.er1 >conftest.err
2647 rm -f conftest.er1
2648 cat conftest.err >&5
2649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2650 (exit $ac_status); } >/dev/null; then
2651 if test -s conftest.err; then
2652 ac_cpp_err=$ac_c_preproc_warn_flag
2653 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2654 else
2655 ac_cpp_err=
2656 fi
2657 else
2658 ac_cpp_err=yes
2659 fi
2660 if test -z "$ac_cpp_err"; then
2661 :
2662 else
2663 echo "$as_me: failed program was:" >&5
2664 sed 's/^/| /' conftest.$ac_ext >&5
2665
2666 # Broken: fails on valid input.
2667 continue
2668 fi
2669 rm -f conftest.err conftest.$ac_ext
2670
2671 # OK, works on sane cases. Now check whether non-existent headers
2672 # can be detected and how.
2673 cat >conftest.$ac_ext <<_ACEOF
2674 /* confdefs.h. */
2675 _ACEOF
2676 cat confdefs.h >>conftest.$ac_ext
2677 cat >>conftest.$ac_ext <<_ACEOF
2678 /* end confdefs.h. */
2679 #include <ac_nonexistent.h>
2680 _ACEOF
2681 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2682 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2683 ac_status=$?
2684 grep -v '^ *+' conftest.er1 >conftest.err
2685 rm -f conftest.er1
2686 cat conftest.err >&5
2687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2688 (exit $ac_status); } >/dev/null; then
2689 if test -s conftest.err; then
2690 ac_cpp_err=$ac_c_preproc_warn_flag
2691 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2692 else
2693 ac_cpp_err=
2694 fi
2695 else
2696 ac_cpp_err=yes
2697 fi
2698 if test -z "$ac_cpp_err"; then
2699 # Broken: success on invalid input.
2700 continue
2701 else
2702 echo "$as_me: failed program was:" >&5
2703 sed 's/^/| /' conftest.$ac_ext >&5
2704
2705 # Passes both tests.
2706 ac_preproc_ok=:
2707 break
2708 fi
2709 rm -f conftest.err conftest.$ac_ext
2710
2711 done
2712 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2713 rm -f conftest.err conftest.$ac_ext
2714 if $ac_preproc_ok; then
2715 :
2716 else
2717 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2718 See \`config.log' for more details." >&5
2719 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2720 See \`config.log' for more details." >&2;}
2721 { (exit 1); exit 1; }; }
2722 fi
2723
2724 ac_ext=c
2725 ac_cpp='$CPP $CPPFLAGS'
2726 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2727 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2728 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2729
2730
2731 echo "$as_me:$LINENO: checking for egrep" >&5
2732 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2733 if test "${ac_cv_prog_egrep+set}" = set; then
2734 echo $ECHO_N "(cached) $ECHO_C" >&6
2735 else
2736 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2737 then ac_cv_prog_egrep='grep -E'
2738 else ac_cv_prog_egrep='egrep'
2739 fi
2740 fi
2741 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2742 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2743 EGREP=$ac_cv_prog_egrep
2744
2745
2746 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2747 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2748 if test "${ac_cv_header_stdc+set}" = set; then
2749 echo $ECHO_N "(cached) $ECHO_C" >&6
2750 else
2751 cat >conftest.$ac_ext <<_ACEOF
2752 /* confdefs.h. */
2753 _ACEOF
2754 cat confdefs.h >>conftest.$ac_ext
2755 cat >>conftest.$ac_ext <<_ACEOF
2756 /* end confdefs.h. */
2757 #include <stdlib.h>
2758 #include <stdarg.h>
2759 #include <string.h>
2760 #include <float.h>
2761
2762 int
2763 main ()
2764 {
2765
2766 ;
2767 return 0;
2768 }
2769 _ACEOF
2770 rm -f conftest.$ac_objext
2771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2772 (eval $ac_compile) 2>conftest.er1
2773 ac_status=$?
2774 grep -v '^ *+' conftest.er1 >conftest.err
2775 rm -f conftest.er1
2776 cat conftest.err >&5
2777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2778 (exit $ac_status); } &&
2779 { ac_try='test -z "$ac_c_werror_flag"
2780 || test ! -s conftest.err'
2781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2782 (eval $ac_try) 2>&5
2783 ac_status=$?
2784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2785 (exit $ac_status); }; } &&
2786 { ac_try='test -s conftest.$ac_objext'
2787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2788 (eval $ac_try) 2>&5
2789 ac_status=$?
2790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791 (exit $ac_status); }; }; then
2792 ac_cv_header_stdc=yes
2793 else
2794 echo "$as_me: failed program was:" >&5
2795 sed 's/^/| /' conftest.$ac_ext >&5
2796
2797 ac_cv_header_stdc=no
2798 fi
2799 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2800
2801 if test $ac_cv_header_stdc = yes; then
2802 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2803 cat >conftest.$ac_ext <<_ACEOF
2804 /* confdefs.h. */
2805 _ACEOF
2806 cat confdefs.h >>conftest.$ac_ext
2807 cat >>conftest.$ac_ext <<_ACEOF
2808 /* end confdefs.h. */
2809 #include <string.h>
2810
2811 _ACEOF
2812 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2813 $EGREP "memchr" >/dev/null 2>&1; then
2814 :
2815 else
2816 ac_cv_header_stdc=no
2817 fi
2818 rm -f conftest*
2819
2820 fi
2821
2822 if test $ac_cv_header_stdc = yes; then
2823 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2824 cat >conftest.$ac_ext <<_ACEOF
2825 /* confdefs.h. */
2826 _ACEOF
2827 cat confdefs.h >>conftest.$ac_ext
2828 cat >>conftest.$ac_ext <<_ACEOF
2829 /* end confdefs.h. */
2830 #include <stdlib.h>
2831
2832 _ACEOF
2833 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2834 $EGREP "free" >/dev/null 2>&1; then
2835 :
2836 else
2837 ac_cv_header_stdc=no
2838 fi
2839 rm -f conftest*
2840
2841 fi
2842
2843 if test $ac_cv_header_stdc = yes; then
2844 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2845 if test "$cross_compiling" = yes; then
2846 :
2847 else
2848 cat >conftest.$ac_ext <<_ACEOF
2849 /* confdefs.h. */
2850 _ACEOF
2851 cat confdefs.h >>conftest.$ac_ext
2852 cat >>conftest.$ac_ext <<_ACEOF
2853 /* end confdefs.h. */
2854 #include <ctype.h>
2855 #if ((' ' & 0x0FF) == 0x020)
2856 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2857 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2858 #else
2859 # define ISLOWER(c) \
2860 (('a' <= (c) && (c) <= 'i') \
2861 || ('j' <= (c) && (c) <= 'r') \
2862 || ('s' <= (c) && (c) <= 'z'))
2863 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2864 #endif
2865
2866 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2867 int
2868 main ()
2869 {
2870 int i;
2871 for (i = 0; i < 256; i++)
2872 if (XOR (islower (i), ISLOWER (i))
2873 || toupper (i) != TOUPPER (i))
2874 exit(2);
2875 exit (0);
2876 }
2877 _ACEOF
2878 rm -f conftest$ac_exeext
2879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2880 (eval $ac_link) 2>&5
2881 ac_status=$?
2882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2883 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2885 (eval $ac_try) 2>&5
2886 ac_status=$?
2887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2888 (exit $ac_status); }; }; then
2889 :
2890 else
2891 echo "$as_me: program exited with status $ac_status" >&5
2892 echo "$as_me: failed program was:" >&5
2893 sed 's/^/| /' conftest.$ac_ext >&5
2894
2895 ( exit $ac_status )
2896 ac_cv_header_stdc=no
2897 fi
2898 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2899 fi
2900 fi
2901 fi
2902 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2903 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2904 if test $ac_cv_header_stdc = yes; then
2905
2906 cat >>confdefs.h <<\_ACEOF
2907 #define STDC_HEADERS 1
2908 _ACEOF
2909
2910 fi
2911
2912 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
2913 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
2914 if test "${ac_cv_header_sys_wait_h+set}" = set; then
2915 echo $ECHO_N "(cached) $ECHO_C" >&6
2916 else
2917 cat >conftest.$ac_ext <<_ACEOF
2918 /* confdefs.h. */
2919 _ACEOF
2920 cat confdefs.h >>conftest.$ac_ext
2921 cat >>conftest.$ac_ext <<_ACEOF
2922 /* end confdefs.h. */
2923 #include <sys/types.h>
2924 #include <sys/wait.h>
2925 #ifndef WEXITSTATUS
2926 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2927 #endif
2928 #ifndef WIFEXITED
2929 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2930 #endif
2931
2932 int
2933 main ()
2934 {
2935 int s;
2936 wait (&s);
2937 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2938 ;
2939 return 0;
2940 }
2941 _ACEOF
2942 rm -f conftest.$ac_objext
2943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2944 (eval $ac_compile) 2>conftest.er1
2945 ac_status=$?
2946 grep -v '^ *+' conftest.er1 >conftest.err
2947 rm -f conftest.er1
2948 cat conftest.err >&5
2949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950 (exit $ac_status); } &&
2951 { ac_try='test -z "$ac_c_werror_flag"
2952 || test ! -s conftest.err'
2953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2954 (eval $ac_try) 2>&5
2955 ac_status=$?
2956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2957 (exit $ac_status); }; } &&
2958 { ac_try='test -s conftest.$ac_objext'
2959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2960 (eval $ac_try) 2>&5
2961 ac_status=$?
2962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2963 (exit $ac_status); }; }; then
2964 ac_cv_header_sys_wait_h=yes
2965 else
2966 echo "$as_me: failed program was:" >&5
2967 sed 's/^/| /' conftest.$ac_ext >&5
2968
2969 ac_cv_header_sys_wait_h=no
2970 fi
2971 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2972 fi
2973 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
2974 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
2975 if test $ac_cv_header_sys_wait_h = yes; then
2976
2977 cat >>confdefs.h <<\_ACEOF
2978 #define HAVE_SYS_WAIT_H 1
2979 _ACEOF
2980
2981 fi
2982
2983 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2994 inttypes.h stdint.h unistd.h
2995 do
2996 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2997 echo "$as_me:$LINENO: checking for $ac_header" >&5
2998 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2999 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3000 echo $ECHO_N "(cached) $ECHO_C" >&6
3001 else
3002 cat >conftest.$ac_ext <<_ACEOF
3003 /* confdefs.h. */
3004 _ACEOF
3005 cat confdefs.h >>conftest.$ac_ext
3006 cat >>conftest.$ac_ext <<_ACEOF
3007 /* end confdefs.h. */
3008 $ac_includes_default
3009
3010 #include <$ac_header>
3011 _ACEOF
3012 rm -f conftest.$ac_objext
3013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3014 (eval $ac_compile) 2>conftest.er1
3015 ac_status=$?
3016 grep -v '^ *+' conftest.er1 >conftest.err
3017 rm -f conftest.er1
3018 cat conftest.err >&5
3019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3020 (exit $ac_status); } &&
3021 { ac_try='test -z "$ac_c_werror_flag"
3022 || test ! -s conftest.err'
3023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3024 (eval $ac_try) 2>&5
3025 ac_status=$?
3026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027 (exit $ac_status); }; } &&
3028 { ac_try='test -s conftest.$ac_objext'
3029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3030 (eval $ac_try) 2>&5
3031 ac_status=$?
3032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033 (exit $ac_status); }; }; then
3034 eval "$as_ac_Header=yes"
3035 else
3036 echo "$as_me: failed program was:" >&5
3037 sed 's/^/| /' conftest.$ac_ext >&5
3038
3039 eval "$as_ac_Header=no"
3040 fi
3041 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3042 fi
3043 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3044 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3045 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3046 cat >>confdefs.h <<_ACEOF
3047 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3048 _ACEOF
3049
3050 fi
3051
3052 done
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065 for ac_header in arpa/inet.h fcntl.h netdb.h netinet/in.h stdlib.h string.h sys/socket.h sys/time.h syslog.h unistd.h
3066 do
3067 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3068 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3069 echo "$as_me:$LINENO: checking for $ac_header" >&5
3070 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3071 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3072 echo $ECHO_N "(cached) $ECHO_C" >&6
3073 fi
3074 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3075 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3076 else
3077 # Is the header compilable?
3078 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3079 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3080 cat >conftest.$ac_ext <<_ACEOF
3081 /* confdefs.h. */
3082 _ACEOF
3083 cat confdefs.h >>conftest.$ac_ext
3084 cat >>conftest.$ac_ext <<_ACEOF
3085 /* end confdefs.h. */
3086 $ac_includes_default
3087 #include <$ac_header>
3088 _ACEOF
3089 rm -f conftest.$ac_objext
3090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3091 (eval $ac_compile) 2>conftest.er1
3092 ac_status=$?
3093 grep -v '^ *+' conftest.er1 >conftest.err
3094 rm -f conftest.er1
3095 cat conftest.err >&5
3096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097 (exit $ac_status); } &&
3098 { ac_try='test -z "$ac_c_werror_flag"
3099 || test ! -s conftest.err'
3100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3101 (eval $ac_try) 2>&5
3102 ac_status=$?
3103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3104 (exit $ac_status); }; } &&
3105 { ac_try='test -s conftest.$ac_objext'
3106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3107 (eval $ac_try) 2>&5
3108 ac_status=$?
3109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3110 (exit $ac_status); }; }; then
3111 ac_header_compiler=yes
3112 else
3113 echo "$as_me: failed program was:" >&5
3114 sed 's/^/| /' conftest.$ac_ext >&5
3115
3116 ac_header_compiler=no
3117 fi
3118 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3119 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3120 echo "${ECHO_T}$ac_header_compiler" >&6
3121
3122 # Is the header present?
3123 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3124 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3125 cat >conftest.$ac_ext <<_ACEOF
3126 /* confdefs.h. */
3127 _ACEOF
3128 cat confdefs.h >>conftest.$ac_ext
3129 cat >>conftest.$ac_ext <<_ACEOF
3130 /* end confdefs.h. */
3131 #include <$ac_header>
3132 _ACEOF
3133 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3134 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3135 ac_status=$?
3136 grep -v '^ *+' conftest.er1 >conftest.err
3137 rm -f conftest.er1
3138 cat conftest.err >&5
3139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140 (exit $ac_status); } >/dev/null; then
3141 if test -s conftest.err; then
3142 ac_cpp_err=$ac_c_preproc_warn_flag
3143 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3144 else
3145 ac_cpp_err=
3146 fi
3147 else
3148 ac_cpp_err=yes
3149 fi
3150 if test -z "$ac_cpp_err"; then
3151 ac_header_preproc=yes
3152 else
3153 echo "$as_me: failed program was:" >&5
3154 sed 's/^/| /' conftest.$ac_ext >&5
3155
3156 ac_header_preproc=no
3157 fi
3158 rm -f conftest.err conftest.$ac_ext
3159 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3160 echo "${ECHO_T}$ac_header_preproc" >&6
3161
3162 # So? What about this header?
3163 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3164 yes:no: )
3165 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3166 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3167 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3168 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3169 ac_header_preproc=yes
3170 ;;
3171 no:yes:* )
3172 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3173 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3174 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3175 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3176 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3177 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3178 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3179 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3180 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3181 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3182 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3183 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3184 (
3185 cat <<\_ASBOX
3186 ## ----------------------------- ##
3187 ## Report this to [email protected] ##
3188 ## ----------------------------- ##
3189 _ASBOX
3190 ) |
3191 sed "s/^/$as_me: WARNING: /" >&2
3192 ;;
3193 esac
3194 echo "$as_me:$LINENO: checking for $ac_header" >&5
3195 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3196 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3197 echo $ECHO_N "(cached) $ECHO_C" >&6
3198 else
3199 eval "$as_ac_Header=\$ac_header_preproc"
3200 fi
3201 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3202 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3203
3204 fi
3205 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3206 cat >>confdefs.h <<_ACEOF
3207 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3208 _ACEOF
3209
3210 fi
3211
3212 done
3213
3214
3215 # Checks for typedefs, structures, and compiler characteristics.
3216 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3217 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3218 if test "${ac_cv_c_const+set}" = set; then
3219 echo $ECHO_N "(cached) $ECHO_C" >&6
3220 else
3221 cat >conftest.$ac_ext <<_ACEOF
3222 /* confdefs.h. */
3223 _ACEOF
3224 cat confdefs.h >>conftest.$ac_ext
3225 cat >>conftest.$ac_ext <<_ACEOF
3226 /* end confdefs.h. */
3227
3228 int
3229 main ()
3230 {
3231 /* FIXME: Include the comments suggested by Paul. */
3232 #ifndef __cplusplus
3233 /* Ultrix mips cc rejects this. */
3234 typedef int charset[2];
3235 const charset x;
3236 /* SunOS 4.1.1 cc rejects this. */
3237 char const *const *ccp;
3238 char **p;
3239 /* NEC SVR4.0.2 mips cc rejects this. */
3240 struct point {int x, y;};
3241 static struct point const zero = {0,0};
3242 /* AIX XL C 1.02.0.0 rejects this.
3243 It does not let you subtract one const X* pointer from another in
3244 an arm of an if-expression whose if-part is not a constant
3245 expression */
3246 const char *g = "string";
3247 ccp = &g + (g ? g-g : 0);
3248 /* HPUX 7.0 cc rejects these. */
3249 ++ccp;
3250 p = (char**) ccp;
3251 ccp = (char const *const *) p;
3252 { /* SCO 3.2v4 cc rejects this. */
3253 char *t;
3254 char const *s = 0 ? (char *) 0 : (char const *) 0;
3255
3256 *t++ = 0;
3257 }
3258 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3259 int x[] = {25, 17};
3260 const int *foo = &x[0];
3261 ++foo;
3262 }
3263 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3264 typedef const int *iptr;
3265 iptr p = 0;
3266 ++p;
3267 }
3268 { /* AIX XL C 1.02.0.0 rejects this saying
3269 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3270 struct s { int j; const int *ap[3]; };
3271 struct s *b; b->j = 5;
3272 }
3273 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3274 const int foo = 10;
3275 }
3276 #endif
3277
3278 ;
3279 return 0;
3280 }
3281 _ACEOF
3282 rm -f conftest.$ac_objext
3283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3284 (eval $ac_compile) 2>conftest.er1
3285 ac_status=$?
3286 grep -v '^ *+' conftest.er1 >conftest.err
3287 rm -f conftest.er1
3288 cat conftest.err >&5
3289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3290 (exit $ac_status); } &&
3291 { ac_try='test -z "$ac_c_werror_flag"
3292 || test ! -s conftest.err'
3293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3294 (eval $ac_try) 2>&5
3295 ac_status=$?
3296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297 (exit $ac_status); }; } &&
3298 { ac_try='test -s conftest.$ac_objext'
3299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3300 (eval $ac_try) 2>&5
3301 ac_status=$?
3302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3303 (exit $ac_status); }; }; then
3304 ac_cv_c_const=yes
3305 else
3306 echo "$as_me: failed program was:" >&5
3307 sed 's/^/| /' conftest.$ac_ext >&5
3308
3309 ac_cv_c_const=no
3310 fi
3311 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3312 fi
3313 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3314 echo "${ECHO_T}$ac_cv_c_const" >&6
3315 if test $ac_cv_c_const = no; then
3316
3317 cat >>confdefs.h <<\_ACEOF
3318 #define const
3319 _ACEOF
3320
3321 fi
3322
3323 echo "$as_me:$LINENO: checking for pid_t" >&5
3324 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
3325 if test "${ac_cv_type_pid_t+set}" = set; then
3326 echo $ECHO_N "(cached) $ECHO_C" >&6
3327 else
3328 cat >conftest.$ac_ext <<_ACEOF
3329 /* confdefs.h. */
3330 _ACEOF
3331 cat confdefs.h >>conftest.$ac_ext
3332 cat >>conftest.$ac_ext <<_ACEOF
3333 /* end confdefs.h. */
3334 $ac_includes_default
3335 int
3336 main ()
3337 {
3338 if ((pid_t *) 0)
3339 return 0;
3340 if (sizeof (pid_t))
3341 return 0;
3342 ;
3343 return 0;
3344 }
3345 _ACEOF
3346 rm -f conftest.$ac_objext
3347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3348 (eval $ac_compile) 2>conftest.er1
3349 ac_status=$?
3350 grep -v '^ *+' conftest.er1 >conftest.err
3351 rm -f conftest.er1
3352 cat conftest.err >&5
3353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3354 (exit $ac_status); } &&
3355 { ac_try='test -z "$ac_c_werror_flag"
3356 || test ! -s conftest.err'
3357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3358 (eval $ac_try) 2>&5
3359 ac_status=$?
3360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361 (exit $ac_status); }; } &&
3362 { ac_try='test -s conftest.$ac_objext'
3363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3364 (eval $ac_try) 2>&5
3365 ac_status=$?
3366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3367 (exit $ac_status); }; }; then
3368 ac_cv_type_pid_t=yes
3369 else
3370 echo "$as_me: failed program was:" >&5
3371 sed 's/^/| /' conftest.$ac_ext >&5
3372
3373 ac_cv_type_pid_t=no
3374 fi
3375 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3376 fi
3377 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
3378 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
3379 if test $ac_cv_type_pid_t = yes; then
3380 :
3381 else
3382
3383 cat >>confdefs.h <<_ACEOF
3384 #define pid_t int
3385 _ACEOF
3386
3387 fi
3388
3389 echo "$as_me:$LINENO: checking for size_t" >&5
3390 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3391 if test "${ac_cv_type_size_t+set}" = set; then
3392 echo $ECHO_N "(cached) $ECHO_C" >&6
3393 else
3394 cat >conftest.$ac_ext <<_ACEOF
3395 /* confdefs.h. */
3396 _ACEOF
3397 cat confdefs.h >>conftest.$ac_ext
3398 cat >>conftest.$ac_ext <<_ACEOF
3399 /* end confdefs.h. */
3400 $ac_includes_default
3401 int
3402 main ()
3403 {
3404 if ((size_t *) 0)
3405 return 0;
3406 if (sizeof (size_t))
3407 return 0;
3408 ;
3409 return 0;
3410 }
3411 _ACEOF
3412 rm -f conftest.$ac_objext
3413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3414 (eval $ac_compile) 2>conftest.er1
3415 ac_status=$?
3416 grep -v '^ *+' conftest.er1 >conftest.err
3417 rm -f conftest.er1
3418 cat conftest.err >&5
3419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3420 (exit $ac_status); } &&
3421 { ac_try='test -z "$ac_c_werror_flag"
3422 || test ! -s conftest.err'
3423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3424 (eval $ac_try) 2>&5
3425 ac_status=$?
3426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3427 (exit $ac_status); }; } &&
3428 { ac_try='test -s conftest.$ac_objext'
3429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3430 (eval $ac_try) 2>&5
3431 ac_status=$?
3432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3433 (exit $ac_status); }; }; then
3434 ac_cv_type_size_t=yes
3435 else
3436 echo "$as_me: failed program was:" >&5
3437 sed 's/^/| /' conftest.$ac_ext >&5
3438
3439 ac_cv_type_size_t=no
3440 fi
3441 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3442 fi
3443 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
3444 echo "${ECHO_T}$ac_cv_type_size_t" >&6
3445 if test $ac_cv_type_size_t = yes; then
3446 :
3447 else
3448
3449 cat >>confdefs.h <<_ACEOF
3450 #define size_t unsigned
3451 _ACEOF
3452
3453 fi
3454
3455 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
3456 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
3457 if test "${ac_cv_header_time+set}" = set; then
3458 echo $ECHO_N "(cached) $ECHO_C" >&6
3459 else
3460 cat >conftest.$ac_ext <<_ACEOF
3461 /* confdefs.h. */
3462 _ACEOF
3463 cat confdefs.h >>conftest.$ac_ext
3464 cat >>conftest.$ac_ext <<_ACEOF
3465 /* end confdefs.h. */
3466 #include <sys/types.h>
3467 #include <sys/time.h>
3468 #include <time.h>
3469
3470 int
3471 main ()
3472 {
3473 if ((struct tm *) 0)
3474 return 0;
3475 ;
3476 return 0;
3477 }
3478 _ACEOF
3479 rm -f conftest.$ac_objext
3480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3481 (eval $ac_compile) 2>conftest.er1
3482 ac_status=$?
3483 grep -v '^ *+' conftest.er1 >conftest.err
3484 rm -f conftest.er1
3485 cat conftest.err >&5
3486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3487 (exit $ac_status); } &&
3488 { ac_try='test -z "$ac_c_werror_flag"
3489 || test ! -s conftest.err'
3490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3491 (eval $ac_try) 2>&5
3492 ac_status=$?
3493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3494 (exit $ac_status); }; } &&
3495 { ac_try='test -s conftest.$ac_objext'
3496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3497 (eval $ac_try) 2>&5
3498 ac_status=$?
3499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3500 (exit $ac_status); }; }; then
3501 ac_cv_header_time=yes
3502 else
3503 echo "$as_me: failed program was:" >&5
3504 sed 's/^/| /' conftest.$ac_ext >&5
3505
3506 ac_cv_header_time=no
3507 fi
3508 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3509 fi
3510 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
3511 echo "${ECHO_T}$ac_cv_header_time" >&6
3512 if test $ac_cv_header_time = yes; then
3513
3514 cat >>confdefs.h <<\_ACEOF
3515 #define TIME_WITH_SYS_TIME 1
3516 _ACEOF
3517
3518 fi
3519
3520
3521 # Checks for library functions.
3522
3523
3524 for ac_header in unistd.h vfork.h
3525 do
3526 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3527 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3528 echo "$as_me:$LINENO: checking for $ac_header" >&5
3529 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3530 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3531 echo $ECHO_N "(cached) $ECHO_C" >&6
3532 fi
3533 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3534 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3535 else
3536 # Is the header compilable?
3537 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3538 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3539 cat >conftest.$ac_ext <<_ACEOF
3540 /* confdefs.h. */
3541 _ACEOF
3542 cat confdefs.h >>conftest.$ac_ext
3543 cat >>conftest.$ac_ext <<_ACEOF
3544 /* end confdefs.h. */
3545 $ac_includes_default
3546 #include <$ac_header>
3547 _ACEOF
3548 rm -f conftest.$ac_objext
3549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3550 (eval $ac_compile) 2>conftest.er1
3551 ac_status=$?
3552 grep -v '^ *+' conftest.er1 >conftest.err
3553 rm -f conftest.er1
3554 cat conftest.err >&5
3555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3556 (exit $ac_status); } &&
3557 { ac_try='test -z "$ac_c_werror_flag"
3558 || test ! -s conftest.err'
3559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3560 (eval $ac_try) 2>&5
3561 ac_status=$?
3562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3563 (exit $ac_status); }; } &&
3564 { ac_try='test -s conftest.$ac_objext'
3565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3566 (eval $ac_try) 2>&5
3567 ac_status=$?
3568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3569 (exit $ac_status); }; }; then
3570 ac_header_compiler=yes
3571 else
3572 echo "$as_me: failed program was:" >&5
3573 sed 's/^/| /' conftest.$ac_ext >&5
3574
3575 ac_header_compiler=no
3576 fi
3577 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3578 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3579 echo "${ECHO_T}$ac_header_compiler" >&6
3580
3581 # Is the header present?
3582 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3583 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3584 cat >conftest.$ac_ext <<_ACEOF
3585 /* confdefs.h. */
3586 _ACEOF
3587 cat confdefs.h >>conftest.$ac_ext
3588 cat >>conftest.$ac_ext <<_ACEOF
3589 /* end confdefs.h. */
3590 #include <$ac_header>
3591 _ACEOF
3592 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3593 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3594 ac_status=$?
3595 grep -v '^ *+' conftest.er1 >conftest.err
3596 rm -f conftest.er1
3597 cat conftest.err >&5
3598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3599 (exit $ac_status); } >/dev/null; then
3600 if test -s conftest.err; then
3601 ac_cpp_err=$ac_c_preproc_warn_flag
3602 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3603 else
3604 ac_cpp_err=
3605 fi
3606 else
3607 ac_cpp_err=yes
3608 fi
3609 if test -z "$ac_cpp_err"; then
3610 ac_header_preproc=yes
3611 else
3612 echo "$as_me: failed program was:" >&5
3613 sed 's/^/| /' conftest.$ac_ext >&5
3614
3615 ac_header_preproc=no
3616 fi
3617 rm -f conftest.err conftest.$ac_ext
3618 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3619 echo "${ECHO_T}$ac_header_preproc" >&6
3620
3621 # So? What about this header?
3622 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3623 yes:no: )
3624 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3625 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3626 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3627 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3628 ac_header_preproc=yes
3629 ;;
3630 no:yes:* )
3631 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3632 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3633 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3634 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3635 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3636 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3637 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3638 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3639 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3640 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3641 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3642 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3643 (
3644 cat <<\_ASBOX
3645 ## ----------------------------- ##
3646 ## Report this to [email protected] ##
3647 ## ----------------------------- ##
3648 _ASBOX
3649 ) |
3650 sed "s/^/$as_me: WARNING: /" >&2
3651 ;;
3652 esac
3653 echo "$as_me:$LINENO: checking for $ac_header" >&5
3654 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3655 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3656 echo $ECHO_N "(cached) $ECHO_C" >&6
3657 else
3658 eval "$as_ac_Header=\$ac_header_preproc"
3659 fi
3660 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3661 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3662
3663 fi
3664 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3665 cat >>confdefs.h <<_ACEOF
3666 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3667 _ACEOF
3668
3669 fi
3670
3671 done
3672
3673
3674
3675 for ac_func in fork vfork
3676 do
3677 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3678 echo "$as_me:$LINENO: checking for $ac_func" >&5
3679 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3680 if eval "test \"\${$as_ac_var+set}\" = set"; then
3681 echo $ECHO_N "(cached) $ECHO_C" >&6
3682 else
3683 cat >conftest.$ac_ext <<_ACEOF
3684 /* confdefs.h. */
3685 _ACEOF
3686 cat confdefs.h >>conftest.$ac_ext
3687 cat >>conftest.$ac_ext <<_ACEOF
3688 /* end confdefs.h. */
3689 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3690 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3691 #define $ac_func innocuous_$ac_func
3692
3693 /* System header to define __stub macros and hopefully few prototypes,
3694 which can conflict with char $ac_func (); below.
3695 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3696 <limits.h> exists even on freestanding compilers. */
3697
3698 #ifdef __STDC__
3699 # include <limits.h>
3700 #else
3701 # include <assert.h>
3702 #endif
3703
3704 #undef $ac_func
3705
3706 /* Override any gcc2 internal prototype to avoid an error. */
3707 #ifdef __cplusplus
3708 extern "C"
3709 {
3710 #endif
3711 /* We use char because int might match the return type of a gcc2
3712 builtin and then its argument prototype would still apply. */
3713 char $ac_func ();
3714 /* The GNU C library defines this for functions which it implements
3715 to always fail with ENOSYS. Some functions are actually named
3716 something starting with __ and the normal name is an alias. */
3717 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3718 choke me
3719 #else
3720 char (*f) () = $ac_func;
3721 #endif
3722 #ifdef __cplusplus
3723 }
3724 #endif
3725
3726 int
3727 main ()
3728 {
3729 return f != $ac_func;
3730 ;
3731 return 0;
3732 }
3733 _ACEOF
3734 rm -f conftest.$ac_objext conftest$ac_exeext
3735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3736 (eval $ac_link) 2>conftest.er1
3737 ac_status=$?
3738 grep -v '^ *+' conftest.er1 >conftest.err
3739 rm -f conftest.er1
3740 cat conftest.err >&5
3741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3742 (exit $ac_status); } &&
3743 { ac_try='test -z "$ac_c_werror_flag"
3744 || test ! -s conftest.err'
3745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3746 (eval $ac_try) 2>&5
3747 ac_status=$?
3748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3749 (exit $ac_status); }; } &&
3750 { ac_try='test -s conftest$ac_exeext'
3751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3752 (eval $ac_try) 2>&5
3753 ac_status=$?
3754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3755 (exit $ac_status); }; }; then
3756 eval "$as_ac_var=yes"
3757 else
3758 echo "$as_me: failed program was:" >&5
3759 sed 's/^/| /' conftest.$ac_ext >&5
3760
3761 eval "$as_ac_var=no"
3762 fi
3763 rm -f conftest.err conftest.$ac_objext \
3764 conftest$ac_exeext conftest.$ac_ext
3765 fi
3766 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3767 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3768 if test `eval echo '${'$as_ac_var'}'` = yes; then
3769 cat >>confdefs.h <<_ACEOF
3770 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3771 _ACEOF
3772
3773 fi
3774 done
3775
3776 if test "x$ac_cv_func_fork" = xyes; then
3777 echo "$as_me:$LINENO: checking for working fork" >&5
3778 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
3779 if test "${ac_cv_func_fork_works+set}" = set; then
3780 echo $ECHO_N "(cached) $ECHO_C" >&6
3781 else
3782 if test "$cross_compiling" = yes; then
3783 ac_cv_func_fork_works=cross
3784 else
3785 cat >conftest.$ac_ext <<_ACEOF
3786 /* By Ruediger Kuhlmann. */
3787 #include <sys/types.h>
3788 #if HAVE_UNISTD_H
3789 # include <unistd.h>
3790 #endif
3791 /* Some systems only have a dummy stub for fork() */
3792 int main ()
3793 {
3794 if (fork() < 0)
3795 exit (1);
3796 exit (0);
3797 }
3798 _ACEOF
3799 rm -f conftest$ac_exeext
3800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3801 (eval $ac_link) 2>&5
3802 ac_status=$?
3803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3804 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3806 (eval $ac_try) 2>&5
3807 ac_status=$?
3808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3809 (exit $ac_status); }; }; then
3810 ac_cv_func_fork_works=yes
3811 else
3812 echo "$as_me: program exited with status $ac_status" >&5
3813 echo "$as_me: failed program was:" >&5
3814 sed 's/^/| /' conftest.$ac_ext >&5
3815
3816 ( exit $ac_status )
3817 ac_cv_func_fork_works=no
3818 fi
3819 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3820 fi
3821 fi
3822 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
3823 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
3824
3825 else
3826 ac_cv_func_fork_works=$ac_cv_func_fork
3827 fi
3828 if test "x$ac_cv_func_fork_works" = xcross; then
3829 case $host in
3830 *-*-amigaos* | *-*-msdosdjgpp*)
3831 # Override, as these systems have only a dummy fork() stub
3832 ac_cv_func_fork_works=no
3833 ;;
3834 *)
3835 ac_cv_func_fork_works=yes
3836 ;;
3837 esac
3838 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
3839 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
3840 fi
3841 ac_cv_func_vfork_works=$ac_cv_func_vfork
3842 if test "x$ac_cv_func_vfork" = xyes; then
3843 echo "$as_me:$LINENO: checking for working vfork" >&5
3844 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
3845 if test "${ac_cv_func_vfork_works+set}" = set; then
3846 echo $ECHO_N "(cached) $ECHO_C" >&6
3847 else
3848 if test "$cross_compiling" = yes; then
3849 ac_cv_func_vfork_works=cross
3850 else
3851 cat >conftest.$ac_ext <<_ACEOF
3852 /* confdefs.h. */
3853 _ACEOF
3854 cat confdefs.h >>conftest.$ac_ext
3855 cat >>conftest.$ac_ext <<_ACEOF
3856 /* end confdefs.h. */
3857 /* Thanks to Paul Eggert for this test. */
3858 #include <stdio.h>
3859 #include <stdlib.h>
3860 #include <sys/types.h>
3861 #include <sys/stat.h>
3862 #include <sys/wait.h>
3863 #if HAVE_UNISTD_H
3864 # include <unistd.h>
3865 #endif
3866 #if HAVE_VFORK_H
3867 # include <vfork.h>
3868 #endif
3869 /* On some sparc systems, changes by the child to local and incoming
3870 argument registers are propagated back to the parent. The compiler
3871 is told about this with #include <vfork.h>, but some compilers
3872 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
3873 static variable whose address is put into a register that is
3874 clobbered by the vfork. */
3875 static void
3876 #ifdef __cplusplus
3877 sparc_address_test (int arg)
3878 # else
3879 sparc_address_test (arg) int arg;
3880 #endif
3881 {
3882 static pid_t child;
3883 if (!child) {
3884 child = vfork ();
3885 if (child < 0) {
3886 perror ("vfork");
3887 _exit(2);
3888 }
3889 if (!child) {
3890 arg = getpid();
3891 write(-1, "", 0);
3892 _exit (arg);
3893 }
3894 }
3895 }
3896
3897 int
3898 main ()
3899 {
3900 pid_t parent = getpid ();
3901 pid_t child;
3902
3903 sparc_address_test (0);
3904
3905 child = vfork ();
3906
3907 if (child == 0) {
3908 /* Here is another test for sparc vfork register problems. This
3909 test uses lots of local variables, at least as many local
3910 variables as main has allocated so far including compiler
3911 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
3912 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
3913 reuse the register of parent for one of the local variables,
3914 since it will think that parent can't possibly be used any more
3915 in this routine. Assigning to the local variable will thus
3916 munge parent in the parent process. */
3917 pid_t
3918 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
3919 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
3920 /* Convince the compiler that p..p7 are live; otherwise, it might
3921 use the same hardware register for all 8 local variables. */
3922 if (p != p1 || p != p2 || p != p3 || p != p4
3923 || p != p5 || p != p6 || p != p7)
3924 _exit(1);
3925
3926 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
3927 from child file descriptors. If the child closes a descriptor
3928 before it execs or exits, this munges the parent's descriptor
3929 as well. Test for this by closing stdout in the child. */
3930 _exit(close(fileno(stdout)) != 0);
3931 } else {
3932 int status;
3933 struct stat st;
3934
3935 while (wait(&status) != child)
3936 ;
3937 exit(
3938 /* Was there some problem with vforking? */
3939 child < 0
3940
3941 /* Did the child fail? (This shouldn't happen.) */
3942 || status
3943
3944 /* Did the vfork/compiler bug occur? */
3945 || parent != getpid()
3946
3947 /* Did the file descriptor bug occur? */
3948 || fstat(fileno(stdout), &st) != 0
3949 );
3950 }
3951 }
3952 _ACEOF
3953 rm -f conftest$ac_exeext
3954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3955 (eval $ac_link) 2>&5
3956 ac_status=$?
3957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3958 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3960 (eval $ac_try) 2>&5
3961 ac_status=$?
3962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3963 (exit $ac_status); }; }; then
3964 ac_cv_func_vfork_works=yes
3965 else
3966 echo "$as_me: program exited with status $ac_status" >&5
3967 echo "$as_me: failed program was:" >&5
3968 sed 's/^/| /' conftest.$ac_ext >&5
3969
3970 ( exit $ac_status )
3971 ac_cv_func_vfork_works=no
3972 fi
3973 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3974 fi
3975 fi
3976 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
3977 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
3978
3979 fi;
3980 if test "x$ac_cv_func_fork_works" = xcross; then
3981 ac_cv_func_vfork_works=$ac_cv_func_vfork
3982 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
3983 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
3984 fi
3985
3986 if test "x$ac_cv_func_vfork_works" = xyes; then
3987
3988 cat >>confdefs.h <<\_ACEOF
3989 #define HAVE_WORKING_VFORK 1
3990 _ACEOF
3991
3992 else
3993
3994 cat >>confdefs.h <<\_ACEOF
3995 #define vfork fork
3996 _ACEOF
3997
3998 fi
3999 if test "x$ac_cv_func_fork_works" = xyes; then
4000
4001 cat >>confdefs.h <<\_ACEOF
4002 #define HAVE_WORKING_FORK 1
4003 _ACEOF
4004
4005 fi
4006
4007
4008 for ac_header in stdlib.h
4009 do
4010 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4011 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4012 echo "$as_me:$LINENO: checking for $ac_header" >&5
4013 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4014 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4015 echo $ECHO_N "(cached) $ECHO_C" >&6
4016 fi
4017 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4018 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4019 else
4020 # Is the header compilable?
4021 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4022 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4023 cat >conftest.$ac_ext <<_ACEOF
4024 /* confdefs.h. */
4025 _ACEOF
4026 cat confdefs.h >>conftest.$ac_ext
4027 cat >>conftest.$ac_ext <<_ACEOF
4028 /* end confdefs.h. */
4029 $ac_includes_default
4030 #include <$ac_header>
4031 _ACEOF
4032 rm -f conftest.$ac_objext
4033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4034 (eval $ac_compile) 2>conftest.er1
4035 ac_status=$?
4036 grep -v '^ *+' conftest.er1 >conftest.err
4037 rm -f conftest.er1
4038 cat conftest.err >&5
4039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4040 (exit $ac_status); } &&
4041 { ac_try='test -z "$ac_c_werror_flag"
4042 || test ! -s conftest.err'
4043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4044 (eval $ac_try) 2>&5
4045 ac_status=$?
4046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4047 (exit $ac_status); }; } &&
4048 { ac_try='test -s conftest.$ac_objext'
4049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4050 (eval $ac_try) 2>&5
4051 ac_status=$?
4052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4053 (exit $ac_status); }; }; then
4054 ac_header_compiler=yes
4055 else
4056 echo "$as_me: failed program was:" >&5
4057 sed 's/^/| /' conftest.$ac_ext >&5
4058
4059 ac_header_compiler=no
4060 fi
4061 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4062 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4063 echo "${ECHO_T}$ac_header_compiler" >&6
4064
4065 # Is the header present?
4066 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4067 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4068 cat >conftest.$ac_ext <<_ACEOF
4069 /* confdefs.h. */
4070 _ACEOF
4071 cat confdefs.h >>conftest.$ac_ext
4072 cat >>conftest.$ac_ext <<_ACEOF
4073 /* end confdefs.h. */
4074 #include <$ac_header>
4075 _ACEOF
4076 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4077 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4078 ac_status=$?
4079 grep -v '^ *+' conftest.er1 >conftest.err
4080 rm -f conftest.er1
4081 cat conftest.err >&5
4082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4083 (exit $ac_status); } >/dev/null; then
4084 if test -s conftest.err; then
4085 ac_cpp_err=$ac_c_preproc_warn_flag
4086 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4087 else
4088 ac_cpp_err=
4089 fi
4090 else
4091 ac_cpp_err=yes
4092 fi
4093 if test -z "$ac_cpp_err"; then
4094 ac_header_preproc=yes
4095 else
4096 echo "$as_me: failed program was:" >&5
4097 sed 's/^/| /' conftest.$ac_ext >&5
4098
4099 ac_header_preproc=no
4100 fi
4101 rm -f conftest.err conftest.$ac_ext
4102 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4103 echo "${ECHO_T}$ac_header_preproc" >&6
4104
4105 # So? What about this header?
4106 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4107 yes:no: )
4108 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4109 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4110 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4111 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4112 ac_header_preproc=yes
4113 ;;
4114 no:yes:* )
4115 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4116 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4117 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4118 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4119 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4120 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4121 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4122 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4123 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4124 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4125 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4126 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4127 (
4128 cat <<\_ASBOX
4129 ## ----------------------------- ##
4130 ## Report this to [email protected] ##
4131 ## ----------------------------- ##
4132 _ASBOX
4133 ) |
4134 sed "s/^/$as_me: WARNING: /" >&2
4135 ;;
4136 esac
4137 echo "$as_me:$LINENO: checking for $ac_header" >&5
4138 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4139 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4140 echo $ECHO_N "(cached) $ECHO_C" >&6
4141 else
4142 eval "$as_ac_Header=\$ac_header_preproc"
4143 fi
4144 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4145 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4146
4147 fi
4148 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4149 cat >>confdefs.h <<_ACEOF
4150 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4151 _ACEOF
4152
4153 fi
4154
4155 done
4156
4157 echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
4158 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
4159 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
4160 echo $ECHO_N "(cached) $ECHO_C" >&6
4161 else
4162 if test "$cross_compiling" = yes; then
4163 ac_cv_func_malloc_0_nonnull=no
4164 else
4165 cat >conftest.$ac_ext <<_ACEOF
4166 /* confdefs.h. */
4167 _ACEOF
4168 cat confdefs.h >>conftest.$ac_ext
4169 cat >>conftest.$ac_ext <<_ACEOF
4170 /* end confdefs.h. */
4171 #if STDC_HEADERS || HAVE_STDLIB_H
4172 # include <stdlib.h>
4173 #else
4174 char *malloc ();
4175 #endif
4176
4177 int
4178 main ()
4179 {
4180 exit (malloc (0) ? 0 : 1);
4181 ;
4182 return 0;
4183 }
4184 _ACEOF
4185 rm -f conftest$ac_exeext
4186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4187 (eval $ac_link) 2>&5
4188 ac_status=$?
4189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4190 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4192 (eval $ac_try) 2>&5
4193 ac_status=$?
4194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195 (exit $ac_status); }; }; then
4196 ac_cv_func_malloc_0_nonnull=yes
4197 else
4198 echo "$as_me: program exited with status $ac_status" >&5
4199 echo "$as_me: failed program was:" >&5
4200 sed 's/^/| /' conftest.$ac_ext >&5
4201
4202 ( exit $ac_status )
4203 ac_cv_func_malloc_0_nonnull=no
4204 fi
4205 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4206 fi
4207 fi
4208 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
4209 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
4210 if test $ac_cv_func_malloc_0_nonnull = yes; then
4211
4212 cat >>confdefs.h <<\_ACEOF
4213 #define HAVE_MALLOC 1
4214 _ACEOF
4215
4216 else
4217 cat >>confdefs.h <<\_ACEOF
4218 #define HAVE_MALLOC 0
4219 _ACEOF
4220
4221 case $LIBOBJS in
4222 "malloc.$ac_objext" | \
4223 *" malloc.$ac_objext" | \
4224 "malloc.$ac_objext "* | \
4225 *" malloc.$ac_objext "* ) ;;
4226 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
4227 esac
4228
4229
4230 cat >>confdefs.h <<\_ACEOF
4231 #define malloc rpl_malloc
4232 _ACEOF
4233
4234 fi
4235
4236
4237
4238
4239
4240 for ac_header in sys/select.h sys/socket.h
4241 do
4242 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4243 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4244 echo "$as_me:$LINENO: checking for $ac_header" >&5
4245 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4246 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4247 echo $ECHO_N "(cached) $ECHO_C" >&6
4248 fi
4249 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4250 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4251 else
4252 # Is the header compilable?
4253 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4254 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4255 cat >conftest.$ac_ext <<_ACEOF
4256 /* confdefs.h. */
4257 _ACEOF
4258 cat confdefs.h >>conftest.$ac_ext
4259 cat >>conftest.$ac_ext <<_ACEOF
4260 /* end confdefs.h. */
4261 $ac_includes_default
4262 #include <$ac_header>
4263 _ACEOF
4264 rm -f conftest.$ac_objext
4265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4266 (eval $ac_compile) 2>conftest.er1
4267 ac_status=$?
4268 grep -v '^ *+' conftest.er1 >conftest.err
4269 rm -f conftest.er1
4270 cat conftest.err >&5
4271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4272 (exit $ac_status); } &&
4273 { ac_try='test -z "$ac_c_werror_flag"
4274 || test ! -s conftest.err'
4275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4276 (eval $ac_try) 2>&5
4277 ac_status=$?
4278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4279 (exit $ac_status); }; } &&
4280 { ac_try='test -s conftest.$ac_objext'
4281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4282 (eval $ac_try) 2>&5
4283 ac_status=$?
4284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4285 (exit $ac_status); }; }; then
4286 ac_header_compiler=yes
4287 else
4288 echo "$as_me: failed program was:" >&5
4289 sed 's/^/| /' conftest.$ac_ext >&5
4290
4291 ac_header_compiler=no
4292 fi
4293 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4294 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4295 echo "${ECHO_T}$ac_header_compiler" >&6
4296
4297 # Is the header present?
4298 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4299 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4300 cat >conftest.$ac_ext <<_ACEOF
4301 /* confdefs.h. */
4302 _ACEOF
4303 cat confdefs.h >>conftest.$ac_ext
4304 cat >>conftest.$ac_ext <<_ACEOF
4305 /* end confdefs.h. */
4306 #include <$ac_header>
4307 _ACEOF
4308 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4309 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4310 ac_status=$?
4311 grep -v '^ *+' conftest.er1 >conftest.err
4312 rm -f conftest.er1
4313 cat conftest.err >&5
4314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4315 (exit $ac_status); } >/dev/null; then
4316 if test -s conftest.err; then
4317 ac_cpp_err=$ac_c_preproc_warn_flag
4318 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4319 else
4320 ac_cpp_err=
4321 fi
4322 else
4323 ac_cpp_err=yes
4324 fi
4325 if test -z "$ac_cpp_err"; then
4326 ac_header_preproc=yes
4327 else
4328 echo "$as_me: failed program was:" >&5
4329 sed 's/^/| /' conftest.$ac_ext >&5
4330
4331 ac_header_preproc=no
4332 fi
4333 rm -f conftest.err conftest.$ac_ext
4334 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4335 echo "${ECHO_T}$ac_header_preproc" >&6
4336
4337 # So? What about this header?
4338 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4339 yes:no: )
4340 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4341 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4342 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4343 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4344 ac_header_preproc=yes
4345 ;;
4346 no:yes:* )
4347 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4348 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4349 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4350 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4351 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4352 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4353 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4354 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4355 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4356 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4357 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4358 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4359 (
4360 cat <<\_ASBOX
4361 ## ----------------------------- ##
4362 ## Report this to [email protected] ##
4363 ## ----------------------------- ##
4364 _ASBOX
4365 ) |
4366 sed "s/^/$as_me: WARNING: /" >&2
4367 ;;
4368 esac
4369 echo "$as_me:$LINENO: checking for $ac_header" >&5
4370 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4371 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4372 echo $ECHO_N "(cached) $ECHO_C" >&6
4373 else
4374 eval "$as_ac_Header=\$ac_header_preproc"
4375 fi
4376 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4377 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4378
4379 fi
4380 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4381 cat >>confdefs.h <<_ACEOF
4382 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4383 _ACEOF
4384
4385 fi
4386
4387 done
4388
4389 echo "$as_me:$LINENO: checking types of arguments for select" >&5
4390 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
4391 if test "${ac_cv_func_select_args+set}" = set; then
4392 echo $ECHO_N "(cached) $ECHO_C" >&6
4393 else
4394 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
4395 for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
4396 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
4397 cat >conftest.$ac_ext <<_ACEOF
4398 /* confdefs.h. */
4399 _ACEOF
4400 cat confdefs.h >>conftest.$ac_ext
4401 cat >>conftest.$ac_ext <<_ACEOF
4402 /* end confdefs.h. */
4403 $ac_includes_default
4404 #if HAVE_SYS_SELECT_H
4405 # include <sys/select.h>
4406 #endif
4407 #if HAVE_SYS_SOCKET_H
4408 # include <sys/socket.h>
4409 #endif
4410
4411 int
4412 main ()
4413 {
4414 extern int select ($ac_arg1,
4415 $ac_arg234, $ac_arg234, $ac_arg234,
4416 $ac_arg5);
4417 ;
4418 return 0;
4419 }
4420 _ACEOF
4421 rm -f conftest.$ac_objext
4422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4423 (eval $ac_compile) 2>conftest.er1
4424 ac_status=$?
4425 grep -v '^ *+' conftest.er1 >conftest.err
4426 rm -f conftest.er1
4427 cat conftest.err >&5
4428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4429 (exit $ac_status); } &&
4430 { ac_try='test -z "$ac_c_werror_flag"
4431 || test ! -s conftest.err'
4432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4433 (eval $ac_try) 2>&5
4434 ac_status=$?
4435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4436 (exit $ac_status); }; } &&
4437 { ac_try='test -s conftest.$ac_objext'
4438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4439 (eval $ac_try) 2>&5
4440 ac_status=$?
4441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4442 (exit $ac_status); }; }; then
4443 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
4444 else
4445 echo "$as_me: failed program was:" >&5
4446 sed 's/^/| /' conftest.$ac_ext >&5
4447
4448 fi
4449 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4450 done
4451 done
4452 done
4453 # Provide a safe default value.
4454 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
4455
4456 fi
4457 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
4458 echo "${ECHO_T}$ac_cv_func_select_args" >&6
4459 ac_save_IFS=$IFS; IFS=','
4460 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
4461 IFS=$ac_save_IFS
4462 shift
4463
4464 cat >>confdefs.h <<_ACEOF
4465 #define SELECT_TYPE_ARG1 $1
4466 _ACEOF
4467
4468
4469 cat >>confdefs.h <<_ACEOF
4470 #define SELECT_TYPE_ARG234 ($2)
4471 _ACEOF
4472
4473
4474 cat >>confdefs.h <<_ACEOF
4475 #define SELECT_TYPE_ARG5 ($3)
4476 _ACEOF
4477
4478 rm -f conftest*
4479
4480 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
4481 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
4482 if test "${ac_cv_type_signal+set}" = set; then
4483 echo $ECHO_N "(cached) $ECHO_C" >&6
4484 else
4485 cat >conftest.$ac_ext <<_ACEOF
4486 /* confdefs.h. */
4487 _ACEOF
4488 cat confdefs.h >>conftest.$ac_ext
4489 cat >>conftest.$ac_ext <<_ACEOF
4490 /* end confdefs.h. */
4491 #include <sys/types.h>
4492 #include <signal.h>
4493 #ifdef signal
4494 # undef signal
4495 #endif
4496 #ifdef __cplusplus
4497 extern "C" void (*signal (int, void (*)(int)))(int);
4498 #else
4499 void (*signal ()) ();
4500 #endif
4501
4502 int
4503 main ()
4504 {
4505 int i;
4506 ;
4507 return 0;
4508 }
4509 _ACEOF
4510 rm -f conftest.$ac_objext
4511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4512 (eval $ac_compile) 2>conftest.er1
4513 ac_status=$?
4514 grep -v '^ *+' conftest.er1 >conftest.err
4515 rm -f conftest.er1
4516 cat conftest.err >&5
4517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4518 (exit $ac_status); } &&
4519 { ac_try='test -z "$ac_c_werror_flag"
4520 || test ! -s conftest.err'
4521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4522 (eval $ac_try) 2>&5
4523 ac_status=$?
4524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4525 (exit $ac_status); }; } &&
4526 { ac_try='test -s conftest.$ac_objext'
4527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4528 (eval $ac_try) 2>&5
4529 ac_status=$?
4530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4531 (exit $ac_status); }; }; then
4532 ac_cv_type_signal=void
4533 else
4534 echo "$as_me: failed program was:" >&5
4535 sed 's/^/| /' conftest.$ac_ext >&5
4536
4537 ac_cv_type_signal=int
4538 fi
4539 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4540 fi
4541 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
4542 echo "${ECHO_T}$ac_cv_type_signal" >&6
4543
4544 cat >>confdefs.h <<_ACEOF
4545 #define RETSIGTYPE $ac_cv_type_signal
4546 _ACEOF
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559 for ac_func in dup2 gethostbyname inet_ntoa memset regcomp select socket strchr strncasecmp daemon
4560 do
4561 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4562 echo "$as_me:$LINENO: checking for $ac_func" >&5
4563 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4564 if eval "test \"\${$as_ac_var+set}\" = set"; then
4565 echo $ECHO_N "(cached) $ECHO_C" >&6
4566 else
4567 cat >conftest.$ac_ext <<_ACEOF
4568 /* confdefs.h. */
4569 _ACEOF
4570 cat confdefs.h >>conftest.$ac_ext
4571 cat >>conftest.$ac_ext <<_ACEOF
4572 /* end confdefs.h. */
4573 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4574 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4575 #define $ac_func innocuous_$ac_func
4576
4577 /* System header to define __stub macros and hopefully few prototypes,
4578 which can conflict with char $ac_func (); below.
4579 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4580 <limits.h> exists even on freestanding compilers. */
4581
4582 #ifdef __STDC__
4583 # include <limits.h>
4584 #else
4585 # include <assert.h>
4586 #endif
4587
4588 #undef $ac_func
4589
4590 /* Override any gcc2 internal prototype to avoid an error. */
4591 #ifdef __cplusplus
4592 extern "C"
4593 {
4594 #endif
4595 /* We use char because int might match the return type of a gcc2
4596 builtin and then its argument prototype would still apply. */
4597 char $ac_func ();
4598 /* The GNU C library defines this for functions which it implements
4599 to always fail with ENOSYS. Some functions are actually named
4600 something starting with __ and the normal name is an alias. */
4601 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4602 choke me
4603 #else
4604 char (*f) () = $ac_func;
4605 #endif
4606 #ifdef __cplusplus
4607 }
4608 #endif
4609
4610 int
4611 main ()
4612 {
4613 return f != $ac_func;
4614 ;
4615 return 0;
4616 }
4617 _ACEOF
4618 rm -f conftest.$ac_objext conftest$ac_exeext
4619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4620 (eval $ac_link) 2>conftest.er1
4621 ac_status=$?
4622 grep -v '^ *+' conftest.er1 >conftest.err
4623 rm -f conftest.er1
4624 cat conftest.err >&5
4625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4626 (exit $ac_status); } &&
4627 { ac_try='test -z "$ac_c_werror_flag"
4628 || test ! -s conftest.err'
4629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4630 (eval $ac_try) 2>&5
4631 ac_status=$?
4632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4633 (exit $ac_status); }; } &&
4634 { ac_try='test -s conftest$ac_exeext'
4635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4636 (eval $ac_try) 2>&5
4637 ac_status=$?
4638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4639 (exit $ac_status); }; }; then
4640 eval "$as_ac_var=yes"
4641 else
4642 echo "$as_me: failed program was:" >&5
4643 sed 's/^/| /' conftest.$ac_ext >&5
4644
4645 eval "$as_ac_var=no"
4646 fi
4647 rm -f conftest.err conftest.$ac_objext \
4648 conftest$ac_exeext conftest.$ac_ext
4649 fi
4650 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4651 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4652 if test `eval echo '${'$as_ac_var'}'` = yes; then
4653 cat >>confdefs.h <<_ACEOF
4654 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4655 _ACEOF
4656
4657 fi
4658 done
4659
4660
4661 ac_config_files="$ac_config_files Makefile"
4662
4663 cat >confcache <<\_ACEOF
4664 # This file is a shell script that caches the results of configure
4665 # tests run on this system so they can be shared between configure
4666 # scripts and configure runs, see configure's option --config-cache.
4667 # It is not useful on other systems. If it contains results you don't
4668 # want to keep, you may remove or edit it.
4669 #
4670 # config.status only pays attention to the cache file if you give it
4671 # the --recheck option to rerun configure.
4672 #
4673 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4674 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4675 # following values.
4676
4677 _ACEOF
4678
4679 # The following way of writing the cache mishandles newlines in values,
4680 # but we know of no workaround that is simple, portable, and efficient.
4681 # So, don't put newlines in cache variables' values.
4682 # Ultrix sh set writes to stderr and can't be redirected directly,
4683 # and sets the high bit in the cache file unless we assign to the vars.
4684 {
4685 (set) 2>&1 |
4686 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4687 *ac_space=\ *)
4688 # `set' does not quote correctly, so add quotes (double-quote
4689 # substitution turns \\\\ into \\, and sed turns \\ into \).
4690 sed -n \
4691 "s/'/'\\\\''/g;
4692 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4693 ;;
4694 *)
4695 # `set' quotes correctly as required by POSIX, so do not add quotes.
4696 sed -n \
4697 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4698 ;;
4699 esac;
4700 } |
4701 sed '
4702 t clear
4703 : clear
4704 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4705 t end
4706 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4707 : end' >>confcache
4708 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4709 if test -w $cache_file; then
4710 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4711 cat confcache >$cache_file
4712 else
4713 echo "not updating unwritable cache $cache_file"
4714 fi
4715 fi
4716 rm -f confcache
4717
4718 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4719 # Let make expand exec_prefix.
4720 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4721
4722 # VPATH may cause trouble with some makes, so we remove $(srcdir),
4723 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4724 # trailing colons and then remove the whole line if VPATH becomes empty
4725 # (actually we leave an empty line to preserve line numbers).
4726 if test "x$srcdir" = x.; then
4727 ac_vpsub='/^[ ]*VPATH[ ]*=/{
4728 s/:*\$(srcdir):*/:/;
4729 s/:*\${srcdir}:*/:/;
4730 s/:*@srcdir@:*/:/;
4731 s/^\([^=]*=[ ]*\):*/\1/;
4732 s/:*$//;
4733 s/^[^=]*=[ ]*$//;
4734 }'
4735 fi
4736
4737 DEFS=-DHAVE_CONFIG_H
4738
4739 ac_libobjs=
4740 ac_ltlibobjs=
4741 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4742 # 1. Remove the extension, and $U if already installed.
4743 ac_i=`echo "$ac_i" |
4744 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
4745 # 2. Add them.
4746 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
4747 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
4748 done
4749 LIBOBJS=$ac_libobjs
4750
4751 LTLIBOBJS=$ac_ltlibobjs
4752
4753
4754
4755 : ${CONFIG_STATUS=./config.status}
4756 ac_clean_files_save=$ac_clean_files
4757 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4758 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
4759 echo "$as_me: creating $CONFIG_STATUS" >&6;}
4760 cat >$CONFIG_STATUS <<_ACEOF
4761 #! $SHELL
4762 # Generated by $as_me.
4763 # Run this file to recreate the current configuration.
4764 # Compiler output produced by configure, useful for debugging
4765 # configure, is in config.log if it exists.
4766
4767 debug=false
4768 ac_cs_recheck=false
4769 ac_cs_silent=false
4770 SHELL=\${CONFIG_SHELL-$SHELL}
4771 _ACEOF
4772
4773 cat >>$CONFIG_STATUS <<\_ACEOF
4774 ## --------------------- ##
4775 ## M4sh Initialization. ##
4776 ## --------------------- ##
4777
4778 # Be Bourne compatible
4779 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4780 emulate sh
4781 NULLCMD=:
4782 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
4783 # is contrary to our usage. Disable this feature.
4784 alias -g '${1+"$@"}'='"$@"'
4785 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
4786 set -o posix
4787 fi
4788 DUALCASE=1; export DUALCASE # for MKS sh
4789
4790 # Support unset when possible.
4791 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4792 as_unset=unset
4793 else
4794 as_unset=false
4795 fi
4796
4797
4798 # Work around bugs in pre-3.0 UWIN ksh.
4799 $as_unset ENV MAIL MAILPATH
4800 PS1='$ '
4801 PS2='> '
4802 PS4='+ '
4803
4804 # NLS nuisances.
4805 for as_var in \
4806 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
4807 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
4808 LC_TELEPHONE LC_TIME
4809 do
4810 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
4811 eval $as_var=C; export $as_var
4812 else
4813 $as_unset $as_var
4814 fi
4815 done
4816
4817 # Required to use basename.
4818 if expr a : '\(a\)' >/dev/null 2>&1; then
4819 as_expr=expr
4820 else
4821 as_expr=false
4822 fi
4823
4824 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
4825 as_basename=basename
4826 else
4827 as_basename=false
4828 fi
4829
4830
4831 # Name of the executable.
4832 as_me=`$as_basename "$0" ||
4833 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4834 X"$0" : 'X\(//\)$' \| \
4835 X"$0" : 'X\(/\)$' \| \
4836 . : '\(.\)' 2>/dev/null ||
4837 echo X/"$0" |
4838 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
4839 /^X\/\(\/\/\)$/{ s//\1/; q; }
4840 /^X\/\(\/\).*/{ s//\1/; q; }
4841 s/.*/./; q'`
4842
4843
4844 # PATH needs CR, and LINENO needs CR and PATH.
4845 # Avoid depending upon Character Ranges.
4846 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4847 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4848 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4849 as_cr_digits='0123456789'
4850 as_cr_alnum=$as_cr_Letters$as_cr_digits
4851
4852 # The user is always right.
4853 if test "${PATH_SEPARATOR+set}" != set; then
4854 echo "#! /bin/sh" >conf$$.sh
4855 echo "exit 0" >>conf$$.sh
4856 chmod +x conf$$.sh
4857 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4858 PATH_SEPARATOR=';'
4859 else
4860 PATH_SEPARATOR=:
4861 fi
4862 rm -f conf$$.sh
4863 fi
4864
4865
4866 as_lineno_1=$LINENO
4867 as_lineno_2=$LINENO
4868 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4869 test "x$as_lineno_1" != "x$as_lineno_2" &&
4870 test "x$as_lineno_3" = "x$as_lineno_2" || {
4871 # Find who we are. Look in the path if we contain no path at all
4872 # relative or not.
4873 case $0 in
4874 *[\\/]* ) as_myself=$0 ;;
4875 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4876 for as_dir in $PATH
4877 do
4878 IFS=$as_save_IFS
4879 test -z "$as_dir" && as_dir=.
4880 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4881 done
4882
4883 ;;
4884 esac
4885 # We did not find ourselves, most probably we were run as `sh COMMAND'
4886 # in which case we are not to be found in the path.
4887 if test "x$as_myself" = x; then
4888 as_myself=$0
4889 fi
4890 if test ! -f "$as_myself"; then
4891 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
4892 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
4893 { (exit 1); exit 1; }; }
4894 fi
4895 case $CONFIG_SHELL in
4896 '')
4897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4898 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
4899 do
4900 IFS=$as_save_IFS
4901 test -z "$as_dir" && as_dir=.
4902 for as_base in sh bash ksh sh5; do
4903 case $as_dir in
4904 /*)
4905 if ("$as_dir/$as_base" -c '
4906 as_lineno_1=$LINENO
4907 as_lineno_2=$LINENO
4908 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4909 test "x$as_lineno_1" != "x$as_lineno_2" &&
4910 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
4911 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
4912 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
4913 CONFIG_SHELL=$as_dir/$as_base
4914 export CONFIG_SHELL
4915 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
4916 fi;;
4917 esac
4918 done
4919 done
4920 ;;
4921 esac
4922
4923 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4924 # uniformly replaced by the line number. The first 'sed' inserts a
4925 # line-number line before each line; the second 'sed' does the real
4926 # work. The second script uses 'N' to pair each line-number line
4927 # with the numbered line, and appends trailing '-' during
4928 # substitution so that $LINENO is not a special case at line end.
4929 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4930 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
4931 sed '=' <$as_myself |
4932 sed '
4933 N
4934 s,$,-,
4935 : loop
4936 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
4937 t loop
4938 s,-$,,
4939 s,^['$as_cr_digits']*\n,,
4940 ' >$as_me.lineno &&
4941 chmod +x $as_me.lineno ||
4942 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
4943 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
4944 { (exit 1); exit 1; }; }
4945
4946 # Don't try to exec as it changes $[0], causing all sort of problems
4947 # (the dirname of $[0] is not the place where we might find the
4948 # original and so on. Autoconf is especially sensible to this).
4949 . ./$as_me.lineno
4950 # Exit status is that of the last command.
4951 exit
4952 }
4953
4954
4955 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
4956 *c*,-n*) ECHO_N= ECHO_C='
4957 ' ECHO_T=' ' ;;
4958 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
4959 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
4960 esac
4961
4962 if expr a : '\(a\)' >/dev/null 2>&1; then
4963 as_expr=expr
4964 else
4965 as_expr=false
4966 fi
4967
4968 rm -f conf$$ conf$$.exe conf$$.file
4969 echo >conf$$.file
4970 if ln -s conf$$.file conf$$ 2>/dev/null; then
4971 # We could just check for DJGPP; but this test a) works b) is more generic
4972 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4973 if test -f conf$$.exe; then
4974 # Don't use ln at all; we don't have any links
4975 as_ln_s='cp -p'
4976 else
4977 as_ln_s='ln -s'
4978 fi
4979 elif ln conf$$.file conf$$ 2>/dev/null; then
4980 as_ln_s=ln
4981 else
4982 as_ln_s='cp -p'
4983 fi
4984 rm -f conf$$ conf$$.exe conf$$.file
4985
4986 if mkdir -p . 2>/dev/null; then
4987 as_mkdir_p=:
4988 else
4989 test -d ./-p && rmdir ./-p
4990 as_mkdir_p=false
4991 fi
4992
4993 as_executable_p="test -f"
4994
4995 # Sed expression to map a string onto a valid CPP name.
4996 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4997
4998 # Sed expression to map a string onto a valid variable name.
4999 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5000
5001
5002 # IFS
5003 # We need space, tab and new line, in precisely that order.
5004 as_nl='
5005 '
5006 IFS=" $as_nl"
5007
5008 # CDPATH.
5009 $as_unset CDPATH
5010
5011 exec 6>&1
5012
5013 # Open the log real soon, to keep \$[0] and so on meaningful, and to
5014 # report actual input values of CONFIG_FILES etc. instead of their
5015 # values after options handling. Logging --version etc. is OK.
5016 exec 5>>config.log
5017 {
5018 echo
5019 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5020 ## Running $as_me. ##
5021 _ASBOX
5022 } >&5
5023 cat >&5 <<_CSEOF
5024
5025 This file was extended by ffproxy $as_me 1.6, which was
5026 generated by GNU Autoconf 2.59. Invocation command line was
5027
5028 CONFIG_FILES = $CONFIG_FILES
5029 CONFIG_HEADERS = $CONFIG_HEADERS
5030 CONFIG_LINKS = $CONFIG_LINKS
5031 CONFIG_COMMANDS = $CONFIG_COMMANDS
5032 $ $0 $@
5033
5034 _CSEOF
5035 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
5036 echo >&5
5037 _ACEOF
5038
5039 # Files that config.status was made for.
5040 if test -n "$ac_config_files"; then
5041 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5042 fi
5043
5044 if test -n "$ac_config_headers"; then
5045 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5046 fi
5047
5048 if test -n "$ac_config_links"; then
5049 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5050 fi
5051
5052 if test -n "$ac_config_commands"; then
5053 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5054 fi
5055
5056 cat >>$CONFIG_STATUS <<\_ACEOF
5057
5058 ac_cs_usage="\
5059 \`$as_me' instantiates files from templates according to the
5060 current configuration.
5061
5062 Usage: $0 [OPTIONS] [FILE]...
5063
5064 -h, --help print this help, then exit
5065 -V, --version print version number, then exit
5066 -q, --quiet do not print progress messages
5067 -d, --debug don't remove temporary files
5068 --recheck update $as_me by reconfiguring in the same conditions
5069 --file=FILE[:TEMPLATE]
5070 instantiate the configuration file FILE
5071 --header=FILE[:TEMPLATE]
5072 instantiate the configuration header FILE
5073
5074 Configuration files:
5075 $config_files
5076
5077 Configuration headers:
5078 $config_headers
5079
5080 Report bugs to <[email protected]>."
5081 _ACEOF
5082
5083 cat >>$CONFIG_STATUS <<_ACEOF
5084 ac_cs_version="\\
5085 ffproxy config.status 1.6
5086 configured by $0, generated by GNU Autoconf 2.59,
5087 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5088
5089 Copyright (C) 2003 Free Software Foundation, Inc.
5090 This config.status script is free software; the Free Software Foundation
5091 gives unlimited permission to copy, distribute and modify it."
5092 srcdir=$srcdir
5093 INSTALL="$INSTALL"
5094 _ACEOF
5095
5096 cat >>$CONFIG_STATUS <<\_ACEOF
5097 # If no file are specified by the user, then we need to provide default
5098 # value. By we need to know if files were specified by the user.
5099 ac_need_defaults=:
5100 while test $# != 0
5101 do
5102 case $1 in
5103 --*=*)
5104 ac_option=`expr "x$1" : 'x\([^=]*\)='`
5105 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5106 ac_shift=:
5107 ;;
5108 -*)
5109 ac_option=$1
5110 ac_optarg=$2
5111 ac_shift=shift
5112 ;;
5113 *) # This is not an option, so the user has probably given explicit
5114 # arguments.
5115 ac_option=$1
5116 ac_need_defaults=false;;
5117 esac
5118
5119 case $ac_option in
5120 # Handling of the options.
5121 _ACEOF
5122 cat >>$CONFIG_STATUS <<\_ACEOF
5123 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5124 ac_cs_recheck=: ;;
5125 --version | --vers* | -V )
5126 echo "$ac_cs_version"; exit 0 ;;
5127 --he | --h)
5128 # Conflict between --help and --header
5129 { { echo "$as_me:$LINENO: error: ambiguous option: $1
5130 Try \`$0 --help' for more information." >&5
5131 echo "$as_me: error: ambiguous option: $1
5132 Try \`$0 --help' for more information." >&2;}
5133 { (exit 1); exit 1; }; };;
5134 --help | --hel | -h )
5135 echo "$ac_cs_usage"; exit 0 ;;
5136 --debug | --d* | -d )
5137 debug=: ;;
5138 --file | --fil | --fi | --f )
5139 $ac_shift
5140 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5141 ac_need_defaults=false;;
5142 --header | --heade | --head | --hea )
5143 $ac_shift
5144 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5145 ac_need_defaults=false;;
5146 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5147 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5148 ac_cs_silent=: ;;
5149
5150 # This is an error.
5151 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5152 Try \`$0 --help' for more information." >&5
5153 echo "$as_me: error: unrecognized option: $1
5154 Try \`$0 --help' for more information." >&2;}
5155 { (exit 1); exit 1; }; } ;;
5156
5157 *) ac_config_targets="$ac_config_targets $1" ;;
5158
5159 esac
5160 shift
5161 done
5162
5163 ac_configure_extra_args=
5164
5165 if $ac_cs_silent; then
5166 exec 6>/dev/null
5167 ac_configure_extra_args="$ac_configure_extra_args --silent"
5168 fi
5169
5170 _ACEOF
5171 cat >>$CONFIG_STATUS <<_ACEOF
5172 if \$ac_cs_recheck; then
5173 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5174 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5175 fi
5176
5177 _ACEOF
5178
5179
5180
5181
5182
5183 cat >>$CONFIG_STATUS <<\_ACEOF
5184 for ac_config_target in $ac_config_targets
5185 do
5186 case "$ac_config_target" in
5187 # Handling of arguments.
5188 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5189 "configure.h" ) CONFIG_HEADERS="$CONFIG_HEADERS configure.h" ;;
5190 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5191 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5192 { (exit 1); exit 1; }; };;
5193 esac
5194 done
5195
5196 # If the user did not use the arguments to specify the items to instantiate,
5197 # then the envvar interface is used. Set only those that are not.
5198 # We use the long form for the default assignment because of an extremely
5199 # bizarre bug on SunOS 4.1.3.
5200 if $ac_need_defaults; then
5201 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5202 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5203 fi
5204
5205 # Have a temporary directory for convenience. Make it in the build tree
5206 # simply because there is no reason to put it here, and in addition,
5207 # creating and moving files from /tmp can sometimes cause problems.
5208 # Create a temporary directory, and hook for its removal unless debugging.
5209 $debug ||
5210 {
5211 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5212 trap '{ (exit 1); exit 1; }' 1 2 13 15
5213 }
5214
5215 # Create a (secure) tmp directory for tmp files.
5216
5217 {
5218 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
5219 test -n "$tmp" && test -d "$tmp"
5220 } ||
5221 {
5222 tmp=./confstat$$-$RANDOM
5223 (umask 077 && mkdir $tmp)
5224 } ||
5225 {
5226 echo "$me: cannot create a temporary directory in ." >&2
5227 { (exit 1); exit 1; }
5228 }
5229
5230 _ACEOF
5231
5232 cat >>$CONFIG_STATUS <<_ACEOF
5233
5234 #
5235 # CONFIG_FILES section.
5236 #
5237
5238 # No need to generate the scripts if there are no CONFIG_FILES.
5239 # This happens for instance when ./config.status config.h
5240 if test -n "\$CONFIG_FILES"; then
5241 # Protect against being on the right side of a sed subst in config.status.
5242 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5243 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5244 s,@SHELL@,$SHELL,;t t
5245 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5246 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5247 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5248 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5249 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5250 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5251 s,@exec_prefix@,$exec_prefix,;t t
5252 s,@prefix@,$prefix,;t t
5253 s,@program_transform_name@,$program_transform_name,;t t
5254 s,@bindir@,$bindir,;t t
5255 s,@sbindir@,$sbindir,;t t
5256 s,@libexecdir@,$libexecdir,;t t
5257 s,@datadir@,$datadir,;t t
5258 s,@sysconfdir@,$sysconfdir,;t t
5259 s,@sharedstatedir@,$sharedstatedir,;t t
5260 s,@localstatedir@,$localstatedir,;t t
5261 s,@libdir@,$libdir,;t t
5262 s,@includedir@,$includedir,;t t
5263 s,@oldincludedir@,$oldincludedir,;t t
5264 s,@infodir@,$infodir,;t t
5265 s,@mandir@,$mandir,;t t
5266 s,@build_alias@,$build_alias,;t t
5267 s,@host_alias@,$host_alias,;t t
5268 s,@target_alias@,$target_alias,;t t
5269 s,@DEFS@,$DEFS,;t t
5270 s,@ECHO_C@,$ECHO_C,;t t
5271 s,@ECHO_N@,$ECHO_N,;t t
5272 s,@ECHO_T@,$ECHO_T,;t t
5273 s,@LIBS@,$LIBS,;t t
5274 s,@CC@,$CC,;t t
5275 s,@CFLAGS@,$CFLAGS,;t t
5276 s,@LDFLAGS@,$LDFLAGS,;t t
5277 s,@CPPFLAGS@,$CPPFLAGS,;t t
5278 s,@ac_ct_CC@,$ac_ct_CC,;t t
5279 s,@EXEEXT@,$EXEEXT,;t t
5280 s,@OBJEXT@,$OBJEXT,;t t
5281 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
5282 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
5283 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
5284 s,@CPP@,$CPP,;t t
5285 s,@EGREP@,$EGREP,;t t
5286 s,@LIBOBJS@,$LIBOBJS,;t t
5287 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
5288 CEOF
5289
5290 _ACEOF
5291
5292 cat >>$CONFIG_STATUS <<\_ACEOF
5293 # Split the substitutions into bite-sized pieces for seds with
5294 # small command number limits, like on Digital OSF/1 and HP-UX.
5295 ac_max_sed_lines=48
5296 ac_sed_frag=1 # Number of current file.
5297 ac_beg=1 # First line for current file.
5298 ac_end=$ac_max_sed_lines # Line after last line for current file.
5299 ac_more_lines=:
5300 ac_sed_cmds=
5301 while $ac_more_lines; do
5302 if test $ac_beg -gt 1; then
5303 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5304 else
5305 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5306 fi
5307 if test ! -s $tmp/subs.frag; then
5308 ac_more_lines=false
5309 else
5310 # The purpose of the label and of the branching condition is to
5311 # speed up the sed processing (if there are no `@' at all, there
5312 # is no need to browse any of the substitutions).
5313 # These are the two extra sed commands mentioned above.
5314 (echo ':t
5315 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
5316 if test -z "$ac_sed_cmds"; then
5317 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
5318 else
5319 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5320 fi
5321 ac_sed_frag=`expr $ac_sed_frag + 1`
5322 ac_beg=$ac_end
5323 ac_end=`expr $ac_end + $ac_max_sed_lines`
5324 fi
5325 done
5326 if test -z "$ac_sed_cmds"; then
5327 ac_sed_cmds=cat
5328 fi
5329 fi # test -n "$CONFIG_FILES"
5330
5331 _ACEOF
5332 cat >>$CONFIG_STATUS <<\_ACEOF
5333 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5334 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5335 case $ac_file in
5336 - | *:- | *:-:* ) # input from stdin
5337 cat >$tmp/stdin
5338 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5339 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5340 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5341 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5342 * ) ac_file_in=$ac_file.in ;;
5343 esac
5344
5345 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5346 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5347 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5348 X"$ac_file" : 'X\(//\)[^/]' \| \
5349 X"$ac_file" : 'X\(//\)$' \| \
5350 X"$ac_file" : 'X\(/\)' \| \
5351 . : '\(.\)' 2>/dev/null ||
5352 echo X"$ac_file" |
5353 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5354 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5355 /^X\(\/\/\)$/{ s//\1/; q; }
5356 /^X\(\/\).*/{ s//\1/; q; }
5357 s/.*/./; q'`
5358 { if $as_mkdir_p; then
5359 mkdir -p "$ac_dir"
5360 else
5361 as_dir="$ac_dir"
5362 as_dirs=
5363 while test ! -d "$as_dir"; do
5364 as_dirs="$as_dir $as_dirs"
5365 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5366 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5367 X"$as_dir" : 'X\(//\)[^/]' \| \
5368 X"$as_dir" : 'X\(//\)$' \| \
5369 X"$as_dir" : 'X\(/\)' \| \
5370 . : '\(.\)' 2>/dev/null ||
5371 echo X"$as_dir" |
5372 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5373 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5374 /^X\(\/\/\)$/{ s//\1/; q; }
5375 /^X\(\/\).*/{ s//\1/; q; }
5376 s/.*/./; q'`
5377 done
5378 test ! -n "$as_dirs" || mkdir $as_dirs
5379 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5380 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5381 { (exit 1); exit 1; }; }; }
5382
5383 ac_builddir=.
5384
5385 if test "$ac_dir" != .; then
5386 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5387 # A "../" for each directory in $ac_dir_suffix.
5388 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5389 else
5390 ac_dir_suffix= ac_top_builddir=
5391 fi
5392
5393 case $srcdir in
5394 .) # No --srcdir option. We are building in place.
5395 ac_srcdir=.
5396 if test -z "$ac_top_builddir"; then
5397 ac_top_srcdir=.
5398 else
5399 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5400 fi ;;
5401 [\\/]* | ?:[\\/]* ) # Absolute path.
5402 ac_srcdir=$srcdir$ac_dir_suffix;
5403 ac_top_srcdir=$srcdir ;;
5404 *) # Relative path.
5405 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5406 ac_top_srcdir=$ac_top_builddir$srcdir ;;
5407 esac
5408
5409 # Do not use `cd foo && pwd` to compute absolute paths, because
5410 # the directories may not exist.
5411 case `pwd` in
5412 .) ac_abs_builddir="$ac_dir";;
5413 *)
5414 case "$ac_dir" in
5415 .) ac_abs_builddir=`pwd`;;
5416 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
5417 *) ac_abs_builddir=`pwd`/"$ac_dir";;
5418 esac;;
5419 esac
5420 case $ac_abs_builddir in
5421 .) ac_abs_top_builddir=${ac_top_builddir}.;;
5422 *)
5423 case ${ac_top_builddir}. in
5424 .) ac_abs_top_builddir=$ac_abs_builddir;;
5425 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
5426 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
5427 esac;;
5428 esac
5429 case $ac_abs_builddir in
5430 .) ac_abs_srcdir=$ac_srcdir;;
5431 *)
5432 case $ac_srcdir in
5433 .) ac_abs_srcdir=$ac_abs_builddir;;
5434 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
5435 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
5436 esac;;
5437 esac
5438 case $ac_abs_builddir in
5439 .) ac_abs_top_srcdir=$ac_top_srcdir;;
5440 *)
5441 case $ac_top_srcdir in
5442 .) ac_abs_top_srcdir=$ac_abs_builddir;;
5443 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
5444 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
5445 esac;;
5446 esac
5447
5448
5449 case $INSTALL in
5450 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5451 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
5452 esac
5453
5454 if test x"$ac_file" != x-; then
5455 { echo "$as_me:$LINENO: creating $ac_file" >&5
5456 echo "$as_me: creating $ac_file" >&6;}
5457 rm -f "$ac_file"
5458 fi
5459 # Let's still pretend it is `configure' which instantiates (i.e., don't
5460 # use $as_me), people would be surprised to read:
5461 # /* config.h. Generated by config.status. */
5462 if test x"$ac_file" = x-; then
5463 configure_input=
5464 else
5465 configure_input="$ac_file. "
5466 fi
5467 configure_input=$configure_input"Generated from `echo $ac_file_in |
5468 sed 's,.*/,,'` by configure."
5469
5470 # First look for the input files in the build tree, otherwise in the
5471 # src tree.
5472 ac_file_inputs=`IFS=:
5473 for f in $ac_file_in; do
5474 case $f in
5475 -) echo $tmp/stdin ;;
5476 [\\/$]*)
5477 # Absolute (can't be DOS-style, as IFS=:)
5478 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5479 echo "$as_me: error: cannot find input file: $f" >&2;}
5480 { (exit 1); exit 1; }; }
5481 echo "$f";;
5482 *) # Relative
5483 if test -f "$f"; then
5484 # Build tree
5485 echo "$f"
5486 elif test -f "$srcdir/$f"; then
5487 # Source tree
5488 echo "$srcdir/$f"
5489 else
5490 # /dev/null tree
5491 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5492 echo "$as_me: error: cannot find input file: $f" >&2;}
5493 { (exit 1); exit 1; }; }
5494 fi;;
5495 esac
5496 done` || { (exit 1); exit 1; }
5497 _ACEOF
5498 cat >>$CONFIG_STATUS <<_ACEOF
5499 sed "$ac_vpsub
5500 $extrasub
5501 _ACEOF
5502 cat >>$CONFIG_STATUS <<\_ACEOF
5503 :t
5504 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5505 s,@configure_input@,$configure_input,;t t
5506 s,@srcdir@,$ac_srcdir,;t t
5507 s,@abs_srcdir@,$ac_abs_srcdir,;t t
5508 s,@top_srcdir@,$ac_top_srcdir,;t t
5509 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
5510 s,@builddir@,$ac_builddir,;t t
5511 s,@abs_builddir@,$ac_abs_builddir,;t t
5512 s,@top_builddir@,$ac_top_builddir,;t t
5513 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
5514 s,@INSTALL@,$ac_INSTALL,;t t
5515 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5516 rm -f $tmp/stdin
5517 if test x"$ac_file" != x-; then
5518 mv $tmp/out $ac_file
5519 else
5520 cat $tmp/out
5521 rm -f $tmp/out
5522 fi
5523
5524 done
5525 _ACEOF
5526 cat >>$CONFIG_STATUS <<\_ACEOF
5527
5528 #
5529 # CONFIG_HEADER section.
5530 #
5531
5532 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5533 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5534 #
5535 # ac_d sets the value in "#define NAME VALUE" lines.
5536 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5537 ac_dB='[ ].*$,\1#\2'
5538 ac_dC=' '
5539 ac_dD=',;t'
5540 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5541 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5542 ac_uB='$,\1#\2define\3'
5543 ac_uC=' '
5544 ac_uD=',;t'
5545
5546 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
5547 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5548 case $ac_file in
5549 - | *:- | *:-:* ) # input from stdin
5550 cat >$tmp/stdin
5551 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5552 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5553 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5554 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5555 * ) ac_file_in=$ac_file.in ;;
5556 esac
5557
5558 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
5559 echo "$as_me: creating $ac_file" >&6;}
5560
5561 # First look for the input files in the build tree, otherwise in the
5562 # src tree.
5563 ac_file_inputs=`IFS=:
5564 for f in $ac_file_in; do
5565 case $f in
5566 -) echo $tmp/stdin ;;
5567 [\\/$]*)
5568 # Absolute (can't be DOS-style, as IFS=:)
5569 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5570 echo "$as_me: error: cannot find input file: $f" >&2;}
5571 { (exit 1); exit 1; }; }
5572 # Do quote $f, to prevent DOS paths from being IFS'd.
5573 echo "$f";;
5574 *) # Relative
5575 if test -f "$f"; then
5576 # Build tree
5577 echo "$f"
5578 elif test -f "$srcdir/$f"; then
5579 # Source tree
5580 echo "$srcdir/$f"
5581 else
5582 # /dev/null tree
5583 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5584 echo "$as_me: error: cannot find input file: $f" >&2;}
5585 { (exit 1); exit 1; }; }
5586 fi;;
5587 esac
5588 done` || { (exit 1); exit 1; }
5589 # Remove the trailing spaces.
5590 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
5591
5592 _ACEOF
5593
5594 # Transform confdefs.h into two sed scripts, `conftest.defines' and
5595 # `conftest.undefs', that substitutes the proper values into
5596 # config.h.in to produce config.h. The first handles `#define'
5597 # templates, and the second `#undef' templates.
5598 # And first: Protect against being on the right side of a sed subst in
5599 # config.status. Protect against being in an unquoted here document
5600 # in config.status.
5601 rm -f conftest.defines conftest.undefs
5602 # Using a here document instead of a string reduces the quoting nightmare.
5603 # Putting comments in sed scripts is not portable.
5604 #
5605 # `end' is used to avoid that the second main sed command (meant for
5606 # 0-ary CPP macros) applies to n-ary macro definitions.
5607 # See the Autoconf documentation for `clear'.
5608 cat >confdef2sed.sed <<\_ACEOF
5609 s/[\\&,]/\\&/g
5610 s,[\\$`],\\&,g
5611 t clear
5612 : clear
5613 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
5614 t end
5615 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
5616 : end
5617 _ACEOF
5618 # If some macros were called several times there might be several times
5619 # the same #defines, which is useless. Nevertheless, we may not want to
5620 # sort them, since we want the *last* AC-DEFINE to be honored.
5621 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
5622 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
5623 rm -f confdef2sed.sed
5624
5625 # This sed command replaces #undef with comments. This is necessary, for
5626 # example, in the case of _POSIX_SOURCE, which is predefined and required
5627 # on some systems where configure will not decide to define it.
5628 cat >>conftest.undefs <<\_ACEOF
5629 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
5630 _ACEOF
5631
5632 # Break up conftest.defines because some shells have a limit on the size
5633 # of here documents, and old seds have small limits too (100 cmds).
5634 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
5635 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
5636 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
5637 echo ' :' >>$CONFIG_STATUS
5638 rm -f conftest.tail
5639 while grep . conftest.defines >/dev/null
5640 do
5641 # Write a limited-size here document to $tmp/defines.sed.
5642 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
5643 # Speed up: don't consider the non `#define' lines.
5644 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
5645 # Work around the forget-to-reset-the-flag bug.
5646 echo 't clr' >>$CONFIG_STATUS
5647 echo ': clr' >>$CONFIG_STATUS
5648 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
5649 echo 'CEOF
5650 sed -f $tmp/defines.sed $tmp/in >$tmp/out
5651 rm -f $tmp/in
5652 mv $tmp/out $tmp/in
5653 ' >>$CONFIG_STATUS
5654 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
5655 rm -f conftest.defines
5656 mv conftest.tail conftest.defines
5657 done
5658 rm -f conftest.defines
5659 echo ' fi # grep' >>$CONFIG_STATUS
5660 echo >>$CONFIG_STATUS
5661
5662 # Break up conftest.undefs because some shells have a limit on the size
5663 # of here documents, and old seds have small limits too (100 cmds).
5664 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
5665 rm -f conftest.tail
5666 while grep . conftest.undefs >/dev/null
5667 do
5668 # Write a limited-size here document to $tmp/undefs.sed.
5669 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
5670 # Speed up: don't consider the non `#undef'
5671 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
5672 # Work around the forget-to-reset-the-flag bug.
5673 echo 't clr' >>$CONFIG_STATUS
5674 echo ': clr' >>$CONFIG_STATUS
5675 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
5676 echo 'CEOF
5677 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
5678 rm -f $tmp/in
5679 mv $tmp/out $tmp/in
5680 ' >>$CONFIG_STATUS
5681 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
5682 rm -f conftest.undefs
5683 mv conftest.tail conftest.undefs
5684 done
5685 rm -f conftest.undefs
5686
5687 cat >>$CONFIG_STATUS <<\_ACEOF
5688 # Let's still pretend it is `configure' which instantiates (i.e., don't
5689 # use $as_me), people would be surprised to read:
5690 # /* config.h. Generated by config.status. */
5691 if test x"$ac_file" = x-; then
5692 echo "/* Generated by configure. */" >$tmp/config.h
5693 else
5694 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
5695 fi
5696 cat $tmp/in >>$tmp/config.h
5697 rm -f $tmp/in
5698 if test x"$ac_file" != x-; then
5699 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
5700 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
5701 echo "$as_me: $ac_file is unchanged" >&6;}
5702 else
5703 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5704 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5705 X"$ac_file" : 'X\(//\)[^/]' \| \
5706 X"$ac_file" : 'X\(//\)$' \| \
5707 X"$ac_file" : 'X\(/\)' \| \
5708 . : '\(.\)' 2>/dev/null ||
5709 echo X"$ac_file" |
5710 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5711 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5712 /^X\(\/\/\)$/{ s//\1/; q; }
5713 /^X\(\/\).*/{ s//\1/; q; }
5714 s/.*/./; q'`
5715 { if $as_mkdir_p; then
5716 mkdir -p "$ac_dir"
5717 else
5718 as_dir="$ac_dir"
5719 as_dirs=
5720 while test ! -d "$as_dir"; do
5721 as_dirs="$as_dir $as_dirs"
5722 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5723 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5724 X"$as_dir" : 'X\(//\)[^/]' \| \
5725 X"$as_dir" : 'X\(//\)$' \| \
5726 X"$as_dir" : 'X\(/\)' \| \
5727 . : '\(.\)' 2>/dev/null ||
5728 echo X"$as_dir" |
5729 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5730 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5731 /^X\(\/\/\)$/{ s//\1/; q; }
5732 /^X\(\/\).*/{ s//\1/; q; }
5733 s/.*/./; q'`
5734 done
5735 test ! -n "$as_dirs" || mkdir $as_dirs
5736 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5737 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5738 { (exit 1); exit 1; }; }; }
5739
5740 rm -f $ac_file
5741 mv $tmp/config.h $ac_file
5742 fi
5743 else
5744 cat $tmp/config.h
5745 rm -f $tmp/config.h
5746 fi
5747 done
5748 _ACEOF
5749
5750 cat >>$CONFIG_STATUS <<\_ACEOF
5751
5752 { (exit 0); exit 0; }
5753 _ACEOF
5754 chmod +x $CONFIG_STATUS
5755 ac_clean_files=$ac_clean_files_save
5756
5757
5758 # configure is writing to config.log, and then calls config.status.
5759 # config.status does its own redirection, appending to config.log.
5760 # Unfortunately, on DOS this fails, as config.log is still kept open
5761 # by configure, so config.status won't be able to write to it; its
5762 # output is simply discarded. So we exec the FD to /dev/null,
5763 # effectively closing config.log, so it can be properly (re)opened and
5764 # appended to by config.status. When coming back to configure, we
5765 # need to make the FD available again.
5766 if test "$no_create" != yes; then
5767 ac_cs_success=:
5768 ac_config_status_args=
5769 test "$silent" = yes &&
5770 ac_config_status_args="$ac_config_status_args --quiet"
5771 exec 5>/dev/null
5772 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5773 exec 5>>config.log
5774 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5775 # would make configure fail if this is the last instruction.
5776 $ac_cs_success || { (exit 1); exit 1; }
5777 fi
5778