2 # From configure.in Revision: 1.21 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by Autoconf 2.52.20181006.
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"
109 # Factoring default headers for most tests.
110 ac_includes_default="\
113 # include <sys/types.h>
116 # include <sys/stat.h>
127 # if !STDC_HEADERS && HAVE_MEMORY_H
133 # include <strings.h>
136 # include <inttypes.h>
146 # Initialize some variables set by options.
148 ac_init_version=false
149 # The variables have the same names as the options, with
150 # dashes changed to underlines.
158 program_transform_name=s,x,x,
166 # Installation directory options.
167 # These are left unexpanded so users can "make install exec_prefix=/foo"
168 # and all the variables that are supposed to be based on exec_prefix
169 # by default will actually change.
170 # Use braces instead of parens because sh, perl, etc. also accept them.
171 bindir='${exec_prefix}/bin'
172 sbindir='${exec_prefix}/sbin'
173 libexecdir='${exec_prefix}/libexec'
174 datarootdir='${prefix}/share'
175 datadir='${datarootdir}'
176 sysconfdir='${prefix}/etc'
177 sharedstatedir='${prefix}/com'
178 localstatedir='${prefix}/var'
179 runstatedir='${localstatedir}/run'
180 libdir='${exec_prefix}/lib'
181 includedir='${prefix}/include'
182 oldincludedir='/usr/include'
183 infodir='${datarootdir}/info'
184 mandir='${datarootdir}/man'
186 # Identity of this package.
196 # If the previous option needs an argument, assign it.
197 if test -n "$ac_prev"; then
198 eval "$ac_prev=\$ac_option"
203 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
205 # Accept the important Cygnus configure options, so we can diagnose typos.
209 -bindir | --bindir | --bindi | --bind | --bin | --bi)
211 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
214 -build | --build | --buil | --bui | --bu)
215 ac_prev=build_alias ;;
216 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
217 build_alias=$ac_optarg ;;
219 -cache-file | --cache-file | --cache-fil | --cache-fi \
220 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
221 ac_prev=cache_file ;;
222 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
223 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
224 cache_file=$ac_optarg ;;
227 cache_file=config.cache ;;
229 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
231 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
233 datadir=$ac_optarg ;;
235 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
236 | --dataroo | --dataro | --datar)
237 ac_prev=datarootdir ;;
238 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
239 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
240 datarootdir=$ac_optarg ;;
242 -disable-* | --disable-*)
243 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
244 # Reject names that are not valid shell variable names.
245 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
246 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
247 { (exit 1); exit 1; }; }
248 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
249 eval "enable_$ac_feature=no" ;;
251 -enable-* | --enable-*)
252 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
253 # Reject names that are not valid shell variable names.
254 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
255 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
256 { (exit 1); exit 1; }; }
257 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
259 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
262 eval "enable_$ac_feature='$ac_optarg'" ;;
264 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
265 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
266 | --exec | --exe | --ex)
267 ac_prev=exec_prefix ;;
268 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
269 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
270 | --exec=* | --exe=* | --ex=*)
271 exec_prefix=$ac_optarg ;;
273 -gas | --gas | --ga | --g)
274 # Obsolete; use --with-gas.
277 -help | --help | --hel | --he | -h)
279 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
280 ac_init_help=recursive ;;
281 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
282 ac_init_help=short ;;
284 -host | --host | --hos | --ho)
285 ac_prev=host_alias ;;
286 -host=* | --host=* | --hos=* | --ho=*)
287 host_alias=$ac_optarg ;;
289 -includedir | --includedir | --includedi | --included | --include \
290 | --includ | --inclu | --incl | --inc)
291 ac_prev=includedir ;;
292 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
293 | --includ=* | --inclu=* | --incl=* | --inc=*)
294 includedir=$ac_optarg ;;
296 -infodir | --infodir | --infodi | --infod | --info | --inf)
298 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
299 infodir=$ac_optarg ;;
301 -libdir | --libdir | --libdi | --libd)
303 -libdir=* | --libdir=* | --libdi=* | --libd=*)
306 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
307 | --libexe | --libex | --libe)
308 ac_prev=libexecdir ;;
309 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
310 | --libexe=* | --libex=* | --libe=*)
311 libexecdir=$ac_optarg ;;
313 -localstatedir | --localstatedir | --localstatedi | --localstated \
314 | --localstate | --localstat | --localsta | --localst \
315 | --locals | --local | --loca | --loc | --lo)
316 ac_prev=localstatedir ;;
317 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
318 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
319 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
320 localstatedir=$ac_optarg ;;
322 -runstatedir | --runstatedir | --runstatedi | --runstated \
323 | --runstate | --runstat | --runsta | --runst \
324 | --runs | --run | --ru)
325 ac_prev=runstatedir ;;
326 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
327 | --runstate=* | --runstat=* | --runsta=* | --runst=* \
328 | --runs=* | --run=* | --ru=*)
329 runstatedir=$ac_optarg ;;
331 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
333 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
337 # Obsolete; use --without-fp.
340 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
344 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
345 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
348 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
349 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
350 | --oldin | --oldi | --old | --ol | --o)
351 ac_prev=oldincludedir ;;
352 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
353 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
354 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
355 oldincludedir=$ac_optarg ;;
357 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
359 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
362 -program-prefix | --program-prefix | --program-prefi | --program-pref \
363 | --program-pre | --program-pr | --program-p)
364 ac_prev=program_prefix ;;
365 -program-prefix=* | --program-prefix=* | --program-prefi=* \
366 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
367 program_prefix=$ac_optarg ;;
369 -program-suffix | --program-suffix | --program-suffi | --program-suff \
370 | --program-suf | --program-su | --program-s)
371 ac_prev=program_suffix ;;
372 -program-suffix=* | --program-suffix=* | --program-suffi=* \
373 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
374 program_suffix=$ac_optarg ;;
376 -program-transform-name | --program-transform-name \
377 | --program-transform-nam | --program-transform-na \
378 | --program-transform-n | --program-transform- \
379 | --program-transform | --program-transfor \
380 | --program-transfo | --program-transf \
381 | --program-trans | --program-tran \
382 | --progr-tra | --program-tr | --program-t)
383 ac_prev=program_transform_name ;;
384 -program-transform-name=* | --program-transform-name=* \
385 | --program-transform-nam=* | --program-transform-na=* \
386 | --program-transform-n=* | --program-transform-=* \
387 | --program-transform=* | --program-transfor=* \
388 | --program-transfo=* | --program-transf=* \
389 | --program-trans=* | --program-tran=* \
390 | --progr-tra=* | --program-tr=* | --program-t=*)
391 program_transform_name=$ac_optarg ;;
393 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
394 | -silent | --silent | --silen | --sile | --sil)
397 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
399 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
401 sbindir=$ac_optarg ;;
403 -sharedstatedir | --sharedstatedir | --sharedstatedi \
404 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
405 | --sharedst | --shareds | --shared | --share | --shar \
407 ac_prev=sharedstatedir ;;
408 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
409 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
410 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
412 sharedstatedir=$ac_optarg ;;
414 -site | --site | --sit)
416 -site=* | --site=* | --sit=*)
419 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
421 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
424 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
425 | --syscon | --sysco | --sysc | --sys | --sy)
426 ac_prev=sysconfdir ;;
427 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
428 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
429 sysconfdir=$ac_optarg ;;
431 -target | --target | --targe | --targ | --tar | --ta | --t)
432 ac_prev=target_alias ;;
433 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
434 target_alias=$ac_optarg ;;
436 -v | -verbose | --verbose | --verbos | --verbo | --verb)
439 -version | --version | --versio | --versi | --vers | -V)
443 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
444 # Reject names that are not valid shell variable names.
445 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
446 { echo "$as_me: error: invalid package name: $ac_package" >&2
447 { (exit 1); exit 1; }; }
448 ac_package=`echo $ac_package| sed 's/-/_/g'`
450 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
453 eval "with_$ac_package='$ac_optarg'" ;;
455 -without-* | --without-*)
456 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
457 # Reject names that are not valid shell variable names.
458 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
459 { echo "$as_me: error: invalid package name: $ac_package" >&2
460 { (exit 1); exit 1; }; }
461 ac_package=`echo $ac_package | sed 's/-/_/g'`
462 eval "with_$ac_package=no" ;;
465 # Obsolete; use --with-x.
468 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
469 | --x-incl | --x-inc | --x-in | --x-i)
470 ac_prev=x_includes ;;
471 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
472 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
473 x_includes=$ac_optarg ;;
475 -x-libraries | --x-libraries | --x-librarie | --x-librari \
476 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
477 ac_prev=x_libraries ;;
478 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
479 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
480 x_libraries=$ac_optarg ;;
482 -*) { echo "$as_me: error: unrecognized option: $ac_option
483 Try \`$0 --help' for more information." >&2
484 { (exit 1); exit 1; }; }
488 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
489 # Reject names that are not valid shell variable names.
490 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
491 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
492 { (exit 1); exit 1; }; }
493 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
494 eval "$ac_envvar='$ac_optarg'"
498 # FIXME: should be removed in autoconf 3.0.
499 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
500 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
501 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
502 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
508 if test -n "$ac_prev"; then
509 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
510 { echo "$as_me: error: missing argument to $ac_option" >&2
511 { (exit 1); exit 1; }; }
514 # Be sure to have absolute paths.
515 for ac_var in exec_prefix prefix
517 eval ac_val=$`echo $ac_var`
519 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
520 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
521 { (exit 1); exit 1; }; };;
525 # Be sure to have absolute paths.
526 for ac_var in bindir sbindir libexecdir datarootdir datadir sysconfdir sharedstatedir \
527 localstatedir libdir includedir oldincludedir infodir mandir
529 eval ac_val=$`echo $ac_var`
531 [\\/$]* | ?:[\\/]* ) ;;
532 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
533 { (exit 1); exit 1; }; };;
537 # There might be people who depend on the old broken behavior: `$host'
538 # used to hold the argument of --host etc.
543 # FIXME: should be removed in autoconf 3.0.
544 if test "x$host_alias" != x; then
545 if test "x$build_alias" = x; then
546 cross_compiling=maybe
547 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
548 If a cross compiler is detected then cross compile mode will be used." >&2
549 elif test "x$build_alias" != "x$host_alias"; then
555 test -n "$host_alias" && ac_tool_prefix=$host_alias-
557 test "$silent" = yes && exec 6>/dev/null
559 # Find the source files, if location was not specified.
560 if test -z "$srcdir"; then
561 ac_srcdir_defaulted=yes
562 # Try the directory containing this script, then its parent.
564 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
565 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
567 if test ! -r $srcdir/$ac_unique_file; then
571 ac_srcdir_defaulted=no
573 if test ! -r $srcdir/$ac_unique_file; then
574 if test "$ac_srcdir_defaulted" = yes; then
575 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
576 { (exit 1); exit 1; }; }
578 { echo "$as_me: error: cannot find sources in $srcdir" >&2
579 { (exit 1); exit 1; }; }
582 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
583 ac_env_build_alias_set=${build_alias+set}
584 ac_env_build_alias_value=$build_alias
585 ac_cv_env_build_alias_set=${build_alias+set}
586 ac_cv_env_build_alias_value=$build_alias
587 ac_env_host_alias_set=${host_alias+set}
588 ac_env_host_alias_value=$host_alias
589 ac_cv_env_host_alias_set=${host_alias+set}
590 ac_cv_env_host_alias_value=$host_alias
591 ac_env_target_alias_set=${target_alias+set}
592 ac_env_target_alias_value=$target_alias
593 ac_cv_env_target_alias_set=${target_alias+set}
594 ac_cv_env_target_alias_value=$target_alias
595 ac_env_CC_set=${CC+set}
597 ac_cv_env_CC_set=${CC+set}
598 ac_cv_env_CC_value=$CC
599 ac_env_CFLAGS_set=${CFLAGS+set}
600 ac_env_CFLAGS_value=$CFLAGS
601 ac_cv_env_CFLAGS_set=${CFLAGS+set}
602 ac_cv_env_CFLAGS_value=$CFLAGS
603 ac_env_LDFLAGS_set=${LDFLAGS+set}
604 ac_env_LDFLAGS_value=$LDFLAGS
605 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
606 ac_cv_env_LDFLAGS_value=$LDFLAGS
607 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
608 ac_env_CPPFLAGS_value=$CPPFLAGS
609 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
610 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
611 ac_env_CPP_set=${CPP+set}
612 ac_env_CPP_value=$CPP
613 ac_cv_env_CPP_set=${CPP+set}
614 ac_cv_env_CPP_value=$CPP
617 # Report the --help message.
619 if test "$ac_init_help" = "long"; then
620 # Omit some internal or obsolete options to make the list less imposing.
621 # This message is too long to be a string in the A/UX 3.1 sh.
623 \`configure' configures this package to adapt to many kinds of systems.
625 Usage: $0 [OPTION]... [VAR=VALUE]...
627 To assign environment variables (e.g., CC, CFLAGS...), specify them as
628 VAR=VALUE. See below for descriptions of some of the useful variables.
630 Defaults for the options are specified in brackets.
633 -h, --help display this help and exit
634 --help=short display options specific to this package
635 --help=recursive display the short help of all the included packages
636 -V, --version display version information and exit
637 -q, --quiet, --silent do not print \`checking...' messages
638 --cache-file=FILE cache test results in FILE [disabled]
639 -C, --config-cache alias for \`--cache-file=config.cache'
640 -n, --no-create do not create output files
641 --srcdir=DIR find the sources in DIR [configure dir or \`..']
646 Installation directories:
647 --prefix=PREFIX install architecture-independent files in PREFIX
649 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
652 By default, \`make install' will install all the files in
653 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
654 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
655 for instance \`--prefix=\$HOME'.
657 For better control, use the options below.
659 Fine tuning of the installation directories:
660 --bindir=DIR user executables [EPREFIX/bin]
661 --sbindir=DIR system admin executables [EPREFIX/sbin]
662 --libexecdir=DIR program executables [EPREFIX/libexec]
663 --datarootdir=DIR read-only architecture-independent data [PREFIX/share]
664 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
665 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
666 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
667 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
668 --runstatedir=DIR extra definition of runtime data [LOCALSTATEDIR/run]
669 --libdir=DIR object code libraries [EPREFIX/lib]
670 --includedir=DIR C header files [PREFIX/include]
671 --oldincludedir=DIR C header files for non-gcc [/usr/include]
672 --infodir=DIR info documentation [DATAROOTDIR/info]
673 --mandir=DIR man documentation [DATAROOTDIR/man]
679 --program-prefix=PREFIX prepend PREFIX to installed program names
680 --program-suffix=SUFFIX append SUFFIX to installed program names
681 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
684 --build=BUILD configure for building on BUILD [guessed]
685 --host=HOST build programs to run on HOST [BUILD]
686 --target=TARGET configure for building compilers for TARGET [HOST]
690 if test -n "$ac_init_help"; then
695 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
696 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
699 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
700 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
702 --with-max-table-size=N set the maximum table size = N (no default)
703 --enable-btyacc turn on support for the btyacc backtracking
704 extension (default: no)
705 --with-warnings test: turn on gcc warnings
706 --disable-echo do not display "compiling" commands
707 --with-dmalloc test: use Gray Watson's dmalloc library
708 --with-dbmalloc test: use Conor Cahill's dbmalloc library
709 --with-valgrind test: use valgrind
710 --disable-leaks test: free permanent memory, analyze leaks
711 --with-man2html=XXX use XXX rather than groff
713 Some influential environment variables:
714 CC C compiler command
715 CFLAGS C compiler flags
716 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
717 nonstandard directory <lib dir>
718 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
719 headers in a nonstandard directory <include dir>
722 Use these variables to override the choices made by `configure' or to help
723 it to find libraries and programs with nonstandard names/locations.
728 if test "$ac_init_help" = "recursive"; then
729 # If there are subdirs, report their specific --help.
731 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
733 # A "../" for each directory in /$ac_subdir.
734 ac_dots=`echo $ac_subdir |
735 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
738 .) # No --srcdir option. We are building in place.
739 ac_sub_srcdir=$srcdir ;;
740 [\\/]* | ?:[\\/]* ) # Absolute path.
741 ac_sub_srcdir=$srcdir/$ac_subdir ;;
743 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
746 # Check for guested configure; otherwise get Cygnus style configure.
747 if test -f $ac_sub_srcdir/configure.gnu; then
749 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
750 elif test -f $ac_sub_srcdir/configure; then
752 $SHELL $ac_sub_srcdir/configure --help=recursive
753 elif test -f $ac_sub_srcdir/configure.ac ||
754 test -f $ac_sub_srcdir/configure.in; then
758 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
764 test -n "$ac_init_help" && exit 0
765 if $ac_init_version; then
768 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
769 Free Software Foundation, Inc.
770 This configure script is free software; the Free Software Foundation
771 gives unlimited permission to copy, distribute and modify it.
777 This file contains any messages produced by compilers while
778 running configure, to aid debugging if configure makes a mistake.
780 It was created by $as_me, which was
781 generated by GNU Autoconf 2.52.20181006. Invocation command line was
792 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
793 uname -m = `(uname -m) 2>/dev/null || echo unknown`
794 uname -r = `(uname -r) 2>/dev/null || echo unknown`
795 uname -s = `(uname -s) 2>/dev/null || echo unknown`
796 uname -v = `(uname -v) 2>/dev/null || echo unknown`
798 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
799 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
801 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
802 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
803 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
804 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
805 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
806 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
807 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
821 # Keep a trace of the command line.
822 # Strip out --no-create and --no-recursion so they do not pile up.
823 # Also quote any args containing shell meta-characters.
829 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
830 | --no-cr | --no-c) ;;
831 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
832 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
833 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
834 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
835 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
837 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
840 # Get rid of the leading space.
843 # When interrupted or exit'd, cleanup temporary files, and complete
844 # config.log. We remove comments because anyway the quotes in there
845 # would cause problems or look ugly.
847 # Save into config.log some information that might help in debugging.
849 echo "## ----------------- ##" >&5
850 echo "## Cache variables. ##" >&5
851 echo "## ----------------- ##" >&5
853 # The following way of writing the cache mishandles newlines in values,
856 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
859 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
860 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
864 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
868 sed "/^$/d" confdefs.h >conftest.log
869 if test -s conftest.log; then
871 echo "## ------------ ##" >&5
872 echo "## confdefs.h. ##" >&5
873 echo "## ------------ ##" >&5
878 test "$ac_signal" != 0 &&
879 echo "$as_me: caught signal $ac_signal" >&5
880 echo "$as_me: exit $exit_status" >&5
881 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
884 for ac_signal in 1 2 13 15; do
885 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
889 # confdefs.h avoids OS command line length limits that DEFS can exceed.
890 rm -rf conftest* confdefs.h
891 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
894 # Let the site file select an alternate cache file if it wants to.
895 # Prefer explicitly selected file to automatically selected ones.
896 if test -z "$CONFIG_SITE"; then
897 if test "x$prefix" != xNONE; then
898 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
900 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
903 for ac_site_file in $CONFIG_SITE; do
904 if test -r "$ac_site_file"; then
905 { echo "$as_me:905: loading site script $ac_site_file" >&5
906 echo "$as_me: loading site script $ac_site_file" >&6;}
907 cat "$ac_site_file" >&5
912 if test -r "$cache_file"; then
913 # Some versions of bash will fail to source /dev/null (special
914 # files actually), so we avoid doing that.
915 if test -f "$cache_file"; then
916 { echo "$as_me:916: loading cache $cache_file" >&5
917 echo "$as_me: loading cache $cache_file" >&6;}
919 [\\/]* | ?:[\\/]* ) . $cache_file;;
924 { echo "$as_me:924: creating cache $cache_file" >&5
925 echo "$as_me: creating cache $cache_file" >&6;}
929 # Check that the precious variables saved in the cache have kept the same
931 ac_cache_corrupted=false
932 for ac_var in `(set) 2>&1 |
933 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
934 eval ac_old_set=\$ac_cv_env_${ac_var}_set
935 eval ac_new_set=\$ac_env_${ac_var}_set
936 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
937 eval ac_new_val="\$ac_env_${ac_var}_value"
938 case $ac_old_set,$ac_new_set in
940 { echo "$as_me:940: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
941 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
942 ac_cache_corrupted=: ;;
944 { echo "$as_me:944: error: \`$ac_var' was not set in the previous run" >&5
945 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
946 ac_cache_corrupted=: ;;
949 if test "x$ac_old_val" != "x$ac_new_val"; then
950 { echo "$as_me:950: error: \`$ac_var' has changed since the previous run:" >&5
951 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
952 { echo "$as_me:952: former value: $ac_old_val" >&5
953 echo "$as_me: former value: $ac_old_val" >&2;}
954 { echo "$as_me:954: current value: $ac_new_val" >&5
955 echo "$as_me: current value: $ac_new_val" >&2;}
959 # Pass precious variables to config.status. It doesn't matter if
960 # we pass some twice (in addition to the command line arguments).
961 if test "$ac_new_set" = set; then
963 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
964 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
965 ac_configure_args="$ac_configure_args '$ac_arg'"
967 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
972 if $ac_cache_corrupted; then
973 { echo "$as_me:973: error: changes in the environment can compromise the build" >&5
974 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
975 { { echo "$as_me:975: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
976 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
977 { (exit 1); exit 1; }; }
981 ac_cpp='$CPP $CPPFLAGS'
982 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
983 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
984 ac_compiler_gnu=$ac_cv_c_compiler_gnu
985 ac_main_return=return
987 case `echo "testing\c" 2>/dev/null; echo 1,2,3`,`echo -n testing 2>/dev/null; echo 1,2,3` in
988 *c*,-n*) ECHO_N= ECHO_C= # newlines do not sed ;-) only broken shells would use this case anyway
990 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
991 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
993 echo "#! $SHELL" >conftest.sh
994 echo "exit 0" >>conftest.sh
996 if { (echo "$as_me:996: PATH=\".;.\"; conftest.sh") >&5
997 (PATH=".;."; conftest.sh) 2>&5
999 echo "$as_me:999: \$? = $ac_status" >&5
1000 (exit $ac_status); }; then
1001 ac_path_separator=';'
1005 PATH_SEPARATOR="$ac_path_separator"
1008 ac_config_headers="$ac_config_headers config.h:config_h.in"
1011 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1012 if test -f $ac_dir/install-sh; then
1014 ac_install_sh="$ac_aux_dir/install-sh -c"
1016 elif test -f $ac_dir/install.sh; then
1018 ac_install_sh="$ac_aux_dir/install.sh -c"
1020 elif test -f $ac_dir/shtool; then
1022 ac_install_sh="$ac_aux_dir/shtool install -c"
1026 if test -z "$ac_aux_dir"; then
1027 { { echo "$as_me:1027: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1028 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1029 { (exit 1); exit 1; }; }
1031 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1032 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1033 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1035 # Make sure we can run config.sub.
1036 $ac_config_sub sun4 >/dev/null 2>&1 ||
1037 { { echo "$as_me:1037: error: cannot run $ac_config_sub" >&5
1038 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1039 { (exit 1); exit 1; }; }
1041 echo "$as_me:1041: checking build system type" >&5
1042 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1043 if test "${ac_cv_build+set}" = set; then
1044 echo $ECHO_N "(cached) $ECHO_C" >&6
1046 ac_cv_build_alias=$build_alias
1047 test -z "$ac_cv_build_alias" &&
1048 ac_cv_build_alias=`$ac_config_guess`
1049 test -z "$ac_cv_build_alias" &&
1050 { { echo "$as_me:1050: error: cannot guess build type; you must specify one" >&5
1051 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1052 { (exit 1); exit 1; }; }
1053 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1054 { { echo "$as_me:1054: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1055 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1056 { (exit 1); exit 1; }; }
1059 echo "$as_me:1059: result: $ac_cv_build" >&5
1060 echo "${ECHO_T}$ac_cv_build" >&6
1062 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1063 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1064 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1066 echo "$as_me:1066: checking host system type" >&5
1067 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1068 if test "${ac_cv_host+set}" = set; then
1069 echo $ECHO_N "(cached) $ECHO_C" >&6
1071 ac_cv_host_alias=$host_alias
1072 test -z "$ac_cv_host_alias" &&
1073 ac_cv_host_alias=$ac_cv_build_alias
1074 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1075 { { echo "$as_me:1075: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1076 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1077 { (exit 1); exit 1; }; }
1080 echo "$as_me:1080: result: $ac_cv_host" >&5
1081 echo "${ECHO_T}$ac_cv_host" >&6
1083 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1084 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1085 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1087 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1088 echo "$as_me:1088: checking target system type" >&5
1089 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1090 if test "${ac_cv_target+set}" = set; then
1091 echo $ECHO_N "(cached) $ECHO_C" >&6
1093 ac_cv_target_alias=$target_alias
1094 test "x$ac_cv_target_alias" = "x" &&
1095 ac_cv_target_alias=$ac_cv_host_alias
1096 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1097 { { echo "$as_me:1097: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1098 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1099 { (exit 1); exit 1; }; }
1102 echo "$as_me:1102: result: $ac_cv_target" >&5
1103 echo "${ECHO_T}$ac_cv_target" >&6
1104 target=$ac_cv_target
1105 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1106 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1107 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1109 # The aliases save the names the user supplied, while $host etc.
1110 # will get canonicalized.
1111 test -n "$target_alias" &&
1112 test "$program_prefix$program_suffix$program_transform_name" = \
1114 program_prefix=${target_alias}-
1115 system_name="$host_os"
1117 system_name="`(uname -s -r) 2>/dev/null`"
1118 if test -z "$system_name" ; then
1119 system_name="`(hostname) 2>/dev/null`"
1122 test -n "$system_name" &&
1123 cat >>confdefs.h <<EOF
1124 #define SYSTEM_NAME "$system_name"
1127 if test "${cf_cv_system_name+set}" = set; then
1128 echo $ECHO_N "(cached) $ECHO_C" >&6
1130 cf_cv_system_name="$system_name"
1133 test -z "$system_name" && system_name="$cf_cv_system_name"
1134 test -n "$cf_cv_system_name" && echo "$as_me:1134: result: Configuring for $cf_cv_system_name" >&5
1135 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1137 if test ".$system_name" != ".$cf_cv_system_name" ; then
1138 echo "$as_me:1138: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1139 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1140 { { echo "$as_me:1140: error: \"Please remove config.cache and try again.\"" >&5
1141 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1142 { (exit 1); exit 1; }; }
1145 test "$program_prefix" != NONE &&
1146 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1147 # Use a double $ so make ignores it.
1148 test "$program_suffix" != NONE &&
1149 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1150 # Double any \ or $. echo might interpret backslashes.
1151 # By default was `s,x,x', remove it if useless.
1152 cat <<\_ACEOF >conftest.sed
1153 s/[\\$]/&&/g;s/;s,x,x,$//
1155 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1159 ac_cpp='$CPP $CPPFLAGS'
1160 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1161 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1162 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1163 ac_main_return=return
1164 if test -n "$ac_tool_prefix"; then
1165 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1166 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1167 echo "$as_me:1167: checking for $ac_word" >&5
1168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1169 if test "${ac_cv_prog_CC+set}" = set; then
1170 echo $ECHO_N "(cached) $ECHO_C" >&6
1172 if test -n "$CC"; then
1173 ac_cv_prog_CC="$CC" # Let the user override the test.
1175 ac_save_IFS=$IFS; IFS=$ac_path_separator
1177 for ac_dir in $ac_dummy; do
1179 test -z "$ac_dir" && ac_dir=.
1180 $as_executable_p "$ac_dir/$ac_word" || continue
1181 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1182 echo "$as_me:1182: found $ac_dir/$ac_word" >&5
1189 if test -n "$CC"; then
1190 echo "$as_me:1190: result: $CC" >&5
1191 echo "${ECHO_T}$CC" >&6
1193 echo "$as_me:1193: result: no" >&5
1194 echo "${ECHO_T}no" >&6
1198 if test -z "$ac_cv_prog_CC"; then
1200 # Extract the first word of "gcc", so it can be a program name with args.
1201 set dummy gcc; ac_word=$2
1202 echo "$as_me:1202: checking for $ac_word" >&5
1203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1204 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1205 echo $ECHO_N "(cached) $ECHO_C" >&6
1207 if test -n "$ac_ct_CC"; then
1208 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1210 ac_save_IFS=$IFS; IFS=$ac_path_separator
1212 for ac_dir in $ac_dummy; do
1214 test -z "$ac_dir" && ac_dir=.
1215 $as_executable_p "$ac_dir/$ac_word" || continue
1216 ac_cv_prog_ac_ct_CC="gcc"
1217 echo "$as_me:1217: found $ac_dir/$ac_word" >&5
1223 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1224 if test -n "$ac_ct_CC"; then
1225 echo "$as_me:1225: result: $ac_ct_CC" >&5
1226 echo "${ECHO_T}$ac_ct_CC" >&6
1228 echo "$as_me:1228: result: no" >&5
1229 echo "${ECHO_T}no" >&6
1237 if test -z "$CC"; then
1238 if test -n "$ac_tool_prefix"; then
1239 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1240 set dummy ${ac_tool_prefix}cc; ac_word=$2
1241 echo "$as_me:1241: checking for $ac_word" >&5
1242 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1243 if test "${ac_cv_prog_CC+set}" = set; then
1244 echo $ECHO_N "(cached) $ECHO_C" >&6
1246 if test -n "$CC"; then
1247 ac_cv_prog_CC="$CC" # Let the user override the test.
1249 ac_save_IFS=$IFS; IFS=$ac_path_separator
1251 for ac_dir in $ac_dummy; do
1253 test -z "$ac_dir" && ac_dir=.
1254 $as_executable_p "$ac_dir/$ac_word" || continue
1255 ac_cv_prog_CC="${ac_tool_prefix}cc"
1256 echo "$as_me:1256: found $ac_dir/$ac_word" >&5
1263 if test -n "$CC"; then
1264 echo "$as_me:1264: result: $CC" >&5
1265 echo "${ECHO_T}$CC" >&6
1267 echo "$as_me:1267: result: no" >&5
1268 echo "${ECHO_T}no" >&6
1272 if test -z "$ac_cv_prog_CC"; then
1274 # Extract the first word of "cc", so it can be a program name with args.
1275 set dummy cc; ac_word=$2
1276 echo "$as_me:1276: checking for $ac_word" >&5
1277 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1278 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1279 echo $ECHO_N "(cached) $ECHO_C" >&6
1281 if test -n "$ac_ct_CC"; then
1282 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1284 ac_save_IFS=$IFS; IFS=$ac_path_separator
1286 for ac_dir in $ac_dummy; do
1288 test -z "$ac_dir" && ac_dir=.
1289 $as_executable_p "$ac_dir/$ac_word" || continue
1290 ac_cv_prog_ac_ct_CC="cc"
1291 echo "$as_me:1291: found $ac_dir/$ac_word" >&5
1297 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1298 if test -n "$ac_ct_CC"; then
1299 echo "$as_me:1299: result: $ac_ct_CC" >&5
1300 echo "${ECHO_T}$ac_ct_CC" >&6
1302 echo "$as_me:1302: result: no" >&5
1303 echo "${ECHO_T}no" >&6
1312 if test -z "$CC"; then
1313 # Extract the first word of "cc", so it can be a program name with args.
1314 set dummy cc; ac_word=$2
1315 echo "$as_me:1315: checking for $ac_word" >&5
1316 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1317 if test "${ac_cv_prog_CC+set}" = set; then
1318 echo $ECHO_N "(cached) $ECHO_C" >&6
1320 if test -n "$CC"; then
1321 ac_cv_prog_CC="$CC" # Let the user override the test.
1324 ac_save_IFS=$IFS; IFS=$ac_path_separator
1326 for ac_dir in $ac_dummy; do
1328 test -z "$ac_dir" && ac_dir=.
1329 $as_executable_p "$ac_dir/$ac_word" || continue
1330 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1331 ac_prog_rejected=yes
1335 echo "$as_me:1335: found $ac_dir/$ac_word" >&5
1339 if test $ac_prog_rejected = yes; then
1340 # We found a bogon in the path, so make sure we never use it.
1341 set dummy $ac_cv_prog_CC
1343 if test $# != 0; then
1344 # We chose a different compiler from the bogus one.
1345 # However, it has the same basename, so the bogon will be chosen
1346 # first if we set CC to just the basename; use the full file name.
1348 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1356 if test -n "$CC"; then
1357 echo "$as_me:1357: result: $CC" >&5
1358 echo "${ECHO_T}$CC" >&6
1360 echo "$as_me:1360: result: no" >&5
1361 echo "${ECHO_T}no" >&6
1365 if test -z "$CC"; then
1366 if test -n "$ac_tool_prefix"; then
1369 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1370 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1371 echo "$as_me:1371: checking for $ac_word" >&5
1372 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1373 if test "${ac_cv_prog_CC+set}" = set; then
1374 echo $ECHO_N "(cached) $ECHO_C" >&6
1376 if test -n "$CC"; then
1377 ac_cv_prog_CC="$CC" # Let the user override the test.
1379 ac_save_IFS=$IFS; IFS=$ac_path_separator
1381 for ac_dir in $ac_dummy; do
1383 test -z "$ac_dir" && ac_dir=.
1384 $as_executable_p "$ac_dir/$ac_word" || continue
1385 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1386 echo "$as_me:1386: found $ac_dir/$ac_word" >&5
1393 if test -n "$CC"; then
1394 echo "$as_me:1394: result: $CC" >&5
1395 echo "${ECHO_T}$CC" >&6
1397 echo "$as_me:1397: result: no" >&5
1398 echo "${ECHO_T}no" >&6
1401 test -n "$CC" && break
1404 if test -z "$CC"; then
1408 # Extract the first word of "$ac_prog", so it can be a program name with args.
1409 set dummy $ac_prog; ac_word=$2
1410 echo "$as_me:1410: checking for $ac_word" >&5
1411 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1412 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1413 echo $ECHO_N "(cached) $ECHO_C" >&6
1415 if test -n "$ac_ct_CC"; then
1416 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1418 ac_save_IFS=$IFS; IFS=$ac_path_separator
1420 for ac_dir in $ac_dummy; do
1422 test -z "$ac_dir" && ac_dir=.
1423 $as_executable_p "$ac_dir/$ac_word" || continue
1424 ac_cv_prog_ac_ct_CC="$ac_prog"
1425 echo "$as_me:1425: found $ac_dir/$ac_word" >&5
1431 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1432 if test -n "$ac_ct_CC"; then
1433 echo "$as_me:1433: result: $ac_ct_CC" >&5
1434 echo "${ECHO_T}$ac_ct_CC" >&6
1436 echo "$as_me:1436: result: no" >&5
1437 echo "${ECHO_T}no" >&6
1440 test -n "$ac_ct_CC" && break
1448 test -z "$CC" && { { echo "$as_me:1448: error: no acceptable cc found in \$PATH" >&5
1449 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1450 { (exit 1); exit 1; }; }
1452 # Provide some information about the compiler.
1453 echo "$as_me:1453:" \
1454 "checking for C compiler version" >&5
1455 ac_compiler=`set X $ac_compile; echo $2`
1456 { (eval echo "$as_me:1456: \"$ac_compiler --version </dev/null >&5\"") >&5
1457 (eval $ac_compiler --version </dev/null >&5) 2>&5
1459 echo "$as_me:1459: \$? = $ac_status" >&5
1460 (exit $ac_status); }
1461 { (eval echo "$as_me:1461: \"$ac_compiler -v </dev/null >&5\"") >&5
1462 (eval $ac_compiler -v </dev/null >&5) 2>&5
1464 echo "$as_me:1464: \$? = $ac_status" >&5
1465 (exit $ac_status); }
1466 { (eval echo "$as_me:1466: \"$ac_compiler -V </dev/null >&5\"") >&5
1467 (eval $ac_compiler -V </dev/null >&5) 2>&5
1469 echo "$as_me:1469: \$? = $ac_status" >&5
1470 (exit $ac_status); }
1472 cat >conftest.$ac_ext <<_ACEOF
1473 #line 1473 "configure"
1474 #include "confdefs.h"
1484 ac_clean_files_save=$ac_clean_files
1485 ac_clean_files="$ac_clean_files a.out a.exe"
1486 # Try to create an executable without -o first, disregard a.out.
1487 # It will help us diagnose broken compilers, and finding out an intuition
1489 echo "$as_me:1489: checking for C compiler default output" >&5
1490 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1491 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1492 if { (eval echo "$as_me:1492: \"$ac_link_default\"") >&5
1493 (eval $ac_link_default) 2>&5
1495 echo "$as_me:1495: \$? = $ac_status" >&5
1496 (exit $ac_status); }; then
1497 # Find the output, starting from the most likely. This scheme is
1498 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1500 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1501 ls a.out conftest 2>/dev/null;
1502 ls a.* conftest.* 2>/dev/null`; do
1504 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1505 a.out ) # We found the default executable, but exeext='' is most
1508 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1509 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1516 echo "$as_me: failed program was:" >&5
1517 cat conftest.$ac_ext >&5
1518 { { echo "$as_me:1518: error: C compiler cannot create executables" >&5
1519 echo "$as_me: error: C compiler cannot create executables" >&2;}
1520 { (exit 77); exit 77; }; }
1523 ac_exeext=$ac_cv_exeext
1524 echo "$as_me:1524: result: $ac_file" >&5
1525 echo "${ECHO_T}$ac_file" >&6
1527 # Check the compiler produces executables we can run. If not, either
1528 # the compiler is broken, or we cross compile.
1529 echo "$as_me:1529: checking whether the C compiler works" >&5
1530 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1531 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1532 # If not cross compiling, check that we can run a simple program.
1533 if test "$cross_compiling" != yes; then
1534 if { ac_try='./$ac_file'
1535 { (eval echo "$as_me:1535: \"$ac_try\"") >&5
1538 echo "$as_me:1538: \$? = $ac_status" >&5
1539 (exit $ac_status); }; }; then
1542 if test "$cross_compiling" = maybe; then
1545 { { echo "$as_me:1545: error: cannot run C compiled programs.
1546 If you meant to cross compile, use \`--host'." >&5
1547 echo "$as_me: error: cannot run C compiled programs.
1548 If you meant to cross compile, use \`--host'." >&2;}
1549 { (exit 1); exit 1; }; }
1553 echo "$as_me:1553: result: yes" >&5
1554 echo "${ECHO_T}yes" >&6
1556 rm -f a.out a.exe conftest$ac_cv_exeext
1557 ac_clean_files=$ac_clean_files_save
1558 # Check the compiler produces executables we can run. If not, either
1559 # the compiler is broken, or we cross compile.
1560 echo "$as_me:1560: checking whether we are cross compiling" >&5
1561 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1562 echo "$as_me:1562: result: $cross_compiling" >&5
1563 echo "${ECHO_T}$cross_compiling" >&6
1565 echo "$as_me:1565: checking for executable suffix" >&5
1566 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1567 if { (eval echo "$as_me:1567: \"$ac_link\"") >&5
1568 (eval $ac_link) 2>&5
1570 echo "$as_me:1570: \$? = $ac_status" >&5
1571 (exit $ac_status); }; then
1572 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1573 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1574 # work properly (i.e., refer to `conftest.exe'), while it won't with
1576 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1578 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1579 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1586 { { echo "$as_me:1586: error: cannot compute EXEEXT: cannot compile and link" >&5
1587 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1588 { (exit 1); exit 1; }; }
1591 rm -f conftest$ac_cv_exeext
1592 echo "$as_me:1592: result: $ac_cv_exeext" >&5
1593 echo "${ECHO_T}$ac_cv_exeext" >&6
1595 rm -f conftest.$ac_ext
1596 EXEEXT=$ac_cv_exeext
1598 echo "$as_me:1598: checking for object suffix" >&5
1599 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1600 if test "${ac_cv_objext+set}" = set; then
1601 echo $ECHO_N "(cached) $ECHO_C" >&6
1603 cat >conftest.$ac_ext <<_ACEOF
1604 #line 1604 "configure"
1605 #include "confdefs.h"
1615 rm -f conftest.o conftest.obj
1616 if { (eval echo "$as_me:1616: \"$ac_compile\"") >&5
1617 (eval $ac_compile) 2>&5
1619 echo "$as_me:1619: \$? = $ac_status" >&5
1620 (exit $ac_status); }; then
1621 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1623 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1624 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1629 echo "$as_me: failed program was:" >&5
1630 cat conftest.$ac_ext >&5
1631 { { echo "$as_me:1631: error: cannot compute OBJEXT: cannot compile" >&5
1632 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1633 { (exit 1); exit 1; }; }
1636 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1638 echo "$as_me:1638: result: $ac_cv_objext" >&5
1639 echo "${ECHO_T}$ac_cv_objext" >&6
1640 OBJEXT=$ac_cv_objext
1642 echo "$as_me:1642: checking whether we are using the GNU C compiler" >&5
1643 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1644 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1645 echo $ECHO_N "(cached) $ECHO_C" >&6
1647 cat >conftest.$ac_ext <<_ACEOF
1648 #line 1648 "configure"
1649 #include "confdefs.h"
1662 rm -f conftest.$ac_objext
1663 if { (eval echo "$as_me:1663: \"$ac_compile\"") >&5
1664 (eval $ac_compile) 2>&5
1666 echo "$as_me:1666: \$? = $ac_status" >&5
1667 (exit $ac_status); } &&
1668 { ac_try='test -s conftest.$ac_objext'
1669 { (eval echo "$as_me:1669: \"$ac_try\"") >&5
1672 echo "$as_me:1672: \$? = $ac_status" >&5
1673 (exit $ac_status); }; }; then
1676 echo "$as_me: failed program was:" >&5
1677 cat conftest.$ac_ext >&5
1680 rm -f conftest.$ac_objext conftest.$ac_ext
1681 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1684 echo "$as_me:1684: result: $ac_cv_c_compiler_gnu" >&5
1685 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1686 GCC=`test $ac_compiler_gnu = yes && echo yes`
1687 ac_test_CFLAGS=${CFLAGS+set}
1688 ac_save_CFLAGS=$CFLAGS
1690 echo "$as_me:1690: checking whether $CC accepts -g" >&5
1691 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1692 if test "${ac_cv_prog_cc_g+set}" = set; then
1693 echo $ECHO_N "(cached) $ECHO_C" >&6
1695 cat >conftest.$ac_ext <<_ACEOF
1696 #line 1696 "configure"
1697 #include "confdefs.h"
1707 rm -f conftest.$ac_objext
1708 if { (eval echo "$as_me:1708: \"$ac_compile\"") >&5
1709 (eval $ac_compile) 2>&5
1711 echo "$as_me:1711: \$? = $ac_status" >&5
1712 (exit $ac_status); } &&
1713 { ac_try='test -s conftest.$ac_objext'
1714 { (eval echo "$as_me:1714: \"$ac_try\"") >&5
1717 echo "$as_me:1717: \$? = $ac_status" >&5
1718 (exit $ac_status); }; }; then
1721 echo "$as_me: failed program was:" >&5
1722 cat conftest.$ac_ext >&5
1725 rm -f conftest.$ac_objext conftest.$ac_ext
1727 echo "$as_me:1727: result: $ac_cv_prog_cc_g" >&5
1728 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1729 if test "$ac_test_CFLAGS" = set; then
1730 CFLAGS=$ac_save_CFLAGS
1731 elif test $ac_cv_prog_cc_g = yes; then
1732 if test "$GCC" = yes; then
1738 if test "$GCC" = yes; then
1744 # Some people use a C++ compiler to compile C. Since we use `exit',
1745 # in C++ we need to declare it. In case someone uses the same compiler
1746 # for both compiling C and C++ we need to have the C++ compiler decide
1747 # the declaration of exit, since it's the most demanding environment.
1748 cat >conftest.$ac_ext <<_ACEOF
1753 rm -f conftest.$ac_objext
1754 if { (eval echo "$as_me:1754: \"$ac_compile\"") >&5
1755 (eval $ac_compile) 2>&5
1757 echo "$as_me:1757: \$? = $ac_status" >&5
1758 (exit $ac_status); } &&
1759 { ac_try='test -s conftest.$ac_objext'
1760 { (eval echo "$as_me:1760: \"$ac_try\"") >&5
1763 echo "$as_me:1763: \$? = $ac_status" >&5
1764 (exit $ac_status); }; }; then
1765 for ac_declaration in \
1767 '#include <stdlib.h>' \
1768 'extern "C" void std::exit (int) throw (); using std::exit;' \
1769 'extern "C" void std::exit (int); using std::exit;' \
1770 'extern "C" void exit (int) throw ();' \
1771 'extern "C" void exit (int);' \
1774 cat >conftest.$ac_ext <<_ACEOF
1775 #line 1775 "configure"
1776 #include "confdefs.h"
1787 rm -f conftest.$ac_objext
1788 if { (eval echo "$as_me:1788: \"$ac_compile\"") >&5
1789 (eval $ac_compile) 2>&5
1791 echo "$as_me:1791: \$? = $ac_status" >&5
1792 (exit $ac_status); } &&
1793 { ac_try='test -s conftest.$ac_objext'
1794 { (eval echo "$as_me:1794: \"$ac_try\"") >&5
1797 echo "$as_me:1797: \$? = $ac_status" >&5
1798 (exit $ac_status); }; }; then
1801 echo "$as_me: failed program was:" >&5
1802 cat conftest.$ac_ext >&5
1805 rm -f conftest.$ac_objext conftest.$ac_ext
1806 cat >conftest.$ac_ext <<_ACEOF
1807 #line 1807 "configure"
1808 #include "confdefs.h"
1818 rm -f conftest.$ac_objext
1819 if { (eval echo "$as_me:1819: \"$ac_compile\"") >&5
1820 (eval $ac_compile) 2>&5
1822 echo "$as_me:1822: \$? = $ac_status" >&5
1823 (exit $ac_status); } &&
1824 { ac_try='test -s conftest.$ac_objext'
1825 { (eval echo "$as_me:1825: \"$ac_try\"") >&5
1828 echo "$as_me:1828: \$? = $ac_status" >&5
1829 (exit $ac_status); }; }; then
1832 echo "$as_me: failed program was:" >&5
1833 cat conftest.$ac_ext >&5
1835 rm -f conftest.$ac_objext conftest.$ac_ext
1838 if test -n "$ac_declaration"; then
1839 echo '#ifdef __cplusplus' >>confdefs.h
1840 echo $ac_declaration >>confdefs.h
1841 echo '#endif' >>confdefs.h
1845 echo "$as_me: failed program was:" >&5
1846 cat conftest.$ac_ext >&5
1848 rm -f conftest.$ac_objext conftest.$ac_ext
1850 ac_cpp='$CPP $CPPFLAGS'
1851 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1852 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1853 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1854 ac_main_return=return
1857 if test "$GCC" = yes ; then
1858 echo "$as_me:1858: checking version of $CC" >&5
1859 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
1860 GCC_VERSION="`${CC} --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(GCC[^)]*) //' -e 's/^.*(Debian[^)]*) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
1861 test -z "$GCC_VERSION" && GCC_VERSION=unknown
1862 echo "$as_me:1862: result: $GCC_VERSION" >&5
1863 echo "${ECHO_T}$GCC_VERSION" >&6
1866 echo "$as_me:1866: checking for $CC option to accept ANSI C" >&5
1867 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1868 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1869 echo $ECHO_N "(cached) $ECHO_C" >&6
1871 ac_cv_prog_cc_stdc=no
1873 cat >conftest.$ac_ext <<_ACEOF
1874 #line 1874 "configure"
1875 #include "confdefs.h"
1878 #include <sys/types.h>
1879 #include <sys/stat.h>
1880 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1881 struct buf { int x; };
1882 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1883 static char *e (p, i)
1889 static char *f (char * (*g) (char **, int), char **p, ...)
1894 s = g (p, va_arg (v,int));
1898 int test (int i, double x);
1899 struct s1 {int (*f) (int a);};
1900 struct s2 {int (*f) (double a);};
1901 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1907 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1912 # Don't try gcc -ansi; that turns off useful extensions and
1913 # breaks some systems' header files.
1914 # AIX -qlanglvl=ansi
1915 # Ultrix and OSF/1 -std1
1916 # HP-UX 10.20 and later -Ae
1917 # HP-UX older versions -Aa -D_HPUX_SOURCE
1918 # SVR4 -Xc -D__EXTENSIONS__
1919 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1921 CC="$ac_save_CC $ac_arg"
1922 rm -f conftest.$ac_objext
1923 if { (eval echo "$as_me:1923: \"$ac_compile\"") >&5
1924 (eval $ac_compile) 2>&5
1926 echo "$as_me:1926: \$? = $ac_status" >&5
1927 (exit $ac_status); } &&
1928 { ac_try='test -s conftest.$ac_objext'
1929 { (eval echo "$as_me:1929: \"$ac_try\"") >&5
1932 echo "$as_me:1932: \$? = $ac_status" >&5
1933 (exit $ac_status); }; }; then
1934 ac_cv_prog_cc_stdc=$ac_arg
1937 echo "$as_me: failed program was:" >&5
1938 cat conftest.$ac_ext >&5
1940 rm -f conftest.$ac_objext
1942 rm -f conftest.$ac_ext conftest.$ac_objext
1947 case "x$ac_cv_prog_cc_stdc" in
1949 echo "$as_me:1949: result: none needed" >&5
1950 echo "${ECHO_T}none needed" >&6 ;;
1952 echo "$as_me:1952: result: $ac_cv_prog_cc_stdc" >&5
1953 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
1954 CC="$CC $ac_cv_prog_cc_stdc" ;;
1957 # This should have been defined by AC_PROG_CC
1960 echo "$as_me:1960: checking \$CFLAGS variable" >&5
1961 echo $ECHO_N "checking \$CFLAGS variable... $ECHO_C" >&6
1964 echo "$as_me:1964: result: broken" >&5
1965 echo "${ECHO_T}broken" >&6
1966 { echo "$as_me:1966: WARNING: your environment uses the CFLAGS variable to hold CPPFLAGS options" >&5
1967 echo "$as_me: WARNING: your environment uses the CFLAGS variable to hold CPPFLAGS options" >&2;}
1970 for cf_arg in $cf_flags
1976 cf_new_extra_cppflags=
1978 for cf_add_cflags in $cf_arg
1980 case $cf_fix_cppflags in
1982 case $cf_add_cflags in
1983 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
1984 case $cf_add_cflags in
1986 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
1988 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
1989 && test -z "${cf_tst_cflags}" \
1990 && cf_fix_cppflags=yes
1992 if test $cf_fix_cppflags = yes ; then
1994 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
1995 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
1998 elif test "${cf_tst_cflags}" = "\"'" ; then
2000 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2001 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2011 case $cf_add_cflags in
2013 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2015 CPPFLAGS=`echo "$CPPFLAGS" | \
2016 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2017 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2022 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
2023 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
2030 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
2031 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
2038 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2039 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2041 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2043 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2044 && test -z "${cf_tst_cflags}" \
2045 && cf_fix_cppflags=no
2050 if test -n "$cf_new_cflags" ; then
2052 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
2053 CFLAGS="${CFLAGS}$cf_new_cflags"
2057 if test -n "$cf_new_cppflags" ; then
2059 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
2060 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
2064 if test -n "$cf_new_extra_cppflags" ; then
2066 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
2067 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
2074 echo "$as_me:2074: result: ok" >&5
2075 echo "${ECHO_T}ok" >&6
2079 echo "$as_me:2079: checking \$CC variable" >&5
2080 echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
2083 echo "$as_me:2083: result: broken" >&5
2084 echo "${ECHO_T}broken" >&6
2085 { echo "$as_me:2085: WARNING: your environment uses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
2086 echo "$as_me: WARNING: your environment uses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
2088 cf_prog=`echo "$CC" | sed -e 's/ / /g' -e 's/[ ]* / /g' -e 's/[ ]*[ ]-[^ ].*//'`
2089 cf_flags=`echo "$CC" | ${AWK:-awk} -v prog="$cf_prog" '{ printf("%s", substr($0,1+length(prog))); }'`
2091 for cf_arg in $cf_flags
2099 cf_new_extra_cppflags=
2101 for cf_add_cflags in $cf_arg
2103 case $cf_fix_cppflags in
2105 case $cf_add_cflags in
2106 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
2107 case $cf_add_cflags in
2109 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2111 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2112 && test -z "${cf_tst_cflags}" \
2113 && cf_fix_cppflags=yes
2115 if test $cf_fix_cppflags = yes ; then
2117 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2118 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2121 elif test "${cf_tst_cflags}" = "\"'" ; then
2123 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2124 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2134 case $cf_add_cflags in
2136 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2138 CPPFLAGS=`echo "$CPPFLAGS" | \
2139 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2140 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2145 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
2146 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
2153 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
2154 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
2161 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2162 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2164 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2166 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2167 && test -z "${cf_tst_cflags}" \
2168 && cf_fix_cppflags=no
2173 if test -n "$cf_new_cflags" ; then
2175 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
2176 CFLAGS="${CFLAGS}$cf_new_cflags"
2180 if test -n "$cf_new_cppflags" ; then
2182 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
2183 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
2187 if test -n "$cf_new_extra_cppflags" ; then
2189 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
2190 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
2200 test -n "$verbose" && echo " resulting CC: '$CC'" 1>&6
2202 echo "${as_me:-configure}:2202: testing resulting CC: '$CC' ..." 1>&5
2204 test -n "$verbose" && echo " resulting CFLAGS: '$CFLAGS'" 1>&6
2206 echo "${as_me:-configure}:2206: testing resulting CFLAGS: '$CFLAGS' ..." 1>&5
2208 test -n "$verbose" && echo " resulting CPPFLAGS: '$CPPFLAGS'" 1>&6
2210 echo "${as_me:-configure}:2210: testing resulting CPPFLAGS: '$CPPFLAGS' ..." 1>&5
2214 echo "$as_me:2214: result: ok" >&5
2215 echo "${ECHO_T}ok" >&6
2219 echo "$as_me:2219: checking whether ${MAKE-make} sets \${MAKE}" >&5
2220 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
2221 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
2222 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2223 echo $ECHO_N "(cached) $ECHO_C" >&6
2225 cat >conftest.make <<\EOF
2227 @echo 'ac_maketemp="${MAKE}"'
2229 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2230 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2231 if test -n "$ac_maketemp"; then
2232 eval ac_cv_prog_make_${ac_make}_set=yes
2234 eval ac_cv_prog_make_${ac_make}_set=no
2238 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2239 echo "$as_me:2239: result: yes" >&5
2240 echo "${ECHO_T}yes" >&6
2243 echo "$as_me:2243: result: no" >&5
2244 echo "${ECHO_T}no" >&6
2245 SET_MAKE="MAKE=${MAKE-make}"
2248 # Find a good install program. We prefer a C program (faster),
2249 # so one script is as good as another. But avoid the broken or
2250 # incompatible versions:
2251 # SysV /etc/install, /usr/sbin/install
2252 # SunOS /usr/etc/install
2253 # IRIX /sbin/install
2255 # AmigaOS /C/install, which installs bootblocks on floppy discs
2256 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2257 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2258 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2259 # ./install, which can be erroneously created by make from ./install.sh.
2260 echo "$as_me:2260: checking for a BSD compatible install" >&5
2261 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
2262 if test -z "$INSTALL"; then
2263 if test "${ac_cv_path_install+set}" = set; then
2264 echo $ECHO_N "(cached) $ECHO_C" >&6
2266 ac_save_IFS=$IFS; IFS=$ac_path_separator
2267 for ac_dir in $PATH; do
2269 # Account for people who put trailing slashes in PATH elements.
2271 / | ./ | .// | /cC/* \
2272 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
2275 # OSF1 and SCO ODT 3.0 have their own names for install.
2276 # Don't use installbsd from OSF since it installs stuff as root
2278 for ac_prog in ginstall scoinst install; do
2279 if $as_executable_p "$ac_dir/$ac_prog"; then
2280 if test $ac_prog = install &&
2281 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2282 # AIX install. It has an incompatible calling convention.
2284 elif test $ac_prog = install &&
2285 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2286 # program-specific install script used by HP pwplus--don't use.
2289 ac_cv_path_install="$ac_dir/$ac_prog -c"
2299 if test "${ac_cv_path_install+set}" = set; then
2300 INSTALL=$ac_cv_path_install
2302 # As a last resort, use the slow shell script. We don't cache a
2303 # path for INSTALL within a source directory, because that will
2304 # break other packages using the cache if that directory is
2305 # removed, or if the path is relative.
2306 INSTALL=$ac_install_sh
2309 echo "$as_me:2309: result: $INSTALL" >&5
2310 echo "${ECHO_T}$INSTALL" >&6
2312 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2313 # It thinks the first close brace ends the variable substitution.
2314 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2316 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2318 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2320 echo "$as_me:2320: checking if filesystem supports mixed-case filenames" >&5
2321 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
2322 if test "${cf_cv_mixedcase+set}" = set; then
2323 echo $ECHO_N "(cached) $ECHO_C" >&6
2326 if test "$cross_compiling" = yes ; then
2327 case $target_alias in
2328 (*-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-msys*|*-mingw*|*-uwin*)
2336 rm -f conftest CONFTEST
2338 if test -f CONFTEST ; then
2343 rm -f conftest CONFTEST
2347 echo "$as_me:2347: result: $cf_cv_mixedcase" >&5
2348 echo "${ECHO_T}$cf_cv_mixedcase" >&6
2349 test "$cf_cv_mixedcase" = yes &&
2350 cat >>confdefs.h <<\EOF
2351 #define MIXEDCASE_FILENAMES 1
2354 for ac_prog in exctags ctags
2356 # Extract the first word of "$ac_prog", so it can be a program name with args.
2357 set dummy $ac_prog; ac_word=$2
2358 echo "$as_me:2358: checking for $ac_word" >&5
2359 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2360 if test "${ac_cv_prog_CTAGS+set}" = set; then
2361 echo $ECHO_N "(cached) $ECHO_C" >&6
2363 if test -n "$CTAGS"; then
2364 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
2366 ac_save_IFS=$IFS; IFS=$ac_path_separator
2368 for ac_dir in $ac_dummy; do
2370 test -z "$ac_dir" && ac_dir=.
2371 $as_executable_p "$ac_dir/$ac_word" || continue
2372 ac_cv_prog_CTAGS="$ac_prog"
2373 echo "$as_me:2373: found $ac_dir/$ac_word" >&5
2379 CTAGS=$ac_cv_prog_CTAGS
2380 if test -n "$CTAGS"; then
2381 echo "$as_me:2381: result: $CTAGS" >&5
2382 echo "${ECHO_T}$CTAGS" >&6
2384 echo "$as_me:2384: result: no" >&5
2385 echo "${ECHO_T}no" >&6
2388 test -n "$CTAGS" && break
2391 for ac_prog in exetags etags
2393 # Extract the first word of "$ac_prog", so it can be a program name with args.
2394 set dummy $ac_prog; ac_word=$2
2395 echo "$as_me:2395: checking for $ac_word" >&5
2396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2397 if test "${ac_cv_prog_ETAGS+set}" = set; then
2398 echo $ECHO_N "(cached) $ECHO_C" >&6
2400 if test -n "$ETAGS"; then
2401 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
2403 ac_save_IFS=$IFS; IFS=$ac_path_separator
2405 for ac_dir in $ac_dummy; do
2407 test -z "$ac_dir" && ac_dir=.
2408 $as_executable_p "$ac_dir/$ac_word" || continue
2409 ac_cv_prog_ETAGS="$ac_prog"
2410 echo "$as_me:2410: found $ac_dir/$ac_word" >&5
2416 ETAGS=$ac_cv_prog_ETAGS
2417 if test -n "$ETAGS"; then
2418 echo "$as_me:2418: result: $ETAGS" >&5
2419 echo "${ECHO_T}$ETAGS" >&6
2421 echo "$as_me:2421: result: no" >&5
2422 echo "${ECHO_T}no" >&6
2425 test -n "$ETAGS" && break
2428 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
2429 set dummy ${CTAGS:-ctags}; ac_word=$2
2430 echo "$as_me:2430: checking for $ac_word" >&5
2431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2432 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
2433 echo $ECHO_N "(cached) $ECHO_C" >&6
2435 if test -n "$MAKE_LOWER_TAGS"; then
2436 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
2438 ac_save_IFS=$IFS; IFS=$ac_path_separator
2440 for ac_dir in $ac_dummy; do
2442 test -z "$ac_dir" && ac_dir=.
2443 $as_executable_p "$ac_dir/$ac_word" || continue
2444 ac_cv_prog_MAKE_LOWER_TAGS="yes"
2445 echo "$as_me:2445: found $ac_dir/$ac_word" >&5
2449 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
2452 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
2453 if test -n "$MAKE_LOWER_TAGS"; then
2454 echo "$as_me:2454: result: $MAKE_LOWER_TAGS" >&5
2455 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
2457 echo "$as_me:2457: result: no" >&5
2458 echo "${ECHO_T}no" >&6
2461 if test "$cf_cv_mixedcase" = yes ; then
2462 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
2463 set dummy ${ETAGS:-etags}; ac_word=$2
2464 echo "$as_me:2464: checking for $ac_word" >&5
2465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2466 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
2467 echo $ECHO_N "(cached) $ECHO_C" >&6
2469 if test -n "$MAKE_UPPER_TAGS"; then
2470 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
2472 ac_save_IFS=$IFS; IFS=$ac_path_separator
2474 for ac_dir in $ac_dummy; do
2476 test -z "$ac_dir" && ac_dir=.
2477 $as_executable_p "$ac_dir/$ac_word" || continue
2478 ac_cv_prog_MAKE_UPPER_TAGS="yes"
2479 echo "$as_me:2479: found $ac_dir/$ac_word" >&5
2483 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
2486 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
2487 if test -n "$MAKE_UPPER_TAGS"; then
2488 echo "$as_me:2488: result: $MAKE_UPPER_TAGS" >&5
2489 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
2491 echo "$as_me:2491: result: no" >&5
2492 echo "${ECHO_T}no" >&6
2499 if test "$MAKE_UPPER_TAGS" = yes ; then
2505 if test "$MAKE_LOWER_TAGS" = yes ; then
2511 for ac_prog in mawk gawk nawk awk
2513 # Extract the first word of "$ac_prog", so it can be a program name with args.
2514 set dummy $ac_prog; ac_word=$2
2515 echo "$as_me:2515: checking for $ac_word" >&5
2516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2517 if test "${ac_cv_prog_AWK+set}" = set; then
2518 echo $ECHO_N "(cached) $ECHO_C" >&6
2520 if test -n "$AWK"; then
2521 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2523 ac_save_IFS=$IFS; IFS=$ac_path_separator
2525 for ac_dir in $ac_dummy; do
2527 test -z "$ac_dir" && ac_dir=.
2528 $as_executable_p "$ac_dir/$ac_word" || continue
2529 ac_cv_prog_AWK="$ac_prog"
2530 echo "$as_me:2530: found $ac_dir/$ac_word" >&5
2537 if test -n "$AWK"; then
2538 echo "$as_me:2538: result: $AWK" >&5
2539 echo "${ECHO_T}$AWK" >&6
2541 echo "$as_me:2541: result: no" >&5
2542 echo "${ECHO_T}no" >&6
2545 test -n "$AWK" && break
2548 test -z "$AWK" && { { echo "$as_me:2548: error: No awk program found" >&5
2549 echo "$as_me: error: No awk program found" >&2;}
2550 { (exit 1); exit 1; }; }
2552 for ac_prog in lint cppcheck splint
2554 # Extract the first word of "$ac_prog", so it can be a program name with args.
2555 set dummy $ac_prog; ac_word=$2
2556 echo "$as_me:2556: checking for $ac_word" >&5
2557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2558 if test "${ac_cv_prog_LINT+set}" = set; then
2559 echo $ECHO_N "(cached) $ECHO_C" >&6
2561 if test -n "$LINT"; then
2562 ac_cv_prog_LINT="$LINT" # Let the user override the test.
2564 ac_save_IFS=$IFS; IFS=$ac_path_separator
2566 for ac_dir in $ac_dummy; do
2568 test -z "$ac_dir" && ac_dir=.
2569 $as_executable_p "$ac_dir/$ac_word" || continue
2570 ac_cv_prog_LINT="$ac_prog"
2571 echo "$as_me:2571: found $ac_dir/$ac_word" >&5
2577 LINT=$ac_cv_prog_LINT
2578 if test -n "$LINT"; then
2579 echo "$as_me:2579: result: $LINT" >&5
2580 echo "${ECHO_T}$LINT" >&6
2582 echo "$as_me:2582: result: no" >&5
2583 echo "${ECHO_T}no" >&6
2586 test -n "$LINT" && break
2589 echo "$as_me:2589: checking if the POSIX test-macros are already defined" >&5
2590 echo $ECHO_N "checking if the POSIX test-macros are already defined... $ECHO_C" >&6
2591 if test "${cf_cv_posix_visible+set}" = set; then
2592 echo $ECHO_N "(cached) $ECHO_C" >&6
2595 cat >conftest.$ac_ext <<_ACEOF
2596 #line 2596 "configure"
2597 #include "confdefs.h"
2603 #if defined(__POSIX_VISIBLE) && ((__POSIX_VISIBLE - 0L) > 0) \
2604 && defined(__XSI_VISIBLE) && ((__XSI_VISIBLE - 0L) > 0) \
2605 && defined(__BSD_VISIBLE) && ((__BSD_VISIBLE - 0L) > 0) \
2606 && defined(__ISO_C_VISIBLE) && ((__ISO_C_VISIBLE - 0L) > 0)
2607 #error conflicting symbols found
2614 rm -f conftest.$ac_objext
2615 if { (eval echo "$as_me:2615: \"$ac_compile\"") >&5
2616 (eval $ac_compile) 2>&5
2618 echo "$as_me:2618: \$? = $ac_status" >&5
2619 (exit $ac_status); } &&
2620 { ac_try='test -s conftest.$ac_objext'
2621 { (eval echo "$as_me:2621: \"$ac_try\"") >&5
2624 echo "$as_me:2624: \$? = $ac_status" >&5
2625 (exit $ac_status); }; }; then
2626 cf_cv_posix_visible=no
2628 echo "$as_me: failed program was:" >&5
2629 cat conftest.$ac_ext >&5
2630 cf_cv_posix_visible=yes
2632 rm -f conftest.$ac_objext conftest.$ac_ext
2635 echo "$as_me:2635: result: $cf_cv_posix_visible" >&5
2636 echo "${ECHO_T}$cf_cv_posix_visible" >&6
2638 if test "$cf_cv_posix_visible" = no; then
2641 cf_POSIX_C_SOURCE=199506L
2646 cf_xopen_source="-D_ALL_SOURCE"
2652 cf_xopen_source="-D_APPLE_C_SOURCE"
2655 cf_xopen_source="-D_DARWIN_C_SOURCE"
2658 (freebsd*|dragonfly*|midnightbsd*)
2659 # 5.x headers associate
2660 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
2661 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
2662 cf_POSIX_C_SOURCE=200112L
2664 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
2667 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
2670 cf_xopen_source="-D_HPUX_SOURCE"
2673 cf_xopen_source="-D_SGI_SOURCE"
2676 (linux*|uclinux*|gnu*|mint*|k*bsd*-gnu|cygwin)
2678 cf_gnu_xopen_source=$cf_XOPEN_SOURCE
2680 echo "$as_me:2680: checking if this is the GNU C library" >&5
2681 echo $ECHO_N "checking if this is the GNU C library... $ECHO_C" >&6
2682 if test "${cf_cv_gnu_library+set}" = set; then
2683 echo $ECHO_N "(cached) $ECHO_C" >&6
2686 cat >conftest.$ac_ext <<_ACEOF
2687 #line 2687 "configure"
2688 #include "confdefs.h"
2689 #include <sys/types.h>
2694 #if __GLIBC__ > 0 && __GLIBC_MINOR__ >= 0
2696 #elif __NEWLIB__ > 0 && __NEWLIB_MINOR__ >= 0
2699 # error not GNU C library
2705 rm -f conftest.$ac_objext
2706 if { (eval echo "$as_me:2706: \"$ac_compile\"") >&5
2707 (eval $ac_compile) 2>&5
2709 echo "$as_me:2709: \$? = $ac_status" >&5
2710 (exit $ac_status); } &&
2711 { ac_try='test -s conftest.$ac_objext'
2712 { (eval echo "$as_me:2712: \"$ac_try\"") >&5
2715 echo "$as_me:2715: \$? = $ac_status" >&5
2716 (exit $ac_status); }; }; then
2717 cf_cv_gnu_library=yes
2719 echo "$as_me: failed program was:" >&5
2720 cat conftest.$ac_ext >&5
2721 cf_cv_gnu_library=no
2723 rm -f conftest.$ac_objext conftest.$ac_ext
2726 echo "$as_me:2726: result: $cf_cv_gnu_library" >&5
2727 echo "${ECHO_T}$cf_cv_gnu_library" >&6
2729 if test x$cf_cv_gnu_library = xyes; then
2731 # With glibc 2.19 (13 years after this check was begun), _DEFAULT_SOURCE
2732 # was changed to help a little. newlib incorporated the change about 4
2734 echo "$as_me:2734: checking if _DEFAULT_SOURCE can be used as a basis" >&5
2735 echo $ECHO_N "checking if _DEFAULT_SOURCE can be used as a basis... $ECHO_C" >&6
2736 if test "${cf_cv_gnu_library_219+set}" = set; then
2737 echo $ECHO_N "(cached) $ECHO_C" >&6
2742 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
2743 CPPFLAGS="${CPPFLAGS}-D_DEFAULT_SOURCE"
2745 cat >conftest.$ac_ext <<_ACEOF
2746 #line 2746 "configure"
2747 #include "confdefs.h"
2748 #include <sys/types.h>
2753 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 19) || (__GLIBC__ > 2)
2755 #elif (__NEWLIB__ == 2 && __NEWLIB_MINOR__ >= 4) || (__GLIBC__ > 3)
2758 # error GNU C library __GLIBC__.__GLIBC_MINOR__ is too old
2764 rm -f conftest.$ac_objext
2765 if { (eval echo "$as_me:2765: \"$ac_compile\"") >&5
2766 (eval $ac_compile) 2>&5
2768 echo "$as_me:2768: \$? = $ac_status" >&5
2769 (exit $ac_status); } &&
2770 { ac_try='test -s conftest.$ac_objext'
2771 { (eval echo "$as_me:2771: \"$ac_try\"") >&5
2774 echo "$as_me:2774: \$? = $ac_status" >&5
2775 (exit $ac_status); }; }; then
2776 cf_cv_gnu_library_219=yes
2778 echo "$as_me: failed program was:" >&5
2779 cat conftest.$ac_ext >&5
2780 cf_cv_gnu_library_219=no
2782 rm -f conftest.$ac_objext conftest.$ac_ext
2786 echo "$as_me:2786: result: $cf_cv_gnu_library_219" >&5
2787 echo "${ECHO_T}$cf_cv_gnu_library_219" >&6
2789 if test "x$cf_cv_gnu_library_219" = xyes; then
2791 echo "$as_me:2791: checking if _XOPEN_SOURCE=$cf_gnu_xopen_source works with _DEFAULT_SOURCE" >&5
2792 echo $ECHO_N "checking if _XOPEN_SOURCE=$cf_gnu_xopen_source works with _DEFAULT_SOURCE... $ECHO_C" >&6
2793 if test "${cf_cv_gnu_dftsrc_219+set}" = set; then
2794 echo $ECHO_N "(cached) $ECHO_C" >&6
2800 cf_new_extra_cppflags=
2802 for cf_add_cflags in -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=$cf_gnu_xopen_source
2804 case $cf_fix_cppflags in
2806 case $cf_add_cflags in
2807 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
2808 case $cf_add_cflags in
2810 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2812 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2813 && test -z "${cf_tst_cflags}" \
2814 && cf_fix_cppflags=yes
2816 if test $cf_fix_cppflags = yes ; then
2818 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2819 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2822 elif test "${cf_tst_cflags}" = "\"'" ; then
2824 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2825 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2835 case $cf_add_cflags in
2837 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2839 CPPFLAGS=`echo "$CPPFLAGS" | \
2840 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2841 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2846 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
2847 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
2854 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
2855 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
2862 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2863 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2865 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2867 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2868 && test -z "${cf_tst_cflags}" \
2869 && cf_fix_cppflags=no
2874 if test -n "$cf_new_cflags" ; then
2876 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
2877 CFLAGS="${CFLAGS}$cf_new_cflags"
2881 if test -n "$cf_new_cppflags" ; then
2883 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
2884 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
2888 if test -n "$cf_new_extra_cppflags" ; then
2890 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
2891 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
2895 cat >conftest.$ac_ext <<_ACEOF
2896 #line 2896 "configure"
2897 #include "confdefs.h"
2900 #include <sys/types.h>
2906 #if (_XOPEN_SOURCE >= $cf_gnu_xopen_source) && (MB_LEN_MAX > 1)
2909 # error GNU C library is too old
2915 rm -f conftest.$ac_objext
2916 if { (eval echo "$as_me:2916: \"$ac_compile\"") >&5
2917 (eval $ac_compile) 2>&5
2919 echo "$as_me:2919: \$? = $ac_status" >&5
2920 (exit $ac_status); } &&
2921 { ac_try='test -s conftest.$ac_objext'
2922 { (eval echo "$as_me:2922: \"$ac_try\"") >&5
2925 echo "$as_me:2925: \$? = $ac_status" >&5
2926 (exit $ac_status); }; }; then
2927 cf_cv_gnu_dftsrc_219=yes
2929 echo "$as_me: failed program was:" >&5
2930 cat conftest.$ac_ext >&5
2931 cf_cv_gnu_dftsrc_219=no
2933 rm -f conftest.$ac_objext conftest.$ac_ext
2936 echo "$as_me:2936: result: $cf_cv_gnu_dftsrc_219" >&5
2937 echo "${ECHO_T}$cf_cv_gnu_dftsrc_219" >&6
2938 test "x$cf_cv_gnu_dftsrc_219" = "xyes" || CPPFLAGS="$cf_save"
2940 cf_cv_gnu_dftsrc_219=maybe
2943 if test "x$cf_cv_gnu_dftsrc_219" != xyes; then
2945 echo "$as_me:2945: checking if we must define _GNU_SOURCE" >&5
2946 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
2947 if test "${cf_cv_gnu_source+set}" = set; then
2948 echo $ECHO_N "(cached) $ECHO_C" >&6
2951 cat >conftest.$ac_ext <<_ACEOF
2952 #line 2952 "configure"
2953 #include "confdefs.h"
2954 #include <sys/types.h>
2959 #ifndef _XOPEN_SOURCE
2960 #error expected _XOPEN_SOURCE to be defined
2966 rm -f conftest.$ac_objext
2967 if { (eval echo "$as_me:2967: \"$ac_compile\"") >&5
2968 (eval $ac_compile) 2>&5
2970 echo "$as_me:2970: \$? = $ac_status" >&5
2971 (exit $ac_status); } &&
2972 { ac_try='test -s conftest.$ac_objext'
2973 { (eval echo "$as_me:2973: \"$ac_try\"") >&5
2976 echo "$as_me:2976: \$? = $ac_status" >&5
2977 (exit $ac_status); }; }; then
2980 echo "$as_me: failed program was:" >&5
2981 cat conftest.$ac_ext >&5
2987 cf_new_extra_cppflags=
2989 for cf_add_cflags in -D_GNU_SOURCE
2991 case $cf_fix_cppflags in
2993 case $cf_add_cflags in
2994 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
2995 case $cf_add_cflags in
2997 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2999 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3000 && test -z "${cf_tst_cflags}" \
3001 && cf_fix_cppflags=yes
3003 if test $cf_fix_cppflags = yes ; then
3005 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3006 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3009 elif test "${cf_tst_cflags}" = "\"'" ; then
3011 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3012 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3022 case $cf_add_cflags in
3024 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3026 CPPFLAGS=`echo "$CPPFLAGS" | \
3027 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3028 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3033 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
3034 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
3041 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
3042 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
3049 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3050 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3052 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3054 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3055 && test -z "${cf_tst_cflags}" \
3056 && cf_fix_cppflags=no
3061 if test -n "$cf_new_cflags" ; then
3063 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
3064 CFLAGS="${CFLAGS}$cf_new_cflags"
3068 if test -n "$cf_new_cppflags" ; then
3070 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
3071 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
3075 if test -n "$cf_new_extra_cppflags" ; then
3077 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
3078 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
3082 cat >conftest.$ac_ext <<_ACEOF
3083 #line 3083 "configure"
3084 #include "confdefs.h"
3085 #include <sys/types.h>
3090 #ifdef _XOPEN_SOURCE
3091 #error expected _XOPEN_SOURCE to be undefined
3097 rm -f conftest.$ac_objext
3098 if { (eval echo "$as_me:3098: \"$ac_compile\"") >&5
3099 (eval $ac_compile) 2>&5
3101 echo "$as_me:3101: \$? = $ac_status" >&5
3102 (exit $ac_status); } &&
3103 { ac_try='test -s conftest.$ac_objext'
3104 { (eval echo "$as_me:3104: \"$ac_try\"") >&5
3107 echo "$as_me:3107: \$? = $ac_status" >&5
3108 (exit $ac_status); }; }; then
3111 echo "$as_me: failed program was:" >&5
3112 cat conftest.$ac_ext >&5
3113 cf_cv_gnu_source=yes
3115 rm -f conftest.$ac_objext conftest.$ac_ext
3119 rm -f conftest.$ac_objext conftest.$ac_ext
3122 echo "$as_me:3122: result: $cf_cv_gnu_source" >&5
3123 echo "${ECHO_T}$cf_cv_gnu_source" >&6
3125 if test "$cf_cv_gnu_source" = yes
3127 echo "$as_me:3127: checking if we should also define _DEFAULT_SOURCE" >&5
3128 echo $ECHO_N "checking if we should also define _DEFAULT_SOURCE... $ECHO_C" >&6
3129 if test "${cf_cv_default_source+set}" = set; then
3130 echo $ECHO_N "(cached) $ECHO_C" >&6
3133 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
3134 CPPFLAGS="${CPPFLAGS}-D_GNU_SOURCE"
3136 cat >conftest.$ac_ext <<_ACEOF
3137 #line 3137 "configure"
3138 #include "confdefs.h"
3139 #include <sys/types.h>
3144 #ifdef _DEFAULT_SOURCE
3145 #error expected _DEFAULT_SOURCE to be undefined
3151 rm -f conftest.$ac_objext
3152 if { (eval echo "$as_me:3152: \"$ac_compile\"") >&5
3153 (eval $ac_compile) 2>&5
3155 echo "$as_me:3155: \$? = $ac_status" >&5
3156 (exit $ac_status); } &&
3157 { ac_try='test -s conftest.$ac_objext'
3158 { (eval echo "$as_me:3158: \"$ac_try\"") >&5
3161 echo "$as_me:3161: \$? = $ac_status" >&5
3162 (exit $ac_status); }; }; then
3163 cf_cv_default_source=no
3165 echo "$as_me: failed program was:" >&5
3166 cat conftest.$ac_ext >&5
3167 cf_cv_default_source=yes
3169 rm -f conftest.$ac_objext conftest.$ac_ext
3172 echo "$as_me:3172: result: $cf_cv_default_source" >&5
3173 echo "${ECHO_T}$cf_cv_default_source" >&6
3174 if test "$cf_cv_default_source" = yes
3177 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
3178 CPPFLAGS="${CPPFLAGS}-D_DEFAULT_SOURCE"
3188 cf_xopen_source="-D_NETBSD_SOURCE" # POSIX.1-2001 features are ifdef'd with this...
3191 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <sys/select.h> and other headers which use u_int / u_short types
3194 if test "$cf_cv_posix_visible" = no; then
3196 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
3198 cf_save_CFLAGS="$CFLAGS"
3199 cf_save_CPPFLAGS="$CPPFLAGS"
3201 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
3202 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3203 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
3205 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
3206 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3207 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
3209 echo "$as_me:3209: checking if we should define _POSIX_C_SOURCE" >&5
3210 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
3211 if test "${cf_cv_posix_c_source+set}" = set; then
3212 echo $ECHO_N "(cached) $ECHO_C" >&6
3215 echo "${as_me:-configure}:3215: testing if the symbol is already defined go no further ..." 1>&5
3217 cat >conftest.$ac_ext <<_ACEOF
3218 #line 3218 "configure"
3219 #include "confdefs.h"
3220 #include <sys/types.h>
3225 #ifndef _POSIX_C_SOURCE
3232 rm -f conftest.$ac_objext
3233 if { (eval echo "$as_me:3233: \"$ac_compile\"") >&5
3234 (eval $ac_compile) 2>&5
3236 echo "$as_me:3236: \$? = $ac_status" >&5
3237 (exit $ac_status); } &&
3238 { ac_try='test -s conftest.$ac_objext'
3239 { (eval echo "$as_me:3239: \"$ac_try\"") >&5
3242 echo "$as_me:3242: \$? = $ac_status" >&5
3243 (exit $ac_status); }; }; then
3244 cf_cv_posix_c_source=no
3246 echo "$as_me: failed program was:" >&5
3247 cat conftest.$ac_ext >&5
3248 cf_want_posix_source=no
3249 case .$cf_POSIX_C_SOURCE in
3251 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3254 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3255 cf_want_posix_source=yes
3258 cf_want_posix_source=yes
3261 if test "$cf_want_posix_source" = yes ; then
3262 cat >conftest.$ac_ext <<_ACEOF
3263 #line 3263 "configure"
3264 #include "confdefs.h"
3265 #include <sys/types.h>
3270 #ifdef _POSIX_SOURCE
3277 rm -f conftest.$ac_objext
3278 if { (eval echo "$as_me:3278: \"$ac_compile\"") >&5
3279 (eval $ac_compile) 2>&5
3281 echo "$as_me:3281: \$? = $ac_status" >&5
3282 (exit $ac_status); } &&
3283 { ac_try='test -s conftest.$ac_objext'
3284 { (eval echo "$as_me:3284: \"$ac_try\"") >&5
3287 echo "$as_me:3287: \$? = $ac_status" >&5
3288 (exit $ac_status); }; }; then
3291 echo "$as_me: failed program was:" >&5
3292 cat conftest.$ac_ext >&5
3293 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
3295 rm -f conftest.$ac_objext conftest.$ac_ext
3298 echo "${as_me:-configure}:3298: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
3300 CFLAGS="$cf_trim_CFLAGS"
3301 CPPFLAGS="$cf_trim_CPPFLAGS"
3303 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
3304 CPPFLAGS="${CPPFLAGS}$cf_cv_posix_c_source"
3306 echo "${as_me:-configure}:3306: testing if the second compile does not leave our definition intact error ..." 1>&5
3308 cat >conftest.$ac_ext <<_ACEOF
3309 #line 3309 "configure"
3310 #include "confdefs.h"
3311 #include <sys/types.h>
3316 #ifndef _POSIX_C_SOURCE
3323 rm -f conftest.$ac_objext
3324 if { (eval echo "$as_me:3324: \"$ac_compile\"") >&5
3325 (eval $ac_compile) 2>&5
3327 echo "$as_me:3327: \$? = $ac_status" >&5
3328 (exit $ac_status); } &&
3329 { ac_try='test -s conftest.$ac_objext'
3330 { (eval echo "$as_me:3330: \"$ac_try\"") >&5
3333 echo "$as_me:3333: \$? = $ac_status" >&5
3334 (exit $ac_status); }; }; then
3337 echo "$as_me: failed program was:" >&5
3338 cat conftest.$ac_ext >&5
3339 cf_cv_posix_c_source=no
3341 rm -f conftest.$ac_objext conftest.$ac_ext
3342 CFLAGS="$cf_save_CFLAGS"
3343 CPPFLAGS="$cf_save_CPPFLAGS"
3346 rm -f conftest.$ac_objext conftest.$ac_ext
3349 echo "$as_me:3349: result: $cf_cv_posix_c_source" >&5
3350 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
3352 if test "$cf_cv_posix_c_source" != no ; then
3353 CFLAGS="$cf_trim_CFLAGS"
3354 CPPFLAGS="$cf_trim_CPPFLAGS"
3359 cf_new_extra_cppflags=
3361 for cf_add_cflags in $cf_cv_posix_c_source
3363 case $cf_fix_cppflags in
3365 case $cf_add_cflags in
3366 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
3367 case $cf_add_cflags in
3369 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3371 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3372 && test -z "${cf_tst_cflags}" \
3373 && cf_fix_cppflags=yes
3375 if test $cf_fix_cppflags = yes ; then
3377 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3378 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3381 elif test "${cf_tst_cflags}" = "\"'" ; then
3383 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3384 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3394 case $cf_add_cflags in
3396 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3398 CPPFLAGS=`echo "$CPPFLAGS" | \
3399 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3400 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3405 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
3406 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
3413 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
3414 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
3421 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3422 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3424 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3426 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3427 && test -z "${cf_tst_cflags}" \
3428 && cf_fix_cppflags=no
3433 if test -n "$cf_new_cflags" ; then
3435 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
3436 CFLAGS="${CFLAGS}$cf_new_cflags"
3440 if test -n "$cf_new_cppflags" ; then
3442 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
3443 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
3447 if test -n "$cf_new_extra_cppflags" ; then
3449 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
3450 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
3456 fi # cf_cv_posix_visible
3460 cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
3463 # setting _XOPEN_SOURCE lower than 500 breaks g++ compile with wchar.h, needed for ncursesw
3464 cf_xopen_source="-D_BSD_SOURCE"
3468 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
3471 cf_xopen_source="-D_OSF_SOURCE"
3474 cf_xopen_source="-D_QNX_SOURCE"
3477 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
3480 cf_xopen_source="-D__EXTENSIONS__"
3481 cf_cv_xopen_source=broken
3483 (sysv4.2uw2.*) # Novell/SCO UnixWare 2.x (tested on 2.1.2)
3489 echo "$as_me:3489: checking if we should define _XOPEN_SOURCE" >&5
3490 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
3491 if test "${cf_cv_xopen_source+set}" = set; then
3492 echo $ECHO_N "(cached) $ECHO_C" >&6
3495 cat >conftest.$ac_ext <<_ACEOF
3496 #line 3496 "configure"
3497 #include "confdefs.h"
3501 #include <sys/types.h>
3507 #ifndef _XOPEN_SOURCE
3514 rm -f conftest.$ac_objext
3515 if { (eval echo "$as_me:3515: \"$ac_compile\"") >&5
3516 (eval $ac_compile) 2>&5
3518 echo "$as_me:3518: \$? = $ac_status" >&5
3519 (exit $ac_status); } &&
3520 { ac_try='test -s conftest.$ac_objext'
3521 { (eval echo "$as_me:3521: \"$ac_try\"") >&5
3524 echo "$as_me:3524: \$? = $ac_status" >&5
3525 (exit $ac_status); }; }; then
3526 cf_cv_xopen_source=no
3528 echo "$as_me: failed program was:" >&5
3529 cat conftest.$ac_ext >&5
3532 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
3533 CPPFLAGS="${CPPFLAGS}-D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
3535 cat >conftest.$ac_ext <<_ACEOF
3536 #line 3536 "configure"
3537 #include "confdefs.h"
3541 #include <sys/types.h>
3547 #ifdef _XOPEN_SOURCE
3554 rm -f conftest.$ac_objext
3555 if { (eval echo "$as_me:3555: \"$ac_compile\"") >&5
3556 (eval $ac_compile) 2>&5
3558 echo "$as_me:3558: \$? = $ac_status" >&5
3559 (exit $ac_status); } &&
3560 { ac_try='test -s conftest.$ac_objext'
3561 { (eval echo "$as_me:3561: \"$ac_try\"") >&5
3564 echo "$as_me:3564: \$? = $ac_status" >&5
3565 (exit $ac_status); }; }; then
3566 cf_cv_xopen_source=no
3568 echo "$as_me: failed program was:" >&5
3569 cat conftest.$ac_ext >&5
3570 cf_cv_xopen_source=$cf_XOPEN_SOURCE
3572 rm -f conftest.$ac_objext conftest.$ac_ext
3576 rm -f conftest.$ac_objext conftest.$ac_ext
3579 echo "$as_me:3579: result: $cf_cv_xopen_source" >&5
3580 echo "${ECHO_T}$cf_cv_xopen_source" >&6
3582 if test "$cf_cv_xopen_source" != no ; then
3584 CFLAGS=`echo "$CFLAGS" | \
3585 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3586 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
3588 CPPFLAGS=`echo "$CPPFLAGS" | \
3589 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3590 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
3592 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
3597 cf_new_extra_cppflags=
3599 for cf_add_cflags in $cf_temp_xopen_source
3601 case $cf_fix_cppflags in
3603 case $cf_add_cflags in
3604 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
3605 case $cf_add_cflags in
3607 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3609 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3610 && test -z "${cf_tst_cflags}" \
3611 && cf_fix_cppflags=yes
3613 if test $cf_fix_cppflags = yes ; then
3615 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3616 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3619 elif test "${cf_tst_cflags}" = "\"'" ; then
3621 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3622 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3632 case $cf_add_cflags in
3634 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3636 CPPFLAGS=`echo "$CPPFLAGS" | \
3637 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3638 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3643 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
3644 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
3651 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
3652 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
3659 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3660 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3662 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3664 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3665 && test -z "${cf_tst_cflags}" \
3666 && cf_fix_cppflags=no
3671 if test -n "$cf_new_cflags" ; then
3673 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
3674 CFLAGS="${CFLAGS}$cf_new_cflags"
3678 if test -n "$cf_new_cppflags" ; then
3680 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
3681 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
3685 if test -n "$cf_new_extra_cppflags" ; then
3687 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
3688 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
3694 if test "$cf_cv_posix_visible" = no; then
3696 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
3698 cf_save_CFLAGS="$CFLAGS"
3699 cf_save_CPPFLAGS="$CPPFLAGS"
3701 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
3702 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3703 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
3705 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
3706 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3707 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
3709 echo "$as_me:3709: checking if we should define _POSIX_C_SOURCE" >&5
3710 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
3711 if test "${cf_cv_posix_c_source+set}" = set; then
3712 echo $ECHO_N "(cached) $ECHO_C" >&6
3715 echo "${as_me:-configure}:3715: testing if the symbol is already defined go no further ..." 1>&5
3717 cat >conftest.$ac_ext <<_ACEOF
3718 #line 3718 "configure"
3719 #include "confdefs.h"
3720 #include <sys/types.h>
3725 #ifndef _POSIX_C_SOURCE
3732 rm -f conftest.$ac_objext
3733 if { (eval echo "$as_me:3733: \"$ac_compile\"") >&5
3734 (eval $ac_compile) 2>&5
3736 echo "$as_me:3736: \$? = $ac_status" >&5
3737 (exit $ac_status); } &&
3738 { ac_try='test -s conftest.$ac_objext'
3739 { (eval echo "$as_me:3739: \"$ac_try\"") >&5
3742 echo "$as_me:3742: \$? = $ac_status" >&5
3743 (exit $ac_status); }; }; then
3744 cf_cv_posix_c_source=no
3746 echo "$as_me: failed program was:" >&5
3747 cat conftest.$ac_ext >&5
3748 cf_want_posix_source=no
3749 case .$cf_POSIX_C_SOURCE in
3751 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3754 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3755 cf_want_posix_source=yes
3758 cf_want_posix_source=yes
3761 if test "$cf_want_posix_source" = yes ; then
3762 cat >conftest.$ac_ext <<_ACEOF
3763 #line 3763 "configure"
3764 #include "confdefs.h"
3765 #include <sys/types.h>
3770 #ifdef _POSIX_SOURCE
3777 rm -f conftest.$ac_objext
3778 if { (eval echo "$as_me:3778: \"$ac_compile\"") >&5
3779 (eval $ac_compile) 2>&5
3781 echo "$as_me:3781: \$? = $ac_status" >&5
3782 (exit $ac_status); } &&
3783 { ac_try='test -s conftest.$ac_objext'
3784 { (eval echo "$as_me:3784: \"$ac_try\"") >&5
3787 echo "$as_me:3787: \$? = $ac_status" >&5
3788 (exit $ac_status); }; }; then
3791 echo "$as_me: failed program was:" >&5
3792 cat conftest.$ac_ext >&5
3793 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
3795 rm -f conftest.$ac_objext conftest.$ac_ext
3798 echo "${as_me:-configure}:3798: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
3800 CFLAGS="$cf_trim_CFLAGS"
3801 CPPFLAGS="$cf_trim_CPPFLAGS"
3803 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
3804 CPPFLAGS="${CPPFLAGS}$cf_cv_posix_c_source"
3806 echo "${as_me:-configure}:3806: testing if the second compile does not leave our definition intact error ..." 1>&5
3808 cat >conftest.$ac_ext <<_ACEOF
3809 #line 3809 "configure"
3810 #include "confdefs.h"
3811 #include <sys/types.h>
3816 #ifndef _POSIX_C_SOURCE
3823 rm -f conftest.$ac_objext
3824 if { (eval echo "$as_me:3824: \"$ac_compile\"") >&5
3825 (eval $ac_compile) 2>&5
3827 echo "$as_me:3827: \$? = $ac_status" >&5
3828 (exit $ac_status); } &&
3829 { ac_try='test -s conftest.$ac_objext'
3830 { (eval echo "$as_me:3830: \"$ac_try\"") >&5
3833 echo "$as_me:3833: \$? = $ac_status" >&5
3834 (exit $ac_status); }; }; then
3837 echo "$as_me: failed program was:" >&5
3838 cat conftest.$ac_ext >&5
3839 cf_cv_posix_c_source=no
3841 rm -f conftest.$ac_objext conftest.$ac_ext
3842 CFLAGS="$cf_save_CFLAGS"
3843 CPPFLAGS="$cf_save_CPPFLAGS"
3846 rm -f conftest.$ac_objext conftest.$ac_ext
3849 echo "$as_me:3849: result: $cf_cv_posix_c_source" >&5
3850 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
3852 if test "$cf_cv_posix_c_source" != no ; then
3853 CFLAGS="$cf_trim_CFLAGS"
3854 CPPFLAGS="$cf_trim_CPPFLAGS"
3859 cf_new_extra_cppflags=
3861 for cf_add_cflags in $cf_cv_posix_c_source
3863 case $cf_fix_cppflags in
3865 case $cf_add_cflags in
3866 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
3867 case $cf_add_cflags in
3869 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3871 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3872 && test -z "${cf_tst_cflags}" \
3873 && cf_fix_cppflags=yes
3875 if test $cf_fix_cppflags = yes ; then
3877 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3878 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3881 elif test "${cf_tst_cflags}" = "\"'" ; then
3883 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3884 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3894 case $cf_add_cflags in
3896 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3898 CPPFLAGS=`echo "$CPPFLAGS" | \
3899 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3900 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3905 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
3906 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
3913 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
3914 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
3921 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3922 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3924 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3926 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3927 && test -z "${cf_tst_cflags}" \
3928 && cf_fix_cppflags=no
3933 if test -n "$cf_new_cflags" ; then
3935 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
3936 CFLAGS="${CFLAGS}$cf_new_cflags"
3940 if test -n "$cf_new_cppflags" ; then
3942 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
3943 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
3947 if test -n "$cf_new_extra_cppflags" ; then
3949 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
3950 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
3956 fi # cf_cv_posix_visible
3961 if test -n "$cf_xopen_source" ; then
3966 cf_new_extra_cppflags=
3968 for cf_add_cflags in $cf_xopen_source
3970 case $cf_fix_cppflags in
3972 case $cf_add_cflags in
3973 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
3974 case $cf_add_cflags in
3976 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3978 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3979 && test -z "${cf_tst_cflags}" \
3980 && cf_fix_cppflags=yes
3982 if test $cf_fix_cppflags = yes ; then
3984 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3985 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3988 elif test "${cf_tst_cflags}" = "\"'" ; then
3990 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3991 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4001 case $cf_add_cflags in
4003 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
4005 CPPFLAGS=`echo "$CPPFLAGS" | \
4006 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
4007 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
4012 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
4013 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
4020 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
4021 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
4028 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4029 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4031 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
4033 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4034 && test -z "${cf_tst_cflags}" \
4035 && cf_fix_cppflags=no
4040 if test -n "$cf_new_cflags" ; then
4041 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6
4043 echo "${as_me:-configure}:4043: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
4045 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
4046 CFLAGS="${CFLAGS}$cf_new_cflags"
4050 if test -n "$cf_new_cppflags" ; then
4051 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6
4053 echo "${as_me:-configure}:4053: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
4055 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
4056 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
4060 if test -n "$cf_new_extra_cppflags" ; then
4061 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
4063 echo "${as_me:-configure}:4063: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
4065 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
4066 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
4072 if test -n "$cf_XOPEN_SOURCE" && test -z "$cf_cv_xopen_source" ; then
4073 echo "$as_me:4073: checking if _XOPEN_SOURCE really is set" >&5
4074 echo $ECHO_N "checking if _XOPEN_SOURCE really is set... $ECHO_C" >&6
4075 cat >conftest.$ac_ext <<_ACEOF
4076 #line 4076 "configure"
4077 #include "confdefs.h"
4083 #ifndef _XOPEN_SOURCE
4090 rm -f conftest.$ac_objext
4091 if { (eval echo "$as_me:4091: \"$ac_compile\"") >&5
4092 (eval $ac_compile) 2>&5
4094 echo "$as_me:4094: \$? = $ac_status" >&5
4095 (exit $ac_status); } &&
4096 { ac_try='test -s conftest.$ac_objext'
4097 { (eval echo "$as_me:4097: \"$ac_try\"") >&5
4100 echo "$as_me:4100: \$? = $ac_status" >&5
4101 (exit $ac_status); }; }; then
4102 cf_XOPEN_SOURCE_set=yes
4104 echo "$as_me: failed program was:" >&5
4105 cat conftest.$ac_ext >&5
4106 cf_XOPEN_SOURCE_set=no
4108 rm -f conftest.$ac_objext conftest.$ac_ext
4109 echo "$as_me:4109: result: $cf_XOPEN_SOURCE_set" >&5
4110 echo "${ECHO_T}$cf_XOPEN_SOURCE_set" >&6
4111 if test $cf_XOPEN_SOURCE_set = yes
4113 cat >conftest.$ac_ext <<_ACEOF
4114 #line 4114 "configure"
4115 #include "confdefs.h"
4121 #if (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE
4128 rm -f conftest.$ac_objext
4129 if { (eval echo "$as_me:4129: \"$ac_compile\"") >&5
4130 (eval $ac_compile) 2>&5
4132 echo "$as_me:4132: \$? = $ac_status" >&5
4133 (exit $ac_status); } &&
4134 { ac_try='test -s conftest.$ac_objext'
4135 { (eval echo "$as_me:4135: \"$ac_try\"") >&5
4138 echo "$as_me:4138: \$? = $ac_status" >&5
4139 (exit $ac_status); }; }; then
4140 cf_XOPEN_SOURCE_set_ok=yes
4142 echo "$as_me: failed program was:" >&5
4143 cat conftest.$ac_ext >&5
4144 cf_XOPEN_SOURCE_set_ok=no
4146 rm -f conftest.$ac_objext conftest.$ac_ext
4147 if test $cf_XOPEN_SOURCE_set_ok = no
4149 { echo "$as_me:4149: WARNING: _XOPEN_SOURCE is lower than requested" >&5
4150 echo "$as_me: WARNING: _XOPEN_SOURCE is lower than requested" >&2;}
4154 echo "$as_me:4154: checking if we should define _XOPEN_SOURCE" >&5
4155 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
4156 if test "${cf_cv_xopen_source+set}" = set; then
4157 echo $ECHO_N "(cached) $ECHO_C" >&6
4160 cat >conftest.$ac_ext <<_ACEOF
4161 #line 4161 "configure"
4162 #include "confdefs.h"
4166 #include <sys/types.h>
4172 #ifndef _XOPEN_SOURCE
4179 rm -f conftest.$ac_objext
4180 if { (eval echo "$as_me:4180: \"$ac_compile\"") >&5
4181 (eval $ac_compile) 2>&5
4183 echo "$as_me:4183: \$? = $ac_status" >&5
4184 (exit $ac_status); } &&
4185 { ac_try='test -s conftest.$ac_objext'
4186 { (eval echo "$as_me:4186: \"$ac_try\"") >&5
4189 echo "$as_me:4189: \$? = $ac_status" >&5
4190 (exit $ac_status); }; }; then
4191 cf_cv_xopen_source=no
4193 echo "$as_me: failed program was:" >&5
4194 cat conftest.$ac_ext >&5
4197 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
4198 CPPFLAGS="${CPPFLAGS}-D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
4200 cat >conftest.$ac_ext <<_ACEOF
4201 #line 4201 "configure"
4202 #include "confdefs.h"
4206 #include <sys/types.h>
4212 #ifdef _XOPEN_SOURCE
4219 rm -f conftest.$ac_objext
4220 if { (eval echo "$as_me:4220: \"$ac_compile\"") >&5
4221 (eval $ac_compile) 2>&5
4223 echo "$as_me:4223: \$? = $ac_status" >&5
4224 (exit $ac_status); } &&
4225 { ac_try='test -s conftest.$ac_objext'
4226 { (eval echo "$as_me:4226: \"$ac_try\"") >&5
4229 echo "$as_me:4229: \$? = $ac_status" >&5
4230 (exit $ac_status); }; }; then
4231 cf_cv_xopen_source=no
4233 echo "$as_me: failed program was:" >&5
4234 cat conftest.$ac_ext >&5
4235 cf_cv_xopen_source=$cf_XOPEN_SOURCE
4237 rm -f conftest.$ac_objext conftest.$ac_ext
4241 rm -f conftest.$ac_objext conftest.$ac_ext
4244 echo "$as_me:4244: result: $cf_cv_xopen_source" >&5
4245 echo "${ECHO_T}$cf_cv_xopen_source" >&6
4247 if test "$cf_cv_xopen_source" != no ; then
4249 CFLAGS=`echo "$CFLAGS" | \
4250 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
4251 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
4253 CPPFLAGS=`echo "$CPPFLAGS" | \
4254 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
4255 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
4257 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
4262 cf_new_extra_cppflags=
4264 for cf_add_cflags in $cf_temp_xopen_source
4266 case $cf_fix_cppflags in
4268 case $cf_add_cflags in
4269 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
4270 case $cf_add_cflags in
4272 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
4274 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4275 && test -z "${cf_tst_cflags}" \
4276 && cf_fix_cppflags=yes
4278 if test $cf_fix_cppflags = yes ; then
4280 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4281 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4284 elif test "${cf_tst_cflags}" = "\"'" ; then
4286 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4287 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4297 case $cf_add_cflags in
4299 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
4301 CPPFLAGS=`echo "$CPPFLAGS" | \
4302 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
4303 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
4308 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
4309 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
4316 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
4317 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
4324 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4325 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4327 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
4329 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4330 && test -z "${cf_tst_cflags}" \
4331 && cf_fix_cppflags=no
4336 if test -n "$cf_new_cflags" ; then
4338 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
4339 CFLAGS="${CFLAGS}$cf_new_cflags"
4343 if test -n "$cf_new_cppflags" ; then
4345 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
4346 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
4350 if test -n "$cf_new_extra_cppflags" ; then
4352 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
4353 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
4361 fi # cf_cv_posix_visible
4364 ac_cpp='$CPP $CPPFLAGS'
4365 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4366 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4367 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4368 ac_main_return=return
4369 echo "$as_me:4369: checking how to run the C preprocessor" >&5
4370 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4371 # On Suns, sometimes $CPP names a directory.
4372 if test -n "$CPP" && test -d "$CPP"; then
4375 if test -z "$CPP"; then
4376 if test "${ac_cv_prog_CPP+set}" = set; then
4377 echo $ECHO_N "(cached) $ECHO_C" >&6
4379 # Double quotes because CPP needs to be expanded
4380 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4383 for ac_c_preproc_warn_flag in '' yes
4385 # Use a header file that comes with gcc, so configuring glibc
4386 # with a fresh cross-compiler works.
4387 # On the NeXT, cc -E runs the code through the compiler's parser,
4388 # not just through cpp. "Syntax error" is here to catch this case.
4389 cat >conftest.$ac_ext <<_ACEOF
4390 #line 4390 "configure"
4391 #include "confdefs.h"
4395 if { (eval echo "$as_me:4395: \"$ac_cpp conftest.$ac_ext\"") >&5
4396 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4398 egrep -v '^ *\+' conftest.er1 >conftest.err
4400 cat conftest.err >&5
4401 echo "$as_me:4401: \$? = $ac_status" >&5
4402 (exit $ac_status); } >/dev/null; then
4403 if test -s conftest.err; then
4404 ac_cpp_err=$ac_c_preproc_warn_flag
4411 if test -z "$ac_cpp_err"; then
4414 echo "$as_me: failed program was:" >&5
4415 cat conftest.$ac_ext >&5
4416 # Broken: fails on valid input.
4419 rm -f conftest.err conftest.$ac_ext
4421 # OK, works on sane cases. Now check whether non-existent headers
4422 # can be detected and how.
4423 cat >conftest.$ac_ext <<_ACEOF
4424 #line 4424 "configure"
4425 #include "confdefs.h"
4426 #include <ac_nonexistent.h>
4428 if { (eval echo "$as_me:4428: \"$ac_cpp conftest.$ac_ext\"") >&5
4429 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4431 egrep -v '^ *\+' conftest.er1 >conftest.err
4433 cat conftest.err >&5
4434 echo "$as_me:4434: \$? = $ac_status" >&5
4435 (exit $ac_status); } >/dev/null; then
4436 if test -s conftest.err; then
4437 ac_cpp_err=$ac_c_preproc_warn_flag
4444 if test -z "$ac_cpp_err"; then
4445 # Broken: success on invalid input.
4448 echo "$as_me: failed program was:" >&5
4449 cat conftest.$ac_ext >&5
4450 # Passes both tests.
4454 rm -f conftest.err conftest.$ac_ext
4457 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4458 rm -f conftest.err conftest.$ac_ext
4459 if $ac_preproc_ok; then
4471 echo "$as_me:4471: result: $CPP" >&5
4472 echo "${ECHO_T}$CPP" >&6
4474 for ac_c_preproc_warn_flag in '' yes
4476 # Use a header file that comes with gcc, so configuring glibc
4477 # with a fresh cross-compiler works.
4478 # On the NeXT, cc -E runs the code through the compiler's parser,
4479 # not just through cpp. "Syntax error" is here to catch this case.
4480 cat >conftest.$ac_ext <<_ACEOF
4481 #line 4481 "configure"
4482 #include "confdefs.h"
4486 if { (eval echo "$as_me:4486: \"$ac_cpp conftest.$ac_ext\"") >&5
4487 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4489 egrep -v '^ *\+' conftest.er1 >conftest.err
4491 cat conftest.err >&5
4492 echo "$as_me:4492: \$? = $ac_status" >&5
4493 (exit $ac_status); } >/dev/null; then
4494 if test -s conftest.err; then
4495 ac_cpp_err=$ac_c_preproc_warn_flag
4502 if test -z "$ac_cpp_err"; then
4505 echo "$as_me: failed program was:" >&5
4506 cat conftest.$ac_ext >&5
4507 # Broken: fails on valid input.
4510 rm -f conftest.err conftest.$ac_ext
4512 # OK, works on sane cases. Now check whether non-existent headers
4513 # can be detected and how.
4514 cat >conftest.$ac_ext <<_ACEOF
4515 #line 4515 "configure"
4516 #include "confdefs.h"
4517 #include <ac_nonexistent.h>
4519 if { (eval echo "$as_me:4519: \"$ac_cpp conftest.$ac_ext\"") >&5
4520 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4522 egrep -v '^ *\+' conftest.er1 >conftest.err
4524 cat conftest.err >&5
4525 echo "$as_me:4525: \$? = $ac_status" >&5
4526 (exit $ac_status); } >/dev/null; then
4527 if test -s conftest.err; then
4528 ac_cpp_err=$ac_c_preproc_warn_flag
4535 if test -z "$ac_cpp_err"; then
4536 # Broken: success on invalid input.
4539 echo "$as_me: failed program was:" >&5
4540 cat conftest.$ac_ext >&5
4541 # Passes both tests.
4545 rm -f conftest.err conftest.$ac_ext
4548 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4549 rm -f conftest.err conftest.$ac_ext
4550 if $ac_preproc_ok; then
4553 { { echo "$as_me:4553: error: C preprocessor \"$CPP\" fails sanity check" >&5
4554 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
4555 { (exit 1); exit 1; }; }
4559 ac_cpp='$CPP $CPPFLAGS'
4560 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4561 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4562 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4563 ac_main_return=return
4565 for ac_header in fcntl.h
4567 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4568 echo "$as_me:4568: checking for $ac_header" >&5
4569 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4570 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4571 echo $ECHO_N "(cached) $ECHO_C" >&6
4573 cat >conftest.$ac_ext <<_ACEOF
4574 #line 4574 "configure"
4575 #include "confdefs.h"
4576 #include <$ac_header>
4578 if { (eval echo "$as_me:4578: \"$ac_cpp conftest.$ac_ext\"") >&5
4579 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4581 egrep -v '^ *\+' conftest.er1 >conftest.err
4583 cat conftest.err >&5
4584 echo "$as_me:4584: \$? = $ac_status" >&5
4585 (exit $ac_status); } >/dev/null; then
4586 if test -s conftest.err; then
4587 ac_cpp_err=$ac_c_preproc_warn_flag
4594 if test -z "$ac_cpp_err"; then
4595 eval "$as_ac_Header=yes"
4597 echo "$as_me: failed program was:" >&5
4598 cat conftest.$ac_ext >&5
4599 eval "$as_ac_Header=no"
4601 rm -f conftest.err conftest.$ac_ext
4603 echo "$as_me:4603: result: `eval echo '${'$as_ac_Header'}'`" >&5
4604 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4605 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4606 cat >>confdefs.h <<EOF
4607 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4617 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4618 echo "$as_me:4618: checking for $ac_header" >&5
4619 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4620 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4621 echo $ECHO_N "(cached) $ECHO_C" >&6
4623 cat >conftest.$ac_ext <<_ACEOF
4624 #line 4624 "configure"
4625 #include "confdefs.h"
4626 #include <$ac_header>
4628 if { (eval echo "$as_me:4628: \"$ac_cpp conftest.$ac_ext\"") >&5
4629 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4631 egrep -v '^ *\+' conftest.er1 >conftest.err
4633 cat conftest.err >&5
4634 echo "$as_me:4634: \$? = $ac_status" >&5
4635 (exit $ac_status); } >/dev/null; then
4636 if test -s conftest.err; then
4637 ac_cpp_err=$ac_c_preproc_warn_flag
4644 if test -z "$ac_cpp_err"; then
4645 eval "$as_ac_Header=yes"
4647 echo "$as_me: failed program was:" >&5
4648 cat conftest.$ac_ext >&5
4649 eval "$as_ac_Header=no"
4651 rm -f conftest.err conftest.$ac_ext
4653 echo "$as_me:4653: result: `eval echo '${'$as_ac_Header'}'`" >&5
4654 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4655 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4656 cat >>confdefs.h <<EOF
4657 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4663 echo "$as_me:4663: checking for working mkstemp" >&5
4664 echo $ECHO_N "checking for working mkstemp... $ECHO_C" >&6
4665 if test "${cf_cv_func_mkstemp+set}" = set; then
4666 echo $ECHO_N "(cached) $ECHO_C" >&6
4670 if test "$cross_compiling" = yes; then
4671 cf_cv_func_mkstemp=maybe
4673 cat >conftest.$ac_ext <<_ACEOF
4674 #line 4674 "configure"
4675 #include "confdefs.h"
4677 #include <sys/types.h>
4678 #ifdef HAVE_UNISTD_H
4684 #include <sys/stat.h>
4687 char *tmpl = "conftestXXXXXX";
4695 for (n = 0; n < 2; ++n) {
4696 strcpy(name[n], tmpl);
4697 if ((fd = mkstemp(name[n])) >= 0) {
4698 if (!strcmp(name[n], tmpl)
4699 || stat(name[n], &sb) != 0
4700 || (sb.st_mode & S_IFMT) != S_IFREG
4701 || (sb.st_mode & 077) != 0) {
4708 && !strcmp(name[0], name[1]))
4710 ${cf_cv_main_return:-return}(result);
4714 rm -f conftest$ac_exeext
4715 if { (eval echo "$as_me:4715: \"$ac_link\"") >&5
4716 (eval $ac_link) 2>&5
4718 echo "$as_me:4718: \$? = $ac_status" >&5
4719 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4720 { (eval echo "$as_me:4720: \"$ac_try\"") >&5
4723 echo "$as_me:4723: \$? = $ac_status" >&5
4724 (exit $ac_status); }; }; then
4725 cf_cv_func_mkstemp=yes
4728 echo "$as_me: program exited with status $ac_status" >&5
4729 echo "$as_me: failed program was:" >&5
4730 cat conftest.$ac_ext >&5
4731 cf_cv_func_mkstemp=no
4734 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4738 echo "$as_me:4738: result: $cf_cv_func_mkstemp" >&5
4739 echo "${ECHO_T}$cf_cv_func_mkstemp" >&6
4740 if test "x$cf_cv_func_mkstemp" = xmaybe ; then
4741 echo "$as_me:4741: checking for mkstemp" >&5
4742 echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
4743 if test "${ac_cv_func_mkstemp+set}" = set; then
4744 echo $ECHO_N "(cached) $ECHO_C" >&6
4746 cat >conftest.$ac_ext <<_ACEOF
4747 #line 4747 "configure"
4748 #include "confdefs.h"
4749 #define mkstemp autoconf_temporary
4750 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
4757 /* We use char because int might match the return type of a gcc2
4758 builtin and then its argument prototype would still apply. */
4759 char mkstemp (void);
4765 /* The GNU C library defines stubs for functions which it implements
4766 to always fail with ENOSYS. Some functions are actually named
4767 something starting with __ and the normal name is an alias. */
4768 #if defined (__stub_mkstemp) || defined (__stub___mkstemp)
4769 #error found stub for mkstemp
4777 rm -f conftest.$ac_objext conftest$ac_exeext
4778 if { (eval echo "$as_me:4778: \"$ac_link\"") >&5
4779 (eval $ac_link) 2>&5
4781 echo "$as_me:4781: \$? = $ac_status" >&5
4782 (exit $ac_status); } &&
4783 { ac_try='test -s conftest$ac_exeext'
4784 { (eval echo "$as_me:4784: \"$ac_try\"") >&5
4787 echo "$as_me:4787: \$? = $ac_status" >&5
4788 (exit $ac_status); }; }; then
4789 ac_cv_func_mkstemp=yes
4791 echo "$as_me: failed program was:" >&5
4792 cat conftest.$ac_ext >&5
4793 ac_cv_func_mkstemp=no
4795 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4797 echo "$as_me:4797: result: $ac_cv_func_mkstemp" >&5
4798 echo "${ECHO_T}$ac_cv_func_mkstemp" >&6
4801 if test "x$cf_cv_func_mkstemp" = xyes || test "x$ac_cv_func_mkstemp" = xyes ; then
4803 cat >>confdefs.h <<\EOF
4804 #define HAVE_MKSTEMP 1
4809 for ac_func in vsnprintf
4811 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4812 echo "$as_me:4812: checking for $ac_func" >&5
4813 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4814 if eval "test \"\${$as_ac_var+set}\" = set"; then
4815 echo $ECHO_N "(cached) $ECHO_C" >&6
4817 cat >conftest.$ac_ext <<_ACEOF
4818 #line 4818 "configure"
4819 #include "confdefs.h"
4820 #define $ac_func autoconf_temporary
4821 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
4828 /* We use char because int might match the return type of a gcc2
4829 builtin and then its argument prototype would still apply. */
4830 char $ac_func (void);
4836 /* The GNU C library defines stubs for functions which it implements
4837 to always fail with ENOSYS. Some functions are actually named
4838 something starting with __ and the normal name is an alias. */
4839 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4840 #error found stub for $ac_func
4848 rm -f conftest.$ac_objext conftest$ac_exeext
4849 if { (eval echo "$as_me:4849: \"$ac_link\"") >&5
4850 (eval $ac_link) 2>&5
4852 echo "$as_me:4852: \$? = $ac_status" >&5
4853 (exit $ac_status); } &&
4854 { ac_try='test -s conftest$ac_exeext'
4855 { (eval echo "$as_me:4855: \"$ac_try\"") >&5
4858 echo "$as_me:4858: \$? = $ac_status" >&5
4859 (exit $ac_status); }; }; then
4860 eval "$as_ac_var=yes"
4862 echo "$as_me: failed program was:" >&5
4863 cat conftest.$ac_ext >&5
4864 eval "$as_ac_var=no"
4866 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4868 echo "$as_me:4868: result: `eval echo '${'$as_ac_var'}'`" >&5
4869 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4870 if test `eval echo '${'$as_ac_var'}'` = yes; then
4871 cat >>confdefs.h <<EOF
4872 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4878 echo "$as_me:4878: checking for maximum table size" >&5
4879 echo $ECHO_N "checking for maximum table size... $ECHO_C" >&6
4881 # Check whether --with-max-table-size or --without-max-table-size was given.
4882 if test "${with_max_table_size+set}" = set; then
4883 withval="$with_max_table_size"
4886 if test -n "$with_max_table_size"
4888 echo "$as_me:4888: result: $with_max_table_size" >&5
4889 echo "${ECHO_T}$with_max_table_size" >&6
4890 check=`expr "$with_max_table_size" + 0`
4891 if test "x$check" != "x$with_max_table_size"
4893 { { echo "$as_me:4893: error: invalid value for --with-max-table-size: $with_max_table_size" >&5
4894 echo "$as_me: error: invalid value for --with-max-table-size: $with_max_table_size" >&2;}
4895 { (exit 1); exit 1; }; }
4898 cat >>confdefs.h <<EOF
4899 #define MAXTABLE $with_max_table_size
4903 echo "$as_me:4903: result: default" >&5
4904 echo "${ECHO_T}default" >&6
4907 echo "$as_me:4907: checking if backtracking extension is wanted" >&5
4908 echo $ECHO_N "checking if backtracking extension is wanted... $ECHO_C" >&6
4910 # Check whether --enable-btyacc or --disable-btyacc was given.
4911 if test "${enable_btyacc+set}" = set; then
4912 enableval="$enable_btyacc"
4915 echo "$as_me:4915: result: $enable_btyacc" >&5
4916 echo "${ECHO_T}$enable_btyacc" >&6
4917 if test "$enable_btyacc" = "yes"; then
4919 cat >>confdefs.h <<\EOF
4928 if ( test "$GCC" = yes || test "$GXX" = yes )
4930 echo "$as_me:4930: checking if you want to check for gcc warnings" >&5
4931 echo $ECHO_N "checking if you want to check for gcc warnings... $ECHO_C" >&6
4933 # Check whether --with-warnings or --without-warnings was given.
4934 if test "${with_warnings+set}" = set; then
4935 withval="$with_warnings"
4936 cf_opt_with_warnings=$withval
4938 cf_opt_with_warnings=no
4940 echo "$as_me:4940: result: $cf_opt_with_warnings" >&5
4941 echo "${ECHO_T}$cf_opt_with_warnings" >&6
4942 if test "$cf_opt_with_warnings" != no ; then
4944 if test "$GCC" = yes
4946 cat > conftest.i <<EOF
4948 #define GCC_PRINTF 0
4953 #ifndef GCC_NORETURN
4954 #define GCC_NORETURN /* nothing */
4957 #define GCC_UNUSED /* nothing */
4960 if test "$GCC" = yes
4962 { echo "$as_me:4962: checking for $CC __attribute__ directives..." >&5
4963 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
4964 cat > conftest.$ac_ext <<EOF
4965 #line 4965 "${as_me:-configure}"
4966 #include "confdefs.h"
4967 #include "conftest.h"
4968 #include "conftest.i"
4970 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
4972 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
4975 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
4977 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
4979 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
4980 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
4981 extern void foo(void) GCC_NORETURN;
4982 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
4984 cf_printf_attribute=no
4985 cf_scanf_attribute=no
4986 for cf_attribute in scanf printf unused noreturn
4989 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
4991 cf_directive="__attribute__(($cf_attribute))"
4992 echo "checking for $CC $cf_directive" 1>&5
4994 case $cf_attribute in
4996 cf_printf_attribute=yes
4997 cat >conftest.h <<EOF
4998 #define GCC_$cf_ATTRIBUTE 1
5002 cf_scanf_attribute=yes
5003 cat >conftest.h <<EOF
5004 #define GCC_$cf_ATTRIBUTE 1
5008 cat >conftest.h <<EOF
5009 #define GCC_$cf_ATTRIBUTE $cf_directive
5014 if { (eval echo "$as_me:5014: \"$ac_compile\"") >&5
5015 (eval $ac_compile) 2>&5
5017 echo "$as_me:5017: \$? = $ac_status" >&5
5018 (exit $ac_status); }; then
5019 test -n "$verbose" && echo "$as_me:5019: result: ... $cf_attribute" >&5
5020 echo "${ECHO_T}... $cf_attribute" >&6
5021 cat conftest.h >>confdefs.h
5022 case $cf_attribute in
5025 cat >>confdefs.h <<EOF
5026 #define GCC_NORETURN $cf_directive
5031 cf_value='/* nothing */'
5032 if test "$cf_printf_attribute" != no ; then
5033 cf_value='__attribute__((format(printf,fmt,var)))'
5035 cat >>confdefs.h <<\EOF
5036 #define GCC_PRINTF 1
5041 cat >>confdefs.h <<EOF
5042 #define GCC_PRINTFLIKE(fmt,var) $cf_value
5047 cf_value='/* nothing */'
5048 if test "$cf_scanf_attribute" != no ; then
5049 cf_value='__attribute__((format(scanf,fmt,var)))'
5051 cat >>confdefs.h <<\EOF
5057 cat >>confdefs.h <<EOF
5058 #define GCC_SCANFLIKE(fmt,var) $cf_value
5064 cat >>confdefs.h <<EOF
5065 #define GCC_UNUSED $cf_directive
5073 fgrep define conftest.i >>confdefs.h
5080 if test "$GCC" = yes ; then
5083 echo "$as_me:5083: checking if this is really Intel C compiler" >&5
5084 echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
5085 cf_save_CFLAGS="$CFLAGS"
5086 CFLAGS="$CFLAGS -no-gcc"
5087 cat >conftest.$ac_ext <<_ACEOF
5088 #line 5088 "configure"
5089 #include "confdefs.h"
5095 #ifdef __INTEL_COMPILER
5104 rm -f conftest.$ac_objext
5105 if { (eval echo "$as_me:5105: \"$ac_compile\"") >&5
5106 (eval $ac_compile) 2>&5
5108 echo "$as_me:5108: \$? = $ac_status" >&5
5109 (exit $ac_status); } &&
5110 { ac_try='test -s conftest.$ac_objext'
5111 { (eval echo "$as_me:5111: \"$ac_try\"") >&5
5114 echo "$as_me:5114: \$? = $ac_status" >&5
5115 (exit $ac_status); }; }; then
5117 cf_save_CFLAGS="$cf_save_CFLAGS -we147"
5120 echo "$as_me: failed program was:" >&5
5121 cat conftest.$ac_ext >&5
5123 rm -f conftest.$ac_objext conftest.$ac_ext
5124 CFLAGS="$cf_save_CFLAGS"
5125 echo "$as_me:5125: result: $INTEL_COMPILER" >&5
5126 echo "${ECHO_T}$INTEL_COMPILER" >&6
5133 if test "$GCC" = yes ; then
5134 echo "$as_me:5134: checking if this is really Clang C compiler" >&5
5135 echo $ECHO_N "checking if this is really Clang C compiler... $ECHO_C" >&6
5136 cf_save_CFLAGS="$CFLAGS"
5137 CFLAGS="$CFLAGS -Qunused-arguments"
5138 cat >conftest.$ac_ext <<_ACEOF
5139 #line 5139 "configure"
5140 #include "confdefs.h"
5155 rm -f conftest.$ac_objext
5156 if { (eval echo "$as_me:5156: \"$ac_compile\"") >&5
5157 (eval $ac_compile) 2>&5
5159 echo "$as_me:5159: \$? = $ac_status" >&5
5160 (exit $ac_status); } &&
5161 { ac_try='test -s conftest.$ac_objext'
5162 { (eval echo "$as_me:5162: \"$ac_try\"") >&5
5165 echo "$as_me:5165: \$? = $ac_status" >&5
5166 (exit $ac_status); }; }; then
5168 cf_save_CFLAGS="$cf_save_CFLAGS -Qunused-arguments"
5171 echo "$as_me: failed program was:" >&5
5172 cat conftest.$ac_ext >&5
5174 rm -f conftest.$ac_objext conftest.$ac_ext
5175 CFLAGS="$cf_save_CFLAGS"
5176 echo "$as_me:5176: result: $CLANG_COMPILER" >&5
5177 echo "${ECHO_T}$CLANG_COMPILER" >&6
5180 if test "x$have_x" = xyes; then
5181 cat >conftest.$ac_ext <<_ACEOF
5182 #line 5182 "configure"
5183 #include "confdefs.h"
5186 #include <X11/Intrinsic.h>
5191 String foo = malloc(1)
5196 rm -f conftest.$ac_objext
5197 if { (eval echo "$as_me:5197: \"$ac_compile\"") >&5
5198 (eval $ac_compile) 2>&5
5200 echo "$as_me:5200: \$? = $ac_status" >&5
5201 (exit $ac_status); } &&
5202 { ac_try='test -s conftest.$ac_objext'
5203 { (eval echo "$as_me:5203: \"$ac_try\"") >&5
5206 echo "$as_me:5206: \$? = $ac_status" >&5
5207 (exit $ac_status); }; }; then
5209 echo "$as_me:5209: checking for X11/Xt const-feature" >&5
5210 echo $ECHO_N "checking for X11/Xt const-feature... $ECHO_C" >&6
5211 if test "${cf_cv_const_x_string+set}" = set; then
5212 echo $ECHO_N "(cached) $ECHO_C" >&6
5215 cat >conftest.$ac_ext <<_ACEOF
5216 #line 5216 "configure"
5217 #include "confdefs.h"
5219 #define _CONST_X_STRING /* X11R7.8 (perhaps) */
5220 #undef XTSTRINGDEFINES /* X11R5 and later */
5222 #include <X11/Intrinsic.h>
5227 String foo = malloc(1); *foo = 0
5232 rm -f conftest.$ac_objext
5233 if { (eval echo "$as_me:5233: \"$ac_compile\"") >&5
5234 (eval $ac_compile) 2>&5
5236 echo "$as_me:5236: \$? = $ac_status" >&5
5237 (exit $ac_status); } &&
5238 { ac_try='test -s conftest.$ac_objext'
5239 { (eval echo "$as_me:5239: \"$ac_try\"") >&5
5242 echo "$as_me:5242: \$? = $ac_status" >&5
5243 (exit $ac_status); }; }; then
5245 cf_cv_const_x_string=no
5248 echo "$as_me: failed program was:" >&5
5249 cat conftest.$ac_ext >&5
5251 cf_cv_const_x_string=yes
5254 rm -f conftest.$ac_objext conftest.$ac_ext
5257 echo "$as_me:5257: result: $cf_cv_const_x_string" >&5
5258 echo "${ECHO_T}$cf_cv_const_x_string" >&6
5260 case $cf_cv_const_x_string in
5263 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
5264 CPPFLAGS="${CPPFLAGS}-DXTSTRINGDEFINES"
5269 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
5270 CPPFLAGS="${CPPFLAGS}-D_CONST_X_STRING"
5276 echo "$as_me: failed program was:" >&5
5277 cat conftest.$ac_ext >&5
5279 rm -f conftest.$ac_objext conftest.$ac_ext
5281 cat > conftest.$ac_ext <<EOF
5282 #line 5282 "${as_me:-configure}"
5283 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
5285 if test "$INTEL_COMPILER" = yes
5287 # The "-wdXXX" options suppress warnings:
5288 # remark #1419: external declaration in primary source file
5289 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
5290 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
5291 # remark #193: zero used for undefined preprocessing identifier
5292 # remark #593: variable "curs_sb_left_arrow" was set but never used
5293 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
5294 # remark #869: parameter "tw" was never referenced
5295 # remark #981: operands are evaluated in unspecified order
5296 # warning #279: controlling expression is constant
5298 { echo "$as_me:5298: checking for $CC warning options..." >&5
5299 echo "$as_me: checking for $CC warning options..." >&6;}
5300 cf_save_CFLAGS="$CFLAGS"
5301 EXTRA_CFLAGS="-Wall"
5313 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
5314 if { (eval echo "$as_me:5314: \"$ac_compile\"") >&5
5315 (eval $ac_compile) 2>&5
5317 echo "$as_me:5317: \$? = $ac_status" >&5
5318 (exit $ac_status); }; then
5319 test -n "$verbose" && echo "$as_me:5319: result: ... -$cf_opt" >&5
5320 echo "${ECHO_T}... -$cf_opt" >&6
5321 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
5324 CFLAGS="$cf_save_CFLAGS"
5325 elif test "$GCC" = yes
5327 { echo "$as_me:5327: checking for $CC warning options..." >&5
5328 echo "$as_me: checking for $CC warning options..." >&6;}
5329 cf_save_CFLAGS="$CFLAGS"
5332 test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
5333 cf_gcc_warnings="Wignored-qualifiers Wlogical-op Wvarargs"
5334 test "x$CLANG_COMPILER" = xyes && cf_gcc_warnings=
5335 for cf_opt in W Wall \
5336 Wbad-function-cast \
5339 Wdeclaration-after-statement \
5342 Wmissing-declarations \
5343 Wmissing-prototypes \
5347 Wstrict-prototypes \
5348 Wundef $cf_gcc_warnings $cf_warn_CONST Wwrite-strings
5350 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
5351 if { (eval echo "$as_me:5351: \"$ac_compile\"") >&5
5352 (eval $ac_compile) 2>&5
5354 echo "$as_me:5354: \$? = $ac_status" >&5
5355 (exit $ac_status); }; then
5356 test -n "$verbose" && echo "$as_me:5356: result: ... -$cf_opt" >&5
5357 echo "${ECHO_T}... -$cf_opt" >&6
5360 case $GCC_VERSION in
5362 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
5364 echo "${as_me:-configure}:5364: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
5370 case $GCC_VERSION in
5372 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
5374 echo "${as_me:-configure}:5374: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
5380 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
5383 CFLAGS="$cf_save_CFLAGS"
5390 echo "$as_me:5390: checking if you want to see long compiling messages" >&5
5391 echo $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6
5393 # Check whether --enable-echo or --disable-echo was given.
5394 if test "${enable_echo+set}" = set; then
5395 enableval="$enable_echo"
5396 test "$enableval" != no && enableval=yes
5397 if test "$enableval" != "yes" ; then
5400 ECHO_LD='@echo linking $@;'
5401 RULE_CC='@echo compiling $<'
5402 SHOW_CC='@echo compiling $@'
5424 echo "$as_me:5424: result: $enableval" >&5
5425 echo "${ECHO_T}$enableval" >&6
5427 echo "$as_me:5427: checking if you want to use dmalloc for testing" >&5
5428 echo $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6
5430 # Check whether --with-dmalloc or --without-dmalloc was given.
5431 if test "${with_dmalloc+set}" = set; then
5432 withval="$with_dmalloc"
5434 cat >>confdefs.h <<EOF
5435 #define USE_DMALLOC 1
5438 : ${with_cflags:=-g}
5439 : ${with_no_leaks:=yes}
5444 echo "$as_me:5444: result: ${with_dmalloc:-no}" >&5
5445 echo "${ECHO_T}${with_dmalloc:-no}" >&6
5447 case .$with_cflags in
5457 cf_new_extra_cppflags=
5459 for cf_add_cflags in -g
5461 case $cf_fix_cppflags in
5463 case $cf_add_cflags in
5464 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
5465 case $cf_add_cflags in
5467 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
5469 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
5470 && test -z "${cf_tst_cflags}" \
5471 && cf_fix_cppflags=yes
5473 if test $cf_fix_cppflags = yes ; then
5475 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
5476 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
5479 elif test "${cf_tst_cflags}" = "\"'" ; then
5481 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
5482 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
5492 case $cf_add_cflags in
5494 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
5496 CPPFLAGS=`echo "$CPPFLAGS" | \
5497 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
5498 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
5503 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
5504 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
5511 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
5512 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
5519 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
5520 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
5522 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
5524 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
5525 && test -z "${cf_tst_cflags}" \
5526 && cf_fix_cppflags=no
5531 if test -n "$cf_new_cflags" ; then
5533 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
5534 CFLAGS="${CFLAGS}$cf_new_cflags"
5538 if test -n "$cf_new_cppflags" ; then
5540 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
5541 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
5545 if test -n "$cf_new_extra_cppflags" ; then
5547 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
5548 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
5557 if test "$with_dmalloc" = yes ; then
5558 echo "$as_me:5558: checking for dmalloc.h" >&5
5559 echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6
5560 if test "${ac_cv_header_dmalloc_h+set}" = set; then
5561 echo $ECHO_N "(cached) $ECHO_C" >&6
5563 cat >conftest.$ac_ext <<_ACEOF
5564 #line 5564 "configure"
5565 #include "confdefs.h"
5566 #include <dmalloc.h>
5568 if { (eval echo "$as_me:5568: \"$ac_cpp conftest.$ac_ext\"") >&5
5569 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5571 egrep -v '^ *\+' conftest.er1 >conftest.err
5573 cat conftest.err >&5
5574 echo "$as_me:5574: \$? = $ac_status" >&5
5575 (exit $ac_status); } >/dev/null; then
5576 if test -s conftest.err; then
5577 ac_cpp_err=$ac_c_preproc_warn_flag
5584 if test -z "$ac_cpp_err"; then
5585 ac_cv_header_dmalloc_h=yes
5587 echo "$as_me: failed program was:" >&5
5588 cat conftest.$ac_ext >&5
5589 ac_cv_header_dmalloc_h=no
5591 rm -f conftest.err conftest.$ac_ext
5593 echo "$as_me:5593: result: $ac_cv_header_dmalloc_h" >&5
5594 echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6
5595 if test $ac_cv_header_dmalloc_h = yes; then
5597 echo "$as_me:5597: checking for dmalloc_debug in -ldmalloc" >&5
5598 echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6
5599 if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then
5600 echo $ECHO_N "(cached) $ECHO_C" >&6
5602 ac_check_lib_save_LIBS=$LIBS
5603 LIBS="-ldmalloc $LIBS"
5604 cat >conftest.$ac_ext <<_ACEOF
5605 #line 5605 "configure"
5606 #include "confdefs.h"
5608 /* Override any gcc2 internal prototype to avoid an error. */
5612 /* We use char because int might match the return type of a gcc2
5613 builtin and then its argument prototype would still apply. */
5614 char dmalloc_debug ();
5623 rm -f conftest.$ac_objext conftest$ac_exeext
5624 if { (eval echo "$as_me:5624: \"$ac_link\"") >&5
5625 (eval $ac_link) 2>&5
5627 echo "$as_me:5627: \$? = $ac_status" >&5
5628 (exit $ac_status); } &&
5629 { ac_try='test -s conftest$ac_exeext'
5630 { (eval echo "$as_me:5630: \"$ac_try\"") >&5
5633 echo "$as_me:5633: \$? = $ac_status" >&5
5634 (exit $ac_status); }; }; then
5635 ac_cv_lib_dmalloc_dmalloc_debug=yes
5637 echo "$as_me: failed program was:" >&5
5638 cat conftest.$ac_ext >&5
5639 ac_cv_lib_dmalloc_dmalloc_debug=no
5641 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5642 LIBS=$ac_check_lib_save_LIBS
5644 echo "$as_me:5644: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5
5645 echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6
5646 if test $ac_cv_lib_dmalloc_dmalloc_debug = yes; then
5647 cat >>confdefs.h <<EOF
5648 #define HAVE_LIBDMALLOC 1
5651 LIBS="-ldmalloc $LIBS"
5659 echo "$as_me:5659: checking if you want to use dbmalloc for testing" >&5
5660 echo $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6
5662 # Check whether --with-dbmalloc or --without-dbmalloc was given.
5663 if test "${with_dbmalloc+set}" = set; then
5664 withval="$with_dbmalloc"
5666 cat >>confdefs.h <<EOF
5667 #define USE_DBMALLOC 1
5670 : ${with_cflags:=-g}
5671 : ${with_no_leaks:=yes}
5676 echo "$as_me:5676: result: ${with_dbmalloc:-no}" >&5
5677 echo "${ECHO_T}${with_dbmalloc:-no}" >&6
5679 case .$with_cflags in
5689 cf_new_extra_cppflags=
5691 for cf_add_cflags in -g
5693 case $cf_fix_cppflags in
5695 case $cf_add_cflags in
5696 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
5697 case $cf_add_cflags in
5699 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
5701 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
5702 && test -z "${cf_tst_cflags}" \
5703 && cf_fix_cppflags=yes
5705 if test $cf_fix_cppflags = yes ; then
5707 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
5708 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
5711 elif test "${cf_tst_cflags}" = "\"'" ; then
5713 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
5714 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
5724 case $cf_add_cflags in
5726 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
5728 CPPFLAGS=`echo "$CPPFLAGS" | \
5729 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
5730 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
5735 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
5736 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
5743 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
5744 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
5751 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
5752 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
5754 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
5756 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
5757 && test -z "${cf_tst_cflags}" \
5758 && cf_fix_cppflags=no
5763 if test -n "$cf_new_cflags" ; then
5765 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
5766 CFLAGS="${CFLAGS}$cf_new_cflags"
5770 if test -n "$cf_new_cppflags" ; then
5772 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
5773 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
5777 if test -n "$cf_new_extra_cppflags" ; then
5779 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
5780 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
5789 if test "$with_dbmalloc" = yes ; then
5790 echo "$as_me:5790: checking for dbmalloc.h" >&5
5791 echo $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6
5792 if test "${ac_cv_header_dbmalloc_h+set}" = set; then
5793 echo $ECHO_N "(cached) $ECHO_C" >&6
5795 cat >conftest.$ac_ext <<_ACEOF
5796 #line 5796 "configure"
5797 #include "confdefs.h"
5798 #include <dbmalloc.h>
5800 if { (eval echo "$as_me:5800: \"$ac_cpp conftest.$ac_ext\"") >&5
5801 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5803 egrep -v '^ *\+' conftest.er1 >conftest.err
5805 cat conftest.err >&5
5806 echo "$as_me:5806: \$? = $ac_status" >&5
5807 (exit $ac_status); } >/dev/null; then
5808 if test -s conftest.err; then
5809 ac_cpp_err=$ac_c_preproc_warn_flag
5816 if test -z "$ac_cpp_err"; then
5817 ac_cv_header_dbmalloc_h=yes
5819 echo "$as_me: failed program was:" >&5
5820 cat conftest.$ac_ext >&5
5821 ac_cv_header_dbmalloc_h=no
5823 rm -f conftest.err conftest.$ac_ext
5825 echo "$as_me:5825: result: $ac_cv_header_dbmalloc_h" >&5
5826 echo "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6
5827 if test $ac_cv_header_dbmalloc_h = yes; then
5829 echo "$as_me:5829: checking for debug_malloc in -ldbmalloc" >&5
5830 echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6
5831 if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then
5832 echo $ECHO_N "(cached) $ECHO_C" >&6
5834 ac_check_lib_save_LIBS=$LIBS
5835 LIBS="-ldbmalloc $LIBS"
5836 cat >conftest.$ac_ext <<_ACEOF
5837 #line 5837 "configure"
5838 #include "confdefs.h"
5840 /* Override any gcc2 internal prototype to avoid an error. */
5844 /* We use char because int might match the return type of a gcc2
5845 builtin and then its argument prototype would still apply. */
5846 char debug_malloc ();
5855 rm -f conftest.$ac_objext conftest$ac_exeext
5856 if { (eval echo "$as_me:5856: \"$ac_link\"") >&5
5857 (eval $ac_link) 2>&5
5859 echo "$as_me:5859: \$? = $ac_status" >&5
5860 (exit $ac_status); } &&
5861 { ac_try='test -s conftest$ac_exeext'
5862 { (eval echo "$as_me:5862: \"$ac_try\"") >&5
5865 echo "$as_me:5865: \$? = $ac_status" >&5
5866 (exit $ac_status); }; }; then
5867 ac_cv_lib_dbmalloc_debug_malloc=yes
5869 echo "$as_me: failed program was:" >&5
5870 cat conftest.$ac_ext >&5
5871 ac_cv_lib_dbmalloc_debug_malloc=no
5873 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5874 LIBS=$ac_check_lib_save_LIBS
5876 echo "$as_me:5876: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5
5877 echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6
5878 if test $ac_cv_lib_dbmalloc_debug_malloc = yes; then
5879 cat >>confdefs.h <<EOF
5880 #define HAVE_LIBDBMALLOC 1
5883 LIBS="-ldbmalloc $LIBS"
5891 echo "$as_me:5891: checking if you want to use valgrind for testing" >&5
5892 echo $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6
5894 # Check whether --with-valgrind or --without-valgrind was given.
5895 if test "${with_valgrind+set}" = set; then
5896 withval="$with_valgrind"
5898 cat >>confdefs.h <<EOF
5899 #define USE_VALGRIND 1
5902 : ${with_cflags:=-g}
5903 : ${with_no_leaks:=yes}
5908 echo "$as_me:5908: result: ${with_valgrind:-no}" >&5
5909 echo "${ECHO_T}${with_valgrind:-no}" >&6
5911 case .$with_cflags in
5921 cf_new_extra_cppflags=
5923 for cf_add_cflags in -g
5925 case $cf_fix_cppflags in
5927 case $cf_add_cflags in
5928 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
5929 case $cf_add_cflags in
5931 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
5933 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
5934 && test -z "${cf_tst_cflags}" \
5935 && cf_fix_cppflags=yes
5937 if test $cf_fix_cppflags = yes ; then
5939 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
5940 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
5943 elif test "${cf_tst_cflags}" = "\"'" ; then
5945 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
5946 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
5956 case $cf_add_cflags in
5958 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
5960 CPPFLAGS=`echo "$CPPFLAGS" | \
5961 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
5962 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
5967 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
5968 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
5975 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
5976 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
5983 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
5984 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
5986 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
5988 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
5989 && test -z "${cf_tst_cflags}" \
5990 && cf_fix_cppflags=no
5995 if test -n "$cf_new_cflags" ; then
5997 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
5998 CFLAGS="${CFLAGS}$cf_new_cflags"
6002 if test -n "$cf_new_cppflags" ; then
6004 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
6005 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
6009 if test -n "$cf_new_extra_cppflags" ; then
6011 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
6012 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
6021 echo "$as_me:6021: checking if you want to perform memory-leak testing" >&5
6022 echo $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6
6024 # Check whether --enable-leaks or --disable-leaks was given.
6025 if test "${enable_leaks+set}" = set; then
6026 enableval="$enable_leaks"
6027 if test "x$enableval" = xno; then with_no_leaks=yes; else with_no_leaks=no; fi
6029 : ${with_no_leaks:=no}
6031 echo "$as_me:6031: result: $with_no_leaks" >&5
6032 echo "${ECHO_T}$with_no_leaks" >&6
6034 if test "$with_no_leaks" = yes ; then
6036 cat >>confdefs.h <<\EOF
6040 cat >>confdefs.h <<\EOF
6041 #define YY_NO_LEAKS 1
6046 # Extract the first word of "groff", so it can be a program name with args.
6047 set dummy groff; ac_word=$2
6048 echo "$as_me:6048: checking for $ac_word" >&5
6049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6050 if test "${ac_cv_path_GROFF_PATH+set}" = set; then
6051 echo $ECHO_N "(cached) $ECHO_C" >&6
6055 ac_cv_path_GROFF_PATH="$GROFF_PATH" # Let the user override the test with a path.
6058 ac_save_IFS=$IFS; IFS=$ac_path_separator
6060 for ac_dir in $ac_dummy; do
6062 test -z "$ac_dir" && ac_dir=.
6063 if $as_executable_p "$ac_dir/$ac_word"; then
6064 ac_cv_path_GROFF_PATH="$ac_dir/$ac_word"
6065 echo "$as_me:6065: found $ac_dir/$ac_word" >&5
6070 test -z "$ac_cv_path_GROFF_PATH" && ac_cv_path_GROFF_PATH="no"
6074 GROFF_PATH=$ac_cv_path_GROFF_PATH
6076 if test -n "$GROFF_PATH"; then
6077 echo "$as_me:6077: result: $GROFF_PATH" >&5
6078 echo "${ECHO_T}$GROFF_PATH" >&6
6080 echo "$as_me:6080: result: no" >&5
6081 echo "${ECHO_T}no" >&6
6084 for ac_prog in nroff mandoc
6086 # Extract the first word of "$ac_prog", so it can be a program name with args.
6087 set dummy $ac_prog; ac_word=$2
6088 echo "$as_me:6088: checking for $ac_word" >&5
6089 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6090 if test "${ac_cv_path_NROFF_PATH+set}" = set; then
6091 echo $ECHO_N "(cached) $ECHO_C" >&6
6095 ac_cv_path_NROFF_PATH="$NROFF_PATH" # Let the user override the test with a path.
6098 ac_save_IFS=$IFS; IFS=$ac_path_separator
6100 for ac_dir in $ac_dummy; do
6102 test -z "$ac_dir" && ac_dir=.
6103 if $as_executable_p "$ac_dir/$ac_word"; then
6104 ac_cv_path_NROFF_PATH="$ac_dir/$ac_word"
6105 echo "$as_me:6105: found $ac_dir/$ac_word" >&5
6113 NROFF_PATH=$ac_cv_path_NROFF_PATH
6115 if test -n "$NROFF_PATH"; then
6116 echo "$as_me:6116: result: $NROFF_PATH" >&5
6117 echo "${ECHO_T}$NROFF_PATH" >&6
6119 echo "$as_me:6119: result: no" >&5
6120 echo "${ECHO_T}no" >&6
6123 test -n "$NROFF_PATH" && break
6125 test -n "$NROFF_PATH" || NROFF_PATH="no"
6127 # Extract the first word of "tbl", so it can be a program name with args.
6128 set dummy tbl; ac_word=$2
6129 echo "$as_me:6129: checking for $ac_word" >&5
6130 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6131 if test "${ac_cv_path_TBL_PATH+set}" = set; then
6132 echo $ECHO_N "(cached) $ECHO_C" >&6
6136 ac_cv_path_TBL_PATH="$TBL_PATH" # Let the user override the test with a path.
6139 ac_save_IFS=$IFS; IFS=$ac_path_separator
6141 for ac_dir in $ac_dummy; do
6143 test -z "$ac_dir" && ac_dir=.
6144 if $as_executable_p "$ac_dir/$ac_word"; then
6145 ac_cv_path_TBL_PATH="$ac_dir/$ac_word"
6146 echo "$as_me:6146: found $ac_dir/$ac_word" >&5
6151 test -z "$ac_cv_path_TBL_PATH" && ac_cv_path_TBL_PATH="cat"
6155 TBL_PATH=$ac_cv_path_TBL_PATH
6157 if test -n "$TBL_PATH"; then
6158 echo "$as_me:6158: result: $TBL_PATH" >&5
6159 echo "${ECHO_T}$TBL_PATH" >&6
6161 echo "$as_me:6161: result: no" >&5
6162 echo "${ECHO_T}no" >&6
6165 if test "x$GROFF_PATH" = xno
6174 case "x${with_man2html}" in
6179 # Extract the first word of "man2html", so it can be a program name with args.
6180 set dummy man2html; ac_word=$2
6181 echo "$as_me:6181: checking for $ac_word" >&5
6182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6183 if test "${ac_cv_path_cf_man2html+set}" = set; then
6184 echo $ECHO_N "(cached) $ECHO_C" >&6
6186 case $cf_man2html in
6188 ac_cv_path_cf_man2html="$cf_man2html" # Let the user override the test with a path.
6191 ac_save_IFS=$IFS; IFS=$ac_path_separator
6193 for ac_dir in $ac_dummy; do
6195 test -z "$ac_dir" && ac_dir=.
6196 if $as_executable_p "$ac_dir/$ac_word"; then
6197 ac_cv_path_cf_man2html="$ac_dir/$ac_word"
6198 echo "$as_me:6198: found $ac_dir/$ac_word" >&5
6203 test -z "$ac_cv_path_cf_man2html" && ac_cv_path_cf_man2html="no"
6207 cf_man2html=$ac_cv_path_cf_man2html
6209 if test -n "$cf_man2html"; then
6210 echo "$as_me:6210: result: $cf_man2html" >&5
6211 echo "${ECHO_T}$cf_man2html" >&6
6213 echo "$as_me:6213: result: no" >&5
6214 echo "${ECHO_T}no" >&6
6217 case "x$cf_man2html" in
6219 echo "$as_me:6219: checking for the modified Earl Hood script" >&5
6220 echo $ECHO_N "checking for the modified Earl Hood script... $ECHO_C" >&6
6221 if ( $cf_man2html -help 2>&1 | grep 'Make an index of headers at the end' >/dev/null )
6228 echo "$as_me:6228: result: $cf_man2html_ok" >&5
6229 echo "${ECHO_T}$cf_man2html_ok" >&6
6237 echo "$as_me:6237: checking for program to convert manpage to html" >&5
6238 echo $ECHO_N "checking for program to convert manpage to html... $ECHO_C" >&6
6240 # Check whether --with-man2html or --without-man2html was given.
6241 if test "${with_man2html+set}" = set; then
6242 withval="$with_man2html"
6243 cf_man2html=$withval
6245 cf_man2html=$cf_man2html
6250 case $cf_man2html in
6252 echo "$as_me:6252: result: man2html" >&5
6253 echo "${ECHO_T}man2html" >&6
6254 # Extract the first word of "man2html", so it can be a program name with args.
6255 set dummy man2html; ac_word=$2
6256 echo "$as_me:6256: checking for $ac_word" >&5
6257 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6258 if test "${ac_cv_path_cf_man2html+set}" = set; then
6259 echo $ECHO_N "(cached) $ECHO_C" >&6
6261 case $cf_man2html in
6263 ac_cv_path_cf_man2html="$cf_man2html" # Let the user override the test with a path.
6266 ac_save_IFS=$IFS; IFS=$ac_path_separator
6268 for ac_dir in $ac_dummy; do
6270 test -z "$ac_dir" && ac_dir=.
6271 if $as_executable_p "$ac_dir/$ac_word"; then
6272 ac_cv_path_cf_man2html="$ac_dir/$ac_word"
6273 echo "$as_me:6273: found $ac_dir/$ac_word" >&5
6278 test -z "$ac_cv_path_cf_man2html" && ac_cv_path_cf_man2html="no"
6282 cf_man2html=$ac_cv_path_cf_man2html
6284 if test -n "$cf_man2html"; then
6285 echo "$as_me:6285: result: $cf_man2html" >&5
6286 echo "${ECHO_T}$cf_man2html" >&6
6288 echo "$as_me:6288: result: no" >&5
6289 echo "${ECHO_T}no" >&6
6295 cf_man2html=$GROFF_PATH
6296 echo "$as_me:6296: result: $cf_man2html" >&5
6297 echo "${ECHO_T}$cf_man2html" >&6
6300 echo "$as_me:6300: result: $cf_man2html" >&5
6301 echo "${ECHO_T}$cf_man2html" >&6
6305 MAN2HTML_TEMP="man2html.tmp"
6306 cat >$MAN2HTML_TEMP <<CF_EOF
6308 # Temporary script generated by CF_WITH_MAN2HTML
6309 # Convert inputs to html, sending result to standard output.
6312 # \${1} = rootname of file to convert
6313 # \${2} = suffix of file to convert, e.g., "1"
6314 # \${3} = macros to use, e.g., "man"
6329 if test "x$cf_with_groff" = xyes
6331 MAN2HTML_NOTE="$GROFF_NOTE"
6332 MAN2HTML_PATH="$GROFF_PATH"
6333 cat >>$MAN2HTML_TEMP <<CF_EOF
6334 $SHELL -c "$TBL_PATH \${ROOT}.\${TYPE} | $GROFF_PATH -P -o0 -I\${ROOT}_ -Thtml -\${MACS}"
6339 if test "x$prefix" != xNONE; then
6340 cf_path_syntax="$prefix"
6342 cf_path_syntax="$ac_default_prefix"
6345 case ".$cf_man2html" in
6350 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
6352 (.\${*prefix}*|.\${*dir}*)
6353 eval cf_man2html="$cf_man2html"
6354 case ".$cf_man2html" in
6356 cf_man2html=`echo $cf_man2html | sed -e s%NONE%$cf_path_syntax%`
6361 cf_man2html=`echo $cf_man2html | sed -e s%NONE%$cf_path_syntax%`
6364 { { echo "$as_me:6364: error: expected a pathname, not \"$cf_man2html\"" >&5
6365 echo "$as_me: error: expected a pathname, not \"$cf_man2html\"" >&2;}
6366 { (exit 1); exit 1; }; }
6370 MAN2HTML_PATH="$cf_man2html"
6371 echo "$as_me:6371: checking for $cf_man2html top/bottom margins" >&5
6372 echo $ECHO_N "checking for $cf_man2html top/bottom margins... $ECHO_C" >&6
6374 # for this example, expect 3 lines of content, the remainder is head/foot
6375 cat >conftest.in <<CF_EOF
6376 .TH HEAD1 HEAD2 HEAD3 HEAD4 HEAD5
6381 LC_ALL=C LC_CTYPE=C LANG=C LANGUAGE=C $NROFF_PATH -man conftest.in >conftest.out
6383 cf_man2html_1st=`fgrep -n MARKER conftest.out |sed -e 's/^[^0-9]*://' -e 's/:.*//'`
6384 cf_man2html_top=`expr $cf_man2html_1st - 2`
6385 cf_man2html_bot=`wc -l conftest.out |sed -e 's/[^0-9]//g'`
6386 cf_man2html_bot=`expr $cf_man2html_bot - 2 - $cf_man2html_top`
6387 cf_man2html_top_bot="-topm=$cf_man2html_top -botm=$cf_man2html_bot"
6389 echo "$as_me:6389: result: $cf_man2html_top_bot" >&5
6390 echo "${ECHO_T}$cf_man2html_top_bot" >&6
6392 echo "$as_me:6392: checking for pagesize to use" >&5
6393 echo $ECHO_N "checking for pagesize to use... $ECHO_C" >&6
6394 for cf_block in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
6396 cat >>conftest.in <<CF_EOF
6411 LC_ALL=C LC_CTYPE=C LANG=C LANGUAGE=C $NROFF_PATH -man conftest.in >conftest.out
6412 cf_man2html_page=`fgrep -n HEAD1 conftest.out |sed -n '$p' |sed -e 's/^[^0-9]*://' -e 's/:.*//'`
6413 test -z "$cf_man2html_page" && cf_man2html_page=99999
6414 test "$cf_man2html_page" -gt 100 && cf_man2html_page=99999
6417 echo "$as_me:6417: result: $cf_man2html_page" >&5
6418 echo "${ECHO_T}$cf_man2html_page" >&6
6420 cat >>$MAN2HTML_TEMP <<CF_EOF
6421 : \${MAN2HTML_PATH=$MAN2HTML_PATH}
6422 MAN2HTML_OPTS="\$MAN2HTML_OPTS -index -title="\$ROOT\(\$TYPE\)" -compress -pgsize $cf_man2html_page"
6425 $TBL_PATH \${ROOT}.\${TYPE} | $NROFF_PATH -\${MACS} | \$MAN2HTML_PATH -topm=0 -botm=0 \$MAN2HTML_OPTS
6428 $TBL_PATH \${ROOT}.\${TYPE} | $NROFF_PATH -\${MACS} | \$MAN2HTML_PATH $cf_man2html_top_bot \$MAN2HTML_OPTS
6434 chmod 700 $MAN2HTML_TEMP
6436 echo "$as_me:6436: checking for ANSI C header files" >&5
6437 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6438 if test "${ac_cv_header_stdc+set}" = set; then
6439 echo $ECHO_N "(cached) $ECHO_C" >&6
6441 cat >conftest.$ac_ext <<_ACEOF
6442 #line 6442 "configure"
6443 #include "confdefs.h"
6450 if { (eval echo "$as_me:6450: \"$ac_cpp conftest.$ac_ext\"") >&5
6451 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6453 egrep -v '^ *\+' conftest.er1 >conftest.err
6455 cat conftest.err >&5
6456 echo "$as_me:6456: \$? = $ac_status" >&5
6457 (exit $ac_status); } >/dev/null; then
6458 if test -s conftest.err; then
6459 ac_cpp_err=$ac_c_preproc_warn_flag
6466 if test -z "$ac_cpp_err"; then
6467 ac_cv_header_stdc=yes
6469 echo "$as_me: failed program was:" >&5
6470 cat conftest.$ac_ext >&5
6471 ac_cv_header_stdc=no
6473 rm -f conftest.err conftest.$ac_ext
6475 if test $ac_cv_header_stdc = yes; then
6476 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6477 cat >conftest.$ac_ext <<_ACEOF
6478 #line 6478 "configure"
6479 #include "confdefs.h"
6483 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6484 egrep "memchr" >/dev/null 2>&1; then
6487 ac_cv_header_stdc=no
6493 if test $ac_cv_header_stdc = yes; then
6494 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6495 cat >conftest.$ac_ext <<_ACEOF
6496 #line 6496 "configure"
6497 #include "confdefs.h"
6501 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6502 egrep "free" >/dev/null 2>&1; then
6505 ac_cv_header_stdc=no
6511 if test $ac_cv_header_stdc = yes; then
6512 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6513 if test "$cross_compiling" = yes; then
6516 cat >conftest.$ac_ext <<_ACEOF
6517 #line 6517 "configure"
6518 #include "confdefs.h"
6520 #if ((' ' & 0x0FF) == 0x020)
6521 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6522 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6524 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
6525 || ('j' <= (c) && (c) <= 'r') \
6526 || ('s' <= (c) && (c) <= 'z'))
6527 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6530 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6535 for (i = 0; i < 256; i++)
6536 if (XOR (islower (i), ISLOWER (i))
6537 || toupper (i) != TOUPPER (i))
6539 $ac_main_return (0);
6542 rm -f conftest$ac_exeext
6543 if { (eval echo "$as_me:6543: \"$ac_link\"") >&5
6544 (eval $ac_link) 2>&5
6546 echo "$as_me:6546: \$? = $ac_status" >&5
6547 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6548 { (eval echo "$as_me:6548: \"$ac_try\"") >&5
6551 echo "$as_me:6551: \$? = $ac_status" >&5
6552 (exit $ac_status); }; }; then
6555 echo "$as_me: program exited with status $ac_status" >&5
6556 echo "$as_me: failed program was:" >&5
6557 cat conftest.$ac_ext >&5
6558 ac_cv_header_stdc=no
6560 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6564 echo "$as_me:6564: result: $ac_cv_header_stdc" >&5
6565 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6566 if test $ac_cv_header_stdc = yes; then
6568 cat >>confdefs.h <<\EOF
6569 #define STDC_HEADERS 1
6574 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6576 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6577 inttypes.h stdint.h unistd.h
6579 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6580 echo "$as_me:6580: checking for $ac_header" >&5
6581 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6582 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6583 echo $ECHO_N "(cached) $ECHO_C" >&6
6585 cat >conftest.$ac_ext <<_ACEOF
6586 #line 6586 "configure"
6587 #include "confdefs.h"
6588 $ac_includes_default
6589 #include <$ac_header>
6591 rm -f conftest.$ac_objext
6592 if { (eval echo "$as_me:6592: \"$ac_compile\"") >&5
6593 (eval $ac_compile) 2>&5
6595 echo "$as_me:6595: \$? = $ac_status" >&5
6596 (exit $ac_status); } &&
6597 { ac_try='test -s conftest.$ac_objext'
6598 { (eval echo "$as_me:6598: \"$ac_try\"") >&5
6601 echo "$as_me:6601: \$? = $ac_status" >&5
6602 (exit $ac_status); }; }; then
6603 eval "$as_ac_Header=yes"
6605 echo "$as_me: failed program was:" >&5
6606 cat conftest.$ac_ext >&5
6607 eval "$as_ac_Header=no"
6609 rm -f conftest.$ac_objext conftest.$ac_ext
6611 echo "$as_me:6611: result: `eval echo '${'$as_ac_Header'}'`" >&5
6612 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6613 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6614 cat >>confdefs.h <<EOF
6615 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6621 echo "$as_me:6621: checking for mode_t" >&5
6622 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
6623 if test "${ac_cv_type_mode_t+set}" = set; then
6624 echo $ECHO_N "(cached) $ECHO_C" >&6
6626 cat >conftest.$ac_ext <<_ACEOF
6627 #line 6627 "configure"
6628 #include "confdefs.h"
6629 $ac_includes_default
6635 if (sizeof (mode_t))
6641 rm -f conftest.$ac_objext
6642 if { (eval echo "$as_me:6642: \"$ac_compile\"") >&5
6643 (eval $ac_compile) 2>&5
6645 echo "$as_me:6645: \$? = $ac_status" >&5
6646 (exit $ac_status); } &&
6647 { ac_try='test -s conftest.$ac_objext'
6648 { (eval echo "$as_me:6648: \"$ac_try\"") >&5
6651 echo "$as_me:6651: \$? = $ac_status" >&5
6652 (exit $ac_status); }; }; then
6653 ac_cv_type_mode_t=yes
6655 echo "$as_me: failed program was:" >&5
6656 cat conftest.$ac_ext >&5
6657 ac_cv_type_mode_t=no
6659 rm -f conftest.$ac_objext conftest.$ac_ext
6661 echo "$as_me:6661: result: $ac_cv_type_mode_t" >&5
6662 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
6663 if test $ac_cv_type_mode_t = yes; then
6667 cat >>confdefs.h <<EOF
6674 ac_config_files="$ac_config_files makefile"
6675 cat >confcache <<\_ACEOF
6676 # This file is a shell script that caches the results of configure
6677 # tests run on this system so they can be shared between configure
6678 # scripts and configure runs, see configure's option --config-cache.
6679 # It is not useful on other systems. If it contains results you don't
6680 # want to keep, you may remove or edit it.
6682 # config.status only pays attention to the cache file if you give it
6683 # the --recheck option to rerun configure.
6685 # `ac_cv_env_foo' variables (set or unset) will be overriden when
6686 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6691 # The following way of writing the cache mishandles newlines in values,
6692 # but we know of no workaround that is simple, portable, and efficient.
6693 # So, don't put newlines in cache variables' values.
6694 # Ultrix sh set writes to stderr and can't be redirected directly,
6695 # and sets the high bit in the cache file unless we assign to the vars.
6698 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6700 # `set' does not quote correctly, so add quotes (double-quote
6701 # substitution turns \\\\ into \\, and sed turns \\ into \).
6704 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6707 # `set' quotes correctly as required by POSIX, so do not add quotes.
6709 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6716 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6718 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6720 if cmp -s $cache_file confcache; then :; else
6721 if test -w $cache_file; then
6722 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6723 cat confcache >$cache_file
6725 echo "not updating unwritable cache $cache_file"
6730 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6731 # Let make expand exec_prefix.
6732 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6734 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6735 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6736 # trailing colons and then remove the whole line if VPATH becomes empty
6737 # (actually we leave an empty line to preserve line numbers).
6738 if test "x$srcdir" = x.; then
6739 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6740 s/:*\$(srcdir):*/:/;
6741 s/:*\${srcdir}:*/:/;
6743 s/^\([^=]*=[ ]*\):*/\1/;
6749 DEFS=-DHAVE_CONFIG_H
6751 : ${CONFIG_STATUS=./config.status}
6752 ac_clean_files_save=$ac_clean_files
6753 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6754 { echo "$as_me:6754: creating $CONFIG_STATUS" >&5
6755 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6756 cat >$CONFIG_STATUS <<_ACEOF
6758 # Generated automatically by configure.
6759 # Run this file to recreate the current configuration.
6760 # Compiler output produced by configure, useful for debugging
6761 # configure, is in config.log if it exists.
6764 SHELL=\${CONFIG_SHELL-$SHELL}
6765 ac_cs_invocation="\$0 \$@"
6769 cat >>$CONFIG_STATUS <<\_ACEOF
6770 # Be Bourne compatible
6771 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6774 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6778 # Name of the executable.
6779 as_me=`echo "$0" |sed 's,.*[\\/],,'`
6781 if expr a : '\(a\)' >/dev/null 2>&1; then
6787 rm -f conf$$ conf$$.exe conf$$.file
6789 if ln -s conf$$.file conf$$ 2>/dev/null; then
6790 # We could just check for DJGPP; but this test a) works b) is more generic
6791 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6792 if test -f conf$$.exe; then
6793 # Don't use ln at all; we don't have any links
6798 elif ln conf$$.file conf$$ 2>/dev/null; then
6803 rm -f conf$$ conf$$.exe conf$$.file
6805 as_executable_p="test -f"
6807 # Support unset when possible.
6808 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
6815 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
6816 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
6817 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
6818 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
6819 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
6820 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
6821 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
6822 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
6825 # We need space, tab and new line, in precisely that order.
6831 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
6837 # Files that config.status was made for.
6838 if test -n "$ac_config_files"; then
6839 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6842 if test -n "$ac_config_headers"; then
6843 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6846 if test -n "$ac_config_links"; then
6847 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6850 if test -n "$ac_config_commands"; then
6851 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6854 cat >>$CONFIG_STATUS <<\EOF
6857 \`$as_me' instantiates files from templates according to the
6858 current configuration.
6860 Usage: $0 [OPTIONS] [FILE]...
6862 -h, --help print this help, then exit
6863 -V, --version print version number, then exit
6864 -d, --debug don't remove temporary files
6865 --recheck update $as_me by reconfiguring in the same conditions
6866 --file=FILE[:TEMPLATE]
6867 instantiate the configuration file FILE
6868 --header=FILE[:TEMPLATE]
6869 instantiate the configuration header FILE
6871 Configuration files:
6874 Configuration headers:
6877 Report bugs to <dickey@invisible-island.net>."
6880 cat >>$CONFIG_STATUS <<EOF
6883 configured by $0, generated by GNU Autoconf 2.52.20181006,
6884 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6886 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6887 Free Software Foundation, Inc.
6888 This config.status script is free software; the Free Software Foundation
6889 gives unlimited permission to copy, distribute and modify it."
6894 cat >>$CONFIG_STATUS <<\EOF
6895 # If no file are specified by the user, then we need to provide default
6896 # value. By we need to know if files were specified by the user.
6902 ac_option=`expr "x$1" : 'x\([^=]*\)='`
6903 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
6905 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
6909 *) # This is not an option, so the user has probably given explicit
6911 ac_need_defaults=false;;
6915 # Handling of the options.
6917 cat >>$CONFIG_STATUS <<EOF
6918 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6919 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
6920 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
6922 cat >>$CONFIG_STATUS <<\EOF
6923 --version | --vers* | -V )
6924 echo "$ac_cs_version"; exit 0 ;;
6926 # Conflict between --help and --header
6927 { { echo "$as_me:6927: error: ambiguous option: $1
6928 Try \`$0 --help' for more information." >&5
6929 echo "$as_me: error: ambiguous option: $1
6930 Try \`$0 --help' for more information." >&2;}
6931 { (exit 1); exit 1; }; };;
6932 --help | --hel | -h )
6933 echo "$ac_cs_usage"; exit 0 ;;
6934 --debug | --d* | -d )
6936 --file | --fil | --fi | --f )
6938 CONFIG_FILES="$CONFIG_FILES $1"
6939 ac_need_defaults=false;;
6940 --header | --heade | --head | --hea )
6942 CONFIG_HEADERS="$CONFIG_HEADERS $1"
6943 ac_need_defaults=false;;
6946 -*) { { echo "$as_me:6946: error: unrecognized option: $1
6947 Try \`$0 --help' for more information." >&5
6948 echo "$as_me: error: unrecognized option: $1
6949 Try \`$0 --help' for more information." >&2;}
6950 { (exit 1); exit 1; }; } ;;
6952 *) ac_config_targets="$ac_config_targets $1" ;;
6961 ## ----------------------- ##
6962 ## Running config.status. ##
6963 ## ----------------------- ##
6965 This file was extended by $as_me 2.52.20181006, executed with
6966 CONFIG_FILES = $CONFIG_FILES
6967 CONFIG_HEADERS = $CONFIG_HEADERS
6968 CONFIG_LINKS = $CONFIG_LINKS
6969 CONFIG_COMMANDS = $CONFIG_COMMANDS
6971 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6976 cat >>$CONFIG_STATUS <<\EOF
6977 for ac_config_target in $ac_config_targets
6979 case "$ac_config_target" in
6980 # Handling of arguments.
6981 "makefile" ) CONFIG_FILES="$CONFIG_FILES makefile" ;;
6982 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config_h.in" ;;
6983 *) { { echo "$as_me:6983: error: invalid argument: $ac_config_target" >&5
6984 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6985 { (exit 1); exit 1; }; };;
6989 # If the user did not use the arguments to specify the items to instantiate,
6990 # then the envvar interface is used. Set only those that are not.
6991 # We use the long form for the default assignment because of an extremely
6992 # bizarre bug on SunOS 4.1.3.
6993 if $ac_need_defaults; then
6994 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6995 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6998 # Create a temporary directory, and hook for its removal unless debugging.
7001 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7002 trap '{ (exit 1); exit 1; }' 1 2 13 15
7005 # Create a (secure) tmp directory for tmp files.
7008 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
7009 test -n "$tmp" && test -d "$tmp"
7012 tmp=$TMPDIR/cs$$-$RANDOM
7013 (umask 077 && mkdir $tmp)
7016 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
7017 { (exit 1); exit 1; }
7022 cat >>$CONFIG_STATUS <<EOF
7025 # CONFIG_FILES section.
7028 # No need to generate the scripts if there are no CONFIG_FILES.
7029 # This happens for instance when ./config.status config.h
7030 if test -n "\$CONFIG_FILES"; then
7031 # Protect against being on the right side of a sed subst in config.status.
7032 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7033 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7034 s,@SHELL@,$SHELL,;t t
7035 s,@exec_prefix@,$exec_prefix,;t t
7036 s,@prefix@,$prefix,;t t
7037 s,@program_transform_name@,$program_transform_name,;t t
7038 s,@bindir@,$bindir,;t t
7039 s,@sbindir@,$sbindir,;t t
7040 s,@libexecdir@,$libexecdir,;t t
7041 s,@datarootdir@,$datarootdir,;t t
7042 s,@datadir@,$datadir,;t t
7043 s,@sysconfdir@,$sysconfdir,;t t
7044 s,@sharedstatedir@,$sharedstatedir,;t t
7045 s,@localstatedir@,$localstatedir,;t t
7046 s,@runstatedir@,$runstatedir,;t t
7047 s,@libdir@,$libdir,;t t
7048 s,@includedir@,$includedir,;t t
7049 s,@oldincludedir@,$oldincludedir,;t t
7050 s,@infodir@,$infodir,;t t
7051 s,@mandir@,$mandir,;t t
7052 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7053 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7054 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7055 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7056 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7057 s,@build_alias@,$build_alias,;t t
7058 s,@host_alias@,$host_alias,;t t
7059 s,@target_alias@,$target_alias,;t t
7060 s,@ECHO_C@,$ECHO_C,;t t
7061 s,@ECHO_N@,$ECHO_N,;t t
7062 s,@ECHO_T@,$ECHO_T,;t t
7063 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7066 s,@build@,$build,;t t
7067 s,@build_cpu@,$build_cpu,;t t
7068 s,@build_vendor@,$build_vendor,;t t
7069 s,@build_os@,$build_os,;t t
7071 s,@host_cpu@,$host_cpu,;t t
7072 s,@host_vendor@,$host_vendor,;t t
7073 s,@host_os@,$host_os,;t t
7074 s,@target@,$target,;t t
7075 s,@target_cpu@,$target_cpu,;t t
7076 s,@target_vendor@,$target_vendor,;t t
7077 s,@target_os@,$target_os,;t t
7079 s,@CFLAGS@,$CFLAGS,;t t
7080 s,@LDFLAGS@,$LDFLAGS,;t t
7081 s,@CPPFLAGS@,$CPPFLAGS,;t t
7082 s,@ac_ct_CC@,$ac_ct_CC,;t t
7083 s,@EXEEXT@,$EXEEXT,;t t
7084 s,@OBJEXT@,$OBJEXT,;t t
7085 s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t
7086 s,@SET_MAKE@,$SET_MAKE,;t t
7087 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7088 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7089 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7090 s,@CTAGS@,$CTAGS,;t t
7091 s,@ETAGS@,$ETAGS,;t t
7092 s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t
7093 s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t
7096 s,@LINT_OPTS@,$LINT_OPTS,;t t
7098 s,@SKELETON@,$SKELETON,;t t
7099 s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t
7100 s,@ECHO_LT@,$ECHO_LT,;t t
7101 s,@ECHO_LD@,$ECHO_LD,;t t
7102 s,@RULE_CC@,$RULE_CC,;t t
7103 s,@SHOW_CC@,$SHOW_CC,;t t
7104 s,@ECHO_CC@,$ECHO_CC,;t t
7105 s,@GROFF_PATH@,$GROFF_PATH,;t t
7106 s,@NROFF_PATH@,$NROFF_PATH,;t t
7107 s,@TBL_PATH@,$TBL_PATH,;t t
7108 s,@GROFF_NOTE@,$GROFF_NOTE,;t t
7109 s,@NROFF_NOTE@,$NROFF_NOTE,;t t
7110 s,@cf_man2html@,$cf_man2html,;t t
7111 s,@MAN2HTML_NOTE@,$MAN2HTML_NOTE,;t t
7112 s,@MAN2HTML_PATH@,$MAN2HTML_PATH,;t t
7113 s,@MAN2HTML_TEMP@,$MAN2HTML_TEMP,;t t
7118 cat >>$CONFIG_STATUS <<\EOF
7119 # Split the substitutions into bite-sized pieces for seds with
7120 # small command number limits, like on Digital OSF/1 and HP-UX.
7122 ac_sed_frag=1 # Number of current file.
7123 ac_beg=1 # First line for current file.
7124 ac_end=$ac_max_sed_lines # Line after last line for current file.
7127 while $ac_more_lines; do
7128 if test $ac_beg -gt 1; then
7129 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7131 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7133 if test ! -s $tmp/subs.frag; then
7136 # The purpose of the label and of the branching condition is to
7137 # speed up the sed processing (if there are no `@' at all, there
7138 # is no need to browse any of the substitutions).
7139 # These are the two extra sed commands mentioned above.
7141 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7142 # It is possible to make a multiline substitution using escaped newlines.
7143 # Ensure that we do not split the substitution between script fragments.
7145 ac_END=`expr $ac_end + $ac_max_sed_lines`
7146 sed "1,${ac_BEG}d; ${ac_END}p; q" $tmp/subs.sed >$tmp/subs.next
7147 if test -s $tmp/subs.next; then
7148 grep '^s,@[^@,][^@,]*@,.*\\$' $tmp/subs.next >$tmp/subs.edit
7149 if test ! -s $tmp/subs.edit; then
7150 grep "^s,@[^@,][^@,]*@,.*,;t t$" $tmp/subs.next >$tmp/subs.edit
7151 if test ! -s $tmp/subs.edit; then
7152 if test $ac_beg -gt 1; then
7153 ac_end=`expr $ac_end - 1`
7160 if test -z "$ac_sed_cmds"; then
7161 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7163 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7165 ac_sed_frag=`expr $ac_sed_frag + 1`
7167 ac_end=`expr $ac_end + $ac_max_sed_lines`
7170 if test -z "$ac_sed_cmds"; then
7173 fi # test -n "$CONFIG_FILES"
7176 cat >>$CONFIG_STATUS <<\EOF
7177 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7178 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7180 - | *:- | *:-:* ) # input from stdin
7182 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7183 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7184 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7185 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7186 * ) ac_file_in=$ac_file.in ;;
7189 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7190 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7191 X"$ac_file" : 'X\(//\)[^/]' \| \
7192 X"$ac_file" : 'X\(//\)$' \| \
7193 X"$ac_file" : 'X\(/\)' \| \
7194 . : '\(.\)' 2>/dev/null ||
7196 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7197 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7198 /^X\(\/\/\)$/{ s//\1/; q; }
7199 /^X\(\/\).*/{ s//\1/; q; }
7201 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7203 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
7207 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
7208 case $as_mkdir_dir in
7209 # Skip DOS drivespec
7210 ?:) as_incr_dir=$as_mkdir_dir ;;
7212 as_incr_dir=$as_incr_dir/$as_mkdir_dir
7213 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
7218 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
7219 # A "../" for each directory in $ac_dir_suffix.
7220 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
7222 ac_dir_suffix= ac_dots=
7227 if test -z "$ac_dots"; then
7230 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
7233 ac_srcdir=$srcdir$ac_dir_suffix;
7234 ac_top_srcdir=$srcdir ;;
7236 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
7237 ac_top_srcdir=$ac_dots$srcdir ;;
7241 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7242 *) ac_INSTALL=$ac_dots$INSTALL ;;
7245 if test x"$ac_file" != x-; then
7246 { echo "$as_me:7246: creating $ac_file" >&5
7247 echo "$as_me: creating $ac_file" >&6;}
7250 # Let's still pretend it is `configure' which instantiates (i.e., don't
7251 # use $as_me), people would be surprised to read:
7252 # /* config.h. Generated automatically by config.status. */
7253 configure_input="Generated automatically from `echo $ac_file_in |
7254 sed 's,.*/,,'` by configure."
7256 # First look for the input files in the build tree, otherwise in the
7258 ac_file_inputs=`IFS=:
7259 for f in $ac_file_in; do
7261 -) echo $tmp/stdin ;;
7263 # Absolute (can't be DOS-style, as IFS=:)
7264 test -f "$f" || { { echo "$as_me:7264: error: cannot find input file: $f" >&5
7265 echo "$as_me: error: cannot find input file: $f" >&2;}
7266 { (exit 1); exit 1; }; }
7269 if test -f "$f"; then
7272 elif test -f "$srcdir/$f"; then
7277 { { echo "$as_me:7277: error: cannot find input file: $f" >&5
7278 echo "$as_me: error: cannot find input file: $f" >&2;}
7279 { (exit 1); exit 1; }; }
7282 done` || { (exit 1); exit 1; }
7284 cat >>$CONFIG_STATUS <<\EOF
7285 ac_warn_datarootdir=no
7286 if test x"$ac_file" != x-; then
7287 for ac_item in $ac_file_inputs
7289 ac_seen=`grep '@\(datadir\|mandir\|infodir\)@' $ac_item`
7290 if test -n "$ac_seen"; then
7291 ac_used=`grep '@datarootdir@' $ac_item`
7292 if test -z "$ac_used"; then
7293 { echo "$as_me:7293: WARNING: datarootdir was used implicitly but not set:
7295 echo "$as_me: WARNING: datarootdir was used implicitly but not set:
7297 ac_warn_datarootdir=yes
7300 ac_seen=`grep '${datarootdir}' $ac_item`
7301 if test -n "$ac_seen"; then
7302 { echo "$as_me:7302: WARNING: datarootdir was used explicitly but not set:
7304 echo "$as_me: WARNING: datarootdir was used explicitly but not set:
7306 ac_warn_datarootdir=yes
7311 if test "x$ac_warn_datarootdir" = xyes; then
7312 ac_sed_cmds="$ac_sed_cmds | sed -e 's,@datarootdir@,\${prefix}/share,g' -e 's,\${datarootdir},\${prefix}/share,g'"
7316 cat >>$CONFIG_STATUS <<EOF
7320 cat >>$CONFIG_STATUS <<\EOF
7322 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7323 s,@configure_input@,$configure_input,;t t
7324 s,@srcdir@,$ac_srcdir,;t t
7325 s,@top_srcdir@,$ac_top_srcdir,;t t
7326 s,@INSTALL@,$ac_INSTALL,;t t
7327 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7329 if test x"$ac_file" != x-; then
7330 cp $tmp/out $ac_file
7332 for ac_name in prefix exec_prefix datarootdir
7334 ac_seen=`fgrep -n '${'$ac_name'[:=].*}' $ac_file`
7335 if test -n "$ac_seen"; then
7336 ac_init=`egrep '[ ]*'$ac_name'[ ]*=' $ac_file`
7337 if test -z "$ac_init"; then
7338 ac_seen=`echo "$ac_seen" |sed -e 's,^,'$ac_file':,'`
7339 { echo "$as_me:7339: WARNING: Variable $ac_name is used but was not set:
7341 echo "$as_me: WARNING: Variable $ac_name is used but was not set:
7346 egrep -n '@[a-z_][a-z_0-9]+@' $ac_file >$tmp/out
7347 egrep -n '@[A-Z_][A-Z_0-9]+@' $ac_file >>$tmp/out
7348 if test -s $tmp/out; then
7349 ac_seen=`sed -e 's,^,'$ac_file':,' < $tmp/out`
7350 { echo "$as_me:7350: WARNING: Some variables may not be substituted:
7352 echo "$as_me: WARNING: Some variables may not be substituted:
7362 cat >>$CONFIG_STATUS <<\EOF
7365 # CONFIG_HEADER section.
7368 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7369 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7371 # ac_d sets the value in "#define NAME VALUE" lines.
7372 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7373 ac_dB='[ ].*$,\1#\2'
7376 # ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
7377 ac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7378 ac_iB='\([ ]\),\1#\2define\3'
7381 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7382 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7383 ac_uB='$,\1#\2define\3'
7387 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
7388 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7390 - | *:- | *:-:* ) # input from stdin
7392 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7393 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7394 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7395 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7396 * ) ac_file_in=$ac_file.in ;;
7399 test x"$ac_file" != x- && { echo "$as_me:7399: creating $ac_file" >&5
7400 echo "$as_me: creating $ac_file" >&6;}
7402 # First look for the input files in the build tree, otherwise in the
7404 ac_file_inputs=`IFS=:
7405 for f in $ac_file_in; do
7407 -) echo $tmp/stdin ;;
7409 # Absolute (can't be DOS-style, as IFS=:)
7410 test -f "$f" || { { echo "$as_me:7410: error: cannot find input file: $f" >&5
7411 echo "$as_me: error: cannot find input file: $f" >&2;}
7412 { (exit 1); exit 1; }; }
7415 if test -f "$f"; then
7418 elif test -f "$srcdir/$f"; then
7423 { { echo "$as_me:7423: error: cannot find input file: $f" >&5
7424 echo "$as_me: error: cannot find input file: $f" >&2;}
7425 { (exit 1); exit 1; }; }
7428 done` || { (exit 1); exit 1; }
7429 # Remove the trailing spaces.
7430 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
7434 # Transform confdefs.h into two sed scripts, `conftest.defines' and
7435 # `conftest.undefs', that substitutes the proper values into
7436 # config.h.in to produce config.h. The first handles `#define'
7437 # templates, and the second `#undef' templates.
7438 # And first: Protect against being on the right side of a sed subst in
7439 # config.status. Protect against being in an unquoted here document
7441 rm -f conftest.defines conftest.undefs
7442 # Using a here document instead of a string reduces the quoting nightmare.
7443 # Putting comments in sed scripts is not portable.
7445 # `end' is used to avoid that the second main sed command (meant for
7446 # 0-ary CPP macros) applies to n-ary macro definitions.
7447 # See the Autoconf documentation for `clear'.
7448 cat >confdef2sed.sed <<\EOF
7453 s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
7455 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7458 # If some macros were called several times there might be several times
7459 # the same #defines, which is useless. Nevertheless, we may not want to
7460 # sort them, since we want the *last* AC-DEFINE to be honored.
7461 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7462 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7463 sed 's/ac_d/ac_i/g' conftest.defines >>conftest.undefs
7464 rm -f confdef2sed.sed
7466 # This sed command replaces #undef with comments. This is necessary, for
7467 # example, in the case of _POSIX_SOURCE, which is predefined and required
7468 # on some systems where configure will not decide to define it.
7469 cat >>conftest.undefs <<\EOF
7470 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7473 # Break up conftest.defines because some shells have a limit on the size
7474 # of here documents, and old seds have small limits too (100 cmds).
7475 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7476 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7477 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7478 echo ' :' >>$CONFIG_STATUS
7480 while grep . conftest.defines >/dev/null
7482 # Write a limited-size here document to $tmp/defines.sed.
7483 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7484 # Speed up: don't consider the non `#define' lines.
7485 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
7486 # Work around the forget-to-reset-the-flag bug.
7487 echo 't clr' >>$CONFIG_STATUS
7488 echo ': clr' >>$CONFIG_STATUS
7489 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
7491 sed -f $tmp/defines.sed $tmp/in >$tmp/out
7495 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7496 rm -f conftest.defines
7497 mv conftest.tail conftest.defines
7499 rm -f conftest.defines
7500 echo ' fi # egrep' >>$CONFIG_STATUS
7501 echo >>$CONFIG_STATUS
7503 # Break up conftest.undefs because some shells have a limit on the size
7504 # of here documents, and old seds have small limits too (100 cmds).
7505 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
7507 while grep . conftest.undefs >/dev/null
7509 # Write a limited-size here document to $tmp/undefs.sed.
7510 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7511 # Speed up: don't consider the non `#undef'
7512 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
7513 # Work around the forget-to-reset-the-flag bug.
7514 echo 't clr' >>$CONFIG_STATUS
7515 echo ': clr' >>$CONFIG_STATUS
7516 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7518 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7522 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7523 rm -f conftest.undefs
7524 mv conftest.tail conftest.undefs
7526 rm -f conftest.undefs
7528 cat >>$CONFIG_STATUS <<\EOF
7529 # Let's still pretend it is `configure' which instantiates (i.e., don't
7530 # use $as_me), people would be surprised to read:
7531 # /* config.h. Generated automatically by config.status. */
7532 if test x"$ac_file" = x-; then
7533 echo "/* Generated automatically by configure. */" >$tmp/config.h
7535 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
7537 cat $tmp/in >>$tmp/config.h
7539 if test x"$ac_file" != x-; then
7540 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
7541 { echo "$as_me:7541: $ac_file is unchanged" >&5
7542 echo "$as_me: $ac_file is unchanged" >&6;}
7544 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7545 X"$ac_file" : 'X\(//\)[^/]' \| \
7546 X"$ac_file" : 'X\(//\)$' \| \
7547 X"$ac_file" : 'X\(/\)' \| \
7548 . : '\(.\)' 2>/dev/null ||
7550 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7551 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7552 /^X\(\/\/\)$/{ s//\1/; q; }
7553 /^X\(\/\).*/{ s//\1/; q; }
7555 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7557 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
7561 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
7562 case $as_mkdir_dir in
7563 # Skip DOS drivespec
7564 ?:) as_incr_dir=$as_mkdir_dir ;;
7566 as_incr_dir=$as_incr_dir/$as_mkdir_dir
7567 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
7574 mv $tmp/config.h $ac_file
7583 cat >>$CONFIG_STATUS <<\EOF
7585 { (exit 0); exit 0; }
7587 chmod +x $CONFIG_STATUS
7588 ac_clean_files=$ac_clean_files_save
7590 # configure is writing to config.log, and then calls config.status.
7591 # config.status does its own redirection, appending to config.log.
7592 # Unfortunately, on DOS this fails, as config.log is still kept open
7593 # by configure, so config.status won't be able to write to it; its
7594 # output is simply discarded. So we exec the FD to /dev/null,
7595 # effectively closing config.log, so it can be properly (re)opened and
7596 # appended to by config.status. When coming back to configure, we
7597 # need to make the FD available again.
7598 if test "$no_create" != yes; then
7601 $SHELL $CONFIG_STATUS || ac_cs_success=false
7603 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7604 # would make configure fail if this is the last instruction.
7605 $ac_cs_success || { (exit 1); exit 1; }
7608 test -z "$cf_make_docs" && cf_make_docs=0
7611 test -f "$cf_output" || cf_output=Makefile
7613 if test "$cf_make_docs" = 0
7615 cat >>$cf_output <<CF_EOF
7616 ################################################################################
7617 ## generated by CF_MAKE_DOCS
7618 .SUFFIXES : .html .1 .man .ps .pdf .txt
7620 ${NROFF_NOTE}.1.txt :
7621 ${NROFF_NOTE} \$(SHELL) -c "tbl \$*.1 | nroff -man | col -bx" >\$@
7623 ${GROFF_NOTE}.ps.pdf :
7624 ${GROFF_NOTE} ps2pdf \$*.ps
7626 ${GROFF_NOTE}.1.ps :
7627 ${GROFF_NOTE} \$(SHELL) -c "tbl \$*.1 | groff -man" >\$@
7629 ${GROFF_NOTE}.1.txt :
7630 ${GROFF_NOTE} GROFF_NO_SGR=stupid \$(SHELL) -c "tbl \$*.1 | nroff -Tascii -man | col -bx" >\$@
7632 ${MAN2HTML_NOTE}.1.html :
7633 ${MAN2HTML_NOTE} ./${MAN2HTML_TEMP} \$* 1 man >\$@
7641 cat >>$cf_output <<CF_EOF
7642 ################################################################################
7643 ${NROFF_NOTE}docs docs-$cf_name :: $cf_name.txt
7644 ${MAN2HTML_NOTE}docs docs-$cf_name :: $cf_name.html
7645 ${GROFF_NOTE}docs docs-$cf_name :: $cf_name.pdf
7646 ${GROFF_NOTE}docs docs-$cf_name :: $cf_name.ps
7647 ${GROFF_NOTE}docs docs-$cf_name :: $cf_name.txt
7651 ${NROFF_NOTE} rm -f $cf_name.txt
7652 ${MAN2HTML_NOTE} rm -f $cf_name.html
7653 ${GROFF_NOTE} rm -f $cf_name.pdf
7654 ${GROFF_NOTE} rm -f $cf_name.ps
7655 ${GROFF_NOTE} rm -f $cf_name.txt
7657 ${NROFF_NOTE}$cf_name.txt : $cf_name.1
7658 ${MAN2HTML_NOTE}$cf_name.html : $cf_name.1
7659 ${GROFF_NOTE}$cf_name.pdf : $cf_name.ps
7660 ${GROFF_NOTE}$cf_name.ps : $cf_name.1
7661 ${GROFF_NOTE}$cf_name.txt : $cf_name.1