2 # From configure.in Revision: 1.19 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by Autoconf 2.52.
6 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
7 # Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
11 # Avoid depending upon Character Ranges.
12 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15 as_cr_digits='0123456789'
16 as_cr_alnum=$as_cr_Letters$as_cr_digits
18 # Sed expression to map a string onto a valid variable name.
19 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
21 # Sed expression to map a string onto a valid CPP name.
22 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
24 # Be Bourne compatible
25 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
28 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
32 # Name of the executable.
33 as_me=`echo "$0" |sed 's,.*[\\/],,'`
35 if expr a : '\(a\)' >/dev/null 2>&1; then
41 rm -f conf$$ conf$$.exe conf$$.file
43 if ln -s conf$$.file conf$$ 2>/dev/null; then
44 # We could just check for DJGPP; but this test a) works b) is more generic
45 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
46 if test -f conf$$.exe; then
47 # Don't use ln at all; we don't have any links
52 elif ln conf$$.file conf$$ 2>/dev/null; then
57 rm -f conf$$ conf$$.exe conf$$.file
59 as_executable_p="test -f"
61 # Support unset when possible.
62 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
69 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
70 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
71 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
72 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
73 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
74 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
75 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
76 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
79 # We need space, tab and new line, in precisely that order.
85 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
88 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
89 # so uname gets run too.
90 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
97 ac_default_prefix=/usr/local
101 SHELL=${CONFIG_SHELL-/bin/sh}
103 # Maximum number of lines to put in a shell here document.
104 # This variable seems obsolete. It should probably be removed, and
105 # only ac_max_sed_lines should be used.
106 : ${ac_max_here_lines=38}
108 ac_unique_file="jcc.c"
109 # Factoring default headers for most tests.
110 ac_includes_default="\
113 # include <sys/types.h>
116 # include <sys/stat.h>
127 # if !STDC_HEADERS && HAVE_MEMORY_H
133 # include <strings.h>
136 # include <inttypes.h>
146 # Initialize some variables set by options.
148 ac_init_version=false
149 # The variables have the same names as the options, with
150 # dashes changed to underlines.
158 program_transform_name=s,x,x,
166 # Installation directory options.
167 # These are left unexpanded so users can "make install exec_prefix=/foo"
168 # and all the variables that are supposed to be based on exec_prefix
169 # by default will actually change.
170 # Use braces instead of parens because sh, perl, etc. also accept them.
171 bindir='${exec_prefix}/bin'
172 sbindir='${exec_prefix}/sbin'
173 libexecdir='${exec_prefix}/libexec'
174 datadir='${prefix}/share'
175 sysconfdir='${prefix}/etc'
176 sharedstatedir='${prefix}/com'
177 localstatedir='${prefix}/var'
178 libdir='${exec_prefix}/lib'
179 includedir='${prefix}/include'
180 oldincludedir='/usr/include'
181 infodir='${prefix}/info'
182 mandir='${prefix}/man'
184 # Identity of this package.
194 # If the previous option needs an argument, assign it.
195 if test -n "$ac_prev"; then
196 eval "$ac_prev=\$ac_option"
201 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
203 # Accept the important Cygnus configure options, so we can diagnose typos.
207 -bindir | --bindir | --bindi | --bind | --bin | --bi)
209 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
212 -build | --build | --buil | --bui | --bu)
213 ac_prev=build_alias ;;
214 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
215 build_alias=$ac_optarg ;;
217 -cache-file | --cache-file | --cache-fil | --cache-fi \
218 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
219 ac_prev=cache_file ;;
220 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
221 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
222 cache_file=$ac_optarg ;;
225 cache_file=config.cache ;;
227 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
229 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
231 datadir=$ac_optarg ;;
233 -disable-* | --disable-*)
234 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
235 # Reject names that are not valid shell variable names.
236 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
237 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
238 { (exit 1); exit 1; }; }
239 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
240 eval "enable_$ac_feature=no" ;;
242 -enable-* | --enable-*)
243 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
244 # Reject names that are not valid shell variable names.
245 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
246 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
247 { (exit 1); exit 1; }; }
248 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
250 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
253 eval "enable_$ac_feature='$ac_optarg'" ;;
255 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
256 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
257 | --exec | --exe | --ex)
258 ac_prev=exec_prefix ;;
259 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
260 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
261 | --exec=* | --exe=* | --ex=*)
262 exec_prefix=$ac_optarg ;;
264 -gas | --gas | --ga | --g)
265 # Obsolete; use --with-gas.
268 -help | --help | --hel | --he | -h)
270 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
271 ac_init_help=recursive ;;
272 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
273 ac_init_help=short ;;
275 -host | --host | --hos | --ho)
276 ac_prev=host_alias ;;
277 -host=* | --host=* | --hos=* | --ho=*)
278 host_alias=$ac_optarg ;;
280 -includedir | --includedir | --includedi | --included | --include \
281 | --includ | --inclu | --incl | --inc)
282 ac_prev=includedir ;;
283 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
284 | --includ=* | --inclu=* | --incl=* | --inc=*)
285 includedir=$ac_optarg ;;
287 -infodir | --infodir | --infodi | --infod | --info | --inf)
289 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
290 infodir=$ac_optarg ;;
292 -libdir | --libdir | --libdi | --libd)
294 -libdir=* | --libdir=* | --libdi=* | --libd=*)
297 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
298 | --libexe | --libex | --libe)
299 ac_prev=libexecdir ;;
300 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
301 | --libexe=* | --libex=* | --libe=*)
302 libexecdir=$ac_optarg ;;
304 -localstatedir | --localstatedir | --localstatedi | --localstated \
305 | --localstate | --localstat | --localsta | --localst \
306 | --locals | --local | --loca | --loc | --lo)
307 ac_prev=localstatedir ;;
308 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
309 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
310 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
311 localstatedir=$ac_optarg ;;
313 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
315 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
319 # Obsolete; use --without-fp.
322 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
326 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
327 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
330 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
331 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
332 | --oldin | --oldi | --old | --ol | --o)
333 ac_prev=oldincludedir ;;
334 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
335 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
336 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
337 oldincludedir=$ac_optarg ;;
339 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
341 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
344 -program-prefix | --program-prefix | --program-prefi | --program-pref \
345 | --program-pre | --program-pr | --program-p)
346 ac_prev=program_prefix ;;
347 -program-prefix=* | --program-prefix=* | --program-prefi=* \
348 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
349 program_prefix=$ac_optarg ;;
351 -program-suffix | --program-suffix | --program-suffi | --program-suff \
352 | --program-suf | --program-su | --program-s)
353 ac_prev=program_suffix ;;
354 -program-suffix=* | --program-suffix=* | --program-suffi=* \
355 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
356 program_suffix=$ac_optarg ;;
358 -program-transform-name | --program-transform-name \
359 | --program-transform-nam | --program-transform-na \
360 | --program-transform-n | --program-transform- \
361 | --program-transform | --program-transfor \
362 | --program-transfo | --program-transf \
363 | --program-trans | --program-tran \
364 | --progr-tra | --program-tr | --program-t)
365 ac_prev=program_transform_name ;;
366 -program-transform-name=* | --program-transform-name=* \
367 | --program-transform-nam=* | --program-transform-na=* \
368 | --program-transform-n=* | --program-transform-=* \
369 | --program-transform=* | --program-transfor=* \
370 | --program-transfo=* | --program-transf=* \
371 | --program-trans=* | --program-tran=* \
372 | --progr-tra=* | --program-tr=* | --program-t=*)
373 program_transform_name=$ac_optarg ;;
375 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
376 | -silent | --silent | --silen | --sile | --sil)
379 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
381 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
383 sbindir=$ac_optarg ;;
385 -sharedstatedir | --sharedstatedir | --sharedstatedi \
386 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
387 | --sharedst | --shareds | --shared | --share | --shar \
389 ac_prev=sharedstatedir ;;
390 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
391 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
392 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
394 sharedstatedir=$ac_optarg ;;
396 -site | --site | --sit)
398 -site=* | --site=* | --sit=*)
401 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
403 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
406 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
407 | --syscon | --sysco | --sysc | --sys | --sy)
408 ac_prev=sysconfdir ;;
409 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
410 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
411 sysconfdir=$ac_optarg ;;
413 -target | --target | --targe | --targ | --tar | --ta | --t)
414 ac_prev=target_alias ;;
415 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
416 target_alias=$ac_optarg ;;
418 -v | -verbose | --verbose | --verbos | --verbo | --verb)
421 -version | --version | --versio | --versi | --vers | -V)
425 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
426 # Reject names that are not valid shell variable names.
427 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
428 { echo "$as_me: error: invalid package name: $ac_package" >&2
429 { (exit 1); exit 1; }; }
430 ac_package=`echo $ac_package| sed 's/-/_/g'`
432 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
435 eval "with_$ac_package='$ac_optarg'" ;;
437 -without-* | --without-*)
438 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
439 # Reject names that are not valid shell variable names.
440 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
441 { echo "$as_me: error: invalid package name: $ac_package" >&2
442 { (exit 1); exit 1; }; }
443 ac_package=`echo $ac_package | sed 's/-/_/g'`
444 eval "with_$ac_package=no" ;;
447 # Obsolete; use --with-x.
450 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
451 | --x-incl | --x-inc | --x-in | --x-i)
452 ac_prev=x_includes ;;
453 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
454 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
455 x_includes=$ac_optarg ;;
457 -x-libraries | --x-libraries | --x-librarie | --x-librari \
458 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
459 ac_prev=x_libraries ;;
460 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
461 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
462 x_libraries=$ac_optarg ;;
464 -*) { echo "$as_me: error: unrecognized option: $ac_option
465 Try \`$0 --help' for more information." >&2
466 { (exit 1); exit 1; }; }
470 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
471 # Reject names that are not valid shell variable names.
472 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
473 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
474 { (exit 1); exit 1; }; }
475 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
476 eval "$ac_envvar='$ac_optarg'"
480 # FIXME: should be removed in autoconf 3.0.
481 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
482 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
483 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
484 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
490 if test -n "$ac_prev"; then
491 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
492 { echo "$as_me: error: missing argument to $ac_option" >&2
493 { (exit 1); exit 1; }; }
496 # Be sure to have absolute paths.
497 for ac_var in exec_prefix prefix
499 eval ac_val=$`echo $ac_var`
501 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
502 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
503 { (exit 1); exit 1; }; };;
507 # Be sure to have absolute paths.
508 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
509 localstatedir libdir includedir oldincludedir infodir mandir
511 eval ac_val=$`echo $ac_var`
513 [\\/$]* | ?:[\\/]* ) ;;
514 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
515 { (exit 1); exit 1; }; };;
519 # There might be people who depend on the old broken behavior: `$host'
520 # used to hold the argument of --host etc.
525 # FIXME: should be removed in autoconf 3.0.
526 if test "x$host_alias" != x; then
527 if test "x$build_alias" = x; then
528 cross_compiling=maybe
529 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
530 If a cross compiler is detected then cross compile mode will be used." >&2
531 elif test "x$build_alias" != "x$host_alias"; then
537 test -n "$host_alias" && ac_tool_prefix=$host_alias-
539 test "$silent" = yes && exec 6>/dev/null
541 # Find the source files, if location was not specified.
542 if test -z "$srcdir"; then
543 ac_srcdir_defaulted=yes
544 # Try the directory containing this script, then its parent.
546 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
547 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
549 if test ! -r $srcdir/$ac_unique_file; then
553 ac_srcdir_defaulted=no
555 if test ! -r $srcdir/$ac_unique_file; then
556 if test "$ac_srcdir_defaulted" = yes; then
557 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
558 { (exit 1); exit 1; }; }
560 { echo "$as_me: error: cannot find sources in $srcdir" >&2
561 { (exit 1); exit 1; }; }
564 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
565 ac_env_build_alias_set=${build_alias+set}
566 ac_env_build_alias_value=$build_alias
567 ac_cv_env_build_alias_set=${build_alias+set}
568 ac_cv_env_build_alias_value=$build_alias
569 ac_env_host_alias_set=${host_alias+set}
570 ac_env_host_alias_value=$host_alias
571 ac_cv_env_host_alias_set=${host_alias+set}
572 ac_cv_env_host_alias_value=$host_alias
573 ac_env_target_alias_set=${target_alias+set}
574 ac_env_target_alias_value=$target_alias
575 ac_cv_env_target_alias_set=${target_alias+set}
576 ac_cv_env_target_alias_value=$target_alias
577 ac_env_CC_set=${CC+set}
579 ac_cv_env_CC_set=${CC+set}
580 ac_cv_env_CC_value=$CC
581 ac_env_CFLAGS_set=${CFLAGS+set}
582 ac_env_CFLAGS_value=$CFLAGS
583 ac_cv_env_CFLAGS_set=${CFLAGS+set}
584 ac_cv_env_CFLAGS_value=$CFLAGS
585 ac_env_LDFLAGS_set=${LDFLAGS+set}
586 ac_env_LDFLAGS_value=$LDFLAGS
587 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
588 ac_cv_env_LDFLAGS_value=$LDFLAGS
589 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
590 ac_env_CPPFLAGS_value=$CPPFLAGS
591 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
592 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
593 ac_env_CPP_set=${CPP+set}
594 ac_env_CPP_value=$CPP
595 ac_cv_env_CPP_set=${CPP+set}
596 ac_cv_env_CPP_value=$CPP
599 # Report the --help message.
601 if test "$ac_init_help" = "long"; then
602 # Omit some internal or obsolete options to make the list less imposing.
603 # This message is too long to be a string in the A/UX 3.1 sh.
605 \`configure' configures this package to adapt to many kinds of systems.
607 Usage: $0 [OPTION]... [VAR=VALUE]...
609 To assign environment variables (e.g., CC, CFLAGS...), specify them as
610 VAR=VALUE. See below for descriptions of some of the useful variables.
612 Defaults for the options are specified in brackets.
615 -h, --help display this help and exit
616 --help=short display options specific to this package
617 --help=recursive display the short help of all the included packages
618 -V, --version display version information and exit
619 -q, --quiet, --silent do not print \`checking...' messages
620 --cache-file=FILE cache test results in FILE [disabled]
621 -C, --config-cache alias for \`--cache-file=config.cache'
622 -n, --no-create do not create output files
623 --srcdir=DIR find the sources in DIR [configure dir or \`..']
628 Installation directories:
629 --prefix=PREFIX install architecture-independent files in PREFIX
631 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
634 By default, \`make install' will install all the files in
635 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
636 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
637 for instance \`--prefix=\$HOME'.
639 For better control, use the options below.
641 Fine tuning of the installation directories:
642 --bindir=DIR user executables [EPREFIX/bin]
643 --sbindir=DIR system admin executables [EPREFIX/sbin]
644 --libexecdir=DIR program executables [EPREFIX/libexec]
645 --datadir=DIR read-only architecture-independent data [PREFIX/share]
646 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
647 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
648 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
649 --libdir=DIR object code libraries [EPREFIX/lib]
650 --includedir=DIR C header files [PREFIX/include]
651 --oldincludedir=DIR C header files for non-gcc [/usr/include]
652 --infodir=DIR info documentation [PREFIX/info]
653 --mandir=DIR man documentation [PREFIX/man]
659 --build=BUILD configure for building on BUILD [guessed]
660 --host=HOST build programs to run on HOST [BUILD]
664 if test -n "$ac_init_help"; then
669 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
670 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
671 --enable-mingw32 Use mingw32 for a Windows GUI
672 --disable-pthread Don't use POSIX threads (pthreads)
673 --disable-toggle Don't support temporary disable
674 --disable-force Don't allow blockfile to be bypassed
675 --disable-fast-redirects Don't support fast redirects
676 --disable-killpopup Never block popups
677 --disable-stats Don't keep statistics
678 --disable-ie-images Don't auto-detect whether a request from MS Internet
679 Explorer is for an image or HTML.
680 --disable-image-blocking Don't try to figure out whether a request is
681 for an image or HTML - assume HTML.
682 --disable-acl-files Prevents the use of ACL files to control access to
683 the proxy by IP address.
684 --disable-trust-files Prevents the use of trust files.
685 --disable-jar-files Prevents the use of jar files to capture cookies.
686 --enable-regex-matching=pcre Use perl-compatible regex for actionsfile
687 pattern matching (default)
688 --enable-regex-matching=gnu Use gnu style regex for actionsfile pattern
689 matching (-> bigger binary)
690 --disable-regex-matching Don't use regex matching, compare URL
691 prefix instead (won't shrink birary)
692 --disable-dynamic-pcre Use the built-in, static pcre, even if
694 --disable-dynamic-pcrs Use the built-in, static pcrs, even if
698 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
699 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
700 --with-debug Enable debug mode
702 Some influential environment variables:
703 CC C compiler command
704 CFLAGS C compiler flags
705 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
706 nonstandard directory <lib dir>
707 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
708 headers in a nonstandard directory <include dir>
711 Use these variables to override the choices made by `configure' or to help
712 it to find libraries and programs with nonstandard names/locations.
717 if test "$ac_init_help" = "recursive"; then
718 # If there are subdirs, report their specific --help.
720 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
722 # A "../" for each directory in /$ac_subdir.
723 ac_dots=`echo $ac_subdir |
724 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
727 .) # No --srcdir option. We are building in place.
728 ac_sub_srcdir=$srcdir ;;
729 [\\/]* | ?:[\\/]* ) # Absolute path.
730 ac_sub_srcdir=$srcdir/$ac_subdir ;;
732 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
735 # Check for guested configure; otherwise get Cygnus style configure.
736 if test -f $ac_sub_srcdir/configure.gnu; then
738 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
739 elif test -f $ac_sub_srcdir/configure; then
741 $SHELL $ac_sub_srcdir/configure --help=recursive
742 elif test -f $ac_sub_srcdir/configure.ac ||
743 test -f $ac_sub_srcdir/configure.in; then
747 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
753 test -n "$ac_init_help" && exit 0
754 if $ac_init_version; then
757 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
758 Free Software Foundation, Inc.
759 This configure script is free software; the Free Software Foundation
760 gives unlimited permission to copy, distribute and modify it.
766 This file contains any messages produced by compilers while
767 running configure, to aid debugging if configure makes a mistake.
769 It was created by $as_me, which was
770 generated by GNU Autoconf 2.52. Invocation command line was
781 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
782 uname -m = `(uname -m) 2>/dev/null || echo unknown`
783 uname -r = `(uname -r) 2>/dev/null || echo unknown`
784 uname -s = `(uname -s) 2>/dev/null || echo unknown`
785 uname -v = `(uname -v) 2>/dev/null || echo unknown`
787 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
788 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
790 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
791 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
792 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
793 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
794 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
795 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
796 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
810 # Keep a trace of the command line.
811 # Strip out --no-create and --no-recursion so they do not pile up.
812 # Also quote any args containing shell meta-characters.
818 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
819 | --no-cr | --no-c) ;;
820 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
821 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
822 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
823 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
824 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
826 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
829 # Get rid of the leading space.
832 # When interrupted or exit'd, cleanup temporary files, and complete
833 # config.log. We remove comments because anyway the quotes in there
834 # would cause problems or look ugly.
836 # Save into config.log some information that might help in debugging.
838 echo "## ----------------- ##" >&5
839 echo "## Cache variables. ##" >&5
840 echo "## ----------------- ##" >&5
842 # The following way of writing the cache mishandles newlines in values,
845 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
848 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
849 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
853 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
857 sed "/^$/d" confdefs.h >conftest.log
858 if test -s conftest.log; then
860 echo "## ------------ ##" >&5
861 echo "## confdefs.h. ##" >&5
862 echo "## ------------ ##" >&5
867 test "$ac_signal" != 0 &&
868 echo "$as_me: caught signal $ac_signal" >&5
869 echo "$as_me: exit $exit_status" >&5
870 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
873 for ac_signal in 1 2 13 15; do
874 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
878 # confdefs.h avoids OS command line length limits that DEFS can exceed.
879 rm -rf conftest* confdefs.h
880 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
883 # Let the site file select an alternate cache file if it wants to.
884 # Prefer explicitly selected file to automatically selected ones.
885 if test -z "$CONFIG_SITE"; then
886 if test "x$prefix" != xNONE; then
887 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
889 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
892 for ac_site_file in $CONFIG_SITE; do
893 if test -r "$ac_site_file"; then
894 { echo "$as_me:894: loading site script $ac_site_file" >&5
895 echo "$as_me: loading site script $ac_site_file" >&6;}
896 cat "$ac_site_file" >&5
901 if test -r "$cache_file"; then
902 # Some versions of bash will fail to source /dev/null (special
903 # files actually), so we avoid doing that.
904 if test -f "$cache_file"; then
905 { echo "$as_me:905: loading cache $cache_file" >&5
906 echo "$as_me: loading cache $cache_file" >&6;}
908 [\\/]* | ?:[\\/]* ) . $cache_file;;
913 { echo "$as_me:913: creating cache $cache_file" >&5
914 echo "$as_me: creating cache $cache_file" >&6;}
918 # Check that the precious variables saved in the cache have kept the same
920 ac_cache_corrupted=false
921 for ac_var in `(set) 2>&1 |
922 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
923 eval ac_old_set=\$ac_cv_env_${ac_var}_set
924 eval ac_new_set=\$ac_env_${ac_var}_set
925 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
926 eval ac_new_val="\$ac_env_${ac_var}_value"
927 case $ac_old_set,$ac_new_set in
929 { echo "$as_me:929: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
930 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
931 ac_cache_corrupted=: ;;
933 { echo "$as_me:933: error: \`$ac_var' was not set in the previous run" >&5
934 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
935 ac_cache_corrupted=: ;;
938 if test "x$ac_old_val" != "x$ac_new_val"; then
939 { echo "$as_me:939: error: \`$ac_var' has changed since the previous run:" >&5
940 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
941 { echo "$as_me:941: former value: $ac_old_val" >&5
942 echo "$as_me: former value: $ac_old_val" >&2;}
943 { echo "$as_me:943: current value: $ac_new_val" >&5
944 echo "$as_me: current value: $ac_new_val" >&2;}
948 # Pass precious variables to config.status. It doesn't matter if
949 # we pass some twice (in addition to the command line arguments).
950 if test "$ac_new_set" = set; then
952 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
953 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
954 ac_configure_args="$ac_configure_args '$ac_arg'"
956 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
961 if $ac_cache_corrupted; then
962 { echo "$as_me:962: error: changes in the environment can compromise the build" >&5
963 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
964 { { echo "$as_me:964: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
965 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
966 { (exit 1); exit 1; }; }
970 ac_cpp='$CPP $CPPFLAGS'
971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
975 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
976 *c*,-n*) ECHO_N= ECHO_C='
978 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
979 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
981 echo "#! $SHELL" >conftest.sh
982 echo "exit 0" >>conftest.sh
984 if { (echo "$as_me:984: PATH=\".;.\"; conftest.sh") >&5
985 (PATH=".;."; conftest.sh) 2>&5
987 echo "$as_me:987: \$? = $ac_status" >&5
988 (exit $ac_status); }; then
989 ac_path_separator=';'
993 PATH_SEPARATOR="$ac_path_separator"
996 ac_config_headers="$ac_config_headers config.h"
999 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1000 if test -f $ac_dir/install-sh; then
1002 ac_install_sh="$ac_aux_dir/install-sh -c"
1004 elif test -f $ac_dir/install.sh; then
1006 ac_install_sh="$ac_aux_dir/install.sh -c"
1008 elif test -f $ac_dir/shtool; then
1010 ac_install_sh="$ac_aux_dir/shtool install -c"
1014 if test -z "$ac_aux_dir"; then
1015 { { echo "$as_me:1015: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1016 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1017 { (exit 1); exit 1; }; }
1019 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1020 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1021 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1023 # Make sure we can run config.sub.
1024 $ac_config_sub sun4 >/dev/null 2>&1 ||
1025 { { echo "$as_me:1025: error: cannot run $ac_config_sub" >&5
1026 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1027 { (exit 1); exit 1; }; }
1029 echo "$as_me:1029: checking build system type" >&5
1030 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1031 if test "${ac_cv_build+set}" = set; then
1032 echo $ECHO_N "(cached) $ECHO_C" >&6
1034 ac_cv_build_alias=$build_alias
1035 test -z "$ac_cv_build_alias" &&
1036 ac_cv_build_alias=`$ac_config_guess`
1037 test -z "$ac_cv_build_alias" &&
1038 { { echo "$as_me:1038: error: cannot guess build type; you must specify one" >&5
1039 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1040 { (exit 1); exit 1; }; }
1041 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1042 { { echo "$as_me:1042: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1043 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1044 { (exit 1); exit 1; }; }
1047 echo "$as_me:1047: result: $ac_cv_build" >&5
1048 echo "${ECHO_T}$ac_cv_build" >&6
1050 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1051 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1052 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1054 echo "$as_me:1054: checking host system type" >&5
1055 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1056 if test "${ac_cv_host+set}" = set; then
1057 echo $ECHO_N "(cached) $ECHO_C" >&6
1059 ac_cv_host_alias=$host_alias
1060 test -z "$ac_cv_host_alias" &&
1061 ac_cv_host_alias=$ac_cv_build_alias
1062 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1063 { { echo "$as_me:1063: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1064 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1065 { (exit 1); exit 1; }; }
1068 echo "$as_me:1068: result: $ac_cv_host" >&5
1069 echo "${ECHO_T}$ac_cv_host" >&6
1071 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1072 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1073 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1078 CODE_STATUS="\"alpha\""
1080 cat >>confdefs.h <<EOF
1081 #define VERSION_MAJOR ${VERSION_MAJOR}
1084 cat >>confdefs.h <<EOF
1085 #define VERSION_MINOR ${VERSION_MINOR}
1088 cat >>confdefs.h <<EOF
1089 #define VERSION_POINT ${VERSION_POINT}
1092 cat >>confdefs.h <<EOF
1093 #define VERSION "${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_POINT}"
1096 cat >>confdefs.h <<EOF
1097 #define CODE_STATUS ${CODE_STATUS}
1101 ac_cpp='$CPP $CPPFLAGS'
1102 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1103 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1104 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1105 if test -n "$ac_tool_prefix"; then
1106 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1107 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1108 echo "$as_me:1108: checking for $ac_word" >&5
1109 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1110 if test "${ac_cv_prog_CC+set}" = set; then
1111 echo $ECHO_N "(cached) $ECHO_C" >&6
1113 if test -n "$CC"; then
1114 ac_cv_prog_CC="$CC" # Let the user override the test.
1116 ac_save_IFS=$IFS; IFS=$ac_path_separator
1118 for ac_dir in $ac_dummy; do
1120 test -z "$ac_dir" && ac_dir=.
1121 $as_executable_p "$ac_dir/$ac_word" || continue
1122 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1123 echo "$as_me:1123: found $ac_dir/$ac_word" >&5
1130 if test -n "$CC"; then
1131 echo "$as_me:1131: result: $CC" >&5
1132 echo "${ECHO_T}$CC" >&6
1134 echo "$as_me:1134: result: no" >&5
1135 echo "${ECHO_T}no" >&6
1139 if test -z "$ac_cv_prog_CC"; then
1141 # Extract the first word of "gcc", so it can be a program name with args.
1142 set dummy gcc; ac_word=$2
1143 echo "$as_me:1143: checking for $ac_word" >&5
1144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1145 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1146 echo $ECHO_N "(cached) $ECHO_C" >&6
1148 if test -n "$ac_ct_CC"; then
1149 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1151 ac_save_IFS=$IFS; IFS=$ac_path_separator
1153 for ac_dir in $ac_dummy; do
1155 test -z "$ac_dir" && ac_dir=.
1156 $as_executable_p "$ac_dir/$ac_word" || continue
1157 ac_cv_prog_ac_ct_CC="gcc"
1158 echo "$as_me:1158: found $ac_dir/$ac_word" >&5
1164 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1165 if test -n "$ac_ct_CC"; then
1166 echo "$as_me:1166: result: $ac_ct_CC" >&5
1167 echo "${ECHO_T}$ac_ct_CC" >&6
1169 echo "$as_me:1169: result: no" >&5
1170 echo "${ECHO_T}no" >&6
1178 if test -z "$CC"; then
1179 if test -n "$ac_tool_prefix"; then
1180 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1181 set dummy ${ac_tool_prefix}cc; ac_word=$2
1182 echo "$as_me:1182: checking for $ac_word" >&5
1183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1184 if test "${ac_cv_prog_CC+set}" = set; then
1185 echo $ECHO_N "(cached) $ECHO_C" >&6
1187 if test -n "$CC"; then
1188 ac_cv_prog_CC="$CC" # Let the user override the test.
1190 ac_save_IFS=$IFS; IFS=$ac_path_separator
1192 for ac_dir in $ac_dummy; do
1194 test -z "$ac_dir" && ac_dir=.
1195 $as_executable_p "$ac_dir/$ac_word" || continue
1196 ac_cv_prog_CC="${ac_tool_prefix}cc"
1197 echo "$as_me:1197: found $ac_dir/$ac_word" >&5
1204 if test -n "$CC"; then
1205 echo "$as_me:1205: result: $CC" >&5
1206 echo "${ECHO_T}$CC" >&6
1208 echo "$as_me:1208: result: no" >&5
1209 echo "${ECHO_T}no" >&6
1213 if test -z "$ac_cv_prog_CC"; then
1215 # Extract the first word of "cc", so it can be a program name with args.
1216 set dummy cc; ac_word=$2
1217 echo "$as_me:1217: checking for $ac_word" >&5
1218 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1219 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1220 echo $ECHO_N "(cached) $ECHO_C" >&6
1222 if test -n "$ac_ct_CC"; then
1223 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1225 ac_save_IFS=$IFS; IFS=$ac_path_separator
1227 for ac_dir in $ac_dummy; do
1229 test -z "$ac_dir" && ac_dir=.
1230 $as_executable_p "$ac_dir/$ac_word" || continue
1231 ac_cv_prog_ac_ct_CC="cc"
1232 echo "$as_me:1232: found $ac_dir/$ac_word" >&5
1238 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1239 if test -n "$ac_ct_CC"; then
1240 echo "$as_me:1240: result: $ac_ct_CC" >&5
1241 echo "${ECHO_T}$ac_ct_CC" >&6
1243 echo "$as_me:1243: result: no" >&5
1244 echo "${ECHO_T}no" >&6
1253 if test -z "$CC"; then
1254 # Extract the first word of "cc", so it can be a program name with args.
1255 set dummy cc; ac_word=$2
1256 echo "$as_me:1256: checking for $ac_word" >&5
1257 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1258 if test "${ac_cv_prog_CC+set}" = set; then
1259 echo $ECHO_N "(cached) $ECHO_C" >&6
1261 if test -n "$CC"; then
1262 ac_cv_prog_CC="$CC" # Let the user override the test.
1265 ac_save_IFS=$IFS; IFS=$ac_path_separator
1267 for ac_dir in $ac_dummy; do
1269 test -z "$ac_dir" && ac_dir=.
1270 $as_executable_p "$ac_dir/$ac_word" || continue
1271 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1272 ac_prog_rejected=yes
1276 echo "$as_me:1276: found $ac_dir/$ac_word" >&5
1280 if test $ac_prog_rejected = yes; then
1281 # We found a bogon in the path, so make sure we never use it.
1282 set dummy $ac_cv_prog_CC
1284 if test $# != 0; then
1285 # We chose a different compiler from the bogus one.
1286 # However, it has the same basename, so the bogon will be chosen
1287 # first if we set CC to just the basename; use the full file name.
1289 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1297 if test -n "$CC"; then
1298 echo "$as_me:1298: result: $CC" >&5
1299 echo "${ECHO_T}$CC" >&6
1301 echo "$as_me:1301: result: no" >&5
1302 echo "${ECHO_T}no" >&6
1306 if test -z "$CC"; then
1307 if test -n "$ac_tool_prefix"; then
1310 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1311 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1312 echo "$as_me:1312: checking for $ac_word" >&5
1313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1314 if test "${ac_cv_prog_CC+set}" = set; then
1315 echo $ECHO_N "(cached) $ECHO_C" >&6
1317 if test -n "$CC"; then
1318 ac_cv_prog_CC="$CC" # Let the user override the test.
1320 ac_save_IFS=$IFS; IFS=$ac_path_separator
1322 for ac_dir in $ac_dummy; do
1324 test -z "$ac_dir" && ac_dir=.
1325 $as_executable_p "$ac_dir/$ac_word" || continue
1326 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1327 echo "$as_me:1327: found $ac_dir/$ac_word" >&5
1334 if test -n "$CC"; then
1335 echo "$as_me:1335: result: $CC" >&5
1336 echo "${ECHO_T}$CC" >&6
1338 echo "$as_me:1338: result: no" >&5
1339 echo "${ECHO_T}no" >&6
1342 test -n "$CC" && break
1345 if test -z "$CC"; then
1349 # Extract the first word of "$ac_prog", so it can be a program name with args.
1350 set dummy $ac_prog; ac_word=$2
1351 echo "$as_me:1351: checking for $ac_word" >&5
1352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1353 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1354 echo $ECHO_N "(cached) $ECHO_C" >&6
1356 if test -n "$ac_ct_CC"; then
1357 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1359 ac_save_IFS=$IFS; IFS=$ac_path_separator
1361 for ac_dir in $ac_dummy; do
1363 test -z "$ac_dir" && ac_dir=.
1364 $as_executable_p "$ac_dir/$ac_word" || continue
1365 ac_cv_prog_ac_ct_CC="$ac_prog"
1366 echo "$as_me:1366: found $ac_dir/$ac_word" >&5
1372 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1373 if test -n "$ac_ct_CC"; then
1374 echo "$as_me:1374: result: $ac_ct_CC" >&5
1375 echo "${ECHO_T}$ac_ct_CC" >&6
1377 echo "$as_me:1377: result: no" >&5
1378 echo "${ECHO_T}no" >&6
1381 test -n "$ac_ct_CC" && break
1389 test -z "$CC" && { { echo "$as_me:1389: error: no acceptable cc found in \$PATH" >&5
1390 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1391 { (exit 1); exit 1; }; }
1393 # Provide some information about the compiler.
1394 echo "$as_me:1394:" \
1395 "checking for C compiler version" >&5
1396 ac_compiler=`set X $ac_compile; echo $2`
1397 { (eval echo "$as_me:1397: \"$ac_compiler --version </dev/null >&5\"") >&5
1398 (eval $ac_compiler --version </dev/null >&5) 2>&5
1400 echo "$as_me:1400: \$? = $ac_status" >&5
1401 (exit $ac_status); }
1402 { (eval echo "$as_me:1402: \"$ac_compiler -v </dev/null >&5\"") >&5
1403 (eval $ac_compiler -v </dev/null >&5) 2>&5
1405 echo "$as_me:1405: \$? = $ac_status" >&5
1406 (exit $ac_status); }
1407 { (eval echo "$as_me:1407: \"$ac_compiler -V </dev/null >&5\"") >&5
1408 (eval $ac_compiler -V </dev/null >&5) 2>&5
1410 echo "$as_me:1410: \$? = $ac_status" >&5
1411 (exit $ac_status); }
1413 cat >conftest.$ac_ext <<_ACEOF
1414 #line 1414 "configure"
1415 #include "confdefs.h"
1425 ac_clean_files_save=$ac_clean_files
1426 ac_clean_files="$ac_clean_files a.out a.exe"
1427 # Try to create an executable without -o first, disregard a.out.
1428 # It will help us diagnose broken compilers, and finding out an intuition
1430 echo "$as_me:1430: checking for C compiler default output" >&5
1431 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1432 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1433 if { (eval echo "$as_me:1433: \"$ac_link_default\"") >&5
1434 (eval $ac_link_default) 2>&5
1436 echo "$as_me:1436: \$? = $ac_status" >&5
1437 (exit $ac_status); }; then
1438 # Find the output, starting from the most likely. This scheme is
1439 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1441 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1442 ls a.out conftest 2>/dev/null;
1443 ls a.* conftest.* 2>/dev/null`; do
1445 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1446 a.out ) # We found the default executable, but exeext='' is most
1449 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1450 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1457 echo "$as_me: failed program was:" >&5
1458 cat conftest.$ac_ext >&5
1459 { { echo "$as_me:1459: error: C compiler cannot create executables" >&5
1460 echo "$as_me: error: C compiler cannot create executables" >&2;}
1461 { (exit 77); exit 77; }; }
1464 ac_exeext=$ac_cv_exeext
1465 echo "$as_me:1465: result: $ac_file" >&5
1466 echo "${ECHO_T}$ac_file" >&6
1468 # Check the compiler produces executables we can run. If not, either
1469 # the compiler is broken, or we cross compile.
1470 echo "$as_me:1470: checking whether the C compiler works" >&5
1471 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1472 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1473 # If not cross compiling, check that we can run a simple program.
1474 if test "$cross_compiling" != yes; then
1475 if { ac_try='./$ac_file'
1476 { (eval echo "$as_me:1476: \"$ac_try\"") >&5
1479 echo "$as_me:1479: \$? = $ac_status" >&5
1480 (exit $ac_status); }; }; then
1483 if test "$cross_compiling" = maybe; then
1486 { { echo "$as_me:1486: error: cannot run C compiled programs.
1487 If you meant to cross compile, use \`--host'." >&5
1488 echo "$as_me: error: cannot run C compiled programs.
1489 If you meant to cross compile, use \`--host'." >&2;}
1490 { (exit 1); exit 1; }; }
1494 echo "$as_me:1494: result: yes" >&5
1495 echo "${ECHO_T}yes" >&6
1497 rm -f a.out a.exe conftest$ac_cv_exeext
1498 ac_clean_files=$ac_clean_files_save
1499 # Check the compiler produces executables we can run. If not, either
1500 # the compiler is broken, or we cross compile.
1501 echo "$as_me:1501: checking whether we are cross compiling" >&5
1502 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1503 echo "$as_me:1503: result: $cross_compiling" >&5
1504 echo "${ECHO_T}$cross_compiling" >&6
1506 echo "$as_me:1506: checking for executable suffix" >&5
1507 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1508 if { (eval echo "$as_me:1508: \"$ac_link\"") >&5
1509 (eval $ac_link) 2>&5
1511 echo "$as_me:1511: \$? = $ac_status" >&5
1512 (exit $ac_status); }; then
1513 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1514 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1515 # work properly (i.e., refer to `conftest.exe'), while it won't with
1517 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1519 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1520 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1527 { { echo "$as_me:1527: error: cannot compute EXEEXT: cannot compile and link" >&5
1528 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1529 { (exit 1); exit 1; }; }
1532 rm -f conftest$ac_cv_exeext
1533 echo "$as_me:1533: result: $ac_cv_exeext" >&5
1534 echo "${ECHO_T}$ac_cv_exeext" >&6
1536 rm -f conftest.$ac_ext
1537 EXEEXT=$ac_cv_exeext
1539 echo "$as_me:1539: checking for object suffix" >&5
1540 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1541 if test "${ac_cv_objext+set}" = set; then
1542 echo $ECHO_N "(cached) $ECHO_C" >&6
1544 cat >conftest.$ac_ext <<_ACEOF
1545 #line 1545 "configure"
1546 #include "confdefs.h"
1556 rm -f conftest.o conftest.obj
1557 if { (eval echo "$as_me:1557: \"$ac_compile\"") >&5
1558 (eval $ac_compile) 2>&5
1560 echo "$as_me:1560: \$? = $ac_status" >&5
1561 (exit $ac_status); }; then
1562 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1564 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1565 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1570 echo "$as_me: failed program was:" >&5
1571 cat conftest.$ac_ext >&5
1572 { { echo "$as_me:1572: error: cannot compute OBJEXT: cannot compile" >&5
1573 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1574 { (exit 1); exit 1; }; }
1577 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1579 echo "$as_me:1579: result: $ac_cv_objext" >&5
1580 echo "${ECHO_T}$ac_cv_objext" >&6
1581 OBJEXT=$ac_cv_objext
1583 echo "$as_me:1583: checking whether we are using the GNU C compiler" >&5
1584 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1585 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1586 echo $ECHO_N "(cached) $ECHO_C" >&6
1588 cat >conftest.$ac_ext <<_ACEOF
1589 #line 1589 "configure"
1590 #include "confdefs.h"
1603 rm -f conftest.$ac_objext
1604 if { (eval echo "$as_me:1604: \"$ac_compile\"") >&5
1605 (eval $ac_compile) 2>&5
1607 echo "$as_me:1607: \$? = $ac_status" >&5
1608 (exit $ac_status); } &&
1609 { ac_try='test -s conftest.$ac_objext'
1610 { (eval echo "$as_me:1610: \"$ac_try\"") >&5
1613 echo "$as_me:1613: \$? = $ac_status" >&5
1614 (exit $ac_status); }; }; then
1617 echo "$as_me: failed program was:" >&5
1618 cat conftest.$ac_ext >&5
1621 rm -f conftest.$ac_objext conftest.$ac_ext
1622 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1625 echo "$as_me:1625: result: $ac_cv_c_compiler_gnu" >&5
1626 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1627 GCC=`test $ac_compiler_gnu = yes && echo yes`
1628 ac_test_CFLAGS=${CFLAGS+set}
1629 ac_save_CFLAGS=$CFLAGS
1631 echo "$as_me:1631: checking whether $CC accepts -g" >&5
1632 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1633 if test "${ac_cv_prog_cc_g+set}" = set; then
1634 echo $ECHO_N "(cached) $ECHO_C" >&6
1636 cat >conftest.$ac_ext <<_ACEOF
1637 #line 1637 "configure"
1638 #include "confdefs.h"
1648 rm -f conftest.$ac_objext
1649 if { (eval echo "$as_me:1649: \"$ac_compile\"") >&5
1650 (eval $ac_compile) 2>&5
1652 echo "$as_me:1652: \$? = $ac_status" >&5
1653 (exit $ac_status); } &&
1654 { ac_try='test -s conftest.$ac_objext'
1655 { (eval echo "$as_me:1655: \"$ac_try\"") >&5
1658 echo "$as_me:1658: \$? = $ac_status" >&5
1659 (exit $ac_status); }; }; then
1662 echo "$as_me: failed program was:" >&5
1663 cat conftest.$ac_ext >&5
1666 rm -f conftest.$ac_objext conftest.$ac_ext
1668 echo "$as_me:1668: result: $ac_cv_prog_cc_g" >&5
1669 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1670 if test "$ac_test_CFLAGS" = set; then
1671 CFLAGS=$ac_save_CFLAGS
1672 elif test $ac_cv_prog_cc_g = yes; then
1673 if test "$GCC" = yes; then
1679 if test "$GCC" = yes; then
1685 # Some people use a C++ compiler to compile C. Since we use `exit',
1686 # in C++ we need to declare it. In case someone uses the same compiler
1687 # for both compiling C and C++ we need to have the C++ compiler decide
1688 # the declaration of exit, since it's the most demanding environment.
1689 cat >conftest.$ac_ext <<_ACEOF
1694 rm -f conftest.$ac_objext
1695 if { (eval echo "$as_me:1695: \"$ac_compile\"") >&5
1696 (eval $ac_compile) 2>&5
1698 echo "$as_me:1698: \$? = $ac_status" >&5
1699 (exit $ac_status); } &&
1700 { ac_try='test -s conftest.$ac_objext'
1701 { (eval echo "$as_me:1701: \"$ac_try\"") >&5
1704 echo "$as_me:1704: \$? = $ac_status" >&5
1705 (exit $ac_status); }; }; then
1706 for ac_declaration in \
1708 '#include <stdlib.h>' \
1709 'extern "C" void std::exit (int) throw (); using std::exit;' \
1710 'extern "C" void std::exit (int); using std::exit;' \
1711 'extern "C" void exit (int) throw ();' \
1712 'extern "C" void exit (int);' \
1715 cat >conftest.$ac_ext <<_ACEOF
1716 #line 1716 "configure"
1717 #include "confdefs.h"
1728 rm -f conftest.$ac_objext
1729 if { (eval echo "$as_me:1729: \"$ac_compile\"") >&5
1730 (eval $ac_compile) 2>&5
1732 echo "$as_me:1732: \$? = $ac_status" >&5
1733 (exit $ac_status); } &&
1734 { ac_try='test -s conftest.$ac_objext'
1735 { (eval echo "$as_me:1735: \"$ac_try\"") >&5
1738 echo "$as_me:1738: \$? = $ac_status" >&5
1739 (exit $ac_status); }; }; then
1742 echo "$as_me: failed program was:" >&5
1743 cat conftest.$ac_ext >&5
1746 rm -f conftest.$ac_objext conftest.$ac_ext
1747 cat >conftest.$ac_ext <<_ACEOF
1748 #line 1748 "configure"
1749 #include "confdefs.h"
1759 rm -f conftest.$ac_objext
1760 if { (eval echo "$as_me:1760: \"$ac_compile\"") >&5
1761 (eval $ac_compile) 2>&5
1763 echo "$as_me:1763: \$? = $ac_status" >&5
1764 (exit $ac_status); } &&
1765 { ac_try='test -s conftest.$ac_objext'
1766 { (eval echo "$as_me:1766: \"$ac_try\"") >&5
1769 echo "$as_me:1769: \$? = $ac_status" >&5
1770 (exit $ac_status); }; }; then
1773 echo "$as_me: failed program was:" >&5
1774 cat conftest.$ac_ext >&5
1776 rm -f conftest.$ac_objext conftest.$ac_ext
1779 if test -n "$ac_declaration"; then
1780 echo '#ifdef __cplusplus' >>confdefs.h
1781 echo $ac_declaration >>confdefs.h
1782 echo '#endif' >>confdefs.h
1786 echo "$as_me: failed program was:" >&5
1787 cat conftest.$ac_ext >&5
1789 rm -f conftest.$ac_objext conftest.$ac_ext
1791 ac_cpp='$CPP $CPPFLAGS'
1792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1794 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1797 ac_cpp='$CPP $CPPFLAGS'
1798 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1799 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1800 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1801 echo "$as_me:1801: checking how to run the C preprocessor" >&5
1802 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
1803 # On Suns, sometimes $CPP names a directory.
1804 if test -n "$CPP" && test -d "$CPP"; then
1807 if test -z "$CPP"; then
1808 if test "${ac_cv_prog_CPP+set}" = set; then
1809 echo $ECHO_N "(cached) $ECHO_C" >&6
1811 # Double quotes because CPP needs to be expanded
1812 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
1815 for ac_c_preproc_warn_flag in '' yes
1817 # Use a header file that comes with gcc, so configuring glibc
1818 # with a fresh cross-compiler works.
1819 # On the NeXT, cc -E runs the code through the compiler's parser,
1820 # not just through cpp. "Syntax error" is here to catch this case.
1821 cat >conftest.$ac_ext <<_ACEOF
1822 #line 1822 "configure"
1823 #include "confdefs.h"
1827 if { (eval echo "$as_me:1827: \"$ac_cpp conftest.$ac_ext\"") >&5
1828 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1830 egrep -v '^ *\+' conftest.er1 >conftest.err
1832 cat conftest.err >&5
1833 echo "$as_me:1833: \$? = $ac_status" >&5
1834 (exit $ac_status); } >/dev/null; then
1835 if test -s conftest.err; then
1836 ac_cpp_err=$ac_c_preproc_warn_flag
1843 if test -z "$ac_cpp_err"; then
1846 echo "$as_me: failed program was:" >&5
1847 cat conftest.$ac_ext >&5
1848 # Broken: fails on valid input.
1851 rm -f conftest.err conftest.$ac_ext
1853 # OK, works on sane cases. Now check whether non-existent headers
1854 # can be detected and how.
1855 cat >conftest.$ac_ext <<_ACEOF
1856 #line 1856 "configure"
1857 #include "confdefs.h"
1858 #include <ac_nonexistent.h>
1860 if { (eval echo "$as_me:1860: \"$ac_cpp conftest.$ac_ext\"") >&5
1861 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1863 egrep -v '^ *\+' conftest.er1 >conftest.err
1865 cat conftest.err >&5
1866 echo "$as_me:1866: \$? = $ac_status" >&5
1867 (exit $ac_status); } >/dev/null; then
1868 if test -s conftest.err; then
1869 ac_cpp_err=$ac_c_preproc_warn_flag
1876 if test -z "$ac_cpp_err"; then
1877 # Broken: success on invalid input.
1880 echo "$as_me: failed program was:" >&5
1881 cat conftest.$ac_ext >&5
1882 # Passes both tests.
1886 rm -f conftest.err conftest.$ac_ext
1889 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1890 rm -f conftest.err conftest.$ac_ext
1891 if $ac_preproc_ok; then
1903 echo "$as_me:1903: result: $CPP" >&5
1904 echo "${ECHO_T}$CPP" >&6
1906 for ac_c_preproc_warn_flag in '' yes
1908 # Use a header file that comes with gcc, so configuring glibc
1909 # with a fresh cross-compiler works.
1910 # On the NeXT, cc -E runs the code through the compiler's parser,
1911 # not just through cpp. "Syntax error" is here to catch this case.
1912 cat >conftest.$ac_ext <<_ACEOF
1913 #line 1913 "configure"
1914 #include "confdefs.h"
1918 if { (eval echo "$as_me:1918: \"$ac_cpp conftest.$ac_ext\"") >&5
1919 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1921 egrep -v '^ *\+' conftest.er1 >conftest.err
1923 cat conftest.err >&5
1924 echo "$as_me:1924: \$? = $ac_status" >&5
1925 (exit $ac_status); } >/dev/null; then
1926 if test -s conftest.err; then
1927 ac_cpp_err=$ac_c_preproc_warn_flag
1934 if test -z "$ac_cpp_err"; then
1937 echo "$as_me: failed program was:" >&5
1938 cat conftest.$ac_ext >&5
1939 # Broken: fails on valid input.
1942 rm -f conftest.err conftest.$ac_ext
1944 # OK, works on sane cases. Now check whether non-existent headers
1945 # can be detected and how.
1946 cat >conftest.$ac_ext <<_ACEOF
1947 #line 1947 "configure"
1948 #include "confdefs.h"
1949 #include <ac_nonexistent.h>
1951 if { (eval echo "$as_me:1951: \"$ac_cpp conftest.$ac_ext\"") >&5
1952 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1954 egrep -v '^ *\+' conftest.er1 >conftest.err
1956 cat conftest.err >&5
1957 echo "$as_me:1957: \$? = $ac_status" >&5
1958 (exit $ac_status); } >/dev/null; then
1959 if test -s conftest.err; then
1960 ac_cpp_err=$ac_c_preproc_warn_flag
1967 if test -z "$ac_cpp_err"; then
1968 # Broken: success on invalid input.
1971 echo "$as_me: failed program was:" >&5
1972 cat conftest.$ac_ext >&5
1973 # Passes both tests.
1977 rm -f conftest.err conftest.$ac_ext
1980 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1981 rm -f conftest.err conftest.$ac_ext
1982 if $ac_preproc_ok; then
1985 { { echo "$as_me:1985: error: C preprocessor \"$CPP\" fails sanity check" >&5
1986 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
1987 { (exit 1); exit 1; }; }
1991 ac_cpp='$CPP $CPPFLAGS'
1992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1996 # Extract the first word of "gdb", so it can be a program name with args.
1997 set dummy gdb; ac_word=$2
1998 echo "$as_me:1998: checking for $ac_word" >&5
1999 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2000 if test "${ac_cv_prog_GDB+set}" = set; then
2001 echo $ECHO_N "(cached) $ECHO_C" >&6
2003 if test -n "$GDB"; then
2004 ac_cv_prog_GDB="$GDB" # Let the user override the test.
2006 ac_save_IFS=$IFS; IFS=$ac_path_separator
2008 for ac_dir in $ac_dummy; do
2010 test -z "$ac_dir" && ac_dir=.
2011 $as_executable_p "$ac_dir/$ac_word" || continue
2012 ac_cv_prog_GDB="yes"
2013 echo "$as_me:2013: found $ac_dir/$ac_word" >&5
2017 test -z "$ac_cv_prog_GDB" && ac_cv_prog_GDB="no"
2021 if test -n "$GDB"; then
2022 echo "$as_me:2022: result: $GDB" >&5
2023 echo "${ECHO_T}$GDB" >&6
2025 echo "$as_me:2025: result: no" >&5
2026 echo "${ECHO_T}no" >&6
2029 # Check whether --with-debug or --without-debug was given.
2030 if test "${with_debug+set}" = set; then
2031 withval="$with_debug"
2033 if test "x$withval" != "$xno" ; then
2034 if test $ac_cv_prog_cc_g = yes; then
2035 if test "$GCC" = yes; then
2036 if test "$GDB"; then
2041 CFLAGS="$CFLAGS -Wshadow -Wconversion"
2046 CFLAGS="$CFLAGS -D_DEBUG"
2051 if test "$GCC" = yes; then
2059 if test "$GCC"; then
2060 CFLAGS="-pipe $CFLAGS"
2064 *mingw32* ) MINGW32=yes;;
2069 *cygwin* ) CYGWIN=yes;;
2073 if test "$MINGW32" = "yes"; then
2076 if test "$CYGWIN" = "yes"; then
2083 # Check whether --enable-mingw32 or --disable-mingw32 was given.
2084 if test "${enable_mingw32+set}" = set; then
2085 enableval="$enable_mingw32"
2086 if test $enableval = yes; then
2091 if test $target_type = mingw; then
2093 SPECIAL_CFLAGS="-mwindows -mno-cygwin"
2094 PTHREAD_LIB=-lpthreadGC
2095 echo "Using mingw32 (Win32 GUI)"
2098 if test $target_type = cygwin; then
2099 SPECIAL_CFLAGS="-mno-win32"
2101 echo "Using Cygnus (Win32 command line)"
2104 PTHREAD_LIB=-lpthread
2108 old_CFLAGS_nospecial=$CFLAGS
2109 CFLAGS="$CFLAGS $SPECIAL_CFLAGS"
2111 # Hack to force AutoConf to use the CFLAGS we just set
2112 ac_cpp='$CPP $CPPFLAGS $SPECIAL_CFLAGS'
2113 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2114 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2116 echo "$as_me:2116: checking for pthread.h" >&5
2117 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
2118 if test "${ac_cv_header_pthread_h+set}" = set; then
2119 echo $ECHO_N "(cached) $ECHO_C" >&6
2121 cat >conftest.$ac_ext <<_ACEOF
2122 #line 2122 "configure"
2123 #include "confdefs.h"
2124 #include <pthread.h>
2126 if { (eval echo "$as_me:2126: \"$ac_cpp conftest.$ac_ext\"") >&5
2127 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2129 egrep -v '^ *\+' conftest.er1 >conftest.err
2131 cat conftest.err >&5
2132 echo "$as_me:2132: \$? = $ac_status" >&5
2133 (exit $ac_status); } >/dev/null; then
2134 if test -s conftest.err; then
2135 ac_cpp_err=$ac_c_preproc_warn_flag
2142 if test -z "$ac_cpp_err"; then
2143 ac_cv_header_pthread_h=yes
2145 echo "$as_me: failed program was:" >&5
2146 cat conftest.$ac_ext >&5
2147 ac_cv_header_pthread_h=no
2149 rm -f conftest.err conftest.$ac_ext
2151 echo "$as_me:2151: result: $ac_cv_header_pthread_h" >&5
2152 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
2153 if test $ac_cv_header_pthread_h = yes; then
2159 # Check whether --enable-pthread or --disable-pthread was given.
2160 if test "${enable_pthread+set}" = set; then
2161 enableval="$enable_pthread"
2162 if test $enableval = no; then
2168 if test $have_pthread = yes; then
2170 cat >>confdefs.h <<\EOF
2171 #define FEATURE_PTHREAD 1
2174 echo Using POSIX threads
2175 if test "$GCC" = "yes"; then
2176 # Set a GCC specific switch:
2177 if test "$target_type" = "unix"; then
2178 # This compiler switch makes Linux thread-safe
2179 # Don't know about other OS's? Is this switch
2182 SPECIAL_CFLAGS="-pthread"
2187 echo Using native threads
2193 *-solaris*) SOCKET_LIB="-lsocket -lnsl"
2194 cat >>confdefs.h <<\EOF
2195 #define __EXTENSIONS__ 1
2198 if test "$GCC" = "yes"; then
2199 # Set a GCC specific switch:
2200 # This compiler switch makes Solaris thread-safe
2202 SPECIAL_CFLAGS="-pthreads"
2204 # What do we do without GCC? Guess this:
2205 SPECIAL_CFLAGS="-D_REENTRANT"
2211 *-os2-emx*) SOCKET_LIB=-lsocket
2218 *-amigaos) AMIGAOS_ONLY=
2222 echo "$as_me:2222: checking for ANSI C header files" >&5
2223 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2224 if test "${ac_cv_header_stdc+set}" = set; then
2225 echo $ECHO_N "(cached) $ECHO_C" >&6
2227 cat >conftest.$ac_ext <<_ACEOF
2228 #line 2228 "configure"
2229 #include "confdefs.h"
2236 if { (eval echo "$as_me:2236: \"$ac_cpp conftest.$ac_ext\"") >&5
2237 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2239 egrep -v '^ *\+' conftest.er1 >conftest.err
2241 cat conftest.err >&5
2242 echo "$as_me:2242: \$? = $ac_status" >&5
2243 (exit $ac_status); } >/dev/null; then
2244 if test -s conftest.err; then
2245 ac_cpp_err=$ac_c_preproc_warn_flag
2252 if test -z "$ac_cpp_err"; then
2253 ac_cv_header_stdc=yes
2255 echo "$as_me: failed program was:" >&5
2256 cat conftest.$ac_ext >&5
2257 ac_cv_header_stdc=no
2259 rm -f conftest.err conftest.$ac_ext
2261 if test $ac_cv_header_stdc = yes; then
2262 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2263 cat >conftest.$ac_ext <<_ACEOF
2264 #line 2264 "configure"
2265 #include "confdefs.h"
2269 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2270 egrep "memchr" >/dev/null 2>&1; then
2273 ac_cv_header_stdc=no
2279 if test $ac_cv_header_stdc = yes; then
2280 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2281 cat >conftest.$ac_ext <<_ACEOF
2282 #line 2282 "configure"
2283 #include "confdefs.h"
2287 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2288 egrep "free" >/dev/null 2>&1; then
2291 ac_cv_header_stdc=no
2297 if test $ac_cv_header_stdc = yes; then
2298 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2299 if test "$cross_compiling" = yes; then
2302 cat >conftest.$ac_ext <<_ACEOF
2303 #line 2303 "configure"
2304 #include "confdefs.h"
2306 #if ((' ' & 0x0FF) == 0x020)
2307 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2308 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2310 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
2311 || ('j' <= (c) && (c) <= 'r') \
2312 || ('s' <= (c) && (c) <= 'z'))
2313 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2316 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2321 for (i = 0; i < 256; i++)
2322 if (XOR (islower (i), ISLOWER (i))
2323 || toupper (i) != TOUPPER (i))
2328 rm -f conftest$ac_exeext
2329 if { (eval echo "$as_me:2329: \"$ac_link\"") >&5
2330 (eval $ac_link) 2>&5
2332 echo "$as_me:2332: \$? = $ac_status" >&5
2333 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2334 { (eval echo "$as_me:2334: \"$ac_try\"") >&5
2337 echo "$as_me:2337: \$? = $ac_status" >&5
2338 (exit $ac_status); }; }; then
2341 echo "$as_me: program exited with status $ac_status" >&5
2342 echo "$as_me: failed program was:" >&5
2343 cat conftest.$ac_ext >&5
2344 ac_cv_header_stdc=no
2346 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2350 echo "$as_me:2350: result: $ac_cv_header_stdc" >&5
2351 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2352 if test $ac_cv_header_stdc = yes; then
2354 cat >>confdefs.h <<\EOF
2355 #define STDC_HEADERS 1
2360 echo "$as_me:2360: checking for $CC option to accept ANSI C" >&5
2361 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2362 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2363 echo $ECHO_N "(cached) $ECHO_C" >&6
2365 ac_cv_prog_cc_stdc=no
2367 cat >conftest.$ac_ext <<_ACEOF
2368 #line 2368 "configure"
2369 #include "confdefs.h"
2372 #include <sys/types.h>
2373 #include <sys/stat.h>
2374 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2375 struct buf { int x; };
2376 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2377 static char *e (p, i)
2383 static char *f (char * (*g) (char **, int), char **p, ...)
2388 s = g (p, va_arg (v,int));
2392 int test (int i, double x);
2393 struct s1 {int (*f) (int a);};
2394 struct s2 {int (*f) (double a);};
2395 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2401 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2406 # Don't try gcc -ansi; that turns off useful extensions and
2407 # breaks some systems' header files.
2408 # AIX -qlanglvl=ansi
2409 # Ultrix and OSF/1 -std1
2410 # HP-UX 10.20 and later -Ae
2411 # HP-UX older versions -Aa -D_HPUX_SOURCE
2412 # SVR4 -Xc -D__EXTENSIONS__
2413 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2415 CC="$ac_save_CC $ac_arg"
2416 rm -f conftest.$ac_objext
2417 if { (eval echo "$as_me:2417: \"$ac_compile\"") >&5
2418 (eval $ac_compile) 2>&5
2420 echo "$as_me:2420: \$? = $ac_status" >&5
2421 (exit $ac_status); } &&
2422 { ac_try='test -s conftest.$ac_objext'
2423 { (eval echo "$as_me:2423: \"$ac_try\"") >&5
2426 echo "$as_me:2426: \$? = $ac_status" >&5
2427 (exit $ac_status); }; }; then
2428 ac_cv_prog_cc_stdc=$ac_arg
2431 echo "$as_me: failed program was:" >&5
2432 cat conftest.$ac_ext >&5
2434 rm -f conftest.$ac_objext
2436 rm -f conftest.$ac_ext conftest.$ac_objext
2441 case "x$ac_cv_prog_cc_stdc" in
2443 echo "$as_me:2443: result: none needed" >&5
2444 echo "${ECHO_T}none needed" >&6 ;;
2446 echo "$as_me:2446: result: $ac_cv_prog_cc_stdc" >&5
2447 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2448 CC="$CC $ac_cv_prog_cc_stdc" ;;
2451 echo "$as_me:2451: checking for an ANSI C-conforming const" >&5
2452 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
2453 if test "${ac_cv_c_const+set}" = set; then
2454 echo $ECHO_N "(cached) $ECHO_C" >&6
2456 cat >conftest.$ac_ext <<_ACEOF
2457 #line 2457 "configure"
2458 #include "confdefs.h"
2463 /* FIXME: Include the comments suggested by Paul. */
2465 /* Ultrix mips cc rejects this. */
2466 typedef int charset[2];
2468 /* SunOS 4.1.1 cc rejects this. */
2469 char const *const *ccp;
2471 /* NEC SVR4.0.2 mips cc rejects this. */
2472 struct point {int x, y;};
2473 static struct point const zero = {0,0};
2474 /* AIX XL C 1.02.0.0 rejects this.
2475 It does not let you subtract one const X* pointer from another in
2476 an arm of an if-expression whose if-part is not a constant
2478 const char *g = "string";
2479 ccp = &g + (g ? g-g : 0);
2480 /* HPUX 7.0 cc rejects these. */
2483 ccp = (char const *const *) p;
2484 { /* SCO 3.2v4 cc rejects this. */
2486 char const *s = 0 ? (char *) 0 : (char const *) 0;
2490 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2492 const int *foo = &x[0];
2495 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2496 typedef const int *iptr;
2500 { /* AIX XL C 1.02.0.0 rejects this saying
2501 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2502 struct s { int j; const int *ap[3]; };
2503 struct s *b; b->j = 5;
2505 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2514 rm -f conftest.$ac_objext
2515 if { (eval echo "$as_me:2515: \"$ac_compile\"") >&5
2516 (eval $ac_compile) 2>&5
2518 echo "$as_me:2518: \$? = $ac_status" >&5
2519 (exit $ac_status); } &&
2520 { ac_try='test -s conftest.$ac_objext'
2521 { (eval echo "$as_me:2521: \"$ac_try\"") >&5
2524 echo "$as_me:2524: \$? = $ac_status" >&5
2525 (exit $ac_status); }; }; then
2528 echo "$as_me: failed program was:" >&5
2529 cat conftest.$ac_ext >&5
2532 rm -f conftest.$ac_objext conftest.$ac_ext
2534 echo "$as_me:2534: result: $ac_cv_c_const" >&5
2535 echo "${ECHO_T}$ac_cv_c_const" >&6
2536 if test $ac_cv_c_const = no; then
2538 cat >>confdefs.h <<\EOF
2544 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2546 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2547 inttypes.h stdint.h unistd.h
2549 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2550 echo "$as_me:2550: checking for $ac_header" >&5
2551 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2552 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2553 echo $ECHO_N "(cached) $ECHO_C" >&6
2555 cat >conftest.$ac_ext <<_ACEOF
2556 #line 2556 "configure"
2557 #include "confdefs.h"
2558 $ac_includes_default
2559 #include <$ac_header>
2561 rm -f conftest.$ac_objext
2562 if { (eval echo "$as_me:2562: \"$ac_compile\"") >&5
2563 (eval $ac_compile) 2>&5
2565 echo "$as_me:2565: \$? = $ac_status" >&5
2566 (exit $ac_status); } &&
2567 { ac_try='test -s conftest.$ac_objext'
2568 { (eval echo "$as_me:2568: \"$ac_try\"") >&5
2571 echo "$as_me:2571: \$? = $ac_status" >&5
2572 (exit $ac_status); }; }; then
2573 eval "$as_ac_Header=yes"
2575 echo "$as_me: failed program was:" >&5
2576 cat conftest.$ac_ext >&5
2577 eval "$as_ac_Header=no"
2579 rm -f conftest.$ac_objext conftest.$ac_ext
2581 echo "$as_me:2581: result: `eval echo '${'$as_ac_Header'}'`" >&5
2582 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2583 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2584 cat >>confdefs.h <<EOF
2585 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2591 echo "$as_me:2591: checking for size_t" >&5
2592 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
2593 if test "${ac_cv_type_size_t+set}" = set; then
2594 echo $ECHO_N "(cached) $ECHO_C" >&6
2596 cat >conftest.$ac_ext <<_ACEOF
2597 #line 2597 "configure"
2598 #include "confdefs.h"
2599 $ac_includes_default
2605 if (sizeof (size_t))
2611 rm -f conftest.$ac_objext
2612 if { (eval echo "$as_me:2612: \"$ac_compile\"") >&5
2613 (eval $ac_compile) 2>&5
2615 echo "$as_me:2615: \$? = $ac_status" >&5
2616 (exit $ac_status); } &&
2617 { ac_try='test -s conftest.$ac_objext'
2618 { (eval echo "$as_me:2618: \"$ac_try\"") >&5
2621 echo "$as_me:2621: \$? = $ac_status" >&5
2622 (exit $ac_status); }; }; then
2623 ac_cv_type_size_t=yes
2625 echo "$as_me: failed program was:" >&5
2626 cat conftest.$ac_ext >&5
2627 ac_cv_type_size_t=no
2629 rm -f conftest.$ac_objext conftest.$ac_ext
2631 echo "$as_me:2631: result: $ac_cv_type_size_t" >&5
2632 echo "${ECHO_T}$ac_cv_type_size_t" >&6
2633 if test $ac_cv_type_size_t = yes; then
2637 cat >>confdefs.h <<EOF
2638 #define size_t unsigned
2643 echo "$as_me:2643: checking for int" >&5
2644 echo $ECHO_N "checking for int... $ECHO_C" >&6
2645 if test "${ac_cv_type_int+set}" = set; then
2646 echo $ECHO_N "(cached) $ECHO_C" >&6
2648 cat >conftest.$ac_ext <<_ACEOF
2649 #line 2649 "configure"
2650 #include "confdefs.h"
2651 $ac_includes_default
2663 rm -f conftest.$ac_objext
2664 if { (eval echo "$as_me:2664: \"$ac_compile\"") >&5
2665 (eval $ac_compile) 2>&5
2667 echo "$as_me:2667: \$? = $ac_status" >&5
2668 (exit $ac_status); } &&
2669 { ac_try='test -s conftest.$ac_objext'
2670 { (eval echo "$as_me:2670: \"$ac_try\"") >&5
2673 echo "$as_me:2673: \$? = $ac_status" >&5
2674 (exit $ac_status); }; }; then
2677 echo "$as_me: failed program was:" >&5
2678 cat conftest.$ac_ext >&5
2681 rm -f conftest.$ac_objext conftest.$ac_ext
2683 echo "$as_me:2683: result: $ac_cv_type_int" >&5
2684 echo "${ECHO_T}$ac_cv_type_int" >&6
2686 echo "$as_me:2686: checking size of int" >&5
2687 echo $ECHO_N "checking size of int... $ECHO_C" >&6
2688 if test "${ac_cv_sizeof_int+set}" = set; then
2689 echo $ECHO_N "(cached) $ECHO_C" >&6
2691 if test "$ac_cv_type_int" = yes; then
2692 if test "$cross_compiling" = yes; then
2693 # Depending upon the size, compute the lo and hi bounds.
2694 cat >conftest.$ac_ext <<_ACEOF
2695 #line 2695 "configure"
2696 #include "confdefs.h"
2697 $ac_includes_default
2701 int _array_ [1 - 2 * !((sizeof (int)) >= 0)]
2706 rm -f conftest.$ac_objext
2707 if { (eval echo "$as_me:2707: \"$ac_compile\"") >&5
2708 (eval $ac_compile) 2>&5
2710 echo "$as_me:2710: \$? = $ac_status" >&5
2711 (exit $ac_status); } &&
2712 { ac_try='test -s conftest.$ac_objext'
2713 { (eval echo "$as_me:2713: \"$ac_try\"") >&5
2716 echo "$as_me:2716: \$? = $ac_status" >&5
2717 (exit $ac_status); }; }; then
2720 cat >conftest.$ac_ext <<_ACEOF
2721 #line 2721 "configure"
2722 #include "confdefs.h"
2723 $ac_includes_default
2727 int _array_ [1 - 2 * !((sizeof (int)) <= $ac_mid)]
2732 rm -f conftest.$ac_objext
2733 if { (eval echo "$as_me:2733: \"$ac_compile\"") >&5
2734 (eval $ac_compile) 2>&5
2736 echo "$as_me:2736: \$? = $ac_status" >&5
2737 (exit $ac_status); } &&
2738 { ac_try='test -s conftest.$ac_objext'
2739 { (eval echo "$as_me:2739: \"$ac_try\"") >&5
2742 echo "$as_me:2742: \$? = $ac_status" >&5
2743 (exit $ac_status); }; }; then
2744 ac_hi=$ac_mid; break
2746 echo "$as_me: failed program was:" >&5
2747 cat conftest.$ac_ext >&5
2748 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
2750 rm -f conftest.$ac_objext conftest.$ac_ext
2753 echo "$as_me: failed program was:" >&5
2754 cat conftest.$ac_ext >&5
2757 cat >conftest.$ac_ext <<_ACEOF
2758 #line 2758 "configure"
2759 #include "confdefs.h"
2760 $ac_includes_default
2764 int _array_ [1 - 2 * !((sizeof (int)) >= $ac_mid)]
2769 rm -f conftest.$ac_objext
2770 if { (eval echo "$as_me:2770: \"$ac_compile\"") >&5
2771 (eval $ac_compile) 2>&5
2773 echo "$as_me:2773: \$? = $ac_status" >&5
2774 (exit $ac_status); } &&
2775 { ac_try='test -s conftest.$ac_objext'
2776 { (eval echo "$as_me:2776: \"$ac_try\"") >&5
2779 echo "$as_me:2779: \$? = $ac_status" >&5
2780 (exit $ac_status); }; }; then
2781 ac_lo=$ac_mid; break
2783 echo "$as_me: failed program was:" >&5
2784 cat conftest.$ac_ext >&5
2785 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
2787 rm -f conftest.$ac_objext conftest.$ac_ext
2790 rm -f conftest.$ac_objext conftest.$ac_ext
2791 # Binary search between lo and hi bounds.
2792 while test "x$ac_lo" != "x$ac_hi"; do
2793 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
2794 cat >conftest.$ac_ext <<_ACEOF
2795 #line 2795 "configure"
2796 #include "confdefs.h"
2797 $ac_includes_default
2801 int _array_ [1 - 2 * !((sizeof (int)) <= $ac_mid)]
2806 rm -f conftest.$ac_objext
2807 if { (eval echo "$as_me:2807: \"$ac_compile\"") >&5
2808 (eval $ac_compile) 2>&5
2810 echo "$as_me:2810: \$? = $ac_status" >&5
2811 (exit $ac_status); } &&
2812 { ac_try='test -s conftest.$ac_objext'
2813 { (eval echo "$as_me:2813: \"$ac_try\"") >&5
2816 echo "$as_me:2816: \$? = $ac_status" >&5
2817 (exit $ac_status); }; }; then
2820 echo "$as_me: failed program was:" >&5
2821 cat conftest.$ac_ext >&5
2822 ac_lo=`expr $ac_mid + 1`
2824 rm -f conftest.$ac_objext conftest.$ac_ext
2826 ac_cv_sizeof_int=$ac_lo
2828 if test "$cross_compiling" = yes; then
2829 { { echo "$as_me:2829: error: cannot run test program while cross compiling" >&5
2830 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
2831 { (exit 1); exit 1; }; }
2833 cat >conftest.$ac_ext <<_ACEOF
2834 #line 2834 "configure"
2835 #include "confdefs.h"
2836 $ac_includes_default
2840 FILE *f = fopen ("conftest.val", "w");
2843 fprintf (f, "%d", (sizeof (int)));
2849 rm -f conftest$ac_exeext
2850 if { (eval echo "$as_me:2850: \"$ac_link\"") >&5
2851 (eval $ac_link) 2>&5
2853 echo "$as_me:2853: \$? = $ac_status" >&5
2854 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2855 { (eval echo "$as_me:2855: \"$ac_try\"") >&5
2858 echo "$as_me:2858: \$? = $ac_status" >&5
2859 (exit $ac_status); }; }; then
2860 ac_cv_sizeof_int=`cat conftest.val`
2862 echo "$as_me: program exited with status $ac_status" >&5
2863 echo "$as_me: failed program was:" >&5
2864 cat conftest.$ac_ext >&5
2866 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2874 echo "$as_me:2874: result: $ac_cv_sizeof_int" >&5
2875 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
2876 cat >>confdefs.h <<EOF
2877 #define SIZEOF_INT $ac_cv_sizeof_int
2880 echo "$as_me:2880: checking for char *" >&5
2881 echo $ECHO_N "checking for char *... $ECHO_C" >&6
2882 if test "${ac_cv_type_char_p+set}" = set; then
2883 echo $ECHO_N "(cached) $ECHO_C" >&6
2885 cat >conftest.$ac_ext <<_ACEOF
2886 #line 2886 "configure"
2887 #include "confdefs.h"
2888 $ac_includes_default
2894 if (sizeof (char *))
2900 rm -f conftest.$ac_objext
2901 if { (eval echo "$as_me:2901: \"$ac_compile\"") >&5
2902 (eval $ac_compile) 2>&5
2904 echo "$as_me:2904: \$? = $ac_status" >&5
2905 (exit $ac_status); } &&
2906 { ac_try='test -s conftest.$ac_objext'
2907 { (eval echo "$as_me:2907: \"$ac_try\"") >&5
2910 echo "$as_me:2910: \$? = $ac_status" >&5
2911 (exit $ac_status); }; }; then
2912 ac_cv_type_char_p=yes
2914 echo "$as_me: failed program was:" >&5
2915 cat conftest.$ac_ext >&5
2916 ac_cv_type_char_p=no
2918 rm -f conftest.$ac_objext conftest.$ac_ext
2920 echo "$as_me:2920: result: $ac_cv_type_char_p" >&5
2921 echo "${ECHO_T}$ac_cv_type_char_p" >&6
2923 echo "$as_me:2923: checking size of char *" >&5
2924 echo $ECHO_N "checking size of char *... $ECHO_C" >&6
2925 if test "${ac_cv_sizeof_char_p+set}" = set; then
2926 echo $ECHO_N "(cached) $ECHO_C" >&6
2928 if test "$ac_cv_type_char_p" = yes; then
2929 if test "$cross_compiling" = yes; then
2930 # Depending upon the size, compute the lo and hi bounds.
2931 cat >conftest.$ac_ext <<_ACEOF
2932 #line 2932 "configure"
2933 #include "confdefs.h"
2934 $ac_includes_default
2938 int _array_ [1 - 2 * !((sizeof (char *)) >= 0)]
2943 rm -f conftest.$ac_objext
2944 if { (eval echo "$as_me:2944: \"$ac_compile\"") >&5
2945 (eval $ac_compile) 2>&5
2947 echo "$as_me:2947: \$? = $ac_status" >&5
2948 (exit $ac_status); } &&
2949 { ac_try='test -s conftest.$ac_objext'
2950 { (eval echo "$as_me:2950: \"$ac_try\"") >&5
2953 echo "$as_me:2953: \$? = $ac_status" >&5
2954 (exit $ac_status); }; }; then
2957 cat >conftest.$ac_ext <<_ACEOF
2958 #line 2958 "configure"
2959 #include "confdefs.h"
2960 $ac_includes_default
2964 int _array_ [1 - 2 * !((sizeof (char *)) <= $ac_mid)]
2969 rm -f conftest.$ac_objext
2970 if { (eval echo "$as_me:2970: \"$ac_compile\"") >&5
2971 (eval $ac_compile) 2>&5
2973 echo "$as_me:2973: \$? = $ac_status" >&5
2974 (exit $ac_status); } &&
2975 { ac_try='test -s conftest.$ac_objext'
2976 { (eval echo "$as_me:2976: \"$ac_try\"") >&5
2979 echo "$as_me:2979: \$? = $ac_status" >&5
2980 (exit $ac_status); }; }; then
2981 ac_hi=$ac_mid; break
2983 echo "$as_me: failed program was:" >&5
2984 cat conftest.$ac_ext >&5
2985 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
2987 rm -f conftest.$ac_objext conftest.$ac_ext
2990 echo "$as_me: failed program was:" >&5
2991 cat conftest.$ac_ext >&5
2994 cat >conftest.$ac_ext <<_ACEOF
2995 #line 2995 "configure"
2996 #include "confdefs.h"
2997 $ac_includes_default
3001 int _array_ [1 - 2 * !((sizeof (char *)) >= $ac_mid)]
3006 rm -f conftest.$ac_objext
3007 if { (eval echo "$as_me:3007: \"$ac_compile\"") >&5
3008 (eval $ac_compile) 2>&5
3010 echo "$as_me:3010: \$? = $ac_status" >&5
3011 (exit $ac_status); } &&
3012 { ac_try='test -s conftest.$ac_objext'
3013 { (eval echo "$as_me:3013: \"$ac_try\"") >&5
3016 echo "$as_me:3016: \$? = $ac_status" >&5
3017 (exit $ac_status); }; }; then
3018 ac_lo=$ac_mid; break
3020 echo "$as_me: failed program was:" >&5
3021 cat conftest.$ac_ext >&5
3022 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
3024 rm -f conftest.$ac_objext conftest.$ac_ext
3027 rm -f conftest.$ac_objext conftest.$ac_ext
3028 # Binary search between lo and hi bounds.
3029 while test "x$ac_lo" != "x$ac_hi"; do
3030 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3031 cat >conftest.$ac_ext <<_ACEOF
3032 #line 3032 "configure"
3033 #include "confdefs.h"
3034 $ac_includes_default
3038 int _array_ [1 - 2 * !((sizeof (char *)) <= $ac_mid)]
3043 rm -f conftest.$ac_objext
3044 if { (eval echo "$as_me:3044: \"$ac_compile\"") >&5
3045 (eval $ac_compile) 2>&5
3047 echo "$as_me:3047: \$? = $ac_status" >&5
3048 (exit $ac_status); } &&
3049 { ac_try='test -s conftest.$ac_objext'
3050 { (eval echo "$as_me:3050: \"$ac_try\"") >&5
3053 echo "$as_me:3053: \$? = $ac_status" >&5
3054 (exit $ac_status); }; }; then
3057 echo "$as_me: failed program was:" >&5
3058 cat conftest.$ac_ext >&5
3059 ac_lo=`expr $ac_mid + 1`
3061 rm -f conftest.$ac_objext conftest.$ac_ext
3063 ac_cv_sizeof_char_p=$ac_lo
3065 if test "$cross_compiling" = yes; then
3066 { { echo "$as_me:3066: error: cannot run test program while cross compiling" >&5
3067 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
3068 { (exit 1); exit 1; }; }
3070 cat >conftest.$ac_ext <<_ACEOF
3071 #line 3071 "configure"
3072 #include "confdefs.h"
3073 $ac_includes_default
3077 FILE *f = fopen ("conftest.val", "w");
3080 fprintf (f, "%d", (sizeof (char *)));
3086 rm -f conftest$ac_exeext
3087 if { (eval echo "$as_me:3087: \"$ac_link\"") >&5
3088 (eval $ac_link) 2>&5
3090 echo "$as_me:3090: \$? = $ac_status" >&5
3091 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3092 { (eval echo "$as_me:3092: \"$ac_try\"") >&5
3095 echo "$as_me:3095: \$? = $ac_status" >&5
3096 (exit $ac_status); }; }; then
3097 ac_cv_sizeof_char_p=`cat conftest.val`
3099 echo "$as_me: program exited with status $ac_status" >&5
3100 echo "$as_me: failed program was:" >&5
3101 cat conftest.$ac_ext >&5
3103 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3108 ac_cv_sizeof_char_p=0
3111 echo "$as_me:3111: result: $ac_cv_sizeof_char_p" >&5
3112 echo "${ECHO_T}$ac_cv_sizeof_char_p" >&6
3113 cat >>confdefs.h <<EOF
3114 #define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
3117 echo "$as_me:3117: checking for long" >&5
3118 echo $ECHO_N "checking for long... $ECHO_C" >&6
3119 if test "${ac_cv_type_long+set}" = set; then
3120 echo $ECHO_N "(cached) $ECHO_C" >&6
3122 cat >conftest.$ac_ext <<_ACEOF
3123 #line 3123 "configure"
3124 #include "confdefs.h"
3125 $ac_includes_default
3137 rm -f conftest.$ac_objext
3138 if { (eval echo "$as_me:3138: \"$ac_compile\"") >&5
3139 (eval $ac_compile) 2>&5
3141 echo "$as_me:3141: \$? = $ac_status" >&5
3142 (exit $ac_status); } &&
3143 { ac_try='test -s conftest.$ac_objext'
3144 { (eval echo "$as_me:3144: \"$ac_try\"") >&5
3147 echo "$as_me:3147: \$? = $ac_status" >&5
3148 (exit $ac_status); }; }; then
3151 echo "$as_me: failed program was:" >&5
3152 cat conftest.$ac_ext >&5
3155 rm -f conftest.$ac_objext conftest.$ac_ext
3157 echo "$as_me:3157: result: $ac_cv_type_long" >&5
3158 echo "${ECHO_T}$ac_cv_type_long" >&6
3160 echo "$as_me:3160: checking size of long" >&5
3161 echo $ECHO_N "checking size of long... $ECHO_C" >&6
3162 if test "${ac_cv_sizeof_long+set}" = set; then
3163 echo $ECHO_N "(cached) $ECHO_C" >&6
3165 if test "$ac_cv_type_long" = yes; then
3166 if test "$cross_compiling" = yes; then
3167 # Depending upon the size, compute the lo and hi bounds.
3168 cat >conftest.$ac_ext <<_ACEOF
3169 #line 3169 "configure"
3170 #include "confdefs.h"
3171 $ac_includes_default
3175 int _array_ [1 - 2 * !((sizeof (long)) >= 0)]
3180 rm -f conftest.$ac_objext
3181 if { (eval echo "$as_me:3181: \"$ac_compile\"") >&5
3182 (eval $ac_compile) 2>&5
3184 echo "$as_me:3184: \$? = $ac_status" >&5
3185 (exit $ac_status); } &&
3186 { ac_try='test -s conftest.$ac_objext'
3187 { (eval echo "$as_me:3187: \"$ac_try\"") >&5
3190 echo "$as_me:3190: \$? = $ac_status" >&5
3191 (exit $ac_status); }; }; then
3194 cat >conftest.$ac_ext <<_ACEOF
3195 #line 3195 "configure"
3196 #include "confdefs.h"
3197 $ac_includes_default
3201 int _array_ [1 - 2 * !((sizeof (long)) <= $ac_mid)]
3206 rm -f conftest.$ac_objext
3207 if { (eval echo "$as_me:3207: \"$ac_compile\"") >&5
3208 (eval $ac_compile) 2>&5
3210 echo "$as_me:3210: \$? = $ac_status" >&5
3211 (exit $ac_status); } &&
3212 { ac_try='test -s conftest.$ac_objext'
3213 { (eval echo "$as_me:3213: \"$ac_try\"") >&5
3216 echo "$as_me:3216: \$? = $ac_status" >&5
3217 (exit $ac_status); }; }; then
3218 ac_hi=$ac_mid; break
3220 echo "$as_me: failed program was:" >&5
3221 cat conftest.$ac_ext >&5
3222 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
3224 rm -f conftest.$ac_objext conftest.$ac_ext
3227 echo "$as_me: failed program was:" >&5
3228 cat conftest.$ac_ext >&5
3231 cat >conftest.$ac_ext <<_ACEOF
3232 #line 3232 "configure"
3233 #include "confdefs.h"
3234 $ac_includes_default
3238 int _array_ [1 - 2 * !((sizeof (long)) >= $ac_mid)]
3243 rm -f conftest.$ac_objext
3244 if { (eval echo "$as_me:3244: \"$ac_compile\"") >&5
3245 (eval $ac_compile) 2>&5
3247 echo "$as_me:3247: \$? = $ac_status" >&5
3248 (exit $ac_status); } &&
3249 { ac_try='test -s conftest.$ac_objext'
3250 { (eval echo "$as_me:3250: \"$ac_try\"") >&5
3253 echo "$as_me:3253: \$? = $ac_status" >&5
3254 (exit $ac_status); }; }; then
3255 ac_lo=$ac_mid; break
3257 echo "$as_me: failed program was:" >&5
3258 cat conftest.$ac_ext >&5
3259 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
3261 rm -f conftest.$ac_objext conftest.$ac_ext
3264 rm -f conftest.$ac_objext conftest.$ac_ext
3265 # Binary search between lo and hi bounds.
3266 while test "x$ac_lo" != "x$ac_hi"; do
3267 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3268 cat >conftest.$ac_ext <<_ACEOF
3269 #line 3269 "configure"
3270 #include "confdefs.h"
3271 $ac_includes_default
3275 int _array_ [1 - 2 * !((sizeof (long)) <= $ac_mid)]
3280 rm -f conftest.$ac_objext
3281 if { (eval echo "$as_me:3281: \"$ac_compile\"") >&5
3282 (eval $ac_compile) 2>&5
3284 echo "$as_me:3284: \$? = $ac_status" >&5
3285 (exit $ac_status); } &&
3286 { ac_try='test -s conftest.$ac_objext'
3287 { (eval echo "$as_me:3287: \"$ac_try\"") >&5
3290 echo "$as_me:3290: \$? = $ac_status" >&5
3291 (exit $ac_status); }; }; then
3294 echo "$as_me: failed program was:" >&5
3295 cat conftest.$ac_ext >&5
3296 ac_lo=`expr $ac_mid + 1`
3298 rm -f conftest.$ac_objext conftest.$ac_ext
3300 ac_cv_sizeof_long=$ac_lo
3302 if test "$cross_compiling" = yes; then
3303 { { echo "$as_me:3303: error: cannot run test program while cross compiling" >&5
3304 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
3305 { (exit 1); exit 1; }; }
3307 cat >conftest.$ac_ext <<_ACEOF
3308 #line 3308 "configure"
3309 #include "confdefs.h"
3310 $ac_includes_default
3314 FILE *f = fopen ("conftest.val", "w");
3317 fprintf (f, "%d", (sizeof (long)));
3323 rm -f conftest$ac_exeext
3324 if { (eval echo "$as_me:3324: \"$ac_link\"") >&5
3325 (eval $ac_link) 2>&5
3327 echo "$as_me:3327: \$? = $ac_status" >&5
3328 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3329 { (eval echo "$as_me:3329: \"$ac_try\"") >&5
3332 echo "$as_me:3332: \$? = $ac_status" >&5
3333 (exit $ac_status); }; }; then
3334 ac_cv_sizeof_long=`cat conftest.val`
3336 echo "$as_me: program exited with status $ac_status" >&5
3337 echo "$as_me: failed program was:" >&5
3338 cat conftest.$ac_ext >&5
3340 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3348 echo "$as_me:3348: result: $ac_cv_sizeof_long" >&5
3349 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
3350 cat >>confdefs.h <<EOF
3351 #define SIZEOF_LONG $ac_cv_sizeof_long
3354 echo "$as_me:3354: checking for long long" >&5
3355 echo $ECHO_N "checking for long long... $ECHO_C" >&6
3356 if test "${ac_cv_type_long_long+set}" = set; then
3357 echo $ECHO_N "(cached) $ECHO_C" >&6
3359 cat >conftest.$ac_ext <<_ACEOF
3360 #line 3360 "configure"
3361 #include "confdefs.h"
3362 $ac_includes_default
3366 if ((long long *) 0)
3368 if (sizeof (long long))
3374 rm -f conftest.$ac_objext
3375 if { (eval echo "$as_me:3375: \"$ac_compile\"") >&5
3376 (eval $ac_compile) 2>&5
3378 echo "$as_me:3378: \$? = $ac_status" >&5
3379 (exit $ac_status); } &&
3380 { ac_try='test -s conftest.$ac_objext'
3381 { (eval echo "$as_me:3381: \"$ac_try\"") >&5
3384 echo "$as_me:3384: \$? = $ac_status" >&5
3385 (exit $ac_status); }; }; then
3386 ac_cv_type_long_long=yes
3388 echo "$as_me: failed program was:" >&5
3389 cat conftest.$ac_ext >&5
3390 ac_cv_type_long_long=no
3392 rm -f conftest.$ac_objext conftest.$ac_ext
3394 echo "$as_me:3394: result: $ac_cv_type_long_long" >&5
3395 echo "${ECHO_T}$ac_cv_type_long_long" >&6
3397 echo "$as_me:3397: checking size of long long" >&5
3398 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
3399 if test "${ac_cv_sizeof_long_long+set}" = set; then
3400 echo $ECHO_N "(cached) $ECHO_C" >&6
3402 if test "$ac_cv_type_long_long" = yes; then
3403 if test "$cross_compiling" = yes; then
3404 # Depending upon the size, compute the lo and hi bounds.
3405 cat >conftest.$ac_ext <<_ACEOF
3406 #line 3406 "configure"
3407 #include "confdefs.h"
3408 $ac_includes_default
3412 int _array_ [1 - 2 * !((sizeof (long long)) >= 0)]
3417 rm -f conftest.$ac_objext
3418 if { (eval echo "$as_me:3418: \"$ac_compile\"") >&5
3419 (eval $ac_compile) 2>&5
3421 echo "$as_me:3421: \$? = $ac_status" >&5
3422 (exit $ac_status); } &&
3423 { ac_try='test -s conftest.$ac_objext'
3424 { (eval echo "$as_me:3424: \"$ac_try\"") >&5
3427 echo "$as_me:3427: \$? = $ac_status" >&5
3428 (exit $ac_status); }; }; then
3431 cat >conftest.$ac_ext <<_ACEOF
3432 #line 3432 "configure"
3433 #include "confdefs.h"
3434 $ac_includes_default
3438 int _array_ [1 - 2 * !((sizeof (long long)) <= $ac_mid)]
3443 rm -f conftest.$ac_objext
3444 if { (eval echo "$as_me:3444: \"$ac_compile\"") >&5
3445 (eval $ac_compile) 2>&5
3447 echo "$as_me:3447: \$? = $ac_status" >&5
3448 (exit $ac_status); } &&
3449 { ac_try='test -s conftest.$ac_objext'
3450 { (eval echo "$as_me:3450: \"$ac_try\"") >&5
3453 echo "$as_me:3453: \$? = $ac_status" >&5
3454 (exit $ac_status); }; }; then
3455 ac_hi=$ac_mid; break
3457 echo "$as_me: failed program was:" >&5
3458 cat conftest.$ac_ext >&5
3459 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
3461 rm -f conftest.$ac_objext conftest.$ac_ext
3464 echo "$as_me: failed program was:" >&5
3465 cat conftest.$ac_ext >&5
3468 cat >conftest.$ac_ext <<_ACEOF
3469 #line 3469 "configure"
3470 #include "confdefs.h"
3471 $ac_includes_default
3475 int _array_ [1 - 2 * !((sizeof (long long)) >= $ac_mid)]
3480 rm -f conftest.$ac_objext
3481 if { (eval echo "$as_me:3481: \"$ac_compile\"") >&5
3482 (eval $ac_compile) 2>&5
3484 echo "$as_me:3484: \$? = $ac_status" >&5
3485 (exit $ac_status); } &&
3486 { ac_try='test -s conftest.$ac_objext'
3487 { (eval echo "$as_me:3487: \"$ac_try\"") >&5
3490 echo "$as_me:3490: \$? = $ac_status" >&5
3491 (exit $ac_status); }; }; then
3492 ac_lo=$ac_mid; break
3494 echo "$as_me: failed program was:" >&5
3495 cat conftest.$ac_ext >&5
3496 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
3498 rm -f conftest.$ac_objext conftest.$ac_ext
3501 rm -f conftest.$ac_objext conftest.$ac_ext
3502 # Binary search between lo and hi bounds.
3503 while test "x$ac_lo" != "x$ac_hi"; do
3504 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3505 cat >conftest.$ac_ext <<_ACEOF
3506 #line 3506 "configure"
3507 #include "confdefs.h"
3508 $ac_includes_default
3512 int _array_ [1 - 2 * !((sizeof (long long)) <= $ac_mid)]
3517 rm -f conftest.$ac_objext
3518 if { (eval echo "$as_me:3518: \"$ac_compile\"") >&5
3519 (eval $ac_compile) 2>&5
3521 echo "$as_me:3521: \$? = $ac_status" >&5
3522 (exit $ac_status); } &&
3523 { ac_try='test -s conftest.$ac_objext'
3524 { (eval echo "$as_me:3524: \"$ac_try\"") >&5
3527 echo "$as_me:3527: \$? = $ac_status" >&5
3528 (exit $ac_status); }; }; then
3531 echo "$as_me: failed program was:" >&5
3532 cat conftest.$ac_ext >&5
3533 ac_lo=`expr $ac_mid + 1`
3535 rm -f conftest.$ac_objext conftest.$ac_ext
3537 ac_cv_sizeof_long_long=$ac_lo
3539 if test "$cross_compiling" = yes; then
3540 { { echo "$as_me:3540: error: cannot run test program while cross compiling" >&5
3541 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
3542 { (exit 1); exit 1; }; }
3544 cat >conftest.$ac_ext <<_ACEOF
3545 #line 3545 "configure"
3546 #include "confdefs.h"
3547 $ac_includes_default
3551 FILE *f = fopen ("conftest.val", "w");
3554 fprintf (f, "%d", (sizeof (long long)));
3560 rm -f conftest$ac_exeext
3561 if { (eval echo "$as_me:3561: \"$ac_link\"") >&5
3562 (eval $ac_link) 2>&5
3564 echo "$as_me:3564: \$? = $ac_status" >&5
3565 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3566 { (eval echo "$as_me:3566: \"$ac_try\"") >&5
3569 echo "$as_me:3569: \$? = $ac_status" >&5
3570 (exit $ac_status); }; }; then
3571 ac_cv_sizeof_long_long=`cat conftest.val`
3573 echo "$as_me: program exited with status $ac_status" >&5
3574 echo "$as_me: failed program was:" >&5
3575 cat conftest.$ac_ext >&5
3577 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3582 ac_cv_sizeof_long_long=0
3585 echo "$as_me:3585: result: $ac_cv_sizeof_long_long" >&5
3586 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
3587 cat >>confdefs.h <<EOF
3588 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
3591 echo "$as_me:3591: checking for size_t" >&5
3592 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3593 if test "${ac_cv_type_size_t+set}" = set; then
3594 echo $ECHO_N "(cached) $ECHO_C" >&6
3596 cat >conftest.$ac_ext <<_ACEOF
3597 #line 3597 "configure"
3598 #include "confdefs.h"
3599 $ac_includes_default
3605 if (sizeof (size_t))
3611 rm -f conftest.$ac_objext
3612 if { (eval echo "$as_me:3612: \"$ac_compile\"") >&5
3613 (eval $ac_compile) 2>&5
3615 echo "$as_me:3615: \$? = $ac_status" >&5
3616 (exit $ac_status); } &&
3617 { ac_try='test -s conftest.$ac_objext'
3618 { (eval echo "$as_me:3618: \"$ac_try\"") >&5
3621 echo "$as_me:3621: \$? = $ac_status" >&5
3622 (exit $ac_status); }; }; then
3623 ac_cv_type_size_t=yes
3625 echo "$as_me: failed program was:" >&5
3626 cat conftest.$ac_ext >&5
3627 ac_cv_type_size_t=no
3629 rm -f conftest.$ac_objext conftest.$ac_ext
3631 echo "$as_me:3631: result: $ac_cv_type_size_t" >&5
3632 echo "${ECHO_T}$ac_cv_type_size_t" >&6
3634 echo "$as_me:3634: checking size of size_t" >&5
3635 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
3636 if test "${ac_cv_sizeof_size_t+set}" = set; then
3637 echo $ECHO_N "(cached) $ECHO_C" >&6
3639 if test "$ac_cv_type_size_t" = yes; then
3640 if test "$cross_compiling" = yes; then
3641 # Depending upon the size, compute the lo and hi bounds.
3642 cat >conftest.$ac_ext <<_ACEOF
3643 #line 3643 "configure"
3644 #include "confdefs.h"
3645 $ac_includes_default
3649 int _array_ [1 - 2 * !((sizeof (size_t)) >= 0)]
3654 rm -f conftest.$ac_objext
3655 if { (eval echo "$as_me:3655: \"$ac_compile\"") >&5
3656 (eval $ac_compile) 2>&5
3658 echo "$as_me:3658: \$? = $ac_status" >&5
3659 (exit $ac_status); } &&
3660 { ac_try='test -s conftest.$ac_objext'
3661 { (eval echo "$as_me:3661: \"$ac_try\"") >&5
3664 echo "$as_me:3664: \$? = $ac_status" >&5
3665 (exit $ac_status); }; }; then
3668 cat >conftest.$ac_ext <<_ACEOF
3669 #line 3669 "configure"
3670 #include "confdefs.h"
3671 $ac_includes_default
3675 int _array_ [1 - 2 * !((sizeof (size_t)) <= $ac_mid)]
3680 rm -f conftest.$ac_objext
3681 if { (eval echo "$as_me:3681: \"$ac_compile\"") >&5
3682 (eval $ac_compile) 2>&5
3684 echo "$as_me:3684: \$? = $ac_status" >&5
3685 (exit $ac_status); } &&
3686 { ac_try='test -s conftest.$ac_objext'
3687 { (eval echo "$as_me:3687: \"$ac_try\"") >&5
3690 echo "$as_me:3690: \$? = $ac_status" >&5
3691 (exit $ac_status); }; }; then
3692 ac_hi=$ac_mid; break
3694 echo "$as_me: failed program was:" >&5
3695 cat conftest.$ac_ext >&5
3696 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
3698 rm -f conftest.$ac_objext conftest.$ac_ext
3701 echo "$as_me: failed program was:" >&5
3702 cat conftest.$ac_ext >&5
3705 cat >conftest.$ac_ext <<_ACEOF
3706 #line 3706 "configure"
3707 #include "confdefs.h"
3708 $ac_includes_default
3712 int _array_ [1 - 2 * !((sizeof (size_t)) >= $ac_mid)]
3717 rm -f conftest.$ac_objext
3718 if { (eval echo "$as_me:3718: \"$ac_compile\"") >&5
3719 (eval $ac_compile) 2>&5
3721 echo "$as_me:3721: \$? = $ac_status" >&5
3722 (exit $ac_status); } &&
3723 { ac_try='test -s conftest.$ac_objext'
3724 { (eval echo "$as_me:3724: \"$ac_try\"") >&5
3727 echo "$as_me:3727: \$? = $ac_status" >&5
3728 (exit $ac_status); }; }; then
3729 ac_lo=$ac_mid; break
3731 echo "$as_me: failed program was:" >&5
3732 cat conftest.$ac_ext >&5
3733 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
3735 rm -f conftest.$ac_objext conftest.$ac_ext
3738 rm -f conftest.$ac_objext conftest.$ac_ext
3739 # Binary search between lo and hi bounds.
3740 while test "x$ac_lo" != "x$ac_hi"; do
3741 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3742 cat >conftest.$ac_ext <<_ACEOF
3743 #line 3743 "configure"
3744 #include "confdefs.h"
3745 $ac_includes_default
3749 int _array_ [1 - 2 * !((sizeof (size_t)) <= $ac_mid)]
3754 rm -f conftest.$ac_objext
3755 if { (eval echo "$as_me:3755: \"$ac_compile\"") >&5
3756 (eval $ac_compile) 2>&5
3758 echo "$as_me:3758: \$? = $ac_status" >&5
3759 (exit $ac_status); } &&
3760 { ac_try='test -s conftest.$ac_objext'
3761 { (eval echo "$as_me:3761: \"$ac_try\"") >&5
3764 echo "$as_me:3764: \$? = $ac_status" >&5
3765 (exit $ac_status); }; }; then
3768 echo "$as_me: failed program was:" >&5
3769 cat conftest.$ac_ext >&5
3770 ac_lo=`expr $ac_mid + 1`
3772 rm -f conftest.$ac_objext conftest.$ac_ext
3774 ac_cv_sizeof_size_t=$ac_lo
3776 if test "$cross_compiling" = yes; then
3777 { { echo "$as_me:3777: error: cannot run test program while cross compiling" >&5
3778 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
3779 { (exit 1); exit 1; }; }
3781 cat >conftest.$ac_ext <<_ACEOF
3782 #line 3782 "configure"
3783 #include "confdefs.h"
3784 $ac_includes_default
3788 FILE *f = fopen ("conftest.val", "w");
3791 fprintf (f, "%d", (sizeof (size_t)));
3797 rm -f conftest$ac_exeext
3798 if { (eval echo "$as_me:3798: \"$ac_link\"") >&5
3799 (eval $ac_link) 2>&5
3801 echo "$as_me:3801: \$? = $ac_status" >&5
3802 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3803 { (eval echo "$as_me:3803: \"$ac_try\"") >&5
3806 echo "$as_me:3806: \$? = $ac_status" >&5
3807 (exit $ac_status); }; }; then
3808 ac_cv_sizeof_size_t=`cat conftest.val`
3810 echo "$as_me: program exited with status $ac_status" >&5
3811 echo "$as_me: failed program was:" >&5
3812 cat conftest.$ac_ext >&5
3814 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3819 ac_cv_sizeof_size_t=0
3822 echo "$as_me:3822: result: $ac_cv_sizeof_size_t" >&5
3823 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
3824 cat >>confdefs.h <<EOF
3825 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
3828 for ac_func in strerror bcopy memmove
3830 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3831 echo "$as_me:3831: checking for $ac_func" >&5
3832 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3833 if eval "test \"\${$as_ac_var+set}\" = set"; then
3834 echo $ECHO_N "(cached) $ECHO_C" >&6
3836 cat >conftest.$ac_ext <<_ACEOF
3837 #line 3837 "configure"
3838 #include "confdefs.h"
3839 /* System header to define __stub macros and hopefully few prototypes,
3840 which can conflict with char $ac_func (); below. */
3842 /* Override any gcc2 internal prototype to avoid an error. */
3846 /* We use char because int might match the return type of a gcc2
3847 builtin and then its argument prototype would still apply. */
3854 /* The GNU C library defines this for functions which it implements
3855 to always fail with ENOSYS. Some functions are actually named
3856 something starting with __ and the normal name is an alias. */
3857 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3867 rm -f conftest.$ac_objext conftest$ac_exeext
3868 if { (eval echo "$as_me:3868: \"$ac_link\"") >&5
3869 (eval $ac_link) 2>&5
3871 echo "$as_me:3871: \$? = $ac_status" >&5
3872 (exit $ac_status); } &&
3873 { ac_try='test -s conftest$ac_exeext'
3874 { (eval echo "$as_me:3874: \"$ac_try\"") >&5
3877 echo "$as_me:3877: \$? = $ac_status" >&5
3878 (exit $ac_status); }; }; then
3879 eval "$as_ac_var=yes"
3881 echo "$as_me: failed program was:" >&5
3882 cat conftest.$ac_ext >&5
3883 eval "$as_ac_var=no"
3885 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3887 echo "$as_me:3887: result: `eval echo '${'$as_ac_var'}'`" >&5
3888 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3889 if test `eval echo '${'$as_ac_var'}'` = yes; then
3890 cat >>confdefs.h <<EOF
3891 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3897 echo "$as_me:3897: checking for pcre_compile in -lpcre" >&5
3898 echo $ECHO_N "checking for pcre_compile in -lpcre... $ECHO_C" >&6
3899 if test "${ac_cv_lib_pcre_pcre_compile+set}" = set; then
3900 echo $ECHO_N "(cached) $ECHO_C" >&6
3902 ac_check_lib_save_LIBS=$LIBS
3904 cat >conftest.$ac_ext <<_ACEOF
3905 #line 3905 "configure"
3906 #include "confdefs.h"
3908 /* Override any gcc2 internal prototype to avoid an error. */
3912 /* We use char because int might match the return type of a gcc2
3913 builtin and then its argument prototype would still apply. */
3914 char pcre_compile ();
3923 rm -f conftest.$ac_objext conftest$ac_exeext
3924 if { (eval echo "$as_me:3924: \"$ac_link\"") >&5
3925 (eval $ac_link) 2>&5
3927 echo "$as_me:3927: \$? = $ac_status" >&5
3928 (exit $ac_status); } &&
3929 { ac_try='test -s conftest$ac_exeext'
3930 { (eval echo "$as_me:3930: \"$ac_try\"") >&5
3933 echo "$as_me:3933: \$? = $ac_status" >&5
3934 (exit $ac_status); }; }; then
3935 ac_cv_lib_pcre_pcre_compile=yes
3937 echo "$as_me: failed program was:" >&5
3938 cat conftest.$ac_ext >&5
3939 ac_cv_lib_pcre_pcre_compile=no
3941 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3942 LIBS=$ac_check_lib_save_LIBS
3944 echo "$as_me:3944: result: $ac_cv_lib_pcre_pcre_compile" >&5
3945 echo "${ECHO_T}$ac_cv_lib_pcre_pcre_compile" >&6
3946 if test $ac_cv_lib_pcre_pcre_compile = yes; then
3947 echo "$as_me:3947: checking for pcre.h" >&5
3948 echo $ECHO_N "checking for pcre.h... $ECHO_C" >&6
3949 if test "${ac_cv_header_pcre_h+set}" = set; then
3950 echo $ECHO_N "(cached) $ECHO_C" >&6
3952 cat >conftest.$ac_ext <<_ACEOF
3953 #line 3953 "configure"
3954 #include "confdefs.h"
3957 if { (eval echo "$as_me:3957: \"$ac_cpp conftest.$ac_ext\"") >&5
3958 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3960 egrep -v '^ *\+' conftest.er1 >conftest.err
3962 cat conftest.err >&5
3963 echo "$as_me:3963: \$? = $ac_status" >&5
3964 (exit $ac_status); } >/dev/null; then
3965 if test -s conftest.err; then
3966 ac_cpp_err=$ac_c_preproc_warn_flag
3973 if test -z "$ac_cpp_err"; then
3974 ac_cv_header_pcre_h=yes
3976 echo "$as_me: failed program was:" >&5
3977 cat conftest.$ac_ext >&5
3978 ac_cv_header_pcre_h=no
3980 rm -f conftest.err conftest.$ac_ext
3982 echo "$as_me:3982: result: $ac_cv_header_pcre_h" >&5
3983 echo "${ECHO_T}$ac_cv_header_pcre_h" >&6
3984 if test $ac_cv_header_pcre_h = yes; then
3994 echo "$as_me:3994: checking for regcomp in -lpcreposix" >&5
3995 echo $ECHO_N "checking for regcomp in -lpcreposix... $ECHO_C" >&6
3996 if test "${ac_cv_lib_pcreposix_regcomp+set}" = set; then
3997 echo $ECHO_N "(cached) $ECHO_C" >&6
3999 ac_check_lib_save_LIBS=$LIBS
4000 LIBS="-lpcreposix -lpcre $LIBS"
4001 cat >conftest.$ac_ext <<_ACEOF
4002 #line 4002 "configure"
4003 #include "confdefs.h"
4005 /* Override any gcc2 internal prototype to avoid an error. */
4009 /* We use char because int might match the return type of a gcc2
4010 builtin and then its argument prototype would still apply. */
4020 rm -f conftest.$ac_objext conftest$ac_exeext
4021 if { (eval echo "$as_me:4021: \"$ac_link\"") >&5
4022 (eval $ac_link) 2>&5
4024 echo "$as_me:4024: \$? = $ac_status" >&5
4025 (exit $ac_status); } &&
4026 { ac_try='test -s conftest$ac_exeext'
4027 { (eval echo "$as_me:4027: \"$ac_try\"") >&5
4030 echo "$as_me:4030: \$? = $ac_status" >&5
4031 (exit $ac_status); }; }; then
4032 ac_cv_lib_pcreposix_regcomp=yes
4034 echo "$as_me: failed program was:" >&5
4035 cat conftest.$ac_ext >&5
4036 ac_cv_lib_pcreposix_regcomp=no
4038 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4039 LIBS=$ac_check_lib_save_LIBS
4041 echo "$as_me:4041: result: $ac_cv_lib_pcreposix_regcomp" >&5
4042 echo "${ECHO_T}$ac_cv_lib_pcreposix_regcomp" >&6
4043 if test $ac_cv_lib_pcreposix_regcomp = yes; then
4044 echo "$as_me:4044: checking for pcreposix.h" >&5
4045 echo $ECHO_N "checking for pcreposix.h... $ECHO_C" >&6
4046 if test "${ac_cv_header_pcreposix_h+set}" = set; then
4047 echo $ECHO_N "(cached) $ECHO_C" >&6
4049 cat >conftest.$ac_ext <<_ACEOF
4050 #line 4050 "configure"
4051 #include "confdefs.h"
4052 #include <pcreposix.h>
4054 if { (eval echo "$as_me:4054: \"$ac_cpp conftest.$ac_ext\"") >&5
4055 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4057 egrep -v '^ *\+' conftest.er1 >conftest.err
4059 cat conftest.err >&5
4060 echo "$as_me:4060: \$? = $ac_status" >&5
4061 (exit $ac_status); } >/dev/null; then
4062 if test -s conftest.err; then
4063 ac_cpp_err=$ac_c_preproc_warn_flag
4070 if test -z "$ac_cpp_err"; then
4071 ac_cv_header_pcreposix_h=yes
4073 echo "$as_me: failed program was:" >&5
4074 cat conftest.$ac_ext >&5
4075 ac_cv_header_pcreposix_h=no
4077 rm -f conftest.err conftest.$ac_ext
4079 echo "$as_me:4079: result: $ac_cv_header_pcreposix_h" >&5
4080 echo "${ECHO_T}$ac_cv_header_pcreposix_h" >&6
4081 if test $ac_cv_header_pcreposix_h = yes; then
4091 echo "$as_me:4091: checking for pcrs_compile in -lpcrs" >&5
4092 echo $ECHO_N "checking for pcrs_compile in -lpcrs... $ECHO_C" >&6
4093 if test "${ac_cv_lib_pcrs_pcrs_compile+set}" = set; then
4094 echo $ECHO_N "(cached) $ECHO_C" >&6
4096 ac_check_lib_save_LIBS=$LIBS
4098 cat >conftest.$ac_ext <<_ACEOF
4099 #line 4099 "configure"
4100 #include "confdefs.h"
4102 /* Override any gcc2 internal prototype to avoid an error. */
4106 /* We use char because int might match the return type of a gcc2
4107 builtin and then its argument prototype would still apply. */
4108 char pcrs_compile ();
4117 rm -f conftest.$ac_objext conftest$ac_exeext
4118 if { (eval echo "$as_me:4118: \"$ac_link\"") >&5
4119 (eval $ac_link) 2>&5
4121 echo "$as_me:4121: \$? = $ac_status" >&5
4122 (exit $ac_status); } &&
4123 { ac_try='test -s conftest$ac_exeext'
4124 { (eval echo "$as_me:4124: \"$ac_try\"") >&5
4127 echo "$as_me:4127: \$? = $ac_status" >&5
4128 (exit $ac_status); }; }; then
4129 ac_cv_lib_pcrs_pcrs_compile=yes
4131 echo "$as_me: failed program was:" >&5
4132 cat conftest.$ac_ext >&5
4133 ac_cv_lib_pcrs_pcrs_compile=no
4135 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4136 LIBS=$ac_check_lib_save_LIBS
4138 echo "$as_me:4138: result: $ac_cv_lib_pcrs_pcrs_compile" >&5
4139 echo "${ECHO_T}$ac_cv_lib_pcrs_pcrs_compile" >&6
4140 if test $ac_cv_lib_pcrs_pcrs_compile = yes; then
4141 echo "$as_me:4141: checking for pcrs.h" >&5
4142 echo $ECHO_N "checking for pcrs.h... $ECHO_C" >&6
4143 if test "${ac_cv_header_pcrs_h+set}" = set; then
4144 echo $ECHO_N "(cached) $ECHO_C" >&6
4146 cat >conftest.$ac_ext <<_ACEOF
4147 #line 4147 "configure"
4148 #include "confdefs.h"
4151 if { (eval echo "$as_me:4151: \"$ac_cpp conftest.$ac_ext\"") >&5
4152 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4154 egrep -v '^ *\+' conftest.er1 >conftest.err
4156 cat conftest.err >&5
4157 echo "$as_me:4157: \$? = $ac_status" >&5
4158 (exit $ac_status); } >/dev/null; then
4159 if test -s conftest.err; then
4160 ac_cpp_err=$ac_c_preproc_warn_flag
4167 if test -z "$ac_cpp_err"; then
4168 ac_cv_header_pcrs_h=yes
4170 echo "$as_me: failed program was:" >&5
4171 cat conftest.$ac_ext >&5
4172 ac_cv_header_pcrs_h=no
4174 rm -f conftest.err conftest.$ac_ext
4176 echo "$as_me:4176: result: $ac_cv_header_pcrs_h" >&5
4177 echo "${ECHO_T}$ac_cv_header_pcrs_h" >&6
4178 if test $ac_cv_header_pcrs_h = yes; then
4188 cat >>confdefs.h <<\EOF
4192 # Check whether --enable-toggle or --disable-toggle was given.
4193 if test "${enable_toggle+set}" = set; then
4194 enableval="$enable_toggle"
4195 if test $enableval = yes; then
4196 cat >>confdefs.h <<\EOF
4197 #define FEATURE_TOGGLE 1
4202 cat >>confdefs.h <<\EOF
4203 #define FEATURE_TOGGLE 1
4208 # Check whether --enable-force or --disable-force was given.
4209 if test "${enable_force+set}" = set; then
4210 enableval="$enable_force"
4211 if test $enableval = yes; then
4212 cat >>confdefs.h <<\EOF
4213 #define FEATURE_FORCE_LOAD 1
4218 cat >>confdefs.h <<\EOF
4219 #define FEATURE_FORCE_LOAD 1
4224 # Check whether --enable-fast-redirects or --disable-fast-redirects was given.
4225 if test "${enable_fast_redirects+set}" = set; then
4226 enableval="$enable_fast_redirects"
4227 if test $enableval = yes; then
4228 cat >>confdefs.h <<\EOF
4229 #define FEATURE_FAST_REDIRECTS 1
4234 cat >>confdefs.h <<\EOF
4235 #define FEATURE_FAST_REDIRECTS 1
4240 # Check whether --enable-killpopup or --disable-killpopup was given.
4241 if test "${enable_killpopup+set}" = set; then
4242 enableval="$enable_killpopup"
4243 if test $enableval = yes; then
4244 cat >>confdefs.h <<\EOF
4245 #define FEATURE_KILL_POPUPS 1
4250 cat >>confdefs.h <<\EOF
4251 #define FEATURE_KILL_POPUPS 1
4256 # Check whether --enable-stats or --disable-stats was given.
4257 if test "${enable_stats+set}" = set; then
4258 enableval="$enable_stats"
4259 if test $enableval = yes; then
4260 cat >>confdefs.h <<\EOF
4261 #define FEATURE_STATISTICS 1
4266 cat >>confdefs.h <<\EOF
4267 #define FEATURE_STATISTICS 1
4272 # Check whether --enable-ie-images or --disable-ie-images was given.
4273 if test "${enable_ie_images+set}" = set; then
4274 enableval="$enable_ie_images"
4275 if test $enableval = yes; then
4276 cat >>confdefs.h <<\EOF
4277 #define FEATURE_IMAGE_DETECT_MSIE 1
4282 cat >>confdefs.h <<\EOF
4283 #define FEATURE_IMAGE_DETECT_MSIE 1
4288 # Check whether --enable-image-blocking or --disable-image-blocking was given.
4289 if test "${enable_image_blocking+set}" = set; then
4290 enableval="$enable_image_blocking"
4291 if test $enableval = yes; then
4292 cat >>confdefs.h <<\EOF
4293 #define FEATURE_IMAGE_BLOCKING 1
4298 cat >>confdefs.h <<\EOF
4299 #define FEATURE_IMAGE_BLOCKING 1
4304 # Check whether --enable-acl-files or --disable-acl-files was given.
4305 if test "${enable_acl_files+set}" = set; then
4306 enableval="$enable_acl_files"
4307 if test $enableval = yes; then
4308 cat >>confdefs.h <<\EOF
4309 #define FEATURE_ACL 1
4314 cat >>confdefs.h <<\EOF
4315 #define FEATURE_ACL 1
4320 # Check whether --enable-trust-files or --disable-trust-files was given.
4321 if test "${enable_trust_files+set}" = set; then
4322 enableval="$enable_trust_files"
4323 if test $enableval = yes; then
4324 cat >>confdefs.h <<\EOF
4325 #define FEATURE_TRUST 1
4330 cat >>confdefs.h <<\EOF
4331 #define FEATURE_TRUST 1
4336 # Check whether --enable-jar-files or --disable-jar-files was given.
4337 if test "${enable_jar_files+set}" = set; then
4338 enableval="$enable_jar_files"
4339 if test $enableval = yes; then
4340 cat >>confdefs.h <<\EOF
4341 #define FEATURE_COOKIE_JAR 1
4346 cat >>confdefs.h <<\EOF
4347 #define FEATURE_COOKIE_JAR 1
4352 # Check whether --enable-regex-matching or --disable-regex-matching was given.
4353 if test "${enable_regex_matching+set}" = set; then
4354 enableval="$enable_regex_matching"
4355 regex_matching=$enableval
4360 # Check whether --enable-dynamic-pcre or --disable-dynamic-pcre was given.
4361 if test "${enable_dynamic_pcre+set}" = set; then
4362 enableval="$enable_dynamic_pcre"
4363 if test $enableval = "no"; then have_pcre=no; fi
4366 # Check whether --enable-dynamic-pcrs or --disable-dynamic-pcrs was given.
4367 if test "${enable_dynamic_pcrs+set}" = set; then
4368 enableval="$enable_dynamic_pcrs"
4369 if test $enableval = "no"; then have_pcrs=no; fi
4372 # Is the regex URL matching based on libpcreposix, but we
4373 # don't have that library?
4375 if test $have_pcreposix = "yes" -o $regex_matching != "pcre"; then
4376 dont_miss_pcreposix=yes
4378 dont_miss_pcreposix=no
4381 # If we have libpcre and either we also have pcreposix or
4382 # we don't need pcreposix, then link pcre dynamically; else
4383 # build it and link statically
4385 if test $have_pcre = "yes" -a $dont_miss_pcreposix = "yes"; then
4386 echo "using libpcre"
4391 echo "using built-in static pcre"
4393 cat >>confdefs.h <<\EOF
4394 #define STATIC_PCRE 1
4400 # If we have libpcrs and pcre is linked dynamically
4401 # then also link pcrs dynamically, else build and link
4404 if test $have_pcrs = "yes" -a $pcre_dyn = "yes"; then
4405 echo "using libpcrs"
4409 echo "using built-in static pcrs"
4410 cat >>confdefs.h <<\EOF
4411 #define STATIC_PCRS 1
4417 # Which method should be used for URL matching?
4418 # pcre, gnu regex or prefix matching?
4420 if test $regex_matching = "gnu"; then
4421 echo "using gnu regex for URL matching"
4422 cat >>confdefs.h <<\EOF
4428 elif test $regex_matching = "pcre"; then
4429 echo "using pcre regex for URL matching"
4430 cat >>confdefs.h <<\EOF
4431 #define REGEX_PCRE 1
4436 if test $pcre_dyn = "yes"; then
4437 LIBS="$LIBS -lpcreposix"
4440 echo -e "using prefix matching for URLs\nHint: This does NOT make the executable any smaller!"
4445 CFLAGS=$old_CFLAGS_nospecial
4447 ac_config_files="$ac_config_files Makefile"
4448 cat >confcache <<\_ACEOF
4449 # This file is a shell script that caches the results of configure
4450 # tests run on this system so they can be shared between configure
4451 # scripts and configure runs, see configure's option --config-cache.
4452 # It is not useful on other systems. If it contains results you don't
4453 # want to keep, you may remove or edit it.
4455 # config.status only pays attention to the cache file if you give it
4456 # the --recheck option to rerun configure.
4458 # `ac_cv_env_foo' variables (set or unset) will be overriden when
4459 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4464 # The following way of writing the cache mishandles newlines in values,
4465 # but we know of no workaround that is simple, portable, and efficient.
4466 # So, don't put newlines in cache variables' values.
4467 # Ultrix sh set writes to stderr and can't be redirected directly,
4468 # and sets the high bit in the cache file unless we assign to the vars.
4471 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4473 # `set' does not quote correctly, so add quotes (double-quote
4474 # substitution turns \\\\ into \\, and sed turns \\ into \).
4477 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4480 # `set' quotes correctly as required by POSIX, so do not add quotes.
4482 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4489 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4491 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4493 if cmp -s $cache_file confcache; then :; else
4494 if test -w $cache_file; then
4495 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4496 cat confcache >$cache_file
4498 echo "not updating unwritable cache $cache_file"
4503 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4504 # Let make expand exec_prefix.
4505 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4507 # VPATH may cause trouble with some makes, so we remove $(srcdir),
4508 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4509 # trailing colons and then remove the whole line if VPATH becomes empty
4510 # (actually we leave an empty line to preserve line numbers).
4511 if test "x$srcdir" = x.; then
4512 ac_vpsub='/^[ ]*VPATH[ ]*=/{
4513 s/:*\$(srcdir):*/:/;
4514 s/:*\${srcdir}:*/:/;
4516 s/^\([^=]*=[ ]*\):*/\1/;
4522 DEFS=-DHAVE_CONFIG_H
4524 : ${CONFIG_STATUS=./config.status}
4525 ac_clean_files_save=$ac_clean_files
4526 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4527 { echo "$as_me:4527: creating $CONFIG_STATUS" >&5
4528 echo "$as_me: creating $CONFIG_STATUS" >&6;}
4529 cat >$CONFIG_STATUS <<_ACEOF
4531 # Generated automatically by configure.
4532 # Run this file to recreate the current configuration.
4533 # Compiler output produced by configure, useful for debugging
4534 # configure, is in config.log if it exists.
4537 SHELL=\${CONFIG_SHELL-$SHELL}
4538 ac_cs_invocation="\$0 \$@"
4542 cat >>$CONFIG_STATUS <<\_ACEOF
4543 # Be Bourne compatible
4544 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4547 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
4551 # Name of the executable.
4552 as_me=`echo "$0" |sed 's,.*[\\/],,'`
4554 if expr a : '\(a\)' >/dev/null 2>&1; then
4560 rm -f conf$$ conf$$.exe conf$$.file
4562 if ln -s conf$$.file conf$$ 2>/dev/null; then
4563 # We could just check for DJGPP; but this test a) works b) is more generic
4564 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4565 if test -f conf$$.exe; then
4566 # Don't use ln at all; we don't have any links
4571 elif ln conf$$.file conf$$ 2>/dev/null; then
4576 rm -f conf$$ conf$$.exe conf$$.file
4578 as_executable_p="test -f"
4580 # Support unset when possible.
4581 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
4588 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
4589 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
4590 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
4591 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
4592 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
4593 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
4594 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
4595 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
4598 # We need space, tab and new line, in precisely that order.
4604 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
4610 # Files that config.status was made for.
4611 if test -n "$ac_config_files"; then
4612 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
4615 if test -n "$ac_config_headers"; then
4616 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
4619 if test -n "$ac_config_links"; then
4620 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
4623 if test -n "$ac_config_commands"; then
4624 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
4627 cat >>$CONFIG_STATUS <<\EOF
4630 \`$as_me' instantiates files from templates according to the
4631 current configuration.
4633 Usage: $0 [OPTIONS] [FILE]...
4635 -h, --help print this help, then exit
4636 -V, --version print version number, then exit
4637 -d, --debug don't remove temporary files
4638 --recheck update $as_me by reconfiguring in the same conditions
4639 --file=FILE[:TEMPLATE]
4640 instantiate the configuration file FILE
4641 --header=FILE[:TEMPLATE]
4642 instantiate the configuration header FILE
4644 Configuration files:
4647 Configuration headers:
4650 Report bugs to <bug-autoconf@gnu.org>."
4653 cat >>$CONFIG_STATUS <<EOF
4656 configured by $0, generated by GNU Autoconf 2.52,
4657 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
4659 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
4660 Free Software Foundation, Inc.
4661 This config.status script is free software; the Free Software Foundation
4662 gives unlimited permission to copy, distribute and modify it."
4666 cat >>$CONFIG_STATUS <<\EOF
4667 # If no file are specified by the user, then we need to provide default
4668 # value. By we need to know if files were specified by the user.
4674 ac_option=`expr "x$1" : 'x\([^=]*\)='`
4675 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
4677 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
4681 *) # This is not an option, so the user has probably given explicit
4683 ac_need_defaults=false;;
4687 # Handling of the options.
4689 cat >>$CONFIG_STATUS <<EOF
4690 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4691 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
4692 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
4694 cat >>$CONFIG_STATUS <<\EOF
4695 --version | --vers* | -V )
4696 echo "$ac_cs_version"; exit 0 ;;
4698 # Conflict between --help and --header
4699 { { echo "$as_me:4699: error: ambiguous option: $1
4700 Try \`$0 --help' for more information." >&5
4701 echo "$as_me: error: ambiguous option: $1
4702 Try \`$0 --help' for more information." >&2;}
4703 { (exit 1); exit 1; }; };;
4704 --help | --hel | -h )
4705 echo "$ac_cs_usage"; exit 0 ;;
4706 --debug | --d* | -d )
4708 --file | --fil | --fi | --f )
4710 CONFIG_FILES="$CONFIG_FILES $1"
4711 ac_need_defaults=false;;
4712 --header | --heade | --head | --hea )
4714 CONFIG_HEADERS="$CONFIG_HEADERS $1"
4715 ac_need_defaults=false;;
4718 -*) { { echo "$as_me:4718: error: unrecognized option: $1
4719 Try \`$0 --help' for more information." >&5
4720 echo "$as_me: error: unrecognized option: $1
4721 Try \`$0 --help' for more information." >&2;}
4722 { (exit 1); exit 1; }; } ;;
4724 *) ac_config_targets="$ac_config_targets $1" ;;
4733 ## ----------------------- ##
4734 ## Running config.status. ##
4735 ## ----------------------- ##
4737 This file was extended by $as_me 2.52, executed with
4738 CONFIG_FILES = $CONFIG_FILES
4739 CONFIG_HEADERS = $CONFIG_HEADERS
4740 CONFIG_LINKS = $CONFIG_LINKS
4741 CONFIG_COMMANDS = $CONFIG_COMMANDS
4743 on `(hostname || uname -n) 2>/dev/null | sed 1q`
4748 cat >>$CONFIG_STATUS <<\EOF
4749 for ac_config_target in $ac_config_targets
4751 case "$ac_config_target" in
4752 # Handling of arguments.
4753 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4754 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
4755 *) { { echo "$as_me:4755: error: invalid argument: $ac_config_target" >&5
4756 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4757 { (exit 1); exit 1; }; };;
4761 # If the user did not use the arguments to specify the items to instantiate,
4762 # then the envvar interface is used. Set only those that are not.
4763 # We use the long form for the default assignment because of an extremely
4764 # bizarre bug on SunOS 4.1.3.
4765 if $ac_need_defaults; then
4766 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4767 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
4770 # Create a temporary directory, and hook for its removal unless debugging.
4773 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4774 trap '{ (exit 1); exit 1; }' 1 2 13 15
4777 # Create a (secure) tmp directory for tmp files.
4780 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
4781 test -n "$tmp" && test -d "$tmp"
4784 tmp=$TMPDIR/cs$$-$RANDOM
4785 (umask 077 && mkdir $tmp)
4788 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
4789 { (exit 1); exit 1; }
4794 cat >>$CONFIG_STATUS <<EOF
4797 # CONFIG_FILES section.
4800 # No need to generate the scripts if there are no CONFIG_FILES.
4801 # This happens for instance when ./config.status config.h
4802 if test -n "\$CONFIG_FILES"; then
4803 # Protect against being on the right side of a sed subst in config.status.
4804 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
4805 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
4806 s,@SHELL@,$SHELL,;t t
4807 s,@exec_prefix@,$exec_prefix,;t t
4808 s,@prefix@,$prefix,;t t
4809 s,@program_transform_name@,$program_transform_name,;t t
4810 s,@bindir@,$bindir,;t t
4811 s,@sbindir@,$sbindir,;t t
4812 s,@libexecdir@,$libexecdir,;t t
4813 s,@datadir@,$datadir,;t t
4814 s,@sysconfdir@,$sysconfdir,;t t
4815 s,@sharedstatedir@,$sharedstatedir,;t t
4816 s,@localstatedir@,$localstatedir,;t t
4817 s,@libdir@,$libdir,;t t
4818 s,@includedir@,$includedir,;t t
4819 s,@oldincludedir@,$oldincludedir,;t t
4820 s,@infodir@,$infodir,;t t
4821 s,@mandir@,$mandir,;t t
4822 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
4823 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
4824 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
4825 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
4826 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
4827 s,@build_alias@,$build_alias,;t t
4828 s,@host_alias@,$host_alias,;t t
4829 s,@target_alias@,$target_alias,;t t
4830 s,@ECHO_C@,$ECHO_C,;t t
4831 s,@ECHO_N@,$ECHO_N,;t t
4832 s,@ECHO_T@,$ECHO_T,;t t
4833 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
4836 s,@build@,$build,;t t
4837 s,@build_cpu@,$build_cpu,;t t
4838 s,@build_vendor@,$build_vendor,;t t
4839 s,@build_os@,$build_os,;t t
4841 s,@host_cpu@,$host_cpu,;t t
4842 s,@host_vendor@,$host_vendor,;t t
4843 s,@host_os@,$host_os,;t t
4844 s,@VERSION_MAJOR@,$VERSION_MAJOR,;t t
4845 s,@VERSION_MINOR@,$VERSION_MINOR,;t t
4846 s,@VERSION_POINT@,$VERSION_POINT,;t t
4848 s,@CFLAGS@,$CFLAGS,;t t
4849 s,@LDFLAGS@,$LDFLAGS,;t t
4850 s,@CPPFLAGS@,$CPPFLAGS,;t t
4851 s,@ac_ct_CC@,$ac_ct_CC,;t t
4852 s,@EXEEXT@,$EXEEXT,;t t
4853 s,@OBJEXT@,$OBJEXT,;t t
4856 s,@WIN_ONLY@,$WIN_ONLY,;t t
4857 s,@PTHREAD_ONLY@,$PTHREAD_ONLY,;t t
4858 s,@SOCKET_LIB@,$SOCKET_LIB,;t t
4859 s,@AMIGAOS_ONLY@,$AMIGAOS_ONLY,;t t
4860 s,@GNU_REGEX_ONLY@,$GNU_REGEX_ONLY,;t t
4861 s,@PCRE_REGEX_ONLY@,$PCRE_REGEX_ONLY,;t t
4862 s,@STATIC_PCRE_ONLY@,$STATIC_PCRE_ONLY,;t t
4863 s,@STATIC_PCRS_ONLY@,$STATIC_PCRS_ONLY,;t t
4864 s,@SPECIAL_CFLAGS@,$SPECIAL_CFLAGS,;t t
4865 s,@PTHREAD_LIB@,$PTHREAD_LIB,;t t
4870 cat >>$CONFIG_STATUS <<\EOF
4871 # Split the substitutions into bite-sized pieces for seds with
4872 # small command number limits, like on Digital OSF/1 and HP-UX.
4874 ac_sed_frag=1 # Number of current file.
4875 ac_beg=1 # First line for current file.
4876 ac_end=$ac_max_sed_lines # Line after last line for current file.
4879 while $ac_more_lines; do
4880 if test $ac_beg -gt 1; then
4881 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4883 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4885 if test ! -s $tmp/subs.frag; then
4888 # The purpose of the label and of the branching condition is to
4889 # speed up the sed processing (if there are no `@' at all, there
4890 # is no need to browse any of the substitutions).
4891 # These are the two extra sed commands mentioned above.
4893 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
4894 if test -z "$ac_sed_cmds"; then
4895 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
4897 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
4899 ac_sed_frag=`expr $ac_sed_frag + 1`
4901 ac_end=`expr $ac_end + $ac_max_sed_lines`
4904 if test -z "$ac_sed_cmds"; then
4907 fi # test -n "$CONFIG_FILES"
4910 cat >>$CONFIG_STATUS <<\EOF
4911 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
4912 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4914 - | *:- | *:-:* ) # input from stdin
4916 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4917 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4918 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4919 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4920 * ) ac_file_in=$ac_file.in ;;
4923 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
4924 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4925 X"$ac_file" : 'X\(//\)[^/]' \| \
4926 X"$ac_file" : 'X\(//\)$' \| \
4927 X"$ac_file" : 'X\(/\)' \| \
4928 . : '\(.\)' 2>/dev/null ||
4930 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4931 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4932 /^X\(\/\/\)$/{ s//\1/; q; }
4933 /^X\(\/\).*/{ s//\1/; q; }
4935 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4937 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
4941 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
4942 case $as_mkdir_dir in
4943 # Skip DOS drivespec
4944 ?:) as_incr_dir=$as_mkdir_dir ;;
4946 as_incr_dir=$as_incr_dir/$as_mkdir_dir
4947 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
4952 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
4953 # A "../" for each directory in $ac_dir_suffix.
4954 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
4956 ac_dir_suffix= ac_dots=
4961 if test -z "$ac_dots"; then
4964 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
4967 ac_srcdir=$srcdir$ac_dir_suffix;
4968 ac_top_srcdir=$srcdir ;;
4970 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
4971 ac_top_srcdir=$ac_dots$srcdir ;;
4974 if test x"$ac_file" != x-; then
4975 { echo "$as_me:4975: creating $ac_file" >&5
4976 echo "$as_me: creating $ac_file" >&6;}
4979 # Let's still pretend it is `configure' which instantiates (i.e., don't
4980 # use $as_me), people would be surprised to read:
4981 # /* config.h. Generated automatically by config.status. */
4982 configure_input="Generated automatically from `echo $ac_file_in |
4983 sed 's,.*/,,'` by configure."
4985 # First look for the input files in the build tree, otherwise in the
4987 ac_file_inputs=`IFS=:
4988 for f in $ac_file_in; do
4990 -) echo $tmp/stdin ;;
4992 # Absolute (can't be DOS-style, as IFS=:)
4993 test -f "$f" || { { echo "$as_me:4993: error: cannot find input file: $f" >&5
4994 echo "$as_me: error: cannot find input file: $f" >&2;}
4995 { (exit 1); exit 1; }; }
4998 if test -f "$f"; then
5001 elif test -f "$srcdir/$f"; then
5006 { { echo "$as_me:5006: error: cannot find input file: $f" >&5
5007 echo "$as_me: error: cannot find input file: $f" >&2;}
5008 { (exit 1); exit 1; }; }
5011 done` || { (exit 1); exit 1; }
5013 cat >>$CONFIG_STATUS <<EOF
5017 cat >>$CONFIG_STATUS <<\EOF
5019 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5020 s,@configure_input@,$configure_input,;t t
5021 s,@srcdir@,$ac_srcdir,;t t
5022 s,@top_srcdir@,$ac_top_srcdir,;t t
5023 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5025 if test x"$ac_file" != x-; then
5026 mv $tmp/out $ac_file
5034 cat >>$CONFIG_STATUS <<\EOF
5037 # CONFIG_HEADER section.
5040 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5041 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5043 # ac_d sets the value in "#define NAME VALUE" lines.
5044 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5045 ac_dB='[ ].*$,\1#\2'
5048 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5049 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5050 ac_uB='$,\1#\2define\3'
5054 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
5055 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5057 - | *:- | *:-:* ) # input from stdin
5059 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5060 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5061 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5062 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5063 * ) ac_file_in=$ac_file.in ;;
5066 test x"$ac_file" != x- && { echo "$as_me:5066: creating $ac_file" >&5
5067 echo "$as_me: creating $ac_file" >&6;}
5069 # First look for the input files in the build tree, otherwise in the
5071 ac_file_inputs=`IFS=:
5072 for f in $ac_file_in; do
5074 -) echo $tmp/stdin ;;
5076 # Absolute (can't be DOS-style, as IFS=:)
5077 test -f "$f" || { { echo "$as_me:5077: error: cannot find input file: $f" >&5
5078 echo "$as_me: error: cannot find input file: $f" >&2;}
5079 { (exit 1); exit 1; }; }
5082 if test -f "$f"; then
5085 elif test -f "$srcdir/$f"; then
5090 { { echo "$as_me:5090: error: cannot find input file: $f" >&5
5091 echo "$as_me: error: cannot find input file: $f" >&2;}
5092 { (exit 1); exit 1; }; }
5095 done` || { (exit 1); exit 1; }
5096 # Remove the trailing spaces.
5097 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
5101 # Transform confdefs.h into two sed scripts, `conftest.defines' and
5102 # `conftest.undefs', that substitutes the proper values into
5103 # config.h.in to produce config.h. The first handles `#define'
5104 # templates, and the second `#undef' templates.
5105 # And first: Protect against being on the right side of a sed subst in
5106 # config.status. Protect against being in an unquoted here document
5108 rm -f conftest.defines conftest.undefs
5109 # Using a here document instead of a string reduces the quoting nightmare.
5110 # Putting comments in sed scripts is not portable.
5112 # `end' is used to avoid that the second main sed command (meant for
5113 # 0-ary CPP macros) applies to n-ary macro definitions.
5114 # See the Autoconf documentation for `clear'.
5115 cat >confdef2sed.sed <<\EOF
5120 s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
5122 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
5125 # If some macros were called several times there might be several times
5126 # the same #defines, which is useless. Nevertheless, we may not want to
5127 # sort them, since we want the *last* AC-DEFINE to be honored.
5128 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
5129 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
5130 rm -f confdef2sed.sed
5132 # This sed command replaces #undef with comments. This is necessary, for
5133 # example, in the case of _POSIX_SOURCE, which is predefined and required
5134 # on some systems where configure will not decide to define it.
5135 cat >>conftest.undefs <<\EOF
5136 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
5139 # Break up conftest.defines because some shells have a limit on the size
5140 # of here documents, and old seds have small limits too (100 cmds).
5141 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
5142 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
5143 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
5144 echo ' :' >>$CONFIG_STATUS
5146 while grep . conftest.defines >/dev/null
5148 # Write a limited-size here document to $tmp/defines.sed.
5149 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
5150 # Speed up: don't consider the non `#define' lines.
5151 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
5152 # Work around the forget-to-reset-the-flag bug.
5153 echo 't clr' >>$CONFIG_STATUS
5154 echo ': clr' >>$CONFIG_STATUS
5155 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
5157 sed -f $tmp/defines.sed $tmp/in >$tmp/out
5161 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
5162 rm -f conftest.defines
5163 mv conftest.tail conftest.defines
5165 rm -f conftest.defines
5166 echo ' fi # egrep' >>$CONFIG_STATUS
5167 echo >>$CONFIG_STATUS
5169 # Break up conftest.undefs because some shells have a limit on the size
5170 # of here documents, and old seds have small limits too (100 cmds).
5171 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
5173 while grep . conftest.undefs >/dev/null
5175 # Write a limited-size here document to $tmp/undefs.sed.
5176 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
5177 # Speed up: don't consider the non `#undef'
5178 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
5179 # Work around the forget-to-reset-the-flag bug.
5180 echo 't clr' >>$CONFIG_STATUS
5181 echo ': clr' >>$CONFIG_STATUS
5182 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
5184 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
5188 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
5189 rm -f conftest.undefs
5190 mv conftest.tail conftest.undefs
5192 rm -f conftest.undefs
5194 cat >>$CONFIG_STATUS <<\EOF
5195 # Let's still pretend it is `configure' which instantiates (i.e., don't
5196 # use $as_me), people would be surprised to read:
5197 # /* config.h. Generated automatically by config.status. */
5198 if test x"$ac_file" = x-; then
5199 echo "/* Generated automatically by configure. */" >$tmp/config.h
5201 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
5203 cat $tmp/in >>$tmp/config.h
5205 if test x"$ac_file" != x-; then
5206 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
5207 { echo "$as_me:5207: $ac_file is unchanged" >&5
5208 echo "$as_me: $ac_file is unchanged" >&6;}
5210 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5211 X"$ac_file" : 'X\(//\)[^/]' \| \
5212 X"$ac_file" : 'X\(//\)$' \| \
5213 X"$ac_file" : 'X\(/\)' \| \
5214 . : '\(.\)' 2>/dev/null ||
5216 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5217 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5218 /^X\(\/\/\)$/{ s//\1/; q; }
5219 /^X\(\/\).*/{ s//\1/; q; }
5221 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5223 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
5227 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
5228 case $as_mkdir_dir in
5229 # Skip DOS drivespec
5230 ?:) as_incr_dir=$as_mkdir_dir ;;
5232 as_incr_dir=$as_incr_dir/$as_mkdir_dir
5233 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
5240 mv $tmp/config.h $ac_file
5249 cat >>$CONFIG_STATUS <<\EOF
5251 { (exit 0); exit 0; }
5253 chmod +x $CONFIG_STATUS
5254 ac_clean_files=$ac_clean_files_save
5256 # configure is writing to config.log, and then calls config.status.
5257 # config.status does its own redirection, appending to config.log.
5258 # Unfortunately, on DOS this fails, as config.log is still kept open
5259 # by configure, so config.status won't be able to write to it; its
5260 # output is simply discarded. So we exec the FD to /dev/null,
5261 # effectively closing config.log, so it can be properly (re)opened and
5262 # appended to by config.status. When coming back to configure, we
5263 # need to make the FD available again.
5264 if test "$no_create" != yes; then
5267 $SHELL $CONFIG_STATUS || ac_cs_success=false
5269 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5270 # would make configure fail if this is the last instruction.
5271 $ac_cs_success || { (exit 1); exit 1; }