2 # From configure.in Revision: 1.18 .
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-gzip Block gzip'ed transfer of documents. Note that
675 this is required if you want content modification
676 even with gzip-supporting servers.
677 --disable-force Don't allow blockfile to be bypassed
678 --disable-fast-redirects Don't support fast redirects
679 --disable-killpopup Never block popups
680 --disable-stats Don't keep statistics
681 --disable-ie-images Don't auto-detect whether a request from MS Internet
682 Explorer is for an image or HTML.
683 --disable-image-blocking Don't try to figure out whether a request is
684 for an image or HTML - assume HTML.
685 --disable-acl-files Prevents the use of ACL files to control access to
686 the proxy by IP address.
687 --disable-trust-files Prevents the use of trust files.
688 --disable-jar-files Prevents the use of jar files to capture cookies.
689 --enable-regex-matching=pcre Use perl-compatible regex for actionsfile
690 pattern matching (default)
691 --enable-regex-matching=gnu Use gnu style regex for actionsfile pattern
692 matching (-> bigger binary)
693 --disable-regex-matching Don't use regex matching, compare URL
694 prefix instead (won't shrink birary)
695 --disable-dynamic-pcre Use the built-in, static pcre, even if
697 --disable-dynamic-pcrs Use the built-in, static pcrs, even if
701 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
702 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
703 --with-debug Enable debug mode
705 Some influential environment variables:
706 CC C compiler command
707 CFLAGS C compiler flags
708 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
709 nonstandard directory <lib dir>
710 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
711 headers in a nonstandard directory <include dir>
714 Use these variables to override the choices made by `configure' or to help
715 it to find libraries and programs with nonstandard names/locations.
720 if test "$ac_init_help" = "recursive"; then
721 # If there are subdirs, report their specific --help.
723 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
725 # A "../" for each directory in /$ac_subdir.
726 ac_dots=`echo $ac_subdir |
727 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
730 .) # No --srcdir option. We are building in place.
731 ac_sub_srcdir=$srcdir ;;
732 [\\/]* | ?:[\\/]* ) # Absolute path.
733 ac_sub_srcdir=$srcdir/$ac_subdir ;;
735 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
738 # Check for guested configure; otherwise get Cygnus style configure.
739 if test -f $ac_sub_srcdir/configure.gnu; then
741 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
742 elif test -f $ac_sub_srcdir/configure; then
744 $SHELL $ac_sub_srcdir/configure --help=recursive
745 elif test -f $ac_sub_srcdir/configure.ac ||
746 test -f $ac_sub_srcdir/configure.in; then
750 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
756 test -n "$ac_init_help" && exit 0
757 if $ac_init_version; then
760 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
761 Free Software Foundation, Inc.
762 This configure script is free software; the Free Software Foundation
763 gives unlimited permission to copy, distribute and modify it.
769 This file contains any messages produced by compilers while
770 running configure, to aid debugging if configure makes a mistake.
772 It was created by $as_me, which was
773 generated by GNU Autoconf 2.52. Invocation command line was
784 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
785 uname -m = `(uname -m) 2>/dev/null || echo unknown`
786 uname -r = `(uname -r) 2>/dev/null || echo unknown`
787 uname -s = `(uname -s) 2>/dev/null || echo unknown`
788 uname -v = `(uname -v) 2>/dev/null || echo unknown`
790 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
791 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
793 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
794 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
795 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
796 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
797 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
798 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
799 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
813 # Keep a trace of the command line.
814 # Strip out --no-create and --no-recursion so they do not pile up.
815 # Also quote any args containing shell meta-characters.
821 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
822 | --no-cr | --no-c) ;;
823 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
824 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
825 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
826 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
827 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
829 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
832 # Get rid of the leading space.
835 # When interrupted or exit'd, cleanup temporary files, and complete
836 # config.log. We remove comments because anyway the quotes in there
837 # would cause problems or look ugly.
839 # Save into config.log some information that might help in debugging.
841 echo "## ----------------- ##" >&5
842 echo "## Cache variables. ##" >&5
843 echo "## ----------------- ##" >&5
845 # The following way of writing the cache mishandles newlines in values,
848 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
851 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
852 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
856 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
860 sed "/^$/d" confdefs.h >conftest.log
861 if test -s conftest.log; then
863 echo "## ------------ ##" >&5
864 echo "## confdefs.h. ##" >&5
865 echo "## ------------ ##" >&5
870 test "$ac_signal" != 0 &&
871 echo "$as_me: caught signal $ac_signal" >&5
872 echo "$as_me: exit $exit_status" >&5
873 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
876 for ac_signal in 1 2 13 15; do
877 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
881 # confdefs.h avoids OS command line length limits that DEFS can exceed.
882 rm -rf conftest* confdefs.h
883 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
886 # Let the site file select an alternate cache file if it wants to.
887 # Prefer explicitly selected file to automatically selected ones.
888 if test -z "$CONFIG_SITE"; then
889 if test "x$prefix" != xNONE; then
890 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
892 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
895 for ac_site_file in $CONFIG_SITE; do
896 if test -r "$ac_site_file"; then
897 { echo "$as_me:897: loading site script $ac_site_file" >&5
898 echo "$as_me: loading site script $ac_site_file" >&6;}
899 cat "$ac_site_file" >&5
904 if test -r "$cache_file"; then
905 # Some versions of bash will fail to source /dev/null (special
906 # files actually), so we avoid doing that.
907 if test -f "$cache_file"; then
908 { echo "$as_me:908: loading cache $cache_file" >&5
909 echo "$as_me: loading cache $cache_file" >&6;}
911 [\\/]* | ?:[\\/]* ) . $cache_file;;
916 { echo "$as_me:916: creating cache $cache_file" >&5
917 echo "$as_me: creating cache $cache_file" >&6;}
921 # Check that the precious variables saved in the cache have kept the same
923 ac_cache_corrupted=false
924 for ac_var in `(set) 2>&1 |
925 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
926 eval ac_old_set=\$ac_cv_env_${ac_var}_set
927 eval ac_new_set=\$ac_env_${ac_var}_set
928 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
929 eval ac_new_val="\$ac_env_${ac_var}_value"
930 case $ac_old_set,$ac_new_set in
932 { echo "$as_me:932: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
933 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
934 ac_cache_corrupted=: ;;
936 { echo "$as_me:936: error: \`$ac_var' was not set in the previous run" >&5
937 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
938 ac_cache_corrupted=: ;;
941 if test "x$ac_old_val" != "x$ac_new_val"; then
942 { echo "$as_me:942: error: \`$ac_var' has changed since the previous run:" >&5
943 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
944 { echo "$as_me:944: former value: $ac_old_val" >&5
945 echo "$as_me: former value: $ac_old_val" >&2;}
946 { echo "$as_me:946: current value: $ac_new_val" >&5
947 echo "$as_me: current value: $ac_new_val" >&2;}
951 # Pass precious variables to config.status. It doesn't matter if
952 # we pass some twice (in addition to the command line arguments).
953 if test "$ac_new_set" = set; then
955 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
956 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
957 ac_configure_args="$ac_configure_args '$ac_arg'"
959 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
964 if $ac_cache_corrupted; then
965 { echo "$as_me:965: error: changes in the environment can compromise the build" >&5
966 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
967 { { echo "$as_me:967: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
968 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
969 { (exit 1); exit 1; }; }
973 ac_cpp='$CPP $CPPFLAGS'
974 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
975 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
976 ac_compiler_gnu=$ac_cv_c_compiler_gnu
978 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
979 *c*,-n*) ECHO_N= ECHO_C='
981 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
982 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
984 echo "#! $SHELL" >conftest.sh
985 echo "exit 0" >>conftest.sh
987 if { (echo "$as_me:987: PATH=\".;.\"; conftest.sh") >&5
988 (PATH=".;."; conftest.sh) 2>&5
990 echo "$as_me:990: \$? = $ac_status" >&5
991 (exit $ac_status); }; then
992 ac_path_separator=';'
996 PATH_SEPARATOR="$ac_path_separator"
999 ac_config_headers="$ac_config_headers config.h"
1002 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1003 if test -f $ac_dir/install-sh; then
1005 ac_install_sh="$ac_aux_dir/install-sh -c"
1007 elif test -f $ac_dir/install.sh; then
1009 ac_install_sh="$ac_aux_dir/install.sh -c"
1011 elif test -f $ac_dir/shtool; then
1013 ac_install_sh="$ac_aux_dir/shtool install -c"
1017 if test -z "$ac_aux_dir"; then
1018 { { echo "$as_me:1018: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1019 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1020 { (exit 1); exit 1; }; }
1022 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1023 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1024 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1026 # Make sure we can run config.sub.
1027 $ac_config_sub sun4 >/dev/null 2>&1 ||
1028 { { echo "$as_me:1028: error: cannot run $ac_config_sub" >&5
1029 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1030 { (exit 1); exit 1; }; }
1032 echo "$as_me:1032: checking build system type" >&5
1033 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1034 if test "${ac_cv_build+set}" = set; then
1035 echo $ECHO_N "(cached) $ECHO_C" >&6
1037 ac_cv_build_alias=$build_alias
1038 test -z "$ac_cv_build_alias" &&
1039 ac_cv_build_alias=`$ac_config_guess`
1040 test -z "$ac_cv_build_alias" &&
1041 { { echo "$as_me:1041: error: cannot guess build type; you must specify one" >&5
1042 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1043 { (exit 1); exit 1; }; }
1044 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1045 { { echo "$as_me:1045: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1046 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1047 { (exit 1); exit 1; }; }
1050 echo "$as_me:1050: result: $ac_cv_build" >&5
1051 echo "${ECHO_T}$ac_cv_build" >&6
1053 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1054 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1055 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1057 echo "$as_me:1057: checking host system type" >&5
1058 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1059 if test "${ac_cv_host+set}" = set; then
1060 echo $ECHO_N "(cached) $ECHO_C" >&6
1062 ac_cv_host_alias=$host_alias
1063 test -z "$ac_cv_host_alias" &&
1064 ac_cv_host_alias=$ac_cv_build_alias
1065 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1066 { { echo "$as_me:1066: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1067 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1068 { (exit 1); exit 1; }; }
1071 echo "$as_me:1071: result: $ac_cv_host" >&5
1072 echo "${ECHO_T}$ac_cv_host" >&6
1074 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1075 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1076 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1081 CODE_STATUS="\"alpha\""
1083 cat >>confdefs.h <<EOF
1084 #define VERSION_MAJOR ${VERSION_MAJOR}
1087 cat >>confdefs.h <<EOF
1088 #define VERSION_MINOR ${VERSION_MINOR}
1091 cat >>confdefs.h <<EOF
1092 #define VERSION_POINT ${VERSION_POINT}
1095 cat >>confdefs.h <<EOF
1096 #define VERSION "${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_POINT}"
1099 cat >>confdefs.h <<EOF
1100 #define CODE_STATUS ${CODE_STATUS}
1104 ac_cpp='$CPP $CPPFLAGS'
1105 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1106 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1107 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1108 if test -n "$ac_tool_prefix"; then
1109 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1110 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1111 echo "$as_me:1111: checking for $ac_word" >&5
1112 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1113 if test "${ac_cv_prog_CC+set}" = set; then
1114 echo $ECHO_N "(cached) $ECHO_C" >&6
1116 if test -n "$CC"; then
1117 ac_cv_prog_CC="$CC" # Let the user override the test.
1119 ac_save_IFS=$IFS; IFS=$ac_path_separator
1121 for ac_dir in $ac_dummy; do
1123 test -z "$ac_dir" && ac_dir=.
1124 $as_executable_p "$ac_dir/$ac_word" || continue
1125 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1126 echo "$as_me:1126: found $ac_dir/$ac_word" >&5
1133 if test -n "$CC"; then
1134 echo "$as_me:1134: result: $CC" >&5
1135 echo "${ECHO_T}$CC" >&6
1137 echo "$as_me:1137: result: no" >&5
1138 echo "${ECHO_T}no" >&6
1142 if test -z "$ac_cv_prog_CC"; then
1144 # Extract the first word of "gcc", so it can be a program name with args.
1145 set dummy gcc; ac_word=$2
1146 echo "$as_me:1146: checking for $ac_word" >&5
1147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1148 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1149 echo $ECHO_N "(cached) $ECHO_C" >&6
1151 if test -n "$ac_ct_CC"; then
1152 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1154 ac_save_IFS=$IFS; IFS=$ac_path_separator
1156 for ac_dir in $ac_dummy; do
1158 test -z "$ac_dir" && ac_dir=.
1159 $as_executable_p "$ac_dir/$ac_word" || continue
1160 ac_cv_prog_ac_ct_CC="gcc"
1161 echo "$as_me:1161: found $ac_dir/$ac_word" >&5
1167 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1168 if test -n "$ac_ct_CC"; then
1169 echo "$as_me:1169: result: $ac_ct_CC" >&5
1170 echo "${ECHO_T}$ac_ct_CC" >&6
1172 echo "$as_me:1172: result: no" >&5
1173 echo "${ECHO_T}no" >&6
1181 if test -z "$CC"; then
1182 if test -n "$ac_tool_prefix"; then
1183 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1184 set dummy ${ac_tool_prefix}cc; ac_word=$2
1185 echo "$as_me:1185: checking for $ac_word" >&5
1186 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1187 if test "${ac_cv_prog_CC+set}" = set; then
1188 echo $ECHO_N "(cached) $ECHO_C" >&6
1190 if test -n "$CC"; then
1191 ac_cv_prog_CC="$CC" # Let the user override the test.
1193 ac_save_IFS=$IFS; IFS=$ac_path_separator
1195 for ac_dir in $ac_dummy; do
1197 test -z "$ac_dir" && ac_dir=.
1198 $as_executable_p "$ac_dir/$ac_word" || continue
1199 ac_cv_prog_CC="${ac_tool_prefix}cc"
1200 echo "$as_me:1200: found $ac_dir/$ac_word" >&5
1207 if test -n "$CC"; then
1208 echo "$as_me:1208: result: $CC" >&5
1209 echo "${ECHO_T}$CC" >&6
1211 echo "$as_me:1211: result: no" >&5
1212 echo "${ECHO_T}no" >&6
1216 if test -z "$ac_cv_prog_CC"; then
1218 # Extract the first word of "cc", so it can be a program name with args.
1219 set dummy cc; ac_word=$2
1220 echo "$as_me:1220: checking for $ac_word" >&5
1221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1222 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1223 echo $ECHO_N "(cached) $ECHO_C" >&6
1225 if test -n "$ac_ct_CC"; then
1226 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1228 ac_save_IFS=$IFS; IFS=$ac_path_separator
1230 for ac_dir in $ac_dummy; do
1232 test -z "$ac_dir" && ac_dir=.
1233 $as_executable_p "$ac_dir/$ac_word" || continue
1234 ac_cv_prog_ac_ct_CC="cc"
1235 echo "$as_me:1235: found $ac_dir/$ac_word" >&5
1241 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1242 if test -n "$ac_ct_CC"; then
1243 echo "$as_me:1243: result: $ac_ct_CC" >&5
1244 echo "${ECHO_T}$ac_ct_CC" >&6
1246 echo "$as_me:1246: result: no" >&5
1247 echo "${ECHO_T}no" >&6
1256 if test -z "$CC"; then
1257 # Extract the first word of "cc", so it can be a program name with args.
1258 set dummy cc; ac_word=$2
1259 echo "$as_me:1259: checking for $ac_word" >&5
1260 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1261 if test "${ac_cv_prog_CC+set}" = set; then
1262 echo $ECHO_N "(cached) $ECHO_C" >&6
1264 if test -n "$CC"; then
1265 ac_cv_prog_CC="$CC" # Let the user override the test.
1268 ac_save_IFS=$IFS; IFS=$ac_path_separator
1270 for ac_dir in $ac_dummy; do
1272 test -z "$ac_dir" && ac_dir=.
1273 $as_executable_p "$ac_dir/$ac_word" || continue
1274 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1275 ac_prog_rejected=yes
1279 echo "$as_me:1279: found $ac_dir/$ac_word" >&5
1283 if test $ac_prog_rejected = yes; then
1284 # We found a bogon in the path, so make sure we never use it.
1285 set dummy $ac_cv_prog_CC
1287 if test $# != 0; then
1288 # We chose a different compiler from the bogus one.
1289 # However, it has the same basename, so the bogon will be chosen
1290 # first if we set CC to just the basename; use the full file name.
1292 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1300 if test -n "$CC"; then
1301 echo "$as_me:1301: result: $CC" >&5
1302 echo "${ECHO_T}$CC" >&6
1304 echo "$as_me:1304: result: no" >&5
1305 echo "${ECHO_T}no" >&6
1309 if test -z "$CC"; then
1310 if test -n "$ac_tool_prefix"; then
1313 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1314 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1315 echo "$as_me:1315: checking for $ac_word" >&5
1316 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1317 if test "${ac_cv_prog_CC+set}" = set; then
1318 echo $ECHO_N "(cached) $ECHO_C" >&6
1320 if test -n "$CC"; then
1321 ac_cv_prog_CC="$CC" # Let the user override the test.
1323 ac_save_IFS=$IFS; IFS=$ac_path_separator
1325 for ac_dir in $ac_dummy; do
1327 test -z "$ac_dir" && ac_dir=.
1328 $as_executable_p "$ac_dir/$ac_word" || continue
1329 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1330 echo "$as_me:1330: found $ac_dir/$ac_word" >&5
1337 if test -n "$CC"; then
1338 echo "$as_me:1338: result: $CC" >&5
1339 echo "${ECHO_T}$CC" >&6
1341 echo "$as_me:1341: result: no" >&5
1342 echo "${ECHO_T}no" >&6
1345 test -n "$CC" && break
1348 if test -z "$CC"; then
1352 # Extract the first word of "$ac_prog", so it can be a program name with args.
1353 set dummy $ac_prog; ac_word=$2
1354 echo "$as_me:1354: checking for $ac_word" >&5
1355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1356 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1357 echo $ECHO_N "(cached) $ECHO_C" >&6
1359 if test -n "$ac_ct_CC"; then
1360 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1362 ac_save_IFS=$IFS; IFS=$ac_path_separator
1364 for ac_dir in $ac_dummy; do
1366 test -z "$ac_dir" && ac_dir=.
1367 $as_executable_p "$ac_dir/$ac_word" || continue
1368 ac_cv_prog_ac_ct_CC="$ac_prog"
1369 echo "$as_me:1369: found $ac_dir/$ac_word" >&5
1375 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1376 if test -n "$ac_ct_CC"; then
1377 echo "$as_me:1377: result: $ac_ct_CC" >&5
1378 echo "${ECHO_T}$ac_ct_CC" >&6
1380 echo "$as_me:1380: result: no" >&5
1381 echo "${ECHO_T}no" >&6
1384 test -n "$ac_ct_CC" && break
1392 test -z "$CC" && { { echo "$as_me:1392: error: no acceptable cc found in \$PATH" >&5
1393 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1394 { (exit 1); exit 1; }; }
1396 # Provide some information about the compiler.
1397 echo "$as_me:1397:" \
1398 "checking for C compiler version" >&5
1399 ac_compiler=`set X $ac_compile; echo $2`
1400 { (eval echo "$as_me:1400: \"$ac_compiler --version </dev/null >&5\"") >&5
1401 (eval $ac_compiler --version </dev/null >&5) 2>&5
1403 echo "$as_me:1403: \$? = $ac_status" >&5
1404 (exit $ac_status); }
1405 { (eval echo "$as_me:1405: \"$ac_compiler -v </dev/null >&5\"") >&5
1406 (eval $ac_compiler -v </dev/null >&5) 2>&5
1408 echo "$as_me:1408: \$? = $ac_status" >&5
1409 (exit $ac_status); }
1410 { (eval echo "$as_me:1410: \"$ac_compiler -V </dev/null >&5\"") >&5
1411 (eval $ac_compiler -V </dev/null >&5) 2>&5
1413 echo "$as_me:1413: \$? = $ac_status" >&5
1414 (exit $ac_status); }
1416 cat >conftest.$ac_ext <<_ACEOF
1417 #line 1417 "configure"
1418 #include "confdefs.h"
1428 ac_clean_files_save=$ac_clean_files
1429 ac_clean_files="$ac_clean_files a.out a.exe"
1430 # Try to create an executable without -o first, disregard a.out.
1431 # It will help us diagnose broken compilers, and finding out an intuition
1433 echo "$as_me:1433: checking for C compiler default output" >&5
1434 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1435 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1436 if { (eval echo "$as_me:1436: \"$ac_link_default\"") >&5
1437 (eval $ac_link_default) 2>&5
1439 echo "$as_me:1439: \$? = $ac_status" >&5
1440 (exit $ac_status); }; then
1441 # Find the output, starting from the most likely. This scheme is
1442 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1444 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1445 ls a.out conftest 2>/dev/null;
1446 ls a.* conftest.* 2>/dev/null`; do
1448 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1449 a.out ) # We found the default executable, but exeext='' is most
1452 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1453 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1460 echo "$as_me: failed program was:" >&5
1461 cat conftest.$ac_ext >&5
1462 { { echo "$as_me:1462: error: C compiler cannot create executables" >&5
1463 echo "$as_me: error: C compiler cannot create executables" >&2;}
1464 { (exit 77); exit 77; }; }
1467 ac_exeext=$ac_cv_exeext
1468 echo "$as_me:1468: result: $ac_file" >&5
1469 echo "${ECHO_T}$ac_file" >&6
1471 # Check the compiler produces executables we can run. If not, either
1472 # the compiler is broken, or we cross compile.
1473 echo "$as_me:1473: checking whether the C compiler works" >&5
1474 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1475 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1476 # If not cross compiling, check that we can run a simple program.
1477 if test "$cross_compiling" != yes; then
1478 if { ac_try='./$ac_file'
1479 { (eval echo "$as_me:1479: \"$ac_try\"") >&5
1482 echo "$as_me:1482: \$? = $ac_status" >&5
1483 (exit $ac_status); }; }; then
1486 if test "$cross_compiling" = maybe; then
1489 { { echo "$as_me:1489: error: cannot run C compiled programs.
1490 If you meant to cross compile, use \`--host'." >&5
1491 echo "$as_me: error: cannot run C compiled programs.
1492 If you meant to cross compile, use \`--host'." >&2;}
1493 { (exit 1); exit 1; }; }
1497 echo "$as_me:1497: result: yes" >&5
1498 echo "${ECHO_T}yes" >&6
1500 rm -f a.out a.exe conftest$ac_cv_exeext
1501 ac_clean_files=$ac_clean_files_save
1502 # Check the compiler produces executables we can run. If not, either
1503 # the compiler is broken, or we cross compile.
1504 echo "$as_me:1504: checking whether we are cross compiling" >&5
1505 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1506 echo "$as_me:1506: result: $cross_compiling" >&5
1507 echo "${ECHO_T}$cross_compiling" >&6
1509 echo "$as_me:1509: checking for executable suffix" >&5
1510 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1511 if { (eval echo "$as_me:1511: \"$ac_link\"") >&5
1512 (eval $ac_link) 2>&5
1514 echo "$as_me:1514: \$? = $ac_status" >&5
1515 (exit $ac_status); }; then
1516 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1517 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1518 # work properly (i.e., refer to `conftest.exe'), while it won't with
1520 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1522 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1523 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1530 { { echo "$as_me:1530: error: cannot compute EXEEXT: cannot compile and link" >&5
1531 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1532 { (exit 1); exit 1; }; }
1535 rm -f conftest$ac_cv_exeext
1536 echo "$as_me:1536: result: $ac_cv_exeext" >&5
1537 echo "${ECHO_T}$ac_cv_exeext" >&6
1539 rm -f conftest.$ac_ext
1540 EXEEXT=$ac_cv_exeext
1542 echo "$as_me:1542: checking for object suffix" >&5
1543 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1544 if test "${ac_cv_objext+set}" = set; then
1545 echo $ECHO_N "(cached) $ECHO_C" >&6
1547 cat >conftest.$ac_ext <<_ACEOF
1548 #line 1548 "configure"
1549 #include "confdefs.h"
1559 rm -f conftest.o conftest.obj
1560 if { (eval echo "$as_me:1560: \"$ac_compile\"") >&5
1561 (eval $ac_compile) 2>&5
1563 echo "$as_me:1563: \$? = $ac_status" >&5
1564 (exit $ac_status); }; then
1565 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1567 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1568 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1573 echo "$as_me: failed program was:" >&5
1574 cat conftest.$ac_ext >&5
1575 { { echo "$as_me:1575: error: cannot compute OBJEXT: cannot compile" >&5
1576 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1577 { (exit 1); exit 1; }; }
1580 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1582 echo "$as_me:1582: result: $ac_cv_objext" >&5
1583 echo "${ECHO_T}$ac_cv_objext" >&6
1584 OBJEXT=$ac_cv_objext
1586 echo "$as_me:1586: checking whether we are using the GNU C compiler" >&5
1587 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1588 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1589 echo $ECHO_N "(cached) $ECHO_C" >&6
1591 cat >conftest.$ac_ext <<_ACEOF
1592 #line 1592 "configure"
1593 #include "confdefs.h"
1606 rm -f conftest.$ac_objext
1607 if { (eval echo "$as_me:1607: \"$ac_compile\"") >&5
1608 (eval $ac_compile) 2>&5
1610 echo "$as_me:1610: \$? = $ac_status" >&5
1611 (exit $ac_status); } &&
1612 { ac_try='test -s conftest.$ac_objext'
1613 { (eval echo "$as_me:1613: \"$ac_try\"") >&5
1616 echo "$as_me:1616: \$? = $ac_status" >&5
1617 (exit $ac_status); }; }; then
1620 echo "$as_me: failed program was:" >&5
1621 cat conftest.$ac_ext >&5
1624 rm -f conftest.$ac_objext conftest.$ac_ext
1625 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1628 echo "$as_me:1628: result: $ac_cv_c_compiler_gnu" >&5
1629 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1630 GCC=`test $ac_compiler_gnu = yes && echo yes`
1631 ac_test_CFLAGS=${CFLAGS+set}
1632 ac_save_CFLAGS=$CFLAGS
1634 echo "$as_me:1634: checking whether $CC accepts -g" >&5
1635 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1636 if test "${ac_cv_prog_cc_g+set}" = set; then
1637 echo $ECHO_N "(cached) $ECHO_C" >&6
1639 cat >conftest.$ac_ext <<_ACEOF
1640 #line 1640 "configure"
1641 #include "confdefs.h"
1651 rm -f conftest.$ac_objext
1652 if { (eval echo "$as_me:1652: \"$ac_compile\"") >&5
1653 (eval $ac_compile) 2>&5
1655 echo "$as_me:1655: \$? = $ac_status" >&5
1656 (exit $ac_status); } &&
1657 { ac_try='test -s conftest.$ac_objext'
1658 { (eval echo "$as_me:1658: \"$ac_try\"") >&5
1661 echo "$as_me:1661: \$? = $ac_status" >&5
1662 (exit $ac_status); }; }; then
1665 echo "$as_me: failed program was:" >&5
1666 cat conftest.$ac_ext >&5
1669 rm -f conftest.$ac_objext conftest.$ac_ext
1671 echo "$as_me:1671: result: $ac_cv_prog_cc_g" >&5
1672 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1673 if test "$ac_test_CFLAGS" = set; then
1674 CFLAGS=$ac_save_CFLAGS
1675 elif test $ac_cv_prog_cc_g = yes; then
1676 if test "$GCC" = yes; then
1682 if test "$GCC" = yes; then
1688 # Some people use a C++ compiler to compile C. Since we use `exit',
1689 # in C++ we need to declare it. In case someone uses the same compiler
1690 # for both compiling C and C++ we need to have the C++ compiler decide
1691 # the declaration of exit, since it's the most demanding environment.
1692 cat >conftest.$ac_ext <<_ACEOF
1697 rm -f conftest.$ac_objext
1698 if { (eval echo "$as_me:1698: \"$ac_compile\"") >&5
1699 (eval $ac_compile) 2>&5
1701 echo "$as_me:1701: \$? = $ac_status" >&5
1702 (exit $ac_status); } &&
1703 { ac_try='test -s conftest.$ac_objext'
1704 { (eval echo "$as_me:1704: \"$ac_try\"") >&5
1707 echo "$as_me:1707: \$? = $ac_status" >&5
1708 (exit $ac_status); }; }; then
1709 for ac_declaration in \
1711 '#include <stdlib.h>' \
1712 'extern "C" void std::exit (int) throw (); using std::exit;' \
1713 'extern "C" void std::exit (int); using std::exit;' \
1714 'extern "C" void exit (int) throw ();' \
1715 'extern "C" void exit (int);' \
1718 cat >conftest.$ac_ext <<_ACEOF
1719 #line 1719 "configure"
1720 #include "confdefs.h"
1731 rm -f conftest.$ac_objext
1732 if { (eval echo "$as_me:1732: \"$ac_compile\"") >&5
1733 (eval $ac_compile) 2>&5
1735 echo "$as_me:1735: \$? = $ac_status" >&5
1736 (exit $ac_status); } &&
1737 { ac_try='test -s conftest.$ac_objext'
1738 { (eval echo "$as_me:1738: \"$ac_try\"") >&5
1741 echo "$as_me:1741: \$? = $ac_status" >&5
1742 (exit $ac_status); }; }; then
1745 echo "$as_me: failed program was:" >&5
1746 cat conftest.$ac_ext >&5
1749 rm -f conftest.$ac_objext conftest.$ac_ext
1750 cat >conftest.$ac_ext <<_ACEOF
1751 #line 1751 "configure"
1752 #include "confdefs.h"
1762 rm -f conftest.$ac_objext
1763 if { (eval echo "$as_me:1763: \"$ac_compile\"") >&5
1764 (eval $ac_compile) 2>&5
1766 echo "$as_me:1766: \$? = $ac_status" >&5
1767 (exit $ac_status); } &&
1768 { ac_try='test -s conftest.$ac_objext'
1769 { (eval echo "$as_me:1769: \"$ac_try\"") >&5
1772 echo "$as_me:1772: \$? = $ac_status" >&5
1773 (exit $ac_status); }; }; then
1776 echo "$as_me: failed program was:" >&5
1777 cat conftest.$ac_ext >&5
1779 rm -f conftest.$ac_objext conftest.$ac_ext
1782 if test -n "$ac_declaration"; then
1783 echo '#ifdef __cplusplus' >>confdefs.h
1784 echo $ac_declaration >>confdefs.h
1785 echo '#endif' >>confdefs.h
1789 echo "$as_me: failed program was:" >&5
1790 cat conftest.$ac_ext >&5
1792 rm -f conftest.$ac_objext conftest.$ac_ext
1794 ac_cpp='$CPP $CPPFLAGS'
1795 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1796 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1797 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1800 ac_cpp='$CPP $CPPFLAGS'
1801 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1802 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1803 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1804 echo "$as_me:1804: checking how to run the C preprocessor" >&5
1805 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
1806 # On Suns, sometimes $CPP names a directory.
1807 if test -n "$CPP" && test -d "$CPP"; then
1810 if test -z "$CPP"; then
1811 if test "${ac_cv_prog_CPP+set}" = set; then
1812 echo $ECHO_N "(cached) $ECHO_C" >&6
1814 # Double quotes because CPP needs to be expanded
1815 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
1818 for ac_c_preproc_warn_flag in '' yes
1820 # Use a header file that comes with gcc, so configuring glibc
1821 # with a fresh cross-compiler works.
1822 # On the NeXT, cc -E runs the code through the compiler's parser,
1823 # not just through cpp. "Syntax error" is here to catch this case.
1824 cat >conftest.$ac_ext <<_ACEOF
1825 #line 1825 "configure"
1826 #include "confdefs.h"
1830 if { (eval echo "$as_me:1830: \"$ac_cpp conftest.$ac_ext\"") >&5
1831 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1833 egrep -v '^ *\+' conftest.er1 >conftest.err
1835 cat conftest.err >&5
1836 echo "$as_me:1836: \$? = $ac_status" >&5
1837 (exit $ac_status); } >/dev/null; then
1838 if test -s conftest.err; then
1839 ac_cpp_err=$ac_c_preproc_warn_flag
1846 if test -z "$ac_cpp_err"; then
1849 echo "$as_me: failed program was:" >&5
1850 cat conftest.$ac_ext >&5
1851 # Broken: fails on valid input.
1854 rm -f conftest.err conftest.$ac_ext
1856 # OK, works on sane cases. Now check whether non-existent headers
1857 # can be detected and how.
1858 cat >conftest.$ac_ext <<_ACEOF
1859 #line 1859 "configure"
1860 #include "confdefs.h"
1861 #include <ac_nonexistent.h>
1863 if { (eval echo "$as_me:1863: \"$ac_cpp conftest.$ac_ext\"") >&5
1864 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1866 egrep -v '^ *\+' conftest.er1 >conftest.err
1868 cat conftest.err >&5
1869 echo "$as_me:1869: \$? = $ac_status" >&5
1870 (exit $ac_status); } >/dev/null; then
1871 if test -s conftest.err; then
1872 ac_cpp_err=$ac_c_preproc_warn_flag
1879 if test -z "$ac_cpp_err"; then
1880 # Broken: success on invalid input.
1883 echo "$as_me: failed program was:" >&5
1884 cat conftest.$ac_ext >&5
1885 # Passes both tests.
1889 rm -f conftest.err conftest.$ac_ext
1892 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1893 rm -f conftest.err conftest.$ac_ext
1894 if $ac_preproc_ok; then
1906 echo "$as_me:1906: result: $CPP" >&5
1907 echo "${ECHO_T}$CPP" >&6
1909 for ac_c_preproc_warn_flag in '' yes
1911 # Use a header file that comes with gcc, so configuring glibc
1912 # with a fresh cross-compiler works.
1913 # On the NeXT, cc -E runs the code through the compiler's parser,
1914 # not just through cpp. "Syntax error" is here to catch this case.
1915 cat >conftest.$ac_ext <<_ACEOF
1916 #line 1916 "configure"
1917 #include "confdefs.h"
1921 if { (eval echo "$as_me:1921: \"$ac_cpp conftest.$ac_ext\"") >&5
1922 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1924 egrep -v '^ *\+' conftest.er1 >conftest.err
1926 cat conftest.err >&5
1927 echo "$as_me:1927: \$? = $ac_status" >&5
1928 (exit $ac_status); } >/dev/null; then
1929 if test -s conftest.err; then
1930 ac_cpp_err=$ac_c_preproc_warn_flag
1937 if test -z "$ac_cpp_err"; then
1940 echo "$as_me: failed program was:" >&5
1941 cat conftest.$ac_ext >&5
1942 # Broken: fails on valid input.
1945 rm -f conftest.err conftest.$ac_ext
1947 # OK, works on sane cases. Now check whether non-existent headers
1948 # can be detected and how.
1949 cat >conftest.$ac_ext <<_ACEOF
1950 #line 1950 "configure"
1951 #include "confdefs.h"
1952 #include <ac_nonexistent.h>
1954 if { (eval echo "$as_me:1954: \"$ac_cpp conftest.$ac_ext\"") >&5
1955 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1957 egrep -v '^ *\+' conftest.er1 >conftest.err
1959 cat conftest.err >&5
1960 echo "$as_me:1960: \$? = $ac_status" >&5
1961 (exit $ac_status); } >/dev/null; then
1962 if test -s conftest.err; then
1963 ac_cpp_err=$ac_c_preproc_warn_flag
1970 if test -z "$ac_cpp_err"; then
1971 # Broken: success on invalid input.
1974 echo "$as_me: failed program was:" >&5
1975 cat conftest.$ac_ext >&5
1976 # Passes both tests.
1980 rm -f conftest.err conftest.$ac_ext
1983 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1984 rm -f conftest.err conftest.$ac_ext
1985 if $ac_preproc_ok; then
1988 { { echo "$as_me:1988: error: C preprocessor \"$CPP\" fails sanity check" >&5
1989 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
1990 { (exit 1); exit 1; }; }
1994 ac_cpp='$CPP $CPPFLAGS'
1995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1999 # Extract the first word of "gdb", so it can be a program name with args.
2000 set dummy gdb; ac_word=$2
2001 echo "$as_me:2001: checking for $ac_word" >&5
2002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2003 if test "${ac_cv_prog_GDB+set}" = set; then
2004 echo $ECHO_N "(cached) $ECHO_C" >&6
2006 if test -n "$GDB"; then
2007 ac_cv_prog_GDB="$GDB" # Let the user override the test.
2009 ac_save_IFS=$IFS; IFS=$ac_path_separator
2011 for ac_dir in $ac_dummy; do
2013 test -z "$ac_dir" && ac_dir=.
2014 $as_executable_p "$ac_dir/$ac_word" || continue
2015 ac_cv_prog_GDB="yes"
2016 echo "$as_me:2016: found $ac_dir/$ac_word" >&5
2020 test -z "$ac_cv_prog_GDB" && ac_cv_prog_GDB="no"
2024 if test -n "$GDB"; then
2025 echo "$as_me:2025: result: $GDB" >&5
2026 echo "${ECHO_T}$GDB" >&6
2028 echo "$as_me:2028: result: no" >&5
2029 echo "${ECHO_T}no" >&6
2032 # Check whether --with-debug or --without-debug was given.
2033 if test "${with_debug+set}" = set; then
2034 withval="$with_debug"
2036 if test "x$withval" != "$xno" ; then
2037 if test $ac_cv_prog_cc_g = yes; then
2038 if test "$GCC" = yes; then
2039 if test "$GDB"; then
2044 CFLAGS="$CFLAGS -Wshadow -Wconversion"
2049 CFLAGS="$CFLAGS -D_DEBUG"
2054 if test "$GCC" = yes; then
2062 if test "$GCC"; then
2063 CFLAGS="-pipe $CFLAGS"
2067 *mingw32* ) MINGW32=yes;;
2072 *cygwin* ) CYGWIN=yes;;
2076 if test "$MINGW32" = "yes"; then
2079 if test "$CYGWIN" = "yes"; then
2086 # Check whether --enable-mingw32 or --disable-mingw32 was given.
2087 if test "${enable_mingw32+set}" = set; then
2088 enableval="$enable_mingw32"
2089 if test $enableval = yes; then
2094 if test $target_type = mingw; then
2096 SPECIAL_CFLAGS="-mwindows -mno-cygwin"
2097 PTHREAD_LIB=-lpthreadGC
2098 echo "Using mingw32 (Win32 GUI)"
2101 if test $target_type = cygwin; then
2102 SPECIAL_CFLAGS="-mno-win32"
2104 echo "Using Cygnus (Win32 command line)"
2107 PTHREAD_LIB=-lpthread
2111 old_CFLAGS_nospecial=$CFLAGS
2112 CFLAGS="$CFLAGS $SPECIAL_CFLAGS"
2114 # Hack to force AutoConf to use the CFLAGS we just set
2115 ac_cpp='$CPP $CPPFLAGS $SPECIAL_CFLAGS'
2116 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2117 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2119 echo "$as_me:2119: checking for pthread.h" >&5
2120 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
2121 if test "${ac_cv_header_pthread_h+set}" = set; then
2122 echo $ECHO_N "(cached) $ECHO_C" >&6
2124 cat >conftest.$ac_ext <<_ACEOF
2125 #line 2125 "configure"
2126 #include "confdefs.h"
2127 #include <pthread.h>
2129 if { (eval echo "$as_me:2129: \"$ac_cpp conftest.$ac_ext\"") >&5
2130 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2132 egrep -v '^ *\+' conftest.er1 >conftest.err
2134 cat conftest.err >&5
2135 echo "$as_me:2135: \$? = $ac_status" >&5
2136 (exit $ac_status); } >/dev/null; then
2137 if test -s conftest.err; then
2138 ac_cpp_err=$ac_c_preproc_warn_flag
2145 if test -z "$ac_cpp_err"; then
2146 ac_cv_header_pthread_h=yes
2148 echo "$as_me: failed program was:" >&5
2149 cat conftest.$ac_ext >&5
2150 ac_cv_header_pthread_h=no
2152 rm -f conftest.err conftest.$ac_ext
2154 echo "$as_me:2154: result: $ac_cv_header_pthread_h" >&5
2155 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
2156 if test $ac_cv_header_pthread_h = yes; then
2162 # Check whether --enable-pthread or --disable-pthread was given.
2163 if test "${enable_pthread+set}" = set; then
2164 enableval="$enable_pthread"
2165 if test $enableval = no; then
2171 if test $have_pthread = yes; then
2173 cat >>confdefs.h <<\EOF
2174 #define FEATURE_PTHREAD 1
2177 echo Using POSIX threads
2178 if test "$GCC" = "yes"; then
2179 # Set a GCC specific switch:
2180 if test "$target_type" = "unix"; then
2181 # This compiler switch makes Linux thread-safe
2182 # Don't know about other OS's? Is this switch
2185 SPECIAL_CFLAGS="-pthread"
2190 echo Using native threads
2196 *-solaris*) SOCKET_LIB="-lsocket -lnsl"
2197 cat >>confdefs.h <<\EOF
2198 #define __EXTENSIONS__ 1
2201 if test "$GCC" = "yes"; then
2202 # Set a GCC specific switch:
2203 # This compiler switch makes Solaris thread-safe
2205 SPECIAL_CFLAGS="-pthreads"
2207 # What do we do without GCC? Guess this:
2208 SPECIAL_CFLAGS="-D_REENTRANT"
2214 *-os2-emx*) SOCKET_LIB=-lsocket
2221 *-amigaos) AMIGAOS_ONLY=
2225 echo "$as_me:2225: checking for ANSI C header files" >&5
2226 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2227 if test "${ac_cv_header_stdc+set}" = set; then
2228 echo $ECHO_N "(cached) $ECHO_C" >&6
2230 cat >conftest.$ac_ext <<_ACEOF
2231 #line 2231 "configure"
2232 #include "confdefs.h"
2239 if { (eval echo "$as_me:2239: \"$ac_cpp conftest.$ac_ext\"") >&5
2240 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2242 egrep -v '^ *\+' conftest.er1 >conftest.err
2244 cat conftest.err >&5
2245 echo "$as_me:2245: \$? = $ac_status" >&5
2246 (exit $ac_status); } >/dev/null; then
2247 if test -s conftest.err; then
2248 ac_cpp_err=$ac_c_preproc_warn_flag
2255 if test -z "$ac_cpp_err"; then
2256 ac_cv_header_stdc=yes
2258 echo "$as_me: failed program was:" >&5
2259 cat conftest.$ac_ext >&5
2260 ac_cv_header_stdc=no
2262 rm -f conftest.err conftest.$ac_ext
2264 if test $ac_cv_header_stdc = yes; then
2265 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2266 cat >conftest.$ac_ext <<_ACEOF
2267 #line 2267 "configure"
2268 #include "confdefs.h"
2272 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2273 egrep "memchr" >/dev/null 2>&1; then
2276 ac_cv_header_stdc=no
2282 if test $ac_cv_header_stdc = yes; then
2283 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2284 cat >conftest.$ac_ext <<_ACEOF
2285 #line 2285 "configure"
2286 #include "confdefs.h"
2290 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2291 egrep "free" >/dev/null 2>&1; then
2294 ac_cv_header_stdc=no
2300 if test $ac_cv_header_stdc = yes; then
2301 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2302 if test "$cross_compiling" = yes; then
2305 cat >conftest.$ac_ext <<_ACEOF
2306 #line 2306 "configure"
2307 #include "confdefs.h"
2309 #if ((' ' & 0x0FF) == 0x020)
2310 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2311 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2313 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
2314 || ('j' <= (c) && (c) <= 'r') \
2315 || ('s' <= (c) && (c) <= 'z'))
2316 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2319 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2324 for (i = 0; i < 256; i++)
2325 if (XOR (islower (i), ISLOWER (i))
2326 || toupper (i) != TOUPPER (i))
2331 rm -f conftest$ac_exeext
2332 if { (eval echo "$as_me:2332: \"$ac_link\"") >&5
2333 (eval $ac_link) 2>&5
2335 echo "$as_me:2335: \$? = $ac_status" >&5
2336 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2337 { (eval echo "$as_me:2337: \"$ac_try\"") >&5
2340 echo "$as_me:2340: \$? = $ac_status" >&5
2341 (exit $ac_status); }; }; then
2344 echo "$as_me: program exited with status $ac_status" >&5
2345 echo "$as_me: failed program was:" >&5
2346 cat conftest.$ac_ext >&5
2347 ac_cv_header_stdc=no
2349 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2353 echo "$as_me:2353: result: $ac_cv_header_stdc" >&5
2354 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2355 if test $ac_cv_header_stdc = yes; then
2357 cat >>confdefs.h <<\EOF
2358 #define STDC_HEADERS 1
2363 echo "$as_me:2363: checking for $CC option to accept ANSI C" >&5
2364 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2365 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2366 echo $ECHO_N "(cached) $ECHO_C" >&6
2368 ac_cv_prog_cc_stdc=no
2370 cat >conftest.$ac_ext <<_ACEOF
2371 #line 2371 "configure"
2372 #include "confdefs.h"
2375 #include <sys/types.h>
2376 #include <sys/stat.h>
2377 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2378 struct buf { int x; };
2379 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2380 static char *e (p, i)
2386 static char *f (char * (*g) (char **, int), char **p, ...)
2391 s = g (p, va_arg (v,int));
2395 int test (int i, double x);
2396 struct s1 {int (*f) (int a);};
2397 struct s2 {int (*f) (double a);};
2398 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2404 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2409 # Don't try gcc -ansi; that turns off useful extensions and
2410 # breaks some systems' header files.
2411 # AIX -qlanglvl=ansi
2412 # Ultrix and OSF/1 -std1
2413 # HP-UX 10.20 and later -Ae
2414 # HP-UX older versions -Aa -D_HPUX_SOURCE
2415 # SVR4 -Xc -D__EXTENSIONS__
2416 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2418 CC="$ac_save_CC $ac_arg"
2419 rm -f conftest.$ac_objext
2420 if { (eval echo "$as_me:2420: \"$ac_compile\"") >&5
2421 (eval $ac_compile) 2>&5
2423 echo "$as_me:2423: \$? = $ac_status" >&5
2424 (exit $ac_status); } &&
2425 { ac_try='test -s conftest.$ac_objext'
2426 { (eval echo "$as_me:2426: \"$ac_try\"") >&5
2429 echo "$as_me:2429: \$? = $ac_status" >&5
2430 (exit $ac_status); }; }; then
2431 ac_cv_prog_cc_stdc=$ac_arg
2434 echo "$as_me: failed program was:" >&5
2435 cat conftest.$ac_ext >&5
2437 rm -f conftest.$ac_objext
2439 rm -f conftest.$ac_ext conftest.$ac_objext
2444 case "x$ac_cv_prog_cc_stdc" in
2446 echo "$as_me:2446: result: none needed" >&5
2447 echo "${ECHO_T}none needed" >&6 ;;
2449 echo "$as_me:2449: result: $ac_cv_prog_cc_stdc" >&5
2450 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2451 CC="$CC $ac_cv_prog_cc_stdc" ;;
2454 echo "$as_me:2454: checking for an ANSI C-conforming const" >&5
2455 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
2456 if test "${ac_cv_c_const+set}" = set; then
2457 echo $ECHO_N "(cached) $ECHO_C" >&6
2459 cat >conftest.$ac_ext <<_ACEOF
2460 #line 2460 "configure"
2461 #include "confdefs.h"
2466 /* FIXME: Include the comments suggested by Paul. */
2468 /* Ultrix mips cc rejects this. */
2469 typedef int charset[2];
2471 /* SunOS 4.1.1 cc rejects this. */
2472 char const *const *ccp;
2474 /* NEC SVR4.0.2 mips cc rejects this. */
2475 struct point {int x, y;};
2476 static struct point const zero = {0,0};
2477 /* AIX XL C 1.02.0.0 rejects this.
2478 It does not let you subtract one const X* pointer from another in
2479 an arm of an if-expression whose if-part is not a constant
2481 const char *g = "string";
2482 ccp = &g + (g ? g-g : 0);
2483 /* HPUX 7.0 cc rejects these. */
2486 ccp = (char const *const *) p;
2487 { /* SCO 3.2v4 cc rejects this. */
2489 char const *s = 0 ? (char *) 0 : (char const *) 0;
2493 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2495 const int *foo = &x[0];
2498 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2499 typedef const int *iptr;
2503 { /* AIX XL C 1.02.0.0 rejects this saying
2504 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2505 struct s { int j; const int *ap[3]; };
2506 struct s *b; b->j = 5;
2508 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2517 rm -f conftest.$ac_objext
2518 if { (eval echo "$as_me:2518: \"$ac_compile\"") >&5
2519 (eval $ac_compile) 2>&5
2521 echo "$as_me:2521: \$? = $ac_status" >&5
2522 (exit $ac_status); } &&
2523 { ac_try='test -s conftest.$ac_objext'
2524 { (eval echo "$as_me:2524: \"$ac_try\"") >&5
2527 echo "$as_me:2527: \$? = $ac_status" >&5
2528 (exit $ac_status); }; }; then
2531 echo "$as_me: failed program was:" >&5
2532 cat conftest.$ac_ext >&5
2535 rm -f conftest.$ac_objext conftest.$ac_ext
2537 echo "$as_me:2537: result: $ac_cv_c_const" >&5
2538 echo "${ECHO_T}$ac_cv_c_const" >&6
2539 if test $ac_cv_c_const = no; then
2541 cat >>confdefs.h <<\EOF
2547 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2549 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2550 inttypes.h stdint.h unistd.h
2552 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2553 echo "$as_me:2553: checking for $ac_header" >&5
2554 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2555 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2556 echo $ECHO_N "(cached) $ECHO_C" >&6
2558 cat >conftest.$ac_ext <<_ACEOF
2559 #line 2559 "configure"
2560 #include "confdefs.h"
2561 $ac_includes_default
2562 #include <$ac_header>
2564 rm -f conftest.$ac_objext
2565 if { (eval echo "$as_me:2565: \"$ac_compile\"") >&5
2566 (eval $ac_compile) 2>&5
2568 echo "$as_me:2568: \$? = $ac_status" >&5
2569 (exit $ac_status); } &&
2570 { ac_try='test -s conftest.$ac_objext'
2571 { (eval echo "$as_me:2571: \"$ac_try\"") >&5
2574 echo "$as_me:2574: \$? = $ac_status" >&5
2575 (exit $ac_status); }; }; then
2576 eval "$as_ac_Header=yes"
2578 echo "$as_me: failed program was:" >&5
2579 cat conftest.$ac_ext >&5
2580 eval "$as_ac_Header=no"
2582 rm -f conftest.$ac_objext conftest.$ac_ext
2584 echo "$as_me:2584: result: `eval echo '${'$as_ac_Header'}'`" >&5
2585 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2586 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2587 cat >>confdefs.h <<EOF
2588 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2594 echo "$as_me:2594: checking for size_t" >&5
2595 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
2596 if test "${ac_cv_type_size_t+set}" = set; then
2597 echo $ECHO_N "(cached) $ECHO_C" >&6
2599 cat >conftest.$ac_ext <<_ACEOF
2600 #line 2600 "configure"
2601 #include "confdefs.h"
2602 $ac_includes_default
2608 if (sizeof (size_t))
2614 rm -f conftest.$ac_objext
2615 if { (eval echo "$as_me:2615: \"$ac_compile\"") >&5
2616 (eval $ac_compile) 2>&5
2618 echo "$as_me:2618: \$? = $ac_status" >&5
2619 (exit $ac_status); } &&
2620 { ac_try='test -s conftest.$ac_objext'
2621 { (eval echo "$as_me:2621: \"$ac_try\"") >&5
2624 echo "$as_me:2624: \$? = $ac_status" >&5
2625 (exit $ac_status); }; }; then
2626 ac_cv_type_size_t=yes
2628 echo "$as_me: failed program was:" >&5
2629 cat conftest.$ac_ext >&5
2630 ac_cv_type_size_t=no
2632 rm -f conftest.$ac_objext conftest.$ac_ext
2634 echo "$as_me:2634: result: $ac_cv_type_size_t" >&5
2635 echo "${ECHO_T}$ac_cv_type_size_t" >&6
2636 if test $ac_cv_type_size_t = yes; then
2640 cat >>confdefs.h <<EOF
2641 #define size_t unsigned
2646 echo "$as_me:2646: checking for int" >&5
2647 echo $ECHO_N "checking for int... $ECHO_C" >&6
2648 if test "${ac_cv_type_int+set}" = set; then
2649 echo $ECHO_N "(cached) $ECHO_C" >&6
2651 cat >conftest.$ac_ext <<_ACEOF
2652 #line 2652 "configure"
2653 #include "confdefs.h"
2654 $ac_includes_default
2666 rm -f conftest.$ac_objext
2667 if { (eval echo "$as_me:2667: \"$ac_compile\"") >&5
2668 (eval $ac_compile) 2>&5
2670 echo "$as_me:2670: \$? = $ac_status" >&5
2671 (exit $ac_status); } &&
2672 { ac_try='test -s conftest.$ac_objext'
2673 { (eval echo "$as_me:2673: \"$ac_try\"") >&5
2676 echo "$as_me:2676: \$? = $ac_status" >&5
2677 (exit $ac_status); }; }; then
2680 echo "$as_me: failed program was:" >&5
2681 cat conftest.$ac_ext >&5
2684 rm -f conftest.$ac_objext conftest.$ac_ext
2686 echo "$as_me:2686: result: $ac_cv_type_int" >&5
2687 echo "${ECHO_T}$ac_cv_type_int" >&6
2689 echo "$as_me:2689: checking size of int" >&5
2690 echo $ECHO_N "checking size of int... $ECHO_C" >&6
2691 if test "${ac_cv_sizeof_int+set}" = set; then
2692 echo $ECHO_N "(cached) $ECHO_C" >&6
2694 if test "$ac_cv_type_int" = yes; then
2695 if test "$cross_compiling" = yes; then
2696 # Depending upon the size, compute the lo and hi bounds.
2697 cat >conftest.$ac_ext <<_ACEOF
2698 #line 2698 "configure"
2699 #include "confdefs.h"
2700 $ac_includes_default
2704 int _array_ [1 - 2 * !((sizeof (int)) >= 0)]
2709 rm -f conftest.$ac_objext
2710 if { (eval echo "$as_me:2710: \"$ac_compile\"") >&5
2711 (eval $ac_compile) 2>&5
2713 echo "$as_me:2713: \$? = $ac_status" >&5
2714 (exit $ac_status); } &&
2715 { ac_try='test -s conftest.$ac_objext'
2716 { (eval echo "$as_me:2716: \"$ac_try\"") >&5
2719 echo "$as_me:2719: \$? = $ac_status" >&5
2720 (exit $ac_status); }; }; then
2723 cat >conftest.$ac_ext <<_ACEOF
2724 #line 2724 "configure"
2725 #include "confdefs.h"
2726 $ac_includes_default
2730 int _array_ [1 - 2 * !((sizeof (int)) <= $ac_mid)]
2735 rm -f conftest.$ac_objext
2736 if { (eval echo "$as_me:2736: \"$ac_compile\"") >&5
2737 (eval $ac_compile) 2>&5
2739 echo "$as_me:2739: \$? = $ac_status" >&5
2740 (exit $ac_status); } &&
2741 { ac_try='test -s conftest.$ac_objext'
2742 { (eval echo "$as_me:2742: \"$ac_try\"") >&5
2745 echo "$as_me:2745: \$? = $ac_status" >&5
2746 (exit $ac_status); }; }; then
2747 ac_hi=$ac_mid; break
2749 echo "$as_me: failed program was:" >&5
2750 cat conftest.$ac_ext >&5
2751 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
2753 rm -f conftest.$ac_objext conftest.$ac_ext
2756 echo "$as_me: failed program was:" >&5
2757 cat conftest.$ac_ext >&5
2760 cat >conftest.$ac_ext <<_ACEOF
2761 #line 2761 "configure"
2762 #include "confdefs.h"
2763 $ac_includes_default
2767 int _array_ [1 - 2 * !((sizeof (int)) >= $ac_mid)]
2772 rm -f conftest.$ac_objext
2773 if { (eval echo "$as_me:2773: \"$ac_compile\"") >&5
2774 (eval $ac_compile) 2>&5
2776 echo "$as_me:2776: \$? = $ac_status" >&5
2777 (exit $ac_status); } &&
2778 { ac_try='test -s conftest.$ac_objext'
2779 { (eval echo "$as_me:2779: \"$ac_try\"") >&5
2782 echo "$as_me:2782: \$? = $ac_status" >&5
2783 (exit $ac_status); }; }; then
2784 ac_lo=$ac_mid; break
2786 echo "$as_me: failed program was:" >&5
2787 cat conftest.$ac_ext >&5
2788 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
2790 rm -f conftest.$ac_objext conftest.$ac_ext
2793 rm -f conftest.$ac_objext conftest.$ac_ext
2794 # Binary search between lo and hi bounds.
2795 while test "x$ac_lo" != "x$ac_hi"; do
2796 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
2797 cat >conftest.$ac_ext <<_ACEOF
2798 #line 2798 "configure"
2799 #include "confdefs.h"
2800 $ac_includes_default
2804 int _array_ [1 - 2 * !((sizeof (int)) <= $ac_mid)]
2809 rm -f conftest.$ac_objext
2810 if { (eval echo "$as_me:2810: \"$ac_compile\"") >&5
2811 (eval $ac_compile) 2>&5
2813 echo "$as_me:2813: \$? = $ac_status" >&5
2814 (exit $ac_status); } &&
2815 { ac_try='test -s conftest.$ac_objext'
2816 { (eval echo "$as_me:2816: \"$ac_try\"") >&5
2819 echo "$as_me:2819: \$? = $ac_status" >&5
2820 (exit $ac_status); }; }; then
2823 echo "$as_me: failed program was:" >&5
2824 cat conftest.$ac_ext >&5
2825 ac_lo=`expr $ac_mid + 1`
2827 rm -f conftest.$ac_objext conftest.$ac_ext
2829 ac_cv_sizeof_int=$ac_lo
2831 if test "$cross_compiling" = yes; then
2832 { { echo "$as_me:2832: error: cannot run test program while cross compiling" >&5
2833 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
2834 { (exit 1); exit 1; }; }
2836 cat >conftest.$ac_ext <<_ACEOF
2837 #line 2837 "configure"
2838 #include "confdefs.h"
2839 $ac_includes_default
2843 FILE *f = fopen ("conftest.val", "w");
2846 fprintf (f, "%d", (sizeof (int)));
2852 rm -f conftest$ac_exeext
2853 if { (eval echo "$as_me:2853: \"$ac_link\"") >&5
2854 (eval $ac_link) 2>&5
2856 echo "$as_me:2856: \$? = $ac_status" >&5
2857 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2858 { (eval echo "$as_me:2858: \"$ac_try\"") >&5
2861 echo "$as_me:2861: \$? = $ac_status" >&5
2862 (exit $ac_status); }; }; then
2863 ac_cv_sizeof_int=`cat conftest.val`
2865 echo "$as_me: program exited with status $ac_status" >&5
2866 echo "$as_me: failed program was:" >&5
2867 cat conftest.$ac_ext >&5
2869 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2877 echo "$as_me:2877: result: $ac_cv_sizeof_int" >&5
2878 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
2879 cat >>confdefs.h <<EOF
2880 #define SIZEOF_INT $ac_cv_sizeof_int
2883 echo "$as_me:2883: checking for char *" >&5
2884 echo $ECHO_N "checking for char *... $ECHO_C" >&6
2885 if test "${ac_cv_type_char_p+set}" = set; then
2886 echo $ECHO_N "(cached) $ECHO_C" >&6
2888 cat >conftest.$ac_ext <<_ACEOF
2889 #line 2889 "configure"
2890 #include "confdefs.h"
2891 $ac_includes_default
2897 if (sizeof (char *))
2903 rm -f conftest.$ac_objext
2904 if { (eval echo "$as_me:2904: \"$ac_compile\"") >&5
2905 (eval $ac_compile) 2>&5
2907 echo "$as_me:2907: \$? = $ac_status" >&5
2908 (exit $ac_status); } &&
2909 { ac_try='test -s conftest.$ac_objext'
2910 { (eval echo "$as_me:2910: \"$ac_try\"") >&5
2913 echo "$as_me:2913: \$? = $ac_status" >&5
2914 (exit $ac_status); }; }; then
2915 ac_cv_type_char_p=yes
2917 echo "$as_me: failed program was:" >&5
2918 cat conftest.$ac_ext >&5
2919 ac_cv_type_char_p=no
2921 rm -f conftest.$ac_objext conftest.$ac_ext
2923 echo "$as_me:2923: result: $ac_cv_type_char_p" >&5
2924 echo "${ECHO_T}$ac_cv_type_char_p" >&6
2926 echo "$as_me:2926: checking size of char *" >&5
2927 echo $ECHO_N "checking size of char *... $ECHO_C" >&6
2928 if test "${ac_cv_sizeof_char_p+set}" = set; then
2929 echo $ECHO_N "(cached) $ECHO_C" >&6
2931 if test "$ac_cv_type_char_p" = yes; then
2932 if test "$cross_compiling" = yes; then
2933 # Depending upon the size, compute the lo and hi bounds.
2934 cat >conftest.$ac_ext <<_ACEOF
2935 #line 2935 "configure"
2936 #include "confdefs.h"
2937 $ac_includes_default
2941 int _array_ [1 - 2 * !((sizeof (char *)) >= 0)]
2946 rm -f conftest.$ac_objext
2947 if { (eval echo "$as_me:2947: \"$ac_compile\"") >&5
2948 (eval $ac_compile) 2>&5
2950 echo "$as_me:2950: \$? = $ac_status" >&5
2951 (exit $ac_status); } &&
2952 { ac_try='test -s conftest.$ac_objext'
2953 { (eval echo "$as_me:2953: \"$ac_try\"") >&5
2956 echo "$as_me:2956: \$? = $ac_status" >&5
2957 (exit $ac_status); }; }; then
2960 cat >conftest.$ac_ext <<_ACEOF
2961 #line 2961 "configure"
2962 #include "confdefs.h"
2963 $ac_includes_default
2967 int _array_ [1 - 2 * !((sizeof (char *)) <= $ac_mid)]
2972 rm -f conftest.$ac_objext
2973 if { (eval echo "$as_me:2973: \"$ac_compile\"") >&5
2974 (eval $ac_compile) 2>&5
2976 echo "$as_me:2976: \$? = $ac_status" >&5
2977 (exit $ac_status); } &&
2978 { ac_try='test -s conftest.$ac_objext'
2979 { (eval echo "$as_me:2979: \"$ac_try\"") >&5
2982 echo "$as_me:2982: \$? = $ac_status" >&5
2983 (exit $ac_status); }; }; then
2984 ac_hi=$ac_mid; break
2986 echo "$as_me: failed program was:" >&5
2987 cat conftest.$ac_ext >&5
2988 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
2990 rm -f conftest.$ac_objext conftest.$ac_ext
2993 echo "$as_me: failed program was:" >&5
2994 cat conftest.$ac_ext >&5
2997 cat >conftest.$ac_ext <<_ACEOF
2998 #line 2998 "configure"
2999 #include "confdefs.h"
3000 $ac_includes_default
3004 int _array_ [1 - 2 * !((sizeof (char *)) >= $ac_mid)]
3009 rm -f conftest.$ac_objext
3010 if { (eval echo "$as_me:3010: \"$ac_compile\"") >&5
3011 (eval $ac_compile) 2>&5
3013 echo "$as_me:3013: \$? = $ac_status" >&5
3014 (exit $ac_status); } &&
3015 { ac_try='test -s conftest.$ac_objext'
3016 { (eval echo "$as_me:3016: \"$ac_try\"") >&5
3019 echo "$as_me:3019: \$? = $ac_status" >&5
3020 (exit $ac_status); }; }; then
3021 ac_lo=$ac_mid; break
3023 echo "$as_me: failed program was:" >&5
3024 cat conftest.$ac_ext >&5
3025 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
3027 rm -f conftest.$ac_objext conftest.$ac_ext
3030 rm -f conftest.$ac_objext conftest.$ac_ext
3031 # Binary search between lo and hi bounds.
3032 while test "x$ac_lo" != "x$ac_hi"; do
3033 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3034 cat >conftest.$ac_ext <<_ACEOF
3035 #line 3035 "configure"
3036 #include "confdefs.h"
3037 $ac_includes_default
3041 int _array_ [1 - 2 * !((sizeof (char *)) <= $ac_mid)]
3046 rm -f conftest.$ac_objext
3047 if { (eval echo "$as_me:3047: \"$ac_compile\"") >&5
3048 (eval $ac_compile) 2>&5
3050 echo "$as_me:3050: \$? = $ac_status" >&5
3051 (exit $ac_status); } &&
3052 { ac_try='test -s conftest.$ac_objext'
3053 { (eval echo "$as_me:3053: \"$ac_try\"") >&5
3056 echo "$as_me:3056: \$? = $ac_status" >&5
3057 (exit $ac_status); }; }; then
3060 echo "$as_me: failed program was:" >&5
3061 cat conftest.$ac_ext >&5
3062 ac_lo=`expr $ac_mid + 1`
3064 rm -f conftest.$ac_objext conftest.$ac_ext
3066 ac_cv_sizeof_char_p=$ac_lo
3068 if test "$cross_compiling" = yes; then
3069 { { echo "$as_me:3069: error: cannot run test program while cross compiling" >&5
3070 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
3071 { (exit 1); exit 1; }; }
3073 cat >conftest.$ac_ext <<_ACEOF
3074 #line 3074 "configure"
3075 #include "confdefs.h"
3076 $ac_includes_default
3080 FILE *f = fopen ("conftest.val", "w");
3083 fprintf (f, "%d", (sizeof (char *)));
3089 rm -f conftest$ac_exeext
3090 if { (eval echo "$as_me:3090: \"$ac_link\"") >&5
3091 (eval $ac_link) 2>&5
3093 echo "$as_me:3093: \$? = $ac_status" >&5
3094 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3095 { (eval echo "$as_me:3095: \"$ac_try\"") >&5
3098 echo "$as_me:3098: \$? = $ac_status" >&5
3099 (exit $ac_status); }; }; then
3100 ac_cv_sizeof_char_p=`cat conftest.val`
3102 echo "$as_me: program exited with status $ac_status" >&5
3103 echo "$as_me: failed program was:" >&5
3104 cat conftest.$ac_ext >&5
3106 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3111 ac_cv_sizeof_char_p=0
3114 echo "$as_me:3114: result: $ac_cv_sizeof_char_p" >&5
3115 echo "${ECHO_T}$ac_cv_sizeof_char_p" >&6
3116 cat >>confdefs.h <<EOF
3117 #define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
3120 echo "$as_me:3120: checking for long" >&5
3121 echo $ECHO_N "checking for long... $ECHO_C" >&6
3122 if test "${ac_cv_type_long+set}" = set; then
3123 echo $ECHO_N "(cached) $ECHO_C" >&6
3125 cat >conftest.$ac_ext <<_ACEOF
3126 #line 3126 "configure"
3127 #include "confdefs.h"
3128 $ac_includes_default
3140 rm -f conftest.$ac_objext
3141 if { (eval echo "$as_me:3141: \"$ac_compile\"") >&5
3142 (eval $ac_compile) 2>&5
3144 echo "$as_me:3144: \$? = $ac_status" >&5
3145 (exit $ac_status); } &&
3146 { ac_try='test -s conftest.$ac_objext'
3147 { (eval echo "$as_me:3147: \"$ac_try\"") >&5
3150 echo "$as_me:3150: \$? = $ac_status" >&5
3151 (exit $ac_status); }; }; then
3154 echo "$as_me: failed program was:" >&5
3155 cat conftest.$ac_ext >&5
3158 rm -f conftest.$ac_objext conftest.$ac_ext
3160 echo "$as_me:3160: result: $ac_cv_type_long" >&5
3161 echo "${ECHO_T}$ac_cv_type_long" >&6
3163 echo "$as_me:3163: checking size of long" >&5
3164 echo $ECHO_N "checking size of long... $ECHO_C" >&6
3165 if test "${ac_cv_sizeof_long+set}" = set; then
3166 echo $ECHO_N "(cached) $ECHO_C" >&6
3168 if test "$ac_cv_type_long" = yes; then
3169 if test "$cross_compiling" = yes; then
3170 # Depending upon the size, compute the lo and hi bounds.
3171 cat >conftest.$ac_ext <<_ACEOF
3172 #line 3172 "configure"
3173 #include "confdefs.h"
3174 $ac_includes_default
3178 int _array_ [1 - 2 * !((sizeof (long)) >= 0)]
3183 rm -f conftest.$ac_objext
3184 if { (eval echo "$as_me:3184: \"$ac_compile\"") >&5
3185 (eval $ac_compile) 2>&5
3187 echo "$as_me:3187: \$? = $ac_status" >&5
3188 (exit $ac_status); } &&
3189 { ac_try='test -s conftest.$ac_objext'
3190 { (eval echo "$as_me:3190: \"$ac_try\"") >&5
3193 echo "$as_me:3193: \$? = $ac_status" >&5
3194 (exit $ac_status); }; }; then
3197 cat >conftest.$ac_ext <<_ACEOF
3198 #line 3198 "configure"
3199 #include "confdefs.h"
3200 $ac_includes_default
3204 int _array_ [1 - 2 * !((sizeof (long)) <= $ac_mid)]
3209 rm -f conftest.$ac_objext
3210 if { (eval echo "$as_me:3210: \"$ac_compile\"") >&5
3211 (eval $ac_compile) 2>&5
3213 echo "$as_me:3213: \$? = $ac_status" >&5
3214 (exit $ac_status); } &&
3215 { ac_try='test -s conftest.$ac_objext'
3216 { (eval echo "$as_me:3216: \"$ac_try\"") >&5
3219 echo "$as_me:3219: \$? = $ac_status" >&5
3220 (exit $ac_status); }; }; then
3221 ac_hi=$ac_mid; break
3223 echo "$as_me: failed program was:" >&5
3224 cat conftest.$ac_ext >&5
3225 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
3227 rm -f conftest.$ac_objext conftest.$ac_ext
3230 echo "$as_me: failed program was:" >&5
3231 cat conftest.$ac_ext >&5
3234 cat >conftest.$ac_ext <<_ACEOF
3235 #line 3235 "configure"
3236 #include "confdefs.h"
3237 $ac_includes_default
3241 int _array_ [1 - 2 * !((sizeof (long)) >= $ac_mid)]
3246 rm -f conftest.$ac_objext
3247 if { (eval echo "$as_me:3247: \"$ac_compile\"") >&5
3248 (eval $ac_compile) 2>&5
3250 echo "$as_me:3250: \$? = $ac_status" >&5
3251 (exit $ac_status); } &&
3252 { ac_try='test -s conftest.$ac_objext'
3253 { (eval echo "$as_me:3253: \"$ac_try\"") >&5
3256 echo "$as_me:3256: \$? = $ac_status" >&5
3257 (exit $ac_status); }; }; then
3258 ac_lo=$ac_mid; break
3260 echo "$as_me: failed program was:" >&5
3261 cat conftest.$ac_ext >&5
3262 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
3264 rm -f conftest.$ac_objext conftest.$ac_ext
3267 rm -f conftest.$ac_objext conftest.$ac_ext
3268 # Binary search between lo and hi bounds.
3269 while test "x$ac_lo" != "x$ac_hi"; do
3270 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3271 cat >conftest.$ac_ext <<_ACEOF
3272 #line 3272 "configure"
3273 #include "confdefs.h"
3274 $ac_includes_default
3278 int _array_ [1 - 2 * !((sizeof (long)) <= $ac_mid)]
3283 rm -f conftest.$ac_objext
3284 if { (eval echo "$as_me:3284: \"$ac_compile\"") >&5
3285 (eval $ac_compile) 2>&5
3287 echo "$as_me:3287: \$? = $ac_status" >&5
3288 (exit $ac_status); } &&
3289 { ac_try='test -s conftest.$ac_objext'
3290 { (eval echo "$as_me:3290: \"$ac_try\"") >&5
3293 echo "$as_me:3293: \$? = $ac_status" >&5
3294 (exit $ac_status); }; }; then
3297 echo "$as_me: failed program was:" >&5
3298 cat conftest.$ac_ext >&5
3299 ac_lo=`expr $ac_mid + 1`
3301 rm -f conftest.$ac_objext conftest.$ac_ext
3303 ac_cv_sizeof_long=$ac_lo
3305 if test "$cross_compiling" = yes; then
3306 { { echo "$as_me:3306: error: cannot run test program while cross compiling" >&5
3307 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
3308 { (exit 1); exit 1; }; }
3310 cat >conftest.$ac_ext <<_ACEOF
3311 #line 3311 "configure"
3312 #include "confdefs.h"
3313 $ac_includes_default
3317 FILE *f = fopen ("conftest.val", "w");
3320 fprintf (f, "%d", (sizeof (long)));
3326 rm -f conftest$ac_exeext
3327 if { (eval echo "$as_me:3327: \"$ac_link\"") >&5
3328 (eval $ac_link) 2>&5
3330 echo "$as_me:3330: \$? = $ac_status" >&5
3331 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3332 { (eval echo "$as_me:3332: \"$ac_try\"") >&5
3335 echo "$as_me:3335: \$? = $ac_status" >&5
3336 (exit $ac_status); }; }; then
3337 ac_cv_sizeof_long=`cat conftest.val`
3339 echo "$as_me: program exited with status $ac_status" >&5
3340 echo "$as_me: failed program was:" >&5
3341 cat conftest.$ac_ext >&5
3343 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3351 echo "$as_me:3351: result: $ac_cv_sizeof_long" >&5
3352 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
3353 cat >>confdefs.h <<EOF
3354 #define SIZEOF_LONG $ac_cv_sizeof_long
3357 echo "$as_me:3357: checking for long long" >&5
3358 echo $ECHO_N "checking for long long... $ECHO_C" >&6
3359 if test "${ac_cv_type_long_long+set}" = set; then
3360 echo $ECHO_N "(cached) $ECHO_C" >&6
3362 cat >conftest.$ac_ext <<_ACEOF
3363 #line 3363 "configure"
3364 #include "confdefs.h"
3365 $ac_includes_default
3369 if ((long long *) 0)
3371 if (sizeof (long long))
3377 rm -f conftest.$ac_objext
3378 if { (eval echo "$as_me:3378: \"$ac_compile\"") >&5
3379 (eval $ac_compile) 2>&5
3381 echo "$as_me:3381: \$? = $ac_status" >&5
3382 (exit $ac_status); } &&
3383 { ac_try='test -s conftest.$ac_objext'
3384 { (eval echo "$as_me:3384: \"$ac_try\"") >&5
3387 echo "$as_me:3387: \$? = $ac_status" >&5
3388 (exit $ac_status); }; }; then
3389 ac_cv_type_long_long=yes
3391 echo "$as_me: failed program was:" >&5
3392 cat conftest.$ac_ext >&5
3393 ac_cv_type_long_long=no
3395 rm -f conftest.$ac_objext conftest.$ac_ext
3397 echo "$as_me:3397: result: $ac_cv_type_long_long" >&5
3398 echo "${ECHO_T}$ac_cv_type_long_long" >&6
3400 echo "$as_me:3400: checking size of long long" >&5
3401 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
3402 if test "${ac_cv_sizeof_long_long+set}" = set; then
3403 echo $ECHO_N "(cached) $ECHO_C" >&6
3405 if test "$ac_cv_type_long_long" = yes; then
3406 if test "$cross_compiling" = yes; then
3407 # Depending upon the size, compute the lo and hi bounds.
3408 cat >conftest.$ac_ext <<_ACEOF
3409 #line 3409 "configure"
3410 #include "confdefs.h"
3411 $ac_includes_default
3415 int _array_ [1 - 2 * !((sizeof (long long)) >= 0)]
3420 rm -f conftest.$ac_objext
3421 if { (eval echo "$as_me:3421: \"$ac_compile\"") >&5
3422 (eval $ac_compile) 2>&5
3424 echo "$as_me:3424: \$? = $ac_status" >&5
3425 (exit $ac_status); } &&
3426 { ac_try='test -s conftest.$ac_objext'
3427 { (eval echo "$as_me:3427: \"$ac_try\"") >&5
3430 echo "$as_me:3430: \$? = $ac_status" >&5
3431 (exit $ac_status); }; }; then
3434 cat >conftest.$ac_ext <<_ACEOF
3435 #line 3435 "configure"
3436 #include "confdefs.h"
3437 $ac_includes_default
3441 int _array_ [1 - 2 * !((sizeof (long long)) <= $ac_mid)]
3446 rm -f conftest.$ac_objext
3447 if { (eval echo "$as_me:3447: \"$ac_compile\"") >&5
3448 (eval $ac_compile) 2>&5
3450 echo "$as_me:3450: \$? = $ac_status" >&5
3451 (exit $ac_status); } &&
3452 { ac_try='test -s conftest.$ac_objext'
3453 { (eval echo "$as_me:3453: \"$ac_try\"") >&5
3456 echo "$as_me:3456: \$? = $ac_status" >&5
3457 (exit $ac_status); }; }; then
3458 ac_hi=$ac_mid; break
3460 echo "$as_me: failed program was:" >&5
3461 cat conftest.$ac_ext >&5
3462 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
3464 rm -f conftest.$ac_objext conftest.$ac_ext
3467 echo "$as_me: failed program was:" >&5
3468 cat conftest.$ac_ext >&5
3471 cat >conftest.$ac_ext <<_ACEOF
3472 #line 3472 "configure"
3473 #include "confdefs.h"
3474 $ac_includes_default
3478 int _array_ [1 - 2 * !((sizeof (long long)) >= $ac_mid)]
3483 rm -f conftest.$ac_objext
3484 if { (eval echo "$as_me:3484: \"$ac_compile\"") >&5
3485 (eval $ac_compile) 2>&5
3487 echo "$as_me:3487: \$? = $ac_status" >&5
3488 (exit $ac_status); } &&
3489 { ac_try='test -s conftest.$ac_objext'
3490 { (eval echo "$as_me:3490: \"$ac_try\"") >&5
3493 echo "$as_me:3493: \$? = $ac_status" >&5
3494 (exit $ac_status); }; }; then
3495 ac_lo=$ac_mid; break
3497 echo "$as_me: failed program was:" >&5
3498 cat conftest.$ac_ext >&5
3499 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
3501 rm -f conftest.$ac_objext conftest.$ac_ext
3504 rm -f conftest.$ac_objext conftest.$ac_ext
3505 # Binary search between lo and hi bounds.
3506 while test "x$ac_lo" != "x$ac_hi"; do
3507 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3508 cat >conftest.$ac_ext <<_ACEOF
3509 #line 3509 "configure"
3510 #include "confdefs.h"
3511 $ac_includes_default
3515 int _array_ [1 - 2 * !((sizeof (long long)) <= $ac_mid)]
3520 rm -f conftest.$ac_objext
3521 if { (eval echo "$as_me:3521: \"$ac_compile\"") >&5
3522 (eval $ac_compile) 2>&5
3524 echo "$as_me:3524: \$? = $ac_status" >&5
3525 (exit $ac_status); } &&
3526 { ac_try='test -s conftest.$ac_objext'
3527 { (eval echo "$as_me:3527: \"$ac_try\"") >&5
3530 echo "$as_me:3530: \$? = $ac_status" >&5
3531 (exit $ac_status); }; }; then
3534 echo "$as_me: failed program was:" >&5
3535 cat conftest.$ac_ext >&5
3536 ac_lo=`expr $ac_mid + 1`
3538 rm -f conftest.$ac_objext conftest.$ac_ext
3540 ac_cv_sizeof_long_long=$ac_lo
3542 if test "$cross_compiling" = yes; then
3543 { { echo "$as_me:3543: error: cannot run test program while cross compiling" >&5
3544 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
3545 { (exit 1); exit 1; }; }
3547 cat >conftest.$ac_ext <<_ACEOF
3548 #line 3548 "configure"
3549 #include "confdefs.h"
3550 $ac_includes_default
3554 FILE *f = fopen ("conftest.val", "w");
3557 fprintf (f, "%d", (sizeof (long long)));
3563 rm -f conftest$ac_exeext
3564 if { (eval echo "$as_me:3564: \"$ac_link\"") >&5
3565 (eval $ac_link) 2>&5
3567 echo "$as_me:3567: \$? = $ac_status" >&5
3568 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3569 { (eval echo "$as_me:3569: \"$ac_try\"") >&5
3572 echo "$as_me:3572: \$? = $ac_status" >&5
3573 (exit $ac_status); }; }; then
3574 ac_cv_sizeof_long_long=`cat conftest.val`
3576 echo "$as_me: program exited with status $ac_status" >&5
3577 echo "$as_me: failed program was:" >&5
3578 cat conftest.$ac_ext >&5
3580 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3585 ac_cv_sizeof_long_long=0
3588 echo "$as_me:3588: result: $ac_cv_sizeof_long_long" >&5
3589 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
3590 cat >>confdefs.h <<EOF
3591 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
3594 echo "$as_me:3594: checking for size_t" >&5
3595 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3596 if test "${ac_cv_type_size_t+set}" = set; then
3597 echo $ECHO_N "(cached) $ECHO_C" >&6
3599 cat >conftest.$ac_ext <<_ACEOF
3600 #line 3600 "configure"
3601 #include "confdefs.h"
3602 $ac_includes_default
3608 if (sizeof (size_t))
3614 rm -f conftest.$ac_objext
3615 if { (eval echo "$as_me:3615: \"$ac_compile\"") >&5
3616 (eval $ac_compile) 2>&5
3618 echo "$as_me:3618: \$? = $ac_status" >&5
3619 (exit $ac_status); } &&
3620 { ac_try='test -s conftest.$ac_objext'
3621 { (eval echo "$as_me:3621: \"$ac_try\"") >&5
3624 echo "$as_me:3624: \$? = $ac_status" >&5
3625 (exit $ac_status); }; }; then
3626 ac_cv_type_size_t=yes
3628 echo "$as_me: failed program was:" >&5
3629 cat conftest.$ac_ext >&5
3630 ac_cv_type_size_t=no
3632 rm -f conftest.$ac_objext conftest.$ac_ext
3634 echo "$as_me:3634: result: $ac_cv_type_size_t" >&5
3635 echo "${ECHO_T}$ac_cv_type_size_t" >&6
3637 echo "$as_me:3637: checking size of size_t" >&5
3638 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
3639 if test "${ac_cv_sizeof_size_t+set}" = set; then
3640 echo $ECHO_N "(cached) $ECHO_C" >&6
3642 if test "$ac_cv_type_size_t" = yes; then
3643 if test "$cross_compiling" = yes; then
3644 # Depending upon the size, compute the lo and hi bounds.
3645 cat >conftest.$ac_ext <<_ACEOF
3646 #line 3646 "configure"
3647 #include "confdefs.h"
3648 $ac_includes_default
3652 int _array_ [1 - 2 * !((sizeof (size_t)) >= 0)]
3657 rm -f conftest.$ac_objext
3658 if { (eval echo "$as_me:3658: \"$ac_compile\"") >&5
3659 (eval $ac_compile) 2>&5
3661 echo "$as_me:3661: \$? = $ac_status" >&5
3662 (exit $ac_status); } &&
3663 { ac_try='test -s conftest.$ac_objext'
3664 { (eval echo "$as_me:3664: \"$ac_try\"") >&5
3667 echo "$as_me:3667: \$? = $ac_status" >&5
3668 (exit $ac_status); }; }; then
3671 cat >conftest.$ac_ext <<_ACEOF
3672 #line 3672 "configure"
3673 #include "confdefs.h"
3674 $ac_includes_default
3678 int _array_ [1 - 2 * !((sizeof (size_t)) <= $ac_mid)]
3683 rm -f conftest.$ac_objext
3684 if { (eval echo "$as_me:3684: \"$ac_compile\"") >&5
3685 (eval $ac_compile) 2>&5
3687 echo "$as_me:3687: \$? = $ac_status" >&5
3688 (exit $ac_status); } &&
3689 { ac_try='test -s conftest.$ac_objext'
3690 { (eval echo "$as_me:3690: \"$ac_try\"") >&5
3693 echo "$as_me:3693: \$? = $ac_status" >&5
3694 (exit $ac_status); }; }; then
3695 ac_hi=$ac_mid; break
3697 echo "$as_me: failed program was:" >&5
3698 cat conftest.$ac_ext >&5
3699 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
3701 rm -f conftest.$ac_objext conftest.$ac_ext
3704 echo "$as_me: failed program was:" >&5
3705 cat conftest.$ac_ext >&5
3708 cat >conftest.$ac_ext <<_ACEOF
3709 #line 3709 "configure"
3710 #include "confdefs.h"
3711 $ac_includes_default
3715 int _array_ [1 - 2 * !((sizeof (size_t)) >= $ac_mid)]
3720 rm -f conftest.$ac_objext
3721 if { (eval echo "$as_me:3721: \"$ac_compile\"") >&5
3722 (eval $ac_compile) 2>&5
3724 echo "$as_me:3724: \$? = $ac_status" >&5
3725 (exit $ac_status); } &&
3726 { ac_try='test -s conftest.$ac_objext'
3727 { (eval echo "$as_me:3727: \"$ac_try\"") >&5
3730 echo "$as_me:3730: \$? = $ac_status" >&5
3731 (exit $ac_status); }; }; then
3732 ac_lo=$ac_mid; break
3734 echo "$as_me: failed program was:" >&5
3735 cat conftest.$ac_ext >&5
3736 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
3738 rm -f conftest.$ac_objext conftest.$ac_ext
3741 rm -f conftest.$ac_objext conftest.$ac_ext
3742 # Binary search between lo and hi bounds.
3743 while test "x$ac_lo" != "x$ac_hi"; do
3744 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3745 cat >conftest.$ac_ext <<_ACEOF
3746 #line 3746 "configure"
3747 #include "confdefs.h"
3748 $ac_includes_default
3752 int _array_ [1 - 2 * !((sizeof (size_t)) <= $ac_mid)]
3757 rm -f conftest.$ac_objext
3758 if { (eval echo "$as_me:3758: \"$ac_compile\"") >&5
3759 (eval $ac_compile) 2>&5
3761 echo "$as_me:3761: \$? = $ac_status" >&5
3762 (exit $ac_status); } &&
3763 { ac_try='test -s conftest.$ac_objext'
3764 { (eval echo "$as_me:3764: \"$ac_try\"") >&5
3767 echo "$as_me:3767: \$? = $ac_status" >&5
3768 (exit $ac_status); }; }; then
3771 echo "$as_me: failed program was:" >&5
3772 cat conftest.$ac_ext >&5
3773 ac_lo=`expr $ac_mid + 1`
3775 rm -f conftest.$ac_objext conftest.$ac_ext
3777 ac_cv_sizeof_size_t=$ac_lo
3779 if test "$cross_compiling" = yes; then
3780 { { echo "$as_me:3780: error: cannot run test program while cross compiling" >&5
3781 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
3782 { (exit 1); exit 1; }; }
3784 cat >conftest.$ac_ext <<_ACEOF
3785 #line 3785 "configure"
3786 #include "confdefs.h"
3787 $ac_includes_default
3791 FILE *f = fopen ("conftest.val", "w");
3794 fprintf (f, "%d", (sizeof (size_t)));
3800 rm -f conftest$ac_exeext
3801 if { (eval echo "$as_me:3801: \"$ac_link\"") >&5
3802 (eval $ac_link) 2>&5
3804 echo "$as_me:3804: \$? = $ac_status" >&5
3805 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3806 { (eval echo "$as_me:3806: \"$ac_try\"") >&5
3809 echo "$as_me:3809: \$? = $ac_status" >&5
3810 (exit $ac_status); }; }; then
3811 ac_cv_sizeof_size_t=`cat conftest.val`
3813 echo "$as_me: program exited with status $ac_status" >&5
3814 echo "$as_me: failed program was:" >&5
3815 cat conftest.$ac_ext >&5
3817 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3822 ac_cv_sizeof_size_t=0
3825 echo "$as_me:3825: result: $ac_cv_sizeof_size_t" >&5
3826 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
3827 cat >>confdefs.h <<EOF
3828 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
3831 for ac_func in strerror bcopy memmove
3833 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3834 echo "$as_me:3834: checking for $ac_func" >&5
3835 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3836 if eval "test \"\${$as_ac_var+set}\" = set"; then
3837 echo $ECHO_N "(cached) $ECHO_C" >&6
3839 cat >conftest.$ac_ext <<_ACEOF
3840 #line 3840 "configure"
3841 #include "confdefs.h"
3842 /* System header to define __stub macros and hopefully few prototypes,
3843 which can conflict with char $ac_func (); below. */
3845 /* Override any gcc2 internal prototype to avoid an error. */
3849 /* We use char because int might match the return type of a gcc2
3850 builtin and then its argument prototype would still apply. */
3857 /* The GNU C library defines this for functions which it implements
3858 to always fail with ENOSYS. Some functions are actually named
3859 something starting with __ and the normal name is an alias. */
3860 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3870 rm -f conftest.$ac_objext conftest$ac_exeext
3871 if { (eval echo "$as_me:3871: \"$ac_link\"") >&5
3872 (eval $ac_link) 2>&5
3874 echo "$as_me:3874: \$? = $ac_status" >&5
3875 (exit $ac_status); } &&
3876 { ac_try='test -s conftest$ac_exeext'
3877 { (eval echo "$as_me:3877: \"$ac_try\"") >&5
3880 echo "$as_me:3880: \$? = $ac_status" >&5
3881 (exit $ac_status); }; }; then
3882 eval "$as_ac_var=yes"
3884 echo "$as_me: failed program was:" >&5
3885 cat conftest.$ac_ext >&5
3886 eval "$as_ac_var=no"
3888 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3890 echo "$as_me:3890: result: `eval echo '${'$as_ac_var'}'`" >&5
3891 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3892 if test `eval echo '${'$as_ac_var'}'` = yes; then
3893 cat >>confdefs.h <<EOF
3894 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3900 echo "$as_me:3900: checking for pcre_compile in -lpcre" >&5
3901 echo $ECHO_N "checking for pcre_compile in -lpcre... $ECHO_C" >&6
3902 if test "${ac_cv_lib_pcre_pcre_compile+set}" = set; then
3903 echo $ECHO_N "(cached) $ECHO_C" >&6
3905 ac_check_lib_save_LIBS=$LIBS
3907 cat >conftest.$ac_ext <<_ACEOF
3908 #line 3908 "configure"
3909 #include "confdefs.h"
3911 /* Override any gcc2 internal prototype to avoid an error. */
3915 /* We use char because int might match the return type of a gcc2
3916 builtin and then its argument prototype would still apply. */
3917 char pcre_compile ();
3926 rm -f conftest.$ac_objext conftest$ac_exeext
3927 if { (eval echo "$as_me:3927: \"$ac_link\"") >&5
3928 (eval $ac_link) 2>&5
3930 echo "$as_me:3930: \$? = $ac_status" >&5
3931 (exit $ac_status); } &&
3932 { ac_try='test -s conftest$ac_exeext'
3933 { (eval echo "$as_me:3933: \"$ac_try\"") >&5
3936 echo "$as_me:3936: \$? = $ac_status" >&5
3937 (exit $ac_status); }; }; then
3938 ac_cv_lib_pcre_pcre_compile=yes
3940 echo "$as_me: failed program was:" >&5
3941 cat conftest.$ac_ext >&5
3942 ac_cv_lib_pcre_pcre_compile=no
3944 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3945 LIBS=$ac_check_lib_save_LIBS
3947 echo "$as_me:3947: result: $ac_cv_lib_pcre_pcre_compile" >&5
3948 echo "${ECHO_T}$ac_cv_lib_pcre_pcre_compile" >&6
3949 if test $ac_cv_lib_pcre_pcre_compile = yes; then
3950 echo "$as_me:3950: checking for pcre.h" >&5
3951 echo $ECHO_N "checking for pcre.h... $ECHO_C" >&6
3952 if test "${ac_cv_header_pcre_h+set}" = set; then
3953 echo $ECHO_N "(cached) $ECHO_C" >&6
3955 cat >conftest.$ac_ext <<_ACEOF
3956 #line 3956 "configure"
3957 #include "confdefs.h"
3960 if { (eval echo "$as_me:3960: \"$ac_cpp conftest.$ac_ext\"") >&5
3961 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3963 egrep -v '^ *\+' conftest.er1 >conftest.err
3965 cat conftest.err >&5
3966 echo "$as_me:3966: \$? = $ac_status" >&5
3967 (exit $ac_status); } >/dev/null; then
3968 if test -s conftest.err; then
3969 ac_cpp_err=$ac_c_preproc_warn_flag
3976 if test -z "$ac_cpp_err"; then
3977 ac_cv_header_pcre_h=yes
3979 echo "$as_me: failed program was:" >&5
3980 cat conftest.$ac_ext >&5
3981 ac_cv_header_pcre_h=no
3983 rm -f conftest.err conftest.$ac_ext
3985 echo "$as_me:3985: result: $ac_cv_header_pcre_h" >&5
3986 echo "${ECHO_T}$ac_cv_header_pcre_h" >&6
3987 if test $ac_cv_header_pcre_h = yes; then
3997 echo "$as_me:3997: checking for regcomp in -lpcreposix" >&5
3998 echo $ECHO_N "checking for regcomp in -lpcreposix... $ECHO_C" >&6
3999 if test "${ac_cv_lib_pcreposix_regcomp+set}" = set; then
4000 echo $ECHO_N "(cached) $ECHO_C" >&6
4002 ac_check_lib_save_LIBS=$LIBS
4003 LIBS="-lpcreposix -lpcre $LIBS"
4004 cat >conftest.$ac_ext <<_ACEOF
4005 #line 4005 "configure"
4006 #include "confdefs.h"
4008 /* Override any gcc2 internal prototype to avoid an error. */
4012 /* We use char because int might match the return type of a gcc2
4013 builtin and then its argument prototype would still apply. */
4023 rm -f conftest.$ac_objext conftest$ac_exeext
4024 if { (eval echo "$as_me:4024: \"$ac_link\"") >&5
4025 (eval $ac_link) 2>&5
4027 echo "$as_me:4027: \$? = $ac_status" >&5
4028 (exit $ac_status); } &&
4029 { ac_try='test -s conftest$ac_exeext'
4030 { (eval echo "$as_me:4030: \"$ac_try\"") >&5
4033 echo "$as_me:4033: \$? = $ac_status" >&5
4034 (exit $ac_status); }; }; then
4035 ac_cv_lib_pcreposix_regcomp=yes
4037 echo "$as_me: failed program was:" >&5
4038 cat conftest.$ac_ext >&5
4039 ac_cv_lib_pcreposix_regcomp=no
4041 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4042 LIBS=$ac_check_lib_save_LIBS
4044 echo "$as_me:4044: result: $ac_cv_lib_pcreposix_regcomp" >&5
4045 echo "${ECHO_T}$ac_cv_lib_pcreposix_regcomp" >&6
4046 if test $ac_cv_lib_pcreposix_regcomp = yes; then
4047 echo "$as_me:4047: checking for pcreposix.h" >&5
4048 echo $ECHO_N "checking for pcreposix.h... $ECHO_C" >&6
4049 if test "${ac_cv_header_pcreposix_h+set}" = set; then
4050 echo $ECHO_N "(cached) $ECHO_C" >&6
4052 cat >conftest.$ac_ext <<_ACEOF
4053 #line 4053 "configure"
4054 #include "confdefs.h"
4055 #include <pcreposix.h>
4057 if { (eval echo "$as_me:4057: \"$ac_cpp conftest.$ac_ext\"") >&5
4058 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4060 egrep -v '^ *\+' conftest.er1 >conftest.err
4062 cat conftest.err >&5
4063 echo "$as_me:4063: \$? = $ac_status" >&5
4064 (exit $ac_status); } >/dev/null; then
4065 if test -s conftest.err; then
4066 ac_cpp_err=$ac_c_preproc_warn_flag
4073 if test -z "$ac_cpp_err"; then
4074 ac_cv_header_pcreposix_h=yes
4076 echo "$as_me: failed program was:" >&5
4077 cat conftest.$ac_ext >&5
4078 ac_cv_header_pcreposix_h=no
4080 rm -f conftest.err conftest.$ac_ext
4082 echo "$as_me:4082: result: $ac_cv_header_pcreposix_h" >&5
4083 echo "${ECHO_T}$ac_cv_header_pcreposix_h" >&6
4084 if test $ac_cv_header_pcreposix_h = yes; then
4094 echo "$as_me:4094: checking for pcrs_compile in -lpcrs" >&5
4095 echo $ECHO_N "checking for pcrs_compile in -lpcrs... $ECHO_C" >&6
4096 if test "${ac_cv_lib_pcrs_pcrs_compile+set}" = set; then
4097 echo $ECHO_N "(cached) $ECHO_C" >&6
4099 ac_check_lib_save_LIBS=$LIBS
4101 cat >conftest.$ac_ext <<_ACEOF
4102 #line 4102 "configure"
4103 #include "confdefs.h"
4105 /* Override any gcc2 internal prototype to avoid an error. */
4109 /* We use char because int might match the return type of a gcc2
4110 builtin and then its argument prototype would still apply. */
4111 char pcrs_compile ();
4120 rm -f conftest.$ac_objext conftest$ac_exeext
4121 if { (eval echo "$as_me:4121: \"$ac_link\"") >&5
4122 (eval $ac_link) 2>&5
4124 echo "$as_me:4124: \$? = $ac_status" >&5
4125 (exit $ac_status); } &&
4126 { ac_try='test -s conftest$ac_exeext'
4127 { (eval echo "$as_me:4127: \"$ac_try\"") >&5
4130 echo "$as_me:4130: \$? = $ac_status" >&5
4131 (exit $ac_status); }; }; then
4132 ac_cv_lib_pcrs_pcrs_compile=yes
4134 echo "$as_me: failed program was:" >&5
4135 cat conftest.$ac_ext >&5
4136 ac_cv_lib_pcrs_pcrs_compile=no
4138 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4139 LIBS=$ac_check_lib_save_LIBS
4141 echo "$as_me:4141: result: $ac_cv_lib_pcrs_pcrs_compile" >&5
4142 echo "${ECHO_T}$ac_cv_lib_pcrs_pcrs_compile" >&6
4143 if test $ac_cv_lib_pcrs_pcrs_compile = yes; then
4144 echo "$as_me:4144: checking for pcrs.h" >&5
4145 echo $ECHO_N "checking for pcrs.h... $ECHO_C" >&6
4146 if test "${ac_cv_header_pcrs_h+set}" = set; then
4147 echo $ECHO_N "(cached) $ECHO_C" >&6
4149 cat >conftest.$ac_ext <<_ACEOF
4150 #line 4150 "configure"
4151 #include "confdefs.h"
4154 if { (eval echo "$as_me:4154: \"$ac_cpp conftest.$ac_ext\"") >&5
4155 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4157 egrep -v '^ *\+' conftest.er1 >conftest.err
4159 cat conftest.err >&5
4160 echo "$as_me:4160: \$? = $ac_status" >&5
4161 (exit $ac_status); } >/dev/null; then
4162 if test -s conftest.err; then
4163 ac_cpp_err=$ac_c_preproc_warn_flag
4170 if test -z "$ac_cpp_err"; then
4171 ac_cv_header_pcrs_h=yes
4173 echo "$as_me: failed program was:" >&5
4174 cat conftest.$ac_ext >&5
4175 ac_cv_header_pcrs_h=no
4177 rm -f conftest.err conftest.$ac_ext
4179 echo "$as_me:4179: result: $ac_cv_header_pcrs_h" >&5
4180 echo "${ECHO_T}$ac_cv_header_pcrs_h" >&6
4181 if test $ac_cv_header_pcrs_h = yes; then
4191 cat >>confdefs.h <<\EOF
4195 # Check whether --enable-toggle or --disable-toggle was given.
4196 if test "${enable_toggle+set}" = set; then
4197 enableval="$enable_toggle"
4198 if test $enableval = yes; then
4199 cat >>confdefs.h <<\EOF
4200 #define FEATURE_TOGGLE 1
4205 cat >>confdefs.h <<\EOF
4206 #define FEATURE_TOGGLE 1
4211 # Check whether --enable-gzip or --disable-gzip was given.
4212 if test "${enable_gzip+set}" = set; then
4213 enableval="$enable_gzip"
4214 if test $enableval = "no"; then
4215 cat >>confdefs.h <<\EOF
4216 #define FEATURE_DENY_GZIP 1
4222 # Check whether --enable-force or --disable-force was given.
4223 if test "${enable_force+set}" = set; then
4224 enableval="$enable_force"
4225 if test $enableval = yes; then
4226 cat >>confdefs.h <<\EOF
4227 #define FEATURE_FORCE_LOAD 1
4232 cat >>confdefs.h <<\EOF
4233 #define FEATURE_FORCE_LOAD 1
4238 # Check whether --enable-fast-redirects or --disable-fast-redirects was given.
4239 if test "${enable_fast_redirects+set}" = set; then
4240 enableval="$enable_fast_redirects"
4241 if test $enableval = yes; then
4242 cat >>confdefs.h <<\EOF
4243 #define FEATURE_FAST_REDIRECTS 1
4248 cat >>confdefs.h <<\EOF
4249 #define FEATURE_FAST_REDIRECTS 1
4254 # Check whether --enable-killpopup or --disable-killpopup was given.
4255 if test "${enable_killpopup+set}" = set; then
4256 enableval="$enable_killpopup"
4257 if test $enableval = yes; then
4258 cat >>confdefs.h <<\EOF
4259 #define FEATURE_KILL_POPUPS 1
4264 cat >>confdefs.h <<\EOF
4265 #define FEATURE_KILL_POPUPS 1
4270 # Check whether --enable-stats or --disable-stats was given.
4271 if test "${enable_stats+set}" = set; then
4272 enableval="$enable_stats"
4273 if test $enableval = yes; then
4274 cat >>confdefs.h <<\EOF
4275 #define FEATURE_STATISTICS 1
4280 cat >>confdefs.h <<\EOF
4281 #define FEATURE_STATISTICS 1
4286 # Check whether --enable-ie-images or --disable-ie-images was given.
4287 if test "${enable_ie_images+set}" = set; then
4288 enableval="$enable_ie_images"
4289 if test $enableval = yes; then
4290 cat >>confdefs.h <<\EOF
4291 #define FEATURE_IMAGE_DETECT_MSIE 1
4296 cat >>confdefs.h <<\EOF
4297 #define FEATURE_IMAGE_DETECT_MSIE 1
4302 # Check whether --enable-image-blocking or --disable-image-blocking was given.
4303 if test "${enable_image_blocking+set}" = set; then
4304 enableval="$enable_image_blocking"
4305 if test $enableval = yes; then
4306 cat >>confdefs.h <<\EOF
4307 #define FEATURE_IMAGE_BLOCKING 1
4312 cat >>confdefs.h <<\EOF
4313 #define FEATURE_IMAGE_BLOCKING 1
4318 # Check whether --enable-acl-files or --disable-acl-files was given.
4319 if test "${enable_acl_files+set}" = set; then
4320 enableval="$enable_acl_files"
4321 if test $enableval = yes; then
4322 cat >>confdefs.h <<\EOF
4323 #define FEATURE_ACL 1
4328 cat >>confdefs.h <<\EOF
4329 #define FEATURE_ACL 1
4334 # Check whether --enable-trust-files or --disable-trust-files was given.
4335 if test "${enable_trust_files+set}" = set; then
4336 enableval="$enable_trust_files"
4337 if test $enableval = yes; then
4338 cat >>confdefs.h <<\EOF
4339 #define FEATURE_TRUST 1
4344 cat >>confdefs.h <<\EOF
4345 #define FEATURE_TRUST 1
4350 # Check whether --enable-jar-files or --disable-jar-files was given.
4351 if test "${enable_jar_files+set}" = set; then
4352 enableval="$enable_jar_files"
4353 if test $enableval = yes; then
4354 cat >>confdefs.h <<\EOF
4355 #define FEATURE_COOKIE_JAR 1
4360 cat >>confdefs.h <<\EOF
4361 #define FEATURE_COOKIE_JAR 1
4366 # Check whether --enable-regex-matching or --disable-regex-matching was given.
4367 if test "${enable_regex_matching+set}" = set; then
4368 enableval="$enable_regex_matching"
4369 regex_matching=$enableval
4374 # Check whether --enable-dynamic-pcre or --disable-dynamic-pcre was given.
4375 if test "${enable_dynamic_pcre+set}" = set; then
4376 enableval="$enable_dynamic_pcre"
4377 if test $enableval = "no"; then have_pcre=no; fi
4380 # Check whether --enable-dynamic-pcrs or --disable-dynamic-pcrs was given.
4381 if test "${enable_dynamic_pcrs+set}" = set; then
4382 enableval="$enable_dynamic_pcrs"
4383 if test $enableval = "no"; then have_pcrs=no; fi
4386 # Is the regex URL matching based on libpcreposix, but we
4387 # don't have that library?
4389 if test $have_pcreposix = "yes" -o $regex_matching != "pcre"; then
4390 dont_miss_pcreposix=yes
4392 dont_miss_pcreposix=no
4395 # If we have libpcre and either we also have pcreposix or
4396 # we don't need pcreposix, then link pcre dynamically; else
4397 # build it and link statically
4399 if test $have_pcre = "yes" -a $dont_miss_pcreposix = "yes"; then
4400 echo "using libpcre"
4405 echo "using built-in static pcre"
4407 cat >>confdefs.h <<\EOF
4408 #define STATIC_PCRE 1
4414 # If we have libpcrs and pcre is linked dynamically
4415 # then also link pcrs dynamically, else build and link
4418 if test $have_pcrs = "yes" -a $pcre_dyn = "yes"; then
4419 echo "using libpcrs"
4423 echo "using built-in static pcrs"
4424 cat >>confdefs.h <<\EOF
4425 #define STATIC_PCRS 1
4431 # Which method should be used for URL matching?
4432 # pcre, gnu regex or prefix matching?
4434 if test $regex_matching = "gnu"; then
4435 echo "using gnu regex for URL matching"
4436 cat >>confdefs.h <<\EOF
4442 elif test $regex_matching = "pcre"; then
4443 echo "using pcre regex for URL matching"
4444 cat >>confdefs.h <<\EOF
4445 #define REGEX_PCRE 1
4450 if test $pcre_dyn = "yes"; then
4451 LIBS="$LIBS -lpcreposix"
4454 echo -e "using prefix matching for URLs\nHint: This does NOT make the executable any smaller!"
4459 CFLAGS=$old_CFLAGS_nospecial
4461 ac_config_files="$ac_config_files Makefile"
4462 cat >confcache <<\_ACEOF
4463 # This file is a shell script that caches the results of configure
4464 # tests run on this system so they can be shared between configure
4465 # scripts and configure runs, see configure's option --config-cache.
4466 # It is not useful on other systems. If it contains results you don't
4467 # want to keep, you may remove or edit it.
4469 # config.status only pays attention to the cache file if you give it
4470 # the --recheck option to rerun configure.
4472 # `ac_cv_env_foo' variables (set or unset) will be overriden when
4473 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4478 # The following way of writing the cache mishandles newlines in values,
4479 # but we know of no workaround that is simple, portable, and efficient.
4480 # So, don't put newlines in cache variables' values.
4481 # Ultrix sh set writes to stderr and can't be redirected directly,
4482 # and sets the high bit in the cache file unless we assign to the vars.
4485 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4487 # `set' does not quote correctly, so add quotes (double-quote
4488 # substitution turns \\\\ into \\, and sed turns \\ into \).
4491 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4494 # `set' quotes correctly as required by POSIX, so do not add quotes.
4496 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4503 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4505 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4507 if cmp -s $cache_file confcache; then :; else
4508 if test -w $cache_file; then
4509 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4510 cat confcache >$cache_file
4512 echo "not updating unwritable cache $cache_file"
4517 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4518 # Let make expand exec_prefix.
4519 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4521 # VPATH may cause trouble with some makes, so we remove $(srcdir),
4522 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4523 # trailing colons and then remove the whole line if VPATH becomes empty
4524 # (actually we leave an empty line to preserve line numbers).
4525 if test "x$srcdir" = x.; then
4526 ac_vpsub='/^[ ]*VPATH[ ]*=/{
4527 s/:*\$(srcdir):*/:/;
4528 s/:*\${srcdir}:*/:/;
4530 s/^\([^=]*=[ ]*\):*/\1/;
4536 DEFS=-DHAVE_CONFIG_H
4538 : ${CONFIG_STATUS=./config.status}
4539 ac_clean_files_save=$ac_clean_files
4540 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4541 { echo "$as_me:4541: creating $CONFIG_STATUS" >&5
4542 echo "$as_me: creating $CONFIG_STATUS" >&6;}
4543 cat >$CONFIG_STATUS <<_ACEOF
4545 # Generated automatically by configure.
4546 # Run this file to recreate the current configuration.
4547 # Compiler output produced by configure, useful for debugging
4548 # configure, is in config.log if it exists.
4551 SHELL=\${CONFIG_SHELL-$SHELL}
4552 ac_cs_invocation="\$0 \$@"
4556 cat >>$CONFIG_STATUS <<\_ACEOF
4557 # Be Bourne compatible
4558 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4561 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
4565 # Name of the executable.
4566 as_me=`echo "$0" |sed 's,.*[\\/],,'`
4568 if expr a : '\(a\)' >/dev/null 2>&1; then
4574 rm -f conf$$ conf$$.exe conf$$.file
4576 if ln -s conf$$.file conf$$ 2>/dev/null; then
4577 # We could just check for DJGPP; but this test a) works b) is more generic
4578 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4579 if test -f conf$$.exe; then
4580 # Don't use ln at all; we don't have any links
4585 elif ln conf$$.file conf$$ 2>/dev/null; then
4590 rm -f conf$$ conf$$.exe conf$$.file
4592 as_executable_p="test -f"
4594 # Support unset when possible.
4595 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
4602 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
4603 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
4604 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
4605 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
4606 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
4607 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
4608 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
4609 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
4612 # We need space, tab and new line, in precisely that order.
4618 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
4624 # Files that config.status was made for.
4625 if test -n "$ac_config_files"; then
4626 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
4629 if test -n "$ac_config_headers"; then
4630 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
4633 if test -n "$ac_config_links"; then
4634 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
4637 if test -n "$ac_config_commands"; then
4638 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
4641 cat >>$CONFIG_STATUS <<\EOF
4644 \`$as_me' instantiates files from templates according to the
4645 current configuration.
4647 Usage: $0 [OPTIONS] [FILE]...
4649 -h, --help print this help, then exit
4650 -V, --version print version number, then exit
4651 -d, --debug don't remove temporary files
4652 --recheck update $as_me by reconfiguring in the same conditions
4653 --file=FILE[:TEMPLATE]
4654 instantiate the configuration file FILE
4655 --header=FILE[:TEMPLATE]
4656 instantiate the configuration header FILE
4658 Configuration files:
4661 Configuration headers:
4664 Report bugs to <bug-autoconf@gnu.org>."
4667 cat >>$CONFIG_STATUS <<EOF
4670 configured by $0, generated by GNU Autoconf 2.52,
4671 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
4673 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
4674 Free Software Foundation, Inc.
4675 This config.status script is free software; the Free Software Foundation
4676 gives unlimited permission to copy, distribute and modify it."
4680 cat >>$CONFIG_STATUS <<\EOF
4681 # If no file are specified by the user, then we need to provide default
4682 # value. By we need to know if files were specified by the user.
4688 ac_option=`expr "x$1" : 'x\([^=]*\)='`
4689 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
4691 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
4695 *) # This is not an option, so the user has probably given explicit
4697 ac_need_defaults=false;;
4701 # Handling of the options.
4703 cat >>$CONFIG_STATUS <<EOF
4704 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4705 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
4706 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
4708 cat >>$CONFIG_STATUS <<\EOF
4709 --version | --vers* | -V )
4710 echo "$ac_cs_version"; exit 0 ;;
4712 # Conflict between --help and --header
4713 { { echo "$as_me:4713: error: ambiguous option: $1
4714 Try \`$0 --help' for more information." >&5
4715 echo "$as_me: error: ambiguous option: $1
4716 Try \`$0 --help' for more information." >&2;}
4717 { (exit 1); exit 1; }; };;
4718 --help | --hel | -h )
4719 echo "$ac_cs_usage"; exit 0 ;;
4720 --debug | --d* | -d )
4722 --file | --fil | --fi | --f )
4724 CONFIG_FILES="$CONFIG_FILES $1"
4725 ac_need_defaults=false;;
4726 --header | --heade | --head | --hea )
4728 CONFIG_HEADERS="$CONFIG_HEADERS $1"
4729 ac_need_defaults=false;;
4732 -*) { { echo "$as_me:4732: error: unrecognized option: $1
4733 Try \`$0 --help' for more information." >&5
4734 echo "$as_me: error: unrecognized option: $1
4735 Try \`$0 --help' for more information." >&2;}
4736 { (exit 1); exit 1; }; } ;;
4738 *) ac_config_targets="$ac_config_targets $1" ;;
4747 ## ----------------------- ##
4748 ## Running config.status. ##
4749 ## ----------------------- ##
4751 This file was extended by $as_me 2.52, executed with
4752 CONFIG_FILES = $CONFIG_FILES
4753 CONFIG_HEADERS = $CONFIG_HEADERS
4754 CONFIG_LINKS = $CONFIG_LINKS
4755 CONFIG_COMMANDS = $CONFIG_COMMANDS
4757 on `(hostname || uname -n) 2>/dev/null | sed 1q`
4762 cat >>$CONFIG_STATUS <<\EOF
4763 for ac_config_target in $ac_config_targets
4765 case "$ac_config_target" in
4766 # Handling of arguments.
4767 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4768 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
4769 *) { { echo "$as_me:4769: error: invalid argument: $ac_config_target" >&5
4770 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4771 { (exit 1); exit 1; }; };;
4775 # If the user did not use the arguments to specify the items to instantiate,
4776 # then the envvar interface is used. Set only those that are not.
4777 # We use the long form for the default assignment because of an extremely
4778 # bizarre bug on SunOS 4.1.3.
4779 if $ac_need_defaults; then
4780 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4781 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
4784 # Create a temporary directory, and hook for its removal unless debugging.
4787 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4788 trap '{ (exit 1); exit 1; }' 1 2 13 15
4791 # Create a (secure) tmp directory for tmp files.
4794 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
4795 test -n "$tmp" && test -d "$tmp"
4798 tmp=$TMPDIR/cs$$-$RANDOM
4799 (umask 077 && mkdir $tmp)
4802 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
4803 { (exit 1); exit 1; }
4808 cat >>$CONFIG_STATUS <<EOF
4811 # CONFIG_FILES section.
4814 # No need to generate the scripts if there are no CONFIG_FILES.
4815 # This happens for instance when ./config.status config.h
4816 if test -n "\$CONFIG_FILES"; then
4817 # Protect against being on the right side of a sed subst in config.status.
4818 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
4819 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
4820 s,@SHELL@,$SHELL,;t t
4821 s,@exec_prefix@,$exec_prefix,;t t
4822 s,@prefix@,$prefix,;t t
4823 s,@program_transform_name@,$program_transform_name,;t t
4824 s,@bindir@,$bindir,;t t
4825 s,@sbindir@,$sbindir,;t t
4826 s,@libexecdir@,$libexecdir,;t t
4827 s,@datadir@,$datadir,;t t
4828 s,@sysconfdir@,$sysconfdir,;t t
4829 s,@sharedstatedir@,$sharedstatedir,;t t
4830 s,@localstatedir@,$localstatedir,;t t
4831 s,@libdir@,$libdir,;t t
4832 s,@includedir@,$includedir,;t t
4833 s,@oldincludedir@,$oldincludedir,;t t
4834 s,@infodir@,$infodir,;t t
4835 s,@mandir@,$mandir,;t t
4836 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
4837 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
4838 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
4839 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
4840 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
4841 s,@build_alias@,$build_alias,;t t
4842 s,@host_alias@,$host_alias,;t t
4843 s,@target_alias@,$target_alias,;t t
4844 s,@ECHO_C@,$ECHO_C,;t t
4845 s,@ECHO_N@,$ECHO_N,;t t
4846 s,@ECHO_T@,$ECHO_T,;t t
4847 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
4850 s,@build@,$build,;t t
4851 s,@build_cpu@,$build_cpu,;t t
4852 s,@build_vendor@,$build_vendor,;t t
4853 s,@build_os@,$build_os,;t t
4855 s,@host_cpu@,$host_cpu,;t t
4856 s,@host_vendor@,$host_vendor,;t t
4857 s,@host_os@,$host_os,;t t
4858 s,@VERSION_MAJOR@,$VERSION_MAJOR,;t t
4859 s,@VERSION_MINOR@,$VERSION_MINOR,;t t
4860 s,@VERSION_POINT@,$VERSION_POINT,;t t
4862 s,@CFLAGS@,$CFLAGS,;t t
4863 s,@LDFLAGS@,$LDFLAGS,;t t
4864 s,@CPPFLAGS@,$CPPFLAGS,;t t
4865 s,@ac_ct_CC@,$ac_ct_CC,;t t
4866 s,@EXEEXT@,$EXEEXT,;t t
4867 s,@OBJEXT@,$OBJEXT,;t t
4870 s,@WIN_ONLY@,$WIN_ONLY,;t t
4871 s,@PTHREAD_ONLY@,$PTHREAD_ONLY,;t t
4872 s,@SOCKET_LIB@,$SOCKET_LIB,;t t
4873 s,@AMIGAOS_ONLY@,$AMIGAOS_ONLY,;t t
4874 s,@GNU_REGEX_ONLY@,$GNU_REGEX_ONLY,;t t
4875 s,@PCRE_REGEX_ONLY@,$PCRE_REGEX_ONLY,;t t
4876 s,@STATIC_PCRE_ONLY@,$STATIC_PCRE_ONLY,;t t
4877 s,@STATIC_PCRS_ONLY@,$STATIC_PCRS_ONLY,;t t
4878 s,@SPECIAL_CFLAGS@,$SPECIAL_CFLAGS,;t t
4879 s,@PTHREAD_LIB@,$PTHREAD_LIB,;t t
4884 cat >>$CONFIG_STATUS <<\EOF
4885 # Split the substitutions into bite-sized pieces for seds with
4886 # small command number limits, like on Digital OSF/1 and HP-UX.
4888 ac_sed_frag=1 # Number of current file.
4889 ac_beg=1 # First line for current file.
4890 ac_end=$ac_max_sed_lines # Line after last line for current file.
4893 while $ac_more_lines; do
4894 if test $ac_beg -gt 1; then
4895 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4897 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4899 if test ! -s $tmp/subs.frag; then
4902 # The purpose of the label and of the branching condition is to
4903 # speed up the sed processing (if there are no `@' at all, there
4904 # is no need to browse any of the substitutions).
4905 # These are the two extra sed commands mentioned above.
4907 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
4908 if test -z "$ac_sed_cmds"; then
4909 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
4911 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
4913 ac_sed_frag=`expr $ac_sed_frag + 1`
4915 ac_end=`expr $ac_end + $ac_max_sed_lines`
4918 if test -z "$ac_sed_cmds"; then
4921 fi # test -n "$CONFIG_FILES"
4924 cat >>$CONFIG_STATUS <<\EOF
4925 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
4926 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4928 - | *:- | *:-:* ) # input from stdin
4930 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4931 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4932 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4933 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4934 * ) ac_file_in=$ac_file.in ;;
4937 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
4938 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4939 X"$ac_file" : 'X\(//\)[^/]' \| \
4940 X"$ac_file" : 'X\(//\)$' \| \
4941 X"$ac_file" : 'X\(/\)' \| \
4942 . : '\(.\)' 2>/dev/null ||
4944 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4945 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4946 /^X\(\/\/\)$/{ s//\1/; q; }
4947 /^X\(\/\).*/{ s//\1/; q; }
4949 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4951 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
4955 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
4956 case $as_mkdir_dir in
4957 # Skip DOS drivespec
4958 ?:) as_incr_dir=$as_mkdir_dir ;;
4960 as_incr_dir=$as_incr_dir/$as_mkdir_dir
4961 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
4966 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
4967 # A "../" for each directory in $ac_dir_suffix.
4968 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
4970 ac_dir_suffix= ac_dots=
4975 if test -z "$ac_dots"; then
4978 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
4981 ac_srcdir=$srcdir$ac_dir_suffix;
4982 ac_top_srcdir=$srcdir ;;
4984 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
4985 ac_top_srcdir=$ac_dots$srcdir ;;
4988 if test x"$ac_file" != x-; then
4989 { echo "$as_me:4989: creating $ac_file" >&5
4990 echo "$as_me: creating $ac_file" >&6;}
4993 # Let's still pretend it is `configure' which instantiates (i.e., don't
4994 # use $as_me), people would be surprised to read:
4995 # /* config.h. Generated automatically by config.status. */
4996 configure_input="Generated automatically from `echo $ac_file_in |
4997 sed 's,.*/,,'` by configure."
4999 # First look for the input files in the build tree, otherwise in the
5001 ac_file_inputs=`IFS=:
5002 for f in $ac_file_in; do
5004 -) echo $tmp/stdin ;;
5006 # Absolute (can't be DOS-style, as IFS=:)
5007 test -f "$f" || { { echo "$as_me:5007: error: cannot find input file: $f" >&5
5008 echo "$as_me: error: cannot find input file: $f" >&2;}
5009 { (exit 1); exit 1; }; }
5012 if test -f "$f"; then
5015 elif test -f "$srcdir/$f"; then
5020 { { echo "$as_me:5020: error: cannot find input file: $f" >&5
5021 echo "$as_me: error: cannot find input file: $f" >&2;}
5022 { (exit 1); exit 1; }; }
5025 done` || { (exit 1); exit 1; }
5027 cat >>$CONFIG_STATUS <<EOF
5031 cat >>$CONFIG_STATUS <<\EOF
5033 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5034 s,@configure_input@,$configure_input,;t t
5035 s,@srcdir@,$ac_srcdir,;t t
5036 s,@top_srcdir@,$ac_top_srcdir,;t t
5037 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5039 if test x"$ac_file" != x-; then
5040 mv $tmp/out $ac_file
5048 cat >>$CONFIG_STATUS <<\EOF
5051 # CONFIG_HEADER section.
5054 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5055 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5057 # ac_d sets the value in "#define NAME VALUE" lines.
5058 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5059 ac_dB='[ ].*$,\1#\2'
5062 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5063 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5064 ac_uB='$,\1#\2define\3'
5068 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
5069 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5071 - | *:- | *:-:* ) # input from stdin
5073 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5074 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5075 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5076 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5077 * ) ac_file_in=$ac_file.in ;;
5080 test x"$ac_file" != x- && { echo "$as_me:5080: creating $ac_file" >&5
5081 echo "$as_me: creating $ac_file" >&6;}
5083 # First look for the input files in the build tree, otherwise in the
5085 ac_file_inputs=`IFS=:
5086 for f in $ac_file_in; do
5088 -) echo $tmp/stdin ;;
5090 # Absolute (can't be DOS-style, as IFS=:)
5091 test -f "$f" || { { echo "$as_me:5091: error: cannot find input file: $f" >&5
5092 echo "$as_me: error: cannot find input file: $f" >&2;}
5093 { (exit 1); exit 1; }; }
5096 if test -f "$f"; then
5099 elif test -f "$srcdir/$f"; then
5104 { { echo "$as_me:5104: error: cannot find input file: $f" >&5
5105 echo "$as_me: error: cannot find input file: $f" >&2;}
5106 { (exit 1); exit 1; }; }
5109 done` || { (exit 1); exit 1; }
5110 # Remove the trailing spaces.
5111 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
5115 # Transform confdefs.h into two sed scripts, `conftest.defines' and
5116 # `conftest.undefs', that substitutes the proper values into
5117 # config.h.in to produce config.h. The first handles `#define'
5118 # templates, and the second `#undef' templates.
5119 # And first: Protect against being on the right side of a sed subst in
5120 # config.status. Protect against being in an unquoted here document
5122 rm -f conftest.defines conftest.undefs
5123 # Using a here document instead of a string reduces the quoting nightmare.
5124 # Putting comments in sed scripts is not portable.
5126 # `end' is used to avoid that the second main sed command (meant for
5127 # 0-ary CPP macros) applies to n-ary macro definitions.
5128 # See the Autoconf documentation for `clear'.
5129 cat >confdef2sed.sed <<\EOF
5134 s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
5136 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
5139 # If some macros were called several times there might be several times
5140 # the same #defines, which is useless. Nevertheless, we may not want to
5141 # sort them, since we want the *last* AC-DEFINE to be honored.
5142 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
5143 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
5144 rm -f confdef2sed.sed
5146 # This sed command replaces #undef with comments. This is necessary, for
5147 # example, in the case of _POSIX_SOURCE, which is predefined and required
5148 # on some systems where configure will not decide to define it.
5149 cat >>conftest.undefs <<\EOF
5150 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
5153 # Break up conftest.defines because some shells have a limit on the size
5154 # of here documents, and old seds have small limits too (100 cmds).
5155 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
5156 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
5157 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
5158 echo ' :' >>$CONFIG_STATUS
5160 while grep . conftest.defines >/dev/null
5162 # Write a limited-size here document to $tmp/defines.sed.
5163 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
5164 # Speed up: don't consider the non `#define' lines.
5165 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
5166 # Work around the forget-to-reset-the-flag bug.
5167 echo 't clr' >>$CONFIG_STATUS
5168 echo ': clr' >>$CONFIG_STATUS
5169 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
5171 sed -f $tmp/defines.sed $tmp/in >$tmp/out
5175 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
5176 rm -f conftest.defines
5177 mv conftest.tail conftest.defines
5179 rm -f conftest.defines
5180 echo ' fi # egrep' >>$CONFIG_STATUS
5181 echo >>$CONFIG_STATUS
5183 # Break up conftest.undefs because some shells have a limit on the size
5184 # of here documents, and old seds have small limits too (100 cmds).
5185 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
5187 while grep . conftest.undefs >/dev/null
5189 # Write a limited-size here document to $tmp/undefs.sed.
5190 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
5191 # Speed up: don't consider the non `#undef'
5192 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
5193 # Work around the forget-to-reset-the-flag bug.
5194 echo 't clr' >>$CONFIG_STATUS
5195 echo ': clr' >>$CONFIG_STATUS
5196 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
5198 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
5202 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
5203 rm -f conftest.undefs
5204 mv conftest.tail conftest.undefs
5206 rm -f conftest.undefs
5208 cat >>$CONFIG_STATUS <<\EOF
5209 # Let's still pretend it is `configure' which instantiates (i.e., don't
5210 # use $as_me), people would be surprised to read:
5211 # /* config.h. Generated automatically by config.status. */
5212 if test x"$ac_file" = x-; then
5213 echo "/* Generated automatically by configure. */" >$tmp/config.h
5215 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
5217 cat $tmp/in >>$tmp/config.h
5219 if test x"$ac_file" != x-; then
5220 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
5221 { echo "$as_me:5221: $ac_file is unchanged" >&5
5222 echo "$as_me: $ac_file is unchanged" >&6;}
5224 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5225 X"$ac_file" : 'X\(//\)[^/]' \| \
5226 X"$ac_file" : 'X\(//\)$' \| \
5227 X"$ac_file" : 'X\(/\)' \| \
5228 . : '\(.\)' 2>/dev/null ||
5230 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5231 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5232 /^X\(\/\/\)$/{ s//\1/; q; }
5233 /^X\(\/\).*/{ s//\1/; q; }
5235 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5237 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
5241 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
5242 case $as_mkdir_dir in
5243 # Skip DOS drivespec
5244 ?:) as_incr_dir=$as_mkdir_dir ;;
5246 as_incr_dir=$as_incr_dir/$as_mkdir_dir
5247 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
5254 mv $tmp/config.h $ac_file
5263 cat >>$CONFIG_STATUS <<\EOF
5265 { (exit 0); exit 0; }
5267 chmod +x $CONFIG_STATUS
5268 ac_clean_files=$ac_clean_files_save
5270 # configure is writing to config.log, and then calls config.status.
5271 # config.status does its own redirection, appending to config.log.
5272 # Unfortunately, on DOS this fails, as config.log is still kept open
5273 # by configure, so config.status won't be able to write to it; its
5274 # output is simply discarded. So we exec the FD to /dev/null,
5275 # effectively closing config.log, so it can be properly (re)opened and
5276 # appended to by config.status. When coming back to configure, we
5277 # need to make the FD available again.
5278 if test "$no_create" != yes; then
5281 $SHELL $CONFIG_STATUS || ac_cs_success=false
5283 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5284 # would make configure fail if this is the last instruction.
5285 $ac_cs_success || { (exit 1); exit 1; }