2 # From configure.in Revision: 1.9 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by Autoconf 2.52.20100530.
6 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
7 # Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
11 # Avoid depending upon Character Ranges.
12 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15 as_cr_digits='0123456789'
16 as_cr_alnum=$as_cr_Letters$as_cr_digits
18 # Sed expression to map a string onto a valid variable name.
19 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
21 # Sed expression to map a string onto a valid CPP name.
22 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
24 # Be Bourne compatible
25 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
28 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
32 # Name of the executable.
33 as_me=`echo "$0" |sed 's,.*[\\/],,'`
35 if expr a : '\(a\)' >/dev/null 2>&1; then
41 rm -f conf$$ conf$$.exe conf$$.file
43 if ln -s conf$$.file conf$$ 2>/dev/null; then
44 # We could just check for DJGPP; but this test a) works b) is more generic
45 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
46 if test -f conf$$.exe; then
47 # Don't use ln at all; we don't have any links
52 elif ln conf$$.file conf$$ 2>/dev/null; then
57 rm -f conf$$ conf$$.exe conf$$.file
59 as_executable_p="test -f"
61 # Support unset when possible.
62 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
69 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
70 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
71 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
72 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
73 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
74 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
75 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
76 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
79 # We need space, tab and new line, in precisely that order.
85 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
88 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
89 # so uname gets run too.
90 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
97 ac_default_prefix=/usr/local
101 SHELL=${CONFIG_SHELL-/bin/sh}
103 # Maximum number of lines to put in a shell here document.
104 # This variable seems obsolete. It should probably be removed, and
105 # only ac_max_sed_lines should be used.
106 : ${ac_max_here_lines=38}
108 ac_unique_file="main.c"
110 # Initialize some variables set by options.
112 ac_init_version=false
113 # The variables have the same names as the options, with
114 # dashes changed to underlines.
122 program_transform_name=s,x,x,
130 # Installation directory options.
131 # These are left unexpanded so users can "make install exec_prefix=/foo"
132 # and all the variables that are supposed to be based on exec_prefix
133 # by default will actually change.
134 # Use braces instead of parens because sh, perl, etc. also accept them.
135 bindir='${exec_prefix}/bin'
136 sbindir='${exec_prefix}/sbin'
137 libexecdir='${exec_prefix}/libexec'
138 datadir='${prefix}/share'
139 sysconfdir='${prefix}/etc'
140 sharedstatedir='${prefix}/com'
141 localstatedir='${prefix}/var'
142 libdir='${exec_prefix}/lib'
143 includedir='${prefix}/include'
144 oldincludedir='/usr/include'
145 infodir='${prefix}/info'
146 mandir='${prefix}/man'
148 # Identity of this package.
158 # If the previous option needs an argument, assign it.
159 if test -n "$ac_prev"; then
160 eval "$ac_prev=\$ac_option"
165 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
167 # Accept the important Cygnus configure options, so we can diagnose typos.
171 -bindir | --bindir | --bindi | --bind | --bin | --bi)
173 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
176 -build | --build | --buil | --bui | --bu)
177 ac_prev=build_alias ;;
178 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
179 build_alias=$ac_optarg ;;
181 -cache-file | --cache-file | --cache-fil | --cache-fi \
182 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
183 ac_prev=cache_file ;;
184 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
185 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
186 cache_file=$ac_optarg ;;
189 cache_file=config.cache ;;
191 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
193 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
195 datadir=$ac_optarg ;;
197 -disable-* | --disable-*)
198 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
199 # Reject names that are not valid shell variable names.
200 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
201 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
202 { (exit 1); exit 1; }; }
203 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
204 eval "enable_$ac_feature=no" ;;
206 -enable-* | --enable-*)
207 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
208 # Reject names that are not valid shell variable names.
209 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
210 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
211 { (exit 1); exit 1; }; }
212 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
214 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
217 eval "enable_$ac_feature='$ac_optarg'" ;;
219 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
220 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
221 | --exec | --exe | --ex)
222 ac_prev=exec_prefix ;;
223 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
224 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
225 | --exec=* | --exe=* | --ex=*)
226 exec_prefix=$ac_optarg ;;
228 -gas | --gas | --ga | --g)
229 # Obsolete; use --with-gas.
232 -help | --help | --hel | --he | -h)
234 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
235 ac_init_help=recursive ;;
236 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
237 ac_init_help=short ;;
239 -host | --host | --hos | --ho)
240 ac_prev=host_alias ;;
241 -host=* | --host=* | --hos=* | --ho=*)
242 host_alias=$ac_optarg ;;
244 -includedir | --includedir | --includedi | --included | --include \
245 | --includ | --inclu | --incl | --inc)
246 ac_prev=includedir ;;
247 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
248 | --includ=* | --inclu=* | --incl=* | --inc=*)
249 includedir=$ac_optarg ;;
251 -infodir | --infodir | --infodi | --infod | --info | --inf)
253 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
254 infodir=$ac_optarg ;;
256 -libdir | --libdir | --libdi | --libd)
258 -libdir=* | --libdir=* | --libdi=* | --libd=*)
261 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
262 | --libexe | --libex | --libe)
263 ac_prev=libexecdir ;;
264 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
265 | --libexe=* | --libex=* | --libe=*)
266 libexecdir=$ac_optarg ;;
268 -localstatedir | --localstatedir | --localstatedi | --localstated \
269 | --localstate | --localstat | --localsta | --localst \
270 | --locals | --local | --loca | --loc | --lo)
271 ac_prev=localstatedir ;;
272 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
273 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
274 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
275 localstatedir=$ac_optarg ;;
277 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
279 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
283 # Obsolete; use --without-fp.
286 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
290 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
291 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
294 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
295 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
296 | --oldin | --oldi | --old | --ol | --o)
297 ac_prev=oldincludedir ;;
298 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
299 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
300 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
301 oldincludedir=$ac_optarg ;;
303 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
305 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
308 -program-prefix | --program-prefix | --program-prefi | --program-pref \
309 | --program-pre | --program-pr | --program-p)
310 ac_prev=program_prefix ;;
311 -program-prefix=* | --program-prefix=* | --program-prefi=* \
312 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
313 program_prefix=$ac_optarg ;;
315 -program-suffix | --program-suffix | --program-suffi | --program-suff \
316 | --program-suf | --program-su | --program-s)
317 ac_prev=program_suffix ;;
318 -program-suffix=* | --program-suffix=* | --program-suffi=* \
319 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
320 program_suffix=$ac_optarg ;;
322 -program-transform-name | --program-transform-name \
323 | --program-transform-nam | --program-transform-na \
324 | --program-transform-n | --program-transform- \
325 | --program-transform | --program-transfor \
326 | --program-transfo | --program-transf \
327 | --program-trans | --program-tran \
328 | --progr-tra | --program-tr | --program-t)
329 ac_prev=program_transform_name ;;
330 -program-transform-name=* | --program-transform-name=* \
331 | --program-transform-nam=* | --program-transform-na=* \
332 | --program-transform-n=* | --program-transform-=* \
333 | --program-transform=* | --program-transfor=* \
334 | --program-transfo=* | --program-transf=* \
335 | --program-trans=* | --program-tran=* \
336 | --progr-tra=* | --program-tr=* | --program-t=*)
337 program_transform_name=$ac_optarg ;;
339 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
340 | -silent | --silent | --silen | --sile | --sil)
343 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
345 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
347 sbindir=$ac_optarg ;;
349 -sharedstatedir | --sharedstatedir | --sharedstatedi \
350 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
351 | --sharedst | --shareds | --shared | --share | --shar \
353 ac_prev=sharedstatedir ;;
354 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
355 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
356 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
358 sharedstatedir=$ac_optarg ;;
360 -site | --site | --sit)
362 -site=* | --site=* | --sit=*)
365 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
367 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
370 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
371 | --syscon | --sysco | --sysc | --sys | --sy)
372 ac_prev=sysconfdir ;;
373 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
374 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
375 sysconfdir=$ac_optarg ;;
377 -target | --target | --targe | --targ | --tar | --ta | --t)
378 ac_prev=target_alias ;;
379 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
380 target_alias=$ac_optarg ;;
382 -v | -verbose | --verbose | --verbos | --verbo | --verb)
385 -version | --version | --versio | --versi | --vers | -V)
389 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
390 # Reject names that are not valid shell variable names.
391 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
392 { echo "$as_me: error: invalid package name: $ac_package" >&2
393 { (exit 1); exit 1; }; }
394 ac_package=`echo $ac_package| sed 's/-/_/g'`
396 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
399 eval "with_$ac_package='$ac_optarg'" ;;
401 -without-* | --without-*)
402 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
403 # Reject names that are not valid shell variable names.
404 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
405 { echo "$as_me: error: invalid package name: $ac_package" >&2
406 { (exit 1); exit 1; }; }
407 ac_package=`echo $ac_package | sed 's/-/_/g'`
408 eval "with_$ac_package=no" ;;
411 # Obsolete; use --with-x.
414 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
415 | --x-incl | --x-inc | --x-in | --x-i)
416 ac_prev=x_includes ;;
417 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
418 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
419 x_includes=$ac_optarg ;;
421 -x-libraries | --x-libraries | --x-librarie | --x-librari \
422 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
423 ac_prev=x_libraries ;;
424 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
425 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
426 x_libraries=$ac_optarg ;;
428 -*) { echo "$as_me: error: unrecognized option: $ac_option
429 Try \`$0 --help' for more information." >&2
430 { (exit 1); exit 1; }; }
434 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
435 # Reject names that are not valid shell variable names.
436 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
437 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
438 { (exit 1); exit 1; }; }
439 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
440 eval "$ac_envvar='$ac_optarg'"
444 # FIXME: should be removed in autoconf 3.0.
445 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
446 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
447 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
448 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
454 if test -n "$ac_prev"; then
455 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
456 { echo "$as_me: error: missing argument to $ac_option" >&2
457 { (exit 1); exit 1; }; }
460 # Be sure to have absolute paths.
461 for ac_var in exec_prefix prefix
463 eval ac_val=$`echo $ac_var`
465 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
466 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
467 { (exit 1); exit 1; }; };;
471 # Be sure to have absolute paths.
472 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
473 localstatedir libdir includedir oldincludedir infodir mandir
475 eval ac_val=$`echo $ac_var`
477 [\\/$]* | ?:[\\/]* ) ;;
478 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
479 { (exit 1); exit 1; }; };;
483 # There might be people who depend on the old broken behavior: `$host'
484 # used to hold the argument of --host etc.
489 # FIXME: should be removed in autoconf 3.0.
490 if test "x$host_alias" != x; then
491 if test "x$build_alias" = x; then
492 cross_compiling=maybe
493 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
494 If a cross compiler is detected then cross compile mode will be used." >&2
495 elif test "x$build_alias" != "x$host_alias"; then
501 test -n "$host_alias" && ac_tool_prefix=$host_alias-
503 test "$silent" = yes && exec 6>/dev/null
505 # Find the source files, if location was not specified.
506 if test -z "$srcdir"; then
507 ac_srcdir_defaulted=yes
508 # Try the directory containing this script, then its parent.
510 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
511 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
513 if test ! -r $srcdir/$ac_unique_file; then
517 ac_srcdir_defaulted=no
519 if test ! -r $srcdir/$ac_unique_file; then
520 if test "$ac_srcdir_defaulted" = yes; then
521 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
522 { (exit 1); exit 1; }; }
524 { echo "$as_me: error: cannot find sources in $srcdir" >&2
525 { (exit 1); exit 1; }; }
528 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
529 ac_env_build_alias_set=${build_alias+set}
530 ac_env_build_alias_value=$build_alias
531 ac_cv_env_build_alias_set=${build_alias+set}
532 ac_cv_env_build_alias_value=$build_alias
533 ac_env_host_alias_set=${host_alias+set}
534 ac_env_host_alias_value=$host_alias
535 ac_cv_env_host_alias_set=${host_alias+set}
536 ac_cv_env_host_alias_value=$host_alias
537 ac_env_target_alias_set=${target_alias+set}
538 ac_env_target_alias_value=$target_alias
539 ac_cv_env_target_alias_set=${target_alias+set}
540 ac_cv_env_target_alias_value=$target_alias
541 ac_env_CC_set=${CC+set}
543 ac_cv_env_CC_set=${CC+set}
544 ac_cv_env_CC_value=$CC
545 ac_env_CFLAGS_set=${CFLAGS+set}
546 ac_env_CFLAGS_value=$CFLAGS
547 ac_cv_env_CFLAGS_set=${CFLAGS+set}
548 ac_cv_env_CFLAGS_value=$CFLAGS
549 ac_env_LDFLAGS_set=${LDFLAGS+set}
550 ac_env_LDFLAGS_value=$LDFLAGS
551 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
552 ac_cv_env_LDFLAGS_value=$LDFLAGS
553 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
554 ac_env_CPPFLAGS_value=$CPPFLAGS
555 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
556 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
557 ac_env_CPP_set=${CPP+set}
558 ac_env_CPP_value=$CPP
559 ac_cv_env_CPP_set=${CPP+set}
560 ac_cv_env_CPP_value=$CPP
563 # Report the --help message.
565 if test "$ac_init_help" = "long"; then
566 # Omit some internal or obsolete options to make the list less imposing.
567 # This message is too long to be a string in the A/UX 3.1 sh.
569 \`configure' configures this package to adapt to many kinds of systems.
571 Usage: $0 [OPTION]... [VAR=VALUE]...
573 To assign environment variables (e.g., CC, CFLAGS...), specify them as
574 VAR=VALUE. See below for descriptions of some of the useful variables.
576 Defaults for the options are specified in brackets.
579 -h, --help display this help and exit
580 --help=short display options specific to this package
581 --help=recursive display the short help of all the included packages
582 -V, --version display version information and exit
583 -q, --quiet, --silent do not print \`checking...' messages
584 --cache-file=FILE cache test results in FILE [disabled]
585 -C, --config-cache alias for \`--cache-file=config.cache'
586 -n, --no-create do not create output files
587 --srcdir=DIR find the sources in DIR [configure dir or \`..']
592 Installation directories:
593 --prefix=PREFIX install architecture-independent files in PREFIX
595 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
598 By default, \`make install' will install all the files in
599 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
600 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
601 for instance \`--prefix=\$HOME'.
603 For better control, use the options below.
605 Fine tuning of the installation directories:
606 --bindir=DIR user executables [EPREFIX/bin]
607 --sbindir=DIR system admin executables [EPREFIX/sbin]
608 --libexecdir=DIR program executables [EPREFIX/libexec]
609 --datadir=DIR read-only architecture-independent data [PREFIX/share]
610 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
611 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
612 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
613 --libdir=DIR object code libraries [EPREFIX/lib]
614 --includedir=DIR C header files [PREFIX/include]
615 --oldincludedir=DIR C header files for non-gcc [/usr/include]
616 --infodir=DIR info documentation [PREFIX/info]
617 --mandir=DIR man documentation [PREFIX/man]
623 --program-prefix=PREFIX prepend PREFIX to installed program names
624 --program-suffix=SUFFIX append SUFFIX to installed program names
625 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
628 --build=BUILD configure for building on BUILD [guessed]
629 --host=HOST build programs to run on HOST [BUILD]
630 --target=TARGET configure for building compilers for TARGET [HOST]
634 if test -n "$ac_init_help"; then
639 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
640 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
643 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
644 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
646 --with-warnings test: turn on gcc warnings
647 --disable-echo display "compiling" commands
648 --with-dmalloc test: use Gray Watson's dmalloc library
649 --with-dbmalloc test: use Conor Cahill's dbmalloc library
650 --with-valgrind test: use valgrind
651 --disable-leaks test: free permanent memory, analyze leaks
653 Some influential environment variables:
654 CC C compiler command
655 CFLAGS C compiler flags
656 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
657 nonstandard directory <lib dir>
658 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
659 headers in a nonstandard directory <include dir>
662 Use these variables to override the choices made by `configure' or to help
663 it to find libraries and programs with nonstandard names/locations.
668 if test "$ac_init_help" = "recursive"; then
669 # If there are subdirs, report their specific --help.
671 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
673 # A "../" for each directory in /$ac_subdir.
674 ac_dots=`echo $ac_subdir |
675 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
678 .) # No --srcdir option. We are building in place.
679 ac_sub_srcdir=$srcdir ;;
680 [\\/]* | ?:[\\/]* ) # Absolute path.
681 ac_sub_srcdir=$srcdir/$ac_subdir ;;
683 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
686 # Check for guested configure; otherwise get Cygnus style configure.
687 if test -f $ac_sub_srcdir/configure.gnu; then
689 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
690 elif test -f $ac_sub_srcdir/configure; then
692 $SHELL $ac_sub_srcdir/configure --help=recursive
693 elif test -f $ac_sub_srcdir/configure.ac ||
694 test -f $ac_sub_srcdir/configure.in; then
698 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
704 test -n "$ac_init_help" && exit 0
705 if $ac_init_version; then
708 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
709 Free Software Foundation, Inc.
710 This configure script is free software; the Free Software Foundation
711 gives unlimited permission to copy, distribute and modify it.
717 This file contains any messages produced by compilers while
718 running configure, to aid debugging if configure makes a mistake.
720 It was created by $as_me, which was
721 generated by GNU Autoconf 2.52.20100530. Invocation command line was
732 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
733 uname -m = `(uname -m) 2>/dev/null || echo unknown`
734 uname -r = `(uname -r) 2>/dev/null || echo unknown`
735 uname -s = `(uname -s) 2>/dev/null || echo unknown`
736 uname -v = `(uname -v) 2>/dev/null || echo unknown`
738 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
739 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
741 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
742 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
743 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
744 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
745 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
746 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
747 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
761 # Keep a trace of the command line.
762 # Strip out --no-create and --no-recursion so they do not pile up.
763 # Also quote any args containing shell meta-characters.
769 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
770 | --no-cr | --no-c) ;;
771 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
772 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
773 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
774 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
775 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
777 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
780 # Get rid of the leading space.
783 # When interrupted or exit'd, cleanup temporary files, and complete
784 # config.log. We remove comments because anyway the quotes in there
785 # would cause problems or look ugly.
787 # Save into config.log some information that might help in debugging.
789 echo "## ----------------- ##" >&5
790 echo "## Cache variables. ##" >&5
791 echo "## ----------------- ##" >&5
793 # The following way of writing the cache mishandles newlines in values,
796 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
799 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
800 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
804 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
808 sed "/^$/d" confdefs.h >conftest.log
809 if test -s conftest.log; then
811 echo "## ------------ ##" >&5
812 echo "## confdefs.h. ##" >&5
813 echo "## ------------ ##" >&5
818 test "$ac_signal" != 0 &&
819 echo "$as_me: caught signal $ac_signal" >&5
820 echo "$as_me: exit $exit_status" >&5
821 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
824 for ac_signal in 1 2 13 15; do
825 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
829 # confdefs.h avoids OS command line length limits that DEFS can exceed.
830 rm -rf conftest* confdefs.h
831 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
834 # Let the site file select an alternate cache file if it wants to.
835 # Prefer explicitly selected file to automatically selected ones.
836 if test -z "$CONFIG_SITE"; then
837 if test "x$prefix" != xNONE; then
838 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
840 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
843 for ac_site_file in $CONFIG_SITE; do
844 if test -r "$ac_site_file"; then
845 { echo "$as_me:845: loading site script $ac_site_file" >&5
846 echo "$as_me: loading site script $ac_site_file" >&6;}
847 cat "$ac_site_file" >&5
852 if test -r "$cache_file"; then
853 # Some versions of bash will fail to source /dev/null (special
854 # files actually), so we avoid doing that.
855 if test -f "$cache_file"; then
856 { echo "$as_me:856: loading cache $cache_file" >&5
857 echo "$as_me: loading cache $cache_file" >&6;}
859 [\\/]* | ?:[\\/]* ) . $cache_file;;
864 { echo "$as_me:864: creating cache $cache_file" >&5
865 echo "$as_me: creating cache $cache_file" >&6;}
869 # Check that the precious variables saved in the cache have kept the same
871 ac_cache_corrupted=false
872 for ac_var in `(set) 2>&1 |
873 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
874 eval ac_old_set=\$ac_cv_env_${ac_var}_set
875 eval ac_new_set=\$ac_env_${ac_var}_set
876 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
877 eval ac_new_val="\$ac_env_${ac_var}_value"
878 case $ac_old_set,$ac_new_set in
880 { echo "$as_me:880: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
881 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
882 ac_cache_corrupted=: ;;
884 { echo "$as_me:884: error: \`$ac_var' was not set in the previous run" >&5
885 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
886 ac_cache_corrupted=: ;;
889 if test "x$ac_old_val" != "x$ac_new_val"; then
890 { echo "$as_me:890: error: \`$ac_var' has changed since the previous run:" >&5
891 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
892 { echo "$as_me:892: former value: $ac_old_val" >&5
893 echo "$as_me: former value: $ac_old_val" >&2;}
894 { echo "$as_me:894: current value: $ac_new_val" >&5
895 echo "$as_me: current value: $ac_new_val" >&2;}
899 # Pass precious variables to config.status. It doesn't matter if
900 # we pass some twice (in addition to the command line arguments).
901 if test "$ac_new_set" = set; then
903 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
904 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
905 ac_configure_args="$ac_configure_args '$ac_arg'"
907 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
912 if $ac_cache_corrupted; then
913 { echo "$as_me:913: error: changes in the environment can compromise the build" >&5
914 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
915 { { echo "$as_me:915: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
916 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
917 { (exit 1); exit 1; }; }
921 ac_cpp='$CPP $CPPFLAGS'
922 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
923 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
924 ac_compiler_gnu=$ac_cv_c_compiler_gnu
925 ac_main_return=return
927 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
928 *c*,-n*) ECHO_N= ECHO_C='
930 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
931 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
933 echo "#! $SHELL" >conftest.sh
934 echo "exit 0" >>conftest.sh
936 if { (echo "$as_me:936: PATH=\".;.\"; conftest.sh") >&5
937 (PATH=".;."; conftest.sh) 2>&5
939 echo "$as_me:939: \$? = $ac_status" >&5
940 (exit $ac_status); }; then
941 ac_path_separator=';'
945 PATH_SEPARATOR="$ac_path_separator"
948 ac_config_headers="$ac_config_headers config.h:config_h.in"
951 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
952 if test -f $ac_dir/install-sh; then
954 ac_install_sh="$ac_aux_dir/install-sh -c"
956 elif test -f $ac_dir/install.sh; then
958 ac_install_sh="$ac_aux_dir/install.sh -c"
960 elif test -f $ac_dir/shtool; then
962 ac_install_sh="$ac_aux_dir/shtool install -c"
966 if test -z "$ac_aux_dir"; then
967 { { echo "$as_me:967: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
968 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
969 { (exit 1); exit 1; }; }
971 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
972 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
973 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
975 # Make sure we can run config.sub.
976 $ac_config_sub sun4 >/dev/null 2>&1 ||
977 { { echo "$as_me:977: error: cannot run $ac_config_sub" >&5
978 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
979 { (exit 1); exit 1; }; }
981 echo "$as_me:981: checking build system type" >&5
982 echo $ECHO_N "checking build system type... $ECHO_C" >&6
983 if test "${ac_cv_build+set}" = set; then
984 echo $ECHO_N "(cached) $ECHO_C" >&6
986 ac_cv_build_alias=$build_alias
987 test -z "$ac_cv_build_alias" &&
988 ac_cv_build_alias=`$ac_config_guess`
989 test -z "$ac_cv_build_alias" &&
990 { { echo "$as_me:990: error: cannot guess build type; you must specify one" >&5
991 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
992 { (exit 1); exit 1; }; }
993 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
994 { { echo "$as_me:994: error: $ac_config_sub $ac_cv_build_alias failed." >&5
995 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
996 { (exit 1); exit 1; }; }
999 echo "$as_me:999: result: $ac_cv_build" >&5
1000 echo "${ECHO_T}$ac_cv_build" >&6
1002 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1003 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1004 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1006 echo "$as_me:1006: checking host system type" >&5
1007 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1008 if test "${ac_cv_host+set}" = set; then
1009 echo $ECHO_N "(cached) $ECHO_C" >&6
1011 ac_cv_host_alias=$host_alias
1012 test -z "$ac_cv_host_alias" &&
1013 ac_cv_host_alias=$ac_cv_build_alias
1014 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1015 { { echo "$as_me:1015: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1016 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1017 { (exit 1); exit 1; }; }
1020 echo "$as_me:1020: result: $ac_cv_host" >&5
1021 echo "${ECHO_T}$ac_cv_host" >&6
1023 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1024 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1025 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1027 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1028 echo "$as_me:1028: checking target system type" >&5
1029 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1030 if test "${ac_cv_target+set}" = set; then
1031 echo $ECHO_N "(cached) $ECHO_C" >&6
1033 ac_cv_target_alias=$target_alias
1034 test "x$ac_cv_target_alias" = "x" &&
1035 ac_cv_target_alias=$ac_cv_host_alias
1036 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1037 { { echo "$as_me:1037: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1038 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1039 { (exit 1); exit 1; }; }
1042 echo "$as_me:1042: result: $ac_cv_target" >&5
1043 echo "${ECHO_T}$ac_cv_target" >&6
1044 target=$ac_cv_target
1045 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1046 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1047 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1049 # The aliases save the names the user supplied, while $host etc.
1050 # will get canonicalized.
1051 test -n "$target_alias" &&
1052 test "$program_prefix$program_suffix$program_transform_name" = \
1054 program_prefix=${target_alias}-
1055 system_name="$host_os"
1057 system_name="`(uname -s -r) 2>/dev/null`"
1058 if test -z "$system_name" ; then
1059 system_name="`(hostname) 2>/dev/null`"
1062 test -n "$system_name" && cat >>confdefs.h <<EOF
1063 #define SYSTEM_NAME "$system_name"
1066 if test "${cf_cv_system_name+set}" = set; then
1067 echo $ECHO_N "(cached) $ECHO_C" >&6
1069 cf_cv_system_name="$system_name"
1072 test -z "$system_name" && system_name="$cf_cv_system_name"
1073 test -n "$cf_cv_system_name" && echo "$as_me:1073: result: Configuring for $cf_cv_system_name" >&5
1074 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1076 if test ".$system_name" != ".$cf_cv_system_name" ; then
1077 echo "$as_me:1077: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1078 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1079 { { echo "$as_me:1079: error: \"Please remove config.cache and try again.\"" >&5
1080 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1081 { (exit 1); exit 1; }; }
1084 test "$program_prefix" != NONE &&
1085 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1086 # Use a double $ so make ignores it.
1087 test "$program_suffix" != NONE &&
1088 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1089 # Double any \ or $. echo might interpret backslashes.
1090 # By default was `s,x,x', remove it if useless.
1091 cat <<\_ACEOF >conftest.sed
1092 s/[\\$]/&&/g;s/;s,x,x,$//
1094 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1098 ac_cpp='$CPP $CPPFLAGS'
1099 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1100 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1101 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1102 ac_main_return=return
1103 if test -n "$ac_tool_prefix"; then
1104 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1105 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1106 echo "$as_me:1106: checking for $ac_word" >&5
1107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1108 if test "${ac_cv_prog_CC+set}" = set; then
1109 echo $ECHO_N "(cached) $ECHO_C" >&6
1111 if test -n "$CC"; then
1112 ac_cv_prog_CC="$CC" # Let the user override the test.
1114 ac_save_IFS=$IFS; IFS=$ac_path_separator
1116 for ac_dir in $ac_dummy; do
1118 test -z "$ac_dir" && ac_dir=.
1119 $as_executable_p "$ac_dir/$ac_word" || continue
1120 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1121 echo "$as_me:1121: found $ac_dir/$ac_word" >&5
1128 if test -n "$CC"; then
1129 echo "$as_me:1129: result: $CC" >&5
1130 echo "${ECHO_T}$CC" >&6
1132 echo "$as_me:1132: result: no" >&5
1133 echo "${ECHO_T}no" >&6
1137 if test -z "$ac_cv_prog_CC"; then
1139 # Extract the first word of "gcc", so it can be a program name with args.
1140 set dummy gcc; ac_word=$2
1141 echo "$as_me:1141: checking for $ac_word" >&5
1142 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1143 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1144 echo $ECHO_N "(cached) $ECHO_C" >&6
1146 if test -n "$ac_ct_CC"; then
1147 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1149 ac_save_IFS=$IFS; IFS=$ac_path_separator
1151 for ac_dir in $ac_dummy; do
1153 test -z "$ac_dir" && ac_dir=.
1154 $as_executable_p "$ac_dir/$ac_word" || continue
1155 ac_cv_prog_ac_ct_CC="gcc"
1156 echo "$as_me:1156: found $ac_dir/$ac_word" >&5
1162 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1163 if test -n "$ac_ct_CC"; then
1164 echo "$as_me:1164: result: $ac_ct_CC" >&5
1165 echo "${ECHO_T}$ac_ct_CC" >&6
1167 echo "$as_me:1167: result: no" >&5
1168 echo "${ECHO_T}no" >&6
1176 if test -z "$CC"; then
1177 if test -n "$ac_tool_prefix"; then
1178 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1179 set dummy ${ac_tool_prefix}cc; ac_word=$2
1180 echo "$as_me:1180: checking for $ac_word" >&5
1181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1182 if test "${ac_cv_prog_CC+set}" = set; then
1183 echo $ECHO_N "(cached) $ECHO_C" >&6
1185 if test -n "$CC"; then
1186 ac_cv_prog_CC="$CC" # Let the user override the test.
1188 ac_save_IFS=$IFS; IFS=$ac_path_separator
1190 for ac_dir in $ac_dummy; do
1192 test -z "$ac_dir" && ac_dir=.
1193 $as_executable_p "$ac_dir/$ac_word" || continue
1194 ac_cv_prog_CC="${ac_tool_prefix}cc"
1195 echo "$as_me:1195: found $ac_dir/$ac_word" >&5
1202 if test -n "$CC"; then
1203 echo "$as_me:1203: result: $CC" >&5
1204 echo "${ECHO_T}$CC" >&6
1206 echo "$as_me:1206: result: no" >&5
1207 echo "${ECHO_T}no" >&6
1211 if test -z "$ac_cv_prog_CC"; then
1213 # Extract the first word of "cc", so it can be a program name with args.
1214 set dummy cc; ac_word=$2
1215 echo "$as_me:1215: checking for $ac_word" >&5
1216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1217 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1218 echo $ECHO_N "(cached) $ECHO_C" >&6
1220 if test -n "$ac_ct_CC"; then
1221 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1223 ac_save_IFS=$IFS; IFS=$ac_path_separator
1225 for ac_dir in $ac_dummy; do
1227 test -z "$ac_dir" && ac_dir=.
1228 $as_executable_p "$ac_dir/$ac_word" || continue
1229 ac_cv_prog_ac_ct_CC="cc"
1230 echo "$as_me:1230: found $ac_dir/$ac_word" >&5
1236 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1237 if test -n "$ac_ct_CC"; then
1238 echo "$as_me:1238: result: $ac_ct_CC" >&5
1239 echo "${ECHO_T}$ac_ct_CC" >&6
1241 echo "$as_me:1241: result: no" >&5
1242 echo "${ECHO_T}no" >&6
1251 if test -z "$CC"; then
1252 # Extract the first word of "cc", so it can be a program name with args.
1253 set dummy cc; ac_word=$2
1254 echo "$as_me:1254: checking for $ac_word" >&5
1255 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1256 if test "${ac_cv_prog_CC+set}" = set; then
1257 echo $ECHO_N "(cached) $ECHO_C" >&6
1259 if test -n "$CC"; then
1260 ac_cv_prog_CC="$CC" # Let the user override the test.
1263 ac_save_IFS=$IFS; IFS=$ac_path_separator
1265 for ac_dir in $ac_dummy; do
1267 test -z "$ac_dir" && ac_dir=.
1268 $as_executable_p "$ac_dir/$ac_word" || continue
1269 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1270 ac_prog_rejected=yes
1274 echo "$as_me:1274: found $ac_dir/$ac_word" >&5
1278 if test $ac_prog_rejected = yes; then
1279 # We found a bogon in the path, so make sure we never use it.
1280 set dummy $ac_cv_prog_CC
1282 if test $# != 0; then
1283 # We chose a different compiler from the bogus one.
1284 # However, it has the same basename, so the bogon will be chosen
1285 # first if we set CC to just the basename; use the full file name.
1287 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1295 if test -n "$CC"; then
1296 echo "$as_me:1296: result: $CC" >&5
1297 echo "${ECHO_T}$CC" >&6
1299 echo "$as_me:1299: result: no" >&5
1300 echo "${ECHO_T}no" >&6
1304 if test -z "$CC"; then
1305 if test -n "$ac_tool_prefix"; then
1308 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1309 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1310 echo "$as_me:1310: checking for $ac_word" >&5
1311 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1312 if test "${ac_cv_prog_CC+set}" = set; then
1313 echo $ECHO_N "(cached) $ECHO_C" >&6
1315 if test -n "$CC"; then
1316 ac_cv_prog_CC="$CC" # Let the user override the test.
1318 ac_save_IFS=$IFS; IFS=$ac_path_separator
1320 for ac_dir in $ac_dummy; do
1322 test -z "$ac_dir" && ac_dir=.
1323 $as_executable_p "$ac_dir/$ac_word" || continue
1324 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1325 echo "$as_me:1325: found $ac_dir/$ac_word" >&5
1332 if test -n "$CC"; then
1333 echo "$as_me:1333: result: $CC" >&5
1334 echo "${ECHO_T}$CC" >&6
1336 echo "$as_me:1336: result: no" >&5
1337 echo "${ECHO_T}no" >&6
1340 test -n "$CC" && break
1343 if test -z "$CC"; then
1347 # Extract the first word of "$ac_prog", so it can be a program name with args.
1348 set dummy $ac_prog; ac_word=$2
1349 echo "$as_me:1349: checking for $ac_word" >&5
1350 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1351 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1352 echo $ECHO_N "(cached) $ECHO_C" >&6
1354 if test -n "$ac_ct_CC"; then
1355 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1357 ac_save_IFS=$IFS; IFS=$ac_path_separator
1359 for ac_dir in $ac_dummy; do
1361 test -z "$ac_dir" && ac_dir=.
1362 $as_executable_p "$ac_dir/$ac_word" || continue
1363 ac_cv_prog_ac_ct_CC="$ac_prog"
1364 echo "$as_me:1364: found $ac_dir/$ac_word" >&5
1370 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1371 if test -n "$ac_ct_CC"; then
1372 echo "$as_me:1372: result: $ac_ct_CC" >&5
1373 echo "${ECHO_T}$ac_ct_CC" >&6
1375 echo "$as_me:1375: result: no" >&5
1376 echo "${ECHO_T}no" >&6
1379 test -n "$ac_ct_CC" && break
1387 test -z "$CC" && { { echo "$as_me:1387: error: no acceptable cc found in \$PATH" >&5
1388 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1389 { (exit 1); exit 1; }; }
1391 # Provide some information about the compiler.
1392 echo "$as_me:1392:" \
1393 "checking for C compiler version" >&5
1394 ac_compiler=`set X $ac_compile; echo $2`
1395 { (eval echo "$as_me:1395: \"$ac_compiler --version </dev/null >&5\"") >&5
1396 (eval $ac_compiler --version </dev/null >&5) 2>&5
1398 echo "$as_me:1398: \$? = $ac_status" >&5
1399 (exit $ac_status); }
1400 { (eval echo "$as_me:1400: \"$ac_compiler -v </dev/null >&5\"") >&5
1401 (eval $ac_compiler -v </dev/null >&5) 2>&5
1403 echo "$as_me:1403: \$? = $ac_status" >&5
1404 (exit $ac_status); }
1405 { (eval echo "$as_me:1405: \"$ac_compiler -V </dev/null >&5\"") >&5
1406 (eval $ac_compiler -V </dev/null >&5) 2>&5
1408 echo "$as_me:1408: \$? = $ac_status" >&5
1409 (exit $ac_status); }
1411 cat >conftest.$ac_ext <<_ACEOF
1412 #line 1412 "configure"
1413 #include "confdefs.h"
1423 ac_clean_files_save=$ac_clean_files
1424 ac_clean_files="$ac_clean_files a.out a.exe"
1425 # Try to create an executable without -o first, disregard a.out.
1426 # It will help us diagnose broken compilers, and finding out an intuition
1428 echo "$as_me:1428: checking for C compiler default output" >&5
1429 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1430 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1431 if { (eval echo "$as_me:1431: \"$ac_link_default\"") >&5
1432 (eval $ac_link_default) 2>&5
1434 echo "$as_me:1434: \$? = $ac_status" >&5
1435 (exit $ac_status); }; then
1436 # Find the output, starting from the most likely. This scheme is
1437 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1439 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1440 ls a.out conftest 2>/dev/null;
1441 ls a.* conftest.* 2>/dev/null`; do
1443 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1444 a.out ) # We found the default executable, but exeext='' is most
1447 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1448 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1455 echo "$as_me: failed program was:" >&5
1456 cat conftest.$ac_ext >&5
1457 { { echo "$as_me:1457: error: C compiler cannot create executables" >&5
1458 echo "$as_me: error: C compiler cannot create executables" >&2;}
1459 { (exit 77); exit 77; }; }
1462 ac_exeext=$ac_cv_exeext
1463 echo "$as_me:1463: result: $ac_file" >&5
1464 echo "${ECHO_T}$ac_file" >&6
1466 # Check the compiler produces executables we can run. If not, either
1467 # the compiler is broken, or we cross compile.
1468 echo "$as_me:1468: checking whether the C compiler works" >&5
1469 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1470 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1471 # If not cross compiling, check that we can run a simple program.
1472 if test "$cross_compiling" != yes; then
1473 if { ac_try='./$ac_file'
1474 { (eval echo "$as_me:1474: \"$ac_try\"") >&5
1477 echo "$as_me:1477: \$? = $ac_status" >&5
1478 (exit $ac_status); }; }; then
1481 if test "$cross_compiling" = maybe; then
1484 { { echo "$as_me:1484: error: cannot run C compiled programs.
1485 If you meant to cross compile, use \`--host'." >&5
1486 echo "$as_me: error: cannot run C compiled programs.
1487 If you meant to cross compile, use \`--host'." >&2;}
1488 { (exit 1); exit 1; }; }
1492 echo "$as_me:1492: result: yes" >&5
1493 echo "${ECHO_T}yes" >&6
1495 rm -f a.out a.exe conftest$ac_cv_exeext
1496 ac_clean_files=$ac_clean_files_save
1497 # Check the compiler produces executables we can run. If not, either
1498 # the compiler is broken, or we cross compile.
1499 echo "$as_me:1499: checking whether we are cross compiling" >&5
1500 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1501 echo "$as_me:1501: result: $cross_compiling" >&5
1502 echo "${ECHO_T}$cross_compiling" >&6
1504 echo "$as_me:1504: checking for executable suffix" >&5
1505 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1506 if { (eval echo "$as_me:1506: \"$ac_link\"") >&5
1507 (eval $ac_link) 2>&5
1509 echo "$as_me:1509: \$? = $ac_status" >&5
1510 (exit $ac_status); }; then
1511 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1512 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1513 # work properly (i.e., refer to `conftest.exe'), while it won't with
1515 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1517 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1518 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1525 { { echo "$as_me:1525: error: cannot compute EXEEXT: cannot compile and link" >&5
1526 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1527 { (exit 1); exit 1; }; }
1530 rm -f conftest$ac_cv_exeext
1531 echo "$as_me:1531: result: $ac_cv_exeext" >&5
1532 echo "${ECHO_T}$ac_cv_exeext" >&6
1534 rm -f conftest.$ac_ext
1535 EXEEXT=$ac_cv_exeext
1537 echo "$as_me:1537: checking for object suffix" >&5
1538 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1539 if test "${ac_cv_objext+set}" = set; then
1540 echo $ECHO_N "(cached) $ECHO_C" >&6
1542 cat >conftest.$ac_ext <<_ACEOF
1543 #line 1543 "configure"
1544 #include "confdefs.h"
1554 rm -f conftest.o conftest.obj
1555 if { (eval echo "$as_me:1555: \"$ac_compile\"") >&5
1556 (eval $ac_compile) 2>&5
1558 echo "$as_me:1558: \$? = $ac_status" >&5
1559 (exit $ac_status); }; then
1560 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1562 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1563 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1568 echo "$as_me: failed program was:" >&5
1569 cat conftest.$ac_ext >&5
1570 { { echo "$as_me:1570: error: cannot compute OBJEXT: cannot compile" >&5
1571 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1572 { (exit 1); exit 1; }; }
1575 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1577 echo "$as_me:1577: result: $ac_cv_objext" >&5
1578 echo "${ECHO_T}$ac_cv_objext" >&6
1579 OBJEXT=$ac_cv_objext
1581 echo "$as_me:1581: checking whether we are using the GNU C compiler" >&5
1582 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1583 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1584 echo $ECHO_N "(cached) $ECHO_C" >&6
1586 cat >conftest.$ac_ext <<_ACEOF
1587 #line 1587 "configure"
1588 #include "confdefs.h"
1601 rm -f conftest.$ac_objext
1602 if { (eval echo "$as_me:1602: \"$ac_compile\"") >&5
1603 (eval $ac_compile) 2>&5
1605 echo "$as_me:1605: \$? = $ac_status" >&5
1606 (exit $ac_status); } &&
1607 { ac_try='test -s conftest.$ac_objext'
1608 { (eval echo "$as_me:1608: \"$ac_try\"") >&5
1611 echo "$as_me:1611: \$? = $ac_status" >&5
1612 (exit $ac_status); }; }; then
1615 echo "$as_me: failed program was:" >&5
1616 cat conftest.$ac_ext >&5
1619 rm -f conftest.$ac_objext conftest.$ac_ext
1620 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1623 echo "$as_me:1623: result: $ac_cv_c_compiler_gnu" >&5
1624 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1625 GCC=`test $ac_compiler_gnu = yes && echo yes`
1626 ac_test_CFLAGS=${CFLAGS+set}
1627 ac_save_CFLAGS=$CFLAGS
1629 echo "$as_me:1629: checking whether $CC accepts -g" >&5
1630 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1631 if test "${ac_cv_prog_cc_g+set}" = set; then
1632 echo $ECHO_N "(cached) $ECHO_C" >&6
1634 cat >conftest.$ac_ext <<_ACEOF
1635 #line 1635 "configure"
1636 #include "confdefs.h"
1646 rm -f conftest.$ac_objext
1647 if { (eval echo "$as_me:1647: \"$ac_compile\"") >&5
1648 (eval $ac_compile) 2>&5
1650 echo "$as_me:1650: \$? = $ac_status" >&5
1651 (exit $ac_status); } &&
1652 { ac_try='test -s conftest.$ac_objext'
1653 { (eval echo "$as_me:1653: \"$ac_try\"") >&5
1656 echo "$as_me:1656: \$? = $ac_status" >&5
1657 (exit $ac_status); }; }; then
1660 echo "$as_me: failed program was:" >&5
1661 cat conftest.$ac_ext >&5
1664 rm -f conftest.$ac_objext conftest.$ac_ext
1666 echo "$as_me:1666: result: $ac_cv_prog_cc_g" >&5
1667 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1668 if test "$ac_test_CFLAGS" = set; then
1669 CFLAGS=$ac_save_CFLAGS
1670 elif test $ac_cv_prog_cc_g = yes; then
1671 if test "$GCC" = yes; then
1677 if test "$GCC" = yes; then
1683 # Some people use a C++ compiler to compile C. Since we use `exit',
1684 # in C++ we need to declare it. In case someone uses the same compiler
1685 # for both compiling C and C++ we need to have the C++ compiler decide
1686 # the declaration of exit, since it's the most demanding environment.
1687 cat >conftest.$ac_ext <<_ACEOF
1692 rm -f conftest.$ac_objext
1693 if { (eval echo "$as_me:1693: \"$ac_compile\"") >&5
1694 (eval $ac_compile) 2>&5
1696 echo "$as_me:1696: \$? = $ac_status" >&5
1697 (exit $ac_status); } &&
1698 { ac_try='test -s conftest.$ac_objext'
1699 { (eval echo "$as_me:1699: \"$ac_try\"") >&5
1702 echo "$as_me:1702: \$? = $ac_status" >&5
1703 (exit $ac_status); }; }; then
1704 for ac_declaration in \
1706 '#include <stdlib.h>' \
1707 'extern "C" void std::exit (int) throw (); using std::exit;' \
1708 'extern "C" void std::exit (int); using std::exit;' \
1709 'extern "C" void exit (int) throw ();' \
1710 'extern "C" void exit (int);' \
1713 cat >conftest.$ac_ext <<_ACEOF
1714 #line 1714 "configure"
1715 #include "confdefs.h"
1726 rm -f conftest.$ac_objext
1727 if { (eval echo "$as_me:1727: \"$ac_compile\"") >&5
1728 (eval $ac_compile) 2>&5
1730 echo "$as_me:1730: \$? = $ac_status" >&5
1731 (exit $ac_status); } &&
1732 { ac_try='test -s conftest.$ac_objext'
1733 { (eval echo "$as_me:1733: \"$ac_try\"") >&5
1736 echo "$as_me:1736: \$? = $ac_status" >&5
1737 (exit $ac_status); }; }; then
1740 echo "$as_me: failed program was:" >&5
1741 cat conftest.$ac_ext >&5
1744 rm -f conftest.$ac_objext conftest.$ac_ext
1745 cat >conftest.$ac_ext <<_ACEOF
1746 #line 1746 "configure"
1747 #include "confdefs.h"
1757 rm -f conftest.$ac_objext
1758 if { (eval echo "$as_me:1758: \"$ac_compile\"") >&5
1759 (eval $ac_compile) 2>&5
1761 echo "$as_me:1761: \$? = $ac_status" >&5
1762 (exit $ac_status); } &&
1763 { ac_try='test -s conftest.$ac_objext'
1764 { (eval echo "$as_me:1764: \"$ac_try\"") >&5
1767 echo "$as_me:1767: \$? = $ac_status" >&5
1768 (exit $ac_status); }; }; then
1771 echo "$as_me: failed program was:" >&5
1772 cat conftest.$ac_ext >&5
1774 rm -f conftest.$ac_objext conftest.$ac_ext
1777 if test -n "$ac_declaration"; then
1778 echo '#ifdef __cplusplus' >>confdefs.h
1779 echo $ac_declaration >>confdefs.h
1780 echo '#endif' >>confdefs.h
1784 echo "$as_me: failed program was:" >&5
1785 cat conftest.$ac_ext >&5
1787 rm -f conftest.$ac_objext conftest.$ac_ext
1789 ac_cpp='$CPP $CPPFLAGS'
1790 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1791 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1792 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1793 ac_main_return=return
1795 echo "$as_me:1795: checking for $CC option to accept ANSI C" >&5
1796 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1797 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1798 echo $ECHO_N "(cached) $ECHO_C" >&6
1800 ac_cv_prog_cc_stdc=no
1802 cat >conftest.$ac_ext <<_ACEOF
1803 #line 1803 "configure"
1804 #include "confdefs.h"
1807 #include <sys/types.h>
1808 #include <sys/stat.h>
1809 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1810 struct buf { int x; };
1811 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1812 static char *e (p, i)
1818 static char *f (char * (*g) (char **, int), char **p, ...)
1823 s = g (p, va_arg (v,int));
1827 int test (int i, double x);
1828 struct s1 {int (*f) (int a);};
1829 struct s2 {int (*f) (double a);};
1830 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1836 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1841 # Don't try gcc -ansi; that turns off useful extensions and
1842 # breaks some systems' header files.
1843 # AIX -qlanglvl=ansi
1844 # Ultrix and OSF/1 -std1
1845 # HP-UX 10.20 and later -Ae
1846 # HP-UX older versions -Aa -D_HPUX_SOURCE
1847 # SVR4 -Xc -D__EXTENSIONS__
1848 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1850 CC="$ac_save_CC $ac_arg"
1851 rm -f conftest.$ac_objext
1852 if { (eval echo "$as_me:1852: \"$ac_compile\"") >&5
1853 (eval $ac_compile) 2>&5
1855 echo "$as_me:1855: \$? = $ac_status" >&5
1856 (exit $ac_status); } &&
1857 { ac_try='test -s conftest.$ac_objext'
1858 { (eval echo "$as_me:1858: \"$ac_try\"") >&5
1861 echo "$as_me:1861: \$? = $ac_status" >&5
1862 (exit $ac_status); }; }; then
1863 ac_cv_prog_cc_stdc=$ac_arg
1866 echo "$as_me: failed program was:" >&5
1867 cat conftest.$ac_ext >&5
1869 rm -f conftest.$ac_objext
1871 rm -f conftest.$ac_ext conftest.$ac_objext
1876 case "x$ac_cv_prog_cc_stdc" in
1878 echo "$as_me:1878: result: none needed" >&5
1879 echo "${ECHO_T}none needed" >&6 ;;
1881 echo "$as_me:1881: result: $ac_cv_prog_cc_stdc" >&5
1882 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
1883 CC="$CC $ac_cv_prog_cc_stdc" ;;
1886 echo "$as_me:1886: checking for an ANSI C-conforming const" >&5
1887 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
1888 if test "${ac_cv_c_const+set}" = set; then
1889 echo $ECHO_N "(cached) $ECHO_C" >&6
1891 cat >conftest.$ac_ext <<_ACEOF
1892 #line 1892 "configure"
1893 #include "confdefs.h"
1898 /* FIXME: Include the comments suggested by Paul. */
1900 /* Ultrix mips cc rejects this. */
1901 typedef int charset[2];
1903 /* SunOS 4.1.1 cc rejects this. */
1904 char const *const *ccp;
1906 /* NEC SVR4.0.2 mips cc rejects this. */
1907 struct point {int x, y;};
1908 static struct point const zero = {0,0};
1909 /* AIX XL C 1.02.0.0 rejects this.
1910 It does not let you subtract one const X* pointer from another in
1911 an arm of an if-expression whose if-part is not a constant
1913 const char *g = "string";
1914 ccp = &g + (g ? g-g : 0);
1915 /* HPUX 7.0 cc rejects these. */
1918 ccp = (char const *const *) p;
1919 { /* SCO 3.2v4 cc rejects this. */
1921 char const *s = 0 ? (char *) 0 : (char const *) 0;
1925 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1927 const int *foo = &x[0];
1930 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1931 typedef const int *iptr;
1935 { /* AIX XL C 1.02.0.0 rejects this saying
1936 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1937 struct s { int j; const int *ap[3]; };
1938 struct s *b; b->j = 5;
1940 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1949 rm -f conftest.$ac_objext
1950 if { (eval echo "$as_me:1950: \"$ac_compile\"") >&5
1951 (eval $ac_compile) 2>&5
1953 echo "$as_me:1953: \$? = $ac_status" >&5
1954 (exit $ac_status); } &&
1955 { ac_try='test -s conftest.$ac_objext'
1956 { (eval echo "$as_me:1956: \"$ac_try\"") >&5
1959 echo "$as_me:1959: \$? = $ac_status" >&5
1960 (exit $ac_status); }; }; then
1963 echo "$as_me: failed program was:" >&5
1964 cat conftest.$ac_ext >&5
1967 rm -f conftest.$ac_objext conftest.$ac_ext
1969 echo "$as_me:1969: result: $ac_cv_c_const" >&5
1970 echo "${ECHO_T}$ac_cv_c_const" >&6
1971 if test $ac_cv_c_const = no; then
1973 cat >>confdefs.h <<\EOF
1979 echo "$as_me:1979: checking whether ${MAKE-make} sets \${MAKE}" >&5
1980 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1981 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1982 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1983 echo $ECHO_N "(cached) $ECHO_C" >&6
1985 cat >conftest.make <<\EOF
1987 @echo 'ac_maketemp="${MAKE}"'
1989 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1990 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1991 if test -n "$ac_maketemp"; then
1992 eval ac_cv_prog_make_${ac_make}_set=yes
1994 eval ac_cv_prog_make_${ac_make}_set=no
1998 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1999 echo "$as_me:1999: result: yes" >&5
2000 echo "${ECHO_T}yes" >&6
2003 echo "$as_me:2003: result: no" >&5
2004 echo "${ECHO_T}no" >&6
2005 SET_MAKE="MAKE=${MAKE-make}"
2008 # Find a good install program. We prefer a C program (faster),
2009 # so one script is as good as another. But avoid the broken or
2010 # incompatible versions:
2011 # SysV /etc/install, /usr/sbin/install
2012 # SunOS /usr/etc/install
2013 # IRIX /sbin/install
2015 # AmigaOS /C/install, which installs bootblocks on floppy discs
2016 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2017 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2018 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2019 # ./install, which can be erroneously created by make from ./install.sh.
2020 echo "$as_me:2020: checking for a BSD compatible install" >&5
2021 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
2022 if test -z "$INSTALL"; then
2023 if test "${ac_cv_path_install+set}" = set; then
2024 echo $ECHO_N "(cached) $ECHO_C" >&6
2026 ac_save_IFS=$IFS; IFS=$ac_path_separator
2027 for ac_dir in $PATH; do
2029 # Account for people who put trailing slashes in PATH elements.
2031 / | ./ | .// | /cC/* \
2032 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
2035 # OSF1 and SCO ODT 3.0 have their own names for install.
2036 # Don't use installbsd from OSF since it installs stuff as root
2038 for ac_prog in ginstall scoinst install; do
2039 if $as_executable_p "$ac_dir/$ac_prog"; then
2040 if test $ac_prog = install &&
2041 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2042 # AIX install. It has an incompatible calling convention.
2044 elif test $ac_prog = install &&
2045 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2046 # program-specific install script used by HP pwplus--don't use.
2049 ac_cv_path_install="$ac_dir/$ac_prog -c"
2059 if test "${ac_cv_path_install+set}" = set; then
2060 INSTALL=$ac_cv_path_install
2062 # As a last resort, use the slow shell script. We don't cache a
2063 # path for INSTALL within a source directory, because that will
2064 # break other packages using the cache if that directory is
2065 # removed, or if the path is relative.
2066 INSTALL=$ac_install_sh
2069 echo "$as_me:2069: result: $INSTALL" >&5
2070 echo "${ECHO_T}$INSTALL" >&6
2072 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2073 # It thinks the first close brace ends the variable substitution.
2074 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2076 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2078 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2080 echo "$as_me:2080: checking if filesystem supports mixed-case filenames" >&5
2081 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
2082 if test "${cf_cv_mixedcase+set}" = set; then
2083 echo $ECHO_N "(cached) $ECHO_C" >&6
2086 if test "$cross_compiling" = yes ; then
2087 case $target_alias in #(vi
2088 *-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-mingw32*|*-uwin*) #(vi
2096 rm -f conftest CONFTEST
2098 if test -f CONFTEST ; then
2103 rm -f conftest CONFTEST
2107 echo "$as_me:2107: result: $cf_cv_mixedcase" >&5
2108 echo "${ECHO_T}$cf_cv_mixedcase" >&6
2109 test "$cf_cv_mixedcase" = yes && cat >>confdefs.h <<\EOF
2110 #define MIXEDCASE_FILENAMES 1
2113 for ac_prog in exctags ctags
2115 # Extract the first word of "$ac_prog", so it can be a program name with args.
2116 set dummy $ac_prog; ac_word=$2
2117 echo "$as_me:2117: checking for $ac_word" >&5
2118 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2119 if test "${ac_cv_prog_CTAGS+set}" = set; then
2120 echo $ECHO_N "(cached) $ECHO_C" >&6
2122 if test -n "$CTAGS"; then
2123 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
2125 ac_save_IFS=$IFS; IFS=$ac_path_separator
2127 for ac_dir in $ac_dummy; do
2129 test -z "$ac_dir" && ac_dir=.
2130 $as_executable_p "$ac_dir/$ac_word" || continue
2131 ac_cv_prog_CTAGS="$ac_prog"
2132 echo "$as_me:2132: found $ac_dir/$ac_word" >&5
2138 CTAGS=$ac_cv_prog_CTAGS
2139 if test -n "$CTAGS"; then
2140 echo "$as_me:2140: result: $CTAGS" >&5
2141 echo "${ECHO_T}$CTAGS" >&6
2143 echo "$as_me:2143: result: no" >&5
2144 echo "${ECHO_T}no" >&6
2147 test -n "$CTAGS" && break
2150 for ac_prog in exetags etags
2152 # Extract the first word of "$ac_prog", so it can be a program name with args.
2153 set dummy $ac_prog; ac_word=$2
2154 echo "$as_me:2154: checking for $ac_word" >&5
2155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2156 if test "${ac_cv_prog_ETAGS+set}" = set; then
2157 echo $ECHO_N "(cached) $ECHO_C" >&6
2159 if test -n "$ETAGS"; then
2160 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
2162 ac_save_IFS=$IFS; IFS=$ac_path_separator
2164 for ac_dir in $ac_dummy; do
2166 test -z "$ac_dir" && ac_dir=.
2167 $as_executable_p "$ac_dir/$ac_word" || continue
2168 ac_cv_prog_ETAGS="$ac_prog"
2169 echo "$as_me:2169: found $ac_dir/$ac_word" >&5
2175 ETAGS=$ac_cv_prog_ETAGS
2176 if test -n "$ETAGS"; then
2177 echo "$as_me:2177: result: $ETAGS" >&5
2178 echo "${ECHO_T}$ETAGS" >&6
2180 echo "$as_me:2180: result: no" >&5
2181 echo "${ECHO_T}no" >&6
2184 test -n "$ETAGS" && break
2187 # Extract the first word of "${CTAGS-ctags}", so it can be a program name with args.
2188 set dummy ${CTAGS-ctags}; ac_word=$2
2189 echo "$as_me:2189: checking for $ac_word" >&5
2190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2191 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
2192 echo $ECHO_N "(cached) $ECHO_C" >&6
2194 if test -n "$MAKE_LOWER_TAGS"; then
2195 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
2197 ac_save_IFS=$IFS; IFS=$ac_path_separator
2199 for ac_dir in $ac_dummy; do
2201 test -z "$ac_dir" && ac_dir=.
2202 $as_executable_p "$ac_dir/$ac_word" || continue
2203 ac_cv_prog_MAKE_LOWER_TAGS="yes"
2204 echo "$as_me:2204: found $ac_dir/$ac_word" >&5
2208 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
2211 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
2212 if test -n "$MAKE_LOWER_TAGS"; then
2213 echo "$as_me:2213: result: $MAKE_LOWER_TAGS" >&5
2214 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
2216 echo "$as_me:2216: result: no" >&5
2217 echo "${ECHO_T}no" >&6
2220 if test "$cf_cv_mixedcase" = yes ; then
2221 # Extract the first word of "${ETAGS-etags}", so it can be a program name with args.
2222 set dummy ${ETAGS-etags}; ac_word=$2
2223 echo "$as_me:2223: checking for $ac_word" >&5
2224 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2225 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
2226 echo $ECHO_N "(cached) $ECHO_C" >&6
2228 if test -n "$MAKE_UPPER_TAGS"; then
2229 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
2231 ac_save_IFS=$IFS; IFS=$ac_path_separator
2233 for ac_dir in $ac_dummy; do
2235 test -z "$ac_dir" && ac_dir=.
2236 $as_executable_p "$ac_dir/$ac_word" || continue
2237 ac_cv_prog_MAKE_UPPER_TAGS="yes"
2238 echo "$as_me:2238: found $ac_dir/$ac_word" >&5
2242 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
2245 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
2246 if test -n "$MAKE_UPPER_TAGS"; then
2247 echo "$as_me:2247: result: $MAKE_UPPER_TAGS" >&5
2248 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
2250 echo "$as_me:2250: result: no" >&5
2251 echo "${ECHO_T}no" >&6
2258 if test "$MAKE_UPPER_TAGS" = yes ; then
2264 if test "$MAKE_LOWER_TAGS" = yes ; then
2270 for ac_prog in tdlint lint alint splint lclint
2272 # Extract the first word of "$ac_prog", so it can be a program name with args.
2273 set dummy $ac_prog; ac_word=$2
2274 echo "$as_me:2274: checking for $ac_word" >&5
2275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2276 if test "${ac_cv_prog_LINT+set}" = set; then
2277 echo $ECHO_N "(cached) $ECHO_C" >&6
2279 if test -n "$LINT"; then
2280 ac_cv_prog_LINT="$LINT" # Let the user override the test.
2282 ac_save_IFS=$IFS; IFS=$ac_path_separator
2284 for ac_dir in $ac_dummy; do
2286 test -z "$ac_dir" && ac_dir=.
2287 $as_executable_p "$ac_dir/$ac_word" || continue
2288 ac_cv_prog_LINT="$ac_prog"
2289 echo "$as_me:2289: found $ac_dir/$ac_word" >&5
2295 LINT=$ac_cv_prog_LINT
2296 if test -n "$LINT"; then
2297 echo "$as_me:2297: result: $LINT" >&5
2298 echo "${ECHO_T}$LINT" >&6
2300 echo "$as_me:2300: result: no" >&5
2301 echo "${ECHO_T}no" >&6
2304 test -n "$LINT" && break
2307 echo "$as_me:2307: checking for ${CC-cc} option to accept ANSI C" >&5
2308 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2309 if test "${cf_cv_ansi_cc+set}" = set; then
2310 echo $ECHO_N "(cached) $ECHO_C" >&6
2314 cf_save_CFLAGS="$CFLAGS"
2315 cf_save_CPPFLAGS="$CPPFLAGS"
2316 # Don't try gcc -ansi; that turns off useful extensions and
2317 # breaks some systems' header files.
2318 # AIX -qlanglvl=ansi
2319 # Ultrix and OSF/1 -std1
2320 # HP-UX -Aa -D_HPUX_SOURCE
2322 # UnixWare 1.2 (cannot use -Xc, since ANSI/POSIX clashes)
2323 for cf_arg in "-DCC_HAS_PROTOS" \
2328 "-Aa -D_HPUX_SOURCE" \
2335 cf_new_extra_cppflags=
2337 for cf_add_cflags in $cf_arg
2339 case $cf_fix_cppflags in
2341 case $cf_add_cflags in #(vi
2342 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2343 case $cf_add_cflags in
2345 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2347 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2348 && test -z "${cf_tst_cflags}" \
2349 && cf_fix_cppflags=yes
2351 if test $cf_fix_cppflags = yes ; then
2352 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2354 elif test "${cf_tst_cflags}" = "\"'" ; then
2355 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2361 *$cf_add_cflags) #(vi
2364 case $cf_add_cflags in #(vi
2366 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2368 CPPFLAGS=`echo "$CPPFLAGS" | \
2369 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2370 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2374 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2379 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2384 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2386 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2388 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2389 && test -z "${cf_tst_cflags}" \
2390 && cf_fix_cppflags=no
2395 if test -n "$cf_new_cflags" ; then
2397 CFLAGS="$CFLAGS $cf_new_cflags"
2400 if test -n "$cf_new_cppflags" ; then
2402 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2405 if test -n "$cf_new_extra_cppflags" ; then
2407 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2410 cat >conftest.$ac_ext <<_ACEOF
2411 #line 2411 "configure"
2412 #include "confdefs.h"
2414 #ifndef CC_HAS_PROTOS
2415 #if !defined(__STDC__) || (__STDC__ != 1)
2424 int test (int i, double x);
2425 struct s1 {int (*f) (int a);};
2426 struct s2 {int (*f) (double a);};
2431 rm -f conftest.$ac_objext
2432 if { (eval echo "$as_me:2432: \"$ac_compile\"") >&5
2433 (eval $ac_compile) 2>&5
2435 echo "$as_me:2435: \$? = $ac_status" >&5
2436 (exit $ac_status); } &&
2437 { ac_try='test -s conftest.$ac_objext'
2438 { (eval echo "$as_me:2438: \"$ac_try\"") >&5
2441 echo "$as_me:2441: \$? = $ac_status" >&5
2442 (exit $ac_status); }; }; then
2443 cf_cv_ansi_cc="$cf_arg"; break
2445 echo "$as_me: failed program was:" >&5
2446 cat conftest.$ac_ext >&5
2448 rm -f conftest.$ac_objext conftest.$ac_ext
2450 CFLAGS="$cf_save_CFLAGS"
2451 CPPFLAGS="$cf_save_CPPFLAGS"
2454 echo "$as_me:2454: result: $cf_cv_ansi_cc" >&5
2455 echo "${ECHO_T}$cf_cv_ansi_cc" >&6
2457 if test "$cf_cv_ansi_cc" != "no"; then
2458 if test ".$cf_cv_ansi_cc" != ".-DCC_HAS_PROTOS"; then
2463 cf_new_extra_cppflags=
2465 for cf_add_cflags in $cf_cv_ansi_cc
2467 case $cf_fix_cppflags in
2469 case $cf_add_cflags in #(vi
2470 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2471 case $cf_add_cflags in
2473 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2475 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2476 && test -z "${cf_tst_cflags}" \
2477 && cf_fix_cppflags=yes
2479 if test $cf_fix_cppflags = yes ; then
2480 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2482 elif test "${cf_tst_cflags}" = "\"'" ; then
2483 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2489 *$cf_add_cflags) #(vi
2492 case $cf_add_cflags in #(vi
2494 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2496 CPPFLAGS=`echo "$CPPFLAGS" | \
2497 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2498 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2502 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2507 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2512 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2514 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2516 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2517 && test -z "${cf_tst_cflags}" \
2518 && cf_fix_cppflags=no
2523 if test -n "$cf_new_cflags" ; then
2525 CFLAGS="$CFLAGS $cf_new_cflags"
2528 if test -n "$cf_new_cppflags" ; then
2530 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2533 if test -n "$cf_new_extra_cppflags" ; then
2535 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2539 cat >>confdefs.h <<\EOF
2540 #define CC_HAS_PROTOS 1
2546 if test "$cf_cv_ansi_cc" = "no"; then
2547 { { echo "$as_me:2547: error: Your compiler does not appear to recognize prototypes.
2548 You have the following choices:
2549 a. adjust your compiler options
2550 b. get an up-to-date compiler
2551 c. use a wrapper such as unproto" >&5
2552 echo "$as_me: error: Your compiler does not appear to recognize prototypes.
2553 You have the following choices:
2554 a. adjust your compiler options
2555 b. get an up-to-date compiler
2556 c. use a wrapper such as unproto" >&2;}
2557 { (exit 1); exit 1; }; }
2561 cf_POSIX_C_SOURCE=199506L
2564 case $host_os in #(vi
2566 cf_xopen_source="-D_ALL_SOURCE"
2569 cf_xopen_source="-D_APPLE_C_SOURCE"
2572 cf_xopen_source="-D_DARWIN_C_SOURCE"
2574 freebsd*|dragonfly*) #(vi
2575 # 5.x headers associate
2576 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
2577 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
2578 cf_POSIX_C_SOURCE=200112L
2580 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
2583 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
2586 cf_xopen_source="-D_HPUX_SOURCE"
2589 cf_xopen_source="-D_SGI_SOURCE"
2591 linux*|gnu*|mint*|k*bsd*-gnu) #(vi
2593 echo "$as_me:2593: checking if we must define _GNU_SOURCE" >&5
2594 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
2595 if test "${cf_cv_gnu_source+set}" = set; then
2596 echo $ECHO_N "(cached) $ECHO_C" >&6
2599 cat >conftest.$ac_ext <<_ACEOF
2600 #line 2600 "configure"
2601 #include "confdefs.h"
2602 #include <sys/types.h>
2607 #ifndef _XOPEN_SOURCE
2614 rm -f conftest.$ac_objext
2615 if { (eval echo "$as_me:2615: \"$ac_compile\"") >&5
2616 (eval $ac_compile) 2>&5
2618 echo "$as_me:2618: \$? = $ac_status" >&5
2619 (exit $ac_status); } &&
2620 { ac_try='test -s conftest.$ac_objext'
2621 { (eval echo "$as_me:2621: \"$ac_try\"") >&5
2624 echo "$as_me:2624: \$? = $ac_status" >&5
2625 (exit $ac_status); }; }; then
2628 echo "$as_me: failed program was:" >&5
2629 cat conftest.$ac_ext >&5
2631 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
2632 cat >conftest.$ac_ext <<_ACEOF
2633 #line 2633 "configure"
2634 #include "confdefs.h"
2635 #include <sys/types.h>
2640 #ifdef _XOPEN_SOURCE
2647 rm -f conftest.$ac_objext
2648 if { (eval echo "$as_me:2648: \"$ac_compile\"") >&5
2649 (eval $ac_compile) 2>&5
2651 echo "$as_me:2651: \$? = $ac_status" >&5
2652 (exit $ac_status); } &&
2653 { ac_try='test -s conftest.$ac_objext'
2654 { (eval echo "$as_me:2654: \"$ac_try\"") >&5
2657 echo "$as_me:2657: \$? = $ac_status" >&5
2658 (exit $ac_status); }; }; then
2661 echo "$as_me: failed program was:" >&5
2662 cat conftest.$ac_ext >&5
2663 cf_cv_gnu_source=yes
2665 rm -f conftest.$ac_objext conftest.$ac_ext
2669 rm -f conftest.$ac_objext conftest.$ac_ext
2672 echo "$as_me:2672: result: $cf_cv_gnu_source" >&5
2673 echo "${ECHO_T}$cf_cv_gnu_source" >&6
2674 test "$cf_cv_gnu_source" = yes && CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
2678 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <arpa/inet.h>
2681 # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
2684 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
2687 cf_xopen_source="-D_OSF_SOURCE"
2690 cf_xopen_source="-D_QNX_SOURCE"
2693 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
2695 solaris2.1[0-9]) #(vi
2696 cf_xopen_source="-D__EXTENSIONS__ -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
2698 solaris2.[1-9]) #(vi
2699 cf_xopen_source="-D__EXTENSIONS__"
2702 echo "$as_me:2702: checking if we should define _XOPEN_SOURCE" >&5
2703 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
2704 if test "${cf_cv_xopen_source+set}" = set; then
2705 echo $ECHO_N "(cached) $ECHO_C" >&6
2708 cat >conftest.$ac_ext <<_ACEOF
2709 #line 2709 "configure"
2710 #include "confdefs.h"
2711 #include <sys/types.h>
2716 #ifndef _XOPEN_SOURCE
2723 rm -f conftest.$ac_objext
2724 if { (eval echo "$as_me:2724: \"$ac_compile\"") >&5
2725 (eval $ac_compile) 2>&5
2727 echo "$as_me:2727: \$? = $ac_status" >&5
2728 (exit $ac_status); } &&
2729 { ac_try='test -s conftest.$ac_objext'
2730 { (eval echo "$as_me:2730: \"$ac_try\"") >&5
2733 echo "$as_me:2733: \$? = $ac_status" >&5
2734 (exit $ac_status); }; }; then
2735 cf_cv_xopen_source=no
2737 echo "$as_me: failed program was:" >&5
2738 cat conftest.$ac_ext >&5
2740 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
2741 cat >conftest.$ac_ext <<_ACEOF
2742 #line 2742 "configure"
2743 #include "confdefs.h"
2744 #include <sys/types.h>
2749 #ifdef _XOPEN_SOURCE
2756 rm -f conftest.$ac_objext
2757 if { (eval echo "$as_me:2757: \"$ac_compile\"") >&5
2758 (eval $ac_compile) 2>&5
2760 echo "$as_me:2760: \$? = $ac_status" >&5
2761 (exit $ac_status); } &&
2762 { ac_try='test -s conftest.$ac_objext'
2763 { (eval echo "$as_me:2763: \"$ac_try\"") >&5
2766 echo "$as_me:2766: \$? = $ac_status" >&5
2767 (exit $ac_status); }; }; then
2768 cf_cv_xopen_source=no
2770 echo "$as_me: failed program was:" >&5
2771 cat conftest.$ac_ext >&5
2772 cf_cv_xopen_source=$cf_XOPEN_SOURCE
2774 rm -f conftest.$ac_objext conftest.$ac_ext
2778 rm -f conftest.$ac_objext conftest.$ac_ext
2781 echo "$as_me:2781: result: $cf_cv_xopen_source" >&5
2782 echo "${ECHO_T}$cf_cv_xopen_source" >&6
2783 if test "$cf_cv_xopen_source" != no ; then
2785 CFLAGS=`echo "$CFLAGS" | \
2786 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
2787 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
2789 CPPFLAGS=`echo "$CPPFLAGS" | \
2790 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
2791 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
2793 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
2798 cf_new_extra_cppflags=
2800 for cf_add_cflags in $cf_temp_xopen_source
2802 case $cf_fix_cppflags in
2804 case $cf_add_cflags in #(vi
2805 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2806 case $cf_add_cflags in
2808 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2810 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2811 && test -z "${cf_tst_cflags}" \
2812 && cf_fix_cppflags=yes
2814 if test $cf_fix_cppflags = yes ; then
2815 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2817 elif test "${cf_tst_cflags}" = "\"'" ; then
2818 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2824 *$cf_add_cflags) #(vi
2827 case $cf_add_cflags in #(vi
2829 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2831 CPPFLAGS=`echo "$CPPFLAGS" | \
2832 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2833 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2837 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2842 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2847 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2849 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2851 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2852 && test -z "${cf_tst_cflags}" \
2853 && cf_fix_cppflags=no
2858 if test -n "$cf_new_cflags" ; then
2860 CFLAGS="$CFLAGS $cf_new_cflags"
2863 if test -n "$cf_new_cppflags" ; then
2865 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2868 if test -n "$cf_new_extra_cppflags" ; then
2870 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2875 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
2877 cf_save_CFLAGS="$CFLAGS"
2878 cf_save_CPPFLAGS="$CPPFLAGS"
2880 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
2881 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
2882 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
2884 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
2885 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
2886 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
2888 echo "$as_me:2888: checking if we should define _POSIX_C_SOURCE" >&5
2889 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
2890 if test "${cf_cv_posix_c_source+set}" = set; then
2891 echo $ECHO_N "(cached) $ECHO_C" >&6
2894 echo "${as_me-configure}:2894: testing if the symbol is already defined go no further ..." 1>&5
2896 cat >conftest.$ac_ext <<_ACEOF
2897 #line 2897 "configure"
2898 #include "confdefs.h"
2899 #include <sys/types.h>
2904 #ifndef _POSIX_C_SOURCE
2911 rm -f conftest.$ac_objext
2912 if { (eval echo "$as_me:2912: \"$ac_compile\"") >&5
2913 (eval $ac_compile) 2>&5
2915 echo "$as_me:2915: \$? = $ac_status" >&5
2916 (exit $ac_status); } &&
2917 { ac_try='test -s conftest.$ac_objext'
2918 { (eval echo "$as_me:2918: \"$ac_try\"") >&5
2921 echo "$as_me:2921: \$? = $ac_status" >&5
2922 (exit $ac_status); }; }; then
2923 cf_cv_posix_c_source=no
2925 echo "$as_me: failed program was:" >&5
2926 cat conftest.$ac_ext >&5
2927 cf_want_posix_source=no
2928 case .$cf_POSIX_C_SOURCE in #(vi
2930 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
2933 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
2934 cf_want_posix_source=yes
2937 cf_want_posix_source=yes
2940 if test "$cf_want_posix_source" = yes ; then
2941 cat >conftest.$ac_ext <<_ACEOF
2942 #line 2942 "configure"
2943 #include "confdefs.h"
2944 #include <sys/types.h>
2949 #ifdef _POSIX_SOURCE
2956 rm -f conftest.$ac_objext
2957 if { (eval echo "$as_me:2957: \"$ac_compile\"") >&5
2958 (eval $ac_compile) 2>&5
2960 echo "$as_me:2960: \$? = $ac_status" >&5
2961 (exit $ac_status); } &&
2962 { ac_try='test -s conftest.$ac_objext'
2963 { (eval echo "$as_me:2963: \"$ac_try\"") >&5
2966 echo "$as_me:2966: \$? = $ac_status" >&5
2967 (exit $ac_status); }; }; then
2970 echo "$as_me: failed program was:" >&5
2971 cat conftest.$ac_ext >&5
2972 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
2974 rm -f conftest.$ac_objext conftest.$ac_ext
2977 echo "${as_me-configure}:2977: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
2979 CFLAGS="$cf_trim_CFLAGS"
2980 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
2982 echo "${as_me-configure}:2982: testing if the second compile does not leave our definition intact error ..." 1>&5
2984 cat >conftest.$ac_ext <<_ACEOF
2985 #line 2985 "configure"
2986 #include "confdefs.h"
2987 #include <sys/types.h>
2992 #ifndef _POSIX_C_SOURCE
2999 rm -f conftest.$ac_objext
3000 if { (eval echo "$as_me:3000: \"$ac_compile\"") >&5
3001 (eval $ac_compile) 2>&5
3003 echo "$as_me:3003: \$? = $ac_status" >&5
3004 (exit $ac_status); } &&
3005 { ac_try='test -s conftest.$ac_objext'
3006 { (eval echo "$as_me:3006: \"$ac_try\"") >&5
3009 echo "$as_me:3009: \$? = $ac_status" >&5
3010 (exit $ac_status); }; }; then
3013 echo "$as_me: failed program was:" >&5
3014 cat conftest.$ac_ext >&5
3015 cf_cv_posix_c_source=no
3017 rm -f conftest.$ac_objext conftest.$ac_ext
3018 CFLAGS="$cf_save_CFLAGS"
3019 CPPFLAGS="$cf_save_CPPFLAGS"
3022 rm -f conftest.$ac_objext conftest.$ac_ext
3025 echo "$as_me:3025: result: $cf_cv_posix_c_source" >&5
3026 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
3028 if test "$cf_cv_posix_c_source" != no ; then
3029 CFLAGS="$cf_trim_CFLAGS"
3030 CPPFLAGS="$cf_trim_CPPFLAGS"
3035 cf_new_extra_cppflags=
3037 for cf_add_cflags in $cf_cv_posix_c_source
3039 case $cf_fix_cppflags in
3041 case $cf_add_cflags in #(vi
3042 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
3043 case $cf_add_cflags in
3045 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3047 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3048 && test -z "${cf_tst_cflags}" \
3049 && cf_fix_cppflags=yes
3051 if test $cf_fix_cppflags = yes ; then
3052 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3054 elif test "${cf_tst_cflags}" = "\"'" ; then
3055 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3061 *$cf_add_cflags) #(vi
3064 case $cf_add_cflags in #(vi
3066 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3068 CPPFLAGS=`echo "$CPPFLAGS" | \
3069 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3070 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3074 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3079 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3084 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3086 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3088 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3089 && test -z "${cf_tst_cflags}" \
3090 && cf_fix_cppflags=no
3095 if test -n "$cf_new_cflags" ; then
3097 CFLAGS="$CFLAGS $cf_new_cflags"
3100 if test -n "$cf_new_cppflags" ; then
3102 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3105 if test -n "$cf_new_extra_cppflags" ; then
3107 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3115 if test -n "$cf_xopen_source" ; then
3120 cf_new_extra_cppflags=
3122 for cf_add_cflags in $cf_xopen_source
3124 case $cf_fix_cppflags in
3126 case $cf_add_cflags in #(vi
3127 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
3128 case $cf_add_cflags in
3130 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3132 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3133 && test -z "${cf_tst_cflags}" \
3134 && cf_fix_cppflags=yes
3136 if test $cf_fix_cppflags = yes ; then
3137 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3139 elif test "${cf_tst_cflags}" = "\"'" ; then
3140 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3146 *$cf_add_cflags) #(vi
3149 case $cf_add_cflags in #(vi
3151 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3153 CPPFLAGS=`echo "$CPPFLAGS" | \
3154 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3155 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3159 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3164 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3169 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3171 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3173 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3174 && test -z "${cf_tst_cflags}" \
3175 && cf_fix_cppflags=no
3180 if test -n "$cf_new_cflags" ; then
3182 CFLAGS="$CFLAGS $cf_new_cflags"
3185 if test -n "$cf_new_cppflags" ; then
3187 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3190 if test -n "$cf_new_extra_cppflags" ; then
3192 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3198 if test "$GCC" = yes ; then
3199 echo "$as_me:3199: checking version of $CC" >&5
3200 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
3201 GCC_VERSION="`${CC} --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
3202 test -z "$GCC_VERSION" && GCC_VERSION=unknown
3203 echo "$as_me:3203: result: $GCC_VERSION" >&5
3204 echo "${ECHO_T}$GCC_VERSION" >&6
3207 if ( test "$GCC" = yes || test "$GXX" = yes )
3209 echo "$as_me:3209: checking if you want to check for gcc warnings" >&5
3210 echo $ECHO_N "checking if you want to check for gcc warnings... $ECHO_C" >&6
3212 # Check whether --with-warnings or --without-warnings was given.
3213 if test "${with_warnings+set}" = set; then
3214 withval="$with_warnings"
3215 cf_opt_with_warnings=$withval
3217 cf_opt_with_warnings=no
3219 echo "$as_me:3219: result: $cf_opt_with_warnings" >&5
3220 echo "${ECHO_T}$cf_opt_with_warnings" >&6
3221 if test "$cf_opt_with_warnings" != no ; then
3223 if test "$GCC" = yes
3225 cat > conftest.i <<EOF
3227 #define GCC_PRINTF 0
3232 #ifndef GCC_NORETURN
3233 #define GCC_NORETURN /* nothing */
3236 #define GCC_UNUSED /* nothing */
3239 if test "$GCC" = yes
3241 { echo "$as_me:3241: checking for $CC __attribute__ directives..." >&5
3242 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
3243 cat > conftest.$ac_ext <<EOF
3244 #line 3244 "${as_me-configure}"
3245 #include "confdefs.h"
3246 #include "conftest.h"
3247 #include "conftest.i"
3249 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
3251 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
3254 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
3256 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
3258 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
3259 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
3260 extern void foo(void) GCC_NORETURN;
3261 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
3263 cf_printf_attribute=no
3264 cf_scanf_attribute=no
3265 for cf_attribute in scanf printf unused noreturn
3268 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
3270 cf_directive="__attribute__(($cf_attribute))"
3271 echo "checking for $CC $cf_directive" 1>&5
3273 case $cf_attribute in #(vi
3275 cf_printf_attribute=yes
3276 cat >conftest.h <<EOF
3277 #define GCC_$cf_ATTRIBUTE 1
3281 cf_scanf_attribute=yes
3282 cat >conftest.h <<EOF
3283 #define GCC_$cf_ATTRIBUTE 1
3287 cat >conftest.h <<EOF
3288 #define GCC_$cf_ATTRIBUTE $cf_directive
3293 if { (eval echo "$as_me:3293: \"$ac_compile\"") >&5
3294 (eval $ac_compile) 2>&5
3296 echo "$as_me:3296: \$? = $ac_status" >&5
3297 (exit $ac_status); }; then
3298 test -n "$verbose" && echo "$as_me:3298: result: ... $cf_attribute" >&5
3299 echo "${ECHO_T}... $cf_attribute" >&6
3300 cat conftest.h >>confdefs.h
3301 case $cf_attribute in #(vi
3303 if test "$cf_printf_attribute" = no ; then
3304 cat >>confdefs.h <<EOF
3305 #define GCC_PRINTFLIKE(fmt,var) /* nothing */
3308 cat >>confdefs.h <<EOF
3309 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
3314 if test "$cf_scanf_attribute" = no ; then
3315 cat >>confdefs.h <<EOF
3316 #define GCC_SCANFLIKE(fmt,var) /* nothing */
3319 cat >>confdefs.h <<EOF
3320 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
3328 fgrep define conftest.i >>confdefs.h
3335 if test "$GCC" = yes ; then
3338 echo "$as_me:3338: checking if this is really Intel C compiler" >&5
3339 echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
3340 cf_save_CFLAGS="$CFLAGS"
3341 CFLAGS="$CFLAGS -no-gcc"
3342 cat >conftest.$ac_ext <<_ACEOF
3343 #line 3343 "configure"
3344 #include "confdefs.h"
3350 #ifdef __INTEL_COMPILER
3359 rm -f conftest.$ac_objext
3360 if { (eval echo "$as_me:3360: \"$ac_compile\"") >&5
3361 (eval $ac_compile) 2>&5
3363 echo "$as_me:3363: \$? = $ac_status" >&5
3364 (exit $ac_status); } &&
3365 { ac_try='test -s conftest.$ac_objext'
3366 { (eval echo "$as_me:3366: \"$ac_try\"") >&5
3369 echo "$as_me:3369: \$? = $ac_status" >&5
3370 (exit $ac_status); }; }; then
3372 cf_save_CFLAGS="$cf_save_CFLAGS -we147 -no-gcc"
3375 echo "$as_me: failed program was:" >&5
3376 cat conftest.$ac_ext >&5
3378 rm -f conftest.$ac_objext conftest.$ac_ext
3379 CFLAGS="$cf_save_CFLAGS"
3380 echo "$as_me:3380: result: $INTEL_COMPILER" >&5
3381 echo "${ECHO_T}$INTEL_COMPILER" >&6
3386 cat > conftest.$ac_ext <<EOF
3387 #line 3387 "${as_me-configure}"
3388 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
3391 if test "$INTEL_COMPILER" = yes
3393 # The "-wdXXX" options suppress warnings:
3394 # remark #1419: external declaration in primary source file
3395 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
3396 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
3397 # remark #193: zero used for undefined preprocessing identifier
3398 # remark #593: variable "curs_sb_left_arrow" was set but never used
3399 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
3400 # remark #869: parameter "tw" was never referenced
3401 # remark #981: operands are evaluated in unspecified order
3402 # warning #279: controlling expression is constant
3404 { echo "$as_me:3404: checking for $CC warning options..." >&5
3405 echo "$as_me: checking for $CC warning options..." >&6;}
3406 cf_save_CFLAGS="$CFLAGS"
3407 EXTRA_CFLAGS="-Wall"
3419 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
3420 if { (eval echo "$as_me:3420: \"$ac_compile\"") >&5
3421 (eval $ac_compile) 2>&5
3423 echo "$as_me:3423: \$? = $ac_status" >&5
3424 (exit $ac_status); }; then
3425 test -n "$verbose" && echo "$as_me:3425: result: ... -$cf_opt" >&5
3426 echo "${ECHO_T}... -$cf_opt" >&6
3427 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
3430 CFLAGS="$cf_save_CFLAGS"
3432 elif test "$GCC" = yes
3434 { echo "$as_me:3434: checking for $CC warning options..." >&5
3435 echo "$as_me: checking for $CC warning options..." >&6;}
3436 cf_save_CFLAGS="$CFLAGS"
3439 test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
3440 for cf_opt in W Wall \
3441 Wbad-function-cast \
3445 Wmissing-declarations \
3446 Wmissing-prototypes \
3450 Wstrict-prototypes \
3451 Wundef $cf_warn_CONST Wwrite-strings
3453 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
3454 if { (eval echo "$as_me:3454: \"$ac_compile\"") >&5
3455 (eval $ac_compile) 2>&5
3457 echo "$as_me:3457: \$? = $ac_status" >&5
3458 (exit $ac_status); }; then
3459 test -n "$verbose" && echo "$as_me:3459: result: ... -$cf_opt" >&5
3460 echo "${ECHO_T}... -$cf_opt" >&6
3461 case $cf_opt in #(vi
3463 CPPFLAGS="$CPPFLAGS -DXTSTRINGDEFINES"
3466 case $GCC_VERSION in
3468 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
3470 echo "${as_me-configure}:3470: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
3476 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
3479 CFLAGS="$cf_save_CFLAGS"
3486 echo "$as_me:3486: checking if you want to see long compiling messages" >&5
3487 echo $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6
3489 # Check whether --enable-echo or --disable-echo was given.
3490 if test "${enable_echo+set}" = set; then
3491 enableval="$enable_echo"
3492 test "$enableval" != no && enableval=yes
3493 if test "$enableval" != "yes" ; then
3496 ECHO_LD='@echo linking $@;'
3497 RULE_CC='@echo compiling $<'
3498 SHOW_CC='@echo compiling $@'
3520 echo "$as_me:3520: result: $enableval" >&5
3521 echo "${ECHO_T}$enableval" >&6
3523 case $cf_cv_system_name in
3525 CFLAGS="$CFLAGS -Zmt"
3526 CPPFLAGS="$CPPFLAGS -D__ST_MT_ERRNO__"
3527 CXXFLAGS="$CXXFLAGS -Zmt"
3528 # autoconf's macro sets -Zexe and suffix both, which conflict:w
3529 LDFLAGS="$LDFLAGS -Zmt -Zcrtdll"
3536 test -n "$PROG_EXT" && cat >>confdefs.h <<EOF
3537 #define PROG_EXT "$PROG_EXT"
3541 ac_cpp='$CPP $CPPFLAGS'
3542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3545 ac_main_return=return
3546 echo "$as_me:3546: checking how to run the C preprocessor" >&5
3547 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3548 # On Suns, sometimes $CPP names a directory.
3549 if test -n "$CPP" && test -d "$CPP"; then
3552 if test -z "$CPP"; then
3553 if test "${ac_cv_prog_CPP+set}" = set; then
3554 echo $ECHO_N "(cached) $ECHO_C" >&6
3556 # Double quotes because CPP needs to be expanded
3557 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3560 for ac_c_preproc_warn_flag in '' yes
3562 # Use a header file that comes with gcc, so configuring glibc
3563 # with a fresh cross-compiler works.
3564 # On the NeXT, cc -E runs the code through the compiler's parser,
3565 # not just through cpp. "Syntax error" is here to catch this case.
3566 cat >conftest.$ac_ext <<_ACEOF
3567 #line 3567 "configure"
3568 #include "confdefs.h"
3572 if { (eval echo "$as_me:3572: \"$ac_cpp conftest.$ac_ext\"") >&5
3573 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3575 egrep -v '^ *\+' conftest.er1 >conftest.err
3577 cat conftest.err >&5
3578 echo "$as_me:3578: \$? = $ac_status" >&5
3579 (exit $ac_status); } >/dev/null; then
3580 if test -s conftest.err; then
3581 ac_cpp_err=$ac_c_preproc_warn_flag
3588 if test -z "$ac_cpp_err"; then
3591 echo "$as_me: failed program was:" >&5
3592 cat conftest.$ac_ext >&5
3593 # Broken: fails on valid input.
3596 rm -f conftest.err conftest.$ac_ext
3598 # OK, works on sane cases. Now check whether non-existent headers
3599 # can be detected and how.
3600 cat >conftest.$ac_ext <<_ACEOF
3601 #line 3601 "configure"
3602 #include "confdefs.h"
3603 #include <ac_nonexistent.h>
3605 if { (eval echo "$as_me:3605: \"$ac_cpp conftest.$ac_ext\"") >&5
3606 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3608 egrep -v '^ *\+' conftest.er1 >conftest.err
3610 cat conftest.err >&5
3611 echo "$as_me:3611: \$? = $ac_status" >&5
3612 (exit $ac_status); } >/dev/null; then
3613 if test -s conftest.err; then
3614 ac_cpp_err=$ac_c_preproc_warn_flag
3621 if test -z "$ac_cpp_err"; then
3622 # Broken: success on invalid input.
3625 echo "$as_me: failed program was:" >&5
3626 cat conftest.$ac_ext >&5
3627 # Passes both tests.
3631 rm -f conftest.err conftest.$ac_ext
3634 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3635 rm -f conftest.err conftest.$ac_ext
3636 if $ac_preproc_ok; then
3648 echo "$as_me:3648: result: $CPP" >&5
3649 echo "${ECHO_T}$CPP" >&6
3651 for ac_c_preproc_warn_flag in '' yes
3653 # Use a header file that comes with gcc, so configuring glibc
3654 # with a fresh cross-compiler works.
3655 # On the NeXT, cc -E runs the code through the compiler's parser,
3656 # not just through cpp. "Syntax error" is here to catch this case.
3657 cat >conftest.$ac_ext <<_ACEOF
3658 #line 3658 "configure"
3659 #include "confdefs.h"
3663 if { (eval echo "$as_me:3663: \"$ac_cpp conftest.$ac_ext\"") >&5
3664 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3666 egrep -v '^ *\+' conftest.er1 >conftest.err
3668 cat conftest.err >&5
3669 echo "$as_me:3669: \$? = $ac_status" >&5
3670 (exit $ac_status); } >/dev/null; then
3671 if test -s conftest.err; then
3672 ac_cpp_err=$ac_c_preproc_warn_flag
3679 if test -z "$ac_cpp_err"; then
3682 echo "$as_me: failed program was:" >&5
3683 cat conftest.$ac_ext >&5
3684 # Broken: fails on valid input.
3687 rm -f conftest.err conftest.$ac_ext
3689 # OK, works on sane cases. Now check whether non-existent headers
3690 # can be detected and how.
3691 cat >conftest.$ac_ext <<_ACEOF
3692 #line 3692 "configure"
3693 #include "confdefs.h"
3694 #include <ac_nonexistent.h>
3696 if { (eval echo "$as_me:3696: \"$ac_cpp conftest.$ac_ext\"") >&5
3697 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3699 egrep -v '^ *\+' conftest.er1 >conftest.err
3701 cat conftest.err >&5
3702 echo "$as_me:3702: \$? = $ac_status" >&5
3703 (exit $ac_status); } >/dev/null; then
3704 if test -s conftest.err; then
3705 ac_cpp_err=$ac_c_preproc_warn_flag
3712 if test -z "$ac_cpp_err"; then
3713 # Broken: success on invalid input.
3716 echo "$as_me: failed program was:" >&5
3717 cat conftest.$ac_ext >&5
3718 # Passes both tests.
3722 rm -f conftest.err conftest.$ac_ext
3725 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3726 rm -f conftest.err conftest.$ac_ext
3727 if $ac_preproc_ok; then
3730 { { echo "$as_me:3730: error: C preprocessor \"$CPP\" fails sanity check" >&5
3731 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3732 { (exit 1); exit 1; }; }
3736 ac_cpp='$CPP $CPPFLAGS'
3737 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3738 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3739 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3740 ac_main_return=return
3742 echo "$as_me:3742: checking if you want to use dmalloc for testing" >&5
3743 echo $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6
3745 # Check whether --with-dmalloc or --without-dmalloc was given.
3746 if test "${with_dmalloc+set}" = set; then
3747 withval="$with_dmalloc"
3748 cat >>confdefs.h <<\EOF
3749 #define USE_DMALLOC 1
3752 : ${with_cflags:=-g}
3753 : ${with_no_leaks:=yes}
3758 echo "$as_me:3758: result: ${with_dmalloc:-no}" >&5
3759 echo "${ECHO_T}${with_dmalloc:-no}" >&6
3761 case .$with_cflags in #(vi
3763 case .$CFLAGS in #(vi
3771 cf_new_extra_cppflags=
3773 for cf_add_cflags in -g
3775 case $cf_fix_cppflags in
3777 case $cf_add_cflags in #(vi
3778 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
3779 case $cf_add_cflags in
3781 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3783 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3784 && test -z "${cf_tst_cflags}" \
3785 && cf_fix_cppflags=yes
3787 if test $cf_fix_cppflags = yes ; then
3788 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3790 elif test "${cf_tst_cflags}" = "\"'" ; then
3791 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3797 *$cf_add_cflags) #(vi
3800 case $cf_add_cflags in #(vi
3802 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3804 CPPFLAGS=`echo "$CPPFLAGS" | \
3805 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3806 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3810 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3815 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3820 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3822 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3824 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3825 && test -z "${cf_tst_cflags}" \
3826 && cf_fix_cppflags=no
3831 if test -n "$cf_new_cflags" ; then
3833 CFLAGS="$CFLAGS $cf_new_cflags"
3836 if test -n "$cf_new_cppflags" ; then
3838 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3841 if test -n "$cf_new_extra_cppflags" ; then
3843 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3851 if test "$with_dmalloc" = yes ; then
3852 echo "$as_me:3852: checking for dmalloc.h" >&5
3853 echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6
3854 if test "${ac_cv_header_dmalloc_h+set}" = set; then
3855 echo $ECHO_N "(cached) $ECHO_C" >&6
3857 cat >conftest.$ac_ext <<_ACEOF
3858 #line 3858 "configure"
3859 #include "confdefs.h"
3860 #include <dmalloc.h>
3862 if { (eval echo "$as_me:3862: \"$ac_cpp conftest.$ac_ext\"") >&5
3863 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3865 egrep -v '^ *\+' conftest.er1 >conftest.err
3867 cat conftest.err >&5
3868 echo "$as_me:3868: \$? = $ac_status" >&5
3869 (exit $ac_status); } >/dev/null; then
3870 if test -s conftest.err; then
3871 ac_cpp_err=$ac_c_preproc_warn_flag
3878 if test -z "$ac_cpp_err"; then
3879 ac_cv_header_dmalloc_h=yes
3881 echo "$as_me: failed program was:" >&5
3882 cat conftest.$ac_ext >&5
3883 ac_cv_header_dmalloc_h=no
3885 rm -f conftest.err conftest.$ac_ext
3887 echo "$as_me:3887: result: $ac_cv_header_dmalloc_h" >&5
3888 echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6
3889 if test $ac_cv_header_dmalloc_h = yes; then
3891 echo "$as_me:3891: checking for dmalloc_debug in -ldmalloc" >&5
3892 echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6
3893 if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then
3894 echo $ECHO_N "(cached) $ECHO_C" >&6
3896 ac_check_lib_save_LIBS=$LIBS
3897 LIBS="-ldmalloc $LIBS"
3898 cat >conftest.$ac_ext <<_ACEOF
3899 #line 3899 "configure"
3900 #include "confdefs.h"
3902 /* Override any gcc2 internal prototype to avoid an error. */
3906 /* We use char because int might match the return type of a gcc2
3907 builtin and then its argument prototype would still apply. */
3908 char dmalloc_debug ();
3917 rm -f conftest.$ac_objext conftest$ac_exeext
3918 if { (eval echo "$as_me:3918: \"$ac_link\"") >&5
3919 (eval $ac_link) 2>&5
3921 echo "$as_me:3921: \$? = $ac_status" >&5
3922 (exit $ac_status); } &&
3923 { ac_try='test -s conftest$ac_exeext'
3924 { (eval echo "$as_me:3924: \"$ac_try\"") >&5
3927 echo "$as_me:3927: \$? = $ac_status" >&5
3928 (exit $ac_status); }; }; then
3929 ac_cv_lib_dmalloc_dmalloc_debug=yes
3931 echo "$as_me: failed program was:" >&5
3932 cat conftest.$ac_ext >&5
3933 ac_cv_lib_dmalloc_dmalloc_debug=no
3935 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3936 LIBS=$ac_check_lib_save_LIBS
3938 echo "$as_me:3938: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5
3939 echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6
3940 if test $ac_cv_lib_dmalloc_dmalloc_debug = yes; then
3941 cat >>confdefs.h <<EOF
3942 #define HAVE_LIBDMALLOC 1
3945 LIBS="-ldmalloc $LIBS"
3953 echo "$as_me:3953: checking if you want to use dbmalloc for testing" >&5
3954 echo $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6
3956 # Check whether --with-dbmalloc or --without-dbmalloc was given.
3957 if test "${with_dbmalloc+set}" = set; then
3958 withval="$with_dbmalloc"
3959 cat >>confdefs.h <<\EOF
3960 #define USE_DBMALLOC 1
3963 : ${with_cflags:=-g}
3964 : ${with_no_leaks:=yes}
3969 echo "$as_me:3969: result: ${with_dbmalloc:-no}" >&5
3970 echo "${ECHO_T}${with_dbmalloc:-no}" >&6
3972 case .$with_cflags in #(vi
3974 case .$CFLAGS in #(vi
3982 cf_new_extra_cppflags=
3984 for cf_add_cflags in -g
3986 case $cf_fix_cppflags in
3988 case $cf_add_cflags in #(vi
3989 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
3990 case $cf_add_cflags in
3992 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3994 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3995 && test -z "${cf_tst_cflags}" \
3996 && cf_fix_cppflags=yes
3998 if test $cf_fix_cppflags = yes ; then
3999 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4001 elif test "${cf_tst_cflags}" = "\"'" ; then
4002 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4008 *$cf_add_cflags) #(vi
4011 case $cf_add_cflags in #(vi
4013 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
4015 CPPFLAGS=`echo "$CPPFLAGS" | \
4016 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
4017 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
4021 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
4026 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
4031 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4033 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
4035 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
4036 && test -z "${cf_tst_cflags}" \
4037 && cf_fix_cppflags=no
4042 if test -n "$cf_new_cflags" ; then
4044 CFLAGS="$CFLAGS $cf_new_cflags"
4047 if test -n "$cf_new_cppflags" ; then
4049 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
4052 if test -n "$cf_new_extra_cppflags" ; then
4054 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
4062 if test "$with_dbmalloc" = yes ; then
4063 echo "$as_me:4063: checking for dbmalloc.h" >&5
4064 echo $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6
4065 if test "${ac_cv_header_dbmalloc_h+set}" = set; then
4066 echo $ECHO_N "(cached) $ECHO_C" >&6
4068 cat >conftest.$ac_ext <<_ACEOF
4069 #line 4069 "configure"
4070 #include "confdefs.h"
4071 #include <dbmalloc.h>
4073 if { (eval echo "$as_me:4073: \"$ac_cpp conftest.$ac_ext\"") >&5
4074 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4076 egrep -v '^ *\+' conftest.er1 >conftest.err
4078 cat conftest.err >&5
4079 echo "$as_me:4079: \$? = $ac_status" >&5
4080 (exit $ac_status); } >/dev/null; then
4081 if test -s conftest.err; then
4082 ac_cpp_err=$ac_c_preproc_warn_flag
4089 if test -z "$ac_cpp_err"; then
4090 ac_cv_header_dbmalloc_h=yes
4092 echo "$as_me: failed program was:" >&5
4093 cat conftest.$ac_ext >&5
4094 ac_cv_header_dbmalloc_h=no
4096 rm -f conftest.err conftest.$ac_ext
4098 echo "$as_me:4098: result: $ac_cv_header_dbmalloc_h" >&5
4099 echo "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6
4100 if test $ac_cv_header_dbmalloc_h = yes; then
4102 echo "$as_me:4102: checking for debug_malloc in -ldbmalloc" >&5
4103 echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6
4104 if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then
4105 echo $ECHO_N "(cached) $ECHO_C" >&6
4107 ac_check_lib_save_LIBS=$LIBS
4108 LIBS="-ldbmalloc $LIBS"
4109 cat >conftest.$ac_ext <<_ACEOF
4110 #line 4110 "configure"
4111 #include "confdefs.h"
4113 /* Override any gcc2 internal prototype to avoid an error. */
4117 /* We use char because int might match the return type of a gcc2
4118 builtin and then its argument prototype would still apply. */
4119 char debug_malloc ();
4128 rm -f conftest.$ac_objext conftest$ac_exeext
4129 if { (eval echo "$as_me:4129: \"$ac_link\"") >&5
4130 (eval $ac_link) 2>&5
4132 echo "$as_me:4132: \$? = $ac_status" >&5
4133 (exit $ac_status); } &&
4134 { ac_try='test -s conftest$ac_exeext'
4135 { (eval echo "$as_me:4135: \"$ac_try\"") >&5
4138 echo "$as_me:4138: \$? = $ac_status" >&5
4139 (exit $ac_status); }; }; then
4140 ac_cv_lib_dbmalloc_debug_malloc=yes
4142 echo "$as_me: failed program was:" >&5
4143 cat conftest.$ac_ext >&5
4144 ac_cv_lib_dbmalloc_debug_malloc=no
4146 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4147 LIBS=$ac_check_lib_save_LIBS
4149 echo "$as_me:4149: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5
4150 echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6
4151 if test $ac_cv_lib_dbmalloc_debug_malloc = yes; then
4152 cat >>confdefs.h <<EOF
4153 #define HAVE_LIBDBMALLOC 1
4156 LIBS="-ldbmalloc $LIBS"
4164 echo "$as_me:4164: checking if you want to use valgrind for testing" >&5
4165 echo $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6
4167 # Check whether --with-valgrind or --without-valgrind was given.
4168 if test "${with_valgrind+set}" = set; then
4169 withval="$with_valgrind"
4170 cat >>confdefs.h <<\EOF
4171 #define USE_VALGRIND 1
4174 : ${with_cflags:=-g}
4175 : ${with_no_leaks:=yes}
4180 echo "$as_me:4180: result: ${with_valgrind:-no}" >&5
4181 echo "${ECHO_T}${with_valgrind:-no}" >&6
4183 case .$with_cflags in #(vi
4185 case .$CFLAGS in #(vi
4193 cf_new_extra_cppflags=
4195 for cf_add_cflags in -g
4197 case $cf_fix_cppflags in
4199 case $cf_add_cflags in #(vi
4200 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
4201 case $cf_add_cflags in
4203 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
4205 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
4206 && test -z "${cf_tst_cflags}" \
4207 && cf_fix_cppflags=yes
4209 if test $cf_fix_cppflags = yes ; then
4210 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4212 elif test "${cf_tst_cflags}" = "\"'" ; then
4213 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4219 *$cf_add_cflags) #(vi
4222 case $cf_add_cflags in #(vi
4224 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
4226 CPPFLAGS=`echo "$CPPFLAGS" | \
4227 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
4228 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
4232 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
4237 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
4242 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4244 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
4246 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
4247 && test -z "${cf_tst_cflags}" \
4248 && cf_fix_cppflags=no
4253 if test -n "$cf_new_cflags" ; then
4255 CFLAGS="$CFLAGS $cf_new_cflags"
4258 if test -n "$cf_new_cppflags" ; then
4260 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
4263 if test -n "$cf_new_extra_cppflags" ; then
4265 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
4273 echo "$as_me:4273: checking if you want to perform memory-leak testing" >&5
4274 echo $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6
4276 # Check whether --enable-leaks or --disable-leaks was given.
4277 if test "${enable_leaks+set}" = set; then
4278 enableval="$enable_leaks"
4279 if test "x$enableval" = xno; then with_no_leaks=yes; else with_no_leaks=no; fi
4281 : ${with_no_leaks:=no}
4283 echo "$as_me:4283: result: $with_no_leaks" >&5
4284 echo "${ECHO_T}$with_no_leaks" >&6
4286 if test "$with_no_leaks" = yes ; then
4287 cat >>confdefs.h <<\EOF
4294 ac_config_files="$ac_config_files makefile"
4295 ac_config_commands="$ac_config_commands default"
4296 cat >confcache <<\_ACEOF
4297 # This file is a shell script that caches the results of configure
4298 # tests run on this system so they can be shared between configure
4299 # scripts and configure runs, see configure's option --config-cache.
4300 # It is not useful on other systems. If it contains results you don't
4301 # want to keep, you may remove or edit it.
4303 # config.status only pays attention to the cache file if you give it
4304 # the --recheck option to rerun configure.
4306 # `ac_cv_env_foo' variables (set or unset) will be overriden when
4307 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4312 # The following way of writing the cache mishandles newlines in values,
4313 # but we know of no workaround that is simple, portable, and efficient.
4314 # So, don't put newlines in cache variables' values.
4315 # Ultrix sh set writes to stderr and can't be redirected directly,
4316 # and sets the high bit in the cache file unless we assign to the vars.
4319 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4321 # `set' does not quote correctly, so add quotes (double-quote
4322 # substitution turns \\\\ into \\, and sed turns \\ into \).
4325 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4328 # `set' quotes correctly as required by POSIX, so do not add quotes.
4330 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4337 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4339 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4341 if cmp -s $cache_file confcache; then :; else
4342 if test -w $cache_file; then
4343 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4344 cat confcache >$cache_file
4346 echo "not updating unwritable cache $cache_file"
4351 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4352 # Let make expand exec_prefix.
4353 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4355 # VPATH may cause trouble with some makes, so we remove $(srcdir),
4356 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4357 # trailing colons and then remove the whole line if VPATH becomes empty
4358 # (actually we leave an empty line to preserve line numbers).
4359 if test "x$srcdir" = x.; then
4360 ac_vpsub='/^[ ]*VPATH[ ]*=/{
4361 s/:*\$(srcdir):*/:/;
4362 s/:*\${srcdir}:*/:/;
4364 s/^\([^=]*=[ ]*\):*/\1/;
4370 DEFS=-DHAVE_CONFIG_H
4372 : ${CONFIG_STATUS=./config.status}
4373 ac_clean_files_save=$ac_clean_files
4374 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4375 { echo "$as_me:4375: creating $CONFIG_STATUS" >&5
4376 echo "$as_me: creating $CONFIG_STATUS" >&6;}
4377 cat >$CONFIG_STATUS <<_ACEOF
4379 # Generated automatically by configure.
4380 # Run this file to recreate the current configuration.
4381 # Compiler output produced by configure, useful for debugging
4382 # configure, is in config.log if it exists.
4385 SHELL=\${CONFIG_SHELL-$SHELL}
4386 ac_cs_invocation="\$0 \$@"
4390 cat >>$CONFIG_STATUS <<\_ACEOF
4391 # Be Bourne compatible
4392 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4395 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
4399 # Name of the executable.
4400 as_me=`echo "$0" |sed 's,.*[\\/],,'`
4402 if expr a : '\(a\)' >/dev/null 2>&1; then
4408 rm -f conf$$ conf$$.exe conf$$.file
4410 if ln -s conf$$.file conf$$ 2>/dev/null; then
4411 # We could just check for DJGPP; but this test a) works b) is more generic
4412 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4413 if test -f conf$$.exe; then
4414 # Don't use ln at all; we don't have any links
4419 elif ln conf$$.file conf$$ 2>/dev/null; then
4424 rm -f conf$$ conf$$.exe conf$$.file
4426 as_executable_p="test -f"
4428 # Support unset when possible.
4429 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
4436 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
4437 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
4438 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
4439 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
4440 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
4441 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
4442 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
4443 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
4446 # We need space, tab and new line, in precisely that order.
4452 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
4458 # Files that config.status was made for.
4459 if test -n "$ac_config_files"; then
4460 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
4463 if test -n "$ac_config_headers"; then
4464 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
4467 if test -n "$ac_config_links"; then
4468 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
4471 if test -n "$ac_config_commands"; then
4472 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
4475 cat >>$CONFIG_STATUS <<\EOF
4478 \`$as_me' instantiates files from templates according to the
4479 current configuration.
4481 Usage: $0 [OPTIONS] [FILE]...
4483 -h, --help print this help, then exit
4484 -V, --version print version number, then exit
4485 -d, --debug don't remove temporary files
4486 --recheck update $as_me by reconfiguring in the same conditions
4487 --file=FILE[:TEMPLATE]
4488 instantiate the configuration file FILE
4489 --header=FILE[:TEMPLATE]
4490 instantiate the configuration header FILE
4492 Configuration files:
4495 Configuration headers:
4498 Configuration commands:
4501 Report bugs to <bug-autoconf@gnu.org>."
4504 cat >>$CONFIG_STATUS <<EOF
4507 configured by $0, generated by GNU Autoconf 2.52.20100530,
4508 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
4510 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
4511 Free Software Foundation, Inc.
4512 This config.status script is free software; the Free Software Foundation
4513 gives unlimited permission to copy, distribute and modify it."
4518 cat >>$CONFIG_STATUS <<\EOF
4519 # If no file are specified by the user, then we need to provide default
4520 # value. By we need to know if files were specified by the user.
4526 ac_option=`expr "x$1" : 'x\([^=]*\)='`
4527 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
4529 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
4533 *) # This is not an option, so the user has probably given explicit
4535 ac_need_defaults=false;;
4539 # Handling of the options.
4541 cat >>$CONFIG_STATUS <<EOF
4542 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4543 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
4544 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
4546 cat >>$CONFIG_STATUS <<\EOF
4547 --version | --vers* | -V )
4548 echo "$ac_cs_version"; exit 0 ;;
4550 # Conflict between --help and --header
4551 { { echo "$as_me:4551: error: ambiguous option: $1
4552 Try \`$0 --help' for more information." >&5
4553 echo "$as_me: error: ambiguous option: $1
4554 Try \`$0 --help' for more information." >&2;}
4555 { (exit 1); exit 1; }; };;
4556 --help | --hel | -h )
4557 echo "$ac_cs_usage"; exit 0 ;;
4558 --debug | --d* | -d )
4560 --file | --fil | --fi | --f )
4562 CONFIG_FILES="$CONFIG_FILES $1"
4563 ac_need_defaults=false;;
4564 --header | --heade | --head | --hea )
4566 CONFIG_HEADERS="$CONFIG_HEADERS $1"
4567 ac_need_defaults=false;;
4570 -*) { { echo "$as_me:4570: error: unrecognized option: $1
4571 Try \`$0 --help' for more information." >&5
4572 echo "$as_me: error: unrecognized option: $1
4573 Try \`$0 --help' for more information." >&2;}
4574 { (exit 1); exit 1; }; } ;;
4576 *) ac_config_targets="$ac_config_targets $1" ;;
4585 ## ----------------------- ##
4586 ## Running config.status. ##
4587 ## ----------------------- ##
4589 This file was extended by $as_me 2.52.20100530, executed with
4590 CONFIG_FILES = $CONFIG_FILES
4591 CONFIG_HEADERS = $CONFIG_HEADERS
4592 CONFIG_LINKS = $CONFIG_LINKS
4593 CONFIG_COMMANDS = $CONFIG_COMMANDS
4595 on `(hostname || uname -n) 2>/dev/null | sed 1q`
4600 cat >>$CONFIG_STATUS <<\EOF
4601 for ac_config_target in $ac_config_targets
4603 case "$ac_config_target" in
4604 # Handling of arguments.
4605 "makefile" ) CONFIG_FILES="$CONFIG_FILES makefile" ;;
4606 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
4607 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config_h.in" ;;
4608 *) { { echo "$as_me:4608: error: invalid argument: $ac_config_target" >&5
4609 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4610 { (exit 1); exit 1; }; };;
4614 # If the user did not use the arguments to specify the items to instantiate,
4615 # then the envvar interface is used. Set only those that are not.
4616 # We use the long form for the default assignment because of an extremely
4617 # bizarre bug on SunOS 4.1.3.
4618 if $ac_need_defaults; then
4619 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4620 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
4621 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
4624 # Create a temporary directory, and hook for its removal unless debugging.
4627 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4628 trap '{ (exit 1); exit 1; }' 1 2 13 15
4631 # Create a (secure) tmp directory for tmp files.
4634 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
4635 test -n "$tmp" && test -d "$tmp"
4638 tmp=$TMPDIR/cs$$-$RANDOM
4639 (umask 077 && mkdir $tmp)
4642 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
4643 { (exit 1); exit 1; }
4648 cat >>$CONFIG_STATUS <<EOF
4651 # CONFIG_FILES section.
4654 # No need to generate the scripts if there are no CONFIG_FILES.
4655 # This happens for instance when ./config.status config.h
4656 if test -n "\$CONFIG_FILES"; then
4657 # Protect against being on the right side of a sed subst in config.status.
4658 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
4659 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
4660 s,@SHELL@,$SHELL,;t t
4661 s,@exec_prefix@,$exec_prefix,;t t
4662 s,@prefix@,$prefix,;t t
4663 s,@program_transform_name@,$program_transform_name,;t t
4664 s,@bindir@,$bindir,;t t
4665 s,@sbindir@,$sbindir,;t t
4666 s,@libexecdir@,$libexecdir,;t t
4667 s,@datadir@,$datadir,;t t
4668 s,@sysconfdir@,$sysconfdir,;t t
4669 s,@sharedstatedir@,$sharedstatedir,;t t
4670 s,@localstatedir@,$localstatedir,;t t
4671 s,@libdir@,$libdir,;t t
4672 s,@includedir@,$includedir,;t t
4673 s,@oldincludedir@,$oldincludedir,;t t
4674 s,@infodir@,$infodir,;t t
4675 s,@mandir@,$mandir,;t t
4676 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
4677 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
4678 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
4679 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
4680 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
4681 s,@build_alias@,$build_alias,;t t
4682 s,@host_alias@,$host_alias,;t t
4683 s,@target_alias@,$target_alias,;t t
4684 s,@ECHO_C@,$ECHO_C,;t t
4685 s,@ECHO_N@,$ECHO_N,;t t
4686 s,@ECHO_T@,$ECHO_T,;t t
4687 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
4690 s,@build@,$build,;t t
4691 s,@build_cpu@,$build_cpu,;t t
4692 s,@build_vendor@,$build_vendor,;t t
4693 s,@build_os@,$build_os,;t t
4695 s,@host_cpu@,$host_cpu,;t t
4696 s,@host_vendor@,$host_vendor,;t t
4697 s,@host_os@,$host_os,;t t
4698 s,@target@,$target,;t t
4699 s,@target_cpu@,$target_cpu,;t t
4700 s,@target_vendor@,$target_vendor,;t t
4701 s,@target_os@,$target_os,;t t
4703 s,@CFLAGS@,$CFLAGS,;t t
4704 s,@LDFLAGS@,$LDFLAGS,;t t
4705 s,@CPPFLAGS@,$CPPFLAGS,;t t
4706 s,@ac_ct_CC@,$ac_ct_CC,;t t
4707 s,@EXEEXT@,$EXEEXT,;t t
4708 s,@OBJEXT@,$OBJEXT,;t t
4709 s,@SET_MAKE@,$SET_MAKE,;t t
4710 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
4711 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
4712 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
4713 s,@CTAGS@,$CTAGS,;t t
4714 s,@ETAGS@,$ETAGS,;t t
4715 s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t
4716 s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t
4718 s,@LINT_OPTS@,$LINT_OPTS,;t t
4719 s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t
4720 s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t
4721 s,@ECHO_LT@,$ECHO_LT,;t t
4722 s,@ECHO_LD@,$ECHO_LD,;t t
4723 s,@RULE_CC@,$RULE_CC,;t t
4724 s,@SHOW_CC@,$SHOW_CC,;t t
4725 s,@ECHO_CC@,$ECHO_CC,;t t
4726 s,@PROG_EXT@,$PROG_EXT,;t t
4732 cat >>$CONFIG_STATUS <<\EOF
4733 # Split the substitutions into bite-sized pieces for seds with
4734 # small command number limits, like on Digital OSF/1 and HP-UX.
4736 ac_sed_frag=1 # Number of current file.
4737 ac_beg=1 # First line for current file.
4738 ac_end=$ac_max_sed_lines # Line after last line for current file.
4741 while $ac_more_lines; do
4742 if test $ac_beg -gt 1; then
4743 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4745 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4747 if test ! -s $tmp/subs.frag; then
4750 # The purpose of the label and of the branching condition is to
4751 # speed up the sed processing (if there are no `@' at all, there
4752 # is no need to browse any of the substitutions).
4753 # These are the two extra sed commands mentioned above.
4755 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
4756 if test -z "$ac_sed_cmds"; then
4757 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
4759 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
4761 ac_sed_frag=`expr $ac_sed_frag + 1`
4763 ac_end=`expr $ac_end + $ac_max_sed_lines`
4766 if test -z "$ac_sed_cmds"; then
4769 fi # test -n "$CONFIG_FILES"
4772 cat >>$CONFIG_STATUS <<\EOF
4773 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
4774 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4776 - | *:- | *:-:* ) # input from stdin
4778 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4779 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4780 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4781 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4782 * ) ac_file_in=$ac_file.in ;;
4785 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
4786 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4787 X"$ac_file" : 'X\(//\)[^/]' \| \
4788 X"$ac_file" : 'X\(//\)$' \| \
4789 X"$ac_file" : 'X\(/\)' \| \
4790 . : '\(.\)' 2>/dev/null ||
4792 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4793 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4794 /^X\(\/\/\)$/{ s//\1/; q; }
4795 /^X\(\/\).*/{ s//\1/; q; }
4797 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4799 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
4803 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
4804 case $as_mkdir_dir in
4805 # Skip DOS drivespec
4806 ?:) as_incr_dir=$as_mkdir_dir ;;
4808 as_incr_dir=$as_incr_dir/$as_mkdir_dir
4809 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
4814 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
4815 # A "../" for each directory in $ac_dir_suffix.
4816 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
4818 ac_dir_suffix= ac_dots=
4823 if test -z "$ac_dots"; then
4826 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
4829 ac_srcdir=$srcdir$ac_dir_suffix;
4830 ac_top_srcdir=$srcdir ;;
4832 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
4833 ac_top_srcdir=$ac_dots$srcdir ;;
4837 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
4838 *) ac_INSTALL=$ac_dots$INSTALL ;;
4841 if test x"$ac_file" != x-; then
4842 { echo "$as_me:4842: creating $ac_file" >&5
4843 echo "$as_me: creating $ac_file" >&6;}
4846 # Let's still pretend it is `configure' which instantiates (i.e., don't
4847 # use $as_me), people would be surprised to read:
4848 # /* config.h. Generated automatically by config.status. */
4849 configure_input="Generated automatically from `echo $ac_file_in |
4850 sed 's,.*/,,'` by configure."
4852 # First look for the input files in the build tree, otherwise in the
4854 ac_file_inputs=`IFS=:
4855 for f in $ac_file_in; do
4857 -) echo $tmp/stdin ;;
4859 # Absolute (can't be DOS-style, as IFS=:)
4860 test -f "$f" || { { echo "$as_me:4860: error: cannot find input file: $f" >&5
4861 echo "$as_me: error: cannot find input file: $f" >&2;}
4862 { (exit 1); exit 1; }; }
4865 if test -f "$f"; then
4868 elif test -f "$srcdir/$f"; then
4873 { { echo "$as_me:4873: error: cannot find input file: $f" >&5
4874 echo "$as_me: error: cannot find input file: $f" >&2;}
4875 { (exit 1); exit 1; }; }
4878 done` || { (exit 1); exit 1; }
4880 cat >>$CONFIG_STATUS <<EOF
4884 cat >>$CONFIG_STATUS <<\EOF
4886 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4887 s,@configure_input@,$configure_input,;t t
4888 s,@srcdir@,$ac_srcdir,;t t
4889 s,@top_srcdir@,$ac_top_srcdir,;t t
4890 s,@INSTALL@,$ac_INSTALL,;t t
4891 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
4893 if test x"$ac_file" != x-; then
4894 mv $tmp/out $ac_file
4902 cat >>$CONFIG_STATUS <<\EOF
4905 # CONFIG_HEADER section.
4908 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4909 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4911 # ac_d sets the value in "#define NAME VALUE" lines.
4912 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4913 ac_dB='[ ].*$,\1#\2'
4916 # ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4917 ac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4918 ac_iB='\([ ]\),\1#\2define\3'
4921 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4922 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4923 ac_uB='$,\1#\2define\3'
4927 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
4928 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4930 - | *:- | *:-:* ) # input from stdin
4932 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4933 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4934 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4935 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4936 * ) ac_file_in=$ac_file.in ;;
4939 test x"$ac_file" != x- && { echo "$as_me:4939: creating $ac_file" >&5
4940 echo "$as_me: creating $ac_file" >&6;}
4942 # First look for the input files in the build tree, otherwise in the
4944 ac_file_inputs=`IFS=:
4945 for f in $ac_file_in; do
4947 -) echo $tmp/stdin ;;
4949 # Absolute (can't be DOS-style, as IFS=:)
4950 test -f "$f" || { { echo "$as_me:4950: error: cannot find input file: $f" >&5
4951 echo "$as_me: error: cannot find input file: $f" >&2;}
4952 { (exit 1); exit 1; }; }
4955 if test -f "$f"; then
4958 elif test -f "$srcdir/$f"; then
4963 { { echo "$as_me:4963: error: cannot find input file: $f" >&5
4964 echo "$as_me: error: cannot find input file: $f" >&2;}
4965 { (exit 1); exit 1; }; }
4968 done` || { (exit 1); exit 1; }
4969 # Remove the trailing spaces.
4970 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
4974 # Transform confdefs.h into a list of #define's. We won't use it as a sed
4975 # script, but as data to insert where we see @DEFS@. We expect AC_SAVE_DEFS to
4976 # be either 'cat' or 'sort'.
4977 cat confdefs.h | uniq >conftest.vals
4979 # Break up conftest.vals because some shells have a limit on
4980 # the size of here documents, and old seds have small limits too.
4983 echo ' rm -f conftest.frag' >> $CONFIG_STATUS
4984 while grep . conftest.vals >/dev/null
4986 # Write chunks of a limited-size here document to conftest.frag.
4987 echo ' cat >> conftest.frag <<CEOF' >> $CONFIG_STATUS
4988 sed ${ac_max_here_lines}q conftest.vals | sed -e 's/#ifdef.*/#if 0/' >> $CONFIG_STATUS
4989 echo 'CEOF' >> $CONFIG_STATUS
4990 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4992 mv conftest.tail conftest.vals
4996 # Run sed to substitute the contents of conftest.frag into $tmp/in at the
4998 echo ' cat >> conftest.edit <<CEOF
4999 /@DEFS@/r conftest.frag
5002 sed -f conftest.edit $tmp/in > $tmp/out
5005 rm -f conftest.edit conftest.frag
5008 cat >>$CONFIG_STATUS <<\EOF
5009 # Let's still pretend it is `configure' which instantiates (i.e., don't
5010 # use $as_me), people would be surprised to read:
5011 # /* config.h. Generated automatically by config.status. */
5012 if test x"$ac_file" = x-; then
5013 echo "/* Generated automatically by configure. */" >$tmp/config.h
5015 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
5017 cat $tmp/in >>$tmp/config.h
5019 if test x"$ac_file" != x-; then
5020 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
5021 { echo "$as_me:5021: $ac_file is unchanged" >&5
5022 echo "$as_me: $ac_file is unchanged" >&6;}
5024 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5025 X"$ac_file" : 'X\(//\)[^/]' \| \
5026 X"$ac_file" : 'X\(//\)$' \| \
5027 X"$ac_file" : 'X\(/\)' \| \
5028 . : '\(.\)' 2>/dev/null ||
5030 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5031 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5032 /^X\(\/\/\)$/{ s//\1/; q; }
5033 /^X\(\/\).*/{ s//\1/; q; }
5035 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5037 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
5041 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
5042 case $as_mkdir_dir in
5043 # Skip DOS drivespec
5044 ?:) as_incr_dir=$as_mkdir_dir ;;
5046 as_incr_dir=$as_incr_dir/$as_mkdir_dir
5047 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
5054 mv $tmp/config.h $ac_file
5063 cat >>$CONFIG_STATUS <<\EOF
5065 { (exit 0); exit 0; }
5067 chmod +x $CONFIG_STATUS
5068 ac_clean_files=$ac_clean_files_save
5070 # configure is writing to config.log, and then calls config.status.
5071 # config.status does its own redirection, appending to config.log.
5072 # Unfortunately, on DOS this fails, as config.log is still kept open
5073 # by configure, so config.status won't be able to write to it; its
5074 # output is simply discarded. So we exec the FD to /dev/null,
5075 # effectively closing config.log, so it can be properly (re)opened and
5076 # appended to by config.status. When coming back to configure, we
5077 # need to make the FD available again.
5078 if test "$no_create" != yes; then
5081 $SHELL $CONFIG_STATUS || ac_cs_success=false
5083 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5084 # would make configure fail if this is the last instruction.
5085 $ac_cs_success || { (exit 1); exit 1; }