2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by Autoconf 2.52.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
10 # Avoid depending upon Character Ranges.
11 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14 as_cr_digits='0123456789'
15 as_cr_alnum=$as_cr_Letters$as_cr_digits
17 # Sed expression to map a string onto a valid variable name.
18 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
20 # Sed expression to map a string onto a valid CPP name.
21 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23 # Be Bourne compatible
24 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
27 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
31 # Name of the executable.
32 as_me=`echo "$0" |sed 's,.*[\\/],,'`
34 if expr a : '\(a\)' >/dev/null 2>&1; then
40 rm -f conf$$ conf$$.exe conf$$.file
42 if ln -s conf$$.file conf$$ 2>/dev/null; then
43 # We could just check for DJGPP; but this test a) works b) is more generic
44 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
45 if test -f conf$$.exe; then
46 # Don't use ln at all; we don't have any links
51 elif ln conf$$.file conf$$ 2>/dev/null; then
56 rm -f conf$$ conf$$.exe conf$$.file
58 as_executable_p="test -f"
60 # Support unset when possible.
61 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
68 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
69 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
70 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
71 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
72 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
73 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
74 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
75 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
78 # We need space, tab and new line, in precisely that order.
84 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
87 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
88 # so uname gets run too.
89 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
96 ac_default_prefix=/usr/local
100 SHELL=${CONFIG_SHELL-/bin/sh}
102 # Maximum number of lines to put in a shell here document.
103 # This variable seems obsolete. It should probably be removed, and
104 # only ac_max_sed_lines should be used.
105 : ${ac_max_here_lines=38}
107 ac_unique_file="src/treefuncs.h"
109 # Initialize some variables set by options.
111 ac_init_version=false
112 # The variables have the same names as the options, with
113 # dashes changed to underlines.
121 program_transform_name=s,x,x,
129 # Installation directory options.
130 # These are left unexpanded so users can "make install exec_prefix=/foo"
131 # and all the variables that are supposed to be based on exec_prefix
132 # by default will actually change.
133 # Use braces instead of parens because sh, perl, etc. also accept them.
134 bindir='${exec_prefix}/bin'
135 sbindir='${exec_prefix}/sbin'
136 libexecdir='${exec_prefix}/libexec'
137 datadir='${prefix}/share'
138 sysconfdir='${prefix}/etc'
139 sharedstatedir='${prefix}/com'
140 localstatedir='${prefix}/var'
141 libdir='${exec_prefix}/lib'
142 includedir='${prefix}/include'
143 oldincludedir='/usr/include'
144 infodir='${prefix}/info'
145 mandir='${prefix}/man'
147 # Identity of this package.
157 # If the previous option needs an argument, assign it.
158 if test -n "$ac_prev"; then
159 eval "$ac_prev=\$ac_option"
164 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
166 # Accept the important Cygnus configure options, so we can diagnose typos.
170 -bindir | --bindir | --bindi | --bind | --bin | --bi)
172 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
175 -build | --build | --buil | --bui | --bu)
176 ac_prev=build_alias ;;
177 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
178 build_alias=$ac_optarg ;;
180 -cache-file | --cache-file | --cache-fil | --cache-fi \
181 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
182 ac_prev=cache_file ;;
183 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
184 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
185 cache_file=$ac_optarg ;;
188 cache_file=config.cache ;;
190 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
192 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
194 datadir=$ac_optarg ;;
196 -disable-* | --disable-*)
197 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
198 # Reject names that are not valid shell variable names.
199 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
200 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
201 { (exit 1); exit 1; }; }
202 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
203 eval "enable_$ac_feature=no" ;;
205 -enable-* | --enable-*)
206 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
207 # Reject names that are not valid shell variable names.
208 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
209 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
210 { (exit 1); exit 1; }; }
211 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
213 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
216 eval "enable_$ac_feature='$ac_optarg'" ;;
218 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
219 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
220 | --exec | --exe | --ex)
221 ac_prev=exec_prefix ;;
222 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
223 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
224 | --exec=* | --exe=* | --ex=*)
225 exec_prefix=$ac_optarg ;;
227 -gas | --gas | --ga | --g)
228 # Obsolete; use --with-gas.
231 -help | --help | --hel | --he | -h)
233 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
234 ac_init_help=recursive ;;
235 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
236 ac_init_help=short ;;
238 -host | --host | --hos | --ho)
239 ac_prev=host_alias ;;
240 -host=* | --host=* | --hos=* | --ho=*)
241 host_alias=$ac_optarg ;;
243 -includedir | --includedir | --includedi | --included | --include \
244 | --includ | --inclu | --incl | --inc)
245 ac_prev=includedir ;;
246 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
247 | --includ=* | --inclu=* | --incl=* | --inc=*)
248 includedir=$ac_optarg ;;
250 -infodir | --infodir | --infodi | --infod | --info | --inf)
252 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
253 infodir=$ac_optarg ;;
255 -libdir | --libdir | --libdi | --libd)
257 -libdir=* | --libdir=* | --libdi=* | --libd=*)
260 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
261 | --libexe | --libex | --libe)
262 ac_prev=libexecdir ;;
263 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
264 | --libexe=* | --libex=* | --libe=*)
265 libexecdir=$ac_optarg ;;
267 -localstatedir | --localstatedir | --localstatedi | --localstated \
268 | --localstate | --localstat | --localsta | --localst \
269 | --locals | --local | --loca | --loc | --lo)
270 ac_prev=localstatedir ;;
271 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
272 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
273 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
274 localstatedir=$ac_optarg ;;
276 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
278 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
282 # Obsolete; use --without-fp.
285 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
289 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
290 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
293 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
294 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
295 | --oldin | --oldi | --old | --ol | --o)
296 ac_prev=oldincludedir ;;
297 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
298 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
299 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
300 oldincludedir=$ac_optarg ;;
302 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
304 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
307 -program-prefix | --program-prefix | --program-prefi | --program-pref \
308 | --program-pre | --program-pr | --program-p)
309 ac_prev=program_prefix ;;
310 -program-prefix=* | --program-prefix=* | --program-prefi=* \
311 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
312 program_prefix=$ac_optarg ;;
314 -program-suffix | --program-suffix | --program-suffi | --program-suff \
315 | --program-suf | --program-su | --program-s)
316 ac_prev=program_suffix ;;
317 -program-suffix=* | --program-suffix=* | --program-suffi=* \
318 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
319 program_suffix=$ac_optarg ;;
321 -program-transform-name | --program-transform-name \
322 | --program-transform-nam | --program-transform-na \
323 | --program-transform-n | --program-transform- \
324 | --program-transform | --program-transfor \
325 | --program-transfo | --program-transf \
326 | --program-trans | --program-tran \
327 | --progr-tra | --program-tr | --program-t)
328 ac_prev=program_transform_name ;;
329 -program-transform-name=* | --program-transform-name=* \
330 | --program-transform-nam=* | --program-transform-na=* \
331 | --program-transform-n=* | --program-transform-=* \
332 | --program-transform=* | --program-transfor=* \
333 | --program-transfo=* | --program-transf=* \
334 | --program-trans=* | --program-tran=* \
335 | --progr-tra=* | --program-tr=* | --program-t=*)
336 program_transform_name=$ac_optarg ;;
338 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
339 | -silent | --silent | --silen | --sile | --sil)
342 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
344 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
346 sbindir=$ac_optarg ;;
348 -sharedstatedir | --sharedstatedir | --sharedstatedi \
349 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
350 | --sharedst | --shareds | --shared | --share | --shar \
352 ac_prev=sharedstatedir ;;
353 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
354 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
355 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
357 sharedstatedir=$ac_optarg ;;
359 -site | --site | --sit)
361 -site=* | --site=* | --sit=*)
364 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
366 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
369 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
370 | --syscon | --sysco | --sysc | --sys | --sy)
371 ac_prev=sysconfdir ;;
372 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
373 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
374 sysconfdir=$ac_optarg ;;
376 -target | --target | --targe | --targ | --tar | --ta | --t)
377 ac_prev=target_alias ;;
378 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
379 target_alias=$ac_optarg ;;
381 -v | -verbose | --verbose | --verbos | --verbo | --verb)
384 -version | --version | --versio | --versi | --vers | -V)
388 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
389 # Reject names that are not valid shell variable names.
390 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
391 { echo "$as_me: error: invalid package name: $ac_package" >&2
392 { (exit 1); exit 1; }; }
393 ac_package=`echo $ac_package| sed 's/-/_/g'`
395 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
398 eval "with_$ac_package='$ac_optarg'" ;;
400 -without-* | --without-*)
401 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
402 # Reject names that are not valid shell variable names.
403 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
404 { echo "$as_me: error: invalid package name: $ac_package" >&2
405 { (exit 1); exit 1; }; }
406 ac_package=`echo $ac_package | sed 's/-/_/g'`
407 eval "with_$ac_package=no" ;;
410 # Obsolete; use --with-x.
413 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
414 | --x-incl | --x-inc | --x-in | --x-i)
415 ac_prev=x_includes ;;
416 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
417 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
418 x_includes=$ac_optarg ;;
420 -x-libraries | --x-libraries | --x-librarie | --x-librari \
421 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
422 ac_prev=x_libraries ;;
423 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
424 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
425 x_libraries=$ac_optarg ;;
427 -*) { echo "$as_me: error: unrecognized option: $ac_option
428 Try \`$0 --help' for more information." >&2
429 { (exit 1); exit 1; }; }
433 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
434 # Reject names that are not valid shell variable names.
435 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
436 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
437 { (exit 1); exit 1; }; }
438 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
439 eval "$ac_envvar='$ac_optarg'"
443 # FIXME: should be removed in autoconf 3.0.
444 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
445 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
446 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
447 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
453 if test -n "$ac_prev"; then
454 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
455 { echo "$as_me: error: missing argument to $ac_option" >&2
456 { (exit 1); exit 1; }; }
459 # Be sure to have absolute paths.
460 for ac_var in exec_prefix prefix
462 eval ac_val=$`echo $ac_var`
464 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
465 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
466 { (exit 1); exit 1; }; };;
470 # Be sure to have absolute paths.
471 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
472 localstatedir libdir includedir oldincludedir infodir mandir
474 eval ac_val=$`echo $ac_var`
476 [\\/$]* | ?:[\\/]* ) ;;
477 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
478 { (exit 1); exit 1; }; };;
482 # There might be people who depend on the old broken behavior: `$host'
483 # used to hold the argument of --host etc.
488 # FIXME: should be removed in autoconf 3.0.
489 if test "x$host_alias" != x; then
490 if test "x$build_alias" = x; then
491 cross_compiling=maybe
492 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
493 If a cross compiler is detected then cross compile mode will be used." >&2
494 elif test "x$build_alias" != "x$host_alias"; then
500 test -n "$host_alias" && ac_tool_prefix=$host_alias-
502 test "$silent" = yes && exec 6>/dev/null
504 # Find the source files, if location was not specified.
505 if test -z "$srcdir"; then
506 ac_srcdir_defaulted=yes
507 # Try the directory containing this script, then its parent.
509 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
510 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
512 if test ! -r $srcdir/$ac_unique_file; then
516 ac_srcdir_defaulted=no
518 if test ! -r $srcdir/$ac_unique_file; then
519 if test "$ac_srcdir_defaulted" = yes; then
520 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
521 { (exit 1); exit 1; }; }
523 { echo "$as_me: error: cannot find sources in $srcdir" >&2
524 { (exit 1); exit 1; }; }
527 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
528 ac_env_build_alias_set=${build_alias+set}
529 ac_env_build_alias_value=$build_alias
530 ac_cv_env_build_alias_set=${build_alias+set}
531 ac_cv_env_build_alias_value=$build_alias
532 ac_env_host_alias_set=${host_alias+set}
533 ac_env_host_alias_value=$host_alias
534 ac_cv_env_host_alias_set=${host_alias+set}
535 ac_cv_env_host_alias_value=$host_alias
536 ac_env_target_alias_set=${target_alias+set}
537 ac_env_target_alias_value=$target_alias
538 ac_cv_env_target_alias_set=${target_alias+set}
539 ac_cv_env_target_alias_value=$target_alias
540 ac_env_CC_set=${CC+set}
542 ac_cv_env_CC_set=${CC+set}
543 ac_cv_env_CC_value=$CC
544 ac_env_CFLAGS_set=${CFLAGS+set}
545 ac_env_CFLAGS_value=$CFLAGS
546 ac_cv_env_CFLAGS_set=${CFLAGS+set}
547 ac_cv_env_CFLAGS_value=$CFLAGS
548 ac_env_LDFLAGS_set=${LDFLAGS+set}
549 ac_env_LDFLAGS_value=$LDFLAGS
550 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
551 ac_cv_env_LDFLAGS_value=$LDFLAGS
552 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
553 ac_env_CPPFLAGS_value=$CPPFLAGS
554 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
555 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
556 ac_env_CPP_set=${CPP+set}
557 ac_env_CPP_value=$CPP
558 ac_cv_env_CPP_set=${CPP+set}
559 ac_cv_env_CPP_value=$CPP
562 # Report the --help message.
564 if test "$ac_init_help" = "long"; then
565 # Omit some internal or obsolete options to make the list less imposing.
566 # This message is too long to be a string in the A/UX 3.1 sh.
568 \`configure' configures this package to adapt to many kinds of systems.
570 Usage: $0 [OPTION]... [VAR=VALUE]...
572 To assign environment variables (e.g., CC, CFLAGS...), specify them as
573 VAR=VALUE. See below for descriptions of some of the useful variables.
575 Defaults for the options are specified in brackets.
578 -h, --help display this help and exit
579 --help=short display options specific to this package
580 --help=recursive display the short help of all the included packages
581 -V, --version display version information and exit
582 -q, --quiet, --silent do not print \`checking...' messages
583 --cache-file=FILE cache test results in FILE [disabled]
584 -C, --config-cache alias for \`--cache-file=config.cache'
585 -n, --no-create do not create output files
586 --srcdir=DIR find the sources in DIR [configure dir or \`..']
591 Installation directories:
592 --prefix=PREFIX install architecture-independent files in PREFIX
594 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
597 By default, \`make install' will install all the files in
598 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
599 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
600 for instance \`--prefix=\$HOME'.
602 For better control, use the options below.
604 Fine tuning of the installation directories:
605 --bindir=DIR user executables [EPREFIX/bin]
606 --sbindir=DIR system admin executables [EPREFIX/sbin]
607 --libexecdir=DIR program executables [EPREFIX/libexec]
608 --datadir=DIR read-only architecture-independent data [PREFIX/share]
609 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
610 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
611 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
612 --libdir=DIR object code libraries [EPREFIX/lib]
613 --includedir=DIR C header files [PREFIX/include]
614 --oldincludedir=DIR C header files for non-gcc [/usr/include]
615 --infodir=DIR info documentation [PREFIX/info]
616 --mandir=DIR man documentation [PREFIX/man]
622 --program-prefix=PREFIX prepend PREFIX to installed program names
623 --program-suffix=SUFFIX append SUFFIX to installed program names
624 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
628 if test -n "$ac_init_help"; then
633 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
634 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
635 --disable-glibtest Do not try to compile and run a test GLIB program
636 --enable-maintainer-mode enable make rules and dependencies not useful
637 (and sometimes confusing) to the casual installer
640 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
641 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
642 --with-glib-prefix=PFX Prefix where GLIB is installed (optional)
643 --with-glib-exec-prefix=PFX Exec prefix where GLIB is installed (optional)
645 Some influential environment variables:
646 CC C compiler command
647 CFLAGS C compiler flags
648 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
649 nonstandard directory <lib dir>
650 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
651 headers in a nonstandard directory <include dir>
654 Use these variables to override the choices made by `configure' or to help
655 it to find libraries and programs with nonstandard names/locations.
660 if test "$ac_init_help" = "recursive"; then
661 # If there are subdirs, report their specific --help.
663 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
665 # A "../" for each directory in /$ac_subdir.
666 ac_dots=`echo $ac_subdir |
667 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
670 .) # No --srcdir option. We are building in place.
671 ac_sub_srcdir=$srcdir ;;
672 [\\/]* | ?:[\\/]* ) # Absolute path.
673 ac_sub_srcdir=$srcdir/$ac_subdir ;;
675 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
678 # Check for guested configure; otherwise get Cygnus style configure.
679 if test -f $ac_sub_srcdir/configure.gnu; then
681 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
682 elif test -f $ac_sub_srcdir/configure; then
684 $SHELL $ac_sub_srcdir/configure --help=recursive
685 elif test -f $ac_sub_srcdir/configure.ac ||
686 test -f $ac_sub_srcdir/configure.in; then
690 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
696 test -n "$ac_init_help" && exit 0
697 if $ac_init_version; then
700 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
701 Free Software Foundation, Inc.
702 This configure script is free software; the Free Software Foundation
703 gives unlimited permission to copy, distribute and modify it.
709 This file contains any messages produced by compilers while
710 running configure, to aid debugging if configure makes a mistake.
712 It was created by $as_me, which was
713 generated by GNU Autoconf 2.52. Invocation command line was
724 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
725 uname -m = `(uname -m) 2>/dev/null || echo unknown`
726 uname -r = `(uname -r) 2>/dev/null || echo unknown`
727 uname -s = `(uname -s) 2>/dev/null || echo unknown`
728 uname -v = `(uname -v) 2>/dev/null || echo unknown`
730 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
731 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
733 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
734 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
735 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
736 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
737 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
738 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
739 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
753 # Keep a trace of the command line.
754 # Strip out --no-create and --no-recursion so they do not pile up.
755 # Also quote any args containing shell meta-characters.
761 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
762 | --no-cr | --no-c) ;;
763 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
764 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
765 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
766 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
767 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
769 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
772 # Get rid of the leading space.
775 # When interrupted or exit'd, cleanup temporary files, and complete
776 # config.log. We remove comments because anyway the quotes in there
777 # would cause problems or look ugly.
779 # Save into config.log some information that might help in debugging.
781 echo "## ----------------- ##" >&5
782 echo "## Cache variables. ##" >&5
783 echo "## ----------------- ##" >&5
785 # The following way of writing the cache mishandles newlines in values,
788 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
791 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
792 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
796 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
800 sed "/^$/d" confdefs.h >conftest.log
801 if test -s conftest.log; then
803 echo "## ------------ ##" >&5
804 echo "## confdefs.h. ##" >&5
805 echo "## ------------ ##" >&5
810 test "$ac_signal" != 0 &&
811 echo "$as_me: caught signal $ac_signal" >&5
812 echo "$as_me: exit $exit_status" >&5
813 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
816 for ac_signal in 1 2 13 15; do
817 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
821 # confdefs.h avoids OS command line length limits that DEFS can exceed.
822 rm -rf conftest* confdefs.h
823 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
826 # Let the site file select an alternate cache file if it wants to.
827 # Prefer explicitly selected file to automatically selected ones.
828 if test -z "$CONFIG_SITE"; then
829 if test "x$prefix" != xNONE; then
830 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
832 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
835 for ac_site_file in $CONFIG_SITE; do
836 if test -r "$ac_site_file"; then
837 { echo "$as_me:837: loading site script $ac_site_file" >&5
838 echo "$as_me: loading site script $ac_site_file" >&6;}
839 cat "$ac_site_file" >&5
844 if test -r "$cache_file"; then
845 # Some versions of bash will fail to source /dev/null (special
846 # files actually), so we avoid doing that.
847 if test -f "$cache_file"; then
848 { echo "$as_me:848: loading cache $cache_file" >&5
849 echo "$as_me: loading cache $cache_file" >&6;}
851 [\\/]* | ?:[\\/]* ) . $cache_file;;
856 { echo "$as_me:856: creating cache $cache_file" >&5
857 echo "$as_me: creating cache $cache_file" >&6;}
861 # Check that the precious variables saved in the cache have kept the same
863 ac_cache_corrupted=false
864 for ac_var in `(set) 2>&1 |
865 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
866 eval ac_old_set=\$ac_cv_env_${ac_var}_set
867 eval ac_new_set=\$ac_env_${ac_var}_set
868 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
869 eval ac_new_val="\$ac_env_${ac_var}_value"
870 case $ac_old_set,$ac_new_set in
872 { echo "$as_me:872: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
873 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
874 ac_cache_corrupted=: ;;
876 { echo "$as_me:876: error: \`$ac_var' was not set in the previous run" >&5
877 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
878 ac_cache_corrupted=: ;;
881 if test "x$ac_old_val" != "x$ac_new_val"; then
882 { echo "$as_me:882: error: \`$ac_var' has changed since the previous run:" >&5
883 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
884 { echo "$as_me:884: former value: $ac_old_val" >&5
885 echo "$as_me: former value: $ac_old_val" >&2;}
886 { echo "$as_me:886: current value: $ac_new_val" >&5
887 echo "$as_me: current value: $ac_new_val" >&2;}
891 # Pass precious variables to config.status. It doesn't matter if
892 # we pass some twice (in addition to the command line arguments).
893 if test "$ac_new_set" = set; then
895 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
896 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
897 ac_configure_args="$ac_configure_args '$ac_arg'"
899 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
904 if $ac_cache_corrupted; then
905 { echo "$as_me:905: error: changes in the environment can compromise the build" >&5
906 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
907 { { echo "$as_me:907: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
908 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
909 { (exit 1); exit 1; }; }
913 ac_cpp='$CPP $CPPFLAGS'
914 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
915 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
916 ac_compiler_gnu=$ac_cv_c_compiler_gnu
918 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
919 *c*,-n*) ECHO_N= ECHO_C='
921 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
922 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
924 echo "#! $SHELL" >conftest.sh
925 echo "exit 0" >>conftest.sh
927 if { (echo "$as_me:927: PATH=\".;.\"; conftest.sh") >&5
928 (PATH=".;."; conftest.sh) 2>&5
930 echo "$as_me:930: \$? = $ac_status" >&5
931 (exit $ac_status); }; then
932 ac_path_separator=';'
936 PATH_SEPARATOR="$ac_path_separator"
939 ac_config_headers="$ac_config_headers config.h"
941 ac_config_commands="$ac_config_commands default-1"
944 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
945 if test -f $ac_dir/install-sh; then
947 ac_install_sh="$ac_aux_dir/install-sh -c"
949 elif test -f $ac_dir/install.sh; then
951 ac_install_sh="$ac_aux_dir/install.sh -c"
953 elif test -f $ac_dir/shtool; then
955 ac_install_sh="$ac_aux_dir/shtool install -c"
959 if test -z "$ac_aux_dir"; then
960 { { echo "$as_me:960: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
961 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
962 { (exit 1); exit 1; }; }
964 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
965 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
966 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
968 # Find a good install program. We prefer a C program (faster),
969 # so one script is as good as another. But avoid the broken or
970 # incompatible versions:
971 # SysV /etc/install, /usr/sbin/install
972 # SunOS /usr/etc/install
975 # AmigaOS /C/install, which installs bootblocks on floppy discs
976 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
977 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
978 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
979 # ./install, which can be erroneously created by make from ./install.sh.
980 echo "$as_me:980: checking for a BSD compatible install" >&5
981 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
982 if test -z "$INSTALL"; then
983 if test "${ac_cv_path_install+set}" = set; then
984 echo $ECHO_N "(cached) $ECHO_C" >&6
986 ac_save_IFS=$IFS; IFS=$ac_path_separator
987 for ac_dir in $PATH; do
989 # Account for people who put trailing slashes in PATH elements.
991 / | ./ | .// | /cC/* \
992 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
995 # OSF1 and SCO ODT 3.0 have their own names for install.
996 # Don't use installbsd from OSF since it installs stuff as root
998 for ac_prog in ginstall scoinst install; do
999 if $as_executable_p "$ac_dir/$ac_prog"; then
1000 if test $ac_prog = install &&
1001 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
1002 # AIX install. It has an incompatible calling convention.
1004 elif test $ac_prog = install &&
1005 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
1006 # program-specific install script used by HP pwplus--don't use.
1009 ac_cv_path_install="$ac_dir/$ac_prog -c"
1019 if test "${ac_cv_path_install+set}" = set; then
1020 INSTALL=$ac_cv_path_install
1022 # As a last resort, use the slow shell script. We don't cache a
1023 # path for INSTALL within a source directory, because that will
1024 # break other packages using the cache if that directory is
1025 # removed, or if the path is relative.
1026 INSTALL=$ac_install_sh
1029 echo "$as_me:1029: result: $INSTALL" >&5
1030 echo "${ECHO_T}$INSTALL" >&6
1032 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1033 # It thinks the first close brace ends the variable substitution.
1034 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1036 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1038 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1040 echo "$as_me:1040: checking whether build environment is sane" >&5
1041 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1044 echo timestamp > conftestfile
1045 # Do `set' in a subshell so we don't clobber the current shell's
1046 # arguments. Must try -L first in case configure is actually a
1047 # symlink; some systems play weird games with the mod time of symlinks
1048 # (eg FreeBSD returns the mod time of the symlink's containing
1051 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1052 if test "$*" = "X"; then
1054 set X `ls -t $srcdir/configure conftestfile`
1056 if test "$*" != "X $srcdir/configure conftestfile" \
1057 && test "$*" != "X conftestfile $srcdir/configure"; then
1059 # If neither matched, then we have a broken ls. This can happen
1060 # if, for instance, CONFIG_SHELL is bash and it inherits a
1061 # broken ls alias from the environment. This has actually
1062 # happened. Such a system could not be considered "sane".
1063 { { echo "$as_me:1063: error: ls -t appears to fail. Make sure there is not a broken
1064 alias in your environment" >&5
1065 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1066 alias in your environment" >&2;}
1067 { (exit 1); exit 1; }; }
1070 test "$2" = conftestfile
1076 { { echo "$as_me:1076: error: newly created file is older than distributed files!
1077 Check your system clock" >&5
1078 echo "$as_me: error: newly created file is older than distributed files!
1079 Check your system clock" >&2;}
1080 { (exit 1); exit 1; }; }
1083 echo "$as_me:1083: result: yes" >&5
1084 echo "${ECHO_T}yes" >&6
1085 test "$program_prefix" != NONE &&
1086 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1087 # Use a double $ so make ignores it.
1088 test "$program_suffix" != NONE &&
1089 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1090 # Double any \ or $. echo might interpret backslashes.
1091 # By default was `s,x,x', remove it if useless.
1092 cat <<\_ACEOF >conftest.sed
1093 s/[\\$]/&&/g;s/;s,x,x,$//
1095 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1098 echo "$as_me:1098: checking whether ${MAKE-make} sets \${MAKE}" >&5
1099 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1100 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1101 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1102 echo $ECHO_N "(cached) $ECHO_C" >&6
1104 cat >conftest.make <<\EOF
1106 @echo 'ac_maketemp="${MAKE}"'
1108 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1109 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1110 if test -n "$ac_maketemp"; then
1111 eval ac_cv_prog_make_${ac_make}_set=yes
1113 eval ac_cv_prog_make_${ac_make}_set=no
1117 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1118 echo "$as_me:1118: result: yes" >&5
1119 echo "${ECHO_T}yes" >&6
1122 echo "$as_me:1122: result: no" >&5
1123 echo "${ECHO_T}no" >&6
1124 SET_MAKE="MAKE=${MAKE-make}"
1131 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1132 { { echo "$as_me:1132: error: source directory already configured; run \"make distclean\" there first" >&5
1133 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1134 { (exit 1); exit 1; }; }
1137 cat >>confdefs.h <<EOF
1138 #define PACKAGE "$PACKAGE"
1141 cat >>confdefs.h <<EOF
1142 #define VERSION "$VERSION"
1145 missing_dir=`cd $ac_aux_dir && pwd`
1146 echo "$as_me:1146: checking for working aclocal" >&5
1147 echo $ECHO_N "checking for working aclocal... $ECHO_C" >&6
1148 # Run test in a subshell; some versions of sh will print an error if
1149 # an executable is not found, even if stderr is redirected.
1150 # Redirect stdin to placate older versions of autoconf. Sigh.
1151 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1153 echo "$as_me:1153: result: found" >&5
1154 echo "${ECHO_T}found" >&6
1156 ACLOCAL="$missing_dir/missing aclocal"
1157 echo "$as_me:1157: result: missing" >&5
1158 echo "${ECHO_T}missing" >&6
1161 echo "$as_me:1161: checking for working autoconf" >&5
1162 echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
1163 # Run test in a subshell; some versions of sh will print an error if
1164 # an executable is not found, even if stderr is redirected.
1165 # Redirect stdin to placate older versions of autoconf. Sigh.
1166 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1168 echo "$as_me:1168: result: found" >&5
1169 echo "${ECHO_T}found" >&6
1171 AUTOCONF="$missing_dir/missing autoconf"
1172 echo "$as_me:1172: result: missing" >&5
1173 echo "${ECHO_T}missing" >&6
1176 echo "$as_me:1176: checking for working automake" >&5
1177 echo $ECHO_N "checking for working automake... $ECHO_C" >&6
1178 # Run test in a subshell; some versions of sh will print an error if
1179 # an executable is not found, even if stderr is redirected.
1180 # Redirect stdin to placate older versions of autoconf. Sigh.
1181 if (automake --version) < /dev/null > /dev/null 2>&1; then
1183 echo "$as_me:1183: result: found" >&5
1184 echo "${ECHO_T}found" >&6
1186 AUTOMAKE="$missing_dir/missing automake"
1187 echo "$as_me:1187: result: missing" >&5
1188 echo "${ECHO_T}missing" >&6
1191 echo "$as_me:1191: checking for working autoheader" >&5
1192 echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
1193 # Run test in a subshell; some versions of sh will print an error if
1194 # an executable is not found, even if stderr is redirected.
1195 # Redirect stdin to placate older versions of autoconf. Sigh.
1196 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1197 AUTOHEADER=autoheader
1198 echo "$as_me:1198: result: found" >&5
1199 echo "${ECHO_T}found" >&6
1201 AUTOHEADER="$missing_dir/missing autoheader"
1202 echo "$as_me:1202: result: missing" >&5
1203 echo "${ECHO_T}missing" >&6
1206 echo "$as_me:1206: checking for working makeinfo" >&5
1207 echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
1208 # Run test in a subshell; some versions of sh will print an error if
1209 # an executable is not found, even if stderr is redirected.
1210 # Redirect stdin to placate older versions of autoconf. Sigh.
1211 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1213 echo "$as_me:1213: result: found" >&5
1214 echo "${ECHO_T}found" >&6
1216 MAKEINFO="$missing_dir/missing makeinfo"
1217 echo "$as_me:1217: result: missing" >&5
1218 echo "${ECHO_T}missing" >&6
1221 if test -f ../NOINST_GOB ; then
1224 echo "$as_me:1224: result: *** NOT Going to install GOB ***" >&5
1225 echo "${ECHO_T}*** NOT Going to install GOB ***" >&6
1226 SUBDIRS="src examples"
1231 SUBDIRS="src examples doc"
1236 ac_cpp='$CPP $CPPFLAGS'
1237 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1238 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1239 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1240 if test -n "$ac_tool_prefix"; then
1241 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1242 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1243 echo "$as_me:1243: checking for $ac_word" >&5
1244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1245 if test "${ac_cv_prog_CC+set}" = set; then
1246 echo $ECHO_N "(cached) $ECHO_C" >&6
1248 if test -n "$CC"; then
1249 ac_cv_prog_CC="$CC" # Let the user override the test.
1251 ac_save_IFS=$IFS; IFS=$ac_path_separator
1253 for ac_dir in $ac_dummy; do
1255 test -z "$ac_dir" && ac_dir=.
1256 $as_executable_p "$ac_dir/$ac_word" || continue
1257 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1258 echo "$as_me:1258: found $ac_dir/$ac_word" >&5
1265 if test -n "$CC"; then
1266 echo "$as_me:1266: result: $CC" >&5
1267 echo "${ECHO_T}$CC" >&6
1269 echo "$as_me:1269: result: no" >&5
1270 echo "${ECHO_T}no" >&6
1274 if test -z "$ac_cv_prog_CC"; then
1276 # Extract the first word of "gcc", so it can be a program name with args.
1277 set dummy gcc; ac_word=$2
1278 echo "$as_me:1278: checking for $ac_word" >&5
1279 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1280 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1281 echo $ECHO_N "(cached) $ECHO_C" >&6
1283 if test -n "$ac_ct_CC"; then
1284 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1286 ac_save_IFS=$IFS; IFS=$ac_path_separator
1288 for ac_dir in $ac_dummy; do
1290 test -z "$ac_dir" && ac_dir=.
1291 $as_executable_p "$ac_dir/$ac_word" || continue
1292 ac_cv_prog_ac_ct_CC="gcc"
1293 echo "$as_me:1293: found $ac_dir/$ac_word" >&5
1299 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1300 if test -n "$ac_ct_CC"; then
1301 echo "$as_me:1301: result: $ac_ct_CC" >&5
1302 echo "${ECHO_T}$ac_ct_CC" >&6
1304 echo "$as_me:1304: result: no" >&5
1305 echo "${ECHO_T}no" >&6
1313 if test -z "$CC"; then
1314 if test -n "$ac_tool_prefix"; then
1315 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1316 set dummy ${ac_tool_prefix}cc; ac_word=$2
1317 echo "$as_me:1317: checking for $ac_word" >&5
1318 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1319 if test "${ac_cv_prog_CC+set}" = set; then
1320 echo $ECHO_N "(cached) $ECHO_C" >&6
1322 if test -n "$CC"; then
1323 ac_cv_prog_CC="$CC" # Let the user override the test.
1325 ac_save_IFS=$IFS; IFS=$ac_path_separator
1327 for ac_dir in $ac_dummy; do
1329 test -z "$ac_dir" && ac_dir=.
1330 $as_executable_p "$ac_dir/$ac_word" || continue
1331 ac_cv_prog_CC="${ac_tool_prefix}cc"
1332 echo "$as_me:1332: found $ac_dir/$ac_word" >&5
1339 if test -n "$CC"; then
1340 echo "$as_me:1340: result: $CC" >&5
1341 echo "${ECHO_T}$CC" >&6
1343 echo "$as_me:1343: result: no" >&5
1344 echo "${ECHO_T}no" >&6
1348 if test -z "$ac_cv_prog_CC"; then
1350 # Extract the first word of "cc", so it can be a program name with args.
1351 set dummy cc; ac_word=$2
1352 echo "$as_me:1352: checking for $ac_word" >&5
1353 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1354 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1355 echo $ECHO_N "(cached) $ECHO_C" >&6
1357 if test -n "$ac_ct_CC"; then
1358 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1360 ac_save_IFS=$IFS; IFS=$ac_path_separator
1362 for ac_dir in $ac_dummy; do
1364 test -z "$ac_dir" && ac_dir=.
1365 $as_executable_p "$ac_dir/$ac_word" || continue
1366 ac_cv_prog_ac_ct_CC="cc"
1367 echo "$as_me:1367: found $ac_dir/$ac_word" >&5
1373 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1374 if test -n "$ac_ct_CC"; then
1375 echo "$as_me:1375: result: $ac_ct_CC" >&5
1376 echo "${ECHO_T}$ac_ct_CC" >&6
1378 echo "$as_me:1378: result: no" >&5
1379 echo "${ECHO_T}no" >&6
1388 if test -z "$CC"; then
1389 # Extract the first word of "cc", so it can be a program name with args.
1390 set dummy cc; ac_word=$2
1391 echo "$as_me:1391: checking for $ac_word" >&5
1392 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1393 if test "${ac_cv_prog_CC+set}" = set; then
1394 echo $ECHO_N "(cached) $ECHO_C" >&6
1396 if test -n "$CC"; then
1397 ac_cv_prog_CC="$CC" # Let the user override the test.
1400 ac_save_IFS=$IFS; IFS=$ac_path_separator
1402 for ac_dir in $ac_dummy; do
1404 test -z "$ac_dir" && ac_dir=.
1405 $as_executable_p "$ac_dir/$ac_word" || continue
1406 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1407 ac_prog_rejected=yes
1411 echo "$as_me:1411: found $ac_dir/$ac_word" >&5
1415 if test $ac_prog_rejected = yes; then
1416 # We found a bogon in the path, so make sure we never use it.
1417 set dummy $ac_cv_prog_CC
1419 if test $# != 0; then
1420 # We chose a different compiler from the bogus one.
1421 # However, it has the same basename, so the bogon will be chosen
1422 # first if we set CC to just the basename; use the full file name.
1424 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1432 if test -n "$CC"; then
1433 echo "$as_me:1433: result: $CC" >&5
1434 echo "${ECHO_T}$CC" >&6
1436 echo "$as_me:1436: result: no" >&5
1437 echo "${ECHO_T}no" >&6
1441 if test -z "$CC"; then
1442 if test -n "$ac_tool_prefix"; then
1445 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1446 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1447 echo "$as_me:1447: checking for $ac_word" >&5
1448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1449 if test "${ac_cv_prog_CC+set}" = set; then
1450 echo $ECHO_N "(cached) $ECHO_C" >&6
1452 if test -n "$CC"; then
1453 ac_cv_prog_CC="$CC" # Let the user override the test.
1455 ac_save_IFS=$IFS; IFS=$ac_path_separator
1457 for ac_dir in $ac_dummy; do
1459 test -z "$ac_dir" && ac_dir=.
1460 $as_executable_p "$ac_dir/$ac_word" || continue
1461 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1462 echo "$as_me:1462: found $ac_dir/$ac_word" >&5
1469 if test -n "$CC"; then
1470 echo "$as_me:1470: result: $CC" >&5
1471 echo "${ECHO_T}$CC" >&6
1473 echo "$as_me:1473: result: no" >&5
1474 echo "${ECHO_T}no" >&6
1477 test -n "$CC" && break
1480 if test -z "$CC"; then
1484 # Extract the first word of "$ac_prog", so it can be a program name with args.
1485 set dummy $ac_prog; ac_word=$2
1486 echo "$as_me:1486: checking for $ac_word" >&5
1487 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1488 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1489 echo $ECHO_N "(cached) $ECHO_C" >&6
1491 if test -n "$ac_ct_CC"; then
1492 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1494 ac_save_IFS=$IFS; IFS=$ac_path_separator
1496 for ac_dir in $ac_dummy; do
1498 test -z "$ac_dir" && ac_dir=.
1499 $as_executable_p "$ac_dir/$ac_word" || continue
1500 ac_cv_prog_ac_ct_CC="$ac_prog"
1501 echo "$as_me:1501: found $ac_dir/$ac_word" >&5
1507 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1508 if test -n "$ac_ct_CC"; then
1509 echo "$as_me:1509: result: $ac_ct_CC" >&5
1510 echo "${ECHO_T}$ac_ct_CC" >&6
1512 echo "$as_me:1512: result: no" >&5
1513 echo "${ECHO_T}no" >&6
1516 test -n "$ac_ct_CC" && break
1524 test -z "$CC" && { { echo "$as_me:1524: error: no acceptable cc found in \$PATH" >&5
1525 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1526 { (exit 1); exit 1; }; }
1528 # Provide some information about the compiler.
1529 echo "$as_me:1529:" \
1530 "checking for C compiler version" >&5
1531 ac_compiler=`set X $ac_compile; echo $2`
1532 { (eval echo "$as_me:1532: \"$ac_compiler --version </dev/null >&5\"") >&5
1533 (eval $ac_compiler --version </dev/null >&5) 2>&5
1535 echo "$as_me:1535: \$? = $ac_status" >&5
1536 (exit $ac_status); }
1537 { (eval echo "$as_me:1537: \"$ac_compiler -v </dev/null >&5\"") >&5
1538 (eval $ac_compiler -v </dev/null >&5) 2>&5
1540 echo "$as_me:1540: \$? = $ac_status" >&5
1541 (exit $ac_status); }
1542 { (eval echo "$as_me:1542: \"$ac_compiler -V </dev/null >&5\"") >&5
1543 (eval $ac_compiler -V </dev/null >&5) 2>&5
1545 echo "$as_me:1545: \$? = $ac_status" >&5
1546 (exit $ac_status); }
1548 cat >conftest.$ac_ext <<_ACEOF
1549 #line 1549 "configure"
1550 #include "confdefs.h"
1560 ac_clean_files_save=$ac_clean_files
1561 ac_clean_files="$ac_clean_files a.out a.exe"
1562 # Try to create an executable without -o first, disregard a.out.
1563 # It will help us diagnose broken compilers, and finding out an intuition
1565 echo "$as_me:1565: checking for C compiler default output" >&5
1566 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1567 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1568 if { (eval echo "$as_me:1568: \"$ac_link_default\"") >&5
1569 (eval $ac_link_default) 2>&5
1571 echo "$as_me:1571: \$? = $ac_status" >&5
1572 (exit $ac_status); }; then
1573 # Find the output, starting from the most likely. This scheme is
1574 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1576 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1577 ls a.out conftest 2>/dev/null;
1578 ls a.* conftest.* 2>/dev/null`; do
1580 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1581 a.out ) # We found the default executable, but exeext='' is most
1584 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1585 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1592 echo "$as_me: failed program was:" >&5
1593 cat conftest.$ac_ext >&5
1594 { { echo "$as_me:1594: error: C compiler cannot create executables" >&5
1595 echo "$as_me: error: C compiler cannot create executables" >&2;}
1596 { (exit 77); exit 77; }; }
1599 ac_exeext=$ac_cv_exeext
1600 echo "$as_me:1600: result: $ac_file" >&5
1601 echo "${ECHO_T}$ac_file" >&6
1603 # Check the compiler produces executables we can run. If not, either
1604 # the compiler is broken, or we cross compile.
1605 echo "$as_me:1605: checking whether the C compiler works" >&5
1606 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1607 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1608 # If not cross compiling, check that we can run a simple program.
1609 if test "$cross_compiling" != yes; then
1610 if { ac_try='./$ac_file'
1611 { (eval echo "$as_me:1611: \"$ac_try\"") >&5
1614 echo "$as_me:1614: \$? = $ac_status" >&5
1615 (exit $ac_status); }; }; then
1618 if test "$cross_compiling" = maybe; then
1621 { { echo "$as_me:1621: error: cannot run C compiled programs.
1622 If you meant to cross compile, use \`--host'." >&5
1623 echo "$as_me: error: cannot run C compiled programs.
1624 If you meant to cross compile, use \`--host'." >&2;}
1625 { (exit 1); exit 1; }; }
1629 echo "$as_me:1629: result: yes" >&5
1630 echo "${ECHO_T}yes" >&6
1632 rm -f a.out a.exe conftest$ac_cv_exeext
1633 ac_clean_files=$ac_clean_files_save
1634 # Check the compiler produces executables we can run. If not, either
1635 # the compiler is broken, or we cross compile.
1636 echo "$as_me:1636: checking whether we are cross compiling" >&5
1637 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1638 echo "$as_me:1638: result: $cross_compiling" >&5
1639 echo "${ECHO_T}$cross_compiling" >&6
1641 echo "$as_me:1641: checking for executable suffix" >&5
1642 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1643 if { (eval echo "$as_me:1643: \"$ac_link\"") >&5
1644 (eval $ac_link) 2>&5
1646 echo "$as_me:1646: \$? = $ac_status" >&5
1647 (exit $ac_status); }; then
1648 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1649 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1650 # work properly (i.e., refer to `conftest.exe'), while it won't with
1652 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1654 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1655 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1662 { { echo "$as_me:1662: error: cannot compute EXEEXT: cannot compile and link" >&5
1663 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1664 { (exit 1); exit 1; }; }
1667 rm -f conftest$ac_cv_exeext
1668 echo "$as_me:1668: result: $ac_cv_exeext" >&5
1669 echo "${ECHO_T}$ac_cv_exeext" >&6
1671 rm -f conftest.$ac_ext
1672 EXEEXT=$ac_cv_exeext
1674 echo "$as_me:1674: checking for object suffix" >&5
1675 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1676 if test "${ac_cv_objext+set}" = set; then
1677 echo $ECHO_N "(cached) $ECHO_C" >&6
1679 cat >conftest.$ac_ext <<_ACEOF
1680 #line 1680 "configure"
1681 #include "confdefs.h"
1691 rm -f conftest.o conftest.obj
1692 if { (eval echo "$as_me:1692: \"$ac_compile\"") >&5
1693 (eval $ac_compile) 2>&5
1695 echo "$as_me:1695: \$? = $ac_status" >&5
1696 (exit $ac_status); }; then
1697 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1699 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1700 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1705 echo "$as_me: failed program was:" >&5
1706 cat conftest.$ac_ext >&5
1707 { { echo "$as_me:1707: error: cannot compute OBJEXT: cannot compile" >&5
1708 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1709 { (exit 1); exit 1; }; }
1712 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1714 echo "$as_me:1714: result: $ac_cv_objext" >&5
1715 echo "${ECHO_T}$ac_cv_objext" >&6
1716 OBJEXT=$ac_cv_objext
1718 echo "$as_me:1718: checking whether we are using the GNU C compiler" >&5
1719 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1720 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1721 echo $ECHO_N "(cached) $ECHO_C" >&6
1723 cat >conftest.$ac_ext <<_ACEOF
1724 #line 1724 "configure"
1725 #include "confdefs.h"
1738 rm -f conftest.$ac_objext
1739 if { (eval echo "$as_me:1739: \"$ac_compile\"") >&5
1740 (eval $ac_compile) 2>&5
1742 echo "$as_me:1742: \$? = $ac_status" >&5
1743 (exit $ac_status); } &&
1744 { ac_try='test -s conftest.$ac_objext'
1745 { (eval echo "$as_me:1745: \"$ac_try\"") >&5
1748 echo "$as_me:1748: \$? = $ac_status" >&5
1749 (exit $ac_status); }; }; then
1752 echo "$as_me: failed program was:" >&5
1753 cat conftest.$ac_ext >&5
1756 rm -f conftest.$ac_objext conftest.$ac_ext
1757 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1760 echo "$as_me:1760: result: $ac_cv_c_compiler_gnu" >&5
1761 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1762 GCC=`test $ac_compiler_gnu = yes && echo yes`
1763 ac_test_CFLAGS=${CFLAGS+set}
1764 ac_save_CFLAGS=$CFLAGS
1766 echo "$as_me:1766: checking whether $CC accepts -g" >&5
1767 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1768 if test "${ac_cv_prog_cc_g+set}" = set; then
1769 echo $ECHO_N "(cached) $ECHO_C" >&6
1771 cat >conftest.$ac_ext <<_ACEOF
1772 #line 1772 "configure"
1773 #include "confdefs.h"
1783 rm -f conftest.$ac_objext
1784 if { (eval echo "$as_me:1784: \"$ac_compile\"") >&5
1785 (eval $ac_compile) 2>&5
1787 echo "$as_me:1787: \$? = $ac_status" >&5
1788 (exit $ac_status); } &&
1789 { ac_try='test -s conftest.$ac_objext'
1790 { (eval echo "$as_me:1790: \"$ac_try\"") >&5
1793 echo "$as_me:1793: \$? = $ac_status" >&5
1794 (exit $ac_status); }; }; then
1797 echo "$as_me: failed program was:" >&5
1798 cat conftest.$ac_ext >&5
1801 rm -f conftest.$ac_objext conftest.$ac_ext
1803 echo "$as_me:1803: result: $ac_cv_prog_cc_g" >&5
1804 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1805 if test "$ac_test_CFLAGS" = set; then
1806 CFLAGS=$ac_save_CFLAGS
1807 elif test $ac_cv_prog_cc_g = yes; then
1808 if test "$GCC" = yes; then
1814 if test "$GCC" = yes; then
1820 # Some people use a C++ compiler to compile C. Since we use `exit',
1821 # in C++ we need to declare it. In case someone uses the same compiler
1822 # for both compiling C and C++ we need to have the C++ compiler decide
1823 # the declaration of exit, since it's the most demanding environment.
1824 cat >conftest.$ac_ext <<_ACEOF
1829 rm -f conftest.$ac_objext
1830 if { (eval echo "$as_me:1830: \"$ac_compile\"") >&5
1831 (eval $ac_compile) 2>&5
1833 echo "$as_me:1833: \$? = $ac_status" >&5
1834 (exit $ac_status); } &&
1835 { ac_try='test -s conftest.$ac_objext'
1836 { (eval echo "$as_me:1836: \"$ac_try\"") >&5
1839 echo "$as_me:1839: \$? = $ac_status" >&5
1840 (exit $ac_status); }; }; then
1841 for ac_declaration in \
1843 '#include <stdlib.h>' \
1844 'extern "C" void std::exit (int) throw (); using std::exit;' \
1845 'extern "C" void std::exit (int); using std::exit;' \
1846 'extern "C" void exit (int) throw ();' \
1847 'extern "C" void exit (int);' \
1850 cat >conftest.$ac_ext <<_ACEOF
1851 #line 1851 "configure"
1852 #include "confdefs.h"
1863 rm -f conftest.$ac_objext
1864 if { (eval echo "$as_me:1864: \"$ac_compile\"") >&5
1865 (eval $ac_compile) 2>&5
1867 echo "$as_me:1867: \$? = $ac_status" >&5
1868 (exit $ac_status); } &&
1869 { ac_try='test -s conftest.$ac_objext'
1870 { (eval echo "$as_me:1870: \"$ac_try\"") >&5
1873 echo "$as_me:1873: \$? = $ac_status" >&5
1874 (exit $ac_status); }; }; then
1877 echo "$as_me: failed program was:" >&5
1878 cat conftest.$ac_ext >&5
1881 rm -f conftest.$ac_objext conftest.$ac_ext
1882 cat >conftest.$ac_ext <<_ACEOF
1883 #line 1883 "configure"
1884 #include "confdefs.h"
1894 rm -f conftest.$ac_objext
1895 if { (eval echo "$as_me:1895: \"$ac_compile\"") >&5
1896 (eval $ac_compile) 2>&5
1898 echo "$as_me:1898: \$? = $ac_status" >&5
1899 (exit $ac_status); } &&
1900 { ac_try='test -s conftest.$ac_objext'
1901 { (eval echo "$as_me:1901: \"$ac_try\"") >&5
1904 echo "$as_me:1904: \$? = $ac_status" >&5
1905 (exit $ac_status); }; }; then
1908 echo "$as_me: failed program was:" >&5
1909 cat conftest.$ac_ext >&5
1911 rm -f conftest.$ac_objext conftest.$ac_ext
1914 if test -n "$ac_declaration"; then
1915 echo '#ifdef __cplusplus' >>confdefs.h
1916 echo $ac_declaration >>confdefs.h
1917 echo '#endif' >>confdefs.h
1921 echo "$as_me: failed program was:" >&5
1922 cat conftest.$ac_ext >&5
1924 rm -f conftest.$ac_objext conftest.$ac_ext
1926 ac_cpp='$CPP $CPPFLAGS'
1927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1932 ac_cpp='$CPP $CPPFLAGS'
1933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1936 echo "$as_me:1936: checking how to run the C preprocessor" >&5
1937 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
1938 # On Suns, sometimes $CPP names a directory.
1939 if test -n "$CPP" && test -d "$CPP"; then
1942 if test -z "$CPP"; then
1943 if test "${ac_cv_prog_CPP+set}" = set; then
1944 echo $ECHO_N "(cached) $ECHO_C" >&6
1946 # Double quotes because CPP needs to be expanded
1947 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
1950 for ac_c_preproc_warn_flag in '' yes
1952 # Use a header file that comes with gcc, so configuring glibc
1953 # with a fresh cross-compiler works.
1954 # On the NeXT, cc -E runs the code through the compiler's parser,
1955 # not just through cpp. "Syntax error" is here to catch this case.
1956 cat >conftest.$ac_ext <<_ACEOF
1957 #line 1957 "configure"
1958 #include "confdefs.h"
1962 if { (eval echo "$as_me:1962: \"$ac_cpp conftest.$ac_ext\"") >&5
1963 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1965 egrep -v '^ *\+' conftest.er1 >conftest.err
1967 cat conftest.err >&5
1968 echo "$as_me:1968: \$? = $ac_status" >&5
1969 (exit $ac_status); } >/dev/null; then
1970 if test -s conftest.err; then
1971 ac_cpp_err=$ac_c_preproc_warn_flag
1978 if test -z "$ac_cpp_err"; then
1981 echo "$as_me: failed program was:" >&5
1982 cat conftest.$ac_ext >&5
1983 # Broken: fails on valid input.
1986 rm -f conftest.err conftest.$ac_ext
1988 # OK, works on sane cases. Now check whether non-existent headers
1989 # can be detected and how.
1990 cat >conftest.$ac_ext <<_ACEOF
1991 #line 1991 "configure"
1992 #include "confdefs.h"
1993 #include <ac_nonexistent.h>
1995 if { (eval echo "$as_me:1995: \"$ac_cpp conftest.$ac_ext\"") >&5
1996 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1998 egrep -v '^ *\+' conftest.er1 >conftest.err
2000 cat conftest.err >&5
2001 echo "$as_me:2001: \$? = $ac_status" >&5
2002 (exit $ac_status); } >/dev/null; then
2003 if test -s conftest.err; then
2004 ac_cpp_err=$ac_c_preproc_warn_flag
2011 if test -z "$ac_cpp_err"; then
2012 # Broken: success on invalid input.
2015 echo "$as_me: failed program was:" >&5
2016 cat conftest.$ac_ext >&5
2017 # Passes both tests.
2021 rm -f conftest.err conftest.$ac_ext
2024 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2025 rm -f conftest.err conftest.$ac_ext
2026 if $ac_preproc_ok; then
2038 echo "$as_me:2038: result: $CPP" >&5
2039 echo "${ECHO_T}$CPP" >&6
2041 for ac_c_preproc_warn_flag in '' yes
2043 # Use a header file that comes with gcc, so configuring glibc
2044 # with a fresh cross-compiler works.
2045 # On the NeXT, cc -E runs the code through the compiler's parser,
2046 # not just through cpp. "Syntax error" is here to catch this case.
2047 cat >conftest.$ac_ext <<_ACEOF
2048 #line 2048 "configure"
2049 #include "confdefs.h"
2053 if { (eval echo "$as_me:2053: \"$ac_cpp conftest.$ac_ext\"") >&5
2054 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2056 egrep -v '^ *\+' conftest.er1 >conftest.err
2058 cat conftest.err >&5
2059 echo "$as_me:2059: \$? = $ac_status" >&5
2060 (exit $ac_status); } >/dev/null; then
2061 if test -s conftest.err; then
2062 ac_cpp_err=$ac_c_preproc_warn_flag
2069 if test -z "$ac_cpp_err"; then
2072 echo "$as_me: failed program was:" >&5
2073 cat conftest.$ac_ext >&5
2074 # Broken: fails on valid input.
2077 rm -f conftest.err conftest.$ac_ext
2079 # OK, works on sane cases. Now check whether non-existent headers
2080 # can be detected and how.
2081 cat >conftest.$ac_ext <<_ACEOF
2082 #line 2082 "configure"
2083 #include "confdefs.h"
2084 #include <ac_nonexistent.h>
2086 if { (eval echo "$as_me:2086: \"$ac_cpp conftest.$ac_ext\"") >&5
2087 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2089 egrep -v '^ *\+' conftest.er1 >conftest.err
2091 cat conftest.err >&5
2092 echo "$as_me:2092: \$? = $ac_status" >&5
2093 (exit $ac_status); } >/dev/null; then
2094 if test -s conftest.err; then
2095 ac_cpp_err=$ac_c_preproc_warn_flag
2102 if test -z "$ac_cpp_err"; then
2103 # Broken: success on invalid input.
2106 echo "$as_me: failed program was:" >&5
2107 cat conftest.$ac_ext >&5
2108 # Passes both tests.
2112 rm -f conftest.err conftest.$ac_ext
2115 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2116 rm -f conftest.err conftest.$ac_ext
2117 if $ac_preproc_ok; then
2120 { { echo "$as_me:2120: error: C preprocessor \"$CPP\" fails sanity check" >&5
2121 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2122 { (exit 1); exit 1; }; }
2126 ac_cpp='$CPP $CPPFLAGS'
2127 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2128 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2129 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2131 echo "$as_me:2131: checking for ANSI C header files" >&5
2132 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2133 if test "${ac_cv_header_stdc+set}" = set; then
2134 echo $ECHO_N "(cached) $ECHO_C" >&6
2136 cat >conftest.$ac_ext <<_ACEOF
2137 #line 2137 "configure"
2138 #include "confdefs.h"
2145 if { (eval echo "$as_me:2145: \"$ac_cpp conftest.$ac_ext\"") >&5
2146 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2148 egrep -v '^ *\+' conftest.er1 >conftest.err
2150 cat conftest.err >&5
2151 echo "$as_me:2151: \$? = $ac_status" >&5
2152 (exit $ac_status); } >/dev/null; then
2153 if test -s conftest.err; then
2154 ac_cpp_err=$ac_c_preproc_warn_flag
2161 if test -z "$ac_cpp_err"; then
2162 ac_cv_header_stdc=yes
2164 echo "$as_me: failed program was:" >&5
2165 cat conftest.$ac_ext >&5
2166 ac_cv_header_stdc=no
2168 rm -f conftest.err conftest.$ac_ext
2170 if test $ac_cv_header_stdc = yes; then
2171 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2172 cat >conftest.$ac_ext <<_ACEOF
2173 #line 2173 "configure"
2174 #include "confdefs.h"
2178 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2179 egrep "memchr" >/dev/null 2>&1; then
2182 ac_cv_header_stdc=no
2188 if test $ac_cv_header_stdc = yes; then
2189 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2190 cat >conftest.$ac_ext <<_ACEOF
2191 #line 2191 "configure"
2192 #include "confdefs.h"
2196 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2197 egrep "free" >/dev/null 2>&1; then
2200 ac_cv_header_stdc=no
2206 if test $ac_cv_header_stdc = yes; then
2207 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2208 if test "$cross_compiling" = yes; then
2211 cat >conftest.$ac_ext <<_ACEOF
2212 #line 2212 "configure"
2213 #include "confdefs.h"
2215 #if ((' ' & 0x0FF) == 0x020)
2216 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2217 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2219 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
2220 || ('j' <= (c) && (c) <= 'r') \
2221 || ('s' <= (c) && (c) <= 'z'))
2222 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2225 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2230 for (i = 0; i < 256; i++)
2231 if (XOR (islower (i), ISLOWER (i))
2232 || toupper (i) != TOUPPER (i))
2237 rm -f conftest$ac_exeext
2238 if { (eval echo "$as_me:2238: \"$ac_link\"") >&5
2239 (eval $ac_link) 2>&5
2241 echo "$as_me:2241: \$? = $ac_status" >&5
2242 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2243 { (eval echo "$as_me:2243: \"$ac_try\"") >&5
2246 echo "$as_me:2246: \$? = $ac_status" >&5
2247 (exit $ac_status); }; }; then
2250 echo "$as_me: program exited with status $ac_status" >&5
2251 echo "$as_me: failed program was:" >&5
2252 cat conftest.$ac_ext >&5
2253 ac_cv_header_stdc=no
2255 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2259 echo "$as_me:2259: result: $ac_cv_header_stdc" >&5
2260 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2261 if test $ac_cv_header_stdc = yes; then
2263 cat >>confdefs.h <<\EOF
2264 #define STDC_HEADERS 1
2269 for ac_prog in 'bison -y' byacc
2271 # Extract the first word of "$ac_prog", so it can be a program name with args.
2272 set dummy $ac_prog; ac_word=$2
2273 echo "$as_me:2273: checking for $ac_word" >&5
2274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2275 if test "${ac_cv_prog_YACC+set}" = set; then
2276 echo $ECHO_N "(cached) $ECHO_C" >&6
2278 if test -n "$YACC"; then
2279 ac_cv_prog_YACC="$YACC" # Let the user override the test.
2281 ac_save_IFS=$IFS; IFS=$ac_path_separator
2283 for ac_dir in $ac_dummy; do
2285 test -z "$ac_dir" && ac_dir=.
2286 $as_executable_p "$ac_dir/$ac_word" || continue
2287 ac_cv_prog_YACC="$ac_prog"
2288 echo "$as_me:2288: found $ac_dir/$ac_word" >&5
2294 YACC=$ac_cv_prog_YACC
2295 if test -n "$YACC"; then
2296 echo "$as_me:2296: result: $YACC" >&5
2297 echo "${ECHO_T}$YACC" >&6
2299 echo "$as_me:2299: result: no" >&5
2300 echo "${ECHO_T}no" >&6
2303 test -n "$YACC" && break
2305 test -n "$YACC" || YACC="yacc"
2307 missing_dir=`cd $ac_aux_dir && pwd`
2308 for ac_prog in flex lex
2310 # Extract the first word of "$ac_prog", so it can be a program name with args.
2311 set dummy $ac_prog; ac_word=$2
2312 echo "$as_me:2312: checking for $ac_word" >&5
2313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2314 if test "${ac_cv_prog_LEX+set}" = set; then
2315 echo $ECHO_N "(cached) $ECHO_C" >&6
2317 if test -n "$LEX"; then
2318 ac_cv_prog_LEX="$LEX" # Let the user override the test.
2320 ac_save_IFS=$IFS; IFS=$ac_path_separator
2322 for ac_dir in $ac_dummy; do
2324 test -z "$ac_dir" && ac_dir=.
2325 $as_executable_p "$ac_dir/$ac_word" || continue
2326 ac_cv_prog_LEX="$ac_prog"
2327 echo "$as_me:2327: found $ac_dir/$ac_word" >&5
2334 if test -n "$LEX"; then
2335 echo "$as_me:2335: result: $LEX" >&5
2336 echo "${ECHO_T}$LEX" >&6
2338 echo "$as_me:2338: result: no" >&5
2339 echo "${ECHO_T}no" >&6
2342 test -n "$LEX" && break
2344 test -n "$LEX" || LEX=""$missing_dir/missing flex""
2346 for ac_prog in flex lex
2348 # Extract the first word of "$ac_prog", so it can be a program name with args.
2349 set dummy $ac_prog; ac_word=$2
2350 echo "$as_me:2350: checking for $ac_word" >&5
2351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2352 if test "${ac_cv_prog_LEX+set}" = set; then
2353 echo $ECHO_N "(cached) $ECHO_C" >&6
2355 if test -n "$LEX"; then
2356 ac_cv_prog_LEX="$LEX" # Let the user override the test.
2358 ac_save_IFS=$IFS; IFS=$ac_path_separator
2360 for ac_dir in $ac_dummy; do
2362 test -z "$ac_dir" && ac_dir=.
2363 $as_executable_p "$ac_dir/$ac_word" || continue
2364 ac_cv_prog_LEX="$ac_prog"
2365 echo "$as_me:2365: found $ac_dir/$ac_word" >&5
2372 if test -n "$LEX"; then
2373 echo "$as_me:2373: result: $LEX" >&5
2374 echo "${ECHO_T}$LEX" >&6
2376 echo "$as_me:2376: result: no" >&5
2377 echo "${ECHO_T}no" >&6
2380 test -n "$LEX" && break
2382 test -n "$LEX" || LEX=":"
2384 if test -z "$LEXLIB"
2386 echo "$as_me:2386: checking for yywrap in -lfl" >&5
2387 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
2388 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
2389 echo $ECHO_N "(cached) $ECHO_C" >&6
2391 ac_check_lib_save_LIBS=$LIBS
2393 cat >conftest.$ac_ext <<_ACEOF
2394 #line 2394 "configure"
2395 #include "confdefs.h"
2397 /* Override any gcc2 internal prototype to avoid an error. */
2401 /* We use char because int might match the return type of a gcc2
2402 builtin and then its argument prototype would still apply. */
2412 rm -f conftest.$ac_objext conftest$ac_exeext
2413 if { (eval echo "$as_me:2413: \"$ac_link\"") >&5
2414 (eval $ac_link) 2>&5
2416 echo "$as_me:2416: \$? = $ac_status" >&5
2417 (exit $ac_status); } &&
2418 { ac_try='test -s conftest$ac_exeext'
2419 { (eval echo "$as_me:2419: \"$ac_try\"") >&5
2422 echo "$as_me:2422: \$? = $ac_status" >&5
2423 (exit $ac_status); }; }; then
2424 ac_cv_lib_fl_yywrap=yes
2426 echo "$as_me: failed program was:" >&5
2427 cat conftest.$ac_ext >&5
2428 ac_cv_lib_fl_yywrap=no
2430 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2431 LIBS=$ac_check_lib_save_LIBS
2433 echo "$as_me:2433: result: $ac_cv_lib_fl_yywrap" >&5
2434 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
2435 if test $ac_cv_lib_fl_yywrap = yes; then
2438 echo "$as_me:2438: checking for yywrap in -ll" >&5
2439 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
2440 if test "${ac_cv_lib_l_yywrap+set}" = set; then
2441 echo $ECHO_N "(cached) $ECHO_C" >&6
2443 ac_check_lib_save_LIBS=$LIBS
2445 cat >conftest.$ac_ext <<_ACEOF
2446 #line 2446 "configure"
2447 #include "confdefs.h"
2449 /* Override any gcc2 internal prototype to avoid an error. */
2453 /* We use char because int might match the return type of a gcc2
2454 builtin and then its argument prototype would still apply. */
2464 rm -f conftest.$ac_objext conftest$ac_exeext
2465 if { (eval echo "$as_me:2465: \"$ac_link\"") >&5
2466 (eval $ac_link) 2>&5
2468 echo "$as_me:2468: \$? = $ac_status" >&5
2469 (exit $ac_status); } &&
2470 { ac_try='test -s conftest$ac_exeext'
2471 { (eval echo "$as_me:2471: \"$ac_try\"") >&5
2474 echo "$as_me:2474: \$? = $ac_status" >&5
2475 (exit $ac_status); }; }; then
2476 ac_cv_lib_l_yywrap=yes
2478 echo "$as_me: failed program was:" >&5
2479 cat conftest.$ac_ext >&5
2480 ac_cv_lib_l_yywrap=no
2482 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2483 LIBS=$ac_check_lib_save_LIBS
2485 echo "$as_me:2485: result: $ac_cv_lib_l_yywrap" >&5
2486 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
2487 if test $ac_cv_lib_l_yywrap = yes; then
2495 if test "x$LEX" != "x:"; then
2496 echo "$as_me:2496: checking lex output file root" >&5
2497 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
2498 if test "${ac_cv_prog_lex_root+set}" = set; then
2499 echo $ECHO_N "(cached) $ECHO_C" >&6
2501 # The minimal lex program is just a single line: %%. But some broken lexes
2502 # (Solaris, I think it was) want two %% lines, so accommodate them.
2505 if test -f lex.yy.c; then
2506 ac_cv_prog_lex_root=lex.yy
2507 elif test -f lexyy.c; then
2508 ac_cv_prog_lex_root=lexyy
2510 { { echo "$as_me:2510: error: cannot find output from $LEX; giving up" >&5
2511 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
2512 { (exit 1); exit 1; }; }
2515 echo "$as_me:2515: result: $ac_cv_prog_lex_root" >&5
2516 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
2517 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
2519 echo "$as_me:2519: checking whether yytext is a pointer" >&5
2520 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
2521 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
2522 echo $ECHO_N "(cached) $ECHO_C" >&6
2524 # POSIX says lex can declare yytext either as a pointer or an array; the
2525 # default is implementation-dependent. Figure out which it is, since
2526 # not all implementations provide the %pointer and %array declarations.
2527 ac_cv_prog_lex_yytext_pointer=no
2528 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
2530 LIBS="$LIBS $LEXLIB"
2531 cat >conftest.$ac_ext <<_ACEOF
2532 `cat $LEX_OUTPUT_ROOT.c`
2534 rm -f conftest.$ac_objext conftest$ac_exeext
2535 if { (eval echo "$as_me:2535: \"$ac_link\"") >&5
2536 (eval $ac_link) 2>&5
2538 echo "$as_me:2538: \$? = $ac_status" >&5
2539 (exit $ac_status); } &&
2540 { ac_try='test -s conftest$ac_exeext'
2541 { (eval echo "$as_me:2541: \"$ac_try\"") >&5
2544 echo "$as_me:2544: \$? = $ac_status" >&5
2545 (exit $ac_status); }; }; then
2546 ac_cv_prog_lex_yytext_pointer=yes
2548 echo "$as_me: failed program was:" >&5
2549 cat conftest.$ac_ext >&5
2551 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2553 rm -f "${LEX_OUTPUT_ROOT}.c"
2556 echo "$as_me:2556: result: $ac_cv_prog_lex_yytext_pointer" >&5
2557 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
2558 if test $ac_cv_prog_lex_yytext_pointer = yes; then
2560 cat >>confdefs.h <<\EOF
2561 #define YYTEXT_POINTER 1
2568 # Find a good install program. We prefer a C program (faster),
2569 # so one script is as good as another. But avoid the broken or
2570 # incompatible versions:
2571 # SysV /etc/install, /usr/sbin/install
2572 # SunOS /usr/etc/install
2573 # IRIX /sbin/install
2575 # AmigaOS /C/install, which installs bootblocks on floppy discs
2576 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2577 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2578 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2579 # ./install, which can be erroneously created by make from ./install.sh.
2580 echo "$as_me:2580: checking for a BSD compatible install" >&5
2581 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
2582 if test -z "$INSTALL"; then
2583 if test "${ac_cv_path_install+set}" = set; then
2584 echo $ECHO_N "(cached) $ECHO_C" >&6
2586 ac_save_IFS=$IFS; IFS=$ac_path_separator
2587 for ac_dir in $PATH; do
2589 # Account for people who put trailing slashes in PATH elements.
2591 / | ./ | .// | /cC/* \
2592 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
2595 # OSF1 and SCO ODT 3.0 have their own names for install.
2596 # Don't use installbsd from OSF since it installs stuff as root
2598 for ac_prog in ginstall scoinst install; do
2599 if $as_executable_p "$ac_dir/$ac_prog"; then
2600 if test $ac_prog = install &&
2601 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2602 # AIX install. It has an incompatible calling convention.
2604 elif test $ac_prog = install &&
2605 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2606 # program-specific install script used by HP pwplus--don't use.
2609 ac_cv_path_install="$ac_dir/$ac_prog -c"
2619 if test "${ac_cv_path_install+set}" = set; then
2620 INSTALL=$ac_cv_path_install
2622 # As a last resort, use the slow shell script. We don't cache a
2623 # path for INSTALL within a source directory, because that will
2624 # break other packages using the cache if that directory is
2625 # removed, or if the path is relative.
2626 INSTALL=$ac_install_sh
2629 echo "$as_me:2629: result: $INSTALL" >&5
2630 echo "${ECHO_T}$INSTALL" >&6
2632 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2633 # It thinks the first close brace ends the variable substitution.
2634 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2636 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2638 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2641 ac_cpp='$CPP $CPPFLAGS'
2642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2643 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2644 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2645 echo "$as_me:2645: checking how to run the C preprocessor" >&5
2646 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2647 # On Suns, sometimes $CPP names a directory.
2648 if test -n "$CPP" && test -d "$CPP"; then
2651 if test -z "$CPP"; then
2652 if test "${ac_cv_prog_CPP+set}" = set; then
2653 echo $ECHO_N "(cached) $ECHO_C" >&6
2655 # Double quotes because CPP needs to be expanded
2656 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2659 for ac_c_preproc_warn_flag in '' yes
2661 # Use a header file that comes with gcc, so configuring glibc
2662 # with a fresh cross-compiler works.
2663 # On the NeXT, cc -E runs the code through the compiler's parser,
2664 # not just through cpp. "Syntax error" is here to catch this case.
2665 cat >conftest.$ac_ext <<_ACEOF
2666 #line 2666 "configure"
2667 #include "confdefs.h"
2671 if { (eval echo "$as_me:2671: \"$ac_cpp conftest.$ac_ext\"") >&5
2672 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2674 egrep -v '^ *\+' conftest.er1 >conftest.err
2676 cat conftest.err >&5
2677 echo "$as_me:2677: \$? = $ac_status" >&5
2678 (exit $ac_status); } >/dev/null; then
2679 if test -s conftest.err; then
2680 ac_cpp_err=$ac_c_preproc_warn_flag
2687 if test -z "$ac_cpp_err"; then
2690 echo "$as_me: failed program was:" >&5
2691 cat conftest.$ac_ext >&5
2692 # Broken: fails on valid input.
2695 rm -f conftest.err conftest.$ac_ext
2697 # OK, works on sane cases. Now check whether non-existent headers
2698 # can be detected and how.
2699 cat >conftest.$ac_ext <<_ACEOF
2700 #line 2700 "configure"
2701 #include "confdefs.h"
2702 #include <ac_nonexistent.h>
2704 if { (eval echo "$as_me:2704: \"$ac_cpp conftest.$ac_ext\"") >&5
2705 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2707 egrep -v '^ *\+' conftest.er1 >conftest.err
2709 cat conftest.err >&5
2710 echo "$as_me:2710: \$? = $ac_status" >&5
2711 (exit $ac_status); } >/dev/null; then
2712 if test -s conftest.err; then
2713 ac_cpp_err=$ac_c_preproc_warn_flag
2720 if test -z "$ac_cpp_err"; then
2721 # Broken: success on invalid input.
2724 echo "$as_me: failed program was:" >&5
2725 cat conftest.$ac_ext >&5
2726 # Passes both tests.
2730 rm -f conftest.err conftest.$ac_ext
2733 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2734 rm -f conftest.err conftest.$ac_ext
2735 if $ac_preproc_ok; then
2747 echo "$as_me:2747: result: $CPP" >&5
2748 echo "${ECHO_T}$CPP" >&6
2750 for ac_c_preproc_warn_flag in '' yes
2752 # Use a header file that comes with gcc, so configuring glibc
2753 # with a fresh cross-compiler works.
2754 # On the NeXT, cc -E runs the code through the compiler's parser,
2755 # not just through cpp. "Syntax error" is here to catch this case.
2756 cat >conftest.$ac_ext <<_ACEOF
2757 #line 2757 "configure"
2758 #include "confdefs.h"
2762 if { (eval echo "$as_me:2762: \"$ac_cpp conftest.$ac_ext\"") >&5
2763 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2765 egrep -v '^ *\+' conftest.er1 >conftest.err
2767 cat conftest.err >&5
2768 echo "$as_me:2768: \$? = $ac_status" >&5
2769 (exit $ac_status); } >/dev/null; then
2770 if test -s conftest.err; then
2771 ac_cpp_err=$ac_c_preproc_warn_flag
2778 if test -z "$ac_cpp_err"; then
2781 echo "$as_me: failed program was:" >&5
2782 cat conftest.$ac_ext >&5
2783 # Broken: fails on valid input.
2786 rm -f conftest.err conftest.$ac_ext
2788 # OK, works on sane cases. Now check whether non-existent headers
2789 # can be detected and how.
2790 cat >conftest.$ac_ext <<_ACEOF
2791 #line 2791 "configure"
2792 #include "confdefs.h"
2793 #include <ac_nonexistent.h>
2795 if { (eval echo "$as_me:2795: \"$ac_cpp conftest.$ac_ext\"") >&5
2796 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2798 egrep -v '^ *\+' conftest.er1 >conftest.err
2800 cat conftest.err >&5
2801 echo "$as_me:2801: \$? = $ac_status" >&5
2802 (exit $ac_status); } >/dev/null; then
2803 if test -s conftest.err; then
2804 ac_cpp_err=$ac_c_preproc_warn_flag
2811 if test -z "$ac_cpp_err"; then
2812 # Broken: success on invalid input.
2815 echo "$as_me: failed program was:" >&5
2816 cat conftest.$ac_ext >&5
2817 # Passes both tests.
2821 rm -f conftest.err conftest.$ac_ext
2824 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2825 rm -f conftest.err conftest.$ac_ext
2826 if $ac_preproc_ok; then
2829 { { echo "$as_me:2829: error: C preprocessor \"$CPP\" fails sanity check" >&5
2830 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2831 { (exit 1); exit 1; }; }
2835 ac_cpp='$CPP $CPPFLAGS'
2836 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2837 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2838 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2840 # Extract the first word of "rm", so it can be a program name with args.
2841 set dummy rm; ac_word=$2
2842 echo "$as_me:2842: checking for $ac_word" >&5
2843 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2844 if test "${ac_cv_path_RM+set}" = set; then
2845 echo $ECHO_N "(cached) $ECHO_C" >&6
2849 ac_cv_path_RM="$RM" # Let the user override the test with a path.
2852 ac_save_IFS=$IFS; IFS=$ac_path_separator
2854 for ac_dir in $ac_dummy; do
2856 test -z "$ac_dir" && ac_dir=.
2857 if $as_executable_p "$ac_dir/$ac_word"; then
2858 ac_cv_path_RM="$ac_dir/$ac_word"
2859 echo "$as_me:2859: found $ac_dir/$ac_word" >&5
2864 test -z "$ac_cv_path_RM" && ac_cv_path_RM="/bin/rm"
2870 if test -n "$RM"; then
2871 echo "$as_me:2871: result: $RM" >&5
2872 echo "${ECHO_T}$RM" >&6
2874 echo "$as_me:2874: result: no" >&5
2875 echo "${ECHO_T}no" >&6
2878 # Extract the first word of "mv", so it can be a program name with args.
2879 set dummy mv; ac_word=$2
2880 echo "$as_me:2880: checking for $ac_word" >&5
2881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2882 if test "${ac_cv_path_MV+set}" = set; then
2883 echo $ECHO_N "(cached) $ECHO_C" >&6
2887 ac_cv_path_MV="$MV" # Let the user override the test with a path.
2890 ac_save_IFS=$IFS; IFS=$ac_path_separator
2892 for ac_dir in $ac_dummy; do
2894 test -z "$ac_dir" && ac_dir=.
2895 if $as_executable_p "$ac_dir/$ac_word"; then
2896 ac_cv_path_MV="$ac_dir/$ac_word"
2897 echo "$as_me:2897: found $ac_dir/$ac_word" >&5
2902 test -z "$ac_cv_path_MV" && ac_cv_path_MV="/bin/mv"
2908 if test -n "$MV"; then
2909 echo "$as_me:2909: result: $MV" >&5
2910 echo "${ECHO_T}$MV" >&6
2912 echo "$as_me:2912: result: no" >&5
2913 echo "${ECHO_T}no" >&6
2916 # Extract the first word of "tar", so it can be a program name with args.
2917 set dummy tar; ac_word=$2
2918 echo "$as_me:2918: checking for $ac_word" >&5
2919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2920 if test "${ac_cv_path_TAR+set}" = set; then
2921 echo $ECHO_N "(cached) $ECHO_C" >&6
2925 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
2928 ac_save_IFS=$IFS; IFS=$ac_path_separator
2930 for ac_dir in $ac_dummy; do
2932 test -z "$ac_dir" && ac_dir=.
2933 if $as_executable_p "$ac_dir/$ac_word"; then
2934 ac_cv_path_TAR="$ac_dir/$ac_word"
2935 echo "$as_me:2935: found $ac_dir/$ac_word" >&5
2940 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="/bin/tar"
2946 if test -n "$TAR"; then
2947 echo "$as_me:2947: result: $TAR" >&5
2948 echo "${ECHO_T}$TAR" >&6
2950 echo "$as_me:2950: result: no" >&5
2951 echo "${ECHO_T}no" >&6
2954 # Check whether --with-glib-prefix or --without-glib-prefix was given.
2955 if test "${with_glib_prefix+set}" = set; then
2956 withval="$with_glib_prefix"
2957 glib_config_prefix="$withval"
2959 glib_config_prefix=""
2962 # Check whether --with-glib-exec-prefix or --without-glib-exec-prefix was given.
2963 if test "${with_glib_exec_prefix+set}" = set; then
2964 withval="$with_glib_exec_prefix"
2965 glib_config_exec_prefix="$withval"
2967 glib_config_exec_prefix=""
2969 # Check whether --enable-glibtest or --disable-glibtest was given.
2970 if test "${enable_glibtest+set}" = set; then
2971 enableval="$enable_glibtest"
2977 if test x$glib_config_exec_prefix != x ; then
2978 glib_config_args="$glib_config_args --exec-prefix=$glib_config_exec_prefix"
2979 if test x${GLIB_CONFIG+set} != xset ; then
2980 GLIB_CONFIG=$glib_config_exec_prefix/bin/glib-config
2983 if test x$glib_config_prefix != x ; then
2984 glib_config_args="$glib_config_args --prefix=$glib_config_prefix"
2985 if test x${GLIB_CONFIG+set} != xset ; then
2986 GLIB_CONFIG=$glib_config_prefix/bin/glib-config
2994 glib_config_args="$glib_config_args gmodule"
2997 glib_config_args="$glib_config_args gthread"
3002 # Extract the first word of "glib-config", so it can be a program name with args.
3003 set dummy glib-config; ac_word=$2
3004 echo "$as_me:3004: checking for $ac_word" >&5
3005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3006 if test "${ac_cv_path_GLIB_CONFIG+set}" = set; then
3007 echo $ECHO_N "(cached) $ECHO_C" >&6
3009 case $GLIB_CONFIG in
3011 ac_cv_path_GLIB_CONFIG="$GLIB_CONFIG" # Let the user override the test with a path.
3014 ac_save_IFS=$IFS; IFS=$ac_path_separator
3016 for ac_dir in $ac_dummy; do
3018 test -z "$ac_dir" && ac_dir=.
3019 if $as_executable_p "$ac_dir/$ac_word"; then
3020 ac_cv_path_GLIB_CONFIG="$ac_dir/$ac_word"
3021 echo "$as_me:3021: found $ac_dir/$ac_word" >&5
3026 test -z "$ac_cv_path_GLIB_CONFIG" && ac_cv_path_GLIB_CONFIG="no"
3030 GLIB_CONFIG=$ac_cv_path_GLIB_CONFIG
3032 if test -n "$GLIB_CONFIG"; then
3033 echo "$as_me:3033: result: $GLIB_CONFIG" >&5
3034 echo "${ECHO_T}$GLIB_CONFIG" >&6
3036 echo "$as_me:3036: result: no" >&5
3037 echo "${ECHO_T}no" >&6
3040 min_glib_version=1.2.0
3041 echo "$as_me:3041: checking for GLIB - version >= $min_glib_version" >&5
3042 echo $ECHO_N "checking for GLIB - version >= $min_glib_version... $ECHO_C" >&6
3044 if test "$GLIB_CONFIG" = "no" ; then
3047 GLIB_CFLAGS=`$GLIB_CONFIG $glib_config_args --cflags`
3048 GLIB_LIBS=`$GLIB_CONFIG $glib_config_args --libs`
3049 glib_config_major_version=`$GLIB_CONFIG $glib_config_args --version | \
3050 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
3051 glib_config_minor_version=`$GLIB_CONFIG $glib_config_args --version | \
3052 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
3053 glib_config_micro_version=`$GLIB_CONFIG $glib_config_args --version | \
3054 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
3055 if test "x$enable_glibtest" = "xyes" ; then
3056 ac_save_CFLAGS="$CFLAGS"
3057 ac_save_LIBS="$LIBS"
3058 CFLAGS="$CFLAGS $GLIB_CFLAGS"
3059 LIBS="$GLIB_LIBS $LIBS"
3061 if test "$cross_compiling" = yes; then
3062 echo $ac_n "cross compiling; assumed OK... $ac_c"
3064 cat >conftest.$ac_ext <<_ACEOF
3065 #line 3065 "configure"
3066 #include "confdefs.h"
3075 int major, minor, micro;
3078 system ("touch conf.glibtest");
3080 /* HP/UX 9 (%@#!) writes to sscanf strings */
3081 tmp_version = g_strdup("$min_glib_version");
3082 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
3083 printf("%s, bad version string\n", "$min_glib_version");
3087 if ((glib_major_version != $glib_config_major_version) ||
3088 (glib_minor_version != $glib_config_minor_version) ||
3089 (glib_micro_version != $glib_config_micro_version))
3091 printf("\n*** 'glib-config --version' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
3092 $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
3093 glib_major_version, glib_minor_version, glib_micro_version);
3094 printf ("*** was found! If glib-config was correct, then it is best\n");
3095 printf ("*** to remove the old version of GLIB. You may also be able to fix the error\n");
3096 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
3097 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
3098 printf("*** required on your system.\n");
3099 printf("*** If glib-config was wrong, set the environment variable GLIB_CONFIG\n");
3100 printf("*** to point to the correct copy of glib-config, and remove the file config.cache\n");
3101 printf("*** before re-running configure\n");
3103 else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
3104 (glib_minor_version != GLIB_MINOR_VERSION) ||
3105 (glib_micro_version != GLIB_MICRO_VERSION))
3107 printf("*** GLIB header files (version %d.%d.%d) do not match\n",
3108 GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
3109 printf("*** library (version %d.%d.%d)\n",
3110 glib_major_version, glib_minor_version, glib_micro_version);
3114 if ((glib_major_version > major) ||
3115 ((glib_major_version == major) && (glib_minor_version > minor)) ||
3116 ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
3122 printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n",
3123 glib_major_version, glib_minor_version, glib_micro_version);
3124 printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n",
3125 major, minor, micro);
3126 printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
3128 printf("*** If you have already installed a sufficiently new version, this error\n");
3129 printf("*** probably means that the wrong copy of the glib-config shell script is\n");
3130 printf("*** being found. The easiest way to fix this is to remove the old version\n");
3131 printf("*** of GLIB, but you can also set the GLIB_CONFIG environment to point to the\n");
3132 printf("*** correct copy of glib-config. (In this case, you will have to\n");
3133 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
3134 printf("*** so that the correct libraries are found at run-time))\n");
3141 rm -f conftest$ac_exeext
3142 if { (eval echo "$as_me:3142: \"$ac_link\"") >&5
3143 (eval $ac_link) 2>&5
3145 echo "$as_me:3145: \$? = $ac_status" >&5
3146 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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: program exited with status $ac_status" >&5
3155 echo "$as_me: failed program was:" >&5
3156 cat conftest.$ac_ext >&5
3159 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3161 CFLAGS="$ac_save_CFLAGS"
3162 LIBS="$ac_save_LIBS"
3165 if test "x$no_glib" = x ; then
3166 echo "$as_me:3166: result: yes" >&5
3167 echo "${ECHO_T}yes" >&6
3170 echo "$as_me:3170: result: no" >&5
3171 echo "${ECHO_T}no" >&6
3172 if test "$GLIB_CONFIG" = "no" ; then
3173 echo "*** The glib-config script installed by GLIB could not be found"
3174 echo "*** If GLIB was installed in PREFIX, make sure PREFIX/bin is in"
3175 echo "*** your path, or set the GLIB_CONFIG environment variable to the"
3176 echo "*** full path to glib-config."
3178 if test -f conf.glibtest ; then
3181 echo "*** Could not run GLIB test program, checking why..."
3182 CFLAGS="$CFLAGS $GLIB_CFLAGS"
3183 LIBS="$LIBS $GLIB_LIBS"
3184 cat >conftest.$ac_ext <<_ACEOF
3185 #line 3185 "configure"
3186 #include "confdefs.h"
3194 return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
3199 rm -f conftest.$ac_objext conftest$ac_exeext
3200 if { (eval echo "$as_me:3200: \"$ac_link\"") >&5
3201 (eval $ac_link) 2>&5
3203 echo "$as_me:3203: \$? = $ac_status" >&5
3204 (exit $ac_status); } &&
3205 { ac_try='test -s conftest$ac_exeext'
3206 { (eval echo "$as_me:3206: \"$ac_try\"") >&5
3209 echo "$as_me:3209: \$? = $ac_status" >&5
3210 (exit $ac_status); }; }; then
3211 echo "*** The test program compiled, but did not run. This usually means"
3212 echo "*** that the run-time linker is not finding GLIB or finding the wrong"
3213 echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
3214 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
3215 echo "*** to the installed location Also, make sure you have run ldconfig if that"
3216 echo "*** is required on your system"
3218 echo "*** If you have an old version installed, it is best to remove it, although"
3219 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
3221 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
3222 echo "*** came with the system with the command"
3224 echo "*** rpm --erase --nodeps gtk gtk-devel"
3226 echo "$as_me: failed program was:" >&5
3227 cat conftest.$ac_ext >&5
3228 echo "*** The test program failed to compile or link. See the file config.log for the"
3229 echo "*** exact error that occured. This usually means GLIB was incorrectly installed"
3230 echo "*** or that you have moved GLIB since it was installed. In the latter case, you"
3231 echo "*** may want to edit the glib-config script: $GLIB_CONFIG"
3233 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3234 CFLAGS="$ac_save_CFLAGS"
3235 LIBS="$ac_save_LIBS"
3245 echo "$as_me:3245: checking whether to enable maintainer-specific portions of Makefiles" >&5
3246 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3247 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3248 if test "${enable_maintainer_mode+set}" = set; then
3249 enableval="$enable_maintainer_mode"
3250 USE_MAINTAINER_MODE=$enableval
3252 USE_MAINTAINER_MODE=no
3254 echo "$as_me:3254: result: $USE_MAINTAINER_MODE" >&5
3255 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3257 if test $USE_MAINTAINER_MODE = yes; then
3258 MAINTAINER_MODE_TRUE=
3259 MAINTAINER_MODE_FALSE='#'
3261 MAINTAINER_MODE_TRUE='#'
3262 MAINTAINER_MODE_FALSE=
3264 MAINT=$MAINTAINER_MODE_TRUE
3266 ac_config_files="$ac_config_files gob.spec Makefile src/Makefile doc/Makefile examples/Makefile doc/gob.1"
3267 cat >confcache <<\_ACEOF
3268 # This file is a shell script that caches the results of configure
3269 # tests run on this system so they can be shared between configure
3270 # scripts and configure runs, see configure's option --config-cache.
3271 # It is not useful on other systems. If it contains results you don't
3272 # want to keep, you may remove or edit it.
3274 # config.status only pays attention to the cache file if you give it
3275 # the --recheck option to rerun configure.
3277 # `ac_cv_env_foo' variables (set or unset) will be overriden when
3278 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3283 # The following way of writing the cache mishandles newlines in values,
3284 # but we know of no workaround that is simple, portable, and efficient.
3285 # So, don't put newlines in cache variables' values.
3286 # Ultrix sh set writes to stderr and can't be redirected directly,
3287 # and sets the high bit in the cache file unless we assign to the vars.
3290 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3292 # `set' does not quote correctly, so add quotes (double-quote
3293 # substitution turns \\\\ into \\, and sed turns \\ into \).
3296 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3299 # `set' quotes correctly as required by POSIX, so do not add quotes.
3301 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3308 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3310 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3312 if cmp -s $cache_file confcache; then :; else
3313 if test -w $cache_file; then
3314 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3315 cat confcache >$cache_file
3317 echo "not updating unwritable cache $cache_file"
3322 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3323 # Let make expand exec_prefix.
3324 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3326 # VPATH may cause trouble with some makes, so we remove $(srcdir),
3327 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3328 # trailing colons and then remove the whole line if VPATH becomes empty
3329 # (actually we leave an empty line to preserve line numbers).
3330 if test "x$srcdir" = x.; then
3331 ac_vpsub='/^[ ]*VPATH[ ]*=/{
3332 s/:*\$(srcdir):*/:/;
3333 s/:*\${srcdir}:*/:/;
3335 s/^\([^=]*=[ ]*\):*/\1/;
3341 DEFS=-DHAVE_CONFIG_H
3343 : ${CONFIG_STATUS=./config.status}
3344 ac_clean_files_save=$ac_clean_files
3345 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3346 { echo "$as_me:3346: creating $CONFIG_STATUS" >&5
3347 echo "$as_me: creating $CONFIG_STATUS" >&6;}
3348 cat >$CONFIG_STATUS <<_ACEOF
3350 # Generated automatically by configure.
3351 # Run this file to recreate the current configuration.
3352 # Compiler output produced by configure, useful for debugging
3353 # configure, is in config.log if it exists.
3356 SHELL=\${CONFIG_SHELL-$SHELL}
3357 ac_cs_invocation="\$0 \$@"
3361 cat >>$CONFIG_STATUS <<\_ACEOF
3362 # Be Bourne compatible
3363 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3366 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
3370 # Name of the executable.
3371 as_me=`echo "$0" |sed 's,.*[\\/],,'`
3373 if expr a : '\(a\)' >/dev/null 2>&1; then
3379 rm -f conf$$ conf$$.exe conf$$.file
3381 if ln -s conf$$.file conf$$ 2>/dev/null; then
3382 # We could just check for DJGPP; but this test a) works b) is more generic
3383 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
3384 if test -f conf$$.exe; then
3385 # Don't use ln at all; we don't have any links
3390 elif ln conf$$.file conf$$ 2>/dev/null; then
3395 rm -f conf$$ conf$$.exe conf$$.file
3397 as_executable_p="test -f"
3399 # Support unset when possible.
3400 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
3407 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
3408 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
3409 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
3410 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
3411 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
3412 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
3413 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
3414 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
3417 # We need space, tab and new line, in precisely that order.
3423 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
3429 # Files that config.status was made for.
3430 if test -n "$ac_config_files"; then
3431 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
3434 if test -n "$ac_config_headers"; then
3435 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
3438 if test -n "$ac_config_links"; then
3439 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
3442 if test -n "$ac_config_commands"; then
3443 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
3446 cat >>$CONFIG_STATUS <<\EOF
3449 \`$as_me' instantiates files from templates according to the
3450 current configuration.
3452 Usage: $0 [OPTIONS] [FILE]...
3454 -h, --help print this help, then exit
3455 -V, --version print version number, then exit
3456 -d, --debug don't remove temporary files
3457 --recheck update $as_me by reconfiguring in the same conditions
3458 --file=FILE[:TEMPLATE]
3459 instantiate the configuration file FILE
3460 --header=FILE[:TEMPLATE]
3461 instantiate the configuration header FILE
3463 Configuration files:
3466 Configuration headers:
3469 Configuration commands:
3472 Report bugs to <bug-autoconf@gnu.org>."
3475 cat >>$CONFIG_STATUS <<EOF
3478 configured by $0, generated by GNU Autoconf 2.52,
3479 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
3481 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
3482 Free Software Foundation, Inc.
3483 This config.status script is free software; the Free Software Foundation
3484 gives unlimited permission to copy, distribute and modify it."
3489 cat >>$CONFIG_STATUS <<\EOF
3490 # If no file are specified by the user, then we need to provide default
3491 # value. By we need to know if files were specified by the user.
3497 ac_option=`expr "x$1" : 'x\([^=]*\)='`
3498 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
3500 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
3504 *) # This is not an option, so the user has probably given explicit
3506 ac_need_defaults=false;;
3510 # Handling of the options.
3512 cat >>$CONFIG_STATUS <<EOF
3513 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3514 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
3515 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
3517 cat >>$CONFIG_STATUS <<\EOF
3518 --version | --vers* | -V )
3519 echo "$ac_cs_version"; exit 0 ;;
3521 # Conflict between --help and --header
3522 { { echo "$as_me:3522: error: ambiguous option: $1
3523 Try \`$0 --help' for more information." >&5
3524 echo "$as_me: error: ambiguous option: $1
3525 Try \`$0 --help' for more information." >&2;}
3526 { (exit 1); exit 1; }; };;
3527 --help | --hel | -h )
3528 echo "$ac_cs_usage"; exit 0 ;;
3529 --debug | --d* | -d )
3531 --file | --fil | --fi | --f )
3533 CONFIG_FILES="$CONFIG_FILES $1"
3534 ac_need_defaults=false;;
3535 --header | --heade | --head | --hea )
3537 CONFIG_HEADERS="$CONFIG_HEADERS $1"
3538 ac_need_defaults=false;;
3541 -*) { { echo "$as_me:3541: error: unrecognized option: $1
3542 Try \`$0 --help' for more information." >&5
3543 echo "$as_me: error: unrecognized option: $1
3544 Try \`$0 --help' for more information." >&2;}
3545 { (exit 1); exit 1; }; } ;;
3547 *) ac_config_targets="$ac_config_targets $1" ;;
3556 ## ----------------------- ##
3557 ## Running config.status. ##
3558 ## ----------------------- ##
3560 This file was extended by $as_me 2.52, executed with
3561 CONFIG_FILES = $CONFIG_FILES
3562 CONFIG_HEADERS = $CONFIG_HEADERS
3563 CONFIG_LINKS = $CONFIG_LINKS
3564 CONFIG_COMMANDS = $CONFIG_COMMANDS
3566 on `(hostname || uname -n) 2>/dev/null | sed 1q`
3571 cat >>$CONFIG_STATUS <<EOF
3573 # INIT-COMMANDS section.
3578 cat >>$CONFIG_STATUS <<\EOF
3579 for ac_config_target in $ac_config_targets
3581 case "$ac_config_target" in
3582 # Handling of arguments.
3583 "gob.spec" ) CONFIG_FILES="$CONFIG_FILES gob.spec" ;;
3584 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
3585 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
3586 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
3587 "examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
3588 "doc/gob.1" ) CONFIG_FILES="$CONFIG_FILES doc/gob.1" ;;
3589 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
3590 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
3591 *) { { echo "$as_me:3591: error: invalid argument: $ac_config_target" >&5
3592 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
3593 { (exit 1); exit 1; }; };;
3597 # If the user did not use the arguments to specify the items to instantiate,
3598 # then the envvar interface is used. Set only those that are not.
3599 # We use the long form for the default assignment because of an extremely
3600 # bizarre bug on SunOS 4.1.3.
3601 if $ac_need_defaults; then
3602 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
3603 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
3604 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
3607 # Create a temporary directory, and hook for its removal unless debugging.
3610 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3611 trap '{ (exit 1); exit 1; }' 1 2 13 15
3614 # Create a (secure) tmp directory for tmp files.
3617 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
3618 test -n "$tmp" && test -d "$tmp"
3621 tmp=$TMPDIR/cs$$-$RANDOM
3622 (umask 077 && mkdir $tmp)
3625 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3626 { (exit 1); exit 1; }
3631 cat >>$CONFIG_STATUS <<EOF
3634 # CONFIG_FILES section.
3637 # No need to generate the scripts if there are no CONFIG_FILES.
3638 # This happens for instance when ./config.status config.h
3639 if test -n "\$CONFIG_FILES"; then
3640 # Protect against being on the right side of a sed subst in config.status.
3641 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
3642 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
3643 s,@SHELL@,$SHELL,;t t
3644 s,@exec_prefix@,$exec_prefix,;t t
3645 s,@prefix@,$prefix,;t t
3646 s,@program_transform_name@,$program_transform_name,;t t
3647 s,@bindir@,$bindir,;t t
3648 s,@sbindir@,$sbindir,;t t
3649 s,@libexecdir@,$libexecdir,;t t
3650 s,@datadir@,$datadir,;t t
3651 s,@sysconfdir@,$sysconfdir,;t t
3652 s,@sharedstatedir@,$sharedstatedir,;t t
3653 s,@localstatedir@,$localstatedir,;t t
3654 s,@libdir@,$libdir,;t t
3655 s,@includedir@,$includedir,;t t
3656 s,@oldincludedir@,$oldincludedir,;t t
3657 s,@infodir@,$infodir,;t t
3658 s,@mandir@,$mandir,;t t
3659 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
3660 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
3661 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
3662 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
3663 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
3664 s,@build_alias@,$build_alias,;t t
3665 s,@host_alias@,$host_alias,;t t
3666 s,@target_alias@,$target_alias,;t t
3667 s,@ECHO_C@,$ECHO_C,;t t
3668 s,@ECHO_N@,$ECHO_N,;t t
3669 s,@ECHO_T@,$ECHO_T,;t t
3670 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
3673 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
3674 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
3675 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
3676 s,@PACKAGE@,$PACKAGE,;t t
3677 s,@VERSION@,$VERSION,;t t
3678 s,@ACLOCAL@,$ACLOCAL,;t t
3679 s,@AUTOCONF@,$AUTOCONF,;t t
3680 s,@AUTOMAKE@,$AUTOMAKE,;t t
3681 s,@AUTOHEADER@,$AUTOHEADER,;t t
3682 s,@MAKEINFO@,$MAKEINFO,;t t
3683 s,@SET_MAKE@,$SET_MAKE,;t t
3684 s,@SUBDIRS@,$SUBDIRS,;t t
3685 s,@DOINSTGOB@,$DOINSTGOB,;t t
3686 s,@NOINSTGOB@,$NOINSTGOB,;t t
3688 s,@CFLAGS@,$CFLAGS,;t t
3689 s,@LDFLAGS@,$LDFLAGS,;t t
3690 s,@CPPFLAGS@,$CPPFLAGS,;t t
3691 s,@ac_ct_CC@,$ac_ct_CC,;t t
3692 s,@EXEEXT@,$EXEEXT,;t t
3693 s,@OBJEXT@,$OBJEXT,;t t
3697 s,@LEXLIB@,$LEXLIB,;t t
3698 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
3702 s,@GLIB_CONFIG@,$GLIB_CONFIG,;t t
3703 s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t
3704 s,@GLIB_LIBS@,$GLIB_LIBS,;t t
3705 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
3706 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
3707 s,@MAINT@,$MAINT,;t t
3712 cat >>$CONFIG_STATUS <<\EOF
3713 # Split the substitutions into bite-sized pieces for seds with
3714 # small command number limits, like on Digital OSF/1 and HP-UX.
3716 ac_sed_frag=1 # Number of current file.
3717 ac_beg=1 # First line for current file.
3718 ac_end=$ac_max_sed_lines # Line after last line for current file.
3721 while $ac_more_lines; do
3722 if test $ac_beg -gt 1; then
3723 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
3725 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
3727 if test ! -s $tmp/subs.frag; then
3730 # The purpose of the label and of the branching condition is to
3731 # speed up the sed processing (if there are no `@' at all, there
3732 # is no need to browse any of the substitutions).
3733 # These are the two extra sed commands mentioned above.
3735 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
3736 if test -z "$ac_sed_cmds"; then
3737 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
3739 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
3741 ac_sed_frag=`expr $ac_sed_frag + 1`
3743 ac_end=`expr $ac_end + $ac_max_sed_lines`
3746 if test -z "$ac_sed_cmds"; then
3749 fi # test -n "$CONFIG_FILES"
3752 cat >>$CONFIG_STATUS <<\EOF
3753 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
3754 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3756 - | *:- | *:-:* ) # input from stdin
3758 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3759 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3760 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3761 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3762 * ) ac_file_in=$ac_file.in ;;
3765 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
3766 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3767 X"$ac_file" : 'X\(//\)[^/]' \| \
3768 X"$ac_file" : 'X\(//\)$' \| \
3769 X"$ac_file" : 'X\(/\)' \| \
3770 . : '\(.\)' 2>/dev/null ||
3772 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3773 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
3774 /^X\(\/\/\)$/{ s//\1/; q; }
3775 /^X\(\/\).*/{ s//\1/; q; }
3777 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3779 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
3783 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
3784 case $as_mkdir_dir in
3785 # Skip DOS drivespec
3786 ?:) as_incr_dir=$as_mkdir_dir ;;
3788 as_incr_dir=$as_incr_dir/$as_mkdir_dir
3789 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
3794 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
3795 # A "../" for each directory in $ac_dir_suffix.
3796 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
3798 ac_dir_suffix= ac_dots=
3803 if test -z "$ac_dots"; then
3806 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
3809 ac_srcdir=$srcdir$ac_dir_suffix;
3810 ac_top_srcdir=$srcdir ;;
3812 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
3813 ac_top_srcdir=$ac_dots$srcdir ;;
3817 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
3818 *) ac_INSTALL=$ac_dots$INSTALL ;;
3821 if test x"$ac_file" != x-; then
3822 { echo "$as_me:3822: creating $ac_file" >&5
3823 echo "$as_me: creating $ac_file" >&6;}
3826 # Let's still pretend it is `configure' which instantiates (i.e., don't
3827 # use $as_me), people would be surprised to read:
3828 # /* config.h. Generated automatically by config.status. */
3829 configure_input="Generated automatically from `echo $ac_file_in |
3830 sed 's,.*/,,'` by configure."
3832 # First look for the input files in the build tree, otherwise in the
3834 ac_file_inputs=`IFS=:
3835 for f in $ac_file_in; do
3837 -) echo $tmp/stdin ;;
3839 # Absolute (can't be DOS-style, as IFS=:)
3840 test -f "$f" || { { echo "$as_me:3840: error: cannot find input file: $f" >&5
3841 echo "$as_me: error: cannot find input file: $f" >&2;}
3842 { (exit 1); exit 1; }; }
3845 if test -f "$f"; then
3848 elif test -f "$srcdir/$f"; then
3853 { { echo "$as_me:3853: error: cannot find input file: $f" >&5
3854 echo "$as_me: error: cannot find input file: $f" >&2;}
3855 { (exit 1); exit 1; }; }
3858 done` || { (exit 1); exit 1; }
3860 cat >>$CONFIG_STATUS <<EOF
3864 cat >>$CONFIG_STATUS <<\EOF
3866 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
3867 s,@configure_input@,$configure_input,;t t
3868 s,@srcdir@,$ac_srcdir,;t t
3869 s,@top_srcdir@,$ac_top_srcdir,;t t
3870 s,@INSTALL@,$ac_INSTALL,;t t
3871 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
3873 if test x"$ac_file" != x-; then
3874 mv $tmp/out $ac_file
3882 cat >>$CONFIG_STATUS <<\EOF
3885 # CONFIG_HEADER section.
3888 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3889 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3891 # ac_d sets the value in "#define NAME VALUE" lines.
3892 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3893 ac_dB='[ ].*$,\1#\2'
3896 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3897 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3898 ac_uB='$,\1#\2define\3'
3902 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
3903 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3905 - | *:- | *:-:* ) # input from stdin
3907 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3908 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3909 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3910 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3911 * ) ac_file_in=$ac_file.in ;;
3914 test x"$ac_file" != x- && { echo "$as_me:3914: creating $ac_file" >&5
3915 echo "$as_me: creating $ac_file" >&6;}
3917 # First look for the input files in the build tree, otherwise in the
3919 ac_file_inputs=`IFS=:
3920 for f in $ac_file_in; do
3922 -) echo $tmp/stdin ;;
3924 # Absolute (can't be DOS-style, as IFS=:)
3925 test -f "$f" || { { echo "$as_me:3925: error: cannot find input file: $f" >&5
3926 echo "$as_me: error: cannot find input file: $f" >&2;}
3927 { (exit 1); exit 1; }; }
3930 if test -f "$f"; then
3933 elif test -f "$srcdir/$f"; then
3938 { { echo "$as_me:3938: error: cannot find input file: $f" >&5
3939 echo "$as_me: error: cannot find input file: $f" >&2;}
3940 { (exit 1); exit 1; }; }
3943 done` || { (exit 1); exit 1; }
3944 # Remove the trailing spaces.
3945 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
3949 # Transform confdefs.h into two sed scripts, `conftest.defines' and
3950 # `conftest.undefs', that substitutes the proper values into
3951 # config.h.in to produce config.h. The first handles `#define'
3952 # templates, and the second `#undef' templates.
3953 # And first: Protect against being on the right side of a sed subst in
3954 # config.status. Protect against being in an unquoted here document
3956 rm -f conftest.defines conftest.undefs
3957 # Using a here document instead of a string reduces the quoting nightmare.
3958 # Putting comments in sed scripts is not portable.
3960 # `end' is used to avoid that the second main sed command (meant for
3961 # 0-ary CPP macros) applies to n-ary macro definitions.
3962 # See the Autoconf documentation for `clear'.
3963 cat >confdef2sed.sed <<\EOF
3968 s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
3970 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
3973 # If some macros were called several times there might be several times
3974 # the same #defines, which is useless. Nevertheless, we may not want to
3975 # sort them, since we want the *last* AC-DEFINE to be honored.
3976 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
3977 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
3978 rm -f confdef2sed.sed
3980 # This sed command replaces #undef with comments. This is necessary, for
3981 # example, in the case of _POSIX_SOURCE, which is predefined and required
3982 # on some systems where configure will not decide to define it.
3983 cat >>conftest.undefs <<\EOF
3984 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
3987 # Break up conftest.defines because some shells have a limit on the size
3988 # of here documents, and old seds have small limits too (100 cmds).
3989 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
3990 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
3991 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
3992 echo ' :' >>$CONFIG_STATUS
3994 while grep . conftest.defines >/dev/null
3996 # Write a limited-size here document to $tmp/defines.sed.
3997 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
3998 # Speed up: don't consider the non `#define' lines.
3999 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
4000 # Work around the forget-to-reset-the-flag bug.
4001 echo 't clr' >>$CONFIG_STATUS
4002 echo ': clr' >>$CONFIG_STATUS
4003 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
4005 sed -f $tmp/defines.sed $tmp/in >$tmp/out
4009 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
4010 rm -f conftest.defines
4011 mv conftest.tail conftest.defines
4013 rm -f conftest.defines
4014 echo ' fi # egrep' >>$CONFIG_STATUS
4015 echo >>$CONFIG_STATUS
4017 # Break up conftest.undefs because some shells have a limit on the size
4018 # of here documents, and old seds have small limits too (100 cmds).
4019 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
4021 while grep . conftest.undefs >/dev/null
4023 # Write a limited-size here document to $tmp/undefs.sed.
4024 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
4025 # Speed up: don't consider the non `#undef'
4026 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
4027 # Work around the forget-to-reset-the-flag bug.
4028 echo 't clr' >>$CONFIG_STATUS
4029 echo ': clr' >>$CONFIG_STATUS
4030 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
4032 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
4036 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
4037 rm -f conftest.undefs
4038 mv conftest.tail conftest.undefs
4040 rm -f conftest.undefs
4042 cat >>$CONFIG_STATUS <<\EOF
4043 # Let's still pretend it is `configure' which instantiates (i.e., don't
4044 # use $as_me), people would be surprised to read:
4045 # /* config.h. Generated automatically by config.status. */
4046 if test x"$ac_file" = x-; then
4047 echo "/* Generated automatically by configure. */" >$tmp/config.h
4049 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
4051 cat $tmp/in >>$tmp/config.h
4053 if test x"$ac_file" != x-; then
4054 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
4055 { echo "$as_me:4055: $ac_file is unchanged" >&5
4056 echo "$as_me: $ac_file is unchanged" >&6;}
4058 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4059 X"$ac_file" : 'X\(//\)[^/]' \| \
4060 X"$ac_file" : 'X\(//\)$' \| \
4061 X"$ac_file" : 'X\(/\)' \| \
4062 . : '\(.\)' 2>/dev/null ||
4064 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4065 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4066 /^X\(\/\/\)$/{ s//\1/; q; }
4067 /^X\(\/\).*/{ s//\1/; q; }
4069 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4071 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
4075 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
4076 case $as_mkdir_dir in
4077 # Skip DOS drivespec
4078 ?:) as_incr_dir=$as_mkdir_dir ;;
4080 as_incr_dir=$as_incr_dir/$as_mkdir_dir
4081 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
4088 mv $tmp/config.h $ac_file
4096 cat >>$CONFIG_STATUS <<\EOF
4099 # CONFIG_COMMANDS section.
4101 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
4102 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
4103 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
4106 default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
4111 cat >>$CONFIG_STATUS <<\EOF
4113 { (exit 0); exit 0; }
4115 chmod +x $CONFIG_STATUS
4116 ac_clean_files=$ac_clean_files_save
4118 # configure is writing to config.log, and then calls config.status.
4119 # config.status does its own redirection, appending to config.log.
4120 # Unfortunately, on DOS this fails, as config.log is still kept open
4121 # by configure, so config.status won't be able to write to it; its
4122 # output is simply discarded. So we exec the FD to /dev/null,
4123 # effectively closing config.log, so it can be properly (re)opened and
4124 # appended to by config.status. When coming back to configure, we
4125 # need to make the FD available again.
4126 if test "$no_create" != yes; then
4129 $SHELL $CONFIG_STATUS || ac_cs_success=false
4131 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4132 # would make configure fail if this is the last instruction.
4133 $ac_cs_success || { (exit 1); exit 1; }