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 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
1805 echo "$as_me:1805: checking for $CC option to accept ANSI C" >&5
1806 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1807 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1808 echo $ECHO_N "(cached) $ECHO_C" >&6
1810 ac_cv_prog_cc_stdc=no
1812 cat >conftest.$ac_ext <<_ACEOF
1813 #line 1813 "configure"
1814 #include "confdefs.h"
1817 #include <sys/types.h>
1818 #include <sys/stat.h>
1819 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1820 struct buf { int x; };
1821 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1822 static char *e (p, i)
1828 static char *f (char * (*g) (char **, int), char **p, ...)
1833 s = g (p, va_arg (v,int));
1837 int test (int i, double x);
1838 struct s1 {int (*f) (int a);};
1839 struct s2 {int (*f) (double a);};
1840 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1846 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1851 # Don't try gcc -ansi; that turns off useful extensions and
1852 # breaks some systems' header files.
1853 # AIX -qlanglvl=ansi
1854 # Ultrix and OSF/1 -std1
1855 # HP-UX 10.20 and later -Ae
1856 # HP-UX older versions -Aa -D_HPUX_SOURCE
1857 # SVR4 -Xc -D__EXTENSIONS__
1858 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1860 CC="$ac_save_CC $ac_arg"
1861 rm -f conftest.$ac_objext
1862 if { (eval echo "$as_me:1862: \"$ac_compile\"") >&5
1863 (eval $ac_compile) 2>&5
1865 echo "$as_me:1865: \$? = $ac_status" >&5
1866 (exit $ac_status); } &&
1867 { ac_try='test -s conftest.$ac_objext'
1868 { (eval echo "$as_me:1868: \"$ac_try\"") >&5
1871 echo "$as_me:1871: \$? = $ac_status" >&5
1872 (exit $ac_status); }; }; then
1873 ac_cv_prog_cc_stdc=$ac_arg
1876 echo "$as_me: failed program was:" >&5
1877 cat conftest.$ac_ext >&5
1879 rm -f conftest.$ac_objext
1881 rm -f conftest.$ac_ext conftest.$ac_objext
1886 case "x$ac_cv_prog_cc_stdc" in
1888 echo "$as_me:1888: result: none needed" >&5
1889 echo "${ECHO_T}none needed" >&6 ;;
1891 echo "$as_me:1891: result: $ac_cv_prog_cc_stdc" >&5
1892 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
1893 CC="$CC $ac_cv_prog_cc_stdc" ;;
1896 # This should have been defined by AC_PROG_CC
1899 echo "$as_me:1899: checking \$CC variable" >&5
1900 echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
1903 echo "$as_me:1903: result: broken" >&5
1904 echo "${ECHO_T}broken" >&6
1905 { echo "$as_me:1905: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
1906 echo "$as_me: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
1908 cf_flags=`echo "$CC" | sed -e 's/^[^ ]*[ ]//'`
1909 CC=`echo "$CC" | sed -e 's/[ ].*//'`
1914 cf_new_extra_cppflags=
1916 for cf_add_cflags in $cf_flags
1918 case $cf_fix_cppflags in
1920 case $cf_add_cflags in #(vi
1921 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
1922 case $cf_add_cflags in
1924 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
1926 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
1927 && test -z "${cf_tst_cflags}" \
1928 && cf_fix_cppflags=yes
1930 if test $cf_fix_cppflags = yes ; then
1931 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
1933 elif test "${cf_tst_cflags}" = "\"'" ; then
1934 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
1940 *$cf_add_cflags) #(vi
1943 case $cf_add_cflags in #(vi
1945 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
1947 CPPFLAGS=`echo "$CPPFLAGS" | \
1948 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
1949 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
1953 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
1958 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
1963 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
1965 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
1967 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
1968 && test -z "${cf_tst_cflags}" \
1969 && cf_fix_cppflags=no
1974 if test -n "$cf_new_cflags" ; then
1976 CFLAGS="$CFLAGS $cf_new_cflags"
1979 if test -n "$cf_new_cppflags" ; then
1981 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
1984 if test -n "$cf_new_extra_cppflags" ; then
1986 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
1991 echo "$as_me:1991: result: ok" >&5
1992 echo "${ECHO_T}ok" >&6
1996 echo "$as_me:1996: checking whether ${MAKE-make} sets \${MAKE}" >&5
1997 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1998 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1999 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2000 echo $ECHO_N "(cached) $ECHO_C" >&6
2002 cat >conftest.make <<\EOF
2004 @echo 'ac_maketemp="${MAKE}"'
2006 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2007 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2008 if test -n "$ac_maketemp"; then
2009 eval ac_cv_prog_make_${ac_make}_set=yes
2011 eval ac_cv_prog_make_${ac_make}_set=no
2015 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2016 echo "$as_me:2016: result: yes" >&5
2017 echo "${ECHO_T}yes" >&6
2020 echo "$as_me:2020: result: no" >&5
2021 echo "${ECHO_T}no" >&6
2022 SET_MAKE="MAKE=${MAKE-make}"
2025 # Find a good install program. We prefer a C program (faster),
2026 # so one script is as good as another. But avoid the broken or
2027 # incompatible versions:
2028 # SysV /etc/install, /usr/sbin/install
2029 # SunOS /usr/etc/install
2030 # IRIX /sbin/install
2032 # AmigaOS /C/install, which installs bootblocks on floppy discs
2033 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2034 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2035 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2036 # ./install, which can be erroneously created by make from ./install.sh.
2037 echo "$as_me:2037: checking for a BSD compatible install" >&5
2038 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
2039 if test -z "$INSTALL"; then
2040 if test "${ac_cv_path_install+set}" = set; then
2041 echo $ECHO_N "(cached) $ECHO_C" >&6
2043 ac_save_IFS=$IFS; IFS=$ac_path_separator
2044 for ac_dir in $PATH; do
2046 # Account for people who put trailing slashes in PATH elements.
2048 / | ./ | .// | /cC/* \
2049 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
2052 # OSF1 and SCO ODT 3.0 have their own names for install.
2053 # Don't use installbsd from OSF since it installs stuff as root
2055 for ac_prog in ginstall scoinst install; do
2056 if $as_executable_p "$ac_dir/$ac_prog"; then
2057 if test $ac_prog = install &&
2058 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2059 # AIX install. It has an incompatible calling convention.
2061 elif test $ac_prog = install &&
2062 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2063 # program-specific install script used by HP pwplus--don't use.
2066 ac_cv_path_install="$ac_dir/$ac_prog -c"
2076 if test "${ac_cv_path_install+set}" = set; then
2077 INSTALL=$ac_cv_path_install
2079 # As a last resort, use the slow shell script. We don't cache a
2080 # path for INSTALL within a source directory, because that will
2081 # break other packages using the cache if that directory is
2082 # removed, or if the path is relative.
2083 INSTALL=$ac_install_sh
2086 echo "$as_me:2086: result: $INSTALL" >&5
2087 echo "${ECHO_T}$INSTALL" >&6
2089 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2090 # It thinks the first close brace ends the variable substitution.
2091 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2093 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2095 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2097 echo "$as_me:2097: checking if filesystem supports mixed-case filenames" >&5
2098 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
2099 if test "${cf_cv_mixedcase+set}" = set; then
2100 echo $ECHO_N "(cached) $ECHO_C" >&6
2103 if test "$cross_compiling" = yes ; then
2104 case $target_alias in #(vi
2105 *-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-mingw32*|*-uwin*) #(vi
2113 rm -f conftest CONFTEST
2115 if test -f CONFTEST ; then
2120 rm -f conftest CONFTEST
2124 echo "$as_me:2124: result: $cf_cv_mixedcase" >&5
2125 echo "${ECHO_T}$cf_cv_mixedcase" >&6
2126 test "$cf_cv_mixedcase" = yes &&
2127 cat >>confdefs.h <<\EOF
2128 #define MIXEDCASE_FILENAMES 1
2131 for ac_prog in exctags ctags
2133 # Extract the first word of "$ac_prog", so it can be a program name with args.
2134 set dummy $ac_prog; ac_word=$2
2135 echo "$as_me:2135: checking for $ac_word" >&5
2136 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2137 if test "${ac_cv_prog_CTAGS+set}" = set; then
2138 echo $ECHO_N "(cached) $ECHO_C" >&6
2140 if test -n "$CTAGS"; then
2141 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
2143 ac_save_IFS=$IFS; IFS=$ac_path_separator
2145 for ac_dir in $ac_dummy; do
2147 test -z "$ac_dir" && ac_dir=.
2148 $as_executable_p "$ac_dir/$ac_word" || continue
2149 ac_cv_prog_CTAGS="$ac_prog"
2150 echo "$as_me:2150: found $ac_dir/$ac_word" >&5
2156 CTAGS=$ac_cv_prog_CTAGS
2157 if test -n "$CTAGS"; then
2158 echo "$as_me:2158: result: $CTAGS" >&5
2159 echo "${ECHO_T}$CTAGS" >&6
2161 echo "$as_me:2161: result: no" >&5
2162 echo "${ECHO_T}no" >&6
2165 test -n "$CTAGS" && break
2168 for ac_prog in exetags etags
2170 # Extract the first word of "$ac_prog", so it can be a program name with args.
2171 set dummy $ac_prog; ac_word=$2
2172 echo "$as_me:2172: checking for $ac_word" >&5
2173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2174 if test "${ac_cv_prog_ETAGS+set}" = set; then
2175 echo $ECHO_N "(cached) $ECHO_C" >&6
2177 if test -n "$ETAGS"; then
2178 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
2180 ac_save_IFS=$IFS; IFS=$ac_path_separator
2182 for ac_dir in $ac_dummy; do
2184 test -z "$ac_dir" && ac_dir=.
2185 $as_executable_p "$ac_dir/$ac_word" || continue
2186 ac_cv_prog_ETAGS="$ac_prog"
2187 echo "$as_me:2187: found $ac_dir/$ac_word" >&5
2193 ETAGS=$ac_cv_prog_ETAGS
2194 if test -n "$ETAGS"; then
2195 echo "$as_me:2195: result: $ETAGS" >&5
2196 echo "${ECHO_T}$ETAGS" >&6
2198 echo "$as_me:2198: result: no" >&5
2199 echo "${ECHO_T}no" >&6
2202 test -n "$ETAGS" && break
2205 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
2206 set dummy ${CTAGS:-ctags}; ac_word=$2
2207 echo "$as_me:2207: checking for $ac_word" >&5
2208 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2209 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
2210 echo $ECHO_N "(cached) $ECHO_C" >&6
2212 if test -n "$MAKE_LOWER_TAGS"; then
2213 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
2215 ac_save_IFS=$IFS; IFS=$ac_path_separator
2217 for ac_dir in $ac_dummy; do
2219 test -z "$ac_dir" && ac_dir=.
2220 $as_executable_p "$ac_dir/$ac_word" || continue
2221 ac_cv_prog_MAKE_LOWER_TAGS="yes"
2222 echo "$as_me:2222: found $ac_dir/$ac_word" >&5
2226 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
2229 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
2230 if test -n "$MAKE_LOWER_TAGS"; then
2231 echo "$as_me:2231: result: $MAKE_LOWER_TAGS" >&5
2232 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
2234 echo "$as_me:2234: result: no" >&5
2235 echo "${ECHO_T}no" >&6
2238 if test "$cf_cv_mixedcase" = yes ; then
2239 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
2240 set dummy ${ETAGS:-etags}; ac_word=$2
2241 echo "$as_me:2241: checking for $ac_word" >&5
2242 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2243 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
2244 echo $ECHO_N "(cached) $ECHO_C" >&6
2246 if test -n "$MAKE_UPPER_TAGS"; then
2247 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
2249 ac_save_IFS=$IFS; IFS=$ac_path_separator
2251 for ac_dir in $ac_dummy; do
2253 test -z "$ac_dir" && ac_dir=.
2254 $as_executable_p "$ac_dir/$ac_word" || continue
2255 ac_cv_prog_MAKE_UPPER_TAGS="yes"
2256 echo "$as_me:2256: found $ac_dir/$ac_word" >&5
2260 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
2263 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
2264 if test -n "$MAKE_UPPER_TAGS"; then
2265 echo "$as_me:2265: result: $MAKE_UPPER_TAGS" >&5
2266 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
2268 echo "$as_me:2268: result: no" >&5
2269 echo "${ECHO_T}no" >&6
2276 if test "$MAKE_UPPER_TAGS" = yes ; then
2282 if test "$MAKE_LOWER_TAGS" = yes ; then
2288 for ac_prog in tdlint lint alint splint lclint
2290 # Extract the first word of "$ac_prog", so it can be a program name with args.
2291 set dummy $ac_prog; ac_word=$2
2292 echo "$as_me:2292: checking for $ac_word" >&5
2293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2294 if test "${ac_cv_prog_LINT+set}" = set; then
2295 echo $ECHO_N "(cached) $ECHO_C" >&6
2297 if test -n "$LINT"; then
2298 ac_cv_prog_LINT="$LINT" # Let the user override the test.
2300 ac_save_IFS=$IFS; IFS=$ac_path_separator
2302 for ac_dir in $ac_dummy; do
2304 test -z "$ac_dir" && ac_dir=.
2305 $as_executable_p "$ac_dir/$ac_word" || continue
2306 ac_cv_prog_LINT="$ac_prog"
2307 echo "$as_me:2307: found $ac_dir/$ac_word" >&5
2313 LINT=$ac_cv_prog_LINT
2314 if test -n "$LINT"; then
2315 echo "$as_me:2315: result: $LINT" >&5
2316 echo "${ECHO_T}$LINT" >&6
2318 echo "$as_me:2318: result: no" >&5
2319 echo "${ECHO_T}no" >&6
2322 test -n "$LINT" && break
2326 cf_POSIX_C_SOURCE=199506L
2329 case $host_os in #(vi
2331 cf_xopen_source="-D_ALL_SOURCE"
2337 cf_xopen_source="-D_APPLE_C_SOURCE"
2340 cf_xopen_source="-D_DARWIN_C_SOURCE"
2343 freebsd*|dragonfly*) #(vi
2344 # 5.x headers associate
2345 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
2346 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
2347 cf_POSIX_C_SOURCE=200112L
2349 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
2352 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
2355 cf_xopen_source="-D_HPUX_SOURCE"
2358 cf_xopen_source="-D_SGI_SOURCE"
2361 linux*|gnu*|mint*|k*bsd*-gnu) #(vi
2363 echo "$as_me:2363: checking if we must define _GNU_SOURCE" >&5
2364 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
2365 if test "${cf_cv_gnu_source+set}" = set; then
2366 echo $ECHO_N "(cached) $ECHO_C" >&6
2369 cat >conftest.$ac_ext <<_ACEOF
2370 #line 2370 "configure"
2371 #include "confdefs.h"
2372 #include <sys/types.h>
2377 #ifndef _XOPEN_SOURCE
2384 rm -f conftest.$ac_objext
2385 if { (eval echo "$as_me:2385: \"$ac_compile\"") >&5
2386 (eval $ac_compile) 2>&5
2388 echo "$as_me:2388: \$? = $ac_status" >&5
2389 (exit $ac_status); } &&
2390 { ac_try='test -s conftest.$ac_objext'
2391 { (eval echo "$as_me:2391: \"$ac_try\"") >&5
2394 echo "$as_me:2394: \$? = $ac_status" >&5
2395 (exit $ac_status); }; }; then
2398 echo "$as_me: failed program was:" >&5
2399 cat conftest.$ac_ext >&5
2401 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
2402 cat >conftest.$ac_ext <<_ACEOF
2403 #line 2403 "configure"
2404 #include "confdefs.h"
2405 #include <sys/types.h>
2410 #ifdef _XOPEN_SOURCE
2417 rm -f conftest.$ac_objext
2418 if { (eval echo "$as_me:2418: \"$ac_compile\"") >&5
2419 (eval $ac_compile) 2>&5
2421 echo "$as_me:2421: \$? = $ac_status" >&5
2422 (exit $ac_status); } &&
2423 { ac_try='test -s conftest.$ac_objext'
2424 { (eval echo "$as_me:2424: \"$ac_try\"") >&5
2427 echo "$as_me:2427: \$? = $ac_status" >&5
2428 (exit $ac_status); }; }; then
2431 echo "$as_me: failed program was:" >&5
2432 cat conftest.$ac_ext >&5
2433 cf_cv_gnu_source=yes
2435 rm -f conftest.$ac_objext conftest.$ac_ext
2439 rm -f conftest.$ac_objext conftest.$ac_ext
2442 echo "$as_me:2442: result: $cf_cv_gnu_source" >&5
2443 echo "${ECHO_T}$cf_cv_gnu_source" >&6
2444 test "$cf_cv_gnu_source" = yes && CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
2448 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <sys/select.h> and other headers which use u_int / u_short types
2451 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
2453 cf_save_CFLAGS="$CFLAGS"
2454 cf_save_CPPFLAGS="$CPPFLAGS"
2456 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
2457 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
2458 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
2460 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
2461 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
2462 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
2464 echo "$as_me:2464: checking if we should define _POSIX_C_SOURCE" >&5
2465 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
2466 if test "${cf_cv_posix_c_source+set}" = set; then
2467 echo $ECHO_N "(cached) $ECHO_C" >&6
2470 echo "${as_me:-configure}:2470: testing if the symbol is already defined go no further ..." 1>&5
2472 cat >conftest.$ac_ext <<_ACEOF
2473 #line 2473 "configure"
2474 #include "confdefs.h"
2475 #include <sys/types.h>
2480 #ifndef _POSIX_C_SOURCE
2487 rm -f conftest.$ac_objext
2488 if { (eval echo "$as_me:2488: \"$ac_compile\"") >&5
2489 (eval $ac_compile) 2>&5
2491 echo "$as_me:2491: \$? = $ac_status" >&5
2492 (exit $ac_status); } &&
2493 { ac_try='test -s conftest.$ac_objext'
2494 { (eval echo "$as_me:2494: \"$ac_try\"") >&5
2497 echo "$as_me:2497: \$? = $ac_status" >&5
2498 (exit $ac_status); }; }; then
2499 cf_cv_posix_c_source=no
2501 echo "$as_me: failed program was:" >&5
2502 cat conftest.$ac_ext >&5
2503 cf_want_posix_source=no
2504 case .$cf_POSIX_C_SOURCE in #(vi
2506 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
2509 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
2510 cf_want_posix_source=yes
2513 cf_want_posix_source=yes
2516 if test "$cf_want_posix_source" = yes ; then
2517 cat >conftest.$ac_ext <<_ACEOF
2518 #line 2518 "configure"
2519 #include "confdefs.h"
2520 #include <sys/types.h>
2525 #ifdef _POSIX_SOURCE
2532 rm -f conftest.$ac_objext
2533 if { (eval echo "$as_me:2533: \"$ac_compile\"") >&5
2534 (eval $ac_compile) 2>&5
2536 echo "$as_me:2536: \$? = $ac_status" >&5
2537 (exit $ac_status); } &&
2538 { ac_try='test -s conftest.$ac_objext'
2539 { (eval echo "$as_me:2539: \"$ac_try\"") >&5
2542 echo "$as_me:2542: \$? = $ac_status" >&5
2543 (exit $ac_status); }; }; then
2546 echo "$as_me: failed program was:" >&5
2547 cat conftest.$ac_ext >&5
2548 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
2550 rm -f conftest.$ac_objext conftest.$ac_ext
2553 echo "${as_me:-configure}:2553: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
2555 CFLAGS="$cf_trim_CFLAGS"
2556 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
2558 echo "${as_me:-configure}:2558: testing if the second compile does not leave our definition intact error ..." 1>&5
2560 cat >conftest.$ac_ext <<_ACEOF
2561 #line 2561 "configure"
2562 #include "confdefs.h"
2563 #include <sys/types.h>
2568 #ifndef _POSIX_C_SOURCE
2575 rm -f conftest.$ac_objext
2576 if { (eval echo "$as_me:2576: \"$ac_compile\"") >&5
2577 (eval $ac_compile) 2>&5
2579 echo "$as_me:2579: \$? = $ac_status" >&5
2580 (exit $ac_status); } &&
2581 { ac_try='test -s conftest.$ac_objext'
2582 { (eval echo "$as_me:2582: \"$ac_try\"") >&5
2585 echo "$as_me:2585: \$? = $ac_status" >&5
2586 (exit $ac_status); }; }; then
2589 echo "$as_me: failed program was:" >&5
2590 cat conftest.$ac_ext >&5
2591 cf_cv_posix_c_source=no
2593 rm -f conftest.$ac_objext conftest.$ac_ext
2594 CFLAGS="$cf_save_CFLAGS"
2595 CPPFLAGS="$cf_save_CPPFLAGS"
2598 rm -f conftest.$ac_objext conftest.$ac_ext
2601 echo "$as_me:2601: result: $cf_cv_posix_c_source" >&5
2602 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
2604 if test "$cf_cv_posix_c_source" != no ; then
2605 CFLAGS="$cf_trim_CFLAGS"
2606 CPPFLAGS="$cf_trim_CPPFLAGS"
2611 cf_new_extra_cppflags=
2613 for cf_add_cflags in $cf_cv_posix_c_source
2615 case $cf_fix_cppflags in
2617 case $cf_add_cflags in #(vi
2618 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2619 case $cf_add_cflags in
2621 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2623 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2624 && test -z "${cf_tst_cflags}" \
2625 && cf_fix_cppflags=yes
2627 if test $cf_fix_cppflags = yes ; then
2628 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2630 elif test "${cf_tst_cflags}" = "\"'" ; then
2631 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2637 *$cf_add_cflags) #(vi
2640 case $cf_add_cflags in #(vi
2642 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2644 CPPFLAGS=`echo "$CPPFLAGS" | \
2645 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2646 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2650 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2655 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2660 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2662 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2664 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2665 && test -z "${cf_tst_cflags}" \
2666 && cf_fix_cppflags=no
2671 if test -n "$cf_new_cflags" ; then
2673 CFLAGS="$CFLAGS $cf_new_cflags"
2676 if test -n "$cf_new_cppflags" ; then
2678 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2681 if test -n "$cf_new_extra_cppflags" ; then
2683 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2690 cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
2693 # setting _XOPEN_SOURCE lower than 500 breaks g++ compile with wchar.h, needed for ncursesw
2694 cf_xopen_source="-D_BSD_SOURCE"
2698 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
2701 cf_xopen_source="-D_OSF_SOURCE"
2704 cf_xopen_source="-D_QNX_SOURCE"
2707 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
2710 cf_xopen_source="-D__EXTENSIONS__"
2714 echo "$as_me:2714: checking if we should define _XOPEN_SOURCE" >&5
2715 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
2716 if test "${cf_cv_xopen_source+set}" = set; then
2717 echo $ECHO_N "(cached) $ECHO_C" >&6
2720 cat >conftest.$ac_ext <<_ACEOF
2721 #line 2721 "configure"
2722 #include "confdefs.h"
2726 #include <sys/types.h>
2732 #ifndef _XOPEN_SOURCE
2739 rm -f conftest.$ac_objext
2740 if { (eval echo "$as_me:2740: \"$ac_compile\"") >&5
2741 (eval $ac_compile) 2>&5
2743 echo "$as_me:2743: \$? = $ac_status" >&5
2744 (exit $ac_status); } &&
2745 { ac_try='test -s conftest.$ac_objext'
2746 { (eval echo "$as_me:2746: \"$ac_try\"") >&5
2749 echo "$as_me:2749: \$? = $ac_status" >&5
2750 (exit $ac_status); }; }; then
2751 cf_cv_xopen_source=no
2753 echo "$as_me: failed program was:" >&5
2754 cat conftest.$ac_ext >&5
2756 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
2757 cat >conftest.$ac_ext <<_ACEOF
2758 #line 2758 "configure"
2759 #include "confdefs.h"
2763 #include <sys/types.h>
2769 #ifdef _XOPEN_SOURCE
2776 rm -f conftest.$ac_objext
2777 if { (eval echo "$as_me:2777: \"$ac_compile\"") >&5
2778 (eval $ac_compile) 2>&5
2780 echo "$as_me:2780: \$? = $ac_status" >&5
2781 (exit $ac_status); } &&
2782 { ac_try='test -s conftest.$ac_objext'
2783 { (eval echo "$as_me:2783: \"$ac_try\"") >&5
2786 echo "$as_me:2786: \$? = $ac_status" >&5
2787 (exit $ac_status); }; }; then
2788 cf_cv_xopen_source=no
2790 echo "$as_me: failed program was:" >&5
2791 cat conftest.$ac_ext >&5
2792 cf_cv_xopen_source=$cf_XOPEN_SOURCE
2794 rm -f conftest.$ac_objext conftest.$ac_ext
2798 rm -f conftest.$ac_objext conftest.$ac_ext
2801 echo "$as_me:2801: result: $cf_cv_xopen_source" >&5
2802 echo "${ECHO_T}$cf_cv_xopen_source" >&6
2804 if test "$cf_cv_xopen_source" != no ; then
2806 CFLAGS=`echo "$CFLAGS" | \
2807 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
2808 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
2810 CPPFLAGS=`echo "$CPPFLAGS" | \
2811 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
2812 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
2814 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
2819 cf_new_extra_cppflags=
2821 for cf_add_cflags in $cf_temp_xopen_source
2823 case $cf_fix_cppflags in
2825 case $cf_add_cflags in #(vi
2826 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2827 case $cf_add_cflags in
2829 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2831 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2832 && test -z "${cf_tst_cflags}" \
2833 && cf_fix_cppflags=yes
2835 if test $cf_fix_cppflags = yes ; then
2836 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2838 elif test "${cf_tst_cflags}" = "\"'" ; then
2839 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2845 *$cf_add_cflags) #(vi
2848 case $cf_add_cflags in #(vi
2850 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2852 CPPFLAGS=`echo "$CPPFLAGS" | \
2853 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2854 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2858 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2863 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2868 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2870 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2872 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2873 && test -z "${cf_tst_cflags}" \
2874 && cf_fix_cppflags=no
2879 if test -n "$cf_new_cflags" ; then
2881 CFLAGS="$CFLAGS $cf_new_cflags"
2884 if test -n "$cf_new_cppflags" ; then
2886 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2889 if test -n "$cf_new_extra_cppflags" ; then
2891 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2896 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
2898 cf_save_CFLAGS="$CFLAGS"
2899 cf_save_CPPFLAGS="$CPPFLAGS"
2901 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
2902 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
2903 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
2905 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
2906 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
2907 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
2909 echo "$as_me:2909: checking if we should define _POSIX_C_SOURCE" >&5
2910 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
2911 if test "${cf_cv_posix_c_source+set}" = set; then
2912 echo $ECHO_N "(cached) $ECHO_C" >&6
2915 echo "${as_me:-configure}:2915: testing if the symbol is already defined go no further ..." 1>&5
2917 cat >conftest.$ac_ext <<_ACEOF
2918 #line 2918 "configure"
2919 #include "confdefs.h"
2920 #include <sys/types.h>
2925 #ifndef _POSIX_C_SOURCE
2932 rm -f conftest.$ac_objext
2933 if { (eval echo "$as_me:2933: \"$ac_compile\"") >&5
2934 (eval $ac_compile) 2>&5
2936 echo "$as_me:2936: \$? = $ac_status" >&5
2937 (exit $ac_status); } &&
2938 { ac_try='test -s conftest.$ac_objext'
2939 { (eval echo "$as_me:2939: \"$ac_try\"") >&5
2942 echo "$as_me:2942: \$? = $ac_status" >&5
2943 (exit $ac_status); }; }; then
2944 cf_cv_posix_c_source=no
2946 echo "$as_me: failed program was:" >&5
2947 cat conftest.$ac_ext >&5
2948 cf_want_posix_source=no
2949 case .$cf_POSIX_C_SOURCE in #(vi
2951 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
2954 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
2955 cf_want_posix_source=yes
2958 cf_want_posix_source=yes
2961 if test "$cf_want_posix_source" = yes ; then
2962 cat >conftest.$ac_ext <<_ACEOF
2963 #line 2963 "configure"
2964 #include "confdefs.h"
2965 #include <sys/types.h>
2970 #ifdef _POSIX_SOURCE
2977 rm -f conftest.$ac_objext
2978 if { (eval echo "$as_me:2978: \"$ac_compile\"") >&5
2979 (eval $ac_compile) 2>&5
2981 echo "$as_me:2981: \$? = $ac_status" >&5
2982 (exit $ac_status); } &&
2983 { ac_try='test -s conftest.$ac_objext'
2984 { (eval echo "$as_me:2984: \"$ac_try\"") >&5
2987 echo "$as_me:2987: \$? = $ac_status" >&5
2988 (exit $ac_status); }; }; then
2991 echo "$as_me: failed program was:" >&5
2992 cat conftest.$ac_ext >&5
2993 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
2995 rm -f conftest.$ac_objext conftest.$ac_ext
2998 echo "${as_me:-configure}:2998: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
3000 CFLAGS="$cf_trim_CFLAGS"
3001 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
3003 echo "${as_me:-configure}:3003: testing if the second compile does not leave our definition intact error ..." 1>&5
3005 cat >conftest.$ac_ext <<_ACEOF
3006 #line 3006 "configure"
3007 #include "confdefs.h"
3008 #include <sys/types.h>
3013 #ifndef _POSIX_C_SOURCE
3020 rm -f conftest.$ac_objext
3021 if { (eval echo "$as_me:3021: \"$ac_compile\"") >&5
3022 (eval $ac_compile) 2>&5
3024 echo "$as_me:3024: \$? = $ac_status" >&5
3025 (exit $ac_status); } &&
3026 { ac_try='test -s conftest.$ac_objext'
3027 { (eval echo "$as_me:3027: \"$ac_try\"") >&5
3030 echo "$as_me:3030: \$? = $ac_status" >&5
3031 (exit $ac_status); }; }; then
3034 echo "$as_me: failed program was:" >&5
3035 cat conftest.$ac_ext >&5
3036 cf_cv_posix_c_source=no
3038 rm -f conftest.$ac_objext conftest.$ac_ext
3039 CFLAGS="$cf_save_CFLAGS"
3040 CPPFLAGS="$cf_save_CPPFLAGS"
3043 rm -f conftest.$ac_objext conftest.$ac_ext
3046 echo "$as_me:3046: result: $cf_cv_posix_c_source" >&5
3047 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
3049 if test "$cf_cv_posix_c_source" != no ; then
3050 CFLAGS="$cf_trim_CFLAGS"
3051 CPPFLAGS="$cf_trim_CPPFLAGS"
3056 cf_new_extra_cppflags=
3058 for cf_add_cflags in $cf_cv_posix_c_source
3060 case $cf_fix_cppflags in
3062 case $cf_add_cflags in #(vi
3063 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
3064 case $cf_add_cflags in
3066 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3068 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3069 && test -z "${cf_tst_cflags}" \
3070 && cf_fix_cppflags=yes
3072 if test $cf_fix_cppflags = yes ; then
3073 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3075 elif test "${cf_tst_cflags}" = "\"'" ; then
3076 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3082 *$cf_add_cflags) #(vi
3085 case $cf_add_cflags in #(vi
3087 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3089 CPPFLAGS=`echo "$CPPFLAGS" | \
3090 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3091 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3095 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3100 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3105 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3107 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3109 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3110 && test -z "${cf_tst_cflags}" \
3111 && cf_fix_cppflags=no
3116 if test -n "$cf_new_cflags" ; then
3118 CFLAGS="$CFLAGS $cf_new_cflags"
3121 if test -n "$cf_new_cppflags" ; then
3123 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3126 if test -n "$cf_new_extra_cppflags" ; then
3128 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3136 if test -n "$cf_xopen_source" ; then
3141 cf_new_extra_cppflags=
3143 for cf_add_cflags in $cf_xopen_source
3145 case $cf_fix_cppflags in
3147 case $cf_add_cflags in #(vi
3148 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
3149 case $cf_add_cflags in
3151 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3153 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3154 && test -z "${cf_tst_cflags}" \
3155 && cf_fix_cppflags=yes
3157 if test $cf_fix_cppflags = yes ; then
3158 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3160 elif test "${cf_tst_cflags}" = "\"'" ; then
3161 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3167 *$cf_add_cflags) #(vi
3170 case $cf_add_cflags in #(vi
3172 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3174 CPPFLAGS=`echo "$CPPFLAGS" | \
3175 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3176 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3180 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3185 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3190 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3192 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3194 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3195 && test -z "${cf_tst_cflags}" \
3196 && cf_fix_cppflags=no
3201 if test -n "$cf_new_cflags" ; then
3203 CFLAGS="$CFLAGS $cf_new_cflags"
3206 if test -n "$cf_new_cppflags" ; then
3208 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3211 if test -n "$cf_new_extra_cppflags" ; then
3213 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3218 if test -n "$cf_XOPEN_SOURCE" && test -z "$cf_cv_xopen_source" ; then
3219 echo "$as_me:3219: checking if _XOPEN_SOURCE really is set" >&5
3220 echo $ECHO_N "checking if _XOPEN_SOURCE really is set... $ECHO_C" >&6
3221 cat >conftest.$ac_ext <<_ACEOF
3222 #line 3222 "configure"
3223 #include "confdefs.h"
3229 #ifndef _XOPEN_SOURCE
3236 rm -f conftest.$ac_objext
3237 if { (eval echo "$as_me:3237: \"$ac_compile\"") >&5
3238 (eval $ac_compile) 2>&5
3240 echo "$as_me:3240: \$? = $ac_status" >&5
3241 (exit $ac_status); } &&
3242 { ac_try='test -s conftest.$ac_objext'
3243 { (eval echo "$as_me:3243: \"$ac_try\"") >&5
3246 echo "$as_me:3246: \$? = $ac_status" >&5
3247 (exit $ac_status); }; }; then
3248 cf_XOPEN_SOURCE_set=yes
3250 echo "$as_me: failed program was:" >&5
3251 cat conftest.$ac_ext >&5
3252 cf_XOPEN_SOURCE_set=no
3254 rm -f conftest.$ac_objext conftest.$ac_ext
3255 echo "$as_me:3255: result: $cf_XOPEN_SOURCE_set" >&5
3256 echo "${ECHO_T}$cf_XOPEN_SOURCE_set" >&6
3257 if test $cf_XOPEN_SOURCE_set = yes
3259 cat >conftest.$ac_ext <<_ACEOF
3260 #line 3260 "configure"
3261 #include "confdefs.h"
3267 #if (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE
3274 rm -f conftest.$ac_objext
3275 if { (eval echo "$as_me:3275: \"$ac_compile\"") >&5
3276 (eval $ac_compile) 2>&5
3278 echo "$as_me:3278: \$? = $ac_status" >&5
3279 (exit $ac_status); } &&
3280 { ac_try='test -s conftest.$ac_objext'
3281 { (eval echo "$as_me:3281: \"$ac_try\"") >&5
3284 echo "$as_me:3284: \$? = $ac_status" >&5
3285 (exit $ac_status); }; }; then
3286 cf_XOPEN_SOURCE_set_ok=yes
3288 echo "$as_me: failed program was:" >&5
3289 cat conftest.$ac_ext >&5
3290 cf_XOPEN_SOURCE_set_ok=no
3292 rm -f conftest.$ac_objext conftest.$ac_ext
3293 if test $cf_XOPEN_SOURCE_set_ok = no
3295 { echo "$as_me:3295: WARNING: _XOPEN_SOURCE is lower than requested" >&5
3296 echo "$as_me: WARNING: _XOPEN_SOURCE is lower than requested" >&2;}
3300 echo "$as_me:3300: checking if we should define _XOPEN_SOURCE" >&5
3301 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
3302 if test "${cf_cv_xopen_source+set}" = set; then
3303 echo $ECHO_N "(cached) $ECHO_C" >&6
3306 cat >conftest.$ac_ext <<_ACEOF
3307 #line 3307 "configure"
3308 #include "confdefs.h"
3312 #include <sys/types.h>
3318 #ifndef _XOPEN_SOURCE
3325 rm -f conftest.$ac_objext
3326 if { (eval echo "$as_me:3326: \"$ac_compile\"") >&5
3327 (eval $ac_compile) 2>&5
3329 echo "$as_me:3329: \$? = $ac_status" >&5
3330 (exit $ac_status); } &&
3331 { ac_try='test -s conftest.$ac_objext'
3332 { (eval echo "$as_me:3332: \"$ac_try\"") >&5
3335 echo "$as_me:3335: \$? = $ac_status" >&5
3336 (exit $ac_status); }; }; then
3337 cf_cv_xopen_source=no
3339 echo "$as_me: failed program was:" >&5
3340 cat conftest.$ac_ext >&5
3342 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
3343 cat >conftest.$ac_ext <<_ACEOF
3344 #line 3344 "configure"
3345 #include "confdefs.h"
3349 #include <sys/types.h>
3355 #ifdef _XOPEN_SOURCE
3362 rm -f conftest.$ac_objext
3363 if { (eval echo "$as_me:3363: \"$ac_compile\"") >&5
3364 (eval $ac_compile) 2>&5
3366 echo "$as_me:3366: \$? = $ac_status" >&5
3367 (exit $ac_status); } &&
3368 { ac_try='test -s conftest.$ac_objext'
3369 { (eval echo "$as_me:3369: \"$ac_try\"") >&5
3372 echo "$as_me:3372: \$? = $ac_status" >&5
3373 (exit $ac_status); }; }; then
3374 cf_cv_xopen_source=no
3376 echo "$as_me: failed program was:" >&5
3377 cat conftest.$ac_ext >&5
3378 cf_cv_xopen_source=$cf_XOPEN_SOURCE
3380 rm -f conftest.$ac_objext conftest.$ac_ext
3384 rm -f conftest.$ac_objext conftest.$ac_ext
3387 echo "$as_me:3387: result: $cf_cv_xopen_source" >&5
3388 echo "${ECHO_T}$cf_cv_xopen_source" >&6
3390 if test "$cf_cv_xopen_source" != no ; then
3392 CFLAGS=`echo "$CFLAGS" | \
3393 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3394 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
3396 CPPFLAGS=`echo "$CPPFLAGS" | \
3397 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3398 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
3400 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
3405 cf_new_extra_cppflags=
3407 for cf_add_cflags in $cf_temp_xopen_source
3409 case $cf_fix_cppflags in
3411 case $cf_add_cflags in #(vi
3412 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
3413 case $cf_add_cflags in
3415 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3417 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3418 && test -z "${cf_tst_cflags}" \
3419 && cf_fix_cppflags=yes
3421 if test $cf_fix_cppflags = yes ; then
3422 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3424 elif test "${cf_tst_cflags}" = "\"'" ; then
3425 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3431 *$cf_add_cflags) #(vi
3434 case $cf_add_cflags in #(vi
3436 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3438 CPPFLAGS=`echo "$CPPFLAGS" | \
3439 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3440 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3444 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3449 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3454 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3456 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3458 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3459 && test -z "${cf_tst_cflags}" \
3460 && cf_fix_cppflags=no
3465 if test -n "$cf_new_cflags" ; then
3467 CFLAGS="$CFLAGS $cf_new_cflags"
3470 if test -n "$cf_new_cppflags" ; then
3472 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3475 if test -n "$cf_new_extra_cppflags" ; then
3477 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3486 ac_cpp='$CPP $CPPFLAGS'
3487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3490 ac_main_return=return
3491 echo "$as_me:3491: checking how to run the C preprocessor" >&5
3492 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3493 # On Suns, sometimes $CPP names a directory.
3494 if test -n "$CPP" && test -d "$CPP"; then
3497 if test -z "$CPP"; then
3498 if test "${ac_cv_prog_CPP+set}" = set; then
3499 echo $ECHO_N "(cached) $ECHO_C" >&6
3501 # Double quotes because CPP needs to be expanded
3502 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3505 for ac_c_preproc_warn_flag in '' yes
3507 # Use a header file that comes with gcc, so configuring glibc
3508 # with a fresh cross-compiler works.
3509 # On the NeXT, cc -E runs the code through the compiler's parser,
3510 # not just through cpp. "Syntax error" is here to catch this case.
3511 cat >conftest.$ac_ext <<_ACEOF
3512 #line 3512 "configure"
3513 #include "confdefs.h"
3517 if { (eval echo "$as_me:3517: \"$ac_cpp conftest.$ac_ext\"") >&5
3518 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3520 egrep -v '^ *\+' conftest.er1 >conftest.err
3522 cat conftest.err >&5
3523 echo "$as_me:3523: \$? = $ac_status" >&5
3524 (exit $ac_status); } >/dev/null; then
3525 if test -s conftest.err; then
3526 ac_cpp_err=$ac_c_preproc_warn_flag
3533 if test -z "$ac_cpp_err"; then
3536 echo "$as_me: failed program was:" >&5
3537 cat conftest.$ac_ext >&5
3538 # Broken: fails on valid input.
3541 rm -f conftest.err conftest.$ac_ext
3543 # OK, works on sane cases. Now check whether non-existent headers
3544 # can be detected and how.
3545 cat >conftest.$ac_ext <<_ACEOF
3546 #line 3546 "configure"
3547 #include "confdefs.h"
3548 #include <ac_nonexistent.h>
3550 if { (eval echo "$as_me:3550: \"$ac_cpp conftest.$ac_ext\"") >&5
3551 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3553 egrep -v '^ *\+' conftest.er1 >conftest.err
3555 cat conftest.err >&5
3556 echo "$as_me:3556: \$? = $ac_status" >&5
3557 (exit $ac_status); } >/dev/null; then
3558 if test -s conftest.err; then
3559 ac_cpp_err=$ac_c_preproc_warn_flag
3566 if test -z "$ac_cpp_err"; then
3567 # Broken: success on invalid input.
3570 echo "$as_me: failed program was:" >&5
3571 cat conftest.$ac_ext >&5
3572 # Passes both tests.
3576 rm -f conftest.err conftest.$ac_ext
3579 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3580 rm -f conftest.err conftest.$ac_ext
3581 if $ac_preproc_ok; then
3593 echo "$as_me:3593: result: $CPP" >&5
3594 echo "${ECHO_T}$CPP" >&6
3596 for ac_c_preproc_warn_flag in '' yes
3598 # Use a header file that comes with gcc, so configuring glibc
3599 # with a fresh cross-compiler works.
3600 # On the NeXT, cc -E runs the code through the compiler's parser,
3601 # not just through cpp. "Syntax error" is here to catch this case.
3602 cat >conftest.$ac_ext <<_ACEOF
3603 #line 3603 "configure"
3604 #include "confdefs.h"
3608 if { (eval echo "$as_me:3608: \"$ac_cpp conftest.$ac_ext\"") >&5
3609 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3611 egrep -v '^ *\+' conftest.er1 >conftest.err
3613 cat conftest.err >&5
3614 echo "$as_me:3614: \$? = $ac_status" >&5
3615 (exit $ac_status); } >/dev/null; then
3616 if test -s conftest.err; then
3617 ac_cpp_err=$ac_c_preproc_warn_flag
3624 if test -z "$ac_cpp_err"; then
3627 echo "$as_me: failed program was:" >&5
3628 cat conftest.$ac_ext >&5
3629 # Broken: fails on valid input.
3632 rm -f conftest.err conftest.$ac_ext
3634 # OK, works on sane cases. Now check whether non-existent headers
3635 # can be detected and how.
3636 cat >conftest.$ac_ext <<_ACEOF
3637 #line 3637 "configure"
3638 #include "confdefs.h"
3639 #include <ac_nonexistent.h>
3641 if { (eval echo "$as_me:3641: \"$ac_cpp conftest.$ac_ext\"") >&5
3642 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3644 egrep -v '^ *\+' conftest.er1 >conftest.err
3646 cat conftest.err >&5
3647 echo "$as_me:3647: \$? = $ac_status" >&5
3648 (exit $ac_status); } >/dev/null; then
3649 if test -s conftest.err; then
3650 ac_cpp_err=$ac_c_preproc_warn_flag
3657 if test -z "$ac_cpp_err"; then
3658 # Broken: success on invalid input.
3661 echo "$as_me: failed program was:" >&5
3662 cat conftest.$ac_ext >&5
3663 # Passes both tests.
3667 rm -f conftest.err conftest.$ac_ext
3670 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3671 rm -f conftest.err conftest.$ac_ext
3672 if $ac_preproc_ok; then
3675 { { echo "$as_me:3675: error: C preprocessor \"$CPP\" fails sanity check" >&5
3676 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3677 { (exit 1); exit 1; }; }
3681 ac_cpp='$CPP $CPPFLAGS'
3682 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3683 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3684 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3685 ac_main_return=return
3687 for ac_header in fcntl.h
3689 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3690 echo "$as_me:3690: checking for $ac_header" >&5
3691 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3692 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3693 echo $ECHO_N "(cached) $ECHO_C" >&6
3695 cat >conftest.$ac_ext <<_ACEOF
3696 #line 3696 "configure"
3697 #include "confdefs.h"
3698 #include <$ac_header>
3700 if { (eval echo "$as_me:3700: \"$ac_cpp conftest.$ac_ext\"") >&5
3701 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3703 egrep -v '^ *\+' conftest.er1 >conftest.err
3705 cat conftest.err >&5
3706 echo "$as_me:3706: \$? = $ac_status" >&5
3707 (exit $ac_status); } >/dev/null; then
3708 if test -s conftest.err; then
3709 ac_cpp_err=$ac_c_preproc_warn_flag
3716 if test -z "$ac_cpp_err"; then
3717 eval "$as_ac_Header=yes"
3719 echo "$as_me: failed program was:" >&5
3720 cat conftest.$ac_ext >&5
3721 eval "$as_ac_Header=no"
3723 rm -f conftest.err conftest.$ac_ext
3725 echo "$as_me:3725: result: `eval echo '${'$as_ac_Header'}'`" >&5
3726 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3727 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3728 cat >>confdefs.h <<EOF
3729 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3735 echo "$as_me:3735: checking for working mkstemp" >&5
3736 echo $ECHO_N "checking for working mkstemp... $ECHO_C" >&6
3737 if test "${cf_cv_func_mkstemp+set}" = set; then
3738 echo $ECHO_N "(cached) $ECHO_C" >&6
3742 if test "$cross_compiling" = yes; then
3743 cf_cv_func_mkstemp=maybe
3745 cat >conftest.$ac_ext <<_ACEOF
3746 #line 3746 "configure"
3747 #include "confdefs.h"
3749 #include <sys/types.h>
3753 #include <sys/stat.h>
3756 char *tmpl = "conftestXXXXXX";
3764 for (n = 0; n < 2; ++n) {
3765 strcpy(name[n], tmpl);
3766 if ((fd = mkstemp(name[n])) >= 0) {
3767 if (!strcmp(name[n], tmpl)
3768 || stat(name[n], &sb) != 0
3769 || (sb.st_mode & S_IFMT) != S_IFREG
3770 || (sb.st_mode & 077) != 0) {
3777 && !strcmp(name[0], name[1]))
3779 ${cf_cv_main_return:-return}(result);
3783 rm -f conftest$ac_exeext
3784 if { (eval echo "$as_me:3784: \"$ac_link\"") >&5
3785 (eval $ac_link) 2>&5
3787 echo "$as_me:3787: \$? = $ac_status" >&5
3788 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3789 { (eval echo "$as_me:3789: \"$ac_try\"") >&5
3792 echo "$as_me:3792: \$? = $ac_status" >&5
3793 (exit $ac_status); }; }; then
3794 cf_cv_func_mkstemp=yes
3797 echo "$as_me: program exited with status $ac_status" >&5
3798 echo "$as_me: failed program was:" >&5
3799 cat conftest.$ac_ext >&5
3800 cf_cv_func_mkstemp=no
3803 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3807 echo "$as_me:3807: result: $cf_cv_func_mkstemp" >&5
3808 echo "${ECHO_T}$cf_cv_func_mkstemp" >&6
3809 if test "x$cf_cv_func_mkstemp" = xmaybe ; then
3810 echo "$as_me:3810: checking for mkstemp" >&5
3811 echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
3812 if test "${ac_cv_func_mkstemp+set}" = set; then
3813 echo $ECHO_N "(cached) $ECHO_C" >&6
3815 cat >conftest.$ac_ext <<_ACEOF
3816 #line 3816 "configure"
3817 #include "confdefs.h"
3818 /* System header to define __stub macros and hopefully few prototypes,
3819 which can conflict with char mkstemp (); below. */
3821 /* Override any gcc2 internal prototype to avoid an error. */
3825 /* We use char because int might match the return type of a gcc2
3826 builtin and then its argument prototype would still apply. */
3833 /* The GNU C library defines this for functions which it implements
3834 to always fail with ENOSYS. Some functions are actually named
3835 something starting with __ and the normal name is an alias. */
3836 #if defined (__stub_mkstemp) || defined (__stub___mkstemp)
3839 f = mkstemp; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
3846 rm -f conftest.$ac_objext conftest$ac_exeext
3847 if { (eval echo "$as_me:3847: \"$ac_link\"") >&5
3848 (eval $ac_link) 2>&5
3850 echo "$as_me:3850: \$? = $ac_status" >&5
3851 (exit $ac_status); } &&
3852 { ac_try='test -s conftest$ac_exeext'
3853 { (eval echo "$as_me:3853: \"$ac_try\"") >&5
3856 echo "$as_me:3856: \$? = $ac_status" >&5
3857 (exit $ac_status); }; }; then
3858 ac_cv_func_mkstemp=yes
3860 echo "$as_me: failed program was:" >&5
3861 cat conftest.$ac_ext >&5
3862 ac_cv_func_mkstemp=no
3864 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3866 echo "$as_me:3866: result: $ac_cv_func_mkstemp" >&5
3867 echo "${ECHO_T}$ac_cv_func_mkstemp" >&6
3870 if test "x$cf_cv_func_mkstemp" = xyes || test "x$ac_cv_func_mkstemp" = xyes ; then
3872 cat >>confdefs.h <<\EOF
3873 #define HAVE_MKSTEMP 1
3879 if test "$GCC" = yes ; then
3880 echo "$as_me:3880: checking version of $CC" >&5
3881 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
3882 GCC_VERSION="`${CC} --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
3883 test -z "$GCC_VERSION" && GCC_VERSION=unknown
3884 echo "$as_me:3884: result: $GCC_VERSION" >&5
3885 echo "${ECHO_T}$GCC_VERSION" >&6
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; }