2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
221 test -d ./-p && rmdir ./-p
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
274 ac_unique_file="cpmfs.c"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
279 # include <sys/types.h>
282 # include <sys/stat.h>
293 # if !STDC_HEADERS && HAVE_MEMORY_H
299 # include <strings.h>
302 # include <inttypes.h>
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CPP EGREP LIBOBJS LDLIBS LDDEPS DEVICE DATADIR DISKDEFS DEFFORMAT FSED_CPM UPDATED LTLIBOBJS'
315 # Initialize some variables set by options.
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
327 program_transform_name=s,x,x,
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 datadir=$ac_optarg ;;
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
430 -help | --help | --hel | --he | -h)
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
481 # Obsolete; use --without-fp.
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
560 -site=* | --site=* | --sit=*)
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
583 -version | --version | --versio | --versi | --vers | -V)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
609 # Obsolete; use --with-x.
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
661 eval ac_val=$`echo $ac_var`
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val=$`echo $ac_var`
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
722 if test ! -r $srcdir/$ac_unique_file; then
726 ac_srcdir_defaulted=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
775 # Report the --help message.
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
781 \`configure' configures this package to adapt to many kinds of systems.
783 Usage: $0 [OPTION]... [VAR=VALUE]...
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
788 Defaults for the options are specified in brackets.
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
815 For better control, use the options below.
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
835 --build=BUILD configure for building on BUILD [guessed]
836 --host=HOST cross-compile to build programs to run on HOST [BUILD]
840 if test -n "$ac_init_help"; then
845 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
846 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
847 --with-defformat Specify default format (ibm-3740)
848 --with-libdsk Specify path to libdsk library
849 --with-dmalloc Specify path to dmalloc library
851 Some influential environment variables:
852 CC C compiler command
853 CFLAGS C compiler flags
854 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
855 nonstandard directory <lib dir>
856 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
857 headers in a nonstandard directory <include dir>
860 Use these variables to override the choices made by `configure' or to help
861 it to find libraries and programs with nonstandard names/locations.
866 if test "$ac_init_help" = "recursive"; then
867 # If there are subdirs, report their specific --help.
869 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
870 test -d $ac_dir || continue
873 if test "$ac_dir" != .; then
874 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
875 # A "../" for each directory in $ac_dir_suffix.
876 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
878 ac_dir_suffix= ac_top_builddir=
882 .) # No --srcdir option. We are building in place.
884 if test -z "$ac_top_builddir"; then
887 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
889 [\\/]* | ?:[\\/]* ) # Absolute path.
890 ac_srcdir=$srcdir$ac_dir_suffix;
891 ac_top_srcdir=$srcdir ;;
893 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
894 ac_top_srcdir=$ac_top_builddir$srcdir ;;
897 # Do not use `cd foo && pwd` to compute absolute paths, because
898 # the directories may not exist.
900 .) ac_abs_builddir="$ac_dir";;
903 .) ac_abs_builddir=`pwd`;;
904 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
905 *) ac_abs_builddir=`pwd`/"$ac_dir";;
908 case $ac_abs_builddir in
909 .) ac_abs_top_builddir=${ac_top_builddir}.;;
911 case ${ac_top_builddir}. in
912 .) ac_abs_top_builddir=$ac_abs_builddir;;
913 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
914 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
917 case $ac_abs_builddir in
918 .) ac_abs_srcdir=$ac_srcdir;;
921 .) ac_abs_srcdir=$ac_abs_builddir;;
922 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
923 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
926 case $ac_abs_builddir in
927 .) ac_abs_top_srcdir=$ac_top_srcdir;;
929 case $ac_top_srcdir in
930 .) ac_abs_top_srcdir=$ac_abs_builddir;;
931 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
932 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
937 # Check for guested configure; otherwise get Cygnus style configure.
938 if test -f $ac_srcdir/configure.gnu; then
940 $SHELL $ac_srcdir/configure.gnu --help=recursive
941 elif test -f $ac_srcdir/configure; then
943 $SHELL $ac_srcdir/configure --help=recursive
944 elif test -f $ac_srcdir/configure.ac ||
945 test -f $ac_srcdir/configure.in; then
949 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
955 test -n "$ac_init_help" && exit 0
956 if $ac_init_version; then
959 Copyright (C) 2003 Free Software Foundation, Inc.
960 This configure script is free software; the Free Software Foundation
961 gives unlimited permission to copy, distribute and modify it.
967 This file contains any messages produced by compilers while
968 running configure, to aid debugging if configure makes a mistake.
970 It was created by $as_me, which was
971 generated by GNU Autoconf 2.59. Invocation command line was
982 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
983 uname -m = `(uname -m) 2>/dev/null || echo unknown`
984 uname -r = `(uname -r) 2>/dev/null || echo unknown`
985 uname -s = `(uname -s) 2>/dev/null || echo unknown`
986 uname -v = `(uname -v) 2>/dev/null || echo unknown`
988 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
989 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
991 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
992 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
993 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
994 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
995 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
996 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
997 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1005 test -z "$as_dir" && as_dir=.
1006 echo "PATH: $as_dir"
1021 # Keep a trace of the command line.
1022 # Strip out --no-create and --no-recursion so they do not pile up.
1023 # Strip out --silent because we don't want to record it for future runs.
1024 # Also quote any args containing shell meta-characters.
1025 # Make two passes to allow for proper duplicate-argument suppression.
1030 ac_must_keep_next=false
1036 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1037 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1038 | -silent | --silent | --silen | --sile | --sil)
1040 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1041 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1044 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1046 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1047 if test $ac_must_keep_next = true; then
1048 ac_must_keep_next=false # Got value, back to normal.
1051 *=* | --config-cache | -C | -disable-* | --disable-* \
1052 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1053 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1054 | -with-* | --with-* | -without-* | --without-* | --x)
1055 case "$ac_configure_args0 " in
1056 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1059 -* ) ac_must_keep_next=true ;;
1062 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1063 # Get rid of the leading space.
1069 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1070 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1072 # When interrupted or exit'd, cleanup temporary files, and complete
1073 # config.log. We remove comments because anyway the quotes in there
1074 # would cause problems or look ugly.
1075 # WARNING: Be sure not to use single quotes in there, as some shells,
1076 # such as our DU 5.0 friend, will then `close' the trap.
1077 trap 'exit_status=$?
1078 # Save into config.log some information that might help in debugging.
1083 ## ---------------- ##
1084 ## Cache variables. ##
1085 ## ---------------- ##
1088 # The following way of writing the cache mishandles newlines in values,
1091 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1094 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1095 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1099 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1106 ## ----------------- ##
1107 ## Output variables. ##
1108 ## ----------------- ##
1111 for ac_var in $ac_subst_vars
1113 eval ac_val=$`echo $ac_var`
1114 echo "$ac_var='"'"'$ac_val'"'"'"
1118 if test -n "$ac_subst_files"; then
1125 for ac_var in $ac_subst_files
1127 eval ac_val=$`echo $ac_var`
1128 echo "$ac_var='"'"'$ac_val'"'"'"
1133 if test -s confdefs.h; then
1140 sed "/^$/d" confdefs.h | sort
1143 test "$ac_signal" != 0 &&
1144 echo "$as_me: caught signal $ac_signal"
1145 echo "$as_me: exit $exit_status"
1147 rm -f core *.core &&
1148 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1151 for ac_signal in 1 2 13 15; do
1152 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1156 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1157 rm -rf conftest* confdefs.h
1158 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1161 # Predefined preprocessor variables.
1163 cat >>confdefs.h <<_ACEOF
1164 #define PACKAGE_NAME "$PACKAGE_NAME"
1168 cat >>confdefs.h <<_ACEOF
1169 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1173 cat >>confdefs.h <<_ACEOF
1174 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1178 cat >>confdefs.h <<_ACEOF
1179 #define PACKAGE_STRING "$PACKAGE_STRING"
1183 cat >>confdefs.h <<_ACEOF
1184 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1188 # Let the site file select an alternate cache file if it wants to.
1189 # Prefer explicitly selected file to automatically selected ones.
1190 if test -z "$CONFIG_SITE"; then
1191 if test "x$prefix" != xNONE; then
1192 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1194 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1197 for ac_site_file in $CONFIG_SITE; do
1198 if test -r "$ac_site_file"; then
1199 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1200 echo "$as_me: loading site script $ac_site_file" >&6;}
1201 sed 's/^/| /' "$ac_site_file" >&5
1206 if test -r "$cache_file"; then
1207 # Some versions of bash will fail to source /dev/null (special
1208 # files actually), so we avoid doing that.
1209 if test -f "$cache_file"; then
1210 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1211 echo "$as_me: loading cache $cache_file" >&6;}
1213 [\\/]* | ?:[\\/]* ) . $cache_file;;
1214 *) . ./$cache_file;;
1218 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1219 echo "$as_me: creating cache $cache_file" >&6;}
1223 # Check that the precious variables saved in the cache have kept the same
1225 ac_cache_corrupted=false
1226 for ac_var in `(set) 2>&1 |
1227 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1228 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1229 eval ac_new_set=\$ac_env_${ac_var}_set
1230 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1231 eval ac_new_val="\$ac_env_${ac_var}_value"
1232 case $ac_old_set,$ac_new_set in
1234 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1235 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1236 ac_cache_corrupted=: ;;
1238 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1239 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1240 ac_cache_corrupted=: ;;
1243 if test "x$ac_old_val" != "x$ac_new_val"; then
1244 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1245 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1246 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1247 echo "$as_me: former value: $ac_old_val" >&2;}
1248 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1249 echo "$as_me: current value: $ac_new_val" >&2;}
1250 ac_cache_corrupted=:
1253 # Pass precious variables to config.status.
1254 if test "$ac_new_set" = set; then
1256 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1257 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1258 *) ac_arg=$ac_var=$ac_new_val ;;
1260 case " $ac_configure_args " in
1261 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1262 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1266 if $ac_cache_corrupted; then
1267 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1268 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1269 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1270 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1271 { (exit 1); exit 1; }; }
1275 ac_cpp='$CPP $CPPFLAGS'
1276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1278 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1298 ac_config_headers="$ac_config_headers config.h"
1301 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1302 if test -f $ac_dir/install-sh; then
1304 ac_install_sh="$ac_aux_dir/install-sh -c"
1306 elif test -f $ac_dir/install.sh; then
1308 ac_install_sh="$ac_aux_dir/install.sh -c"
1310 elif test -f $ac_dir/shtool; then
1312 ac_install_sh="$ac_aux_dir/shtool install -c"
1316 if test -z "$ac_aux_dir"; then
1317 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1318 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1319 { (exit 1); exit 1; }; }
1321 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1322 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1323 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1325 # Make sure we can run config.sub.
1326 $ac_config_sub sun4 >/dev/null 2>&1 ||
1327 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1328 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1329 { (exit 1); exit 1; }; }
1331 echo "$as_me:$LINENO: checking build system type" >&5
1332 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1333 if test "${ac_cv_build+set}" = set; then
1334 echo $ECHO_N "(cached) $ECHO_C" >&6
1336 ac_cv_build_alias=$build_alias
1337 test -z "$ac_cv_build_alias" &&
1338 ac_cv_build_alias=`$ac_config_guess`
1339 test -z "$ac_cv_build_alias" &&
1340 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1341 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1342 { (exit 1); exit 1; }; }
1343 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1344 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1345 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1346 { (exit 1); exit 1; }; }
1349 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1350 echo "${ECHO_T}$ac_cv_build" >&6
1352 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1353 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1354 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1357 echo "$as_me:$LINENO: checking host system type" >&5
1358 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1359 if test "${ac_cv_host+set}" = set; then
1360 echo $ECHO_N "(cached) $ECHO_C" >&6
1362 ac_cv_host_alias=$host_alias
1363 test -z "$ac_cv_host_alias" &&
1364 ac_cv_host_alias=$ac_cv_build_alias
1365 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1366 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1367 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1368 { (exit 1); exit 1; }; }
1371 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1372 echo "${ECHO_T}$ac_cv_host" >&6
1374 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1375 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1376 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1380 UPDATED='Oct 19, 2005'
1384 if test "$prefix" = NONE
1393 ac_cpp='$CPP $CPPFLAGS'
1394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1396 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1397 if test -n "$ac_tool_prefix"; then
1398 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1399 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1400 echo "$as_me:$LINENO: checking for $ac_word" >&5
1401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1402 if test "${ac_cv_prog_CC+set}" = set; then
1403 echo $ECHO_N "(cached) $ECHO_C" >&6
1405 if test -n "$CC"; then
1406 ac_cv_prog_CC="$CC" # Let the user override the test.
1408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1412 test -z "$as_dir" && as_dir=.
1413 for ac_exec_ext in '' $ac_executable_extensions; do
1414 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1415 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1425 if test -n "$CC"; then
1426 echo "$as_me:$LINENO: result: $CC" >&5
1427 echo "${ECHO_T}$CC" >&6
1429 echo "$as_me:$LINENO: result: no" >&5
1430 echo "${ECHO_T}no" >&6
1434 if test -z "$ac_cv_prog_CC"; then
1436 # Extract the first word of "gcc", so it can be a program name with args.
1437 set dummy gcc; ac_word=$2
1438 echo "$as_me:$LINENO: checking for $ac_word" >&5
1439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1440 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1441 echo $ECHO_N "(cached) $ECHO_C" >&6
1443 if test -n "$ac_ct_CC"; then
1444 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1450 test -z "$as_dir" && as_dir=.
1451 for ac_exec_ext in '' $ac_executable_extensions; do
1452 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1453 ac_cv_prog_ac_ct_CC="gcc"
1454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1462 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1463 if test -n "$ac_ct_CC"; then
1464 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1465 echo "${ECHO_T}$ac_ct_CC" >&6
1467 echo "$as_me:$LINENO: result: no" >&5
1468 echo "${ECHO_T}no" >&6
1476 if test -z "$CC"; then
1477 if test -n "$ac_tool_prefix"; then
1478 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1479 set dummy ${ac_tool_prefix}cc; ac_word=$2
1480 echo "$as_me:$LINENO: checking for $ac_word" >&5
1481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1482 if test "${ac_cv_prog_CC+set}" = set; then
1483 echo $ECHO_N "(cached) $ECHO_C" >&6
1485 if test -n "$CC"; then
1486 ac_cv_prog_CC="$CC" # Let the user override the test.
1488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1492 test -z "$as_dir" && as_dir=.
1493 for ac_exec_ext in '' $ac_executable_extensions; do
1494 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1495 ac_cv_prog_CC="${ac_tool_prefix}cc"
1496 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1505 if test -n "$CC"; then
1506 echo "$as_me:$LINENO: result: $CC" >&5
1507 echo "${ECHO_T}$CC" >&6
1509 echo "$as_me:$LINENO: result: no" >&5
1510 echo "${ECHO_T}no" >&6
1514 if test -z "$ac_cv_prog_CC"; then
1516 # Extract the first word of "cc", so it can be a program name with args.
1517 set dummy cc; ac_word=$2
1518 echo "$as_me:$LINENO: checking for $ac_word" >&5
1519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1520 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1521 echo $ECHO_N "(cached) $ECHO_C" >&6
1523 if test -n "$ac_ct_CC"; then
1524 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1530 test -z "$as_dir" && as_dir=.
1531 for ac_exec_ext in '' $ac_executable_extensions; do
1532 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1533 ac_cv_prog_ac_ct_CC="cc"
1534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1542 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1543 if test -n "$ac_ct_CC"; then
1544 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1545 echo "${ECHO_T}$ac_ct_CC" >&6
1547 echo "$as_me:$LINENO: result: no" >&5
1548 echo "${ECHO_T}no" >&6
1557 if test -z "$CC"; then
1558 # Extract the first word of "cc", so it can be a program name with args.
1559 set dummy cc; ac_word=$2
1560 echo "$as_me:$LINENO: checking for $ac_word" >&5
1561 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1562 if test "${ac_cv_prog_CC+set}" = set; then
1563 echo $ECHO_N "(cached) $ECHO_C" >&6
1565 if test -n "$CC"; then
1566 ac_cv_prog_CC="$CC" # Let the user override the test.
1569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1573 test -z "$as_dir" && as_dir=.
1574 for ac_exec_ext in '' $ac_executable_extensions; do
1575 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1576 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1577 ac_prog_rejected=yes
1581 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1587 if test $ac_prog_rejected = yes; then
1588 # We found a bogon in the path, so make sure we never use it.
1589 set dummy $ac_cv_prog_CC
1591 if test $# != 0; then
1592 # We chose a different compiler from the bogus one.
1593 # However, it has the same basename, so the bogon will be chosen
1594 # first if we set CC to just the basename; use the full file name.
1596 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1602 if test -n "$CC"; then
1603 echo "$as_me:$LINENO: result: $CC" >&5
1604 echo "${ECHO_T}$CC" >&6
1606 echo "$as_me:$LINENO: result: no" >&5
1607 echo "${ECHO_T}no" >&6
1611 if test -z "$CC"; then
1612 if test -n "$ac_tool_prefix"; then
1615 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1616 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1617 echo "$as_me:$LINENO: checking for $ac_word" >&5
1618 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1619 if test "${ac_cv_prog_CC+set}" = set; then
1620 echo $ECHO_N "(cached) $ECHO_C" >&6
1622 if test -n "$CC"; then
1623 ac_cv_prog_CC="$CC" # Let the user override the test.
1625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1629 test -z "$as_dir" && as_dir=.
1630 for ac_exec_ext in '' $ac_executable_extensions; do
1631 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1632 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1642 if test -n "$CC"; then
1643 echo "$as_me:$LINENO: result: $CC" >&5
1644 echo "${ECHO_T}$CC" >&6
1646 echo "$as_me:$LINENO: result: no" >&5
1647 echo "${ECHO_T}no" >&6
1650 test -n "$CC" && break
1653 if test -z "$CC"; then
1657 # Extract the first word of "$ac_prog", so it can be a program name with args.
1658 set dummy $ac_prog; ac_word=$2
1659 echo "$as_me:$LINENO: checking for $ac_word" >&5
1660 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1661 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1662 echo $ECHO_N "(cached) $ECHO_C" >&6
1664 if test -n "$ac_ct_CC"; then
1665 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1671 test -z "$as_dir" && as_dir=.
1672 for ac_exec_ext in '' $ac_executable_extensions; do
1673 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1674 ac_cv_prog_ac_ct_CC="$ac_prog"
1675 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1683 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1684 if test -n "$ac_ct_CC"; then
1685 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1686 echo "${ECHO_T}$ac_ct_CC" >&6
1688 echo "$as_me:$LINENO: result: no" >&5
1689 echo "${ECHO_T}no" >&6
1692 test -n "$ac_ct_CC" && break
1701 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1702 See \`config.log' for more details." >&5
1703 echo "$as_me: error: no acceptable C compiler found in \$PATH
1704 See \`config.log' for more details." >&2;}
1705 { (exit 1); exit 1; }; }
1707 # Provide some information about the compiler.
1708 echo "$as_me:$LINENO:" \
1709 "checking for C compiler version" >&5
1710 ac_compiler=`set X $ac_compile; echo $2`
1711 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1712 (eval $ac_compiler --version </dev/null >&5) 2>&5
1714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1715 (exit $ac_status); }
1716 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1717 (eval $ac_compiler -v </dev/null >&5) 2>&5
1719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1720 (exit $ac_status); }
1721 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1722 (eval $ac_compiler -V </dev/null >&5) 2>&5
1724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1725 (exit $ac_status); }
1727 cat >conftest.$ac_ext <<_ACEOF
1730 cat confdefs.h >>conftest.$ac_ext
1731 cat >>conftest.$ac_ext <<_ACEOF
1732 /* end confdefs.h. */
1742 ac_clean_files_save=$ac_clean_files
1743 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1744 # Try to create an executable without -o first, disregard a.out.
1745 # It will help us diagnose broken compilers, and finding out an intuition
1747 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1748 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1749 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1750 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1751 (eval $ac_link_default) 2>&5
1753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1754 (exit $ac_status); }; then
1755 # Find the output, starting from the most likely. This scheme is
1756 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1759 # Be careful to initialize this variable, since it used to be cached.
1760 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1762 # b.out is created by i960 compilers.
1763 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1765 test -f "$ac_file" || continue
1767 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1770 # This is the source file.
1773 # We found the default executable, but exeext='' is most
1777 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1778 # FIXME: I believe we export ac_cv_exeext for Libtool,
1779 # but it would be cool to find out if it's true. Does anybody
1780 # maintain Libtool? --akim.
1788 echo "$as_me: failed program was:" >&5
1789 sed 's/^/| /' conftest.$ac_ext >&5
1791 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1792 See \`config.log' for more details." >&5
1793 echo "$as_me: error: C compiler cannot create executables
1794 See \`config.log' for more details." >&2;}
1795 { (exit 77); exit 77; }; }
1798 ac_exeext=$ac_cv_exeext
1799 echo "$as_me:$LINENO: result: $ac_file" >&5
1800 echo "${ECHO_T}$ac_file" >&6
1802 # Check the compiler produces executables we can run. If not, either
1803 # the compiler is broken, or we cross compile.
1804 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1805 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1806 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1807 # If not cross compiling, check that we can run a simple program.
1808 if test "$cross_compiling" != yes; then
1809 if { ac_try='./$ac_file'
1810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1814 (exit $ac_status); }; }; then
1817 if test "$cross_compiling" = maybe; then
1820 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1821 If you meant to cross compile, use \`--host'.
1822 See \`config.log' for more details." >&5
1823 echo "$as_me: error: cannot run C compiled programs.
1824 If you meant to cross compile, use \`--host'.
1825 See \`config.log' for more details." >&2;}
1826 { (exit 1); exit 1; }; }
1830 echo "$as_me:$LINENO: result: yes" >&5
1831 echo "${ECHO_T}yes" >&6
1833 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1834 ac_clean_files=$ac_clean_files_save
1835 # Check the compiler produces executables we can run. If not, either
1836 # the compiler is broken, or we cross compile.
1837 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1838 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1839 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1840 echo "${ECHO_T}$cross_compiling" >&6
1842 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1843 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1845 (eval $ac_link) 2>&5
1847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1848 (exit $ac_status); }; then
1849 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1850 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1851 # work properly (i.e., refer to `conftest.exe'), while it won't with
1853 for ac_file in conftest.exe conftest conftest.*; do
1854 test -f "$ac_file" || continue
1856 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1857 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1864 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1865 See \`config.log' for more details." >&5
1866 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1867 See \`config.log' for more details." >&2;}
1868 { (exit 1); exit 1; }; }
1871 rm -f conftest$ac_cv_exeext
1872 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1873 echo "${ECHO_T}$ac_cv_exeext" >&6
1875 rm -f conftest.$ac_ext
1876 EXEEXT=$ac_cv_exeext
1878 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1879 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1880 if test "${ac_cv_objext+set}" = set; then
1881 echo $ECHO_N "(cached) $ECHO_C" >&6
1883 cat >conftest.$ac_ext <<_ACEOF
1886 cat confdefs.h >>conftest.$ac_ext
1887 cat >>conftest.$ac_ext <<_ACEOF
1888 /* end confdefs.h. */
1898 rm -f conftest.o conftest.obj
1899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1900 (eval $ac_compile) 2>&5
1902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1903 (exit $ac_status); }; then
1904 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1906 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1907 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1912 echo "$as_me: failed program was:" >&5
1913 sed 's/^/| /' conftest.$ac_ext >&5
1915 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1916 See \`config.log' for more details." >&5
1917 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1918 See \`config.log' for more details." >&2;}
1919 { (exit 1); exit 1; }; }
1922 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1924 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1925 echo "${ECHO_T}$ac_cv_objext" >&6
1926 OBJEXT=$ac_cv_objext
1928 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1929 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1930 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1931 echo $ECHO_N "(cached) $ECHO_C" >&6
1933 cat >conftest.$ac_ext <<_ACEOF
1936 cat confdefs.h >>conftest.$ac_ext
1937 cat >>conftest.$ac_ext <<_ACEOF
1938 /* end confdefs.h. */
1951 rm -f conftest.$ac_objext
1952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1953 (eval $ac_compile) 2>conftest.er1
1955 grep -v '^ *+' conftest.er1 >conftest.err
1957 cat conftest.err >&5
1958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1959 (exit $ac_status); } &&
1960 { ac_try='test -z "$ac_c_werror_flag"
1961 || test ! -s conftest.err'
1962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1966 (exit $ac_status); }; } &&
1967 { ac_try='test -s conftest.$ac_objext'
1968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1972 (exit $ac_status); }; }; then
1975 echo "$as_me: failed program was:" >&5
1976 sed 's/^/| /' conftest.$ac_ext >&5
1980 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1981 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1984 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1985 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1986 GCC=`test $ac_compiler_gnu = yes && echo yes`
1987 ac_test_CFLAGS=${CFLAGS+set}
1988 ac_save_CFLAGS=$CFLAGS
1990 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1991 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1992 if test "${ac_cv_prog_cc_g+set}" = set; then
1993 echo $ECHO_N "(cached) $ECHO_C" >&6
1995 cat >conftest.$ac_ext <<_ACEOF
1998 cat confdefs.h >>conftest.$ac_ext
1999 cat >>conftest.$ac_ext <<_ACEOF
2000 /* end confdefs.h. */
2010 rm -f conftest.$ac_objext
2011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2012 (eval $ac_compile) 2>conftest.er1
2014 grep -v '^ *+' conftest.er1 >conftest.err
2016 cat conftest.err >&5
2017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2018 (exit $ac_status); } &&
2019 { ac_try='test -z "$ac_c_werror_flag"
2020 || test ! -s conftest.err'
2021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2025 (exit $ac_status); }; } &&
2026 { ac_try='test -s conftest.$ac_objext'
2027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2031 (exit $ac_status); }; }; then
2034 echo "$as_me: failed program was:" >&5
2035 sed 's/^/| /' conftest.$ac_ext >&5
2039 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2041 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2042 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2043 if test "$ac_test_CFLAGS" = set; then
2044 CFLAGS=$ac_save_CFLAGS
2045 elif test $ac_cv_prog_cc_g = yes; then
2046 if test "$GCC" = yes; then
2052 if test "$GCC" = yes; then
2058 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2059 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2060 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2061 echo $ECHO_N "(cached) $ECHO_C" >&6
2063 ac_cv_prog_cc_stdc=no
2065 cat >conftest.$ac_ext <<_ACEOF
2068 cat confdefs.h >>conftest.$ac_ext
2069 cat >>conftest.$ac_ext <<_ACEOF
2070 /* end confdefs.h. */
2073 #include <sys/types.h>
2074 #include <sys/stat.h>
2075 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2076 struct buf { int x; };
2077 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2078 static char *e (p, i)
2084 static char *f (char * (*g) (char **, int), char **p, ...)
2089 s = g (p, va_arg (v,int));
2094 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2095 function prototypes and stuff, but not '\xHH' hex character constants.
2096 These don't provoke an error unfortunately, instead are silently treated
2097 as 'x'. The following induces an error, until -std1 is added to get
2098 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2099 array size at least. It's necessary to write '\x00'==0 to get something
2100 that's true only with -std1. */
2101 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2103 int test (int i, double x);
2104 struct s1 {int (*f) (int a);};
2105 struct s2 {int (*f) (double a);};
2106 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2112 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2117 # Don't try gcc -ansi; that turns off useful extensions and
2118 # breaks some systems' header files.
2119 # AIX -qlanglvl=ansi
2120 # Ultrix and OSF/1 -std1
2121 # HP-UX 10.20 and later -Ae
2122 # HP-UX older versions -Aa -D_HPUX_SOURCE
2123 # SVR4 -Xc -D__EXTENSIONS__
2124 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2126 CC="$ac_save_CC $ac_arg"
2127 rm -f conftest.$ac_objext
2128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2129 (eval $ac_compile) 2>conftest.er1
2131 grep -v '^ *+' conftest.er1 >conftest.err
2133 cat conftest.err >&5
2134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2135 (exit $ac_status); } &&
2136 { ac_try='test -z "$ac_c_werror_flag"
2137 || test ! -s conftest.err'
2138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2142 (exit $ac_status); }; } &&
2143 { ac_try='test -s conftest.$ac_objext'
2144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2148 (exit $ac_status); }; }; then
2149 ac_cv_prog_cc_stdc=$ac_arg
2152 echo "$as_me: failed program was:" >&5
2153 sed 's/^/| /' conftest.$ac_ext >&5
2156 rm -f conftest.err conftest.$ac_objext
2158 rm -f conftest.$ac_ext conftest.$ac_objext
2163 case "x$ac_cv_prog_cc_stdc" in
2165 echo "$as_me:$LINENO: result: none needed" >&5
2166 echo "${ECHO_T}none needed" >&6 ;;
2168 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2169 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2170 CC="$CC $ac_cv_prog_cc_stdc" ;;
2173 # Some people use a C++ compiler to compile C. Since we use `exit',
2174 # in C++ we need to declare it. In case someone uses the same compiler
2175 # for both compiling C and C++ we need to have the C++ compiler decide
2176 # the declaration of exit, since it's the most demanding environment.
2177 cat >conftest.$ac_ext <<_ACEOF
2182 rm -f conftest.$ac_objext
2183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2184 (eval $ac_compile) 2>conftest.er1
2186 grep -v '^ *+' conftest.er1 >conftest.err
2188 cat conftest.err >&5
2189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2190 (exit $ac_status); } &&
2191 { ac_try='test -z "$ac_c_werror_flag"
2192 || test ! -s conftest.err'
2193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2197 (exit $ac_status); }; } &&
2198 { ac_try='test -s conftest.$ac_objext'
2199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2203 (exit $ac_status); }; }; then
2204 for ac_declaration in \
2206 'extern "C" void std::exit (int) throw (); using std::exit;' \
2207 'extern "C" void std::exit (int); using std::exit;' \
2208 'extern "C" void exit (int) throw ();' \
2209 'extern "C" void exit (int);' \
2212 cat >conftest.$ac_ext <<_ACEOF
2215 cat confdefs.h >>conftest.$ac_ext
2216 cat >>conftest.$ac_ext <<_ACEOF
2217 /* end confdefs.h. */
2228 rm -f conftest.$ac_objext
2229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2230 (eval $ac_compile) 2>conftest.er1
2232 grep -v '^ *+' conftest.er1 >conftest.err
2234 cat conftest.err >&5
2235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2236 (exit $ac_status); } &&
2237 { ac_try='test -z "$ac_c_werror_flag"
2238 || test ! -s conftest.err'
2239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2243 (exit $ac_status); }; } &&
2244 { ac_try='test -s conftest.$ac_objext'
2245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2249 (exit $ac_status); }; }; then
2252 echo "$as_me: failed program was:" >&5
2253 sed 's/^/| /' conftest.$ac_ext >&5
2257 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2258 cat >conftest.$ac_ext <<_ACEOF
2261 cat confdefs.h >>conftest.$ac_ext
2262 cat >>conftest.$ac_ext <<_ACEOF
2263 /* end confdefs.h. */
2273 rm -f conftest.$ac_objext
2274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2275 (eval $ac_compile) 2>conftest.er1
2277 grep -v '^ *+' conftest.er1 >conftest.err
2279 cat conftest.err >&5
2280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2281 (exit $ac_status); } &&
2282 { ac_try='test -z "$ac_c_werror_flag"
2283 || test ! -s conftest.err'
2284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2288 (exit $ac_status); }; } &&
2289 { ac_try='test -s conftest.$ac_objext'
2290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2294 (exit $ac_status); }; }; then
2297 echo "$as_me: failed program was:" >&5
2298 sed 's/^/| /' conftest.$ac_ext >&5
2301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2304 if test -n "$ac_declaration"; then
2305 echo '#ifdef __cplusplus' >>confdefs.h
2306 echo $ac_declaration >>confdefs.h
2307 echo '#endif' >>confdefs.h
2311 echo "$as_me: failed program was:" >&5
2312 sed 's/^/| /' conftest.$ac_ext >&5
2315 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2317 ac_cpp='$CPP $CPPFLAGS'
2318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2322 # Find a good install program. We prefer a C program (faster),
2323 # so one script is as good as another. But avoid the broken or
2324 # incompatible versions:
2325 # SysV /etc/install, /usr/sbin/install
2326 # SunOS /usr/etc/install
2327 # IRIX /sbin/install
2329 # AmigaOS /C/install, which installs bootblocks on floppy discs
2330 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2331 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2332 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2333 # OS/2's system install, which has a completely different semantic
2334 # ./install, which can be erroneously created by make from ./install.sh.
2335 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2336 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2337 if test -z "$INSTALL"; then
2338 if test "${ac_cv_path_install+set}" = set; then
2339 echo $ECHO_N "(cached) $ECHO_C" >&6
2341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2345 test -z "$as_dir" && as_dir=.
2346 # Account for people who put trailing slashes in PATH elements.
2348 ./ | .// | /cC/* | \
2349 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2350 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2353 # OSF1 and SCO ODT 3.0 have their own names for install.
2354 # Don't use installbsd from OSF since it installs stuff as root
2356 for ac_prog in ginstall scoinst install; do
2357 for ac_exec_ext in '' $ac_executable_extensions; do
2358 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2359 if test $ac_prog = install &&
2360 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2361 # AIX install. It has an incompatible calling convention.
2363 elif test $ac_prog = install &&
2364 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2365 # program-specific install script used by HP pwplus--don't use.
2368 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2380 if test "${ac_cv_path_install+set}" = set; then
2381 INSTALL=$ac_cv_path_install
2383 # As a last resort, use the slow shell script. We don't cache a
2384 # path for INSTALL within a source directory, because that will
2385 # break other packages using the cache if that directory is
2386 # removed, or if the path is relative.
2387 INSTALL=$ac_install_sh
2390 echo "$as_me:$LINENO: result: $INSTALL" >&5
2391 echo "${ECHO_T}$INSTALL" >&6
2393 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2394 # It thinks the first close brace ends the variable substitution.
2395 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2397 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2399 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2402 ac_cpp='$CPP $CPPFLAGS'
2403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2406 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2407 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2408 # On Suns, sometimes $CPP names a directory.
2409 if test -n "$CPP" && test -d "$CPP"; then
2412 if test -z "$CPP"; then
2413 if test "${ac_cv_prog_CPP+set}" = set; then
2414 echo $ECHO_N "(cached) $ECHO_C" >&6
2416 # Double quotes because CPP needs to be expanded
2417 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2420 for ac_c_preproc_warn_flag in '' yes
2422 # Use a header file that comes with gcc, so configuring glibc
2423 # with a fresh cross-compiler works.
2424 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2425 # <limits.h> exists even on freestanding compilers.
2426 # On the NeXT, cc -E runs the code through the compiler's parser,
2427 # not just through cpp. "Syntax error" is here to catch this case.
2428 cat >conftest.$ac_ext <<_ACEOF
2431 cat confdefs.h >>conftest.$ac_ext
2432 cat >>conftest.$ac_ext <<_ACEOF
2433 /* end confdefs.h. */
2435 # include <limits.h>
2437 # include <assert.h>
2441 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2442 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2444 grep -v '^ *+' conftest.er1 >conftest.err
2446 cat conftest.err >&5
2447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2448 (exit $ac_status); } >/dev/null; then
2449 if test -s conftest.err; then
2450 ac_cpp_err=$ac_c_preproc_warn_flag
2451 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2458 if test -z "$ac_cpp_err"; then
2461 echo "$as_me: failed program was:" >&5
2462 sed 's/^/| /' conftest.$ac_ext >&5
2464 # Broken: fails on valid input.
2467 rm -f conftest.err conftest.$ac_ext
2469 # OK, works on sane cases. Now check whether non-existent headers
2470 # can be detected and how.
2471 cat >conftest.$ac_ext <<_ACEOF
2474 cat confdefs.h >>conftest.$ac_ext
2475 cat >>conftest.$ac_ext <<_ACEOF
2476 /* end confdefs.h. */
2477 #include <ac_nonexistent.h>
2479 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2480 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2482 grep -v '^ *+' conftest.er1 >conftest.err
2484 cat conftest.err >&5
2485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2486 (exit $ac_status); } >/dev/null; then
2487 if test -s conftest.err; then
2488 ac_cpp_err=$ac_c_preproc_warn_flag
2489 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2496 if test -z "$ac_cpp_err"; then
2497 # Broken: success on invalid input.
2500 echo "$as_me: failed program was:" >&5
2501 sed 's/^/| /' conftest.$ac_ext >&5
2503 # Passes both tests.
2507 rm -f conftest.err conftest.$ac_ext
2510 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2511 rm -f conftest.err conftest.$ac_ext
2512 if $ac_preproc_ok; then
2524 echo "$as_me:$LINENO: result: $CPP" >&5
2525 echo "${ECHO_T}$CPP" >&6
2527 for ac_c_preproc_warn_flag in '' yes
2529 # Use a header file that comes with gcc, so configuring glibc
2530 # with a fresh cross-compiler works.
2531 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2532 # <limits.h> exists even on freestanding compilers.
2533 # On the NeXT, cc -E runs the code through the compiler's parser,
2534 # not just through cpp. "Syntax error" is here to catch this case.
2535 cat >conftest.$ac_ext <<_ACEOF
2538 cat confdefs.h >>conftest.$ac_ext
2539 cat >>conftest.$ac_ext <<_ACEOF
2540 /* end confdefs.h. */
2542 # include <limits.h>
2544 # include <assert.h>
2548 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2549 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2551 grep -v '^ *+' conftest.er1 >conftest.err
2553 cat conftest.err >&5
2554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2555 (exit $ac_status); } >/dev/null; then
2556 if test -s conftest.err; then
2557 ac_cpp_err=$ac_c_preproc_warn_flag
2558 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2565 if test -z "$ac_cpp_err"; then
2568 echo "$as_me: failed program was:" >&5
2569 sed 's/^/| /' conftest.$ac_ext >&5
2571 # Broken: fails on valid input.
2574 rm -f conftest.err conftest.$ac_ext
2576 # OK, works on sane cases. Now check whether non-existent headers
2577 # can be detected and how.
2578 cat >conftest.$ac_ext <<_ACEOF
2581 cat confdefs.h >>conftest.$ac_ext
2582 cat >>conftest.$ac_ext <<_ACEOF
2583 /* end confdefs.h. */
2584 #include <ac_nonexistent.h>
2586 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2587 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2589 grep -v '^ *+' conftest.er1 >conftest.err
2591 cat conftest.err >&5
2592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593 (exit $ac_status); } >/dev/null; then
2594 if test -s conftest.err; then
2595 ac_cpp_err=$ac_c_preproc_warn_flag
2596 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2603 if test -z "$ac_cpp_err"; then
2604 # Broken: success on invalid input.
2607 echo "$as_me: failed program was:" >&5
2608 sed 's/^/| /' conftest.$ac_ext >&5
2610 # Passes both tests.
2614 rm -f conftest.err conftest.$ac_ext
2617 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2618 rm -f conftest.err conftest.$ac_ext
2619 if $ac_preproc_ok; then
2622 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2623 See \`config.log' for more details." >&5
2624 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2625 See \`config.log' for more details." >&2;}
2626 { (exit 1); exit 1; }; }
2630 ac_cpp='$CPP $CPPFLAGS'
2631 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2632 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2633 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2636 if test "$GCC" = yes
2638 CFLAGS="${CFLAGS} ${EXTRA_GCFLAGS}-pipe -Wall -Wno-unused -Wshadow -Wbad-function-cast -Wmissing-prototypes -Wstrict-prototypes -Wcast-align -Wcast-qual -Wpointer-arith -Wwrite-strings -Wmissing-declarations -Wnested-externs -Wundef -pedantic -fno-common"
2639 LDFLAGS="${LDFLAGS} ${EXTRA_GLDFLAGS}-g"
2641 CFLAGS="${CFLAGS} ${EXTRA_CFLAGS}"
2642 LDFLAGS="${LDFLAGS} ${EXTRA_LDFLAGS}"
2646 # Check whether --with-defformat or --without-defformat was given.
2647 if test "${with_defformat+set}" = set; then
2648 withval="$with_defformat"
2649 DEFFORMAT="$withval"
2651 DEFFORMAT="ibm-3740"
2654 # Check whether --with-libdsk or --without-libdsk was given.
2655 if test "${with_libdsk+set}" = set; then
2656 withval="$with_libdsk"
2662 # Check whether --with-dmalloc or --without-dmalloc was given.
2663 if test "${with_dmalloc+set}" = set; then
2664 withval="$with_dmalloc"
2672 *cygwin* ) CYGWIN=yes;;
2678 *mingw32* ) MINGW32=yes;;
2684 if test "$CYGWIN" = "yes"
2688 if test "$MINGW32" = "yes"
2695 echo "$as_me:$LINENO: checking for printw in -lcurses" >&5
2696 echo $ECHO_N "checking for printw in -lcurses... $ECHO_C" >&6
2697 if test "${ac_cv_lib_curses_printw+set}" = set; then
2698 echo $ECHO_N "(cached) $ECHO_C" >&6
2700 ac_check_lib_save_LIBS=$LIBS
2701 LIBS="-lcurses $LIBS"
2702 cat >conftest.$ac_ext <<_ACEOF
2705 cat confdefs.h >>conftest.$ac_ext
2706 cat >>conftest.$ac_ext <<_ACEOF
2707 /* end confdefs.h. */
2709 /* Override any gcc2 internal prototype to avoid an error. */
2713 /* We use char because int might match the return type of a gcc2
2714 builtin and then its argument prototype would still apply. */
2724 rm -f conftest.$ac_objext conftest$ac_exeext
2725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2726 (eval $ac_link) 2>conftest.er1
2728 grep -v '^ *+' conftest.er1 >conftest.err
2730 cat conftest.err >&5
2731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732 (exit $ac_status); } &&
2733 { ac_try='test -z "$ac_c_werror_flag"
2734 || test ! -s conftest.err'
2735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2739 (exit $ac_status); }; } &&
2740 { ac_try='test -s conftest$ac_exeext'
2741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2745 (exit $ac_status); }; }; then
2746 ac_cv_lib_curses_printw=yes
2748 echo "$as_me: failed program was:" >&5
2749 sed 's/^/| /' conftest.$ac_ext >&5
2751 ac_cv_lib_curses_printw=no
2753 rm -f conftest.err conftest.$ac_objext \
2754 conftest$ac_exeext conftest.$ac_ext
2755 LIBS=$ac_check_lib_save_LIBS
2757 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_printw" >&5
2758 echo "${ECHO_T}$ac_cv_lib_curses_printw" >&6
2759 if test $ac_cv_lib_curses_printw = yes; then
2760 FSED_CPM=fsed.cpm LIBS="-lcurses $LIBS"
2765 if test x"$FSED_CPM" = x""; then
2766 echo "$as_me:$LINENO: checking for printw in -lncurses" >&5
2767 echo $ECHO_N "checking for printw in -lncurses... $ECHO_C" >&6
2768 if test "${ac_cv_lib_ncurses_printw+set}" = set; then
2769 echo $ECHO_N "(cached) $ECHO_C" >&6
2771 ac_check_lib_save_LIBS=$LIBS
2772 LIBS="-lncurses $LIBS"
2773 cat >conftest.$ac_ext <<_ACEOF
2776 cat confdefs.h >>conftest.$ac_ext
2777 cat >>conftest.$ac_ext <<_ACEOF
2778 /* end confdefs.h. */
2780 /* Override any gcc2 internal prototype to avoid an error. */
2784 /* We use char because int might match the return type of a gcc2
2785 builtin and then its argument prototype would still apply. */
2795 rm -f conftest.$ac_objext conftest$ac_exeext
2796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2797 (eval $ac_link) 2>conftest.er1
2799 grep -v '^ *+' conftest.er1 >conftest.err
2801 cat conftest.err >&5
2802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2803 (exit $ac_status); } &&
2804 { ac_try='test -z "$ac_c_werror_flag"
2805 || test ! -s conftest.err'
2806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2810 (exit $ac_status); }; } &&
2811 { ac_try='test -s conftest$ac_exeext'
2812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2816 (exit $ac_status); }; }; then
2817 ac_cv_lib_ncurses_printw=yes
2819 echo "$as_me: failed program was:" >&5
2820 sed 's/^/| /' conftest.$ac_ext >&5
2822 ac_cv_lib_ncurses_printw=no
2824 rm -f conftest.err conftest.$ac_objext \
2825 conftest$ac_exeext conftest.$ac_ext
2826 LIBS=$ac_check_lib_save_LIBS
2828 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_printw" >&5
2829 echo "${ECHO_T}$ac_cv_lib_ncurses_printw" >&6
2830 if test $ac_cv_lib_ncurses_printw = yes; then
2831 FSED_CPM=fsed.cpm LIBS="-lncurses $LIBS"
2838 if test "$LIBDSK" != ""; then
2840 CPPFLAGS="$CPPFLAGS -I$LIBDSK/include"
2841 CFLAGS="$CFLAGS -I$LIBDSK/include"
2842 LDFLAGS="$LDFLAGS -L$LIBDSK/lib"
2844 echo "$as_me:$LINENO: checking for dsk_open in -ldsk" >&5
2845 echo $ECHO_N "checking for dsk_open in -ldsk... $ECHO_C" >&6
2846 if test "${ac_cv_lib_dsk_dsk_open+set}" = set; then
2847 echo $ECHO_N "(cached) $ECHO_C" >&6
2849 ac_check_lib_save_LIBS=$LIBS
2851 cat >conftest.$ac_ext <<_ACEOF
2854 cat confdefs.h >>conftest.$ac_ext
2855 cat >>conftest.$ac_ext <<_ACEOF
2856 /* end confdefs.h. */
2858 /* Override any gcc2 internal prototype to avoid an error. */
2862 /* We use char because int might match the return type of a gcc2
2863 builtin and then its argument prototype would still apply. */
2873 rm -f conftest.$ac_objext conftest$ac_exeext
2874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2875 (eval $ac_link) 2>conftest.er1
2877 grep -v '^ *+' conftest.er1 >conftest.err
2879 cat conftest.err >&5
2880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881 (exit $ac_status); } &&
2882 { ac_try='test -z "$ac_c_werror_flag"
2883 || test ! -s conftest.err'
2884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2888 (exit $ac_status); }; } &&
2889 { ac_try='test -s conftest$ac_exeext'
2890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894 (exit $ac_status); }; }; then
2895 ac_cv_lib_dsk_dsk_open=yes
2897 echo "$as_me: failed program was:" >&5
2898 sed 's/^/| /' conftest.$ac_ext >&5
2900 ac_cv_lib_dsk_dsk_open=no
2902 rm -f conftest.err conftest.$ac_objext \
2903 conftest$ac_exeext conftest.$ac_ext
2904 LIBS=$ac_check_lib_save_LIBS
2906 echo "$as_me:$LINENO: result: $ac_cv_lib_dsk_dsk_open" >&5
2907 echo "${ECHO_T}$ac_cv_lib_dsk_dsk_open" >&6
2908 if test $ac_cv_lib_dsk_dsk_open = yes; then
2909 cat >>confdefs.h <<_ACEOF
2910 #define HAVE_LIBDSK 1
2918 echo "$as_me:$LINENO: checking for egrep" >&5
2919 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2920 if test "${ac_cv_prog_egrep+set}" = set; then
2921 echo $ECHO_N "(cached) $ECHO_C" >&6
2923 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2924 then ac_cv_prog_egrep='grep -E'
2925 else ac_cv_prog_egrep='egrep'
2928 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2929 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2930 EGREP=$ac_cv_prog_egrep
2933 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2934 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2935 if test "${ac_cv_header_stdc+set}" = set; then
2936 echo $ECHO_N "(cached) $ECHO_C" >&6
2938 cat >conftest.$ac_ext <<_ACEOF
2941 cat confdefs.h >>conftest.$ac_ext
2942 cat >>conftest.$ac_ext <<_ACEOF
2943 /* end confdefs.h. */
2957 rm -f conftest.$ac_objext
2958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2959 (eval $ac_compile) 2>conftest.er1
2961 grep -v '^ *+' conftest.er1 >conftest.err
2963 cat conftest.err >&5
2964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2965 (exit $ac_status); } &&
2966 { ac_try='test -z "$ac_c_werror_flag"
2967 || test ! -s conftest.err'
2968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2972 (exit $ac_status); }; } &&
2973 { ac_try='test -s conftest.$ac_objext'
2974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978 (exit $ac_status); }; }; then
2979 ac_cv_header_stdc=yes
2981 echo "$as_me: failed program was:" >&5
2982 sed 's/^/| /' conftest.$ac_ext >&5
2984 ac_cv_header_stdc=no
2986 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2988 if test $ac_cv_header_stdc = yes; then
2989 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2990 cat >conftest.$ac_ext <<_ACEOF
2993 cat confdefs.h >>conftest.$ac_ext
2994 cat >>conftest.$ac_ext <<_ACEOF
2995 /* end confdefs.h. */
2999 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3000 $EGREP "memchr" >/dev/null 2>&1; then
3003 ac_cv_header_stdc=no
3009 if test $ac_cv_header_stdc = yes; then
3010 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3011 cat >conftest.$ac_ext <<_ACEOF
3014 cat confdefs.h >>conftest.$ac_ext
3015 cat >>conftest.$ac_ext <<_ACEOF
3016 /* end confdefs.h. */
3020 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3021 $EGREP "free" >/dev/null 2>&1; then
3024 ac_cv_header_stdc=no
3030 if test $ac_cv_header_stdc = yes; then
3031 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3032 if test "$cross_compiling" = yes; then
3035 cat >conftest.$ac_ext <<_ACEOF
3038 cat confdefs.h >>conftest.$ac_ext
3039 cat >>conftest.$ac_ext <<_ACEOF
3040 /* end confdefs.h. */
3042 #if ((' ' & 0x0FF) == 0x020)
3043 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3044 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3046 # define ISLOWER(c) \
3047 (('a' <= (c) && (c) <= 'i') \
3048 || ('j' <= (c) && (c) <= 'r') \
3049 || ('s' <= (c) && (c) <= 'z'))
3050 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3053 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3058 for (i = 0; i < 256; i++)
3059 if (XOR (islower (i), ISLOWER (i))
3060 || toupper (i) != TOUPPER (i))
3065 rm -f conftest$ac_exeext
3066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3067 (eval $ac_link) 2>&5
3069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075 (exit $ac_status); }; }; then
3078 echo "$as_me: program exited with status $ac_status" >&5
3079 echo "$as_me: failed program was:" >&5
3080 sed 's/^/| /' conftest.$ac_ext >&5
3083 ac_cv_header_stdc=no
3085 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3089 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3090 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3091 if test $ac_cv_header_stdc = yes; then
3093 cat >>confdefs.h <<\_ACEOF
3094 #define STDC_HEADERS 1
3099 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3109 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3110 inttypes.h stdint.h unistd.h
3112 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3113 echo "$as_me:$LINENO: checking for $ac_header" >&5
3114 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3115 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3116 echo $ECHO_N "(cached) $ECHO_C" >&6
3118 cat >conftest.$ac_ext <<_ACEOF
3121 cat confdefs.h >>conftest.$ac_ext
3122 cat >>conftest.$ac_ext <<_ACEOF
3123 /* end confdefs.h. */
3124 $ac_includes_default
3126 #include <$ac_header>
3128 rm -f conftest.$ac_objext
3129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3130 (eval $ac_compile) 2>conftest.er1
3132 grep -v '^ *+' conftest.er1 >conftest.err
3134 cat conftest.err >&5
3135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136 (exit $ac_status); } &&
3137 { ac_try='test -z "$ac_c_werror_flag"
3138 || test ! -s conftest.err'
3139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3143 (exit $ac_status); }; } &&
3144 { ac_try='test -s conftest.$ac_objext'
3145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3149 (exit $ac_status); }; }; then
3150 eval "$as_ac_Header=yes"
3152 echo "$as_me: failed program was:" >&5
3153 sed 's/^/| /' conftest.$ac_ext >&5
3155 eval "$as_ac_Header=no"
3157 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3159 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3160 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3161 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3162 cat >>confdefs.h <<_ACEOF
3163 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3172 for ac_header in libdsk.h
3174 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3175 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3176 echo "$as_me:$LINENO: checking for $ac_header" >&5
3177 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3178 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3179 echo $ECHO_N "(cached) $ECHO_C" >&6
3181 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3182 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3184 # Is the header compilable?
3185 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3186 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3187 cat >conftest.$ac_ext <<_ACEOF
3190 cat confdefs.h >>conftest.$ac_ext
3191 cat >>conftest.$ac_ext <<_ACEOF
3192 /* end confdefs.h. */
3193 $ac_includes_default
3194 #include <$ac_header>
3196 rm -f conftest.$ac_objext
3197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3198 (eval $ac_compile) 2>conftest.er1
3200 grep -v '^ *+' conftest.er1 >conftest.err
3202 cat conftest.err >&5
3203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3204 (exit $ac_status); } &&
3205 { ac_try='test -z "$ac_c_werror_flag"
3206 || test ! -s conftest.err'
3207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3211 (exit $ac_status); }; } &&
3212 { ac_try='test -s conftest.$ac_objext'
3213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3217 (exit $ac_status); }; }; then
3218 ac_header_compiler=yes
3220 echo "$as_me: failed program was:" >&5
3221 sed 's/^/| /' conftest.$ac_ext >&5
3223 ac_header_compiler=no
3225 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3226 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3227 echo "${ECHO_T}$ac_header_compiler" >&6
3229 # Is the header present?
3230 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3231 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3232 cat >conftest.$ac_ext <<_ACEOF
3235 cat confdefs.h >>conftest.$ac_ext
3236 cat >>conftest.$ac_ext <<_ACEOF
3237 /* end confdefs.h. */
3238 #include <$ac_header>
3240 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3241 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3243 grep -v '^ *+' conftest.er1 >conftest.err
3245 cat conftest.err >&5
3246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247 (exit $ac_status); } >/dev/null; then
3248 if test -s conftest.err; then
3249 ac_cpp_err=$ac_c_preproc_warn_flag
3250 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3257 if test -z "$ac_cpp_err"; then
3258 ac_header_preproc=yes
3260 echo "$as_me: failed program was:" >&5
3261 sed 's/^/| /' conftest.$ac_ext >&5
3263 ac_header_preproc=no
3265 rm -f conftest.err conftest.$ac_ext
3266 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3267 echo "${ECHO_T}$ac_header_preproc" >&6
3269 # So? What about this header?
3270 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3272 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3273 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3274 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3275 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3276 ac_header_preproc=yes
3279 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3280 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3281 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3282 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3283 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3284 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3285 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3286 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3287 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3288 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3289 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3290 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3293 ## ------------------------------------------ ##
3294 ## Report this to the AC_PACKAGE_NAME lists. ##
3295 ## ------------------------------------------ ##
3298 sed "s/^/$as_me: WARNING: /" >&2
3301 echo "$as_me:$LINENO: checking for $ac_header" >&5
3302 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3303 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3304 echo $ECHO_N "(cached) $ECHO_C" >&6
3306 eval "$as_ac_Header=\$ac_header_preproc"
3308 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3309 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3312 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3313 cat >>confdefs.h <<_ACEOF
3314 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3318 echo "No libdsk.h - aborting"; exit 1
3325 if test x"$DEVICE" = x"win32"; then
3328 for ac_header in windows.h winioctl.h
3330 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3331 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3332 echo "$as_me:$LINENO: checking for $ac_header" >&5
3333 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3334 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3335 echo $ECHO_N "(cached) $ECHO_C" >&6
3337 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3338 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3340 # Is the header compilable?
3341 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3342 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3343 cat >conftest.$ac_ext <<_ACEOF
3346 cat confdefs.h >>conftest.$ac_ext
3347 cat >>conftest.$ac_ext <<_ACEOF
3348 /* end confdefs.h. */
3349 $ac_includes_default
3350 #include <$ac_header>
3352 rm -f conftest.$ac_objext
3353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3354 (eval $ac_compile) 2>conftest.er1
3356 grep -v '^ *+' conftest.er1 >conftest.err
3358 cat conftest.err >&5
3359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3360 (exit $ac_status); } &&
3361 { ac_try='test -z "$ac_c_werror_flag"
3362 || test ! -s conftest.err'
3363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3367 (exit $ac_status); }; } &&
3368 { ac_try='test -s conftest.$ac_objext'
3369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3373 (exit $ac_status); }; }; then
3374 ac_header_compiler=yes
3376 echo "$as_me: failed program was:" >&5
3377 sed 's/^/| /' conftest.$ac_ext >&5
3379 ac_header_compiler=no
3381 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3382 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3383 echo "${ECHO_T}$ac_header_compiler" >&6
3385 # Is the header present?
3386 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3387 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3388 cat >conftest.$ac_ext <<_ACEOF
3391 cat confdefs.h >>conftest.$ac_ext
3392 cat >>conftest.$ac_ext <<_ACEOF
3393 /* end confdefs.h. */
3394 #include <$ac_header>
3396 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3397 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3399 grep -v '^ *+' conftest.er1 >conftest.err
3401 cat conftest.err >&5
3402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3403 (exit $ac_status); } >/dev/null; then
3404 if test -s conftest.err; then
3405 ac_cpp_err=$ac_c_preproc_warn_flag
3406 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3413 if test -z "$ac_cpp_err"; then
3414 ac_header_preproc=yes
3416 echo "$as_me: failed program was:" >&5
3417 sed 's/^/| /' conftest.$ac_ext >&5
3419 ac_header_preproc=no
3421 rm -f conftest.err conftest.$ac_ext
3422 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3423 echo "${ECHO_T}$ac_header_preproc" >&6
3425 # So? What about this header?
3426 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3428 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3429 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3430 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3431 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3432 ac_header_preproc=yes
3435 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3436 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3437 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3438 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3439 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3440 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3441 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3442 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3443 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3444 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3445 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3446 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3449 ## ------------------------------------------ ##
3450 ## Report this to the AC_PACKAGE_NAME lists. ##
3451 ## ------------------------------------------ ##
3454 sed "s/^/$as_me: WARNING: /" >&2
3457 echo "$as_me:$LINENO: checking for $ac_header" >&5
3458 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3459 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3460 echo $ECHO_N "(cached) $ECHO_C" >&6
3462 eval "$as_ac_Header=\$ac_header_preproc"
3464 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3465 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3468 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3469 cat >>confdefs.h <<_ACEOF
3470 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3474 echo "Windows headers not found - aborting"; exit 1
3481 if test x"$DMALLOC" != x""; then
3482 CPPFLAGS = "-I$DMALLOC/include $CPPFLAGS"
3483 CFLAGS = "-I$DMALLOC/include $CFLAGS"
3484 LDFLAGS = "-L$DMALLOC/lib $LDFLAGS"
3486 echo "$as_me:$LINENO: checking for malloc in -ldmalloc" >&5
3487 echo $ECHO_N "checking for malloc in -ldmalloc... $ECHO_C" >&6
3488 if test "${ac_cv_lib_dmalloc_malloc+set}" = set; then
3489 echo $ECHO_N "(cached) $ECHO_C" >&6
3491 ac_check_lib_save_LIBS=$LIBS
3492 LIBS="-ldmalloc $LIBS"
3493 cat >conftest.$ac_ext <<_ACEOF
3496 cat confdefs.h >>conftest.$ac_ext
3497 cat >>conftest.$ac_ext <<_ACEOF
3498 /* end confdefs.h. */
3500 /* Override any gcc2 internal prototype to avoid an error. */
3504 /* We use char because int might match the return type of a gcc2
3505 builtin and then its argument prototype would still apply. */
3515 rm -f conftest.$ac_objext conftest$ac_exeext
3516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3517 (eval $ac_link) 2>conftest.er1
3519 grep -v '^ *+' conftest.er1 >conftest.err
3521 cat conftest.err >&5
3522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523 (exit $ac_status); } &&
3524 { ac_try='test -z "$ac_c_werror_flag"
3525 || test ! -s conftest.err'
3526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3530 (exit $ac_status); }; } &&
3531 { ac_try='test -s conftest$ac_exeext'
3532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3536 (exit $ac_status); }; }; then
3537 ac_cv_lib_dmalloc_malloc=yes
3539 echo "$as_me: failed program was:" >&5
3540 sed 's/^/| /' conftest.$ac_ext >&5
3542 ac_cv_lib_dmalloc_malloc=no
3544 rm -f conftest.err conftest.$ac_objext \
3545 conftest$ac_exeext conftest.$ac_ext
3546 LIBS=$ac_check_lib_save_LIBS
3548 echo "$as_me:$LINENO: result: $ac_cv_lib_dmalloc_malloc" >&5
3549 echo "${ECHO_T}$ac_cv_lib_dmalloc_malloc" >&6
3550 if test $ac_cv_lib_dmalloc_malloc = yes; then
3551 cat >>confdefs.h <<_ACEOF
3552 #define HAVE_LIBDMALLOC 1
3555 LIBS="-ldmalloc $LIBS"
3560 for ac_header in dmalloc.h
3562 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3563 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3564 echo "$as_me:$LINENO: checking for $ac_header" >&5
3565 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3566 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3567 echo $ECHO_N "(cached) $ECHO_C" >&6
3569 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3570 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3572 # Is the header compilable?
3573 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3574 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3575 cat >conftest.$ac_ext <<_ACEOF
3578 cat confdefs.h >>conftest.$ac_ext
3579 cat >>conftest.$ac_ext <<_ACEOF
3580 /* end confdefs.h. */
3581 $ac_includes_default
3582 #include <$ac_header>
3584 rm -f conftest.$ac_objext
3585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3586 (eval $ac_compile) 2>conftest.er1
3588 grep -v '^ *+' conftest.er1 >conftest.err
3590 cat conftest.err >&5
3591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3592 (exit $ac_status); } &&
3593 { ac_try='test -z "$ac_c_werror_flag"
3594 || test ! -s conftest.err'
3595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3599 (exit $ac_status); }; } &&
3600 { ac_try='test -s conftest.$ac_objext'
3601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3605 (exit $ac_status); }; }; then
3606 ac_header_compiler=yes
3608 echo "$as_me: failed program was:" >&5
3609 sed 's/^/| /' conftest.$ac_ext >&5
3611 ac_header_compiler=no
3613 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3614 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3615 echo "${ECHO_T}$ac_header_compiler" >&6
3617 # Is the header present?
3618 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3619 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3620 cat >conftest.$ac_ext <<_ACEOF
3623 cat confdefs.h >>conftest.$ac_ext
3624 cat >>conftest.$ac_ext <<_ACEOF
3625 /* end confdefs.h. */
3626 #include <$ac_header>
3628 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3629 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3631 grep -v '^ *+' conftest.er1 >conftest.err
3633 cat conftest.err >&5
3634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3635 (exit $ac_status); } >/dev/null; then
3636 if test -s conftest.err; then
3637 ac_cpp_err=$ac_c_preproc_warn_flag
3638 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3645 if test -z "$ac_cpp_err"; then
3646 ac_header_preproc=yes
3648 echo "$as_me: failed program was:" >&5
3649 sed 's/^/| /' conftest.$ac_ext >&5
3651 ac_header_preproc=no
3653 rm -f conftest.err conftest.$ac_ext
3654 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3655 echo "${ECHO_T}$ac_header_preproc" >&6
3657 # So? What about this header?
3658 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3660 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3661 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3662 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3663 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3664 ac_header_preproc=yes
3667 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3668 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3669 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3670 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3671 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3672 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3673 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3674 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3675 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3676 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3677 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3678 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3681 ## ------------------------------------------ ##
3682 ## Report this to the AC_PACKAGE_NAME lists. ##
3683 ## ------------------------------------------ ##
3686 sed "s/^/$as_me: WARNING: /" >&2
3689 echo "$as_me:$LINENO: checking for $ac_header" >&5
3690 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3691 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3692 echo $ECHO_N "(cached) $ECHO_C" >&6
3694 eval "$as_ac_Header=\$ac_header_preproc"
3696 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3697 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3700 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3701 cat >>confdefs.h <<_ACEOF
3702 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3712 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3713 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3714 if test "${ac_cv_header_stdc+set}" = set; then
3715 echo $ECHO_N "(cached) $ECHO_C" >&6
3717 cat >conftest.$ac_ext <<_ACEOF
3720 cat confdefs.h >>conftest.$ac_ext
3721 cat >>conftest.$ac_ext <<_ACEOF
3722 /* end confdefs.h. */
3736 rm -f conftest.$ac_objext
3737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3738 (eval $ac_compile) 2>conftest.er1
3740 grep -v '^ *+' conftest.er1 >conftest.err
3742 cat conftest.err >&5
3743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3744 (exit $ac_status); } &&
3745 { ac_try='test -z "$ac_c_werror_flag"
3746 || test ! -s conftest.err'
3747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3751 (exit $ac_status); }; } &&
3752 { ac_try='test -s conftest.$ac_objext'
3753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3757 (exit $ac_status); }; }; then
3758 ac_cv_header_stdc=yes
3760 echo "$as_me: failed program was:" >&5
3761 sed 's/^/| /' conftest.$ac_ext >&5
3763 ac_cv_header_stdc=no
3765 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3767 if test $ac_cv_header_stdc = yes; then
3768 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3769 cat >conftest.$ac_ext <<_ACEOF
3772 cat confdefs.h >>conftest.$ac_ext
3773 cat >>conftest.$ac_ext <<_ACEOF
3774 /* end confdefs.h. */
3778 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3779 $EGREP "memchr" >/dev/null 2>&1; then
3782 ac_cv_header_stdc=no
3788 if test $ac_cv_header_stdc = yes; then
3789 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3790 cat >conftest.$ac_ext <<_ACEOF
3793 cat confdefs.h >>conftest.$ac_ext
3794 cat >>conftest.$ac_ext <<_ACEOF
3795 /* end confdefs.h. */
3799 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3800 $EGREP "free" >/dev/null 2>&1; then
3803 ac_cv_header_stdc=no
3809 if test $ac_cv_header_stdc = yes; then
3810 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3811 if test "$cross_compiling" = yes; then
3814 cat >conftest.$ac_ext <<_ACEOF
3817 cat confdefs.h >>conftest.$ac_ext
3818 cat >>conftest.$ac_ext <<_ACEOF
3819 /* end confdefs.h. */
3821 #if ((' ' & 0x0FF) == 0x020)
3822 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3823 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3825 # define ISLOWER(c) \
3826 (('a' <= (c) && (c) <= 'i') \
3827 || ('j' <= (c) && (c) <= 'r') \
3828 || ('s' <= (c) && (c) <= 'z'))
3829 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3832 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3837 for (i = 0; i < 256; i++)
3838 if (XOR (islower (i), ISLOWER (i))
3839 || toupper (i) != TOUPPER (i))
3844 rm -f conftest$ac_exeext
3845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3846 (eval $ac_link) 2>&5
3848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3849 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3854 (exit $ac_status); }; }; then
3857 echo "$as_me: program exited with status $ac_status" >&5
3858 echo "$as_me: failed program was:" >&5
3859 sed 's/^/| /' conftest.$ac_ext >&5
3862 ac_cv_header_stdc=no
3864 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3868 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3869 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3870 if test $ac_cv_header_stdc = yes; then
3872 cat >>confdefs.h <<\_ACEOF
3873 #define STDC_HEADERS 1
3883 for ac_header in fcntl.h sys/types.h sys/stat.h limits.h unistd.h
3885 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3886 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3887 echo "$as_me:$LINENO: checking for $ac_header" >&5
3888 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3889 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3890 echo $ECHO_N "(cached) $ECHO_C" >&6
3892 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3893 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3895 # Is the header compilable?
3896 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3897 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3898 cat >conftest.$ac_ext <<_ACEOF
3901 cat confdefs.h >>conftest.$ac_ext
3902 cat >>conftest.$ac_ext <<_ACEOF
3903 /* end confdefs.h. */
3904 $ac_includes_default
3905 #include <$ac_header>
3907 rm -f conftest.$ac_objext
3908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3909 (eval $ac_compile) 2>conftest.er1
3911 grep -v '^ *+' conftest.er1 >conftest.err
3913 cat conftest.err >&5
3914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3915 (exit $ac_status); } &&
3916 { ac_try='test -z "$ac_c_werror_flag"
3917 || test ! -s conftest.err'
3918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3922 (exit $ac_status); }; } &&
3923 { ac_try='test -s conftest.$ac_objext'
3924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3928 (exit $ac_status); }; }; then
3929 ac_header_compiler=yes
3931 echo "$as_me: failed program was:" >&5
3932 sed 's/^/| /' conftest.$ac_ext >&5
3934 ac_header_compiler=no
3936 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3937 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3938 echo "${ECHO_T}$ac_header_compiler" >&6
3940 # Is the header present?
3941 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3942 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3943 cat >conftest.$ac_ext <<_ACEOF
3946 cat confdefs.h >>conftest.$ac_ext
3947 cat >>conftest.$ac_ext <<_ACEOF
3948 /* end confdefs.h. */
3949 #include <$ac_header>
3951 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3952 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3954 grep -v '^ *+' conftest.er1 >conftest.err
3956 cat conftest.err >&5
3957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3958 (exit $ac_status); } >/dev/null; then
3959 if test -s conftest.err; then
3960 ac_cpp_err=$ac_c_preproc_warn_flag
3961 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3968 if test -z "$ac_cpp_err"; then
3969 ac_header_preproc=yes
3971 echo "$as_me: failed program was:" >&5
3972 sed 's/^/| /' conftest.$ac_ext >&5
3974 ac_header_preproc=no
3976 rm -f conftest.err conftest.$ac_ext
3977 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3978 echo "${ECHO_T}$ac_header_preproc" >&6
3980 # So? What about this header?
3981 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3983 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3984 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3985 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3986 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3987 ac_header_preproc=yes
3990 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3991 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3992 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3993 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3994 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3995 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3996 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3997 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3998 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3999 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4000 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4001 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4004 ## ------------------------------------------ ##
4005 ## Report this to the AC_PACKAGE_NAME lists. ##
4006 ## ------------------------------------------ ##
4009 sed "s/^/$as_me: WARNING: /" >&2
4012 echo "$as_me:$LINENO: checking for $ac_header" >&5
4013 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4014 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4015 echo $ECHO_N "(cached) $ECHO_C" >&6
4017 eval "$as_ac_Header=\$ac_header_preproc"
4019 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4020 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4023 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4024 cat >>confdefs.h <<_ACEOF
4025 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4033 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4034 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4035 if test "${ac_cv_c_const+set}" = set; then
4036 echo $ECHO_N "(cached) $ECHO_C" >&6
4038 cat >conftest.$ac_ext <<_ACEOF
4041 cat confdefs.h >>conftest.$ac_ext
4042 cat >>conftest.$ac_ext <<_ACEOF
4043 /* end confdefs.h. */
4048 /* FIXME: Include the comments suggested by Paul. */
4050 /* Ultrix mips cc rejects this. */
4051 typedef int charset[2];
4053 /* SunOS 4.1.1 cc rejects this. */
4054 char const *const *ccp;
4056 /* NEC SVR4.0.2 mips cc rejects this. */
4057 struct point {int x, y;};
4058 static struct point const zero = {0,0};
4059 /* AIX XL C 1.02.0.0 rejects this.
4060 It does not let you subtract one const X* pointer from another in
4061 an arm of an if-expression whose if-part is not a constant
4063 const char *g = "string";
4064 ccp = &g + (g ? g-g : 0);
4065 /* HPUX 7.0 cc rejects these. */
4068 ccp = (char const *const *) p;
4069 { /* SCO 3.2v4 cc rejects this. */
4071 char const *s = 0 ? (char *) 0 : (char const *) 0;
4075 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4077 const int *foo = &x[0];
4080 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4081 typedef const int *iptr;
4085 { /* AIX XL C 1.02.0.0 rejects this saying
4086 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4087 struct s { int j; const int *ap[3]; };
4088 struct s *b; b->j = 5;
4090 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4099 rm -f conftest.$ac_objext
4100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4101 (eval $ac_compile) 2>conftest.er1
4103 grep -v '^ *+' conftest.er1 >conftest.err
4105 cat conftest.err >&5
4106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4107 (exit $ac_status); } &&
4108 { ac_try='test -z "$ac_c_werror_flag"
4109 || test ! -s conftest.err'
4110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4114 (exit $ac_status); }; } &&
4115 { ac_try='test -s conftest.$ac_objext'
4116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4120 (exit $ac_status); }; }; then
4123 echo "$as_me: failed program was:" >&5
4124 sed 's/^/| /' conftest.$ac_ext >&5
4128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4130 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4131 echo "${ECHO_T}$ac_cv_c_const" >&6
4132 if test $ac_cv_c_const = no; then
4134 cat >>confdefs.h <<\_ACEOF
4140 echo "$as_me:$LINENO: checking for mode_t" >&5
4141 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
4142 if test "${ac_cv_type_mode_t+set}" = set; then
4143 echo $ECHO_N "(cached) $ECHO_C" >&6
4145 cat >conftest.$ac_ext <<_ACEOF
4148 cat confdefs.h >>conftest.$ac_ext
4149 cat >>conftest.$ac_ext <<_ACEOF
4150 /* end confdefs.h. */
4151 $ac_includes_default
4157 if (sizeof (mode_t))
4163 rm -f conftest.$ac_objext
4164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4165 (eval $ac_compile) 2>conftest.er1
4167 grep -v '^ *+' conftest.er1 >conftest.err
4169 cat conftest.err >&5
4170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4171 (exit $ac_status); } &&
4172 { ac_try='test -z "$ac_c_werror_flag"
4173 || test ! -s conftest.err'
4174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4178 (exit $ac_status); }; } &&
4179 { ac_try='test -s conftest.$ac_objext'
4180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4184 (exit $ac_status); }; }; then
4185 ac_cv_type_mode_t=yes
4187 echo "$as_me: failed program was:" >&5
4188 sed 's/^/| /' conftest.$ac_ext >&5
4190 ac_cv_type_mode_t=no
4192 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4194 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
4195 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
4196 if test $ac_cv_type_mode_t = yes; then
4200 cat >>confdefs.h <<_ACEOF
4206 echo "$as_me:$LINENO: checking for off_t" >&5
4207 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
4208 if test "${ac_cv_type_off_t+set}" = set; then
4209 echo $ECHO_N "(cached) $ECHO_C" >&6
4211 cat >conftest.$ac_ext <<_ACEOF
4214 cat confdefs.h >>conftest.$ac_ext
4215 cat >>conftest.$ac_ext <<_ACEOF
4216 /* end confdefs.h. */
4217 $ac_includes_default
4229 rm -f conftest.$ac_objext
4230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4231 (eval $ac_compile) 2>conftest.er1
4233 grep -v '^ *+' conftest.er1 >conftest.err
4235 cat conftest.err >&5
4236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4237 (exit $ac_status); } &&
4238 { ac_try='test -z "$ac_c_werror_flag"
4239 || test ! -s conftest.err'
4240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4244 (exit $ac_status); }; } &&
4245 { ac_try='test -s conftest.$ac_objext'
4246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4250 (exit $ac_status); }; }; then
4251 ac_cv_type_off_t=yes
4253 echo "$as_me: failed program was:" >&5
4254 sed 's/^/| /' conftest.$ac_ext >&5
4258 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4260 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
4261 echo "${ECHO_T}$ac_cv_type_off_t" >&6
4262 if test $ac_cv_type_off_t = yes; then
4266 cat >>confdefs.h <<_ACEOF
4272 echo "$as_me:$LINENO: checking for pid_t" >&5
4273 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
4274 if test "${ac_cv_type_pid_t+set}" = set; then
4275 echo $ECHO_N "(cached) $ECHO_C" >&6
4277 cat >conftest.$ac_ext <<_ACEOF
4280 cat confdefs.h >>conftest.$ac_ext
4281 cat >>conftest.$ac_ext <<_ACEOF
4282 /* end confdefs.h. */
4283 $ac_includes_default
4295 rm -f conftest.$ac_objext
4296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4297 (eval $ac_compile) 2>conftest.er1
4299 grep -v '^ *+' conftest.er1 >conftest.err
4301 cat conftest.err >&5
4302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4303 (exit $ac_status); } &&
4304 { ac_try='test -z "$ac_c_werror_flag"
4305 || test ! -s conftest.err'
4306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4310 (exit $ac_status); }; } &&
4311 { ac_try='test -s conftest.$ac_objext'
4312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4316 (exit $ac_status); }; }; then
4317 ac_cv_type_pid_t=yes
4319 echo "$as_me: failed program was:" >&5
4320 sed 's/^/| /' conftest.$ac_ext >&5
4324 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4326 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
4327 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
4328 if test $ac_cv_type_pid_t = yes; then
4332 cat >>confdefs.h <<_ACEOF
4338 echo "$as_me:$LINENO: checking for size_t" >&5
4339 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4340 if test "${ac_cv_type_size_t+set}" = set; then
4341 echo $ECHO_N "(cached) $ECHO_C" >&6
4343 cat >conftest.$ac_ext <<_ACEOF
4346 cat confdefs.h >>conftest.$ac_ext
4347 cat >>conftest.$ac_ext <<_ACEOF
4348 /* end confdefs.h. */
4349 $ac_includes_default
4355 if (sizeof (size_t))
4361 rm -f conftest.$ac_objext
4362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4363 (eval $ac_compile) 2>conftest.er1
4365 grep -v '^ *+' conftest.er1 >conftest.err
4367 cat conftest.err >&5
4368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4369 (exit $ac_status); } &&
4370 { ac_try='test -z "$ac_c_werror_flag"
4371 || test ! -s conftest.err'
4372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4376 (exit $ac_status); }; } &&
4377 { ac_try='test -s conftest.$ac_objext'
4378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4382 (exit $ac_status); }; }; then
4383 ac_cv_type_size_t=yes
4385 echo "$as_me: failed program was:" >&5
4386 sed 's/^/| /' conftest.$ac_ext >&5
4388 ac_cv_type_size_t=no
4390 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4392 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4393 echo "${ECHO_T}$ac_cv_type_size_t" >&6
4394 if test $ac_cv_type_size_t = yes; then
4398 cat >>confdefs.h <<_ACEOF
4399 #define size_t unsigned
4404 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
4405 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
4406 if test "${ac_cv_struct_tm+set}" = set; then
4407 echo $ECHO_N "(cached) $ECHO_C" >&6
4409 cat >conftest.$ac_ext <<_ACEOF
4412 cat confdefs.h >>conftest.$ac_ext
4413 cat >>conftest.$ac_ext <<_ACEOF
4414 /* end confdefs.h. */
4415 #include <sys/types.h>
4421 struct tm *tp; tp->tm_sec;
4426 rm -f conftest.$ac_objext
4427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4428 (eval $ac_compile) 2>conftest.er1
4430 grep -v '^ *+' conftest.er1 >conftest.err
4432 cat conftest.err >&5
4433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4434 (exit $ac_status); } &&
4435 { ac_try='test -z "$ac_c_werror_flag"
4436 || test ! -s conftest.err'
4437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4441 (exit $ac_status); }; } &&
4442 { ac_try='test -s conftest.$ac_objext'
4443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4447 (exit $ac_status); }; }; then
4448 ac_cv_struct_tm=time.h
4450 echo "$as_me: failed program was:" >&5
4451 sed 's/^/| /' conftest.$ac_ext >&5
4453 ac_cv_struct_tm=sys/time.h
4455 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4457 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
4458 echo "${ECHO_T}$ac_cv_struct_tm" >&6
4459 if test $ac_cv_struct_tm = sys/time.h; then
4461 cat >>confdefs.h <<\_ACEOF
4462 #define TM_IN_SYS_TIME 1
4470 if test x"$FSED_CPM" != x""; then
4471 FSED_CPM="$FSED_CPM$EXEEXT"
4474 echo "$as_me:$LINENO: checking for working memcmp" >&5
4475 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
4476 if test "${ac_cv_func_memcmp_working+set}" = set; then
4477 echo $ECHO_N "(cached) $ECHO_C" >&6
4479 if test "$cross_compiling" = yes; then
4480 ac_cv_func_memcmp_working=no
4482 cat >conftest.$ac_ext <<_ACEOF
4485 cat confdefs.h >>conftest.$ac_ext
4486 cat >>conftest.$ac_ext <<_ACEOF
4487 /* end confdefs.h. */
4488 $ac_includes_default
4493 /* Some versions of memcmp are not 8-bit clean. */
4494 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
4495 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
4498 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
4499 or more and with at least one buffer not starting on a 4-byte boundary.
4500 William Lewis provided this test program. */
4505 for (i = 0; i < 4; i++)
4509 strcpy (a, "--------01111111");
4510 strcpy (b, "--------10000000");
4511 if (memcmp (a, b, 16) >= 0)
4521 rm -f conftest$ac_exeext
4522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4523 (eval $ac_link) 2>&5
4525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4526 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4531 (exit $ac_status); }; }; then
4532 ac_cv_func_memcmp_working=yes
4534 echo "$as_me: program exited with status $ac_status" >&5
4535 echo "$as_me: failed program was:" >&5
4536 sed 's/^/| /' conftest.$ac_ext >&5
4539 ac_cv_func_memcmp_working=no
4541 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4544 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
4545 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
4546 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
4547 "memcmp.$ac_objext" | \
4548 *" memcmp.$ac_objext" | \
4549 "memcmp.$ac_objext "* | \
4550 *" memcmp.$ac_objext "* ) ;;
4551 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
4556 for ac_func in strftime
4558 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4559 echo "$as_me:$LINENO: checking for $ac_func" >&5
4560 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4561 if eval "test \"\${$as_ac_var+set}\" = set"; then
4562 echo $ECHO_N "(cached) $ECHO_C" >&6
4564 cat >conftest.$ac_ext <<_ACEOF
4567 cat confdefs.h >>conftest.$ac_ext
4568 cat >>conftest.$ac_ext <<_ACEOF
4569 /* end confdefs.h. */
4570 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4571 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4572 #define $ac_func innocuous_$ac_func
4574 /* System header to define __stub macros and hopefully few prototypes,
4575 which can conflict with char $ac_func (); below.
4576 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4577 <limits.h> exists even on freestanding compilers. */
4580 # include <limits.h>
4582 # include <assert.h>
4587 /* Override any gcc2 internal prototype to avoid an error. */
4592 /* We use char because int might match the return type of a gcc2
4593 builtin and then its argument prototype would still apply. */
4595 /* The GNU C library defines this for functions which it implements
4596 to always fail with ENOSYS. Some functions are actually named
4597 something starting with __ and the normal name is an alias. */
4598 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4601 char (*f) () = $ac_func;
4610 return f != $ac_func;
4615 rm -f conftest.$ac_objext conftest$ac_exeext
4616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4617 (eval $ac_link) 2>conftest.er1
4619 grep -v '^ *+' conftest.er1 >conftest.err
4621 cat conftest.err >&5
4622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4623 (exit $ac_status); } &&
4624 { ac_try='test -z "$ac_c_werror_flag"
4625 || test ! -s conftest.err'
4626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4630 (exit $ac_status); }; } &&
4631 { ac_try='test -s conftest$ac_exeext'
4632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4636 (exit $ac_status); }; }; then
4637 eval "$as_ac_var=yes"
4639 echo "$as_me: failed program was:" >&5
4640 sed 's/^/| /' conftest.$ac_ext >&5
4642 eval "$as_ac_var=no"
4644 rm -f conftest.err conftest.$ac_objext \
4645 conftest$ac_exeext conftest.$ac_ext
4647 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4648 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4649 if test `eval echo '${'$as_ac_var'}'` = yes; then
4650 cat >>confdefs.h <<_ACEOF
4651 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4655 # strftime is in -lintl on SCO UNIX.
4656 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
4657 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
4658 if test "${ac_cv_lib_intl_strftime+set}" = set; then
4659 echo $ECHO_N "(cached) $ECHO_C" >&6
4661 ac_check_lib_save_LIBS=$LIBS
4663 cat >conftest.$ac_ext <<_ACEOF
4666 cat confdefs.h >>conftest.$ac_ext
4667 cat >>conftest.$ac_ext <<_ACEOF
4668 /* end confdefs.h. */
4670 /* Override any gcc2 internal prototype to avoid an error. */
4674 /* We use char because int might match the return type of a gcc2
4675 builtin and then its argument prototype would still apply. */
4685 rm -f conftest.$ac_objext conftest$ac_exeext
4686 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4687 (eval $ac_link) 2>conftest.er1
4689 grep -v '^ *+' conftest.er1 >conftest.err
4691 cat conftest.err >&5
4692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4693 (exit $ac_status); } &&
4694 { ac_try='test -z "$ac_c_werror_flag"
4695 || test ! -s conftest.err'
4696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4700 (exit $ac_status); }; } &&
4701 { ac_try='test -s conftest$ac_exeext'
4702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4706 (exit $ac_status); }; }; then
4707 ac_cv_lib_intl_strftime=yes
4709 echo "$as_me: failed program was:" >&5
4710 sed 's/^/| /' conftest.$ac_ext >&5
4712 ac_cv_lib_intl_strftime=no
4714 rm -f conftest.err conftest.$ac_objext \
4715 conftest$ac_exeext conftest.$ac_ext
4716 LIBS=$ac_check_lib_save_LIBS
4718 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
4719 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
4720 if test $ac_cv_lib_intl_strftime = yes; then
4721 cat >>confdefs.h <<\_ACEOF
4722 #define HAVE_STRFTIME 1
4733 for ac_func in mktime strerror
4735 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4736 echo "$as_me:$LINENO: checking for $ac_func" >&5
4737 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4738 if eval "test \"\${$as_ac_var+set}\" = set"; then
4739 echo $ECHO_N "(cached) $ECHO_C" >&6
4741 cat >conftest.$ac_ext <<_ACEOF
4744 cat confdefs.h >>conftest.$ac_ext
4745 cat >>conftest.$ac_ext <<_ACEOF
4746 /* end confdefs.h. */
4747 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4748 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4749 #define $ac_func innocuous_$ac_func
4751 /* System header to define __stub macros and hopefully few prototypes,
4752 which can conflict with char $ac_func (); below.
4753 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4754 <limits.h> exists even on freestanding compilers. */
4757 # include <limits.h>
4759 # include <assert.h>
4764 /* Override any gcc2 internal prototype to avoid an error. */
4769 /* We use char because int might match the return type of a gcc2
4770 builtin and then its argument prototype would still apply. */
4772 /* The GNU C library defines this for functions which it implements
4773 to always fail with ENOSYS. Some functions are actually named
4774 something starting with __ and the normal name is an alias. */
4775 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4778 char (*f) () = $ac_func;
4787 return f != $ac_func;
4792 rm -f conftest.$ac_objext conftest$ac_exeext
4793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4794 (eval $ac_link) 2>conftest.er1
4796 grep -v '^ *+' conftest.er1 >conftest.err
4798 cat conftest.err >&5
4799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4800 (exit $ac_status); } &&
4801 { ac_try='test -z "$ac_c_werror_flag"
4802 || test ! -s conftest.err'
4803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4807 (exit $ac_status); }; } &&
4808 { ac_try='test -s conftest$ac_exeext'
4809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4813 (exit $ac_status); }; }; then
4814 eval "$as_ac_var=yes"
4816 echo "$as_me: failed program was:" >&5
4817 sed 's/^/| /' conftest.$ac_ext >&5
4819 eval "$as_ac_var=no"
4821 rm -f conftest.err conftest.$ac_objext \
4822 conftest$ac_exeext conftest.$ac_ext
4824 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4825 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4826 if test `eval echo '${'$as_ac_var'}'` = yes; then
4827 cat >>confdefs.h <<_ACEOF
4828 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4838 eval DATADIR=$datadir
4844 ac_config_files="$ac_config_files Makefile cpm.5 cpmchattr.1 cpmchmod.1 cpmcp.1 cpmls.1 cpmrm.1 fsck.cpm.1 fsed.cpm.1 mkfs.cpm.1"
4845 cat >confcache <<\_ACEOF
4846 # This file is a shell script that caches the results of configure
4847 # tests run on this system so they can be shared between configure
4848 # scripts and configure runs, see configure's option --config-cache.
4849 # It is not useful on other systems. If it contains results you don't
4850 # want to keep, you may remove or edit it.
4852 # config.status only pays attention to the cache file if you give it
4853 # the --recheck option to rerun configure.
4855 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4856 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4861 # The following way of writing the cache mishandles newlines in values,
4862 # but we know of no workaround that is simple, portable, and efficient.
4863 # So, don't put newlines in cache variables' values.
4864 # Ultrix sh set writes to stderr and can't be redirected directly,
4865 # and sets the high bit in the cache file unless we assign to the vars.
4868 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4870 # `set' does not quote correctly, so add quotes (double-quote
4871 # substitution turns \\\\ into \\, and sed turns \\ into \).
4874 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4877 # `set' quotes correctly as required by POSIX, so do not add quotes.
4879 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4886 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4888 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4890 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4891 if test -w $cache_file; then
4892 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4893 cat confcache >$cache_file
4895 echo "not updating unwritable cache $cache_file"
4900 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4901 # Let make expand exec_prefix.
4902 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4904 # VPATH may cause trouble with some makes, so we remove $(srcdir),
4905 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4906 # trailing colons and then remove the whole line if VPATH becomes empty
4907 # (actually we leave an empty line to preserve line numbers).
4908 if test "x$srcdir" = x.; then
4909 ac_vpsub='/^[ ]*VPATH[ ]*=/{
4910 s/:*\$(srcdir):*/:/;
4911 s/:*\${srcdir}:*/:/;
4913 s/^\([^=]*=[ ]*\):*/\1/;
4919 DEFS=-DHAVE_CONFIG_H
4923 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4924 # 1. Remove the extension, and $U if already installed.
4925 ac_i=`echo "$ac_i" |
4926 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
4928 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
4929 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
4933 LTLIBOBJS=$ac_ltlibobjs
4937 : ${CONFIG_STATUS=./config.status}
4938 ac_clean_files_save=$ac_clean_files
4939 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4940 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
4941 echo "$as_me: creating $CONFIG_STATUS" >&6;}
4942 cat >$CONFIG_STATUS <<_ACEOF
4944 # Generated by $as_me.
4945 # Run this file to recreate the current configuration.
4946 # Compiler output produced by configure, useful for debugging
4947 # configure, is in config.log if it exists.
4952 SHELL=\${CONFIG_SHELL-$SHELL}
4955 cat >>$CONFIG_STATUS <<\_ACEOF
4956 ## --------------------- ##
4957 ## M4sh Initialization. ##
4958 ## --------------------- ##
4960 # Be Bourne compatible
4961 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4964 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
4965 # is contrary to our usage. Disable this feature.
4966 alias -g '${1+"$@"}'='"$@"'
4967 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
4970 DUALCASE=1; export DUALCASE # for MKS sh
4972 # Support unset when possible.
4973 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4980 # Work around bugs in pre-3.0 UWIN ksh.
4981 $as_unset ENV MAIL MAILPATH
4988 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
4989 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
4990 LC_TELEPHONE LC_TIME
4992 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
4993 eval $as_var=C; export $as_var
4999 # Required to use basename.
5000 if expr a : '\(a\)' >/dev/null 2>&1; then
5006 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
5007 as_basename=basename
5013 # Name of the executable.
5014 as_me=`$as_basename "$0" ||
5015 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5016 X"$0" : 'X\(//\)$' \| \
5017 X"$0" : 'X\(/\)$' \| \
5018 . : '\(.\)' 2>/dev/null ||
5020 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5021 /^X\/\(\/\/\)$/{ s//\1/; q; }
5022 /^X\/\(\/\).*/{ s//\1/; q; }
5026 # PATH needs CR, and LINENO needs CR and PATH.
5027 # Avoid depending upon Character Ranges.
5028 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5029 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5030 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5031 as_cr_digits='0123456789'
5032 as_cr_alnum=$as_cr_Letters$as_cr_digits
5034 # The user is always right.
5035 if test "${PATH_SEPARATOR+set}" != set; then
5036 echo "#! /bin/sh" >conf$$.sh
5037 echo "exit 0" >>conf$$.sh
5039 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5050 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5051 test "x$as_lineno_1" != "x$as_lineno_2" &&
5052 test "x$as_lineno_3" = "x$as_lineno_2" || {
5053 # Find who we are. Look in the path if we contain no path at all
5056 *[\\/]* ) as_myself=$0 ;;
5057 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5061 test -z "$as_dir" && as_dir=.
5062 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5067 # We did not find ourselves, most probably we were run as `sh COMMAND'
5068 # in which case we are not to be found in the path.
5069 if test "x$as_myself" = x; then
5072 if test ! -f "$as_myself"; then
5073 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
5074 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
5075 { (exit 1); exit 1; }; }
5077 case $CONFIG_SHELL in
5079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5080 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5083 test -z "$as_dir" && as_dir=.
5084 for as_base in sh bash ksh sh5; do
5087 if ("$as_dir/$as_base" -c '
5090 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5091 test "x$as_lineno_1" != "x$as_lineno_2" &&
5092 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
5093 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
5094 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
5095 CONFIG_SHELL=$as_dir/$as_base
5097 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
5105 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5106 # uniformly replaced by the line number. The first 'sed' inserts a
5107 # line-number line before each line; the second 'sed' does the real
5108 # work. The second script uses 'N' to pair each line-number line
5109 # with the numbered line, and appends trailing '-' during
5110 # substitution so that $LINENO is not a special case at line end.
5111 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5112 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
5113 sed '=' <$as_myself |
5118 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5121 s,^['$as_cr_digits']*\n,,
5123 chmod +x $as_me.lineno ||
5124 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
5125 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
5126 { (exit 1); exit 1; }; }
5128 # Don't try to exec as it changes $[0], causing all sort of problems
5129 # (the dirname of $[0] is not the place where we might find the
5130 # original and so on. Autoconf is especially sensible to this).
5132 # Exit status is that of the last command.
5137 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
5138 *c*,-n*) ECHO_N= ECHO_C='
5140 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
5141 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
5144 if expr a : '\(a\)' >/dev/null 2>&1; then
5150 rm -f conf$$ conf$$.exe conf$$.file
5152 if ln -s conf$$.file conf$$ 2>/dev/null; then
5153 # We could just check for DJGPP; but this test a) works b) is more generic
5154 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5155 if test -f conf$$.exe; then
5156 # Don't use ln at all; we don't have any links
5161 elif ln conf$$.file conf$$ 2>/dev/null; then
5166 rm -f conf$$ conf$$.exe conf$$.file
5168 if mkdir -p . 2>/dev/null; then
5171 test -d ./-p && rmdir ./-p
5175 as_executable_p="test -f"
5177 # Sed expression to map a string onto a valid CPP name.
5178 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5180 # Sed expression to map a string onto a valid variable name.
5181 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5185 # We need space, tab and new line, in precisely that order.
5195 # Open the log real soon, to keep \$[0] and so on meaningful, and to
5196 # report actual input values of CONFIG_FILES etc. instead of their
5197 # values after options handling. Logging --version etc. is OK.
5201 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5202 ## Running $as_me. ##
5207 This file was extended by $as_me, which was
5208 generated by GNU Autoconf 2.59. Invocation command line was
5210 CONFIG_FILES = $CONFIG_FILES
5211 CONFIG_HEADERS = $CONFIG_HEADERS
5212 CONFIG_LINKS = $CONFIG_LINKS
5213 CONFIG_COMMANDS = $CONFIG_COMMANDS
5217 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
5221 # Files that config.status was made for.
5222 if test -n "$ac_config_files"; then
5223 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5226 if test -n "$ac_config_headers"; then
5227 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5230 if test -n "$ac_config_links"; then
5231 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5234 if test -n "$ac_config_commands"; then
5235 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5238 cat >>$CONFIG_STATUS <<\_ACEOF
5241 \`$as_me' instantiates files from templates according to the
5242 current configuration.
5244 Usage: $0 [OPTIONS] [FILE]...
5246 -h, --help print this help, then exit
5247 -V, --version print version number, then exit
5248 -q, --quiet do not print progress messages
5249 -d, --debug don't remove temporary files
5250 --recheck update $as_me by reconfiguring in the same conditions
5251 --file=FILE[:TEMPLATE]
5252 instantiate the configuration file FILE
5253 --header=FILE[:TEMPLATE]
5254 instantiate the configuration header FILE
5256 Configuration files:
5259 Configuration headers:
5262 Report bugs to <bug-autoconf@gnu.org>."
5265 cat >>$CONFIG_STATUS <<_ACEOF
5268 configured by $0, generated by GNU Autoconf 2.59,
5269 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5271 Copyright (C) 2003 Free Software Foundation, Inc.
5272 This config.status script is free software; the Free Software Foundation
5273 gives unlimited permission to copy, distribute and modify it."
5278 cat >>$CONFIG_STATUS <<\_ACEOF
5279 # If no file are specified by the user, then we need to provide default
5280 # value. By we need to know if files were specified by the user.
5286 ac_option=`expr "x$1" : 'x\([^=]*\)='`
5287 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5295 *) # This is not an option, so the user has probably given explicit
5298 ac_need_defaults=false;;
5302 # Handling of the options.
5304 cat >>$CONFIG_STATUS <<\_ACEOF
5305 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5307 --version | --vers* | -V )
5308 echo "$ac_cs_version"; exit 0 ;;
5310 # Conflict between --help and --header
5311 { { echo "$as_me:$LINENO: error: ambiguous option: $1
5312 Try \`$0 --help' for more information." >&5
5313 echo "$as_me: error: ambiguous option: $1
5314 Try \`$0 --help' for more information." >&2;}
5315 { (exit 1); exit 1; }; };;
5316 --help | --hel | -h )
5317 echo "$ac_cs_usage"; exit 0 ;;
5318 --debug | --d* | -d )
5320 --file | --fil | --fi | --f )
5322 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5323 ac_need_defaults=false;;
5324 --header | --heade | --head | --hea )
5326 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5327 ac_need_defaults=false;;
5328 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5329 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5333 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5334 Try \`$0 --help' for more information." >&5
5335 echo "$as_me: error: unrecognized option: $1
5336 Try \`$0 --help' for more information." >&2;}
5337 { (exit 1); exit 1; }; } ;;
5339 *) ac_config_targets="$ac_config_targets $1" ;;
5345 ac_configure_extra_args=
5347 if $ac_cs_silent; then
5349 ac_configure_extra_args="$ac_configure_extra_args --silent"
5353 cat >>$CONFIG_STATUS <<_ACEOF
5354 if \$ac_cs_recheck; then
5355 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5356 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5365 cat >>$CONFIG_STATUS <<\_ACEOF
5366 for ac_config_target in $ac_config_targets
5368 case "$ac_config_target" in
5369 # Handling of arguments.
5370 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5371 "cpm.5" ) CONFIG_FILES="$CONFIG_FILES cpm.5" ;;
5372 "cpmchattr.1" ) CONFIG_FILES="$CONFIG_FILES cpmchattr.1" ;;
5373 "cpmchmod.1" ) CONFIG_FILES="$CONFIG_FILES cpmchmod.1" ;;
5374 "cpmcp.1" ) CONFIG_FILES="$CONFIG_FILES cpmcp.1" ;;
5375 "cpmls.1" ) CONFIG_FILES="$CONFIG_FILES cpmls.1" ;;
5376 "cpmrm.1" ) CONFIG_FILES="$CONFIG_FILES cpmrm.1" ;;
5377 "fsck.cpm.1" ) CONFIG_FILES="$CONFIG_FILES fsck.cpm.1" ;;
5378 "fsed.cpm.1" ) CONFIG_FILES="$CONFIG_FILES fsed.cpm.1" ;;
5379 "mkfs.cpm.1" ) CONFIG_FILES="$CONFIG_FILES mkfs.cpm.1" ;;
5380 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5381 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5382 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5383 { (exit 1); exit 1; }; };;
5387 # If the user did not use the arguments to specify the items to instantiate,
5388 # then the envvar interface is used. Set only those that are not.
5389 # We use the long form for the default assignment because of an extremely
5390 # bizarre bug on SunOS 4.1.3.
5391 if $ac_need_defaults; then
5392 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5393 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5396 # Have a temporary directory for convenience. Make it in the build tree
5397 # simply because there is no reason to put it here, and in addition,
5398 # creating and moving files from /tmp can sometimes cause problems.
5399 # Create a temporary directory, and hook for its removal unless debugging.
5402 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5403 trap '{ (exit 1); exit 1; }' 1 2 13 15
5406 # Create a (secure) tmp directory for tmp files.
5409 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
5410 test -n "$tmp" && test -d "$tmp"
5413 tmp=./confstat$$-$RANDOM
5414 (umask 077 && mkdir $tmp)
5417 echo "$me: cannot create a temporary directory in ." >&2
5418 { (exit 1); exit 1; }
5423 cat >>$CONFIG_STATUS <<_ACEOF
5426 # CONFIG_FILES section.
5429 # No need to generate the scripts if there are no CONFIG_FILES.
5430 # This happens for instance when ./config.status config.h
5431 if test -n "\$CONFIG_FILES"; then
5432 # Protect against being on the right side of a sed subst in config.status.
5433 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5434 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5435 s,@SHELL@,$SHELL,;t t
5436 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5437 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5438 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5439 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5440 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5441 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5442 s,@exec_prefix@,$exec_prefix,;t t
5443 s,@prefix@,$prefix,;t t
5444 s,@program_transform_name@,$program_transform_name,;t t
5445 s,@bindir@,$bindir,;t t
5446 s,@sbindir@,$sbindir,;t t
5447 s,@libexecdir@,$libexecdir,;t t
5448 s,@datadir@,$datadir,;t t
5449 s,@sysconfdir@,$sysconfdir,;t t
5450 s,@sharedstatedir@,$sharedstatedir,;t t
5451 s,@localstatedir@,$localstatedir,;t t
5452 s,@libdir@,$libdir,;t t
5453 s,@includedir@,$includedir,;t t
5454 s,@oldincludedir@,$oldincludedir,;t t
5455 s,@infodir@,$infodir,;t t
5456 s,@mandir@,$mandir,;t t
5457 s,@build_alias@,$build_alias,;t t
5458 s,@host_alias@,$host_alias,;t t
5459 s,@target_alias@,$target_alias,;t t
5461 s,@ECHO_C@,$ECHO_C,;t t
5462 s,@ECHO_N@,$ECHO_N,;t t
5463 s,@ECHO_T@,$ECHO_T,;t t
5465 s,@build@,$build,;t t
5466 s,@build_cpu@,$build_cpu,;t t
5467 s,@build_vendor@,$build_vendor,;t t
5468 s,@build_os@,$build_os,;t t
5470 s,@host_cpu@,$host_cpu,;t t
5471 s,@host_vendor@,$host_vendor,;t t
5472 s,@host_os@,$host_os,;t t
5474 s,@CFLAGS@,$CFLAGS,;t t
5475 s,@LDFLAGS@,$LDFLAGS,;t t
5476 s,@CPPFLAGS@,$CPPFLAGS,;t t
5477 s,@ac_ct_CC@,$ac_ct_CC,;t t
5478 s,@EXEEXT@,$EXEEXT,;t t
5479 s,@OBJEXT@,$OBJEXT,;t t
5480 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
5481 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
5482 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
5484 s,@EGREP@,$EGREP,;t t
5485 s,@LIBOBJS@,$LIBOBJS,;t t
5486 s,@LDLIBS@,$LDLIBS,;t t
5487 s,@LDDEPS@,$LDDEPS,;t t
5488 s,@DEVICE@,$DEVICE,;t t
5489 s,@DATADIR@,$DATADIR,;t t
5490 s,@DISKDEFS@,$DISKDEFS,;t t
5491 s,@DEFFORMAT@,$DEFFORMAT,;t t
5492 s,@FSED_CPM@,$FSED_CPM,;t t
5493 s,@UPDATED@,$UPDATED,;t t
5494 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
5499 cat >>$CONFIG_STATUS <<\_ACEOF
5500 # Split the substitutions into bite-sized pieces for seds with
5501 # small command number limits, like on Digital OSF/1 and HP-UX.
5503 ac_sed_frag=1 # Number of current file.
5504 ac_beg=1 # First line for current file.
5505 ac_end=$ac_max_sed_lines # Line after last line for current file.
5508 while $ac_more_lines; do
5509 if test $ac_beg -gt 1; then
5510 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5512 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5514 if test ! -s $tmp/subs.frag; then
5517 # The purpose of the label and of the branching condition is to
5518 # speed up the sed processing (if there are no `@' at all, there
5519 # is no need to browse any of the substitutions).
5520 # These are the two extra sed commands mentioned above.
5522 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
5523 if test -z "$ac_sed_cmds"; then
5524 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
5526 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5528 ac_sed_frag=`expr $ac_sed_frag + 1`
5530 ac_end=`expr $ac_end + $ac_max_sed_lines`
5533 if test -z "$ac_sed_cmds"; then
5536 fi # test -n "$CONFIG_FILES"
5539 cat >>$CONFIG_STATUS <<\_ACEOF
5540 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5541 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5543 - | *:- | *:-:* ) # input from stdin
5545 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5546 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5547 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5548 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5549 * ) ac_file_in=$ac_file.in ;;
5552 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5553 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5554 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5555 X"$ac_file" : 'X\(//\)[^/]' \| \
5556 X"$ac_file" : 'X\(//\)$' \| \
5557 X"$ac_file" : 'X\(/\)' \| \
5558 . : '\(.\)' 2>/dev/null ||
5560 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5561 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5562 /^X\(\/\/\)$/{ s//\1/; q; }
5563 /^X\(\/\).*/{ s//\1/; q; }
5565 { if $as_mkdir_p; then
5570 while test ! -d "$as_dir"; do
5571 as_dirs="$as_dir $as_dirs"
5572 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5573 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5574 X"$as_dir" : 'X\(//\)[^/]' \| \
5575 X"$as_dir" : 'X\(//\)$' \| \
5576 X"$as_dir" : 'X\(/\)' \| \
5577 . : '\(.\)' 2>/dev/null ||
5579 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5580 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5581 /^X\(\/\/\)$/{ s//\1/; q; }
5582 /^X\(\/\).*/{ s//\1/; q; }
5585 test ! -n "$as_dirs" || mkdir $as_dirs
5586 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5587 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5588 { (exit 1); exit 1; }; }; }
5592 if test "$ac_dir" != .; then
5593 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5594 # A "../" for each directory in $ac_dir_suffix.
5595 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5597 ac_dir_suffix= ac_top_builddir=
5601 .) # No --srcdir option. We are building in place.
5603 if test -z "$ac_top_builddir"; then
5606 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5608 [\\/]* | ?:[\\/]* ) # Absolute path.
5609 ac_srcdir=$srcdir$ac_dir_suffix;
5610 ac_top_srcdir=$srcdir ;;
5612 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5613 ac_top_srcdir=$ac_top_builddir$srcdir ;;
5616 # Do not use `cd foo && pwd` to compute absolute paths, because
5617 # the directories may not exist.
5619 .) ac_abs_builddir="$ac_dir";;
5622 .) ac_abs_builddir=`pwd`;;
5623 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
5624 *) ac_abs_builddir=`pwd`/"$ac_dir";;
5627 case $ac_abs_builddir in
5628 .) ac_abs_top_builddir=${ac_top_builddir}.;;
5630 case ${ac_top_builddir}. in
5631 .) ac_abs_top_builddir=$ac_abs_builddir;;
5632 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
5633 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
5636 case $ac_abs_builddir in
5637 .) ac_abs_srcdir=$ac_srcdir;;
5640 .) ac_abs_srcdir=$ac_abs_builddir;;
5641 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
5642 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
5645 case $ac_abs_builddir in
5646 .) ac_abs_top_srcdir=$ac_top_srcdir;;
5648 case $ac_top_srcdir in
5649 .) ac_abs_top_srcdir=$ac_abs_builddir;;
5650 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
5651 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
5657 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5658 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
5661 if test x"$ac_file" != x-; then
5662 { echo "$as_me:$LINENO: creating $ac_file" >&5
5663 echo "$as_me: creating $ac_file" >&6;}
5666 # Let's still pretend it is `configure' which instantiates (i.e., don't
5667 # use $as_me), people would be surprised to read:
5668 # /* config.h. Generated by config.status. */
5669 if test x"$ac_file" = x-; then
5672 configure_input="$ac_file. "
5674 configure_input=$configure_input"Generated from `echo $ac_file_in |
5675 sed 's,.*/,,'` by configure."
5677 # First look for the input files in the build tree, otherwise in the
5679 ac_file_inputs=`IFS=:
5680 for f in $ac_file_in; do
5682 -) echo $tmp/stdin ;;
5684 # Absolute (can't be DOS-style, as IFS=:)
5685 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5686 echo "$as_me: error: cannot find input file: $f" >&2;}
5687 { (exit 1); exit 1; }; }
5690 if test -f "$f"; then
5693 elif test -f "$srcdir/$f"; then
5698 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5699 echo "$as_me: error: cannot find input file: $f" >&2;}
5700 { (exit 1); exit 1; }; }
5703 done` || { (exit 1); exit 1; }
5705 cat >>$CONFIG_STATUS <<_ACEOF
5709 cat >>$CONFIG_STATUS <<\_ACEOF
5711 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5712 s,@configure_input@,$configure_input,;t t
5713 s,@srcdir@,$ac_srcdir,;t t
5714 s,@abs_srcdir@,$ac_abs_srcdir,;t t
5715 s,@top_srcdir@,$ac_top_srcdir,;t t
5716 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
5717 s,@builddir@,$ac_builddir,;t t
5718 s,@abs_builddir@,$ac_abs_builddir,;t t
5719 s,@top_builddir@,$ac_top_builddir,;t t
5720 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
5721 s,@INSTALL@,$ac_INSTALL,;t t
5722 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5724 if test x"$ac_file" != x-; then
5725 mv $tmp/out $ac_file
5733 cat >>$CONFIG_STATUS <<\_ACEOF
5736 # CONFIG_HEADER section.
5739 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5740 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5742 # ac_d sets the value in "#define NAME VALUE" lines.
5743 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5744 ac_dB='[ ].*$,\1#\2'
5747 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5748 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5749 ac_uB='$,\1#\2define\3'
5753 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
5754 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5756 - | *:- | *:-:* ) # input from stdin
5758 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5759 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5760 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5761 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5762 * ) ac_file_in=$ac_file.in ;;
5765 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
5766 echo "$as_me: creating $ac_file" >&6;}
5768 # First look for the input files in the build tree, otherwise in the
5770 ac_file_inputs=`IFS=:
5771 for f in $ac_file_in; do
5773 -) echo $tmp/stdin ;;
5775 # Absolute (can't be DOS-style, as IFS=:)
5776 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5777 echo "$as_me: error: cannot find input file: $f" >&2;}
5778 { (exit 1); exit 1; }; }
5779 # Do quote $f, to prevent DOS paths from being IFS'd.
5782 if test -f "$f"; then
5785 elif test -f "$srcdir/$f"; then
5790 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5791 echo "$as_me: error: cannot find input file: $f" >&2;}
5792 { (exit 1); exit 1; }; }
5795 done` || { (exit 1); exit 1; }
5796 # Remove the trailing spaces.
5797 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
5801 # Transform confdefs.h into two sed scripts, `conftest.defines' and
5802 # `conftest.undefs', that substitutes the proper values into
5803 # config.h.in to produce config.h. The first handles `#define'
5804 # templates, and the second `#undef' templates.
5805 # And first: Protect against being on the right side of a sed subst in
5806 # config.status. Protect against being in an unquoted here document
5808 rm -f conftest.defines conftest.undefs
5809 # Using a here document instead of a string reduces the quoting nightmare.
5810 # Putting comments in sed scripts is not portable.
5812 # `end' is used to avoid that the second main sed command (meant for
5813 # 0-ary CPP macros) applies to n-ary macro definitions.
5814 # See the Autoconf documentation for `clear'.
5815 cat >confdef2sed.sed <<\_ACEOF
5820 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
5822 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
5825 # If some macros were called several times there might be several times
5826 # the same #defines, which is useless. Nevertheless, we may not want to
5827 # sort them, since we want the *last* AC-DEFINE to be honored.
5828 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
5829 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
5830 rm -f confdef2sed.sed
5832 # This sed command replaces #undef with comments. This is necessary, for
5833 # example, in the case of _POSIX_SOURCE, which is predefined and required
5834 # on some systems where configure will not decide to define it.
5835 cat >>conftest.undefs <<\_ACEOF
5836 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
5839 # Break up conftest.defines because some shells have a limit on the size
5840 # of here documents, and old seds have small limits too (100 cmds).
5841 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
5842 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
5843 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
5844 echo ' :' >>$CONFIG_STATUS
5846 while grep . conftest.defines >/dev/null
5848 # Write a limited-size here document to $tmp/defines.sed.
5849 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
5850 # Speed up: don't consider the non `#define' lines.
5851 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
5852 # Work around the forget-to-reset-the-flag bug.
5853 echo 't clr' >>$CONFIG_STATUS
5854 echo ': clr' >>$CONFIG_STATUS
5855 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
5857 sed -f $tmp/defines.sed $tmp/in >$tmp/out
5861 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
5862 rm -f conftest.defines
5863 mv conftest.tail conftest.defines
5865 rm -f conftest.defines
5866 echo ' fi # grep' >>$CONFIG_STATUS
5867 echo >>$CONFIG_STATUS
5869 # Break up conftest.undefs because some shells have a limit on the size
5870 # of here documents, and old seds have small limits too (100 cmds).
5871 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
5873 while grep . conftest.undefs >/dev/null
5875 # Write a limited-size here document to $tmp/undefs.sed.
5876 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
5877 # Speed up: don't consider the non `#undef'
5878 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
5879 # Work around the forget-to-reset-the-flag bug.
5880 echo 't clr' >>$CONFIG_STATUS
5881 echo ': clr' >>$CONFIG_STATUS
5882 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
5884 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
5888 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
5889 rm -f conftest.undefs
5890 mv conftest.tail conftest.undefs
5892 rm -f conftest.undefs
5894 cat >>$CONFIG_STATUS <<\_ACEOF
5895 # Let's still pretend it is `configure' which instantiates (i.e., don't
5896 # use $as_me), people would be surprised to read:
5897 # /* config.h. Generated by config.status. */
5898 if test x"$ac_file" = x-; then
5899 echo "/* Generated by configure. */" >$tmp/config.h
5901 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
5903 cat $tmp/in >>$tmp/config.h
5905 if test x"$ac_file" != x-; then
5906 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
5907 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
5908 echo "$as_me: $ac_file is unchanged" >&6;}
5910 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5911 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5912 X"$ac_file" : 'X\(//\)[^/]' \| \
5913 X"$ac_file" : 'X\(//\)$' \| \
5914 X"$ac_file" : 'X\(/\)' \| \
5915 . : '\(.\)' 2>/dev/null ||
5917 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5918 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5919 /^X\(\/\/\)$/{ s//\1/; q; }
5920 /^X\(\/\).*/{ s//\1/; q; }
5922 { if $as_mkdir_p; then
5927 while test ! -d "$as_dir"; do
5928 as_dirs="$as_dir $as_dirs"
5929 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5930 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5931 X"$as_dir" : 'X\(//\)[^/]' \| \
5932 X"$as_dir" : 'X\(//\)$' \| \
5933 X"$as_dir" : 'X\(/\)' \| \
5934 . : '\(.\)' 2>/dev/null ||
5936 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5937 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5938 /^X\(\/\/\)$/{ s//\1/; q; }
5939 /^X\(\/\).*/{ s//\1/; q; }
5942 test ! -n "$as_dirs" || mkdir $as_dirs
5943 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5944 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5945 { (exit 1); exit 1; }; }; }
5948 mv $tmp/config.h $ac_file
5957 cat >>$CONFIG_STATUS <<\_ACEOF
5959 { (exit 0); exit 0; }
5961 chmod +x $CONFIG_STATUS
5962 ac_clean_files=$ac_clean_files_save
5965 # configure is writing to config.log, and then calls config.status.
5966 # config.status does its own redirection, appending to config.log.
5967 # Unfortunately, on DOS this fails, as config.log is still kept open
5968 # by configure, so config.status won't be able to write to it; its
5969 # output is simply discarded. So we exec the FD to /dev/null,
5970 # effectively closing config.log, so it can be properly (re)opened and
5971 # appended to by config.status. When coming back to configure, we
5972 # need to make the FD available again.
5973 if test "$no_create" != yes; then
5975 ac_config_status_args=
5976 test "$silent" = yes &&
5977 ac_config_status_args="$ac_config_status_args --quiet"
5979 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5981 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5982 # would make configure fail if this is the last instruction.
5983 $ac_cs_success || { (exit 1); exit 1; }