2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by Autoconf 2.52.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
10 # Avoid depending upon Character Ranges.
11 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14 as_cr_digits='0123456789'
15 as_cr_alnum=$as_cr_Letters$as_cr_digits
17 # Sed expression to map a string onto a valid variable name.
18 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
20 # Sed expression to map a string onto a valid CPP name.
21 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23 # Be Bourne compatible
24 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
27 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
31 # Name of the executable.
32 as_me=`echo "$0" |sed 's,.*[\\/],,'`
34 if expr a : '\(a\)' >/dev/null 2>&1; then
40 rm -f conf$$ conf$$.exe conf$$.file
42 if ln -s conf$$.file conf$$ 2>/dev/null; then
43 # We could just check for DJGPP; but this test a) works b) is more generic
44 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
45 if test -f conf$$.exe; then
46 # Don't use ln at all; we don't have any links
51 elif ln conf$$.file conf$$ 2>/dev/null; then
56 rm -f conf$$ conf$$.exe conf$$.file
58 as_executable_p="test -f"
60 # Support unset when possible.
61 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
68 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
69 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
70 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
71 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
72 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
73 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
74 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
75 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
78 # We need space, tab and new line, in precisely that order.
84 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
87 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
88 # so uname gets run too.
89 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
96 ac_default_prefix=/usr/local
100 SHELL=${CONFIG_SHELL-/bin/sh}
102 # Maximum number of lines to put in a shell here document.
103 # This variable seems obsolete. It should probably be removed, and
104 # only ac_max_sed_lines should be used.
105 : ${ac_max_here_lines=38}
107 ac_unique_file="LICENSE.TERMS"
109 # Initialize some variables set by options.
111 ac_init_version=false
112 # The variables have the same names as the options, with
113 # dashes changed to underlines.
121 program_transform_name=s,x,x,
129 # Installation directory options.
130 # These are left unexpanded so users can "make install exec_prefix=/foo"
131 # and all the variables that are supposed to be based on exec_prefix
132 # by default will actually change.
133 # Use braces instead of parens because sh, perl, etc. also accept them.
134 bindir='${exec_prefix}/bin'
135 sbindir='${exec_prefix}/sbin'
136 libexecdir='${exec_prefix}/libexec'
137 datadir='${prefix}/share'
138 sysconfdir='${prefix}/etc'
139 sharedstatedir='${prefix}/com'
140 localstatedir='${prefix}/var'
141 libdir='${exec_prefix}/lib'
142 includedir='${prefix}/include'
143 oldincludedir='/usr/include'
144 infodir='${prefix}/info'
145 mandir='${prefix}/man'
147 # Identity of this package.
157 # If the previous option needs an argument, assign it.
158 if test -n "$ac_prev"; then
159 eval "$ac_prev=\$ac_option"
164 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
166 # Accept the important Cygnus configure options, so we can diagnose typos.
170 -bindir | --bindir | --bindi | --bind | --bin | --bi)
172 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
175 -build | --build | --buil | --bui | --bu)
176 ac_prev=build_alias ;;
177 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
178 build_alias=$ac_optarg ;;
180 -cache-file | --cache-file | --cache-fil | --cache-fi \
181 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
182 ac_prev=cache_file ;;
183 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
184 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
185 cache_file=$ac_optarg ;;
188 cache_file=config.cache ;;
190 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
192 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
194 datadir=$ac_optarg ;;
196 -disable-* | --disable-*)
197 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
198 # Reject names that are not valid shell variable names.
199 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
200 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
201 { (exit 1); exit 1; }; }
202 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
203 eval "enable_$ac_feature=no" ;;
205 -enable-* | --enable-*)
206 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
207 # Reject names that are not valid shell variable names.
208 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
209 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
210 { (exit 1); exit 1; }; }
211 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
213 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
216 eval "enable_$ac_feature='$ac_optarg'" ;;
218 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
219 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
220 | --exec | --exe | --ex)
221 ac_prev=exec_prefix ;;
222 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
223 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
224 | --exec=* | --exe=* | --ex=*)
225 exec_prefix=$ac_optarg ;;
227 -gas | --gas | --ga | --g)
228 # Obsolete; use --with-gas.
231 -help | --help | --hel | --he | -h)
233 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
234 ac_init_help=recursive ;;
235 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
236 ac_init_help=short ;;
238 -host | --host | --hos | --ho)
239 ac_prev=host_alias ;;
240 -host=* | --host=* | --hos=* | --ho=*)
241 host_alias=$ac_optarg ;;
243 -includedir | --includedir | --includedi | --included | --include \
244 | --includ | --inclu | --incl | --inc)
245 ac_prev=includedir ;;
246 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
247 | --includ=* | --inclu=* | --incl=* | --inc=*)
248 includedir=$ac_optarg ;;
250 -infodir | --infodir | --infodi | --infod | --info | --inf)
252 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
253 infodir=$ac_optarg ;;
255 -libdir | --libdir | --libdi | --libd)
257 -libdir=* | --libdir=* | --libdi=* | --libd=*)
260 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
261 | --libexe | --libex | --libe)
262 ac_prev=libexecdir ;;
263 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
264 | --libexe=* | --libex=* | --libe=*)
265 libexecdir=$ac_optarg ;;
267 -localstatedir | --localstatedir | --localstatedi | --localstated \
268 | --localstate | --localstat | --localsta | --localst \
269 | --locals | --local | --loca | --loc | --lo)
270 ac_prev=localstatedir ;;
271 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
272 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
273 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
274 localstatedir=$ac_optarg ;;
276 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
278 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
282 # Obsolete; use --without-fp.
285 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
289 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
290 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
293 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
294 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
295 | --oldin | --oldi | --old | --ol | --o)
296 ac_prev=oldincludedir ;;
297 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
298 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
299 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
300 oldincludedir=$ac_optarg ;;
302 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
304 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
307 -program-prefix | --program-prefix | --program-prefi | --program-pref \
308 | --program-pre | --program-pr | --program-p)
309 ac_prev=program_prefix ;;
310 -program-prefix=* | --program-prefix=* | --program-prefi=* \
311 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
312 program_prefix=$ac_optarg ;;
314 -program-suffix | --program-suffix | --program-suffi | --program-suff \
315 | --program-suf | --program-su | --program-s)
316 ac_prev=program_suffix ;;
317 -program-suffix=* | --program-suffix=* | --program-suffi=* \
318 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
319 program_suffix=$ac_optarg ;;
321 -program-transform-name | --program-transform-name \
322 | --program-transform-nam | --program-transform-na \
323 | --program-transform-n | --program-transform- \
324 | --program-transform | --program-transfor \
325 | --program-transfo | --program-transf \
326 | --program-trans | --program-tran \
327 | --progr-tra | --program-tr | --program-t)
328 ac_prev=program_transform_name ;;
329 -program-transform-name=* | --program-transform-name=* \
330 | --program-transform-nam=* | --program-transform-na=* \
331 | --program-transform-n=* | --program-transform-=* \
332 | --program-transform=* | --program-transfor=* \
333 | --program-transfo=* | --program-transf=* \
334 | --program-trans=* | --program-tran=* \
335 | --progr-tra=* | --program-tr=* | --program-t=*)
336 program_transform_name=$ac_optarg ;;
338 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
339 | -silent | --silent | --silen | --sile | --sil)
342 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
344 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
346 sbindir=$ac_optarg ;;
348 -sharedstatedir | --sharedstatedir | --sharedstatedi \
349 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
350 | --sharedst | --shareds | --shared | --share | --shar \
352 ac_prev=sharedstatedir ;;
353 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
354 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
355 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
357 sharedstatedir=$ac_optarg ;;
359 -site | --site | --sit)
361 -site=* | --site=* | --sit=*)
364 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
366 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
369 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
370 | --syscon | --sysco | --sysc | --sys | --sy)
371 ac_prev=sysconfdir ;;
372 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
373 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
374 sysconfdir=$ac_optarg ;;
376 -target | --target | --targe | --targ | --tar | --ta | --t)
377 ac_prev=target_alias ;;
378 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
379 target_alias=$ac_optarg ;;
381 -v | -verbose | --verbose | --verbos | --verbo | --verb)
384 -version | --version | --versio | --versi | --vers | -V)
388 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
389 # Reject names that are not valid shell variable names.
390 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
391 { echo "$as_me: error: invalid package name: $ac_package" >&2
392 { (exit 1); exit 1; }; }
393 ac_package=`echo $ac_package| sed 's/-/_/g'`
395 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
398 eval "with_$ac_package='$ac_optarg'" ;;
400 -without-* | --without-*)
401 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
402 # Reject names that are not valid shell variable names.
403 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
404 { echo "$as_me: error: invalid package name: $ac_package" >&2
405 { (exit 1); exit 1; }; }
406 ac_package=`echo $ac_package | sed 's/-/_/g'`
407 eval "with_$ac_package=no" ;;
410 # Obsolete; use --with-x.
413 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
414 | --x-incl | --x-inc | --x-in | --x-i)
415 ac_prev=x_includes ;;
416 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
417 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
418 x_includes=$ac_optarg ;;
420 -x-libraries | --x-libraries | --x-librarie | --x-librari \
421 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
422 ac_prev=x_libraries ;;
423 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
424 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
425 x_libraries=$ac_optarg ;;
427 -*) { echo "$as_me: error: unrecognized option: $ac_option
428 Try \`$0 --help' for more information." >&2
429 { (exit 1); exit 1; }; }
433 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
434 # Reject names that are not valid shell variable names.
435 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
436 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
437 { (exit 1); exit 1; }; }
438 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
439 eval "$ac_envvar='$ac_optarg'"
443 # FIXME: should be removed in autoconf 3.0.
444 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
445 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
446 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
447 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
453 if test -n "$ac_prev"; then
454 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
455 { echo "$as_me: error: missing argument to $ac_option" >&2
456 { (exit 1); exit 1; }; }
459 # Be sure to have absolute paths.
460 for ac_var in exec_prefix prefix
462 eval ac_val=$`echo $ac_var`
464 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
465 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
466 { (exit 1); exit 1; }; };;
470 # Be sure to have absolute paths.
471 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
472 localstatedir libdir includedir oldincludedir infodir mandir
474 eval ac_val=$`echo $ac_var`
476 [\\/$]* | ?:[\\/]* ) ;;
477 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
478 { (exit 1); exit 1; }; };;
482 # There might be people who depend on the old broken behavior: `$host'
483 # used to hold the argument of --host etc.
488 # FIXME: should be removed in autoconf 3.0.
489 if test "x$host_alias" != x; then
490 if test "x$build_alias" = x; then
491 cross_compiling=maybe
492 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
493 If a cross compiler is detected then cross compile mode will be used." >&2
494 elif test "x$build_alias" != "x$host_alias"; then
500 test -n "$host_alias" && ac_tool_prefix=$host_alias-
502 test "$silent" = yes && exec 6>/dev/null
504 # Find the source files, if location was not specified.
505 if test -z "$srcdir"; then
506 ac_srcdir_defaulted=yes
507 # Try the directory containing this script, then its parent.
509 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
510 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
512 if test ! -r $srcdir/$ac_unique_file; then
516 ac_srcdir_defaulted=no
518 if test ! -r $srcdir/$ac_unique_file; then
519 if test "$ac_srcdir_defaulted" = yes; then
520 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
521 { (exit 1); exit 1; }; }
523 { echo "$as_me: error: cannot find sources in $srcdir" >&2
524 { (exit 1); exit 1; }; }
527 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
528 ac_env_build_alias_set=${build_alias+set}
529 ac_env_build_alias_value=$build_alias
530 ac_cv_env_build_alias_set=${build_alias+set}
531 ac_cv_env_build_alias_value=$build_alias
532 ac_env_host_alias_set=${host_alias+set}
533 ac_env_host_alias_value=$host_alias
534 ac_cv_env_host_alias_set=${host_alias+set}
535 ac_cv_env_host_alias_value=$host_alias
536 ac_env_target_alias_set=${target_alias+set}
537 ac_env_target_alias_value=$target_alias
538 ac_cv_env_target_alias_set=${target_alias+set}
539 ac_cv_env_target_alias_value=$target_alias
540 ac_env_CC_set=${CC+set}
542 ac_cv_env_CC_set=${CC+set}
543 ac_cv_env_CC_value=$CC
544 ac_env_CFLAGS_set=${CFLAGS+set}
545 ac_env_CFLAGS_value=$CFLAGS
546 ac_cv_env_CFLAGS_set=${CFLAGS+set}
547 ac_cv_env_CFLAGS_value=$CFLAGS
548 ac_env_LDFLAGS_set=${LDFLAGS+set}
549 ac_env_LDFLAGS_value=$LDFLAGS
550 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
551 ac_cv_env_LDFLAGS_value=$LDFLAGS
552 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
553 ac_env_CPPFLAGS_value=$CPPFLAGS
554 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
555 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
556 ac_env_CPP_set=${CPP+set}
557 ac_env_CPP_value=$CPP
558 ac_cv_env_CPP_set=${CPP+set}
559 ac_cv_env_CPP_value=$CPP
562 # Report the --help message.
564 if test "$ac_init_help" = "long"; then
565 # Omit some internal or obsolete options to make the list less imposing.
566 # This message is too long to be a string in the A/UX 3.1 sh.
568 \`configure' configures this package to adapt to many kinds of systems.
570 Usage: $0 [OPTION]... [VAR=VALUE]...
572 To assign environment variables (e.g., CC, CFLAGS...), specify them as
573 VAR=VALUE. See below for descriptions of some of the useful variables.
575 Defaults for the options are specified in brackets.
578 -h, --help display this help and exit
579 --help=short display options specific to this package
580 --help=recursive display the short help of all the included packages
581 -V, --version display version information and exit
582 -q, --quiet, --silent do not print \`checking...' messages
583 --cache-file=FILE cache test results in FILE [disabled]
584 -C, --config-cache alias for \`--cache-file=config.cache'
585 -n, --no-create do not create output files
586 --srcdir=DIR find the sources in DIR [configure dir or \`..']
591 Installation directories:
592 --prefix=PREFIX install architecture-independent files in PREFIX
594 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
597 By default, \`make install' will install all the files in
598 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
599 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
600 for instance \`--prefix=\$HOME'.
602 For better control, use the options below.
604 Fine tuning of the installation directories:
605 --bindir=DIR user executables [EPREFIX/bin]
606 --sbindir=DIR system admin executables [EPREFIX/sbin]
607 --libexecdir=DIR program executables [EPREFIX/libexec]
608 --datadir=DIR read-only architecture-independent data [PREFIX/share]
609 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
610 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
611 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
612 --libdir=DIR object code libraries [EPREFIX/lib]
613 --includedir=DIR C header files [PREFIX/include]
614 --oldincludedir=DIR C header files for non-gcc [/usr/include]
615 --infodir=DIR info documentation [PREFIX/info]
616 --mandir=DIR man documentation [PREFIX/man]
623 if test -n "$ac_init_help"; then
627 Some influential environment variables:
628 CC C compiler command
629 CFLAGS C compiler flags
630 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
631 nonstandard directory <lib dir>
632 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
633 headers in a nonstandard directory <include dir>
636 Use these variables to override the choices made by `configure' or to help
637 it to find libraries and programs with nonstandard names/locations.
642 if test "$ac_init_help" = "recursive"; then
643 # If there are subdirs, report their specific --help.
645 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
647 # A "../" for each directory in /$ac_subdir.
648 ac_dots=`echo $ac_subdir |
649 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
652 .) # No --srcdir option. We are building in place.
653 ac_sub_srcdir=$srcdir ;;
654 [\\/]* | ?:[\\/]* ) # Absolute path.
655 ac_sub_srcdir=$srcdir/$ac_subdir ;;
657 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
660 # Check for guested configure; otherwise get Cygnus style configure.
661 if test -f $ac_sub_srcdir/configure.gnu; then
663 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
664 elif test -f $ac_sub_srcdir/configure; then
666 $SHELL $ac_sub_srcdir/configure --help=recursive
667 elif test -f $ac_sub_srcdir/configure.ac ||
668 test -f $ac_sub_srcdir/configure.in; then
672 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
678 test -n "$ac_init_help" && exit 0
679 if $ac_init_version; then
682 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
683 Free Software Foundation, Inc.
684 This configure script is free software; the Free Software Foundation
685 gives unlimited permission to copy, distribute and modify it.
691 This file contains any messages produced by compilers while
692 running configure, to aid debugging if configure makes a mistake.
694 It was created by $as_me, which was
695 generated by GNU Autoconf 2.52. Invocation command line was
706 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
707 uname -m = `(uname -m) 2>/dev/null || echo unknown`
708 uname -r = `(uname -r) 2>/dev/null || echo unknown`
709 uname -s = `(uname -s) 2>/dev/null || echo unknown`
710 uname -v = `(uname -v) 2>/dev/null || echo unknown`
712 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
713 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
715 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
716 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
717 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
718 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
719 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
720 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
721 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
735 # Keep a trace of the command line.
736 # Strip out --no-create and --no-recursion so they do not pile up.
737 # Also quote any args containing shell meta-characters.
743 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
744 | --no-cr | --no-c) ;;
745 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
746 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
747 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
748 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
749 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
751 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
754 # Get rid of the leading space.
757 # When interrupted or exit'd, cleanup temporary files, and complete
758 # config.log. We remove comments because anyway the quotes in there
759 # would cause problems or look ugly.
761 # Save into config.log some information that might help in debugging.
763 echo "## ----------------- ##" >&5
764 echo "## Cache variables. ##" >&5
765 echo "## ----------------- ##" >&5
767 # The following way of writing the cache mishandles newlines in values,
770 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
773 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
774 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
778 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
782 sed "/^$/d" confdefs.h >conftest.log
783 if test -s conftest.log; then
785 echo "## ------------ ##" >&5
786 echo "## confdefs.h. ##" >&5
787 echo "## ------------ ##" >&5
792 test "$ac_signal" != 0 &&
793 echo "$as_me: caught signal $ac_signal" >&5
794 echo "$as_me: exit $exit_status" >&5
795 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
798 for ac_signal in 1 2 13 15; do
799 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
803 # confdefs.h avoids OS command line length limits that DEFS can exceed.
804 rm -rf conftest* confdefs.h
805 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
808 # Let the site file select an alternate cache file if it wants to.
809 # Prefer explicitly selected file to automatically selected ones.
810 if test -z "$CONFIG_SITE"; then
811 if test "x$prefix" != xNONE; then
812 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
814 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
817 for ac_site_file in $CONFIG_SITE; do
818 if test -r "$ac_site_file"; then
819 { echo "$as_me:819: loading site script $ac_site_file" >&5
820 echo "$as_me: loading site script $ac_site_file" >&6;}
821 cat "$ac_site_file" >&5
826 if test -r "$cache_file"; then
827 # Some versions of bash will fail to source /dev/null (special
828 # files actually), so we avoid doing that.
829 if test -f "$cache_file"; then
830 { echo "$as_me:830: loading cache $cache_file" >&5
831 echo "$as_me: loading cache $cache_file" >&6;}
833 [\\/]* | ?:[\\/]* ) . $cache_file;;
838 { echo "$as_me:838: creating cache $cache_file" >&5
839 echo "$as_me: creating cache $cache_file" >&6;}
843 # Check that the precious variables saved in the cache have kept the same
845 ac_cache_corrupted=false
846 for ac_var in `(set) 2>&1 |
847 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
848 eval ac_old_set=\$ac_cv_env_${ac_var}_set
849 eval ac_new_set=\$ac_env_${ac_var}_set
850 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
851 eval ac_new_val="\$ac_env_${ac_var}_value"
852 case $ac_old_set,$ac_new_set in
854 { echo "$as_me:854: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
855 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
856 ac_cache_corrupted=: ;;
858 { echo "$as_me:858: error: \`$ac_var' was not set in the previous run" >&5
859 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
860 ac_cache_corrupted=: ;;
863 if test "x$ac_old_val" != "x$ac_new_val"; then
864 { echo "$as_me:864: error: \`$ac_var' has changed since the previous run:" >&5
865 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
866 { echo "$as_me:866: former value: $ac_old_val" >&5
867 echo "$as_me: former value: $ac_old_val" >&2;}
868 { echo "$as_me:868: current value: $ac_new_val" >&5
869 echo "$as_me: current value: $ac_new_val" >&2;}
873 # Pass precious variables to config.status. It doesn't matter if
874 # we pass some twice (in addition to the command line arguments).
875 if test "$ac_new_set" = set; then
877 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
878 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
879 ac_configure_args="$ac_configure_args '$ac_arg'"
881 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
886 if $ac_cache_corrupted; then
887 { echo "$as_me:887: error: changes in the environment can compromise the build" >&5
888 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
889 { { echo "$as_me:889: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
890 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
891 { (exit 1); exit 1; }; }
895 ac_cpp='$CPP $CPPFLAGS'
896 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
897 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
898 ac_compiler_gnu=$ac_cv_c_compiler_gnu
900 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
901 *c*,-n*) ECHO_N= ECHO_C='
903 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
904 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
906 echo "#! $SHELL" >conftest.sh
907 echo "exit 0" >>conftest.sh
909 if { (echo "$as_me:909: PATH=\".;.\"; conftest.sh") >&5
910 (PATH=".;."; conftest.sh) 2>&5
912 echo "$as_me:912: \$? = $ac_status" >&5
913 (exit $ac_status); }; then
914 ac_path_separator=';'
918 PATH_SEPARATOR="$ac_path_separator"
922 ac_config_headers="$ac_config_headers include/fcgi_config.h"
927 ac_cpp='$CPP $CPPFLAGS'
928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
931 if test -n "$ac_tool_prefix"; then
932 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
933 set dummy ${ac_tool_prefix}gcc; ac_word=$2
934 echo "$as_me:934: checking for $ac_word" >&5
935 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
936 if test "${ac_cv_prog_CC+set}" = set; then
937 echo $ECHO_N "(cached) $ECHO_C" >&6
939 if test -n "$CC"; then
940 ac_cv_prog_CC="$CC" # Let the user override the test.
942 ac_save_IFS=$IFS; IFS=$ac_path_separator
944 for ac_dir in $ac_dummy; do
946 test -z "$ac_dir" && ac_dir=.
947 $as_executable_p "$ac_dir/$ac_word" || continue
948 ac_cv_prog_CC="${ac_tool_prefix}gcc"
949 echo "$as_me:949: found $ac_dir/$ac_word" >&5
956 if test -n "$CC"; then
957 echo "$as_me:957: result: $CC" >&5
958 echo "${ECHO_T}$CC" >&6
960 echo "$as_me:960: result: no" >&5
961 echo "${ECHO_T}no" >&6
965 if test -z "$ac_cv_prog_CC"; then
967 # Extract the first word of "gcc", so it can be a program name with args.
968 set dummy gcc; ac_word=$2
969 echo "$as_me:969: checking for $ac_word" >&5
970 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
971 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
972 echo $ECHO_N "(cached) $ECHO_C" >&6
974 if test -n "$ac_ct_CC"; then
975 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
977 ac_save_IFS=$IFS; IFS=$ac_path_separator
979 for ac_dir in $ac_dummy; do
981 test -z "$ac_dir" && ac_dir=.
982 $as_executable_p "$ac_dir/$ac_word" || continue
983 ac_cv_prog_ac_ct_CC="gcc"
984 echo "$as_me:984: found $ac_dir/$ac_word" >&5
990 ac_ct_CC=$ac_cv_prog_ac_ct_CC
991 if test -n "$ac_ct_CC"; then
992 echo "$as_me:992: result: $ac_ct_CC" >&5
993 echo "${ECHO_T}$ac_ct_CC" >&6
995 echo "$as_me:995: result: no" >&5
996 echo "${ECHO_T}no" >&6
1004 if test -z "$CC"; then
1005 if test -n "$ac_tool_prefix"; then
1006 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1007 set dummy ${ac_tool_prefix}cc; ac_word=$2
1008 echo "$as_me:1008: checking for $ac_word" >&5
1009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1010 if test "${ac_cv_prog_CC+set}" = set; then
1011 echo $ECHO_N "(cached) $ECHO_C" >&6
1013 if test -n "$CC"; then
1014 ac_cv_prog_CC="$CC" # Let the user override the test.
1016 ac_save_IFS=$IFS; IFS=$ac_path_separator
1018 for ac_dir in $ac_dummy; do
1020 test -z "$ac_dir" && ac_dir=.
1021 $as_executable_p "$ac_dir/$ac_word" || continue
1022 ac_cv_prog_CC="${ac_tool_prefix}cc"
1023 echo "$as_me:1023: found $ac_dir/$ac_word" >&5
1030 if test -n "$CC"; then
1031 echo "$as_me:1031: result: $CC" >&5
1032 echo "${ECHO_T}$CC" >&6
1034 echo "$as_me:1034: result: no" >&5
1035 echo "${ECHO_T}no" >&6
1039 if test -z "$ac_cv_prog_CC"; then
1041 # Extract the first word of "cc", so it can be a program name with args.
1042 set dummy cc; ac_word=$2
1043 echo "$as_me:1043: checking for $ac_word" >&5
1044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1045 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1046 echo $ECHO_N "(cached) $ECHO_C" >&6
1048 if test -n "$ac_ct_CC"; then
1049 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1051 ac_save_IFS=$IFS; IFS=$ac_path_separator
1053 for ac_dir in $ac_dummy; do
1055 test -z "$ac_dir" && ac_dir=.
1056 $as_executable_p "$ac_dir/$ac_word" || continue
1057 ac_cv_prog_ac_ct_CC="cc"
1058 echo "$as_me:1058: found $ac_dir/$ac_word" >&5
1064 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1065 if test -n "$ac_ct_CC"; then
1066 echo "$as_me:1066: result: $ac_ct_CC" >&5
1067 echo "${ECHO_T}$ac_ct_CC" >&6
1069 echo "$as_me:1069: result: no" >&5
1070 echo "${ECHO_T}no" >&6
1079 if test -z "$CC"; then
1080 # Extract the first word of "cc", so it can be a program name with args.
1081 set dummy cc; ac_word=$2
1082 echo "$as_me:1082: checking for $ac_word" >&5
1083 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1084 if test "${ac_cv_prog_CC+set}" = set; then
1085 echo $ECHO_N "(cached) $ECHO_C" >&6
1087 if test -n "$CC"; then
1088 ac_cv_prog_CC="$CC" # Let the user override the test.
1091 ac_save_IFS=$IFS; IFS=$ac_path_separator
1093 for ac_dir in $ac_dummy; do
1095 test -z "$ac_dir" && ac_dir=.
1096 $as_executable_p "$ac_dir/$ac_word" || continue
1097 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1098 ac_prog_rejected=yes
1102 echo "$as_me:1102: found $ac_dir/$ac_word" >&5
1106 if test $ac_prog_rejected = yes; then
1107 # We found a bogon in the path, so make sure we never use it.
1108 set dummy $ac_cv_prog_CC
1110 if test $# != 0; then
1111 # We chose a different compiler from the bogus one.
1112 # However, it has the same basename, so the bogon will be chosen
1113 # first if we set CC to just the basename; use the full file name.
1115 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1123 if test -n "$CC"; then
1124 echo "$as_me:1124: result: $CC" >&5
1125 echo "${ECHO_T}$CC" >&6
1127 echo "$as_me:1127: result: no" >&5
1128 echo "${ECHO_T}no" >&6
1132 if test -z "$CC"; then
1133 if test -n "$ac_tool_prefix"; then
1136 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1137 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1138 echo "$as_me:1138: checking for $ac_word" >&5
1139 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1140 if test "${ac_cv_prog_CC+set}" = set; then
1141 echo $ECHO_N "(cached) $ECHO_C" >&6
1143 if test -n "$CC"; then
1144 ac_cv_prog_CC="$CC" # Let the user override the test.
1146 ac_save_IFS=$IFS; IFS=$ac_path_separator
1148 for ac_dir in $ac_dummy; do
1150 test -z "$ac_dir" && ac_dir=.
1151 $as_executable_p "$ac_dir/$ac_word" || continue
1152 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1153 echo "$as_me:1153: found $ac_dir/$ac_word" >&5
1160 if test -n "$CC"; then
1161 echo "$as_me:1161: result: $CC" >&5
1162 echo "${ECHO_T}$CC" >&6
1164 echo "$as_me:1164: result: no" >&5
1165 echo "${ECHO_T}no" >&6
1168 test -n "$CC" && break
1171 if test -z "$CC"; then
1175 # Extract the first word of "$ac_prog", so it can be a program name with args.
1176 set dummy $ac_prog; ac_word=$2
1177 echo "$as_me:1177: checking for $ac_word" >&5
1178 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1179 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1180 echo $ECHO_N "(cached) $ECHO_C" >&6
1182 if test -n "$ac_ct_CC"; then
1183 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1185 ac_save_IFS=$IFS; IFS=$ac_path_separator
1187 for ac_dir in $ac_dummy; do
1189 test -z "$ac_dir" && ac_dir=.
1190 $as_executable_p "$ac_dir/$ac_word" || continue
1191 ac_cv_prog_ac_ct_CC="$ac_prog"
1192 echo "$as_me:1192: found $ac_dir/$ac_word" >&5
1198 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1199 if test -n "$ac_ct_CC"; then
1200 echo "$as_me:1200: result: $ac_ct_CC" >&5
1201 echo "${ECHO_T}$ac_ct_CC" >&6
1203 echo "$as_me:1203: result: no" >&5
1204 echo "${ECHO_T}no" >&6
1207 test -n "$ac_ct_CC" && break
1215 test -z "$CC" && { { echo "$as_me:1215: error: no acceptable cc found in \$PATH" >&5
1216 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1217 { (exit 1); exit 1; }; }
1219 # Provide some information about the compiler.
1220 echo "$as_me:1220:" \
1221 "checking for C compiler version" >&5
1222 ac_compiler=`set X $ac_compile; echo $2`
1223 { (eval echo "$as_me:1223: \"$ac_compiler --version </dev/null >&5\"") >&5
1224 (eval $ac_compiler --version </dev/null >&5) 2>&5
1226 echo "$as_me:1226: \$? = $ac_status" >&5
1227 (exit $ac_status); }
1228 { (eval echo "$as_me:1228: \"$ac_compiler -v </dev/null >&5\"") >&5
1229 (eval $ac_compiler -v </dev/null >&5) 2>&5
1231 echo "$as_me:1231: \$? = $ac_status" >&5
1232 (exit $ac_status); }
1233 { (eval echo "$as_me:1233: \"$ac_compiler -V </dev/null >&5\"") >&5
1234 (eval $ac_compiler -V </dev/null >&5) 2>&5
1236 echo "$as_me:1236: \$? = $ac_status" >&5
1237 (exit $ac_status); }
1239 cat >conftest.$ac_ext <<_ACEOF
1240 #line 1240 "configure"
1241 #include "confdefs.h"
1251 ac_clean_files_save=$ac_clean_files
1252 ac_clean_files="$ac_clean_files a.out a.exe"
1253 # Try to create an executable without -o first, disregard a.out.
1254 # It will help us diagnose broken compilers, and finding out an intuition
1256 echo "$as_me:1256: checking for C compiler default output" >&5
1257 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1258 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1259 if { (eval echo "$as_me:1259: \"$ac_link_default\"") >&5
1260 (eval $ac_link_default) 2>&5
1262 echo "$as_me:1262: \$? = $ac_status" >&5
1263 (exit $ac_status); }; then
1264 # Find the output, starting from the most likely. This scheme is
1265 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1267 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1268 ls a.out conftest 2>/dev/null;
1269 ls a.* conftest.* 2>/dev/null`; do
1271 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1272 a.out ) # We found the default executable, but exeext='' is most
1275 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1276 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1283 echo "$as_me: failed program was:" >&5
1284 cat conftest.$ac_ext >&5
1285 { { echo "$as_me:1285: error: C compiler cannot create executables" >&5
1286 echo "$as_me: error: C compiler cannot create executables" >&2;}
1287 { (exit 77); exit 77; }; }
1290 ac_exeext=$ac_cv_exeext
1291 echo "$as_me:1291: result: $ac_file" >&5
1292 echo "${ECHO_T}$ac_file" >&6
1294 # Check the compiler produces executables we can run. If not, either
1295 # the compiler is broken, or we cross compile.
1296 echo "$as_me:1296: checking whether the C compiler works" >&5
1297 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1298 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1299 # If not cross compiling, check that we can run a simple program.
1300 if test "$cross_compiling" != yes; then
1301 if { ac_try='./$ac_file'
1302 { (eval echo "$as_me:1302: \"$ac_try\"") >&5
1305 echo "$as_me:1305: \$? = $ac_status" >&5
1306 (exit $ac_status); }; }; then
1309 if test "$cross_compiling" = maybe; then
1312 { { echo "$as_me:1312: error: cannot run C compiled programs.
1313 If you meant to cross compile, use \`--host'." >&5
1314 echo "$as_me: error: cannot run C compiled programs.
1315 If you meant to cross compile, use \`--host'." >&2;}
1316 { (exit 1); exit 1; }; }
1320 echo "$as_me:1320: result: yes" >&5
1321 echo "${ECHO_T}yes" >&6
1323 rm -f a.out a.exe conftest$ac_cv_exeext
1324 ac_clean_files=$ac_clean_files_save
1325 # Check the compiler produces executables we can run. If not, either
1326 # the compiler is broken, or we cross compile.
1327 echo "$as_me:1327: checking whether we are cross compiling" >&5
1328 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1329 echo "$as_me:1329: result: $cross_compiling" >&5
1330 echo "${ECHO_T}$cross_compiling" >&6
1332 echo "$as_me:1332: checking for executable suffix" >&5
1333 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1334 if { (eval echo "$as_me:1334: \"$ac_link\"") >&5
1335 (eval $ac_link) 2>&5
1337 echo "$as_me:1337: \$? = $ac_status" >&5
1338 (exit $ac_status); }; then
1339 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1340 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1341 # work properly (i.e., refer to `conftest.exe'), while it won't with
1343 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1345 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1346 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1353 { { echo "$as_me:1353: error: cannot compute EXEEXT: cannot compile and link" >&5
1354 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1355 { (exit 1); exit 1; }; }
1358 rm -f conftest$ac_cv_exeext
1359 echo "$as_me:1359: result: $ac_cv_exeext" >&5
1360 echo "${ECHO_T}$ac_cv_exeext" >&6
1362 rm -f conftest.$ac_ext
1363 EXEEXT=$ac_cv_exeext
1365 echo "$as_me:1365: checking for object suffix" >&5
1366 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1367 if test "${ac_cv_objext+set}" = set; then
1368 echo $ECHO_N "(cached) $ECHO_C" >&6
1370 cat >conftest.$ac_ext <<_ACEOF
1371 #line 1371 "configure"
1372 #include "confdefs.h"
1382 rm -f conftest.o conftest.obj
1383 if { (eval echo "$as_me:1383: \"$ac_compile\"") >&5
1384 (eval $ac_compile) 2>&5
1386 echo "$as_me:1386: \$? = $ac_status" >&5
1387 (exit $ac_status); }; then
1388 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1390 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1391 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1396 echo "$as_me: failed program was:" >&5
1397 cat conftest.$ac_ext >&5
1398 { { echo "$as_me:1398: error: cannot compute OBJEXT: cannot compile" >&5
1399 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1400 { (exit 1); exit 1; }; }
1403 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1405 echo "$as_me:1405: result: $ac_cv_objext" >&5
1406 echo "${ECHO_T}$ac_cv_objext" >&6
1407 OBJEXT=$ac_cv_objext
1409 echo "$as_me:1409: checking whether we are using the GNU C compiler" >&5
1410 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1411 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1412 echo $ECHO_N "(cached) $ECHO_C" >&6
1414 cat >conftest.$ac_ext <<_ACEOF
1415 #line 1415 "configure"
1416 #include "confdefs.h"
1429 rm -f conftest.$ac_objext
1430 if { (eval echo "$as_me:1430: \"$ac_compile\"") >&5
1431 (eval $ac_compile) 2>&5
1433 echo "$as_me:1433: \$? = $ac_status" >&5
1434 (exit $ac_status); } &&
1435 { ac_try='test -s conftest.$ac_objext'
1436 { (eval echo "$as_me:1436: \"$ac_try\"") >&5
1439 echo "$as_me:1439: \$? = $ac_status" >&5
1440 (exit $ac_status); }; }; then
1443 echo "$as_me: failed program was:" >&5
1444 cat conftest.$ac_ext >&5
1447 rm -f conftest.$ac_objext conftest.$ac_ext
1448 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1451 echo "$as_me:1451: result: $ac_cv_c_compiler_gnu" >&5
1452 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1453 GCC=`test $ac_compiler_gnu = yes && echo yes`
1454 ac_test_CFLAGS=${CFLAGS+set}
1455 ac_save_CFLAGS=$CFLAGS
1457 echo "$as_me:1457: checking whether $CC accepts -g" >&5
1458 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1459 if test "${ac_cv_prog_cc_g+set}" = set; then
1460 echo $ECHO_N "(cached) $ECHO_C" >&6
1462 cat >conftest.$ac_ext <<_ACEOF
1463 #line 1463 "configure"
1464 #include "confdefs.h"
1474 rm -f conftest.$ac_objext
1475 if { (eval echo "$as_me:1475: \"$ac_compile\"") >&5
1476 (eval $ac_compile) 2>&5
1478 echo "$as_me:1478: \$? = $ac_status" >&5
1479 (exit $ac_status); } &&
1480 { ac_try='test -s conftest.$ac_objext'
1481 { (eval echo "$as_me:1481: \"$ac_try\"") >&5
1484 echo "$as_me:1484: \$? = $ac_status" >&5
1485 (exit $ac_status); }; }; then
1488 echo "$as_me: failed program was:" >&5
1489 cat conftest.$ac_ext >&5
1492 rm -f conftest.$ac_objext conftest.$ac_ext
1494 echo "$as_me:1494: result: $ac_cv_prog_cc_g" >&5
1495 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1496 if test "$ac_test_CFLAGS" = set; then
1497 CFLAGS=$ac_save_CFLAGS
1498 elif test $ac_cv_prog_cc_g = yes; then
1499 if test "$GCC" = yes; then
1505 if test "$GCC" = yes; then
1511 # Some people use a C++ compiler to compile C. Since we use `exit',
1512 # in C++ we need to declare it. In case someone uses the same compiler
1513 # for both compiling C and C++ we need to have the C++ compiler decide
1514 # the declaration of exit, since it's the most demanding environment.
1515 cat >conftest.$ac_ext <<_ACEOF
1520 rm -f conftest.$ac_objext
1521 if { (eval echo "$as_me:1521: \"$ac_compile\"") >&5
1522 (eval $ac_compile) 2>&5
1524 echo "$as_me:1524: \$? = $ac_status" >&5
1525 (exit $ac_status); } &&
1526 { ac_try='test -s conftest.$ac_objext'
1527 { (eval echo "$as_me:1527: \"$ac_try\"") >&5
1530 echo "$as_me:1530: \$? = $ac_status" >&5
1531 (exit $ac_status); }; }; then
1532 for ac_declaration in \
1534 '#include <stdlib.h>' \
1535 'extern "C" void std::exit (int) throw (); using std::exit;' \
1536 'extern "C" void std::exit (int); using std::exit;' \
1537 'extern "C" void exit (int) throw ();' \
1538 'extern "C" void exit (int);' \
1541 cat >conftest.$ac_ext <<_ACEOF
1542 #line 1542 "configure"
1543 #include "confdefs.h"
1554 rm -f conftest.$ac_objext
1555 if { (eval echo "$as_me:1555: \"$ac_compile\"") >&5
1556 (eval $ac_compile) 2>&5
1558 echo "$as_me:1558: \$? = $ac_status" >&5
1559 (exit $ac_status); } &&
1560 { ac_try='test -s conftest.$ac_objext'
1561 { (eval echo "$as_me:1561: \"$ac_try\"") >&5
1564 echo "$as_me:1564: \$? = $ac_status" >&5
1565 (exit $ac_status); }; }; then
1568 echo "$as_me: failed program was:" >&5
1569 cat conftest.$ac_ext >&5
1572 rm -f conftest.$ac_objext conftest.$ac_ext
1573 cat >conftest.$ac_ext <<_ACEOF
1574 #line 1574 "configure"
1575 #include "confdefs.h"
1585 rm -f conftest.$ac_objext
1586 if { (eval echo "$as_me:1586: \"$ac_compile\"") >&5
1587 (eval $ac_compile) 2>&5
1589 echo "$as_me:1589: \$? = $ac_status" >&5
1590 (exit $ac_status); } &&
1591 { ac_try='test -s conftest.$ac_objext'
1592 { (eval echo "$as_me:1592: \"$ac_try\"") >&5
1595 echo "$as_me:1595: \$? = $ac_status" >&5
1596 (exit $ac_status); }; }; then
1599 echo "$as_me: failed program was:" >&5
1600 cat conftest.$ac_ext >&5
1602 rm -f conftest.$ac_objext conftest.$ac_ext
1605 if test -n "$ac_declaration"; then
1606 echo '#ifdef __cplusplus' >>confdefs.h
1607 echo $ac_declaration >>confdefs.h
1608 echo '#endif' >>confdefs.h
1612 echo "$as_me: failed program was:" >&5
1613 cat conftest.$ac_ext >&5
1615 rm -f conftest.$ac_objext conftest.$ac_ext
1617 ac_cpp='$CPP $CPPFLAGS'
1618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1620 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1623 ac_cpp='$CPP $CPPFLAGS'
1624 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1625 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1626 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1627 echo "$as_me:1627: checking how to run the C preprocessor" >&5
1628 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
1629 # On Suns, sometimes $CPP names a directory.
1630 if test -n "$CPP" && test -d "$CPP"; then
1633 if test -z "$CPP"; then
1634 if test "${ac_cv_prog_CPP+set}" = set; then
1635 echo $ECHO_N "(cached) $ECHO_C" >&6
1637 # Double quotes because CPP needs to be expanded
1638 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
1641 for ac_c_preproc_warn_flag in '' yes
1643 # Use a header file that comes with gcc, so configuring glibc
1644 # with a fresh cross-compiler works.
1645 # On the NeXT, cc -E runs the code through the compiler's parser,
1646 # not just through cpp. "Syntax error" is here to catch this case.
1647 cat >conftest.$ac_ext <<_ACEOF
1648 #line 1648 "configure"
1649 #include "confdefs.h"
1653 if { (eval echo "$as_me:1653: \"$ac_cpp conftest.$ac_ext\"") >&5
1654 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1656 egrep -v '^ *\+' conftest.er1 >conftest.err
1658 cat conftest.err >&5
1659 echo "$as_me:1659: \$? = $ac_status" >&5
1660 (exit $ac_status); } >/dev/null; then
1661 if test -s conftest.err; then
1662 ac_cpp_err=$ac_c_preproc_warn_flag
1669 if test -z "$ac_cpp_err"; then
1672 echo "$as_me: failed program was:" >&5
1673 cat conftest.$ac_ext >&5
1674 # Broken: fails on valid input.
1677 rm -f conftest.err conftest.$ac_ext
1679 # OK, works on sane cases. Now check whether non-existent headers
1680 # can be detected and how.
1681 cat >conftest.$ac_ext <<_ACEOF
1682 #line 1682 "configure"
1683 #include "confdefs.h"
1684 #include <ac_nonexistent.h>
1686 if { (eval echo "$as_me:1686: \"$ac_cpp conftest.$ac_ext\"") >&5
1687 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1689 egrep -v '^ *\+' conftest.er1 >conftest.err
1691 cat conftest.err >&5
1692 echo "$as_me:1692: \$? = $ac_status" >&5
1693 (exit $ac_status); } >/dev/null; then
1694 if test -s conftest.err; then
1695 ac_cpp_err=$ac_c_preproc_warn_flag
1702 if test -z "$ac_cpp_err"; then
1703 # Broken: success on invalid input.
1706 echo "$as_me: failed program was:" >&5
1707 cat conftest.$ac_ext >&5
1708 # Passes both tests.
1712 rm -f conftest.err conftest.$ac_ext
1715 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1716 rm -f conftest.err conftest.$ac_ext
1717 if $ac_preproc_ok; then
1729 echo "$as_me:1729: result: $CPP" >&5
1730 echo "${ECHO_T}$CPP" >&6
1732 for ac_c_preproc_warn_flag in '' yes
1734 # Use a header file that comes with gcc, so configuring glibc
1735 # with a fresh cross-compiler works.
1736 # On the NeXT, cc -E runs the code through the compiler's parser,
1737 # not just through cpp. "Syntax error" is here to catch this case.
1738 cat >conftest.$ac_ext <<_ACEOF
1739 #line 1739 "configure"
1740 #include "confdefs.h"
1744 if { (eval echo "$as_me:1744: \"$ac_cpp conftest.$ac_ext\"") >&5
1745 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1747 egrep -v '^ *\+' conftest.er1 >conftest.err
1749 cat conftest.err >&5
1750 echo "$as_me:1750: \$? = $ac_status" >&5
1751 (exit $ac_status); } >/dev/null; then
1752 if test -s conftest.err; then
1753 ac_cpp_err=$ac_c_preproc_warn_flag
1760 if test -z "$ac_cpp_err"; then
1763 echo "$as_me: failed program was:" >&5
1764 cat conftest.$ac_ext >&5
1765 # Broken: fails on valid input.
1768 rm -f conftest.err conftest.$ac_ext
1770 # OK, works on sane cases. Now check whether non-existent headers
1771 # can be detected and how.
1772 cat >conftest.$ac_ext <<_ACEOF
1773 #line 1773 "configure"
1774 #include "confdefs.h"
1775 #include <ac_nonexistent.h>
1777 if { (eval echo "$as_me:1777: \"$ac_cpp conftest.$ac_ext\"") >&5
1778 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1780 egrep -v '^ *\+' conftest.er1 >conftest.err
1782 cat conftest.err >&5
1783 echo "$as_me:1783: \$? = $ac_status" >&5
1784 (exit $ac_status); } >/dev/null; then
1785 if test -s conftest.err; then
1786 ac_cpp_err=$ac_c_preproc_warn_flag
1793 if test -z "$ac_cpp_err"; then
1794 # Broken: success on invalid input.
1797 echo "$as_me: failed program was:" >&5
1798 cat conftest.$ac_ext >&5
1799 # Passes both tests.
1803 rm -f conftest.err conftest.$ac_ext
1806 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1807 rm -f conftest.err conftest.$ac_ext
1808 if $ac_preproc_ok; then
1811 { { echo "$as_me:1811: error: C preprocessor \"$CPP\" fails sanity check" >&5
1812 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
1813 { (exit 1); exit 1; }; }
1817 ac_cpp='$CPP $CPPFLAGS'
1818 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1819 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1820 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1823 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1824 if test -f $ac_dir/install-sh; then
1826 ac_install_sh="$ac_aux_dir/install-sh -c"
1828 elif test -f $ac_dir/install.sh; then
1830 ac_install_sh="$ac_aux_dir/install.sh -c"
1832 elif test -f $ac_dir/shtool; then
1834 ac_install_sh="$ac_aux_dir/shtool install -c"
1838 if test -z "$ac_aux_dir"; then
1839 { { echo "$as_me:1839: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1840 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1841 { (exit 1); exit 1; }; }
1843 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1844 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1845 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1847 # Find a good install program. We prefer a C program (faster),
1848 # so one script is as good as another. But avoid the broken or
1849 # incompatible versions:
1850 # SysV /etc/install, /usr/sbin/install
1851 # SunOS /usr/etc/install
1852 # IRIX /sbin/install
1854 # AmigaOS /C/install, which installs bootblocks on floppy discs
1855 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1856 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1857 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1858 # ./install, which can be erroneously created by make from ./install.sh.
1859 echo "$as_me:1859: checking for a BSD compatible install" >&5
1860 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
1861 if test -z "$INSTALL"; then
1862 if test "${ac_cv_path_install+set}" = set; then
1863 echo $ECHO_N "(cached) $ECHO_C" >&6
1865 ac_save_IFS=$IFS; IFS=$ac_path_separator
1866 for ac_dir in $PATH; do
1868 # Account for people who put trailing slashes in PATH elements.
1870 / | ./ | .// | /cC/* \
1871 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
1874 # OSF1 and SCO ODT 3.0 have their own names for install.
1875 # Don't use installbsd from OSF since it installs stuff as root
1877 for ac_prog in ginstall scoinst install; do
1878 if $as_executable_p "$ac_dir/$ac_prog"; then
1879 if test $ac_prog = install &&
1880 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
1881 # AIX install. It has an incompatible calling convention.
1883 elif test $ac_prog = install &&
1884 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
1885 # program-specific install script used by HP pwplus--don't use.
1888 ac_cv_path_install="$ac_dir/$ac_prog -c"
1898 if test "${ac_cv_path_install+set}" = set; then
1899 INSTALL=$ac_cv_path_install
1901 # As a last resort, use the slow shell script. We don't cache a
1902 # path for INSTALL within a source directory, because that will
1903 # break other packages using the cache if that directory is
1904 # removed, or if the path is relative.
1905 INSTALL=$ac_install_sh
1908 echo "$as_me:1908: result: $INSTALL" >&5
1909 echo "${ECHO_T}$INSTALL" >&6
1911 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1912 # It thinks the first close brace ends the variable substitution.
1913 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1915 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1917 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1919 if test -n "$ac_tool_prefix"; then
1920 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1921 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1922 echo "$as_me:1922: checking for $ac_word" >&5
1923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1924 if test "${ac_cv_prog_RANLIB+set}" = set; then
1925 echo $ECHO_N "(cached) $ECHO_C" >&6
1927 if test -n "$RANLIB"; then
1928 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1930 ac_save_IFS=$IFS; IFS=$ac_path_separator
1932 for ac_dir in $ac_dummy; do
1934 test -z "$ac_dir" && ac_dir=.
1935 $as_executable_p "$ac_dir/$ac_word" || continue
1936 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1937 echo "$as_me:1937: found $ac_dir/$ac_word" >&5
1943 RANLIB=$ac_cv_prog_RANLIB
1944 if test -n "$RANLIB"; then
1945 echo "$as_me:1945: result: $RANLIB" >&5
1946 echo "${ECHO_T}$RANLIB" >&6
1948 echo "$as_me:1948: result: no" >&5
1949 echo "${ECHO_T}no" >&6
1953 if test -z "$ac_cv_prog_RANLIB"; then
1954 ac_ct_RANLIB=$RANLIB
1955 # Extract the first word of "ranlib", so it can be a program name with args.
1956 set dummy ranlib; ac_word=$2
1957 echo "$as_me:1957: checking for $ac_word" >&5
1958 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1959 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
1960 echo $ECHO_N "(cached) $ECHO_C" >&6
1962 if test -n "$ac_ct_RANLIB"; then
1963 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
1965 ac_save_IFS=$IFS; IFS=$ac_path_separator
1967 for ac_dir in $ac_dummy; do
1969 test -z "$ac_dir" && ac_dir=.
1970 $as_executable_p "$ac_dir/$ac_word" || continue
1971 ac_cv_prog_ac_ct_RANLIB="ranlib"
1972 echo "$as_me:1972: found $ac_dir/$ac_word" >&5
1976 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
1979 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
1980 if test -n "$ac_ct_RANLIB"; then
1981 echo "$as_me:1981: result: $ac_ct_RANLIB" >&5
1982 echo "${ECHO_T}$ac_ct_RANLIB" >&6
1984 echo "$as_me:1984: result: no" >&5
1985 echo "${ECHO_T}no" >&6
1988 RANLIB=$ac_ct_RANLIB
1990 RANLIB="$ac_cv_prog_RANLIB"
1993 if test -n "$ac_tool_prefix"; then
1994 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1995 set dummy ${ac_tool_prefix}ar; ac_word=$2
1996 echo "$as_me:1996: checking for $ac_word" >&5
1997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1998 if test "${ac_cv_prog_AR+set}" = set; then
1999 echo $ECHO_N "(cached) $ECHO_C" >&6
2001 if test -n "$AR"; then
2002 ac_cv_prog_AR="$AR" # Let the user override the test.
2004 ac_save_IFS=$IFS; IFS=$ac_path_separator
2006 for ac_dir in $ac_dummy; do
2008 test -z "$ac_dir" && ac_dir=.
2009 $as_executable_p "$ac_dir/$ac_word" || continue
2010 ac_cv_prog_AR="${ac_tool_prefix}ar"
2011 echo "$as_me:2011: found $ac_dir/$ac_word" >&5
2018 if test -n "$AR"; then
2019 echo "$as_me:2019: result: $AR" >&5
2020 echo "${ECHO_T}$AR" >&6
2022 echo "$as_me:2022: result: no" >&5
2023 echo "${ECHO_T}no" >&6
2027 if test -z "$ac_cv_prog_AR"; then
2029 # Extract the first word of "ar", so it can be a program name with args.
2030 set dummy ar; ac_word=$2
2031 echo "$as_me:2031: checking for $ac_word" >&5
2032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2033 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
2034 echo $ECHO_N "(cached) $ECHO_C" >&6
2036 if test -n "$ac_ct_AR"; then
2037 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
2039 ac_save_IFS=$IFS; IFS=$ac_path_separator
2041 for ac_dir in $ac_dummy; do
2043 test -z "$ac_dir" && ac_dir=.
2044 $as_executable_p "$ac_dir/$ac_word" || continue
2045 ac_cv_prog_ac_ct_AR="ar"
2046 echo "$as_me:2046: found $ac_dir/$ac_word" >&5
2050 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
2053 ac_ct_AR=$ac_cv_prog_ac_ct_AR
2054 if test -n "$ac_ct_AR"; then
2055 echo "$as_me:2055: result: $ac_ct_AR" >&5
2056 echo "${ECHO_T}$ac_ct_AR" >&6
2058 echo "$as_me:2058: result: no" >&5
2059 echo "${ECHO_T}no" >&6
2069 echo "$as_me:2069: checking for main in -lnsl" >&5
2070 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
2071 if test "${ac_cv_lib_nsl_main+set}" = set; then
2072 echo $ECHO_N "(cached) $ECHO_C" >&6
2074 ac_check_lib_save_LIBS=$LIBS
2076 cat >conftest.$ac_ext <<_ACEOF
2077 #line 2077 "configure"
2078 #include "confdefs.h"
2088 rm -f conftest.$ac_objext conftest$ac_exeext
2089 if { (eval echo "$as_me:2089: \"$ac_link\"") >&5
2090 (eval $ac_link) 2>&5
2092 echo "$as_me:2092: \$? = $ac_status" >&5
2093 (exit $ac_status); } &&
2094 { ac_try='test -s conftest$ac_exeext'
2095 { (eval echo "$as_me:2095: \"$ac_try\"") >&5
2098 echo "$as_me:2098: \$? = $ac_status" >&5
2099 (exit $ac_status); }; }; then
2100 ac_cv_lib_nsl_main=yes
2102 echo "$as_me: failed program was:" >&5
2103 cat conftest.$ac_ext >&5
2104 ac_cv_lib_nsl_main=no
2106 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2107 LIBS=$ac_check_lib_save_LIBS
2109 echo "$as_me:2109: result: $ac_cv_lib_nsl_main" >&5
2110 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
2111 if test $ac_cv_lib_nsl_main = yes; then
2112 cat >>confdefs.h <<EOF
2113 #define HAVE_LIBNSL 1
2119 ac_cv_lib_nsl=ac_cv_lib_nsl_main
2122 echo "$as_me:2122: checking for main in -lresolv" >&5
2123 echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6
2124 if test "${ac_cv_lib_resolv_main+set}" = set; then
2125 echo $ECHO_N "(cached) $ECHO_C" >&6
2127 ac_check_lib_save_LIBS=$LIBS
2128 LIBS="-lresolv $LIBS"
2129 cat >conftest.$ac_ext <<_ACEOF
2130 #line 2130 "configure"
2131 #include "confdefs.h"
2141 rm -f conftest.$ac_objext conftest$ac_exeext
2142 if { (eval echo "$as_me:2142: \"$ac_link\"") >&5
2143 (eval $ac_link) 2>&5
2145 echo "$as_me:2145: \$? = $ac_status" >&5
2146 (exit $ac_status); } &&
2147 { ac_try='test -s conftest$ac_exeext'
2148 { (eval echo "$as_me:2148: \"$ac_try\"") >&5
2151 echo "$as_me:2151: \$? = $ac_status" >&5
2152 (exit $ac_status); }; }; then
2153 ac_cv_lib_resolv_main=yes
2155 echo "$as_me: failed program was:" >&5
2156 cat conftest.$ac_ext >&5
2157 ac_cv_lib_resolv_main=no
2159 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2160 LIBS=$ac_check_lib_save_LIBS
2162 echo "$as_me:2162: result: $ac_cv_lib_resolv_main" >&5
2163 echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6
2164 if test $ac_cv_lib_resolv_main = yes; then
2165 cat >>confdefs.h <<EOF
2166 #define HAVE_LIBRESOLV 1
2169 LIBS="-lresolv $LIBS"
2172 ac_cv_lib_resolv=ac_cv_lib_resolv_main
2175 echo "$as_me:2175: checking for main in -lsocket" >&5
2176 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
2177 if test "${ac_cv_lib_socket_main+set}" = set; then
2178 echo $ECHO_N "(cached) $ECHO_C" >&6
2180 ac_check_lib_save_LIBS=$LIBS
2181 LIBS="-lsocket $LIBS"
2182 cat >conftest.$ac_ext <<_ACEOF
2183 #line 2183 "configure"
2184 #include "confdefs.h"
2194 rm -f conftest.$ac_objext conftest$ac_exeext
2195 if { (eval echo "$as_me:2195: \"$ac_link\"") >&5
2196 (eval $ac_link) 2>&5
2198 echo "$as_me:2198: \$? = $ac_status" >&5
2199 (exit $ac_status); } &&
2200 { ac_try='test -s conftest$ac_exeext'
2201 { (eval echo "$as_me:2201: \"$ac_try\"") >&5
2204 echo "$as_me:2204: \$? = $ac_status" >&5
2205 (exit $ac_status); }; }; then
2206 ac_cv_lib_socket_main=yes
2208 echo "$as_me: failed program was:" >&5
2209 cat conftest.$ac_ext >&5
2210 ac_cv_lib_socket_main=no
2212 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2213 LIBS=$ac_check_lib_save_LIBS
2215 echo "$as_me:2215: result: $ac_cv_lib_socket_main" >&5
2216 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
2217 if test $ac_cv_lib_socket_main = yes; then
2218 cat >>confdefs.h <<EOF
2219 #define HAVE_LIBSOCKET 1
2222 LIBS="-lsocket $LIBS"
2225 ac_cv_lib_socket=ac_cv_lib_socket_main
2228 echo "$as_me:2228: checking for main in -ldnet_stub" >&5
2229 echo $ECHO_N "checking for main in -ldnet_stub... $ECHO_C" >&6
2230 if test "${ac_cv_lib_dnet_stub_main+set}" = set; then
2231 echo $ECHO_N "(cached) $ECHO_C" >&6
2233 ac_check_lib_save_LIBS=$LIBS
2234 LIBS="-ldnet_stub $LIBS"
2235 cat >conftest.$ac_ext <<_ACEOF
2236 #line 2236 "configure"
2237 #include "confdefs.h"
2247 rm -f conftest.$ac_objext conftest$ac_exeext
2248 if { (eval echo "$as_me:2248: \"$ac_link\"") >&5
2249 (eval $ac_link) 2>&5
2251 echo "$as_me:2251: \$? = $ac_status" >&5
2252 (exit $ac_status); } &&
2253 { ac_try='test -s conftest$ac_exeext'
2254 { (eval echo "$as_me:2254: \"$ac_try\"") >&5
2257 echo "$as_me:2257: \$? = $ac_status" >&5
2258 (exit $ac_status); }; }; then
2259 ac_cv_lib_dnet_stub_main=yes
2261 echo "$as_me: failed program was:" >&5
2262 cat conftest.$ac_ext >&5
2263 ac_cv_lib_dnet_stub_main=no
2265 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2266 LIBS=$ac_check_lib_save_LIBS
2268 echo "$as_me:2268: result: $ac_cv_lib_dnet_stub_main" >&5
2269 echo "${ECHO_T}$ac_cv_lib_dnet_stub_main" >&6
2270 if test $ac_cv_lib_dnet_stub_main = yes; then
2271 cat >>confdefs.h <<EOF
2272 #define HAVE_LIBDNET_STUB 1
2275 LIBS="-ldnet_stub $LIBS"
2278 ac_cv_lib_dnet_stub=ac_cv_lib_dnet_stub_main
2281 echo "$as_me:2281: checking for main in -lieee" >&5
2282 echo $ECHO_N "checking for main in -lieee... $ECHO_C" >&6
2283 if test "${ac_cv_lib_ieee_main+set}" = set; then
2284 echo $ECHO_N "(cached) $ECHO_C" >&6
2286 ac_check_lib_save_LIBS=$LIBS
2288 cat >conftest.$ac_ext <<_ACEOF
2289 #line 2289 "configure"
2290 #include "confdefs.h"
2300 rm -f conftest.$ac_objext conftest$ac_exeext
2301 if { (eval echo "$as_me:2301: \"$ac_link\"") >&5
2302 (eval $ac_link) 2>&5
2304 echo "$as_me:2304: \$? = $ac_status" >&5
2305 (exit $ac_status); } &&
2306 { ac_try='test -s conftest$ac_exeext'
2307 { (eval echo "$as_me:2307: \"$ac_try\"") >&5
2310 echo "$as_me:2310: \$? = $ac_status" >&5
2311 (exit $ac_status); }; }; then
2312 ac_cv_lib_ieee_main=yes
2314 echo "$as_me: failed program was:" >&5
2315 cat conftest.$ac_ext >&5
2316 ac_cv_lib_ieee_main=no
2318 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2319 LIBS=$ac_check_lib_save_LIBS
2321 echo "$as_me:2321: result: $ac_cv_lib_ieee_main" >&5
2322 echo "${ECHO_T}$ac_cv_lib_ieee_main" >&6
2323 if test $ac_cv_lib_ieee_main = yes; then
2324 cat >>confdefs.h <<EOF
2325 #define HAVE_LIBIEEE 1
2331 ac_cv_lib_ieee=ac_cv_lib_ieee_main
2333 echo "$as_me:2333: checking for sun_len in sys/un.h" >&5
2334 echo $ECHO_N "checking for sun_len in sys/un.h... $ECHO_C" >&6
2336 cat >conftest.$ac_ext <<_ACEOF
2337 #line 2337 "configure"
2338 #include "confdefs.h"
2342 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2343 egrep "sun_len" >/dev/null 2>&1; then
2344 echo "$as_me:2344: result: yes" >&5
2345 echo "${ECHO_T}yes" >&6
2346 cat >>confdefs.h <<\EOF
2347 #define HAVE_SOCKADDR_UN_SUN_LEN 1
2351 echo "$as_me:2351: result: no" >&5
2352 echo "${ECHO_T}no" >&6
2358 for ac_func in strerror
2360 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
2361 echo "$as_me:2361: checking for $ac_func" >&5
2362 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
2363 if eval "test \"\${$as_ac_var+set}\" = set"; then
2364 echo $ECHO_N "(cached) $ECHO_C" >&6
2366 cat >conftest.$ac_ext <<_ACEOF
2367 #line 2367 "configure"
2368 #include "confdefs.h"
2369 /* System header to define __stub macros and hopefully few prototypes,
2370 which can conflict with char $ac_func (); below. */
2372 /* Override any gcc2 internal prototype to avoid an error. */
2376 /* We use char because int might match the return type of a gcc2
2377 builtin and then its argument prototype would still apply. */
2384 /* The GNU C library defines this for functions which it implements
2385 to always fail with ENOSYS. Some functions are actually named
2386 something starting with __ and the normal name is an alias. */
2387 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2397 rm -f conftest.$ac_objext conftest$ac_exeext
2398 if { (eval echo "$as_me:2398: \"$ac_link\"") >&5
2399 (eval $ac_link) 2>&5
2401 echo "$as_me:2401: \$? = $ac_status" >&5
2402 (exit $ac_status); } &&
2403 { ac_try='test -s conftest$ac_exeext'
2404 { (eval echo "$as_me:2404: \"$ac_try\"") >&5
2407 echo "$as_me:2407: \$? = $ac_status" >&5
2408 (exit $ac_status); }; }; then
2409 eval "$as_ac_var=yes"
2411 echo "$as_me: failed program was:" >&5
2412 cat conftest.$ac_ext >&5
2413 eval "$as_ac_var=no"
2415 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2417 echo "$as_me:2417: result: `eval echo '${'$as_ac_var'}'`" >&5
2418 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
2419 if test `eval echo '${'$as_ac_var'}'` = yes; then
2420 cat >>confdefs.h <<EOF
2421 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
2428 for ac_func in strerror
2430 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
2431 echo "$as_me:2431: checking for $ac_func" >&5
2432 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
2433 if eval "test \"\${$as_ac_var+set}\" = set"; then
2434 echo $ECHO_N "(cached) $ECHO_C" >&6
2436 cat >conftest.$ac_ext <<_ACEOF
2437 #line 2437 "configure"
2438 #include "confdefs.h"
2439 /* System header to define __stub macros and hopefully few prototypes,
2440 which can conflict with char $ac_func (); below. */
2442 /* Override any gcc2 internal prototype to avoid an error. */
2446 /* We use char because int might match the return type of a gcc2
2447 builtin and then its argument prototype would still apply. */
2454 /* The GNU C library defines this for functions which it implements
2455 to always fail with ENOSYS. Some functions are actually named
2456 something starting with __ and the normal name is an alias. */
2457 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2467 rm -f conftest.$ac_objext conftest$ac_exeext
2468 if { (eval echo "$as_me:2468: \"$ac_link\"") >&5
2469 (eval $ac_link) 2>&5
2471 echo "$as_me:2471: \$? = $ac_status" >&5
2472 (exit $ac_status); } &&
2473 { ac_try='test -s conftest$ac_exeext'
2474 { (eval echo "$as_me:2474: \"$ac_try\"") >&5
2477 echo "$as_me:2477: \$? = $ac_status" >&5
2478 (exit $ac_status); }; }; then
2479 eval "$as_ac_var=yes"
2481 echo "$as_me: failed program was:" >&5
2482 cat conftest.$ac_ext >&5
2483 eval "$as_ac_var=no"
2485 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2487 echo "$as_me:2487: result: `eval echo '${'$as_ac_var'}'`" >&5
2488 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
2489 if test `eval echo '${'$as_ac_var'}'` = yes; then
2490 cat >>confdefs.h <<EOF
2491 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
2495 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
2501 echo "$as_me:2501: checking for fpos in stdio.h" >&5
2502 echo $ECHO_N "checking for fpos in stdio.h... $ECHO_C" >&6
2503 cat >conftest.$ac_ext <<_ACEOF
2504 #line 2504 "configure"
2505 #include "confdefs.h"
2509 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2510 egrep "fpos_t" >/dev/null 2>&1; then
2511 echo "$as_me:2511: result: yes" >&5
2512 echo "${ECHO_T}yes" >&6
2513 cat >>confdefs.h <<\EOF
2518 echo "$as_me:2518: result: no" >&5
2519 echo "${ECHO_T}no" >&6
2525 for ac_header in sys/socket.h
2527 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2528 echo "$as_me:2528: checking for $ac_header" >&5
2529 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2530 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2531 echo $ECHO_N "(cached) $ECHO_C" >&6
2533 cat >conftest.$ac_ext <<_ACEOF
2534 #line 2534 "configure"
2535 #include "confdefs.h"
2536 #include <$ac_header>
2538 if { (eval echo "$as_me:2538: \"$ac_cpp conftest.$ac_ext\"") >&5
2539 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2541 egrep -v '^ *\+' conftest.er1 >conftest.err
2543 cat conftest.err >&5
2544 echo "$as_me:2544: \$? = $ac_status" >&5
2545 (exit $ac_status); } >/dev/null; then
2546 if test -s conftest.err; then
2547 ac_cpp_err=$ac_c_preproc_warn_flag
2554 if test -z "$ac_cpp_err"; then
2555 eval "$as_ac_Header=yes"
2557 echo "$as_me: failed program was:" >&5
2558 cat conftest.$ac_ext >&5
2559 eval "$as_ac_Header=no"
2561 rm -f conftest.err conftest.$ac_ext
2563 echo "$as_me:2563: result: `eval echo '${'$as_ac_Header'}'`" >&5
2564 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2565 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2566 cat >>confdefs.h <<EOF
2567 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2574 for ac_header in netdb.h
2576 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2577 echo "$as_me:2577: checking for $ac_header" >&5
2578 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2579 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2580 echo $ECHO_N "(cached) $ECHO_C" >&6
2582 cat >conftest.$ac_ext <<_ACEOF
2583 #line 2583 "configure"
2584 #include "confdefs.h"
2585 #include <$ac_header>
2587 if { (eval echo "$as_me:2587: \"$ac_cpp conftest.$ac_ext\"") >&5
2588 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2590 egrep -v '^ *\+' conftest.er1 >conftest.err
2592 cat conftest.err >&5
2593 echo "$as_me:2593: \$? = $ac_status" >&5
2594 (exit $ac_status); } >/dev/null; then
2595 if test -s conftest.err; then
2596 ac_cpp_err=$ac_c_preproc_warn_flag
2603 if test -z "$ac_cpp_err"; then
2604 eval "$as_ac_Header=yes"
2606 echo "$as_me: failed program was:" >&5
2607 cat conftest.$ac_ext >&5
2608 eval "$as_ac_Header=no"
2610 rm -f conftest.err conftest.$ac_ext
2612 echo "$as_me:2612: result: `eval echo '${'$as_ac_Header'}'`" >&5
2613 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2614 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2615 cat >>confdefs.h <<EOF
2616 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2623 for ac_header in netinet/in.h
2625 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2626 echo "$as_me:2626: checking for $ac_header" >&5
2627 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2628 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2629 echo $ECHO_N "(cached) $ECHO_C" >&6
2631 cat >conftest.$ac_ext <<_ACEOF
2632 #line 2632 "configure"
2633 #include "confdefs.h"
2634 #include <$ac_header>
2636 if { (eval echo "$as_me:2636: \"$ac_cpp conftest.$ac_ext\"") >&5
2637 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2639 egrep -v '^ *\+' conftest.er1 >conftest.err
2641 cat conftest.err >&5
2642 echo "$as_me:2642: \$? = $ac_status" >&5
2643 (exit $ac_status); } >/dev/null; then
2644 if test -s conftest.err; then
2645 ac_cpp_err=$ac_c_preproc_warn_flag
2652 if test -z "$ac_cpp_err"; then
2653 eval "$as_ac_Header=yes"
2655 echo "$as_me: failed program was:" >&5
2656 cat conftest.$ac_ext >&5
2657 eval "$as_ac_Header=no"
2659 rm -f conftest.err conftest.$ac_ext
2661 echo "$as_me:2661: result: `eval echo '${'$as_ac_Header'}'`" >&5
2662 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2663 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2664 cat >>confdefs.h <<EOF
2665 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2672 for ac_header in arpa/inet.h
2674 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2675 echo "$as_me:2675: checking for $ac_header" >&5
2676 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2677 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2678 echo $ECHO_N "(cached) $ECHO_C" >&6
2680 cat >conftest.$ac_ext <<_ACEOF
2681 #line 2681 "configure"
2682 #include "confdefs.h"
2683 #include <$ac_header>
2685 if { (eval echo "$as_me:2685: \"$ac_cpp conftest.$ac_ext\"") >&5
2686 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2688 egrep -v '^ *\+' conftest.er1 >conftest.err
2690 cat conftest.err >&5
2691 echo "$as_me:2691: \$? = $ac_status" >&5
2692 (exit $ac_status); } >/dev/null; then
2693 if test -s conftest.err; then
2694 ac_cpp_err=$ac_c_preproc_warn_flag
2701 if test -z "$ac_cpp_err"; then
2702 eval "$as_ac_Header=yes"
2704 echo "$as_me: failed program was:" >&5
2705 cat conftest.$ac_ext >&5
2706 eval "$as_ac_Header=no"
2708 rm -f conftest.err conftest.$ac_ext
2710 echo "$as_me:2710: result: `eval echo '${'$as_ac_Header'}'`" >&5
2711 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2712 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2713 cat >>confdefs.h <<EOF
2714 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2721 for ac_header in sys/time.h
2723 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2724 echo "$as_me:2724: checking for $ac_header" >&5
2725 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2726 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2727 echo $ECHO_N "(cached) $ECHO_C" >&6
2729 cat >conftest.$ac_ext <<_ACEOF
2730 #line 2730 "configure"
2731 #include "confdefs.h"
2732 #include <$ac_header>
2734 if { (eval echo "$as_me:2734: \"$ac_cpp conftest.$ac_ext\"") >&5
2735 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2737 egrep -v '^ *\+' conftest.er1 >conftest.err
2739 cat conftest.err >&5
2740 echo "$as_me:2740: \$? = $ac_status" >&5
2741 (exit $ac_status); } >/dev/null; then
2742 if test -s conftest.err; then
2743 ac_cpp_err=$ac_c_preproc_warn_flag
2750 if test -z "$ac_cpp_err"; then
2751 eval "$as_ac_Header=yes"
2753 echo "$as_me: failed program was:" >&5
2754 cat conftest.$ac_ext >&5
2755 eval "$as_ac_Header=no"
2757 rm -f conftest.err conftest.$ac_ext
2759 echo "$as_me:2759: result: `eval echo '${'$as_ac_Header'}'`" >&5
2760 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2761 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2762 cat >>confdefs.h <<EOF
2763 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2770 for ac_header in limits.h
2772 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2773 echo "$as_me:2773: checking for $ac_header" >&5
2774 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2775 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2776 echo $ECHO_N "(cached) $ECHO_C" >&6
2778 cat >conftest.$ac_ext <<_ACEOF
2779 #line 2779 "configure"
2780 #include "confdefs.h"
2781 #include <$ac_header>
2783 if { (eval echo "$as_me:2783: \"$ac_cpp conftest.$ac_ext\"") >&5
2784 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2786 egrep -v '^ *\+' conftest.er1 >conftest.err
2788 cat conftest.err >&5
2789 echo "$as_me:2789: \$? = $ac_status" >&5
2790 (exit $ac_status); } >/dev/null; then
2791 if test -s conftest.err; then
2792 ac_cpp_err=$ac_c_preproc_warn_flag
2799 if test -z "$ac_cpp_err"; then
2800 eval "$as_ac_Header=yes"
2802 echo "$as_me: failed program was:" >&5
2803 cat conftest.$ac_ext >&5
2804 eval "$as_ac_Header=no"
2806 rm -f conftest.err conftest.$ac_ext
2808 echo "$as_me:2808: result: `eval echo '${'$as_ac_Header'}'`" >&5
2809 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2810 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2811 cat >>confdefs.h <<EOF
2812 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2819 if test "x$have_sys_socket" = "xyes"; then
2820 echo "$as_me:2820: checking for socklen_t in sys/socket.h" >&5
2821 echo $ECHO_N "checking for socklen_t in sys/socket.h... $ECHO_C" >&6
2822 cat >conftest.$ac_ext <<_ACEOF
2823 #line 2823 "configure"
2824 #include "confdefs.h"
2825 #include <sys/socket.h>
2828 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2829 egrep "socklen_t" >/dev/null 2>&1; then
2830 echo "$as_me:2830: result: yes" >&5
2831 echo "${ECHO_T}yes" >&6
2832 cat >>confdefs.h <<\EOF
2833 #define HAVE_SOCKLEN 1
2837 echo "$as_me:2837: result: no" >&5
2838 echo "${ECHO_T}no" >&6
2844 #--------------------------------------------------------------------
2845 # Do we need cross-process locking on this platform?
2846 #--------------------------------------------------------------------
2847 echo "$as_me:2847: checking \"if this machine needs cross-process locking\"" >&5
2848 echo $ECHO_N "checking \"if this machine needs cross-process locking\"... $ECHO_C" >&6
2849 case "`uname -sr`" in
2851 cat >>confdefs.h <<\EOF
2852 #define USE_LOCKING 1
2855 echo "$as_me:2855: result: yes" >&5
2856 echo "${ECHO_T}yes" >&6
2859 cat >>confdefs.h <<\EOF
2860 #define USE_LOCKING 1
2863 echo "$as_me:2863: result: yes" >&5
2864 echo "${ECHO_T}yes" >&6
2867 cat >>confdefs.h <<\EOF
2868 #define USE_LOCKING 1
2871 echo "$as_me:2871: result: yes" >&5
2872 echo "${ECHO_T}yes" >&6
2875 echo "$as_me:2875: result: no" >&5
2876 echo "${ECHO_T}no" >&6
2880 #--------------------------------------------------------------------
2881 # Does va_arg(arg, long double) crash the compiler?
2882 # hpux 9.04 compiler does and so does Stratus FTX (uses HP's compiler)
2883 #--------------------------------------------------------------------
2884 echo "$as_me:2884: checking if va_arg(arg, long double) crashes the compiler" >&5
2885 echo $ECHO_N "checking if va_arg(arg, long double) crashes the compiler... $ECHO_C" >&6
2886 cat >conftest.$ac_ext <<_ACEOF
2887 #line 2887 "configure"
2888 #include "confdefs.h"
2893 long double lDblArg; va_list arg; lDblArg = va_arg(arg, long double);
2898 rm -f conftest.$ac_objext
2899 if { (eval echo "$as_me:2899: \"$ac_compile\"") >&5
2900 (eval $ac_compile) 2>&5
2902 echo "$as_me:2902: \$? = $ac_status" >&5
2903 (exit $ac_status); } &&
2904 { ac_try='test -s conftest.$ac_objext'
2905 { (eval echo "$as_me:2905: \"$ac_try\"") >&5
2908 echo "$as_me:2908: \$? = $ac_status" >&5
2909 (exit $ac_status); }; }; then
2910 echo "$as_me:2910: result: no" >&5
2911 echo "${ECHO_T}no" >&6
2913 echo "$as_me: failed program was:" >&5
2914 cat conftest.$ac_ext >&5
2915 cat >>confdefs.h <<\EOF
2916 #define HAVE_VA_ARG_LONG_DOUBLE_BUG 1
2919 echo "$as_me:2919: result: yes" >&5
2920 echo "${ECHO_T}yes" >&6
2922 rm -f conftest.$ac_objext conftest.$ac_ext
2924 #--------------------------------------------------------------------
2925 # What's the target system?
2926 #--------------------------------------------------------------------
2927 case "$PLATFORM_CLASS" in
2937 ac_config_files="$ac_config_files Makefile FastCGI.mak
\r libfcgi/Makefile libfcgi/libfcgi.mak
\r cgi-fcgi/Makefile cgi-fcgi/cgi-fcgi.mak
\r examples/Makefile"
2939 cat >confcache <<\_ACEOF
2940 # This file is a shell script that caches the results of configure
2941 # tests run on this system so they can be shared between configure
2942 # scripts and configure runs, see configure's option --config-cache.
2943 # It is not useful on other systems. If it contains results you don't
2944 # want to keep, you may remove or edit it.
2946 # config.status only pays attention to the cache file if you give it
2947 # the --recheck option to rerun configure.
2949 # `ac_cv_env_foo' variables (set or unset) will be overriden when
2950 # loading this file, other *unset* `ac_cv_foo' will be assigned the
2955 # The following way of writing the cache mishandles newlines in values,
2956 # but we know of no workaround that is simple, portable, and efficient.
2957 # So, don't put newlines in cache variables' values.
2958 # Ultrix sh set writes to stderr and can't be redirected directly,
2959 # and sets the high bit in the cache file unless we assign to the vars.
2962 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2964 # `set' does not quote correctly, so add quotes (double-quote
2965 # substitution turns \\\\ into \\, and sed turns \\ into \).
2968 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
2971 # `set' quotes correctly as required by POSIX, so do not add quotes.
2973 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
2980 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
2982 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
2984 if cmp -s $cache_file confcache; then :; else
2985 if test -w $cache_file; then
2986 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
2987 cat confcache >$cache_file
2989 echo "not updating unwritable cache $cache_file"
2994 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2995 # Let make expand exec_prefix.
2996 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2998 # VPATH may cause trouble with some makes, so we remove $(srcdir),
2999 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3000 # trailing colons and then remove the whole line if VPATH becomes empty
3001 # (actually we leave an empty line to preserve line numbers).
3002 if test "x$srcdir" = x.; then
3003 ac_vpsub='/^[ ]*VPATH[ ]*=/{
3004 s/:*\$(srcdir):*/:/;
3005 s/:*\${srcdir}:*/:/;
3007 s/^\([^=]*=[ ]*\):*/\1/;
3013 DEFS=-DHAVE_CONFIG_H
3015 : ${CONFIG_STATUS=./config.status}
3016 ac_clean_files_save=$ac_clean_files
3017 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3018 { echo "$as_me:3018: creating $CONFIG_STATUS" >&5
3019 echo "$as_me: creating $CONFIG_STATUS" >&6;}
3020 cat >$CONFIG_STATUS <<_ACEOF
3022 # Generated automatically by configure.
3023 # Run this file to recreate the current configuration.
3024 # Compiler output produced by configure, useful for debugging
3025 # configure, is in config.log if it exists.
3028 SHELL=\${CONFIG_SHELL-$SHELL}
3029 ac_cs_invocation="\$0 \$@"
3033 cat >>$CONFIG_STATUS <<\_ACEOF
3034 # Be Bourne compatible
3035 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3038 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
3042 # Name of the executable.
3043 as_me=`echo "$0" |sed 's,.*[\\/],,'`
3045 if expr a : '\(a\)' >/dev/null 2>&1; then
3051 rm -f conf$$ conf$$.exe conf$$.file
3053 if ln -s conf$$.file conf$$ 2>/dev/null; then
3054 # We could just check for DJGPP; but this test a) works b) is more generic
3055 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
3056 if test -f conf$$.exe; then
3057 # Don't use ln at all; we don't have any links
3062 elif ln conf$$.file conf$$ 2>/dev/null; then
3067 rm -f conf$$ conf$$.exe conf$$.file
3069 as_executable_p="test -f"
3071 # Support unset when possible.
3072 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
3079 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
3080 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
3081 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
3082 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
3083 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
3084 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
3085 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
3086 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
3089 # We need space, tab and new line, in precisely that order.
3095 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
3101 # Files that config.status was made for.
3102 if test -n "$ac_config_files"; then
3103 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
3106 if test -n "$ac_config_headers"; then
3107 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
3110 if test -n "$ac_config_links"; then
3111 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
3114 if test -n "$ac_config_commands"; then
3115 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
3118 cat >>$CONFIG_STATUS <<\EOF
3121 \`$as_me' instantiates files from templates according to the
3122 current configuration.
3124 Usage: $0 [OPTIONS] [FILE]...
3126 -h, --help print this help, then exit
3127 -V, --version print version number, then exit
3128 -d, --debug don't remove temporary files
3129 --recheck update $as_me by reconfiguring in the same conditions
3130 --file=FILE[:TEMPLATE]
3131 instantiate the configuration file FILE
3132 --header=FILE[:TEMPLATE]
3133 instantiate the configuration header FILE
3135 Configuration files:
3138 Configuration headers:
3141 Report bugs to <bug-autoconf@gnu.org>."
3144 cat >>$CONFIG_STATUS <<EOF
3147 configured by $0, generated by GNU Autoconf 2.52,
3148 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
3150 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
3151 Free Software Foundation, Inc.
3152 This config.status script is free software; the Free Software Foundation
3153 gives unlimited permission to copy, distribute and modify it."
3158 cat >>$CONFIG_STATUS <<\EOF
3159 # If no file are specified by the user, then we need to provide default
3160 # value. By we need to know if files were specified by the user.
3166 ac_option=`expr "x$1" : 'x\([^=]*\)='`
3167 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
3169 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
3173 *) # This is not an option, so the user has probably given explicit
3175 ac_need_defaults=false;;
3179 # Handling of the options.
3181 cat >>$CONFIG_STATUS <<EOF
3182 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3183 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
3184 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
3186 cat >>$CONFIG_STATUS <<\EOF
3187 --version | --vers* | -V )
3188 echo "$ac_cs_version"; exit 0 ;;
3190 # Conflict between --help and --header
3191 { { echo "$as_me:3191: error: ambiguous option: $1
3192 Try \`$0 --help' for more information." >&5
3193 echo "$as_me: error: ambiguous option: $1
3194 Try \`$0 --help' for more information." >&2;}
3195 { (exit 1); exit 1; }; };;
3196 --help | --hel | -h )
3197 echo "$ac_cs_usage"; exit 0 ;;
3198 --debug | --d* | -d )
3200 --file | --fil | --fi | --f )
3202 CONFIG_FILES="$CONFIG_FILES $1"
3203 ac_need_defaults=false;;
3204 --header | --heade | --head | --hea )
3206 CONFIG_HEADERS="$CONFIG_HEADERS $1"
3207 ac_need_defaults=false;;
3210 -*) { { echo "$as_me:3210: error: unrecognized option: $1
3211 Try \`$0 --help' for more information." >&5
3212 echo "$as_me: error: unrecognized option: $1
3213 Try \`$0 --help' for more information." >&2;}
3214 { (exit 1); exit 1; }; } ;;
3216 *) ac_config_targets="$ac_config_targets $1" ;;
3225 ## ----------------------- ##
3226 ## Running config.status. ##
3227 ## ----------------------- ##
3229 This file was extended by $as_me 2.52, executed with
3230 CONFIG_FILES = $CONFIG_FILES
3231 CONFIG_HEADERS = $CONFIG_HEADERS
3232 CONFIG_LINKS = $CONFIG_LINKS
3233 CONFIG_COMMANDS = $CONFIG_COMMANDS
3235 on `(hostname || uname -n) 2>/dev/null | sed 1q`
3240 cat >>$CONFIG_STATUS <<\EOF
3241 for ac_config_target in $ac_config_targets
3243 case "$ac_config_target" in
3244 # Handling of arguments.
3245 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
3246 "FastCGI.mak
\r" ) CONFIG_FILES="$CONFIG_FILES FastCGI.mak
\r" ;;
3247 "libfcgi/Makefile" ) CONFIG_FILES="$CONFIG_FILES libfcgi/Makefile" ;;
3248 "libfcgi/libfcgi.mak
\r" ) CONFIG_FILES="$CONFIG_FILES libfcgi/libfcgi.mak
\r" ;;
3249 "cgi-fcgi/Makefile" ) CONFIG_FILES="$CONFIG_FILES cgi-fcgi/Makefile" ;;
3250 "cgi-fcgi/cgi-fcgi.mak
\r" ) CONFIG_FILES="$CONFIG_FILES cgi-fcgi/cgi-fcgi.mak
\r" ;;
3251 "examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
3252 "include/fcgi_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/fcgi_config.h" ;;
3253 *) { { echo "$as_me:3253: error: invalid argument: $ac_config_target" >&5
3254 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
3255 { (exit 1); exit 1; }; };;
3259 # If the user did not use the arguments to specify the items to instantiate,
3260 # then the envvar interface is used. Set only those that are not.
3261 # We use the long form for the default assignment because of an extremely
3262 # bizarre bug on SunOS 4.1.3.
3263 if $ac_need_defaults; then
3264 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
3265 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
3268 # Create a temporary directory, and hook for its removal unless debugging.
3271 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3272 trap '{ (exit 1); exit 1; }' 1 2 13 15
3275 # Create a (secure) tmp directory for tmp files.
3278 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
3279 test -n "$tmp" && test -d "$tmp"
3282 tmp=$TMPDIR/cs$$-$RANDOM
3283 (umask 077 && mkdir $tmp)
3286 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3287 { (exit 1); exit 1; }
3292 cat >>$CONFIG_STATUS <<EOF
3295 # CONFIG_FILES section.
3298 # No need to generate the scripts if there are no CONFIG_FILES.
3299 # This happens for instance when ./config.status config.h
3300 if test -n "\$CONFIG_FILES"; then
3301 # Protect against being on the right side of a sed subst in config.status.
3302 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
3303 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
3304 s,@SHELL@,$SHELL,;t t
3305 s,@exec_prefix@,$exec_prefix,;t t
3306 s,@prefix@,$prefix,;t t
3307 s,@program_transform_name@,$program_transform_name,;t t
3308 s,@bindir@,$bindir,;t t
3309 s,@sbindir@,$sbindir,;t t
3310 s,@libexecdir@,$libexecdir,;t t
3311 s,@datadir@,$datadir,;t t
3312 s,@sysconfdir@,$sysconfdir,;t t
3313 s,@sharedstatedir@,$sharedstatedir,;t t
3314 s,@localstatedir@,$localstatedir,;t t
3315 s,@libdir@,$libdir,;t t
3316 s,@includedir@,$includedir,;t t
3317 s,@oldincludedir@,$oldincludedir,;t t
3318 s,@infodir@,$infodir,;t t
3319 s,@mandir@,$mandir,;t t
3320 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
3321 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
3322 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
3323 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
3324 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
3325 s,@build_alias@,$build_alias,;t t
3326 s,@host_alias@,$host_alias,;t t
3327 s,@target_alias@,$target_alias,;t t
3328 s,@ECHO_C@,$ECHO_C,;t t
3329 s,@ECHO_N@,$ECHO_N,;t t
3330 s,@ECHO_T@,$ECHO_T,;t t
3331 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
3335 s,@CFLAGS@,$CFLAGS,;t t
3336 s,@LDFLAGS@,$LDFLAGS,;t t
3337 s,@CPPFLAGS@,$CPPFLAGS,;t t
3338 s,@ac_ct_CC@,$ac_ct_CC,;t t
3339 s,@EXEEXT@,$EXEEXT,;t t
3340 s,@OBJEXT@,$OBJEXT,;t t
3342 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
3343 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
3344 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
3345 s,@RANLIB@,$RANLIB,;t t
3346 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
3348 s,@ac_ct_AR@,$ac_ct_AR,;t t
3349 s,@LIBOBJS@,$LIBOBJS,;t t
3350 s,@SYSTEM@,$SYSTEM,;t t
3355 cat >>$CONFIG_STATUS <<\EOF
3356 # Split the substitutions into bite-sized pieces for seds with
3357 # small command number limits, like on Digital OSF/1 and HP-UX.
3359 ac_sed_frag=1 # Number of current file.
3360 ac_beg=1 # First line for current file.
3361 ac_end=$ac_max_sed_lines # Line after last line for current file.
3364 while $ac_more_lines; do
3365 if test $ac_beg -gt 1; then
3366 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
3368 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
3370 if test ! -s $tmp/subs.frag; then
3373 # The purpose of the label and of the branching condition is to
3374 # speed up the sed processing (if there are no `@' at all, there
3375 # is no need to browse any of the substitutions).
3376 # These are the two extra sed commands mentioned above.
3378 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
3379 if test -z "$ac_sed_cmds"; then
3380 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
3382 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
3384 ac_sed_frag=`expr $ac_sed_frag + 1`
3386 ac_end=`expr $ac_end + $ac_max_sed_lines`
3389 if test -z "$ac_sed_cmds"; then
3392 fi # test -n "$CONFIG_FILES"
3395 cat >>$CONFIG_STATUS <<\EOF
3396 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
3397 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3399 - | *:- | *:-:* ) # input from stdin
3401 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3402 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3403 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3404 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3405 * ) ac_file_in=$ac_file.in ;;
3408 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
3409 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3410 X"$ac_file" : 'X\(//\)[^/]' \| \
3411 X"$ac_file" : 'X\(//\)$' \| \
3412 X"$ac_file" : 'X\(/\)' \| \
3413 . : '\(.\)' 2>/dev/null ||
3415 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3416 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
3417 /^X\(\/\/\)$/{ s//\1/; q; }
3418 /^X\(\/\).*/{ s//\1/; q; }
3420 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3422 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
3426 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
3427 case $as_mkdir_dir in
3428 # Skip DOS drivespec
3429 ?:) as_incr_dir=$as_mkdir_dir ;;
3431 as_incr_dir=$as_incr_dir/$as_mkdir_dir
3432 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
3437 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
3438 # A "../" for each directory in $ac_dir_suffix.
3439 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
3441 ac_dir_suffix= ac_dots=
3446 if test -z "$ac_dots"; then
3449 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
3452 ac_srcdir=$srcdir$ac_dir_suffix;
3453 ac_top_srcdir=$srcdir ;;
3455 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
3456 ac_top_srcdir=$ac_dots$srcdir ;;
3460 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
3461 *) ac_INSTALL=$ac_dots$INSTALL ;;
3464 if test x"$ac_file" != x-; then
3465 { echo "$as_me:3465: creating $ac_file" >&5
3466 echo "$as_me: creating $ac_file" >&6;}
3469 # Let's still pretend it is `configure' which instantiates (i.e., don't
3470 # use $as_me), people would be surprised to read:
3471 # /* config.h. Generated automatically by config.status. */
3472 configure_input="Generated automatically from `echo $ac_file_in |
3473 sed 's,.*/,,'` by configure."
3475 # First look for the input files in the build tree, otherwise in the
3477 ac_file_inputs=`IFS=:
3478 for f in $ac_file_in; do
3480 -) echo $tmp/stdin ;;
3482 # Absolute (can't be DOS-style, as IFS=:)
3483 test -f "$f" || { { echo "$as_me:3483: error: cannot find input file: $f" >&5
3484 echo "$as_me: error: cannot find input file: $f" >&2;}
3485 { (exit 1); exit 1; }; }
3488 if test -f "$f"; then
3491 elif test -f "$srcdir/$f"; then
3496 { { echo "$as_me:3496: error: cannot find input file: $f" >&5
3497 echo "$as_me: error: cannot find input file: $f" >&2;}
3498 { (exit 1); exit 1; }; }
3501 done` || { (exit 1); exit 1; }
3503 cat >>$CONFIG_STATUS <<EOF
3507 cat >>$CONFIG_STATUS <<\EOF
3509 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
3510 s,@configure_input@,$configure_input,;t t
3511 s,@srcdir@,$ac_srcdir,;t t
3512 s,@top_srcdir@,$ac_top_srcdir,;t t
3513 s,@INSTALL@,$ac_INSTALL,;t t
3514 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
3516 if test x"$ac_file" != x-; then
3517 mv $tmp/out $ac_file
3525 cat >>$CONFIG_STATUS <<\EOF
3528 # CONFIG_HEADER section.
3531 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3532 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3534 # ac_d sets the value in "#define NAME VALUE" lines.
3535 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3536 ac_dB='[ ].*$,\1#\2'
3539 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3540 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3541 ac_uB='$,\1#\2define\3'
3545 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
3546 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3548 - | *:- | *:-:* ) # input from stdin
3550 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3551 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3552 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3553 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3554 * ) ac_file_in=$ac_file.in ;;
3557 test x"$ac_file" != x- && { echo "$as_me:3557: creating $ac_file" >&5
3558 echo "$as_me: creating $ac_file" >&6;}
3560 # First look for the input files in the build tree, otherwise in the
3562 ac_file_inputs=`IFS=:
3563 for f in $ac_file_in; do
3565 -) echo $tmp/stdin ;;
3567 # Absolute (can't be DOS-style, as IFS=:)
3568 test -f "$f" || { { echo "$as_me:3568: error: cannot find input file: $f" >&5
3569 echo "$as_me: error: cannot find input file: $f" >&2;}
3570 { (exit 1); exit 1; }; }
3573 if test -f "$f"; then
3576 elif test -f "$srcdir/$f"; then
3581 { { echo "$as_me:3581: error: cannot find input file: $f" >&5
3582 echo "$as_me: error: cannot find input file: $f" >&2;}
3583 { (exit 1); exit 1; }; }
3586 done` || { (exit 1); exit 1; }
3587 # Remove the trailing spaces.
3588 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
3592 # Transform confdefs.h into two sed scripts, `conftest.defines' and
3593 # `conftest.undefs', that substitutes the proper values into
3594 # config.h.in to produce config.h. The first handles `#define'
3595 # templates, and the second `#undef' templates.
3596 # And first: Protect against being on the right side of a sed subst in
3597 # config.status. Protect against being in an unquoted here document
3599 rm -f conftest.defines conftest.undefs
3600 # Using a here document instead of a string reduces the quoting nightmare.
3601 # Putting comments in sed scripts is not portable.
3603 # `end' is used to avoid that the second main sed command (meant for
3604 # 0-ary CPP macros) applies to n-ary macro definitions.
3605 # See the Autoconf documentation for `clear'.
3606 cat >confdef2sed.sed <<\EOF
3611 s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
3613 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
3616 # If some macros were called several times there might be several times
3617 # the same #defines, which is useless. Nevertheless, we may not want to
3618 # sort them, since we want the *last* AC-DEFINE to be honored.
3619 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
3620 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
3621 rm -f confdef2sed.sed
3623 # This sed command replaces #undef with comments. This is necessary, for
3624 # example, in the case of _POSIX_SOURCE, which is predefined and required
3625 # on some systems where configure will not decide to define it.
3626 cat >>conftest.undefs <<\EOF
3627 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
3630 # Break up conftest.defines because some shells have a limit on the size
3631 # of here documents, and old seds have small limits too (100 cmds).
3632 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
3633 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
3634 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
3635 echo ' :' >>$CONFIG_STATUS
3637 while grep . conftest.defines >/dev/null
3639 # Write a limited-size here document to $tmp/defines.sed.
3640 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
3641 # Speed up: don't consider the non `#define' lines.
3642 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
3643 # Work around the forget-to-reset-the-flag bug.
3644 echo 't clr' >>$CONFIG_STATUS
3645 echo ': clr' >>$CONFIG_STATUS
3646 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
3648 sed -f $tmp/defines.sed $tmp/in >$tmp/out
3652 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
3653 rm -f conftest.defines
3654 mv conftest.tail conftest.defines
3656 rm -f conftest.defines
3657 echo ' fi # egrep' >>$CONFIG_STATUS
3658 echo >>$CONFIG_STATUS
3660 # Break up conftest.undefs because some shells have a limit on the size
3661 # of here documents, and old seds have small limits too (100 cmds).
3662 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
3664 while grep . conftest.undefs >/dev/null
3666 # Write a limited-size here document to $tmp/undefs.sed.
3667 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
3668 # Speed up: don't consider the non `#undef'
3669 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
3670 # Work around the forget-to-reset-the-flag bug.
3671 echo 't clr' >>$CONFIG_STATUS
3672 echo ': clr' >>$CONFIG_STATUS
3673 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
3675 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
3679 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
3680 rm -f conftest.undefs
3681 mv conftest.tail conftest.undefs
3683 rm -f conftest.undefs
3685 cat >>$CONFIG_STATUS <<\EOF
3686 # Let's still pretend it is `configure' which instantiates (i.e., don't
3687 # use $as_me), people would be surprised to read:
3688 # /* config.h. Generated automatically by config.status. */
3689 if test x"$ac_file" = x-; then
3690 echo "/* Generated automatically by configure. */" >$tmp/config.h
3692 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
3694 cat $tmp/in >>$tmp/config.h
3696 if test x"$ac_file" != x-; then
3697 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
3698 { echo "$as_me:3698: $ac_file is unchanged" >&5
3699 echo "$as_me: $ac_file is unchanged" >&6;}
3701 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3702 X"$ac_file" : 'X\(//\)[^/]' \| \
3703 X"$ac_file" : 'X\(//\)$' \| \
3704 X"$ac_file" : 'X\(/\)' \| \
3705 . : '\(.\)' 2>/dev/null ||
3707 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3708 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
3709 /^X\(\/\/\)$/{ s//\1/; q; }
3710 /^X\(\/\).*/{ s//\1/; q; }
3712 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3714 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
3718 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
3719 case $as_mkdir_dir in
3720 # Skip DOS drivespec
3721 ?:) as_incr_dir=$as_mkdir_dir ;;
3723 as_incr_dir=$as_incr_dir/$as_mkdir_dir
3724 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
3731 mv $tmp/config.h $ac_file
3740 cat >>$CONFIG_STATUS <<\EOF
3742 { (exit 0); exit 0; }
3744 chmod +x $CONFIG_STATUS
3745 ac_clean_files=$ac_clean_files_save
3747 # configure is writing to config.log, and then calls config.status.
3748 # config.status does its own redirection, appending to config.log.
3749 # Unfortunately, on DOS this fails, as config.log is still kept open
3750 # by configure, so config.status won't be able to write to it; its
3751 # output is simply discarded. So we exec the FD to /dev/null,
3752 # effectively closing config.log, so it can be properly (re)opened and
3753 # appended to by config.status. When coming back to configure, we
3754 # need to make the FD available again.
3755 if test "$no_create" != yes; then
3758 $SHELL $CONFIG_STATUS || ac_cs_success=false
3760 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
3761 # would make configure fail if this is the last instruction.
3762 $ac_cs_success || { (exit 1); exit 1; }