2 # From configure.in Revision: 1.14 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by Autoconf 2.52.20121002.
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 datarootdir='${prefix}/share'
139 datadir='${datarootdir}'
140 sysconfdir='${prefix}/etc'
141 sharedstatedir='${prefix}/com'
142 localstatedir='${prefix}/var'
143 libdir='${exec_prefix}/lib'
144 includedir='${prefix}/include'
145 oldincludedir='/usr/include'
146 infodir='${datarootdir}/info'
147 mandir='${datarootdir}/man'
149 # Identity of this package.
159 # If the previous option needs an argument, assign it.
160 if test -n "$ac_prev"; then
161 eval "$ac_prev=\$ac_option"
166 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
168 # Accept the important Cygnus configure options, so we can diagnose typos.
172 -bindir | --bindir | --bindi | --bind | --bin | --bi)
174 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
177 -build | --build | --buil | --bui | --bu)
178 ac_prev=build_alias ;;
179 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
180 build_alias=$ac_optarg ;;
182 -cache-file | --cache-file | --cache-fil | --cache-fi \
183 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
184 ac_prev=cache_file ;;
185 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
186 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
187 cache_file=$ac_optarg ;;
190 cache_file=config.cache ;;
192 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
194 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
196 datadir=$ac_optarg ;;
198 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
199 | --dataroo | --dataro | --datar)
200 ac_prev=datarootdir ;;
201 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
202 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
203 datarootdir=$ac_optarg ;;
205 -disable-* | --disable-*)
206 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
207 # Reject names that are not valid shell variable names.
208 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
209 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
210 { (exit 1); exit 1; }; }
211 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
212 eval "enable_$ac_feature=no" ;;
214 -enable-* | --enable-*)
215 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
216 # Reject names that are not valid shell variable names.
217 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
218 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
219 { (exit 1); exit 1; }; }
220 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
222 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
225 eval "enable_$ac_feature='$ac_optarg'" ;;
227 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
228 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
229 | --exec | --exe | --ex)
230 ac_prev=exec_prefix ;;
231 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
232 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
233 | --exec=* | --exe=* | --ex=*)
234 exec_prefix=$ac_optarg ;;
236 -gas | --gas | --ga | --g)
237 # Obsolete; use --with-gas.
240 -help | --help | --hel | --he | -h)
242 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
243 ac_init_help=recursive ;;
244 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
245 ac_init_help=short ;;
247 -host | --host | --hos | --ho)
248 ac_prev=host_alias ;;
249 -host=* | --host=* | --hos=* | --ho=*)
250 host_alias=$ac_optarg ;;
252 -includedir | --includedir | --includedi | --included | --include \
253 | --includ | --inclu | --incl | --inc)
254 ac_prev=includedir ;;
255 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
256 | --includ=* | --inclu=* | --incl=* | --inc=*)
257 includedir=$ac_optarg ;;
259 -infodir | --infodir | --infodi | --infod | --info | --inf)
261 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
262 infodir=$ac_optarg ;;
264 -libdir | --libdir | --libdi | --libd)
266 -libdir=* | --libdir=* | --libdi=* | --libd=*)
269 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
270 | --libexe | --libex | --libe)
271 ac_prev=libexecdir ;;
272 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
273 | --libexe=* | --libex=* | --libe=*)
274 libexecdir=$ac_optarg ;;
276 -localstatedir | --localstatedir | --localstatedi | --localstated \
277 | --localstate | --localstat | --localsta | --localst \
278 | --locals | --local | --loca | --loc | --lo)
279 ac_prev=localstatedir ;;
280 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
281 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
282 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
283 localstatedir=$ac_optarg ;;
285 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
287 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
291 # Obsolete; use --without-fp.
294 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
298 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
299 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
302 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
303 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
304 | --oldin | --oldi | --old | --ol | --o)
305 ac_prev=oldincludedir ;;
306 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
307 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
308 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
309 oldincludedir=$ac_optarg ;;
311 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
313 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
316 -program-prefix | --program-prefix | --program-prefi | --program-pref \
317 | --program-pre | --program-pr | --program-p)
318 ac_prev=program_prefix ;;
319 -program-prefix=* | --program-prefix=* | --program-prefi=* \
320 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
321 program_prefix=$ac_optarg ;;
323 -program-suffix | --program-suffix | --program-suffi | --program-suff \
324 | --program-suf | --program-su | --program-s)
325 ac_prev=program_suffix ;;
326 -program-suffix=* | --program-suffix=* | --program-suffi=* \
327 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
328 program_suffix=$ac_optarg ;;
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 ac_prev=program_transform_name ;;
338 -program-transform-name=* | --program-transform-name=* \
339 | --program-transform-nam=* | --program-transform-na=* \
340 | --program-transform-n=* | --program-transform-=* \
341 | --program-transform=* | --program-transfor=* \
342 | --program-transfo=* | --program-transf=* \
343 | --program-trans=* | --program-tran=* \
344 | --progr-tra=* | --program-tr=* | --program-t=*)
345 program_transform_name=$ac_optarg ;;
347 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
348 | -silent | --silent | --silen | --sile | --sil)
351 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
353 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
355 sbindir=$ac_optarg ;;
357 -sharedstatedir | --sharedstatedir | --sharedstatedi \
358 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
359 | --sharedst | --shareds | --shared | --share | --shar \
361 ac_prev=sharedstatedir ;;
362 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
363 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
364 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
366 sharedstatedir=$ac_optarg ;;
368 -site | --site | --sit)
370 -site=* | --site=* | --sit=*)
373 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
375 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
378 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
379 | --syscon | --sysco | --sysc | --sys | --sy)
380 ac_prev=sysconfdir ;;
381 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
382 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
383 sysconfdir=$ac_optarg ;;
385 -target | --target | --targe | --targ | --tar | --ta | --t)
386 ac_prev=target_alias ;;
387 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
388 target_alias=$ac_optarg ;;
390 -v | -verbose | --verbose | --verbos | --verbo | --verb)
393 -version | --version | --versio | --versi | --vers | -V)
397 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
398 # Reject names that are not valid shell variable names.
399 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400 { echo "$as_me: error: invalid package name: $ac_package" >&2
401 { (exit 1); exit 1; }; }
402 ac_package=`echo $ac_package| sed 's/-/_/g'`
404 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
407 eval "with_$ac_package='$ac_optarg'" ;;
409 -without-* | --without-*)
410 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
411 # Reject names that are not valid shell variable names.
412 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
413 { echo "$as_me: error: invalid package name: $ac_package" >&2
414 { (exit 1); exit 1; }; }
415 ac_package=`echo $ac_package | sed 's/-/_/g'`
416 eval "with_$ac_package=no" ;;
419 # Obsolete; use --with-x.
422 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
423 | --x-incl | --x-inc | --x-in | --x-i)
424 ac_prev=x_includes ;;
425 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
426 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
427 x_includes=$ac_optarg ;;
429 -x-libraries | --x-libraries | --x-librarie | --x-librari \
430 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
431 ac_prev=x_libraries ;;
432 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
433 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
434 x_libraries=$ac_optarg ;;
436 -*) { echo "$as_me: error: unrecognized option: $ac_option
437 Try \`$0 --help' for more information." >&2
438 { (exit 1); exit 1; }; }
442 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
443 # Reject names that are not valid shell variable names.
444 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
445 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
446 { (exit 1); exit 1; }; }
447 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
448 eval "$ac_envvar='$ac_optarg'"
452 # FIXME: should be removed in autoconf 3.0.
453 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
454 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
455 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
456 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
462 if test -n "$ac_prev"; then
463 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
464 { echo "$as_me: error: missing argument to $ac_option" >&2
465 { (exit 1); exit 1; }; }
468 # Be sure to have absolute paths.
469 for ac_var in exec_prefix prefix
471 eval ac_val=$`echo $ac_var`
473 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
474 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
475 { (exit 1); exit 1; }; };;
479 # Be sure to have absolute paths.
480 for ac_var in bindir sbindir libexecdir datarootdir datadir sysconfdir sharedstatedir \
481 localstatedir libdir includedir oldincludedir infodir mandir
483 eval ac_val=$`echo $ac_var`
485 [\\/$]* | ?:[\\/]* ) ;;
486 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
487 { (exit 1); exit 1; }; };;
491 # There might be people who depend on the old broken behavior: `$host'
492 # used to hold the argument of --host etc.
497 # FIXME: should be removed in autoconf 3.0.
498 if test "x$host_alias" != x; then
499 if test "x$build_alias" = x; then
500 cross_compiling=maybe
501 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
502 If a cross compiler is detected then cross compile mode will be used." >&2
503 elif test "x$build_alias" != "x$host_alias"; then
509 test -n "$host_alias" && ac_tool_prefix=$host_alias-
511 test "$silent" = yes && exec 6>/dev/null
513 # Find the source files, if location was not specified.
514 if test -z "$srcdir"; then
515 ac_srcdir_defaulted=yes
516 # Try the directory containing this script, then its parent.
518 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
519 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
521 if test ! -r $srcdir/$ac_unique_file; then
525 ac_srcdir_defaulted=no
527 if test ! -r $srcdir/$ac_unique_file; then
528 if test "$ac_srcdir_defaulted" = yes; then
529 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
530 { (exit 1); exit 1; }; }
532 { echo "$as_me: error: cannot find sources in $srcdir" >&2
533 { (exit 1); exit 1; }; }
536 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
537 ac_env_build_alias_set=${build_alias+set}
538 ac_env_build_alias_value=$build_alias
539 ac_cv_env_build_alias_set=${build_alias+set}
540 ac_cv_env_build_alias_value=$build_alias
541 ac_env_host_alias_set=${host_alias+set}
542 ac_env_host_alias_value=$host_alias
543 ac_cv_env_host_alias_set=${host_alias+set}
544 ac_cv_env_host_alias_value=$host_alias
545 ac_env_target_alias_set=${target_alias+set}
546 ac_env_target_alias_value=$target_alias
547 ac_cv_env_target_alias_set=${target_alias+set}
548 ac_cv_env_target_alias_value=$target_alias
549 ac_env_CC_set=${CC+set}
551 ac_cv_env_CC_set=${CC+set}
552 ac_cv_env_CC_value=$CC
553 ac_env_CFLAGS_set=${CFLAGS+set}
554 ac_env_CFLAGS_value=$CFLAGS
555 ac_cv_env_CFLAGS_set=${CFLAGS+set}
556 ac_cv_env_CFLAGS_value=$CFLAGS
557 ac_env_LDFLAGS_set=${LDFLAGS+set}
558 ac_env_LDFLAGS_value=$LDFLAGS
559 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
560 ac_cv_env_LDFLAGS_value=$LDFLAGS
561 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
562 ac_env_CPPFLAGS_value=$CPPFLAGS
563 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
564 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
565 ac_env_CPP_set=${CPP+set}
566 ac_env_CPP_value=$CPP
567 ac_cv_env_CPP_set=${CPP+set}
568 ac_cv_env_CPP_value=$CPP
571 # Report the --help message.
573 if test "$ac_init_help" = "long"; then
574 # Omit some internal or obsolete options to make the list less imposing.
575 # This message is too long to be a string in the A/UX 3.1 sh.
577 \`configure' configures this package to adapt to many kinds of systems.
579 Usage: $0 [OPTION]... [VAR=VALUE]...
581 To assign environment variables (e.g., CC, CFLAGS...), specify them as
582 VAR=VALUE. See below for descriptions of some of the useful variables.
584 Defaults for the options are specified in brackets.
587 -h, --help display this help and exit
588 --help=short display options specific to this package
589 --help=recursive display the short help of all the included packages
590 -V, --version display version information and exit
591 -q, --quiet, --silent do not print \`checking...' messages
592 --cache-file=FILE cache test results in FILE [disabled]
593 -C, --config-cache alias for \`--cache-file=config.cache'
594 -n, --no-create do not create output files
595 --srcdir=DIR find the sources in DIR [configure dir or \`..']
600 Installation directories:
601 --prefix=PREFIX install architecture-independent files in PREFIX
603 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
606 By default, \`make install' will install all the files in
607 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
608 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
609 for instance \`--prefix=\$HOME'.
611 For better control, use the options below.
613 Fine tuning of the installation directories:
614 --bindir=DIR user executables [EPREFIX/bin]
615 --sbindir=DIR system admin executables [EPREFIX/sbin]
616 --libexecdir=DIR program executables [EPREFIX/libexec]
617 --datarootdir=DIR read-only architecture-independent data [PREFIX/share]
618 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
619 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
620 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
621 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
622 --libdir=DIR object code libraries [EPREFIX/lib]
623 --includedir=DIR C header files [PREFIX/include]
624 --oldincludedir=DIR C header files for non-gcc [/usr/include]
625 --infodir=DIR info documentation [DATAROOTDIR/info]
626 --mandir=DIR man documentation [DATAROOTDIR/man]
632 --program-prefix=PREFIX prepend PREFIX to installed program names
633 --program-suffix=SUFFIX append SUFFIX to installed program names
634 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
637 --build=BUILD configure for building on BUILD [guessed]
638 --host=HOST build programs to run on HOST [BUILD]
639 --target=TARGET configure for building compilers for TARGET [HOST]
643 if test -n "$ac_init_help"; then
648 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
649 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
652 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
653 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
655 --with-warnings test: turn on gcc warnings
656 --disable-echo do not display "compiling" commands
657 --with-dmalloc test: use Gray Watson's dmalloc library
658 --with-dbmalloc test: use Conor Cahill's dbmalloc library
659 --with-valgrind test: use valgrind
660 --disable-leaks test: free permanent memory, analyze leaks
662 Some influential environment variables:
663 CC C compiler command
664 CFLAGS C compiler flags
665 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
666 nonstandard directory <lib dir>
667 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
668 headers in a nonstandard directory <include dir>
671 Use these variables to override the choices made by `configure' or to help
672 it to find libraries and programs with nonstandard names/locations.
677 if test "$ac_init_help" = "recursive"; then
678 # If there are subdirs, report their specific --help.
680 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
682 # A "../" for each directory in /$ac_subdir.
683 ac_dots=`echo $ac_subdir |
684 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
687 .) # No --srcdir option. We are building in place.
688 ac_sub_srcdir=$srcdir ;;
689 [\\/]* | ?:[\\/]* ) # Absolute path.
690 ac_sub_srcdir=$srcdir/$ac_subdir ;;
692 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
695 # Check for guested configure; otherwise get Cygnus style configure.
696 if test -f $ac_sub_srcdir/configure.gnu; then
698 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
699 elif test -f $ac_sub_srcdir/configure; then
701 $SHELL $ac_sub_srcdir/configure --help=recursive
702 elif test -f $ac_sub_srcdir/configure.ac ||
703 test -f $ac_sub_srcdir/configure.in; then
707 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
713 test -n "$ac_init_help" && exit 0
714 if $ac_init_version; then
717 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
718 Free Software Foundation, Inc.
719 This configure script is free software; the Free Software Foundation
720 gives unlimited permission to copy, distribute and modify it.
726 This file contains any messages produced by compilers while
727 running configure, to aid debugging if configure makes a mistake.
729 It was created by $as_me, which was
730 generated by GNU Autoconf 2.52.20121002. Invocation command line was
741 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
742 uname -m = `(uname -m) 2>/dev/null || echo unknown`
743 uname -r = `(uname -r) 2>/dev/null || echo unknown`
744 uname -s = `(uname -s) 2>/dev/null || echo unknown`
745 uname -v = `(uname -v) 2>/dev/null || echo unknown`
747 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
748 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
750 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
751 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
752 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
753 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
754 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
755 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
756 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
770 # Keep a trace of the command line.
771 # Strip out --no-create and --no-recursion so they do not pile up.
772 # Also quote any args containing shell meta-characters.
778 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
779 | --no-cr | --no-c) ;;
780 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
781 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
782 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
783 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
784 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
786 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
789 # Get rid of the leading space.
792 # When interrupted or exit'd, cleanup temporary files, and complete
793 # config.log. We remove comments because anyway the quotes in there
794 # would cause problems or look ugly.
796 # Save into config.log some information that might help in debugging.
798 echo "## ----------------- ##" >&5
799 echo "## Cache variables. ##" >&5
800 echo "## ----------------- ##" >&5
802 # The following way of writing the cache mishandles newlines in values,
805 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
808 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
809 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
813 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
817 sed "/^$/d" confdefs.h >conftest.log
818 if test -s conftest.log; then
820 echo "## ------------ ##" >&5
821 echo "## confdefs.h. ##" >&5
822 echo "## ------------ ##" >&5
827 test "$ac_signal" != 0 &&
828 echo "$as_me: caught signal $ac_signal" >&5
829 echo "$as_me: exit $exit_status" >&5
830 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
833 for ac_signal in 1 2 13 15; do
834 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
838 # confdefs.h avoids OS command line length limits that DEFS can exceed.
839 rm -rf conftest* confdefs.h
840 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
843 # Let the site file select an alternate cache file if it wants to.
844 # Prefer explicitly selected file to automatically selected ones.
845 if test -z "$CONFIG_SITE"; then
846 if test "x$prefix" != xNONE; then
847 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
849 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
852 for ac_site_file in $CONFIG_SITE; do
853 if test -r "$ac_site_file"; then
854 { echo "$as_me:854: loading site script $ac_site_file" >&5
855 echo "$as_me: loading site script $ac_site_file" >&6;}
856 cat "$ac_site_file" >&5
861 if test -r "$cache_file"; then
862 # Some versions of bash will fail to source /dev/null (special
863 # files actually), so we avoid doing that.
864 if test -f "$cache_file"; then
865 { echo "$as_me:865: loading cache $cache_file" >&5
866 echo "$as_me: loading cache $cache_file" >&6;}
868 [\\/]* | ?:[\\/]* ) . $cache_file;;
873 { echo "$as_me:873: creating cache $cache_file" >&5
874 echo "$as_me: creating cache $cache_file" >&6;}
878 # Check that the precious variables saved in the cache have kept the same
880 ac_cache_corrupted=false
881 for ac_var in `(set) 2>&1 |
882 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
883 eval ac_old_set=\$ac_cv_env_${ac_var}_set
884 eval ac_new_set=\$ac_env_${ac_var}_set
885 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
886 eval ac_new_val="\$ac_env_${ac_var}_value"
887 case $ac_old_set,$ac_new_set in
889 { echo "$as_me:889: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
890 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
891 ac_cache_corrupted=: ;;
893 { echo "$as_me:893: error: \`$ac_var' was not set in the previous run" >&5
894 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
895 ac_cache_corrupted=: ;;
898 if test "x$ac_old_val" != "x$ac_new_val"; then
899 { echo "$as_me:899: error: \`$ac_var' has changed since the previous run:" >&5
900 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
901 { echo "$as_me:901: former value: $ac_old_val" >&5
902 echo "$as_me: former value: $ac_old_val" >&2;}
903 { echo "$as_me:903: current value: $ac_new_val" >&5
904 echo "$as_me: current value: $ac_new_val" >&2;}
908 # Pass precious variables to config.status. It doesn't matter if
909 # we pass some twice (in addition to the command line arguments).
910 if test "$ac_new_set" = set; then
912 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
913 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
914 ac_configure_args="$ac_configure_args '$ac_arg'"
916 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
921 if $ac_cache_corrupted; then
922 { echo "$as_me:922: error: changes in the environment can compromise the build" >&5
923 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
924 { { echo "$as_me:924: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
925 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
926 { (exit 1); exit 1; }; }
930 ac_cpp='$CPP $CPPFLAGS'
931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
934 ac_main_return=return
936 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
937 *c*,-n*) ECHO_N= ECHO_C='
939 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
940 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
942 echo "#! $SHELL" >conftest.sh
943 echo "exit 0" >>conftest.sh
945 if { (echo "$as_me:945: PATH=\".;.\"; conftest.sh") >&5
946 (PATH=".;."; conftest.sh) 2>&5
948 echo "$as_me:948: \$? = $ac_status" >&5
949 (exit $ac_status); }; then
950 ac_path_separator=';'
954 PATH_SEPARATOR="$ac_path_separator"
957 ac_config_headers="$ac_config_headers config.h:config_h.in"
960 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
961 if test -f $ac_dir/install-sh; then
963 ac_install_sh="$ac_aux_dir/install-sh -c"
965 elif test -f $ac_dir/install.sh; then
967 ac_install_sh="$ac_aux_dir/install.sh -c"
969 elif test -f $ac_dir/shtool; then
971 ac_install_sh="$ac_aux_dir/shtool install -c"
975 if test -z "$ac_aux_dir"; then
976 { { echo "$as_me:976: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
977 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
978 { (exit 1); exit 1; }; }
980 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
981 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
982 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
984 # Make sure we can run config.sub.
985 $ac_config_sub sun4 >/dev/null 2>&1 ||
986 { { echo "$as_me:986: error: cannot run $ac_config_sub" >&5
987 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
988 { (exit 1); exit 1; }; }
990 echo "$as_me:990: checking build system type" >&5
991 echo $ECHO_N "checking build system type... $ECHO_C" >&6
992 if test "${ac_cv_build+set}" = set; then
993 echo $ECHO_N "(cached) $ECHO_C" >&6
995 ac_cv_build_alias=$build_alias
996 test -z "$ac_cv_build_alias" &&
997 ac_cv_build_alias=`$ac_config_guess`
998 test -z "$ac_cv_build_alias" &&
999 { { echo "$as_me:999: error: cannot guess build type; you must specify one" >&5
1000 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1001 { (exit 1); exit 1; }; }
1002 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1003 { { echo "$as_me:1003: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1004 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1005 { (exit 1); exit 1; }; }
1008 echo "$as_me:1008: result: $ac_cv_build" >&5
1009 echo "${ECHO_T}$ac_cv_build" >&6
1011 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1012 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1013 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1015 echo "$as_me:1015: checking host system type" >&5
1016 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1017 if test "${ac_cv_host+set}" = set; then
1018 echo $ECHO_N "(cached) $ECHO_C" >&6
1020 ac_cv_host_alias=$host_alias
1021 test -z "$ac_cv_host_alias" &&
1022 ac_cv_host_alias=$ac_cv_build_alias
1023 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1024 { { echo "$as_me:1024: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1025 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1026 { (exit 1); exit 1; }; }
1029 echo "$as_me:1029: result: $ac_cv_host" >&5
1030 echo "${ECHO_T}$ac_cv_host" >&6
1032 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1033 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1034 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1036 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1037 echo "$as_me:1037: checking target system type" >&5
1038 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1039 if test "${ac_cv_target+set}" = set; then
1040 echo $ECHO_N "(cached) $ECHO_C" >&6
1042 ac_cv_target_alias=$target_alias
1043 test "x$ac_cv_target_alias" = "x" &&
1044 ac_cv_target_alias=$ac_cv_host_alias
1045 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1046 { { echo "$as_me:1046: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1047 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1048 { (exit 1); exit 1; }; }
1051 echo "$as_me:1051: result: $ac_cv_target" >&5
1052 echo "${ECHO_T}$ac_cv_target" >&6
1053 target=$ac_cv_target
1054 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1055 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1056 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1058 # The aliases save the names the user supplied, while $host etc.
1059 # will get canonicalized.
1060 test -n "$target_alias" &&
1061 test "$program_prefix$program_suffix$program_transform_name" = \
1063 program_prefix=${target_alias}-
1064 system_name="$host_os"
1066 system_name="`(uname -s -r) 2>/dev/null`"
1067 if test -z "$system_name" ; then
1068 system_name="`(hostname) 2>/dev/null`"
1071 test -n "$system_name" &&
1072 cat >>confdefs.h <<EOF
1073 #define SYSTEM_NAME "$system_name"
1076 if test "${cf_cv_system_name+set}" = set; then
1077 echo $ECHO_N "(cached) $ECHO_C" >&6
1079 cf_cv_system_name="$system_name"
1082 test -z "$system_name" && system_name="$cf_cv_system_name"
1083 test -n "$cf_cv_system_name" && echo "$as_me:1083: result: Configuring for $cf_cv_system_name" >&5
1084 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1086 if test ".$system_name" != ".$cf_cv_system_name" ; then
1087 echo "$as_me:1087: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1088 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1089 { { echo "$as_me:1089: error: \"Please remove config.cache and try again.\"" >&5
1090 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1091 { (exit 1); exit 1; }; }
1094 test "$program_prefix" != NONE &&
1095 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1096 # Use a double $ so make ignores it.
1097 test "$program_suffix" != NONE &&
1098 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1099 # Double any \ or $. echo might interpret backslashes.
1100 # By default was `s,x,x', remove it if useless.
1101 cat <<\_ACEOF >conftest.sed
1102 s/[\\$]/&&/g;s/;s,x,x,$//
1104 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1108 ac_cpp='$CPP $CPPFLAGS'
1109 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1110 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1111 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1112 ac_main_return=return
1113 if test -n "$ac_tool_prefix"; then
1114 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1115 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1116 echo "$as_me:1116: checking for $ac_word" >&5
1117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1118 if test "${ac_cv_prog_CC+set}" = set; then
1119 echo $ECHO_N "(cached) $ECHO_C" >&6
1121 if test -n "$CC"; then
1122 ac_cv_prog_CC="$CC" # Let the user override the test.
1124 ac_save_IFS=$IFS; IFS=$ac_path_separator
1126 for ac_dir in $ac_dummy; do
1128 test -z "$ac_dir" && ac_dir=.
1129 $as_executable_p "$ac_dir/$ac_word" || continue
1130 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1131 echo "$as_me:1131: found $ac_dir/$ac_word" >&5
1138 if test -n "$CC"; then
1139 echo "$as_me:1139: result: $CC" >&5
1140 echo "${ECHO_T}$CC" >&6
1142 echo "$as_me:1142: result: no" >&5
1143 echo "${ECHO_T}no" >&6
1147 if test -z "$ac_cv_prog_CC"; then
1149 # Extract the first word of "gcc", so it can be a program name with args.
1150 set dummy gcc; ac_word=$2
1151 echo "$as_me:1151: checking for $ac_word" >&5
1152 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1153 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1154 echo $ECHO_N "(cached) $ECHO_C" >&6
1156 if test -n "$ac_ct_CC"; then
1157 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1159 ac_save_IFS=$IFS; IFS=$ac_path_separator
1161 for ac_dir in $ac_dummy; do
1163 test -z "$ac_dir" && ac_dir=.
1164 $as_executable_p "$ac_dir/$ac_word" || continue
1165 ac_cv_prog_ac_ct_CC="gcc"
1166 echo "$as_me:1166: found $ac_dir/$ac_word" >&5
1172 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1173 if test -n "$ac_ct_CC"; then
1174 echo "$as_me:1174: result: $ac_ct_CC" >&5
1175 echo "${ECHO_T}$ac_ct_CC" >&6
1177 echo "$as_me:1177: result: no" >&5
1178 echo "${ECHO_T}no" >&6
1186 if test -z "$CC"; then
1187 if test -n "$ac_tool_prefix"; then
1188 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1189 set dummy ${ac_tool_prefix}cc; ac_word=$2
1190 echo "$as_me:1190: checking for $ac_word" >&5
1191 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1192 if test "${ac_cv_prog_CC+set}" = set; then
1193 echo $ECHO_N "(cached) $ECHO_C" >&6
1195 if test -n "$CC"; then
1196 ac_cv_prog_CC="$CC" # Let the user override the test.
1198 ac_save_IFS=$IFS; IFS=$ac_path_separator
1200 for ac_dir in $ac_dummy; do
1202 test -z "$ac_dir" && ac_dir=.
1203 $as_executable_p "$ac_dir/$ac_word" || continue
1204 ac_cv_prog_CC="${ac_tool_prefix}cc"
1205 echo "$as_me:1205: found $ac_dir/$ac_word" >&5
1212 if test -n "$CC"; then
1213 echo "$as_me:1213: result: $CC" >&5
1214 echo "${ECHO_T}$CC" >&6
1216 echo "$as_me:1216: result: no" >&5
1217 echo "${ECHO_T}no" >&6
1221 if test -z "$ac_cv_prog_CC"; then
1223 # Extract the first word of "cc", so it can be a program name with args.
1224 set dummy cc; ac_word=$2
1225 echo "$as_me:1225: checking for $ac_word" >&5
1226 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1227 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1228 echo $ECHO_N "(cached) $ECHO_C" >&6
1230 if test -n "$ac_ct_CC"; then
1231 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1233 ac_save_IFS=$IFS; IFS=$ac_path_separator
1235 for ac_dir in $ac_dummy; do
1237 test -z "$ac_dir" && ac_dir=.
1238 $as_executable_p "$ac_dir/$ac_word" || continue
1239 ac_cv_prog_ac_ct_CC="cc"
1240 echo "$as_me:1240: found $ac_dir/$ac_word" >&5
1246 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1247 if test -n "$ac_ct_CC"; then
1248 echo "$as_me:1248: result: $ac_ct_CC" >&5
1249 echo "${ECHO_T}$ac_ct_CC" >&6
1251 echo "$as_me:1251: result: no" >&5
1252 echo "${ECHO_T}no" >&6
1261 if test -z "$CC"; then
1262 # Extract the first word of "cc", so it can be a program name with args.
1263 set dummy cc; ac_word=$2
1264 echo "$as_me:1264: checking for $ac_word" >&5
1265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1266 if test "${ac_cv_prog_CC+set}" = set; then
1267 echo $ECHO_N "(cached) $ECHO_C" >&6
1269 if test -n "$CC"; then
1270 ac_cv_prog_CC="$CC" # Let the user override the test.
1273 ac_save_IFS=$IFS; IFS=$ac_path_separator
1275 for ac_dir in $ac_dummy; do
1277 test -z "$ac_dir" && ac_dir=.
1278 $as_executable_p "$ac_dir/$ac_word" || continue
1279 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1280 ac_prog_rejected=yes
1284 echo "$as_me:1284: found $ac_dir/$ac_word" >&5
1288 if test $ac_prog_rejected = yes; then
1289 # We found a bogon in the path, so make sure we never use it.
1290 set dummy $ac_cv_prog_CC
1292 if test $# != 0; then
1293 # We chose a different compiler from the bogus one.
1294 # However, it has the same basename, so the bogon will be chosen
1295 # first if we set CC to just the basename; use the full file name.
1297 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1305 if test -n "$CC"; then
1306 echo "$as_me:1306: result: $CC" >&5
1307 echo "${ECHO_T}$CC" >&6
1309 echo "$as_me:1309: result: no" >&5
1310 echo "${ECHO_T}no" >&6
1314 if test -z "$CC"; then
1315 if test -n "$ac_tool_prefix"; then
1318 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1319 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1320 echo "$as_me:1320: checking for $ac_word" >&5
1321 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1322 if test "${ac_cv_prog_CC+set}" = set; then
1323 echo $ECHO_N "(cached) $ECHO_C" >&6
1325 if test -n "$CC"; then
1326 ac_cv_prog_CC="$CC" # Let the user override the test.
1328 ac_save_IFS=$IFS; IFS=$ac_path_separator
1330 for ac_dir in $ac_dummy; do
1332 test -z "$ac_dir" && ac_dir=.
1333 $as_executable_p "$ac_dir/$ac_word" || continue
1334 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1335 echo "$as_me:1335: found $ac_dir/$ac_word" >&5
1342 if test -n "$CC"; then
1343 echo "$as_me:1343: result: $CC" >&5
1344 echo "${ECHO_T}$CC" >&6
1346 echo "$as_me:1346: result: no" >&5
1347 echo "${ECHO_T}no" >&6
1350 test -n "$CC" && break
1353 if test -z "$CC"; then
1357 # Extract the first word of "$ac_prog", so it can be a program name with args.
1358 set dummy $ac_prog; ac_word=$2
1359 echo "$as_me:1359: checking for $ac_word" >&5
1360 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1361 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1362 echo $ECHO_N "(cached) $ECHO_C" >&6
1364 if test -n "$ac_ct_CC"; then
1365 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1367 ac_save_IFS=$IFS; IFS=$ac_path_separator
1369 for ac_dir in $ac_dummy; do
1371 test -z "$ac_dir" && ac_dir=.
1372 $as_executable_p "$ac_dir/$ac_word" || continue
1373 ac_cv_prog_ac_ct_CC="$ac_prog"
1374 echo "$as_me:1374: found $ac_dir/$ac_word" >&5
1380 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1381 if test -n "$ac_ct_CC"; then
1382 echo "$as_me:1382: result: $ac_ct_CC" >&5
1383 echo "${ECHO_T}$ac_ct_CC" >&6
1385 echo "$as_me:1385: result: no" >&5
1386 echo "${ECHO_T}no" >&6
1389 test -n "$ac_ct_CC" && break
1397 test -z "$CC" && { { echo "$as_me:1397: error: no acceptable cc found in \$PATH" >&5
1398 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1399 { (exit 1); exit 1; }; }
1401 # Provide some information about the compiler.
1402 echo "$as_me:1402:" \
1403 "checking for C compiler version" >&5
1404 ac_compiler=`set X $ac_compile; echo $2`
1405 { (eval echo "$as_me:1405: \"$ac_compiler --version </dev/null >&5\"") >&5
1406 (eval $ac_compiler --version </dev/null >&5) 2>&5
1408 echo "$as_me:1408: \$? = $ac_status" >&5
1409 (exit $ac_status); }
1410 { (eval echo "$as_me:1410: \"$ac_compiler -v </dev/null >&5\"") >&5
1411 (eval $ac_compiler -v </dev/null >&5) 2>&5
1413 echo "$as_me:1413: \$? = $ac_status" >&5
1414 (exit $ac_status); }
1415 { (eval echo "$as_me:1415: \"$ac_compiler -V </dev/null >&5\"") >&5
1416 (eval $ac_compiler -V </dev/null >&5) 2>&5
1418 echo "$as_me:1418: \$? = $ac_status" >&5
1419 (exit $ac_status); }
1421 cat >conftest.$ac_ext <<_ACEOF
1422 #line 1422 "configure"
1423 #include "confdefs.h"
1433 ac_clean_files_save=$ac_clean_files
1434 ac_clean_files="$ac_clean_files a.out a.exe"
1435 # Try to create an executable without -o first, disregard a.out.
1436 # It will help us diagnose broken compilers, and finding out an intuition
1438 echo "$as_me:1438: checking for C compiler default output" >&5
1439 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1440 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1441 if { (eval echo "$as_me:1441: \"$ac_link_default\"") >&5
1442 (eval $ac_link_default) 2>&5
1444 echo "$as_me:1444: \$? = $ac_status" >&5
1445 (exit $ac_status); }; then
1446 # Find the output, starting from the most likely. This scheme is
1447 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1449 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1450 ls a.out conftest 2>/dev/null;
1451 ls a.* conftest.* 2>/dev/null`; do
1453 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1454 a.out ) # We found the default executable, but exeext='' is most
1457 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1458 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1465 echo "$as_me: failed program was:" >&5
1466 cat conftest.$ac_ext >&5
1467 { { echo "$as_me:1467: error: C compiler cannot create executables" >&5
1468 echo "$as_me: error: C compiler cannot create executables" >&2;}
1469 { (exit 77); exit 77; }; }
1472 ac_exeext=$ac_cv_exeext
1473 echo "$as_me:1473: result: $ac_file" >&5
1474 echo "${ECHO_T}$ac_file" >&6
1476 # Check the compiler produces executables we can run. If not, either
1477 # the compiler is broken, or we cross compile.
1478 echo "$as_me:1478: checking whether the C compiler works" >&5
1479 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1480 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1481 # If not cross compiling, check that we can run a simple program.
1482 if test "$cross_compiling" != yes; then
1483 if { ac_try='./$ac_file'
1484 { (eval echo "$as_me:1484: \"$ac_try\"") >&5
1487 echo "$as_me:1487: \$? = $ac_status" >&5
1488 (exit $ac_status); }; }; then
1491 if test "$cross_compiling" = maybe; then
1494 { { echo "$as_me:1494: error: cannot run C compiled programs.
1495 If you meant to cross compile, use \`--host'." >&5
1496 echo "$as_me: error: cannot run C compiled programs.
1497 If you meant to cross compile, use \`--host'." >&2;}
1498 { (exit 1); exit 1; }; }
1502 echo "$as_me:1502: result: yes" >&5
1503 echo "${ECHO_T}yes" >&6
1505 rm -f a.out a.exe conftest$ac_cv_exeext
1506 ac_clean_files=$ac_clean_files_save
1507 # Check the compiler produces executables we can run. If not, either
1508 # the compiler is broken, or we cross compile.
1509 echo "$as_me:1509: checking whether we are cross compiling" >&5
1510 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1511 echo "$as_me:1511: result: $cross_compiling" >&5
1512 echo "${ECHO_T}$cross_compiling" >&6
1514 echo "$as_me:1514: checking for executable suffix" >&5
1515 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1516 if { (eval echo "$as_me:1516: \"$ac_link\"") >&5
1517 (eval $ac_link) 2>&5
1519 echo "$as_me:1519: \$? = $ac_status" >&5
1520 (exit $ac_status); }; then
1521 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1522 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1523 # work properly (i.e., refer to `conftest.exe'), while it won't with
1525 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1527 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1528 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1535 { { echo "$as_me:1535: error: cannot compute EXEEXT: cannot compile and link" >&5
1536 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1537 { (exit 1); exit 1; }; }
1540 rm -f conftest$ac_cv_exeext
1541 echo "$as_me:1541: result: $ac_cv_exeext" >&5
1542 echo "${ECHO_T}$ac_cv_exeext" >&6
1544 rm -f conftest.$ac_ext
1545 EXEEXT=$ac_cv_exeext
1547 echo "$as_me:1547: checking for object suffix" >&5
1548 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1549 if test "${ac_cv_objext+set}" = set; then
1550 echo $ECHO_N "(cached) $ECHO_C" >&6
1552 cat >conftest.$ac_ext <<_ACEOF
1553 #line 1553 "configure"
1554 #include "confdefs.h"
1564 rm -f conftest.o conftest.obj
1565 if { (eval echo "$as_me:1565: \"$ac_compile\"") >&5
1566 (eval $ac_compile) 2>&5
1568 echo "$as_me:1568: \$? = $ac_status" >&5
1569 (exit $ac_status); }; then
1570 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1572 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1573 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1578 echo "$as_me: failed program was:" >&5
1579 cat conftest.$ac_ext >&5
1580 { { echo "$as_me:1580: error: cannot compute OBJEXT: cannot compile" >&5
1581 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1582 { (exit 1); exit 1; }; }
1585 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1587 echo "$as_me:1587: result: $ac_cv_objext" >&5
1588 echo "${ECHO_T}$ac_cv_objext" >&6
1589 OBJEXT=$ac_cv_objext
1591 echo "$as_me:1591: checking whether we are using the GNU C compiler" >&5
1592 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1593 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1594 echo $ECHO_N "(cached) $ECHO_C" >&6
1596 cat >conftest.$ac_ext <<_ACEOF
1597 #line 1597 "configure"
1598 #include "confdefs.h"
1611 rm -f conftest.$ac_objext
1612 if { (eval echo "$as_me:1612: \"$ac_compile\"") >&5
1613 (eval $ac_compile) 2>&5
1615 echo "$as_me:1615: \$? = $ac_status" >&5
1616 (exit $ac_status); } &&
1617 { ac_try='test -s conftest.$ac_objext'
1618 { (eval echo "$as_me:1618: \"$ac_try\"") >&5
1621 echo "$as_me:1621: \$? = $ac_status" >&5
1622 (exit $ac_status); }; }; then
1625 echo "$as_me: failed program was:" >&5
1626 cat conftest.$ac_ext >&5
1629 rm -f conftest.$ac_objext conftest.$ac_ext
1630 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1633 echo "$as_me:1633: result: $ac_cv_c_compiler_gnu" >&5
1634 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1635 GCC=`test $ac_compiler_gnu = yes && echo yes`
1636 ac_test_CFLAGS=${CFLAGS+set}
1637 ac_save_CFLAGS=$CFLAGS
1639 echo "$as_me:1639: checking whether $CC accepts -g" >&5
1640 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1641 if test "${ac_cv_prog_cc_g+set}" = set; then
1642 echo $ECHO_N "(cached) $ECHO_C" >&6
1644 cat >conftest.$ac_ext <<_ACEOF
1645 #line 1645 "configure"
1646 #include "confdefs.h"
1656 rm -f conftest.$ac_objext
1657 if { (eval echo "$as_me:1657: \"$ac_compile\"") >&5
1658 (eval $ac_compile) 2>&5
1660 echo "$as_me:1660: \$? = $ac_status" >&5
1661 (exit $ac_status); } &&
1662 { ac_try='test -s conftest.$ac_objext'
1663 { (eval echo "$as_me:1663: \"$ac_try\"") >&5
1666 echo "$as_me:1666: \$? = $ac_status" >&5
1667 (exit $ac_status); }; }; then
1670 echo "$as_me: failed program was:" >&5
1671 cat conftest.$ac_ext >&5
1674 rm -f conftest.$ac_objext conftest.$ac_ext
1676 echo "$as_me:1676: result: $ac_cv_prog_cc_g" >&5
1677 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1678 if test "$ac_test_CFLAGS" = set; then
1679 CFLAGS=$ac_save_CFLAGS
1680 elif test $ac_cv_prog_cc_g = yes; then
1681 if test "$GCC" = yes; then
1687 if test "$GCC" = yes; then
1693 # Some people use a C++ compiler to compile C. Since we use `exit',
1694 # in C++ we need to declare it. In case someone uses the same compiler
1695 # for both compiling C and C++ we need to have the C++ compiler decide
1696 # the declaration of exit, since it's the most demanding environment.
1697 cat >conftest.$ac_ext <<_ACEOF
1702 rm -f conftest.$ac_objext
1703 if { (eval echo "$as_me:1703: \"$ac_compile\"") >&5
1704 (eval $ac_compile) 2>&5
1706 echo "$as_me:1706: \$? = $ac_status" >&5
1707 (exit $ac_status); } &&
1708 { ac_try='test -s conftest.$ac_objext'
1709 { (eval echo "$as_me:1709: \"$ac_try\"") >&5
1712 echo "$as_me:1712: \$? = $ac_status" >&5
1713 (exit $ac_status); }; }; then
1714 for ac_declaration in \
1716 '#include <stdlib.h>' \
1717 'extern "C" void std::exit (int) throw (); using std::exit;' \
1718 'extern "C" void std::exit (int); using std::exit;' \
1719 'extern "C" void exit (int) throw ();' \
1720 'extern "C" void exit (int);' \
1723 cat >conftest.$ac_ext <<_ACEOF
1724 #line 1724 "configure"
1725 #include "confdefs.h"
1736 rm -f conftest.$ac_objext
1737 if { (eval echo "$as_me:1737: \"$ac_compile\"") >&5
1738 (eval $ac_compile) 2>&5
1740 echo "$as_me:1740: \$? = $ac_status" >&5
1741 (exit $ac_status); } &&
1742 { ac_try='test -s conftest.$ac_objext'
1743 { (eval echo "$as_me:1743: \"$ac_try\"") >&5
1746 echo "$as_me:1746: \$? = $ac_status" >&5
1747 (exit $ac_status); }; }; then
1750 echo "$as_me: failed program was:" >&5
1751 cat conftest.$ac_ext >&5
1754 rm -f conftest.$ac_objext conftest.$ac_ext
1755 cat >conftest.$ac_ext <<_ACEOF
1756 #line 1756 "configure"
1757 #include "confdefs.h"
1767 rm -f conftest.$ac_objext
1768 if { (eval echo "$as_me:1768: \"$ac_compile\"") >&5
1769 (eval $ac_compile) 2>&5
1771 echo "$as_me:1771: \$? = $ac_status" >&5
1772 (exit $ac_status); } &&
1773 { ac_try='test -s conftest.$ac_objext'
1774 { (eval echo "$as_me:1774: \"$ac_try\"") >&5
1777 echo "$as_me:1777: \$? = $ac_status" >&5
1778 (exit $ac_status); }; }; then
1781 echo "$as_me: failed program was:" >&5
1782 cat conftest.$ac_ext >&5
1784 rm -f conftest.$ac_objext conftest.$ac_ext
1787 if test -n "$ac_declaration"; then
1788 echo '#ifdef __cplusplus' >>confdefs.h
1789 echo $ac_declaration >>confdefs.h
1790 echo '#endif' >>confdefs.h
1794 echo "$as_me: failed program was:" >&5
1795 cat conftest.$ac_ext >&5
1797 rm -f conftest.$ac_objext conftest.$ac_ext
1799 ac_cpp='$CPP $CPPFLAGS'
1800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1803 ac_main_return=return
1806 if test "$GCC" = yes ; then
1807 echo "$as_me:1807: checking version of $CC" >&5
1808 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
1809 GCC_VERSION="`${CC} --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(GCC[^)]*) //' -e 's/^.*(Debian[^)]*) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
1810 test -z "$GCC_VERSION" && GCC_VERSION=unknown
1811 echo "$as_me:1811: result: $GCC_VERSION" >&5
1812 echo "${ECHO_T}$GCC_VERSION" >&6
1815 echo "$as_me:1815: checking for $CC option to accept ANSI C" >&5
1816 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1817 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1818 echo $ECHO_N "(cached) $ECHO_C" >&6
1820 ac_cv_prog_cc_stdc=no
1822 cat >conftest.$ac_ext <<_ACEOF
1823 #line 1823 "configure"
1824 #include "confdefs.h"
1827 #include <sys/types.h>
1828 #include <sys/stat.h>
1829 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1830 struct buf { int x; };
1831 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1832 static char *e (p, i)
1838 static char *f (char * (*g) (char **, int), char **p, ...)
1843 s = g (p, va_arg (v,int));
1847 int test (int i, double x);
1848 struct s1 {int (*f) (int a);};
1849 struct s2 {int (*f) (double a);};
1850 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1856 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1861 # Don't try gcc -ansi; that turns off useful extensions and
1862 # breaks some systems' header files.
1863 # AIX -qlanglvl=ansi
1864 # Ultrix and OSF/1 -std1
1865 # HP-UX 10.20 and later -Ae
1866 # HP-UX older versions -Aa -D_HPUX_SOURCE
1867 # SVR4 -Xc -D__EXTENSIONS__
1868 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1870 CC="$ac_save_CC $ac_arg"
1871 rm -f conftest.$ac_objext
1872 if { (eval echo "$as_me:1872: \"$ac_compile\"") >&5
1873 (eval $ac_compile) 2>&5
1875 echo "$as_me:1875: \$? = $ac_status" >&5
1876 (exit $ac_status); } &&
1877 { ac_try='test -s conftest.$ac_objext'
1878 { (eval echo "$as_me:1878: \"$ac_try\"") >&5
1881 echo "$as_me:1881: \$? = $ac_status" >&5
1882 (exit $ac_status); }; }; then
1883 ac_cv_prog_cc_stdc=$ac_arg
1886 echo "$as_me: failed program was:" >&5
1887 cat conftest.$ac_ext >&5
1889 rm -f conftest.$ac_objext
1891 rm -f conftest.$ac_ext conftest.$ac_objext
1896 case "x$ac_cv_prog_cc_stdc" in
1898 echo "$as_me:1898: result: none needed" >&5
1899 echo "${ECHO_T}none needed" >&6 ;;
1901 echo "$as_me:1901: result: $ac_cv_prog_cc_stdc" >&5
1902 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
1903 CC="$CC $ac_cv_prog_cc_stdc" ;;
1906 # This should have been defined by AC_PROG_CC
1909 echo "$as_me:1909: checking \$CC variable" >&5
1910 echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
1913 echo "$as_me:1913: result: broken" >&5
1914 echo "${ECHO_T}broken" >&6
1915 { echo "$as_me:1915: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
1916 echo "$as_me: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
1918 cf_flags=`echo "$CC" | sed -e 's/^[^ ]*[ ]//'`
1919 CC=`echo "$CC" | sed -e 's/[ ].*//'`
1924 cf_new_extra_cppflags=
1926 for cf_add_cflags in $cf_flags
1928 case $cf_fix_cppflags in
1930 case $cf_add_cflags in #(vi
1931 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
1932 case $cf_add_cflags in
1934 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
1936 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
1937 && test -z "${cf_tst_cflags}" \
1938 && cf_fix_cppflags=yes
1940 if test $cf_fix_cppflags = yes ; then
1941 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
1943 elif test "${cf_tst_cflags}" = "\"'" ; then
1944 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
1950 *$cf_add_cflags) #(vi
1953 case $cf_add_cflags in #(vi
1955 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
1957 CPPFLAGS=`echo "$CPPFLAGS" | \
1958 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
1959 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
1963 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
1968 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
1973 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
1975 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
1977 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
1978 && test -z "${cf_tst_cflags}" \
1979 && cf_fix_cppflags=no
1984 if test -n "$cf_new_cflags" ; then
1986 CFLAGS="$CFLAGS $cf_new_cflags"
1989 if test -n "$cf_new_cppflags" ; then
1991 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
1994 if test -n "$cf_new_extra_cppflags" ; then
1996 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2001 echo "$as_me:2001: result: ok" >&5
2002 echo "${ECHO_T}ok" >&6
2006 echo "$as_me:2006: checking whether ${MAKE-make} sets \${MAKE}" >&5
2007 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
2008 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
2009 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2010 echo $ECHO_N "(cached) $ECHO_C" >&6
2012 cat >conftest.make <<\EOF
2014 @echo 'ac_maketemp="${MAKE}"'
2016 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2017 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2018 if test -n "$ac_maketemp"; then
2019 eval ac_cv_prog_make_${ac_make}_set=yes
2021 eval ac_cv_prog_make_${ac_make}_set=no
2025 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2026 echo "$as_me:2026: result: yes" >&5
2027 echo "${ECHO_T}yes" >&6
2030 echo "$as_me:2030: result: no" >&5
2031 echo "${ECHO_T}no" >&6
2032 SET_MAKE="MAKE=${MAKE-make}"
2035 # Find a good install program. We prefer a C program (faster),
2036 # so one script is as good as another. But avoid the broken or
2037 # incompatible versions:
2038 # SysV /etc/install, /usr/sbin/install
2039 # SunOS /usr/etc/install
2040 # IRIX /sbin/install
2042 # AmigaOS /C/install, which installs bootblocks on floppy discs
2043 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2044 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2045 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2046 # ./install, which can be erroneously created by make from ./install.sh.
2047 echo "$as_me:2047: checking for a BSD compatible install" >&5
2048 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
2049 if test -z "$INSTALL"; then
2050 if test "${ac_cv_path_install+set}" = set; then
2051 echo $ECHO_N "(cached) $ECHO_C" >&6
2053 ac_save_IFS=$IFS; IFS=$ac_path_separator
2054 for ac_dir in $PATH; do
2056 # Account for people who put trailing slashes in PATH elements.
2058 / | ./ | .// | /cC/* \
2059 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
2062 # OSF1 and SCO ODT 3.0 have their own names for install.
2063 # Don't use installbsd from OSF since it installs stuff as root
2065 for ac_prog in ginstall scoinst install; do
2066 if $as_executable_p "$ac_dir/$ac_prog"; then
2067 if test $ac_prog = install &&
2068 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2069 # AIX install. It has an incompatible calling convention.
2071 elif test $ac_prog = install &&
2072 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2073 # program-specific install script used by HP pwplus--don't use.
2076 ac_cv_path_install="$ac_dir/$ac_prog -c"
2086 if test "${ac_cv_path_install+set}" = set; then
2087 INSTALL=$ac_cv_path_install
2089 # As a last resort, use the slow shell script. We don't cache a
2090 # path for INSTALL within a source directory, because that will
2091 # break other packages using the cache if that directory is
2092 # removed, or if the path is relative.
2093 INSTALL=$ac_install_sh
2096 echo "$as_me:2096: result: $INSTALL" >&5
2097 echo "${ECHO_T}$INSTALL" >&6
2099 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2100 # It thinks the first close brace ends the variable substitution.
2101 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2103 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2105 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2107 echo "$as_me:2107: checking if filesystem supports mixed-case filenames" >&5
2108 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
2109 if test "${cf_cv_mixedcase+set}" = set; then
2110 echo $ECHO_N "(cached) $ECHO_C" >&6
2113 if test "$cross_compiling" = yes ; then
2114 case $target_alias in #(vi
2115 *-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-mingw32*|*-uwin*) #(vi
2123 rm -f conftest CONFTEST
2125 if test -f CONFTEST ; then
2130 rm -f conftest CONFTEST
2134 echo "$as_me:2134: result: $cf_cv_mixedcase" >&5
2135 echo "${ECHO_T}$cf_cv_mixedcase" >&6
2136 test "$cf_cv_mixedcase" = yes &&
2137 cat >>confdefs.h <<\EOF
2138 #define MIXEDCASE_FILENAMES 1
2141 for ac_prog in exctags ctags
2143 # Extract the first word of "$ac_prog", so it can be a program name with args.
2144 set dummy $ac_prog; ac_word=$2
2145 echo "$as_me:2145: checking for $ac_word" >&5
2146 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2147 if test "${ac_cv_prog_CTAGS+set}" = set; then
2148 echo $ECHO_N "(cached) $ECHO_C" >&6
2150 if test -n "$CTAGS"; then
2151 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
2153 ac_save_IFS=$IFS; IFS=$ac_path_separator
2155 for ac_dir in $ac_dummy; do
2157 test -z "$ac_dir" && ac_dir=.
2158 $as_executable_p "$ac_dir/$ac_word" || continue
2159 ac_cv_prog_CTAGS="$ac_prog"
2160 echo "$as_me:2160: found $ac_dir/$ac_word" >&5
2166 CTAGS=$ac_cv_prog_CTAGS
2167 if test -n "$CTAGS"; then
2168 echo "$as_me:2168: result: $CTAGS" >&5
2169 echo "${ECHO_T}$CTAGS" >&6
2171 echo "$as_me:2171: result: no" >&5
2172 echo "${ECHO_T}no" >&6
2175 test -n "$CTAGS" && break
2178 for ac_prog in exetags etags
2180 # Extract the first word of "$ac_prog", so it can be a program name with args.
2181 set dummy $ac_prog; ac_word=$2
2182 echo "$as_me:2182: checking for $ac_word" >&5
2183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2184 if test "${ac_cv_prog_ETAGS+set}" = set; then
2185 echo $ECHO_N "(cached) $ECHO_C" >&6
2187 if test -n "$ETAGS"; then
2188 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
2190 ac_save_IFS=$IFS; IFS=$ac_path_separator
2192 for ac_dir in $ac_dummy; do
2194 test -z "$ac_dir" && ac_dir=.
2195 $as_executable_p "$ac_dir/$ac_word" || continue
2196 ac_cv_prog_ETAGS="$ac_prog"
2197 echo "$as_me:2197: found $ac_dir/$ac_word" >&5
2203 ETAGS=$ac_cv_prog_ETAGS
2204 if test -n "$ETAGS"; then
2205 echo "$as_me:2205: result: $ETAGS" >&5
2206 echo "${ECHO_T}$ETAGS" >&6
2208 echo "$as_me:2208: result: no" >&5
2209 echo "${ECHO_T}no" >&6
2212 test -n "$ETAGS" && break
2215 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
2216 set dummy ${CTAGS:-ctags}; ac_word=$2
2217 echo "$as_me:2217: checking for $ac_word" >&5
2218 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2219 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
2220 echo $ECHO_N "(cached) $ECHO_C" >&6
2222 if test -n "$MAKE_LOWER_TAGS"; then
2223 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
2225 ac_save_IFS=$IFS; IFS=$ac_path_separator
2227 for ac_dir in $ac_dummy; do
2229 test -z "$ac_dir" && ac_dir=.
2230 $as_executable_p "$ac_dir/$ac_word" || continue
2231 ac_cv_prog_MAKE_LOWER_TAGS="yes"
2232 echo "$as_me:2232: found $ac_dir/$ac_word" >&5
2236 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
2239 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
2240 if test -n "$MAKE_LOWER_TAGS"; then
2241 echo "$as_me:2241: result: $MAKE_LOWER_TAGS" >&5
2242 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
2244 echo "$as_me:2244: result: no" >&5
2245 echo "${ECHO_T}no" >&6
2248 if test "$cf_cv_mixedcase" = yes ; then
2249 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
2250 set dummy ${ETAGS:-etags}; ac_word=$2
2251 echo "$as_me:2251: checking for $ac_word" >&5
2252 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2253 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
2254 echo $ECHO_N "(cached) $ECHO_C" >&6
2256 if test -n "$MAKE_UPPER_TAGS"; then
2257 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
2259 ac_save_IFS=$IFS; IFS=$ac_path_separator
2261 for ac_dir in $ac_dummy; do
2263 test -z "$ac_dir" && ac_dir=.
2264 $as_executable_p "$ac_dir/$ac_word" || continue
2265 ac_cv_prog_MAKE_UPPER_TAGS="yes"
2266 echo "$as_me:2266: found $ac_dir/$ac_word" >&5
2270 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
2273 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
2274 if test -n "$MAKE_UPPER_TAGS"; then
2275 echo "$as_me:2275: result: $MAKE_UPPER_TAGS" >&5
2276 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
2278 echo "$as_me:2278: result: no" >&5
2279 echo "${ECHO_T}no" >&6
2286 if test "$MAKE_UPPER_TAGS" = yes ; then
2292 if test "$MAKE_LOWER_TAGS" = yes ; then
2298 for ac_prog in tdlint lint alint splint lclint
2300 # Extract the first word of "$ac_prog", so it can be a program name with args.
2301 set dummy $ac_prog; ac_word=$2
2302 echo "$as_me:2302: checking for $ac_word" >&5
2303 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2304 if test "${ac_cv_prog_LINT+set}" = set; then
2305 echo $ECHO_N "(cached) $ECHO_C" >&6
2307 if test -n "$LINT"; then
2308 ac_cv_prog_LINT="$LINT" # Let the user override the test.
2310 ac_save_IFS=$IFS; IFS=$ac_path_separator
2312 for ac_dir in $ac_dummy; do
2314 test -z "$ac_dir" && ac_dir=.
2315 $as_executable_p "$ac_dir/$ac_word" || continue
2316 ac_cv_prog_LINT="$ac_prog"
2317 echo "$as_me:2317: found $ac_dir/$ac_word" >&5
2323 LINT=$ac_cv_prog_LINT
2324 if test -n "$LINT"; then
2325 echo "$as_me:2325: result: $LINT" >&5
2326 echo "${ECHO_T}$LINT" >&6
2328 echo "$as_me:2328: result: no" >&5
2329 echo "${ECHO_T}no" >&6
2332 test -n "$LINT" && break
2336 cf_POSIX_C_SOURCE=199506L
2339 case $host_os in #(vi
2341 cf_xopen_source="-D_ALL_SOURCE"
2347 cf_xopen_source="-D_APPLE_C_SOURCE"
2350 cf_xopen_source="-D_DARWIN_C_SOURCE"
2353 freebsd*|dragonfly*) #(vi
2354 # 5.x headers associate
2355 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
2356 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
2357 cf_POSIX_C_SOURCE=200112L
2359 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
2362 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
2365 cf_xopen_source="-D_HPUX_SOURCE"
2368 cf_xopen_source="-D_SGI_SOURCE"
2371 linux*|gnu*|mint*|k*bsd*-gnu) #(vi
2373 echo "$as_me:2373: checking if we must define _GNU_SOURCE" >&5
2374 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
2375 if test "${cf_cv_gnu_source+set}" = set; then
2376 echo $ECHO_N "(cached) $ECHO_C" >&6
2379 cat >conftest.$ac_ext <<_ACEOF
2380 #line 2380 "configure"
2381 #include "confdefs.h"
2382 #include <sys/types.h>
2387 #ifndef _XOPEN_SOURCE
2394 rm -f conftest.$ac_objext
2395 if { (eval echo "$as_me:2395: \"$ac_compile\"") >&5
2396 (eval $ac_compile) 2>&5
2398 echo "$as_me:2398: \$? = $ac_status" >&5
2399 (exit $ac_status); } &&
2400 { ac_try='test -s conftest.$ac_objext'
2401 { (eval echo "$as_me:2401: \"$ac_try\"") >&5
2404 echo "$as_me:2404: \$? = $ac_status" >&5
2405 (exit $ac_status); }; }; then
2408 echo "$as_me: failed program was:" >&5
2409 cat conftest.$ac_ext >&5
2411 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
2412 cat >conftest.$ac_ext <<_ACEOF
2413 #line 2413 "configure"
2414 #include "confdefs.h"
2415 #include <sys/types.h>
2420 #ifdef _XOPEN_SOURCE
2427 rm -f conftest.$ac_objext
2428 if { (eval echo "$as_me:2428: \"$ac_compile\"") >&5
2429 (eval $ac_compile) 2>&5
2431 echo "$as_me:2431: \$? = $ac_status" >&5
2432 (exit $ac_status); } &&
2433 { ac_try='test -s conftest.$ac_objext'
2434 { (eval echo "$as_me:2434: \"$ac_try\"") >&5
2437 echo "$as_me:2437: \$? = $ac_status" >&5
2438 (exit $ac_status); }; }; then
2441 echo "$as_me: failed program was:" >&5
2442 cat conftest.$ac_ext >&5
2443 cf_cv_gnu_source=yes
2445 rm -f conftest.$ac_objext conftest.$ac_ext
2449 rm -f conftest.$ac_objext conftest.$ac_ext
2452 echo "$as_me:2452: result: $cf_cv_gnu_source" >&5
2453 echo "${ECHO_T}$cf_cv_gnu_source" >&6
2454 test "$cf_cv_gnu_source" = yes && CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
2458 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <sys/select.h> and other headers which use u_int / u_short types
2461 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
2463 cf_save_CFLAGS="$CFLAGS"
2464 cf_save_CPPFLAGS="$CPPFLAGS"
2466 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
2467 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
2468 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
2470 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
2471 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
2472 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
2474 echo "$as_me:2474: checking if we should define _POSIX_C_SOURCE" >&5
2475 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
2476 if test "${cf_cv_posix_c_source+set}" = set; then
2477 echo $ECHO_N "(cached) $ECHO_C" >&6
2480 echo "${as_me:-configure}:2480: testing if the symbol is already defined go no further ..." 1>&5
2482 cat >conftest.$ac_ext <<_ACEOF
2483 #line 2483 "configure"
2484 #include "confdefs.h"
2485 #include <sys/types.h>
2490 #ifndef _POSIX_C_SOURCE
2497 rm -f conftest.$ac_objext
2498 if { (eval echo "$as_me:2498: \"$ac_compile\"") >&5
2499 (eval $ac_compile) 2>&5
2501 echo "$as_me:2501: \$? = $ac_status" >&5
2502 (exit $ac_status); } &&
2503 { ac_try='test -s conftest.$ac_objext'
2504 { (eval echo "$as_me:2504: \"$ac_try\"") >&5
2507 echo "$as_me:2507: \$? = $ac_status" >&5
2508 (exit $ac_status); }; }; then
2509 cf_cv_posix_c_source=no
2511 echo "$as_me: failed program was:" >&5
2512 cat conftest.$ac_ext >&5
2513 cf_want_posix_source=no
2514 case .$cf_POSIX_C_SOURCE in #(vi
2516 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
2519 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
2520 cf_want_posix_source=yes
2523 cf_want_posix_source=yes
2526 if test "$cf_want_posix_source" = yes ; then
2527 cat >conftest.$ac_ext <<_ACEOF
2528 #line 2528 "configure"
2529 #include "confdefs.h"
2530 #include <sys/types.h>
2535 #ifdef _POSIX_SOURCE
2542 rm -f conftest.$ac_objext
2543 if { (eval echo "$as_me:2543: \"$ac_compile\"") >&5
2544 (eval $ac_compile) 2>&5
2546 echo "$as_me:2546: \$? = $ac_status" >&5
2547 (exit $ac_status); } &&
2548 { ac_try='test -s conftest.$ac_objext'
2549 { (eval echo "$as_me:2549: \"$ac_try\"") >&5
2552 echo "$as_me:2552: \$? = $ac_status" >&5
2553 (exit $ac_status); }; }; then
2556 echo "$as_me: failed program was:" >&5
2557 cat conftest.$ac_ext >&5
2558 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
2560 rm -f conftest.$ac_objext conftest.$ac_ext
2563 echo "${as_me:-configure}:2563: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
2565 CFLAGS="$cf_trim_CFLAGS"
2566 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
2568 echo "${as_me:-configure}:2568: testing if the second compile does not leave our definition intact error ..." 1>&5
2570 cat >conftest.$ac_ext <<_ACEOF
2571 #line 2571 "configure"
2572 #include "confdefs.h"
2573 #include <sys/types.h>
2578 #ifndef _POSIX_C_SOURCE
2585 rm -f conftest.$ac_objext
2586 if { (eval echo "$as_me:2586: \"$ac_compile\"") >&5
2587 (eval $ac_compile) 2>&5
2589 echo "$as_me:2589: \$? = $ac_status" >&5
2590 (exit $ac_status); } &&
2591 { ac_try='test -s conftest.$ac_objext'
2592 { (eval echo "$as_me:2592: \"$ac_try\"") >&5
2595 echo "$as_me:2595: \$? = $ac_status" >&5
2596 (exit $ac_status); }; }; then
2599 echo "$as_me: failed program was:" >&5
2600 cat conftest.$ac_ext >&5
2601 cf_cv_posix_c_source=no
2603 rm -f conftest.$ac_objext conftest.$ac_ext
2604 CFLAGS="$cf_save_CFLAGS"
2605 CPPFLAGS="$cf_save_CPPFLAGS"
2608 rm -f conftest.$ac_objext conftest.$ac_ext
2611 echo "$as_me:2611: result: $cf_cv_posix_c_source" >&5
2612 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
2614 if test "$cf_cv_posix_c_source" != no ; then
2615 CFLAGS="$cf_trim_CFLAGS"
2616 CPPFLAGS="$cf_trim_CPPFLAGS"
2621 cf_new_extra_cppflags=
2623 for cf_add_cflags in $cf_cv_posix_c_source
2625 case $cf_fix_cppflags in
2627 case $cf_add_cflags in #(vi
2628 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2629 case $cf_add_cflags in
2631 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2633 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2634 && test -z "${cf_tst_cflags}" \
2635 && cf_fix_cppflags=yes
2637 if test $cf_fix_cppflags = yes ; then
2638 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2640 elif test "${cf_tst_cflags}" = "\"'" ; then
2641 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2647 *$cf_add_cflags) #(vi
2650 case $cf_add_cflags in #(vi
2652 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2654 CPPFLAGS=`echo "$CPPFLAGS" | \
2655 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2656 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2660 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2665 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2670 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2672 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2674 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2675 && test -z "${cf_tst_cflags}" \
2676 && cf_fix_cppflags=no
2681 if test -n "$cf_new_cflags" ; then
2683 CFLAGS="$CFLAGS $cf_new_cflags"
2686 if test -n "$cf_new_cppflags" ; then
2688 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2691 if test -n "$cf_new_extra_cppflags" ; then
2693 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2700 cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
2703 # setting _XOPEN_SOURCE lower than 500 breaks g++ compile with wchar.h, needed for ncursesw
2704 cf_xopen_source="-D_BSD_SOURCE"
2708 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
2711 cf_xopen_source="-D_OSF_SOURCE"
2714 cf_xopen_source="-D_QNX_SOURCE"
2717 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
2720 cf_xopen_source="-D__EXTENSIONS__"
2724 echo "$as_me:2724: checking if we should define _XOPEN_SOURCE" >&5
2725 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
2726 if test "${cf_cv_xopen_source+set}" = set; then
2727 echo $ECHO_N "(cached) $ECHO_C" >&6
2730 cat >conftest.$ac_ext <<_ACEOF
2731 #line 2731 "configure"
2732 #include "confdefs.h"
2736 #include <sys/types.h>
2742 #ifndef _XOPEN_SOURCE
2749 rm -f conftest.$ac_objext
2750 if { (eval echo "$as_me:2750: \"$ac_compile\"") >&5
2751 (eval $ac_compile) 2>&5
2753 echo "$as_me:2753: \$? = $ac_status" >&5
2754 (exit $ac_status); } &&
2755 { ac_try='test -s conftest.$ac_objext'
2756 { (eval echo "$as_me:2756: \"$ac_try\"") >&5
2759 echo "$as_me:2759: \$? = $ac_status" >&5
2760 (exit $ac_status); }; }; then
2761 cf_cv_xopen_source=no
2763 echo "$as_me: failed program was:" >&5
2764 cat conftest.$ac_ext >&5
2766 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
2767 cat >conftest.$ac_ext <<_ACEOF
2768 #line 2768 "configure"
2769 #include "confdefs.h"
2773 #include <sys/types.h>
2779 #ifdef _XOPEN_SOURCE
2786 rm -f conftest.$ac_objext
2787 if { (eval echo "$as_me:2787: \"$ac_compile\"") >&5
2788 (eval $ac_compile) 2>&5
2790 echo "$as_me:2790: \$? = $ac_status" >&5
2791 (exit $ac_status); } &&
2792 { ac_try='test -s conftest.$ac_objext'
2793 { (eval echo "$as_me:2793: \"$ac_try\"") >&5
2796 echo "$as_me:2796: \$? = $ac_status" >&5
2797 (exit $ac_status); }; }; then
2798 cf_cv_xopen_source=no
2800 echo "$as_me: failed program was:" >&5
2801 cat conftest.$ac_ext >&5
2802 cf_cv_xopen_source=$cf_XOPEN_SOURCE
2804 rm -f conftest.$ac_objext conftest.$ac_ext
2808 rm -f conftest.$ac_objext conftest.$ac_ext
2811 echo "$as_me:2811: result: $cf_cv_xopen_source" >&5
2812 echo "${ECHO_T}$cf_cv_xopen_source" >&6
2814 if test "$cf_cv_xopen_source" != no ; then
2816 CFLAGS=`echo "$CFLAGS" | \
2817 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
2818 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
2820 CPPFLAGS=`echo "$CPPFLAGS" | \
2821 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
2822 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
2824 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
2829 cf_new_extra_cppflags=
2831 for cf_add_cflags in $cf_temp_xopen_source
2833 case $cf_fix_cppflags in
2835 case $cf_add_cflags in #(vi
2836 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2837 case $cf_add_cflags in
2839 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2841 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2842 && test -z "${cf_tst_cflags}" \
2843 && cf_fix_cppflags=yes
2845 if test $cf_fix_cppflags = yes ; then
2846 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2848 elif test "${cf_tst_cflags}" = "\"'" ; then
2849 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2855 *$cf_add_cflags) #(vi
2858 case $cf_add_cflags in #(vi
2860 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2862 CPPFLAGS=`echo "$CPPFLAGS" | \
2863 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2864 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2868 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2873 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2878 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2880 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2882 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2883 && test -z "${cf_tst_cflags}" \
2884 && cf_fix_cppflags=no
2889 if test -n "$cf_new_cflags" ; then
2891 CFLAGS="$CFLAGS $cf_new_cflags"
2894 if test -n "$cf_new_cppflags" ; then
2896 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2899 if test -n "$cf_new_extra_cppflags" ; then
2901 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2906 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
2908 cf_save_CFLAGS="$CFLAGS"
2909 cf_save_CPPFLAGS="$CPPFLAGS"
2911 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
2912 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
2913 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
2915 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
2916 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
2917 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
2919 echo "$as_me:2919: checking if we should define _POSIX_C_SOURCE" >&5
2920 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
2921 if test "${cf_cv_posix_c_source+set}" = set; then
2922 echo $ECHO_N "(cached) $ECHO_C" >&6
2925 echo "${as_me:-configure}:2925: testing if the symbol is already defined go no further ..." 1>&5
2927 cat >conftest.$ac_ext <<_ACEOF
2928 #line 2928 "configure"
2929 #include "confdefs.h"
2930 #include <sys/types.h>
2935 #ifndef _POSIX_C_SOURCE
2942 rm -f conftest.$ac_objext
2943 if { (eval echo "$as_me:2943: \"$ac_compile\"") >&5
2944 (eval $ac_compile) 2>&5
2946 echo "$as_me:2946: \$? = $ac_status" >&5
2947 (exit $ac_status); } &&
2948 { ac_try='test -s conftest.$ac_objext'
2949 { (eval echo "$as_me:2949: \"$ac_try\"") >&5
2952 echo "$as_me:2952: \$? = $ac_status" >&5
2953 (exit $ac_status); }; }; then
2954 cf_cv_posix_c_source=no
2956 echo "$as_me: failed program was:" >&5
2957 cat conftest.$ac_ext >&5
2958 cf_want_posix_source=no
2959 case .$cf_POSIX_C_SOURCE in #(vi
2961 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
2964 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
2965 cf_want_posix_source=yes
2968 cf_want_posix_source=yes
2971 if test "$cf_want_posix_source" = yes ; then
2972 cat >conftest.$ac_ext <<_ACEOF
2973 #line 2973 "configure"
2974 #include "confdefs.h"
2975 #include <sys/types.h>
2980 #ifdef _POSIX_SOURCE
2987 rm -f conftest.$ac_objext
2988 if { (eval echo "$as_me:2988: \"$ac_compile\"") >&5
2989 (eval $ac_compile) 2>&5
2991 echo "$as_me:2991: \$? = $ac_status" >&5
2992 (exit $ac_status); } &&
2993 { ac_try='test -s conftest.$ac_objext'
2994 { (eval echo "$as_me:2994: \"$ac_try\"") >&5
2997 echo "$as_me:2997: \$? = $ac_status" >&5
2998 (exit $ac_status); }; }; then
3001 echo "$as_me: failed program was:" >&5
3002 cat conftest.$ac_ext >&5
3003 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
3005 rm -f conftest.$ac_objext conftest.$ac_ext
3008 echo "${as_me:-configure}:3008: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
3010 CFLAGS="$cf_trim_CFLAGS"
3011 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
3013 echo "${as_me:-configure}:3013: testing if the second compile does not leave our definition intact error ..." 1>&5
3015 cat >conftest.$ac_ext <<_ACEOF
3016 #line 3016 "configure"
3017 #include "confdefs.h"
3018 #include <sys/types.h>
3023 #ifndef _POSIX_C_SOURCE
3030 rm -f conftest.$ac_objext
3031 if { (eval echo "$as_me:3031: \"$ac_compile\"") >&5
3032 (eval $ac_compile) 2>&5
3034 echo "$as_me:3034: \$? = $ac_status" >&5
3035 (exit $ac_status); } &&
3036 { ac_try='test -s conftest.$ac_objext'
3037 { (eval echo "$as_me:3037: \"$ac_try\"") >&5
3040 echo "$as_me:3040: \$? = $ac_status" >&5
3041 (exit $ac_status); }; }; then
3044 echo "$as_me: failed program was:" >&5
3045 cat conftest.$ac_ext >&5
3046 cf_cv_posix_c_source=no
3048 rm -f conftest.$ac_objext conftest.$ac_ext
3049 CFLAGS="$cf_save_CFLAGS"
3050 CPPFLAGS="$cf_save_CPPFLAGS"
3053 rm -f conftest.$ac_objext conftest.$ac_ext
3056 echo "$as_me:3056: result: $cf_cv_posix_c_source" >&5
3057 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
3059 if test "$cf_cv_posix_c_source" != no ; then
3060 CFLAGS="$cf_trim_CFLAGS"
3061 CPPFLAGS="$cf_trim_CPPFLAGS"
3066 cf_new_extra_cppflags=
3068 for cf_add_cflags in $cf_cv_posix_c_source
3070 case $cf_fix_cppflags in
3072 case $cf_add_cflags in #(vi
3073 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
3074 case $cf_add_cflags in
3076 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3078 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3079 && test -z "${cf_tst_cflags}" \
3080 && cf_fix_cppflags=yes
3082 if test $cf_fix_cppflags = yes ; then
3083 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3085 elif test "${cf_tst_cflags}" = "\"'" ; then
3086 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3092 *$cf_add_cflags) #(vi
3095 case $cf_add_cflags in #(vi
3097 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3099 CPPFLAGS=`echo "$CPPFLAGS" | \
3100 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3101 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3105 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3110 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3115 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3117 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3119 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3120 && test -z "${cf_tst_cflags}" \
3121 && cf_fix_cppflags=no
3126 if test -n "$cf_new_cflags" ; then
3128 CFLAGS="$CFLAGS $cf_new_cflags"
3131 if test -n "$cf_new_cppflags" ; then
3133 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3136 if test -n "$cf_new_extra_cppflags" ; then
3138 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3146 if test -n "$cf_xopen_source" ; then
3151 cf_new_extra_cppflags=
3153 for cf_add_cflags in $cf_xopen_source
3155 case $cf_fix_cppflags in
3157 case $cf_add_cflags in #(vi
3158 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
3159 case $cf_add_cflags in
3161 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3163 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3164 && test -z "${cf_tst_cflags}" \
3165 && cf_fix_cppflags=yes
3167 if test $cf_fix_cppflags = yes ; then
3168 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3170 elif test "${cf_tst_cflags}" = "\"'" ; then
3171 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3177 *$cf_add_cflags) #(vi
3180 case $cf_add_cflags in #(vi
3182 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3184 CPPFLAGS=`echo "$CPPFLAGS" | \
3185 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3186 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3190 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3195 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3200 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3202 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3204 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3205 && test -z "${cf_tst_cflags}" \
3206 && cf_fix_cppflags=no
3211 if test -n "$cf_new_cflags" ; then
3213 CFLAGS="$CFLAGS $cf_new_cflags"
3216 if test -n "$cf_new_cppflags" ; then
3218 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3221 if test -n "$cf_new_extra_cppflags" ; then
3223 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3228 if test -n "$cf_XOPEN_SOURCE" && test -z "$cf_cv_xopen_source" ; then
3229 echo "$as_me:3229: checking if _XOPEN_SOURCE really is set" >&5
3230 echo $ECHO_N "checking if _XOPEN_SOURCE really is set... $ECHO_C" >&6
3231 cat >conftest.$ac_ext <<_ACEOF
3232 #line 3232 "configure"
3233 #include "confdefs.h"
3239 #ifndef _XOPEN_SOURCE
3246 rm -f conftest.$ac_objext
3247 if { (eval echo "$as_me:3247: \"$ac_compile\"") >&5
3248 (eval $ac_compile) 2>&5
3250 echo "$as_me:3250: \$? = $ac_status" >&5
3251 (exit $ac_status); } &&
3252 { ac_try='test -s conftest.$ac_objext'
3253 { (eval echo "$as_me:3253: \"$ac_try\"") >&5
3256 echo "$as_me:3256: \$? = $ac_status" >&5
3257 (exit $ac_status); }; }; then
3258 cf_XOPEN_SOURCE_set=yes
3260 echo "$as_me: failed program was:" >&5
3261 cat conftest.$ac_ext >&5
3262 cf_XOPEN_SOURCE_set=no
3264 rm -f conftest.$ac_objext conftest.$ac_ext
3265 echo "$as_me:3265: result: $cf_XOPEN_SOURCE_set" >&5
3266 echo "${ECHO_T}$cf_XOPEN_SOURCE_set" >&6
3267 if test $cf_XOPEN_SOURCE_set = yes
3269 cat >conftest.$ac_ext <<_ACEOF
3270 #line 3270 "configure"
3271 #include "confdefs.h"
3277 #if (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE
3284 rm -f conftest.$ac_objext
3285 if { (eval echo "$as_me:3285: \"$ac_compile\"") >&5
3286 (eval $ac_compile) 2>&5
3288 echo "$as_me:3288: \$? = $ac_status" >&5
3289 (exit $ac_status); } &&
3290 { ac_try='test -s conftest.$ac_objext'
3291 { (eval echo "$as_me:3291: \"$ac_try\"") >&5
3294 echo "$as_me:3294: \$? = $ac_status" >&5
3295 (exit $ac_status); }; }; then
3296 cf_XOPEN_SOURCE_set_ok=yes
3298 echo "$as_me: failed program was:" >&5
3299 cat conftest.$ac_ext >&5
3300 cf_XOPEN_SOURCE_set_ok=no
3302 rm -f conftest.$ac_objext conftest.$ac_ext
3303 if test $cf_XOPEN_SOURCE_set_ok = no
3305 { echo "$as_me:3305: WARNING: _XOPEN_SOURCE is lower than requested" >&5
3306 echo "$as_me: WARNING: _XOPEN_SOURCE is lower than requested" >&2;}
3310 echo "$as_me:3310: checking if we should define _XOPEN_SOURCE" >&5
3311 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
3312 if test "${cf_cv_xopen_source+set}" = set; then
3313 echo $ECHO_N "(cached) $ECHO_C" >&6
3316 cat >conftest.$ac_ext <<_ACEOF
3317 #line 3317 "configure"
3318 #include "confdefs.h"
3322 #include <sys/types.h>
3328 #ifndef _XOPEN_SOURCE
3335 rm -f conftest.$ac_objext
3336 if { (eval echo "$as_me:3336: \"$ac_compile\"") >&5
3337 (eval $ac_compile) 2>&5
3339 echo "$as_me:3339: \$? = $ac_status" >&5
3340 (exit $ac_status); } &&
3341 { ac_try='test -s conftest.$ac_objext'
3342 { (eval echo "$as_me:3342: \"$ac_try\"") >&5
3345 echo "$as_me:3345: \$? = $ac_status" >&5
3346 (exit $ac_status); }; }; then
3347 cf_cv_xopen_source=no
3349 echo "$as_me: failed program was:" >&5
3350 cat conftest.$ac_ext >&5
3352 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
3353 cat >conftest.$ac_ext <<_ACEOF
3354 #line 3354 "configure"
3355 #include "confdefs.h"
3359 #include <sys/types.h>
3365 #ifdef _XOPEN_SOURCE
3372 rm -f conftest.$ac_objext
3373 if { (eval echo "$as_me:3373: \"$ac_compile\"") >&5
3374 (eval $ac_compile) 2>&5
3376 echo "$as_me:3376: \$? = $ac_status" >&5
3377 (exit $ac_status); } &&
3378 { ac_try='test -s conftest.$ac_objext'
3379 { (eval echo "$as_me:3379: \"$ac_try\"") >&5
3382 echo "$as_me:3382: \$? = $ac_status" >&5
3383 (exit $ac_status); }; }; then
3384 cf_cv_xopen_source=no
3386 echo "$as_me: failed program was:" >&5
3387 cat conftest.$ac_ext >&5
3388 cf_cv_xopen_source=$cf_XOPEN_SOURCE
3390 rm -f conftest.$ac_objext conftest.$ac_ext
3394 rm -f conftest.$ac_objext conftest.$ac_ext
3397 echo "$as_me:3397: result: $cf_cv_xopen_source" >&5
3398 echo "${ECHO_T}$cf_cv_xopen_source" >&6
3400 if test "$cf_cv_xopen_source" != no ; then
3402 CFLAGS=`echo "$CFLAGS" | \
3403 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3404 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
3406 CPPFLAGS=`echo "$CPPFLAGS" | \
3407 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3408 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
3410 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
3415 cf_new_extra_cppflags=
3417 for cf_add_cflags in $cf_temp_xopen_source
3419 case $cf_fix_cppflags in
3421 case $cf_add_cflags in #(vi
3422 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
3423 case $cf_add_cflags in
3425 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3427 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3428 && test -z "${cf_tst_cflags}" \
3429 && cf_fix_cppflags=yes
3431 if test $cf_fix_cppflags = yes ; then
3432 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3434 elif test "${cf_tst_cflags}" = "\"'" ; then
3435 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3441 *$cf_add_cflags) #(vi
3444 case $cf_add_cflags in #(vi
3446 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3448 CPPFLAGS=`echo "$CPPFLAGS" | \
3449 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3450 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3454 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3459 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3464 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3466 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3468 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3469 && test -z "${cf_tst_cflags}" \
3470 && cf_fix_cppflags=no
3475 if test -n "$cf_new_cflags" ; then
3477 CFLAGS="$CFLAGS $cf_new_cflags"
3480 if test -n "$cf_new_cppflags" ; then
3482 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3485 if test -n "$cf_new_extra_cppflags" ; then
3487 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3496 ac_cpp='$CPP $CPPFLAGS'
3497 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3498 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3499 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3500 ac_main_return=return
3501 echo "$as_me:3501: checking how to run the C preprocessor" >&5
3502 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3503 # On Suns, sometimes $CPP names a directory.
3504 if test -n "$CPP" && test -d "$CPP"; then
3507 if test -z "$CPP"; then
3508 if test "${ac_cv_prog_CPP+set}" = set; then
3509 echo $ECHO_N "(cached) $ECHO_C" >&6
3511 # Double quotes because CPP needs to be expanded
3512 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3515 for ac_c_preproc_warn_flag in '' yes
3517 # Use a header file that comes with gcc, so configuring glibc
3518 # with a fresh cross-compiler works.
3519 # On the NeXT, cc -E runs the code through the compiler's parser,
3520 # not just through cpp. "Syntax error" is here to catch this case.
3521 cat >conftest.$ac_ext <<_ACEOF
3522 #line 3522 "configure"
3523 #include "confdefs.h"
3527 if { (eval echo "$as_me:3527: \"$ac_cpp conftest.$ac_ext\"") >&5
3528 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3530 egrep -v '^ *\+' conftest.er1 >conftest.err
3532 cat conftest.err >&5
3533 echo "$as_me:3533: \$? = $ac_status" >&5
3534 (exit $ac_status); } >/dev/null; then
3535 if test -s conftest.err; then
3536 ac_cpp_err=$ac_c_preproc_warn_flag
3543 if test -z "$ac_cpp_err"; then
3546 echo "$as_me: failed program was:" >&5
3547 cat conftest.$ac_ext >&5
3548 # Broken: fails on valid input.
3551 rm -f conftest.err conftest.$ac_ext
3553 # OK, works on sane cases. Now check whether non-existent headers
3554 # can be detected and how.
3555 cat >conftest.$ac_ext <<_ACEOF
3556 #line 3556 "configure"
3557 #include "confdefs.h"
3558 #include <ac_nonexistent.h>
3560 if { (eval echo "$as_me:3560: \"$ac_cpp conftest.$ac_ext\"") >&5
3561 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3563 egrep -v '^ *\+' conftest.er1 >conftest.err
3565 cat conftest.err >&5
3566 echo "$as_me:3566: \$? = $ac_status" >&5
3567 (exit $ac_status); } >/dev/null; then
3568 if test -s conftest.err; then
3569 ac_cpp_err=$ac_c_preproc_warn_flag
3576 if test -z "$ac_cpp_err"; then
3577 # Broken: success on invalid input.
3580 echo "$as_me: failed program was:" >&5
3581 cat conftest.$ac_ext >&5
3582 # Passes both tests.
3586 rm -f conftest.err conftest.$ac_ext
3589 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3590 rm -f conftest.err conftest.$ac_ext
3591 if $ac_preproc_ok; then
3603 echo "$as_me:3603: result: $CPP" >&5
3604 echo "${ECHO_T}$CPP" >&6
3606 for ac_c_preproc_warn_flag in '' yes
3608 # Use a header file that comes with gcc, so configuring glibc
3609 # with a fresh cross-compiler works.
3610 # On the NeXT, cc -E runs the code through the compiler's parser,
3611 # not just through cpp. "Syntax error" is here to catch this case.
3612 cat >conftest.$ac_ext <<_ACEOF
3613 #line 3613 "configure"
3614 #include "confdefs.h"
3618 if { (eval echo "$as_me:3618: \"$ac_cpp conftest.$ac_ext\"") >&5
3619 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3621 egrep -v '^ *\+' conftest.er1 >conftest.err
3623 cat conftest.err >&5
3624 echo "$as_me:3624: \$? = $ac_status" >&5
3625 (exit $ac_status); } >/dev/null; then
3626 if test -s conftest.err; then
3627 ac_cpp_err=$ac_c_preproc_warn_flag
3634 if test -z "$ac_cpp_err"; then
3637 echo "$as_me: failed program was:" >&5
3638 cat conftest.$ac_ext >&5
3639 # Broken: fails on valid input.
3642 rm -f conftest.err conftest.$ac_ext
3644 # OK, works on sane cases. Now check whether non-existent headers
3645 # can be detected and how.
3646 cat >conftest.$ac_ext <<_ACEOF
3647 #line 3647 "configure"
3648 #include "confdefs.h"
3649 #include <ac_nonexistent.h>
3651 if { (eval echo "$as_me:3651: \"$ac_cpp conftest.$ac_ext\"") >&5
3652 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3654 egrep -v '^ *\+' conftest.er1 >conftest.err
3656 cat conftest.err >&5
3657 echo "$as_me:3657: \$? = $ac_status" >&5
3658 (exit $ac_status); } >/dev/null; then
3659 if test -s conftest.err; then
3660 ac_cpp_err=$ac_c_preproc_warn_flag
3667 if test -z "$ac_cpp_err"; then
3668 # Broken: success on invalid input.
3671 echo "$as_me: failed program was:" >&5
3672 cat conftest.$ac_ext >&5
3673 # Passes both tests.
3677 rm -f conftest.err conftest.$ac_ext
3680 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3681 rm -f conftest.err conftest.$ac_ext
3682 if $ac_preproc_ok; then
3685 { { echo "$as_me:3685: error: C preprocessor \"$CPP\" fails sanity check" >&5
3686 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3687 { (exit 1); exit 1; }; }
3691 ac_cpp='$CPP $CPPFLAGS'
3692 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3693 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3694 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3695 ac_main_return=return
3697 for ac_header in fcntl.h
3699 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3700 echo "$as_me:3700: checking for $ac_header" >&5
3701 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3702 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3703 echo $ECHO_N "(cached) $ECHO_C" >&6
3705 cat >conftest.$ac_ext <<_ACEOF
3706 #line 3706 "configure"
3707 #include "confdefs.h"
3708 #include <$ac_header>
3710 if { (eval echo "$as_me:3710: \"$ac_cpp conftest.$ac_ext\"") >&5
3711 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3713 egrep -v '^ *\+' conftest.er1 >conftest.err
3715 cat conftest.err >&5
3716 echo "$as_me:3716: \$? = $ac_status" >&5
3717 (exit $ac_status); } >/dev/null; then
3718 if test -s conftest.err; then
3719 ac_cpp_err=$ac_c_preproc_warn_flag
3726 if test -z "$ac_cpp_err"; then
3727 eval "$as_ac_Header=yes"
3729 echo "$as_me: failed program was:" >&5
3730 cat conftest.$ac_ext >&5
3731 eval "$as_ac_Header=no"
3733 rm -f conftest.err conftest.$ac_ext
3735 echo "$as_me:3735: result: `eval echo '${'$as_ac_Header'}'`" >&5
3736 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3737 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3738 cat >>confdefs.h <<EOF
3739 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3745 echo "$as_me:3745: checking for working mkstemp" >&5
3746 echo $ECHO_N "checking for working mkstemp... $ECHO_C" >&6
3747 if test "${cf_cv_func_mkstemp+set}" = set; then
3748 echo $ECHO_N "(cached) $ECHO_C" >&6
3752 if test "$cross_compiling" = yes; then
3753 cf_cv_func_mkstemp=maybe
3755 cat >conftest.$ac_ext <<_ACEOF
3756 #line 3756 "configure"
3757 #include "confdefs.h"
3759 #include <sys/types.h>
3763 #include <sys/stat.h>
3766 char *tmpl = "conftestXXXXXX";
3774 for (n = 0; n < 2; ++n) {
3775 strcpy(name[n], tmpl);
3776 if ((fd = mkstemp(name[n])) >= 0) {
3777 if (!strcmp(name[n], tmpl)
3778 || stat(name[n], &sb) != 0
3779 || (sb.st_mode & S_IFMT) != S_IFREG
3780 || (sb.st_mode & 077) != 0) {
3787 && !strcmp(name[0], name[1]))
3789 ${cf_cv_main_return:-return}(result);
3793 rm -f conftest$ac_exeext
3794 if { (eval echo "$as_me:3794: \"$ac_link\"") >&5
3795 (eval $ac_link) 2>&5
3797 echo "$as_me:3797: \$? = $ac_status" >&5
3798 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3799 { (eval echo "$as_me:3799: \"$ac_try\"") >&5
3802 echo "$as_me:3802: \$? = $ac_status" >&5
3803 (exit $ac_status); }; }; then
3804 cf_cv_func_mkstemp=yes
3807 echo "$as_me: program exited with status $ac_status" >&5
3808 echo "$as_me: failed program was:" >&5
3809 cat conftest.$ac_ext >&5
3810 cf_cv_func_mkstemp=no
3813 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3817 echo "$as_me:3817: result: $cf_cv_func_mkstemp" >&5
3818 echo "${ECHO_T}$cf_cv_func_mkstemp" >&6
3819 if test "x$cf_cv_func_mkstemp" = xmaybe ; then
3820 echo "$as_me:3820: checking for mkstemp" >&5
3821 echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
3822 if test "${ac_cv_func_mkstemp+set}" = set; then
3823 echo $ECHO_N "(cached) $ECHO_C" >&6
3825 cat >conftest.$ac_ext <<_ACEOF
3826 #line 3826 "configure"
3827 #include "confdefs.h"
3828 /* System header to define __stub macros and hopefully few prototypes,
3829 which can conflict with char mkstemp (); below. */
3831 /* Override any gcc2 internal prototype to avoid an error. */
3835 /* We use char because int might match the return type of a gcc2
3836 builtin and then its argument prototype would still apply. */
3843 /* The GNU C library defines this for functions which it implements
3844 to always fail with ENOSYS. Some functions are actually named
3845 something starting with __ and the normal name is an alias. */
3846 #if defined (__stub_mkstemp) || defined (__stub___mkstemp)
3849 f = mkstemp; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
3856 rm -f conftest.$ac_objext conftest$ac_exeext
3857 if { (eval echo "$as_me:3857: \"$ac_link\"") >&5
3858 (eval $ac_link) 2>&5
3860 echo "$as_me:3860: \$? = $ac_status" >&5
3861 (exit $ac_status); } &&
3862 { ac_try='test -s conftest$ac_exeext'
3863 { (eval echo "$as_me:3863: \"$ac_try\"") >&5
3866 echo "$as_me:3866: \$? = $ac_status" >&5
3867 (exit $ac_status); }; }; then
3868 ac_cv_func_mkstemp=yes
3870 echo "$as_me: failed program was:" >&5
3871 cat conftest.$ac_ext >&5
3872 ac_cv_func_mkstemp=no
3874 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3876 echo "$as_me:3876: result: $ac_cv_func_mkstemp" >&5
3877 echo "${ECHO_T}$ac_cv_func_mkstemp" >&6
3880 if test "x$cf_cv_func_mkstemp" = xyes || test "x$ac_cv_func_mkstemp" = xyes ; then
3882 cat >>confdefs.h <<\EOF
3883 #define HAVE_MKSTEMP 1
3888 if ( test "$GCC" = yes || test "$GXX" = yes )
3890 echo "$as_me:3890: checking if you want to check for gcc warnings" >&5
3891 echo $ECHO_N "checking if you want to check for gcc warnings... $ECHO_C" >&6
3893 # Check whether --with-warnings or --without-warnings was given.
3894 if test "${with_warnings+set}" = set; then
3895 withval="$with_warnings"
3896 cf_opt_with_warnings=$withval
3898 cf_opt_with_warnings=no
3900 echo "$as_me:3900: result: $cf_opt_with_warnings" >&5
3901 echo "${ECHO_T}$cf_opt_with_warnings" >&6
3902 if test "$cf_opt_with_warnings" != no ; then
3904 if test "$GCC" = yes
3906 cat > conftest.i <<EOF
3908 #define GCC_PRINTF 0
3913 #ifndef GCC_NORETURN
3914 #define GCC_NORETURN /* nothing */
3917 #define GCC_UNUSED /* nothing */
3920 if test "$GCC" = yes
3922 { echo "$as_me:3922: checking for $CC __attribute__ directives..." >&5
3923 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
3924 cat > conftest.$ac_ext <<EOF
3925 #line 3925 "${as_me:-configure}"
3926 #include "confdefs.h"
3927 #include "conftest.h"
3928 #include "conftest.i"
3930 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
3932 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
3935 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
3937 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
3939 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
3940 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
3941 extern void foo(void) GCC_NORETURN;
3942 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
3944 cf_printf_attribute=no
3945 cf_scanf_attribute=no
3946 for cf_attribute in scanf printf unused noreturn
3949 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
3951 cf_directive="__attribute__(($cf_attribute))"
3952 echo "checking for $CC $cf_directive" 1>&5
3954 case $cf_attribute in #(vi
3956 cf_printf_attribute=yes
3957 cat >conftest.h <<EOF
3958 #define GCC_$cf_ATTRIBUTE 1
3962 cf_scanf_attribute=yes
3963 cat >conftest.h <<EOF
3964 #define GCC_$cf_ATTRIBUTE 1
3968 cat >conftest.h <<EOF
3969 #define GCC_$cf_ATTRIBUTE $cf_directive
3974 if { (eval echo "$as_me:3974: \"$ac_compile\"") >&5
3975 (eval $ac_compile) 2>&5
3977 echo "$as_me:3977: \$? = $ac_status" >&5
3978 (exit $ac_status); }; then
3979 test -n "$verbose" && echo "$as_me:3979: result: ... $cf_attribute" >&5
3980 echo "${ECHO_T}... $cf_attribute" >&6
3981 cat conftest.h >>confdefs.h
3982 case $cf_attribute in #(vi
3985 cat >>confdefs.h <<EOF
3986 #define GCC_NORETURN $cf_directive
3991 cf_value='/* nothing */'
3992 if test "$cf_printf_attribute" != no ; then
3993 cf_value='__attribute__((format(printf,fmt,var)))'
3995 cat >>confdefs.h <<\EOF
3996 #define GCC_PRINTF 1
4001 cat >>confdefs.h <<EOF
4002 #define GCC_PRINTFLIKE(fmt,var) $cf_value
4007 cf_value='/* nothing */'
4008 if test "$cf_scanf_attribute" != no ; then
4009 cf_value='__attribute__((format(scanf,fmt,var)))'
4011 cat >>confdefs.h <<\EOF
4017 cat >>confdefs.h <<EOF
4018 #define GCC_SCANFLIKE(fmt,var) $cf_value
4024 cat >>confdefs.h <<EOF
4025 #define GCC_UNUSED $cf_directive
4033 fgrep define conftest.i >>confdefs.h
4040 if test "$GCC" = yes ; then
4043 echo "$as_me:4043: checking if this is really Intel C compiler" >&5
4044 echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
4045 cf_save_CFLAGS="$CFLAGS"
4046 CFLAGS="$CFLAGS -no-gcc"
4047 cat >conftest.$ac_ext <<_ACEOF
4048 #line 4048 "configure"
4049 #include "confdefs.h"
4055 #ifdef __INTEL_COMPILER
4064 rm -f conftest.$ac_objext
4065 if { (eval echo "$as_me:4065: \"$ac_compile\"") >&5
4066 (eval $ac_compile) 2>&5
4068 echo "$as_me:4068: \$? = $ac_status" >&5
4069 (exit $ac_status); } &&
4070 { ac_try='test -s conftest.$ac_objext'
4071 { (eval echo "$as_me:4071: \"$ac_try\"") >&5
4074 echo "$as_me:4074: \$? = $ac_status" >&5
4075 (exit $ac_status); }; }; then
4077 cf_save_CFLAGS="$cf_save_CFLAGS -we147 -no-gcc"
4080 echo "$as_me: failed program was:" >&5
4081 cat conftest.$ac_ext >&5
4083 rm -f conftest.$ac_objext conftest.$ac_ext
4084 CFLAGS="$cf_save_CFLAGS"
4085 echo "$as_me:4085: result: $INTEL_COMPILER" >&5
4086 echo "${ECHO_T}$INTEL_COMPILER" >&6
4093 if test "$GCC" = yes ; then
4094 echo "$as_me:4094: checking if this is really Clang C compiler" >&5
4095 echo $ECHO_N "checking if this is really Clang C compiler... $ECHO_C" >&6
4096 cf_save_CFLAGS="$CFLAGS"
4097 CFLAGS="$CFLAGS -Qunused-arguments"
4098 cat >conftest.$ac_ext <<_ACEOF
4099 #line 4099 "configure"
4100 #include "confdefs.h"
4115 rm -f conftest.$ac_objext
4116 if { (eval echo "$as_me:4116: \"$ac_compile\"") >&5
4117 (eval $ac_compile) 2>&5
4119 echo "$as_me:4119: \$? = $ac_status" >&5
4120 (exit $ac_status); } &&
4121 { ac_try='test -s conftest.$ac_objext'
4122 { (eval echo "$as_me:4122: \"$ac_try\"") >&5
4125 echo "$as_me:4125: \$? = $ac_status" >&5
4126 (exit $ac_status); }; }; then
4128 cf_save_CFLAGS="$cf_save_CFLAGS -Qunused-arguments"
4131 echo "$as_me: failed program was:" >&5
4132 cat conftest.$ac_ext >&5
4134 rm -f conftest.$ac_objext conftest.$ac_ext
4135 CFLAGS="$cf_save_CFLAGS"
4136 echo "$as_me:4136: result: $CLANG_COMPILER" >&5
4137 echo "${ECHO_T}$CLANG_COMPILER" >&6
4140 cat > conftest.$ac_ext <<EOF
4141 #line 4141 "${as_me:-configure}"
4142 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
4145 if test "$INTEL_COMPILER" = yes
4147 # The "-wdXXX" options suppress warnings:
4148 # remark #1419: external declaration in primary source file
4149 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
4150 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
4151 # remark #193: zero used for undefined preprocessing identifier
4152 # remark #593: variable "curs_sb_left_arrow" was set but never used
4153 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
4154 # remark #869: parameter "tw" was never referenced
4155 # remark #981: operands are evaluated in unspecified order
4156 # warning #279: controlling expression is constant
4158 { echo "$as_me:4158: checking for $CC warning options..." >&5
4159 echo "$as_me: checking for $CC warning options..." >&6;}
4160 cf_save_CFLAGS="$CFLAGS"
4161 EXTRA_CFLAGS="-Wall"
4173 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
4174 if { (eval echo "$as_me:4174: \"$ac_compile\"") >&5
4175 (eval $ac_compile) 2>&5
4177 echo "$as_me:4177: \$? = $ac_status" >&5
4178 (exit $ac_status); }; then
4179 test -n "$verbose" && echo "$as_me:4179: result: ... -$cf_opt" >&5
4180 echo "${ECHO_T}... -$cf_opt" >&6
4181 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
4184 CFLAGS="$cf_save_CFLAGS"
4186 elif test "$GCC" = yes
4188 { echo "$as_me:4188: checking for $CC warning options..." >&5
4189 echo "$as_me: checking for $CC warning options..." >&6;}
4190 cf_save_CFLAGS="$CFLAGS"
4193 test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
4194 for cf_opt in W Wall \
4195 Wbad-function-cast \
4199 Wmissing-declarations \
4200 Wmissing-prototypes \
4204 Wstrict-prototypes \
4205 Wundef $cf_warn_CONST Wwrite-strings
4207 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
4208 if { (eval echo "$as_me:4208: \"$ac_compile\"") >&5
4209 (eval $ac_compile) 2>&5
4211 echo "$as_me:4211: \$? = $ac_status" >&5
4212 (exit $ac_status); }; then
4213 test -n "$verbose" && echo "$as_me:4213: result: ... -$cf_opt" >&5
4214 echo "${ECHO_T}... -$cf_opt" >&6
4215 case $cf_opt in #(vi
4217 CPPFLAGS="$CPPFLAGS -DXTSTRINGDEFINES"
4220 case $GCC_VERSION in
4222 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
4224 echo "${as_me:-configure}:4224: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
4229 Wpointer-arith) #(vi
4230 case $GCC_VERSION in
4232 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
4234 echo "${as_me:-configure}:4234: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
4240 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
4243 CFLAGS="$cf_save_CFLAGS"
4250 echo "$as_me:4250: checking if you want to see long compiling messages" >&5
4251 echo $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6
4253 # Check whether --enable-echo or --disable-echo was given.
4254 if test "${enable_echo+set}" = set; then
4255 enableval="$enable_echo"
4256 test "$enableval" != no && enableval=yes
4257 if test "$enableval" != "yes" ; then
4260 ECHO_LD='@echo linking $@;'
4261 RULE_CC='@echo compiling $<'
4262 SHOW_CC='@echo compiling $@'
4284 echo "$as_me:4284: result: $enableval" >&5
4285 echo "${ECHO_T}$enableval" >&6
4287 echo "$as_me:4287: checking if you want to use dmalloc for testing" >&5
4288 echo $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6
4290 # Check whether --with-dmalloc or --without-dmalloc was given.
4291 if test "${with_dmalloc+set}" = set; then
4292 withval="$with_dmalloc"
4294 cat >>confdefs.h <<EOF
4295 #define USE_DMALLOC 1
4298 : ${with_cflags:=-g}
4299 : ${with_no_leaks:=yes}
4304 echo "$as_me:4304: result: ${with_dmalloc:-no}" >&5
4305 echo "${ECHO_T}${with_dmalloc:-no}" >&6
4307 case .$with_cflags in #(vi
4309 case .$CFLAGS in #(vi
4317 cf_new_extra_cppflags=
4319 for cf_add_cflags in -g
4321 case $cf_fix_cppflags in
4323 case $cf_add_cflags in #(vi
4324 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
4325 case $cf_add_cflags in
4327 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
4329 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
4330 && test -z "${cf_tst_cflags}" \
4331 && cf_fix_cppflags=yes
4333 if test $cf_fix_cppflags = yes ; then
4334 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4336 elif test "${cf_tst_cflags}" = "\"'" ; then
4337 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4343 *$cf_add_cflags) #(vi
4346 case $cf_add_cflags in #(vi
4348 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
4350 CPPFLAGS=`echo "$CPPFLAGS" | \
4351 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
4352 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
4356 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
4361 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
4366 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4368 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
4370 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
4371 && test -z "${cf_tst_cflags}" \
4372 && cf_fix_cppflags=no
4377 if test -n "$cf_new_cflags" ; then
4379 CFLAGS="$CFLAGS $cf_new_cflags"
4382 if test -n "$cf_new_cppflags" ; then
4384 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
4387 if test -n "$cf_new_extra_cppflags" ; then
4389 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
4397 if test "$with_dmalloc" = yes ; then
4398 echo "$as_me:4398: checking for dmalloc.h" >&5
4399 echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6
4400 if test "${ac_cv_header_dmalloc_h+set}" = set; then
4401 echo $ECHO_N "(cached) $ECHO_C" >&6
4403 cat >conftest.$ac_ext <<_ACEOF
4404 #line 4404 "configure"
4405 #include "confdefs.h"
4406 #include <dmalloc.h>
4408 if { (eval echo "$as_me:4408: \"$ac_cpp conftest.$ac_ext\"") >&5
4409 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4411 egrep -v '^ *\+' conftest.er1 >conftest.err
4413 cat conftest.err >&5
4414 echo "$as_me:4414: \$? = $ac_status" >&5
4415 (exit $ac_status); } >/dev/null; then
4416 if test -s conftest.err; then
4417 ac_cpp_err=$ac_c_preproc_warn_flag
4424 if test -z "$ac_cpp_err"; then
4425 ac_cv_header_dmalloc_h=yes
4427 echo "$as_me: failed program was:" >&5
4428 cat conftest.$ac_ext >&5
4429 ac_cv_header_dmalloc_h=no
4431 rm -f conftest.err conftest.$ac_ext
4433 echo "$as_me:4433: result: $ac_cv_header_dmalloc_h" >&5
4434 echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6
4435 if test $ac_cv_header_dmalloc_h = yes; then
4437 echo "$as_me:4437: checking for dmalloc_debug in -ldmalloc" >&5
4438 echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6
4439 if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then
4440 echo $ECHO_N "(cached) $ECHO_C" >&6
4442 ac_check_lib_save_LIBS=$LIBS
4443 LIBS="-ldmalloc $LIBS"
4444 cat >conftest.$ac_ext <<_ACEOF
4445 #line 4445 "configure"
4446 #include "confdefs.h"
4448 /* Override any gcc2 internal prototype to avoid an error. */
4452 /* We use char because int might match the return type of a gcc2
4453 builtin and then its argument prototype would still apply. */
4454 char dmalloc_debug ();
4463 rm -f conftest.$ac_objext conftest$ac_exeext
4464 if { (eval echo "$as_me:4464: \"$ac_link\"") >&5
4465 (eval $ac_link) 2>&5
4467 echo "$as_me:4467: \$? = $ac_status" >&5
4468 (exit $ac_status); } &&
4469 { ac_try='test -s conftest$ac_exeext'
4470 { (eval echo "$as_me:4470: \"$ac_try\"") >&5
4473 echo "$as_me:4473: \$? = $ac_status" >&5
4474 (exit $ac_status); }; }; then
4475 ac_cv_lib_dmalloc_dmalloc_debug=yes
4477 echo "$as_me: failed program was:" >&5
4478 cat conftest.$ac_ext >&5
4479 ac_cv_lib_dmalloc_dmalloc_debug=no
4481 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4482 LIBS=$ac_check_lib_save_LIBS
4484 echo "$as_me:4484: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5
4485 echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6
4486 if test $ac_cv_lib_dmalloc_dmalloc_debug = yes; then
4487 cat >>confdefs.h <<EOF
4488 #define HAVE_LIBDMALLOC 1
4491 LIBS="-ldmalloc $LIBS"
4499 echo "$as_me:4499: checking if you want to use dbmalloc for testing" >&5
4500 echo $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6
4502 # Check whether --with-dbmalloc or --without-dbmalloc was given.
4503 if test "${with_dbmalloc+set}" = set; then
4504 withval="$with_dbmalloc"
4506 cat >>confdefs.h <<EOF
4507 #define USE_DBMALLOC 1
4510 : ${with_cflags:=-g}
4511 : ${with_no_leaks:=yes}
4516 echo "$as_me:4516: result: ${with_dbmalloc:-no}" >&5
4517 echo "${ECHO_T}${with_dbmalloc:-no}" >&6
4519 case .$with_cflags in #(vi
4521 case .$CFLAGS in #(vi
4529 cf_new_extra_cppflags=
4531 for cf_add_cflags in -g
4533 case $cf_fix_cppflags in
4535 case $cf_add_cflags in #(vi
4536 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
4537 case $cf_add_cflags in
4539 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
4541 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
4542 && test -z "${cf_tst_cflags}" \
4543 && cf_fix_cppflags=yes
4545 if test $cf_fix_cppflags = yes ; then
4546 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4548 elif test "${cf_tst_cflags}" = "\"'" ; then
4549 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4555 *$cf_add_cflags) #(vi
4558 case $cf_add_cflags in #(vi
4560 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
4562 CPPFLAGS=`echo "$CPPFLAGS" | \
4563 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
4564 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
4568 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
4573 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
4578 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4580 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
4582 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
4583 && test -z "${cf_tst_cflags}" \
4584 && cf_fix_cppflags=no
4589 if test -n "$cf_new_cflags" ; then
4591 CFLAGS="$CFLAGS $cf_new_cflags"
4594 if test -n "$cf_new_cppflags" ; then
4596 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
4599 if test -n "$cf_new_extra_cppflags" ; then
4601 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
4609 if test "$with_dbmalloc" = yes ; then
4610 echo "$as_me:4610: checking for dbmalloc.h" >&5
4611 echo $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6
4612 if test "${ac_cv_header_dbmalloc_h+set}" = set; then
4613 echo $ECHO_N "(cached) $ECHO_C" >&6
4615 cat >conftest.$ac_ext <<_ACEOF
4616 #line 4616 "configure"
4617 #include "confdefs.h"
4618 #include <dbmalloc.h>
4620 if { (eval echo "$as_me:4620: \"$ac_cpp conftest.$ac_ext\"") >&5
4621 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4623 egrep -v '^ *\+' conftest.er1 >conftest.err
4625 cat conftest.err >&5
4626 echo "$as_me:4626: \$? = $ac_status" >&5
4627 (exit $ac_status); } >/dev/null; then
4628 if test -s conftest.err; then
4629 ac_cpp_err=$ac_c_preproc_warn_flag
4636 if test -z "$ac_cpp_err"; then
4637 ac_cv_header_dbmalloc_h=yes
4639 echo "$as_me: failed program was:" >&5
4640 cat conftest.$ac_ext >&5
4641 ac_cv_header_dbmalloc_h=no
4643 rm -f conftest.err conftest.$ac_ext
4645 echo "$as_me:4645: result: $ac_cv_header_dbmalloc_h" >&5
4646 echo "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6
4647 if test $ac_cv_header_dbmalloc_h = yes; then
4649 echo "$as_me:4649: checking for debug_malloc in -ldbmalloc" >&5
4650 echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6
4651 if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then
4652 echo $ECHO_N "(cached) $ECHO_C" >&6
4654 ac_check_lib_save_LIBS=$LIBS
4655 LIBS="-ldbmalloc $LIBS"
4656 cat >conftest.$ac_ext <<_ACEOF
4657 #line 4657 "configure"
4658 #include "confdefs.h"
4660 /* Override any gcc2 internal prototype to avoid an error. */
4664 /* We use char because int might match the return type of a gcc2
4665 builtin and then its argument prototype would still apply. */
4666 char debug_malloc ();
4675 rm -f conftest.$ac_objext conftest$ac_exeext
4676 if { (eval echo "$as_me:4676: \"$ac_link\"") >&5
4677 (eval $ac_link) 2>&5
4679 echo "$as_me:4679: \$? = $ac_status" >&5
4680 (exit $ac_status); } &&
4681 { ac_try='test -s conftest$ac_exeext'
4682 { (eval echo "$as_me:4682: \"$ac_try\"") >&5
4685 echo "$as_me:4685: \$? = $ac_status" >&5
4686 (exit $ac_status); }; }; then
4687 ac_cv_lib_dbmalloc_debug_malloc=yes
4689 echo "$as_me: failed program was:" >&5
4690 cat conftest.$ac_ext >&5
4691 ac_cv_lib_dbmalloc_debug_malloc=no
4693 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4694 LIBS=$ac_check_lib_save_LIBS
4696 echo "$as_me:4696: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5
4697 echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6
4698 if test $ac_cv_lib_dbmalloc_debug_malloc = yes; then
4699 cat >>confdefs.h <<EOF
4700 #define HAVE_LIBDBMALLOC 1
4703 LIBS="-ldbmalloc $LIBS"
4711 echo "$as_me:4711: checking if you want to use valgrind for testing" >&5
4712 echo $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6
4714 # Check whether --with-valgrind or --without-valgrind was given.
4715 if test "${with_valgrind+set}" = set; then
4716 withval="$with_valgrind"
4718 cat >>confdefs.h <<EOF
4719 #define USE_VALGRIND 1
4722 : ${with_cflags:=-g}
4723 : ${with_no_leaks:=yes}
4728 echo "$as_me:4728: result: ${with_valgrind:-no}" >&5
4729 echo "${ECHO_T}${with_valgrind:-no}" >&6
4731 case .$with_cflags in #(vi
4733 case .$CFLAGS in #(vi
4741 cf_new_extra_cppflags=
4743 for cf_add_cflags in -g
4745 case $cf_fix_cppflags in
4747 case $cf_add_cflags in #(vi
4748 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
4749 case $cf_add_cflags in
4751 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
4753 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
4754 && test -z "${cf_tst_cflags}" \
4755 && cf_fix_cppflags=yes
4757 if test $cf_fix_cppflags = yes ; then
4758 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4760 elif test "${cf_tst_cflags}" = "\"'" ; then
4761 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4767 *$cf_add_cflags) #(vi
4770 case $cf_add_cflags in #(vi
4772 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
4774 CPPFLAGS=`echo "$CPPFLAGS" | \
4775 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
4776 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
4780 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
4785 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
4790 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4792 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
4794 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
4795 && test -z "${cf_tst_cflags}" \
4796 && cf_fix_cppflags=no
4801 if test -n "$cf_new_cflags" ; then
4803 CFLAGS="$CFLAGS $cf_new_cflags"
4806 if test -n "$cf_new_cppflags" ; then
4808 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
4811 if test -n "$cf_new_extra_cppflags" ; then
4813 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
4821 echo "$as_me:4821: checking if you want to perform memory-leak testing" >&5
4822 echo $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6
4824 # Check whether --enable-leaks or --disable-leaks was given.
4825 if test "${enable_leaks+set}" = set; then
4826 enableval="$enable_leaks"
4827 if test "x$enableval" = xno; then with_no_leaks=yes; else with_no_leaks=no; fi
4829 : ${with_no_leaks:=no}
4831 echo "$as_me:4831: result: $with_no_leaks" >&5
4832 echo "${ECHO_T}$with_no_leaks" >&6
4834 if test "$with_no_leaks" = yes ; then
4836 cat >>confdefs.h <<\EOF
4840 cat >>confdefs.h <<\EOF
4841 #define YY_NO_LEAKS 1
4847 ac_config_files="$ac_config_files makefile"
4848 cat >confcache <<\_ACEOF
4849 # This file is a shell script that caches the results of configure
4850 # tests run on this system so they can be shared between configure
4851 # scripts and configure runs, see configure's option --config-cache.
4852 # It is not useful on other systems. If it contains results you don't
4853 # want to keep, you may remove or edit it.
4855 # config.status only pays attention to the cache file if you give it
4856 # the --recheck option to rerun configure.
4858 # `ac_cv_env_foo' variables (set or unset) will be overriden when
4859 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4864 # The following way of writing the cache mishandles newlines in values,
4865 # but we know of no workaround that is simple, portable, and efficient.
4866 # So, don't put newlines in cache variables' values.
4867 # Ultrix sh set writes to stderr and can't be redirected directly,
4868 # and sets the high bit in the cache file unless we assign to the vars.
4871 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4873 # `set' does not quote correctly, so add quotes (double-quote
4874 # substitution turns \\\\ into \\, and sed turns \\ into \).
4877 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4880 # `set' quotes correctly as required by POSIX, so do not add quotes.
4882 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4889 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4891 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4893 if cmp -s $cache_file confcache; then :; else
4894 if test -w $cache_file; then
4895 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4896 cat confcache >$cache_file
4898 echo "not updating unwritable cache $cache_file"
4903 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4904 # Let make expand exec_prefix.
4905 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4907 # VPATH may cause trouble with some makes, so we remove $(srcdir),
4908 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4909 # trailing colons and then remove the whole line if VPATH becomes empty
4910 # (actually we leave an empty line to preserve line numbers).
4911 if test "x$srcdir" = x.; then
4912 ac_vpsub='/^[ ]*VPATH[ ]*=/{
4913 s/:*\$(srcdir):*/:/;
4914 s/:*\${srcdir}:*/:/;
4916 s/^\([^=]*=[ ]*\):*/\1/;
4922 DEFS=-DHAVE_CONFIG_H
4924 : ${CONFIG_STATUS=./config.status}
4925 ac_clean_files_save=$ac_clean_files
4926 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4927 { echo "$as_me:4927: creating $CONFIG_STATUS" >&5
4928 echo "$as_me: creating $CONFIG_STATUS" >&6;}
4929 cat >$CONFIG_STATUS <<_ACEOF
4931 # Generated automatically by configure.
4932 # Run this file to recreate the current configuration.
4933 # Compiler output produced by configure, useful for debugging
4934 # configure, is in config.log if it exists.
4937 SHELL=\${CONFIG_SHELL-$SHELL}
4938 ac_cs_invocation="\$0 \$@"
4942 cat >>$CONFIG_STATUS <<\_ACEOF
4943 # Be Bourne compatible
4944 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4947 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
4951 # Name of the executable.
4952 as_me=`echo "$0" |sed 's,.*[\\/],,'`
4954 if expr a : '\(a\)' >/dev/null 2>&1; then
4960 rm -f conf$$ conf$$.exe conf$$.file
4962 if ln -s conf$$.file conf$$ 2>/dev/null; then
4963 # We could just check for DJGPP; but this test a) works b) is more generic
4964 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4965 if test -f conf$$.exe; then
4966 # Don't use ln at all; we don't have any links
4971 elif ln conf$$.file conf$$ 2>/dev/null; then
4976 rm -f conf$$ conf$$.exe conf$$.file
4978 as_executable_p="test -f"
4980 # Support unset when possible.
4981 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
4988 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
4989 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
4990 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
4991 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
4992 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
4993 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
4994 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
4995 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
4998 # We need space, tab and new line, in precisely that order.
5004 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
5010 # Files that config.status was made for.
5011 if test -n "$ac_config_files"; then
5012 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5015 if test -n "$ac_config_headers"; then
5016 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5019 if test -n "$ac_config_links"; then
5020 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5023 if test -n "$ac_config_commands"; then
5024 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5027 cat >>$CONFIG_STATUS <<\EOF
5030 \`$as_me' instantiates files from templates according to the
5031 current configuration.
5033 Usage: $0 [OPTIONS] [FILE]...
5035 -h, --help print this help, then exit
5036 -V, --version print version number, then exit
5037 -d, --debug don't remove temporary files
5038 --recheck update $as_me by reconfiguring in the same conditions
5039 --file=FILE[:TEMPLATE]
5040 instantiate the configuration file FILE
5041 --header=FILE[:TEMPLATE]
5042 instantiate the configuration header FILE
5044 Configuration files:
5047 Configuration headers:
5050 Report bugs to <dickey@invisible-island.net>."
5053 cat >>$CONFIG_STATUS <<EOF
5056 configured by $0, generated by GNU Autoconf 2.52.20121002,
5057 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5059 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
5060 Free Software Foundation, Inc.
5061 This config.status script is free software; the Free Software Foundation
5062 gives unlimited permission to copy, distribute and modify it."
5067 cat >>$CONFIG_STATUS <<\EOF
5068 # If no file are specified by the user, then we need to provide default
5069 # value. By we need to know if files were specified by the user.
5075 ac_option=`expr "x$1" : 'x\([^=]*\)='`
5076 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5078 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
5082 *) # This is not an option, so the user has probably given explicit
5084 ac_need_defaults=false;;
5088 # Handling of the options.
5090 cat >>$CONFIG_STATUS <<EOF
5091 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5092 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
5093 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
5095 cat >>$CONFIG_STATUS <<\EOF
5096 --version | --vers* | -V )
5097 echo "$ac_cs_version"; exit 0 ;;
5099 # Conflict between --help and --header
5100 { { echo "$as_me:5100: error: ambiguous option: $1
5101 Try \`$0 --help' for more information." >&5
5102 echo "$as_me: error: ambiguous option: $1
5103 Try \`$0 --help' for more information." >&2;}
5104 { (exit 1); exit 1; }; };;
5105 --help | --hel | -h )
5106 echo "$ac_cs_usage"; exit 0 ;;
5107 --debug | --d* | -d )
5109 --file | --fil | --fi | --f )
5111 CONFIG_FILES="$CONFIG_FILES $1"
5112 ac_need_defaults=false;;
5113 --header | --heade | --head | --hea )
5115 CONFIG_HEADERS="$CONFIG_HEADERS $1"
5116 ac_need_defaults=false;;
5119 -*) { { echo "$as_me:5119: error: unrecognized option: $1
5120 Try \`$0 --help' for more information." >&5
5121 echo "$as_me: error: unrecognized option: $1
5122 Try \`$0 --help' for more information." >&2;}
5123 { (exit 1); exit 1; }; } ;;
5125 *) ac_config_targets="$ac_config_targets $1" ;;
5134 ## ----------------------- ##
5135 ## Running config.status. ##
5136 ## ----------------------- ##
5138 This file was extended by $as_me 2.52.20121002, executed with
5139 CONFIG_FILES = $CONFIG_FILES
5140 CONFIG_HEADERS = $CONFIG_HEADERS
5141 CONFIG_LINKS = $CONFIG_LINKS
5142 CONFIG_COMMANDS = $CONFIG_COMMANDS
5144 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5149 cat >>$CONFIG_STATUS <<\EOF
5150 for ac_config_target in $ac_config_targets
5152 case "$ac_config_target" in
5153 # Handling of arguments.
5154 "makefile" ) CONFIG_FILES="$CONFIG_FILES makefile" ;;
5155 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config_h.in" ;;
5156 *) { { echo "$as_me:5156: error: invalid argument: $ac_config_target" >&5
5157 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5158 { (exit 1); exit 1; }; };;
5162 # If the user did not use the arguments to specify the items to instantiate,
5163 # then the envvar interface is used. Set only those that are not.
5164 # We use the long form for the default assignment because of an extremely
5165 # bizarre bug on SunOS 4.1.3.
5166 if $ac_need_defaults; then
5167 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5168 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5171 # Create a temporary directory, and hook for its removal unless debugging.
5174 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5175 trap '{ (exit 1); exit 1; }' 1 2 13 15
5178 # Create a (secure) tmp directory for tmp files.
5181 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
5182 test -n "$tmp" && test -d "$tmp"
5185 tmp=$TMPDIR/cs$$-$RANDOM
5186 (umask 077 && mkdir $tmp)
5189 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
5190 { (exit 1); exit 1; }
5195 cat >>$CONFIG_STATUS <<EOF
5198 # CONFIG_FILES section.
5201 # No need to generate the scripts if there are no CONFIG_FILES.
5202 # This happens for instance when ./config.status config.h
5203 if test -n "\$CONFIG_FILES"; then
5204 # Protect against being on the right side of a sed subst in config.status.
5205 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5206 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5207 s,@SHELL@,$SHELL,;t t
5208 s,@exec_prefix@,$exec_prefix,;t t
5209 s,@prefix@,$prefix,;t t
5210 s,@program_transform_name@,$program_transform_name,;t t
5211 s,@bindir@,$bindir,;t t
5212 s,@sbindir@,$sbindir,;t t
5213 s,@libexecdir@,$libexecdir,;t t
5214 s,@datarootdir@,$datarootdir,;t t
5215 s,@datadir@,$datadir,;t t
5216 s,@sysconfdir@,$sysconfdir,;t t
5217 s,@sharedstatedir@,$sharedstatedir,;t t
5218 s,@localstatedir@,$localstatedir,;t t
5219 s,@libdir@,$libdir,;t t
5220 s,@includedir@,$includedir,;t t
5221 s,@oldincludedir@,$oldincludedir,;t t
5222 s,@infodir@,$infodir,;t t
5223 s,@mandir@,$mandir,;t t
5224 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5225 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5226 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5227 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5228 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5229 s,@build_alias@,$build_alias,;t t
5230 s,@host_alias@,$host_alias,;t t
5231 s,@target_alias@,$target_alias,;t t
5232 s,@ECHO_C@,$ECHO_C,;t t
5233 s,@ECHO_N@,$ECHO_N,;t t
5234 s,@ECHO_T@,$ECHO_T,;t t
5235 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5238 s,@build@,$build,;t t
5239 s,@build_cpu@,$build_cpu,;t t
5240 s,@build_vendor@,$build_vendor,;t t
5241 s,@build_os@,$build_os,;t t
5243 s,@host_cpu@,$host_cpu,;t t
5244 s,@host_vendor@,$host_vendor,;t t
5245 s,@host_os@,$host_os,;t t
5246 s,@target@,$target,;t t
5247 s,@target_cpu@,$target_cpu,;t t
5248 s,@target_vendor@,$target_vendor,;t t
5249 s,@target_os@,$target_os,;t t
5251 s,@CFLAGS@,$CFLAGS,;t t
5252 s,@LDFLAGS@,$LDFLAGS,;t t
5253 s,@CPPFLAGS@,$CPPFLAGS,;t t
5254 s,@ac_ct_CC@,$ac_ct_CC,;t t
5255 s,@EXEEXT@,$EXEEXT,;t t
5256 s,@OBJEXT@,$OBJEXT,;t t
5257 s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t
5258 s,@SET_MAKE@,$SET_MAKE,;t t
5259 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
5260 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
5261 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
5262 s,@CTAGS@,$CTAGS,;t t
5263 s,@ETAGS@,$ETAGS,;t t
5264 s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t
5265 s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t
5267 s,@LINT_OPTS@,$LINT_OPTS,;t t
5269 s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t
5270 s,@ECHO_LT@,$ECHO_LT,;t t
5271 s,@ECHO_LD@,$ECHO_LD,;t t
5272 s,@RULE_CC@,$RULE_CC,;t t
5273 s,@SHOW_CC@,$SHOW_CC,;t t
5274 s,@ECHO_CC@,$ECHO_CC,;t t
5279 cat >>$CONFIG_STATUS <<\EOF
5280 # Split the substitutions into bite-sized pieces for seds with
5281 # small command number limits, like on Digital OSF/1 and HP-UX.
5283 ac_sed_frag=1 # Number of current file.
5284 ac_beg=1 # First line for current file.
5285 ac_end=$ac_max_sed_lines # Line after last line for current file.
5288 while $ac_more_lines; do
5289 if test $ac_beg -gt 1; then
5290 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5292 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5294 if test ! -s $tmp/subs.frag; then
5297 # The purpose of the label and of the branching condition is to
5298 # speed up the sed processing (if there are no `@' at all, there
5299 # is no need to browse any of the substitutions).
5300 # These are the two extra sed commands mentioned above.
5302 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
5303 if test -z "$ac_sed_cmds"; then
5304 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
5306 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5308 ac_sed_frag=`expr $ac_sed_frag + 1`
5310 ac_end=`expr $ac_end + $ac_max_sed_lines`
5313 if test -z "$ac_sed_cmds"; then
5316 fi # test -n "$CONFIG_FILES"
5319 cat >>$CONFIG_STATUS <<\EOF
5320 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5321 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5323 - | *:- | *:-:* ) # input from stdin
5325 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5326 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5327 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5328 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5329 * ) ac_file_in=$ac_file.in ;;
5332 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5333 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5334 X"$ac_file" : 'X\(//\)[^/]' \| \
5335 X"$ac_file" : 'X\(//\)$' \| \
5336 X"$ac_file" : 'X\(/\)' \| \
5337 . : '\(.\)' 2>/dev/null ||
5339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5340 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5341 /^X\(\/\/\)$/{ s//\1/; q; }
5342 /^X\(\/\).*/{ s//\1/; q; }
5344 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5346 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
5350 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
5351 case $as_mkdir_dir in
5352 # Skip DOS drivespec
5353 ?:) as_incr_dir=$as_mkdir_dir ;;
5355 as_incr_dir=$as_incr_dir/$as_mkdir_dir
5356 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
5361 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
5362 # A "../" for each directory in $ac_dir_suffix.
5363 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
5365 ac_dir_suffix= ac_dots=
5370 if test -z "$ac_dots"; then
5373 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
5376 ac_srcdir=$srcdir$ac_dir_suffix;
5377 ac_top_srcdir=$srcdir ;;
5379 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
5380 ac_top_srcdir=$ac_dots$srcdir ;;
5384 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5385 *) ac_INSTALL=$ac_dots$INSTALL ;;
5388 if test x"$ac_file" != x-; then
5389 { echo "$as_me:5389: creating $ac_file" >&5
5390 echo "$as_me: creating $ac_file" >&6;}
5393 # Let's still pretend it is `configure' which instantiates (i.e., don't
5394 # use $as_me), people would be surprised to read:
5395 # /* config.h. Generated automatically by config.status. */
5396 configure_input="Generated automatically from `echo $ac_file_in |
5397 sed 's,.*/,,'` by configure."
5399 # First look for the input files in the build tree, otherwise in the
5401 ac_file_inputs=`IFS=:
5402 for f in $ac_file_in; do
5404 -) echo $tmp/stdin ;;
5406 # Absolute (can't be DOS-style, as IFS=:)
5407 test -f "$f" || { { echo "$as_me:5407: error: cannot find input file: $f" >&5
5408 echo "$as_me: error: cannot find input file: $f" >&2;}
5409 { (exit 1); exit 1; }; }
5412 if test -f "$f"; then
5415 elif test -f "$srcdir/$f"; then
5420 { { echo "$as_me:5420: error: cannot find input file: $f" >&5
5421 echo "$as_me: error: cannot find input file: $f" >&2;}
5422 { (exit 1); exit 1; }; }
5425 done` || { (exit 1); exit 1; }
5427 cat >>$CONFIG_STATUS <<\EOF
5428 ac_warn_datarootdir=no
5429 if test x"$ac_file" != x-; then
5430 for ac_item in $ac_file_inputs
5432 ac_seen=`grep '@\(datadir\|mandir\|infodir\)@' $ac_item`
5433 if test -n "$ac_seen"; then
5434 ac_used=`grep '@datarootdir@' $ac_item`
5435 if test -z "$ac_used"; then
5436 { echo "$as_me:5436: WARNING: datarootdir was used implicitly but not set:
5438 echo "$as_me: WARNING: datarootdir was used implicitly but not set:
5440 ac_warn_datarootdir=yes
5443 ac_seen=`grep '${datarootdir}' $ac_item`
5444 if test -n "$ac_seen"; then
5445 { echo "$as_me:5445: WARNING: datarootdir was used explicitly but not set:
5447 echo "$as_me: WARNING: datarootdir was used explicitly but not set:
5449 ac_warn_datarootdir=yes
5454 if test "x$ac_warn_datarootdir" = xyes; then
5455 ac_sed_cmds="$ac_sed_cmds | sed -e 's,@datarootdir@,\${prefix}/share,g' -e 's,\${datarootdir},\${prefix}/share,g'"
5459 cat >>$CONFIG_STATUS <<EOF
5463 cat >>$CONFIG_STATUS <<\EOF
5465 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5466 s,@configure_input@,$configure_input,;t t
5467 s,@srcdir@,$ac_srcdir,;t t
5468 s,@top_srcdir@,$ac_top_srcdir,;t t
5469 s,@INSTALL@,$ac_INSTALL,;t t
5470 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5472 if test x"$ac_file" != x-; then
5473 cp $tmp/out $ac_file
5475 for ac_name in prefix exec_prefix datarootdir
5477 ac_seen=`fgrep -n '${'$ac_name'[:=].*}' $ac_file`
5478 if test -n "$ac_seen"; then
5479 ac_init=`egrep '[ ]*'$ac_name'[ ]*=' $ac_file`
5480 if test -z "$ac_init"; then
5481 ac_seen=`echo "$ac_seen" |sed -e 's,^,'$ac_file':,'`
5482 { echo "$as_me:5482: WARNING: Variable $ac_name is used but was not set:
5484 echo "$as_me: WARNING: Variable $ac_name is used but was not set:
5489 egrep -n '@[a-z_][a-z_0-9]+@' $ac_file >$tmp/out
5490 egrep -n '@[A-Z_][A-Z_0-9]+@' $ac_file >>$tmp/out
5491 if test -s $tmp/out; then
5492 ac_seen=`sed -e 's,^,'$ac_file':,' < $tmp/out`
5493 { echo "$as_me:5493: WARNING: Some variables may not be substituted:
5495 echo "$as_me: WARNING: Some variables may not be substituted:
5505 cat >>$CONFIG_STATUS <<\EOF
5508 # CONFIG_HEADER section.
5511 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5512 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5514 # ac_d sets the value in "#define NAME VALUE" lines.
5515 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5516 ac_dB='[ ].*$,\1#\2'
5519 # ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5520 ac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5521 ac_iB='\([ ]\),\1#\2define\3'
5524 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5525 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5526 ac_uB='$,\1#\2define\3'
5530 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
5531 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5533 - | *:- | *:-:* ) # input from stdin
5535 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5536 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5537 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5538 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5539 * ) ac_file_in=$ac_file.in ;;
5542 test x"$ac_file" != x- && { echo "$as_me:5542: creating $ac_file" >&5
5543 echo "$as_me: creating $ac_file" >&6;}
5545 # First look for the input files in the build tree, otherwise in the
5547 ac_file_inputs=`IFS=:
5548 for f in $ac_file_in; do
5550 -) echo $tmp/stdin ;;
5552 # Absolute (can't be DOS-style, as IFS=:)
5553 test -f "$f" || { { echo "$as_me:5553: error: cannot find input file: $f" >&5
5554 echo "$as_me: error: cannot find input file: $f" >&2;}
5555 { (exit 1); exit 1; }; }
5558 if test -f "$f"; then
5561 elif test -f "$srcdir/$f"; then
5566 { { echo "$as_me:5566: error: cannot find input file: $f" >&5
5567 echo "$as_me: error: cannot find input file: $f" >&2;}
5568 { (exit 1); exit 1; }; }
5571 done` || { (exit 1); exit 1; }
5572 # Remove the trailing spaces.
5573 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
5577 # Transform confdefs.h into two sed scripts, `conftest.defines' and
5578 # `conftest.undefs', that substitutes the proper values into
5579 # config.h.in to produce config.h. The first handles `#define'
5580 # templates, and the second `#undef' templates.
5581 # And first: Protect against being on the right side of a sed subst in
5582 # config.status. Protect against being in an unquoted here document
5584 rm -f conftest.defines conftest.undefs
5585 # Using a here document instead of a string reduces the quoting nightmare.
5586 # Putting comments in sed scripts is not portable.
5588 # `end' is used to avoid that the second main sed command (meant for
5589 # 0-ary CPP macros) applies to n-ary macro definitions.
5590 # See the Autoconf documentation for `clear'.
5591 cat >confdef2sed.sed <<\EOF
5596 s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
5598 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
5601 # If some macros were called several times there might be several times
5602 # the same #defines, which is useless. Nevertheless, we may not want to
5603 # sort them, since we want the *last* AC-DEFINE to be honored.
5604 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
5605 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
5606 sed 's/ac_d/ac_i/g' conftest.defines >>conftest.undefs
5607 rm -f confdef2sed.sed
5609 # This sed command replaces #undef with comments. This is necessary, for
5610 # example, in the case of _POSIX_SOURCE, which is predefined and required
5611 # on some systems where configure will not decide to define it.
5612 cat >>conftest.undefs <<\EOF
5613 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
5616 # Break up conftest.defines because some shells have a limit on the size
5617 # of here documents, and old seds have small limits too (100 cmds).
5618 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
5619 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
5620 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
5621 echo ' :' >>$CONFIG_STATUS
5623 while grep . conftest.defines >/dev/null
5625 # Write a limited-size here document to $tmp/defines.sed.
5626 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
5627 # Speed up: don't consider the non `#define' lines.
5628 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
5629 # Work around the forget-to-reset-the-flag bug.
5630 echo 't clr' >>$CONFIG_STATUS
5631 echo ': clr' >>$CONFIG_STATUS
5632 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
5634 sed -f $tmp/defines.sed $tmp/in >$tmp/out
5638 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
5639 rm -f conftest.defines
5640 mv conftest.tail conftest.defines
5642 rm -f conftest.defines
5643 echo ' fi # egrep' >>$CONFIG_STATUS
5644 echo >>$CONFIG_STATUS
5646 # Break up conftest.undefs because some shells have a limit on the size
5647 # of here documents, and old seds have small limits too (100 cmds).
5648 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
5650 while grep . conftest.undefs >/dev/null
5652 # Write a limited-size here document to $tmp/undefs.sed.
5653 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
5654 # Speed up: don't consider the non `#undef'
5655 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
5656 # Work around the forget-to-reset-the-flag bug.
5657 echo 't clr' >>$CONFIG_STATUS
5658 echo ': clr' >>$CONFIG_STATUS
5659 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
5661 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
5665 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
5666 rm -f conftest.undefs
5667 mv conftest.tail conftest.undefs
5669 rm -f conftest.undefs
5671 cat >>$CONFIG_STATUS <<\EOF
5672 # Let's still pretend it is `configure' which instantiates (i.e., don't
5673 # use $as_me), people would be surprised to read:
5674 # /* config.h. Generated automatically by config.status. */
5675 if test x"$ac_file" = x-; then
5676 echo "/* Generated automatically by configure. */" >$tmp/config.h
5678 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
5680 cat $tmp/in >>$tmp/config.h
5682 if test x"$ac_file" != x-; then
5683 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
5684 { echo "$as_me:5684: $ac_file is unchanged" >&5
5685 echo "$as_me: $ac_file is unchanged" >&6;}
5687 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5688 X"$ac_file" : 'X\(//\)[^/]' \| \
5689 X"$ac_file" : 'X\(//\)$' \| \
5690 X"$ac_file" : 'X\(/\)' \| \
5691 . : '\(.\)' 2>/dev/null ||
5693 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5694 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5695 /^X\(\/\/\)$/{ s//\1/; q; }
5696 /^X\(\/\).*/{ s//\1/; q; }
5698 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5700 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
5704 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
5705 case $as_mkdir_dir in
5706 # Skip DOS drivespec
5707 ?:) as_incr_dir=$as_mkdir_dir ;;
5709 as_incr_dir=$as_incr_dir/$as_mkdir_dir
5710 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
5717 mv $tmp/config.h $ac_file
5726 cat >>$CONFIG_STATUS <<\EOF
5728 { (exit 0); exit 0; }
5730 chmod +x $CONFIG_STATUS
5731 ac_clean_files=$ac_clean_files_save
5733 # configure is writing to config.log, and then calls config.status.
5734 # config.status does its own redirection, appending to config.log.
5735 # Unfortunately, on DOS this fails, as config.log is still kept open
5736 # by configure, so config.status won't be able to write to it; its
5737 # output is simply discarded. So we exec the FD to /dev/null,
5738 # effectively closing config.log, so it can be properly (re)opened and
5739 # appended to by config.status. When coming back to configure, we
5740 # need to make the FD available again.
5741 if test "$no_create" != yes; then
5744 $SHELL $CONFIG_STATUS || ac_cs_success=false
5746 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5747 # would make configure fail if this is the last instruction.
5748 $ac_cs_success || { (exit 1); exit 1; }