2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.58.
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 .) ac_abs_builddir=$ac_builddir;;
900 .) ac_abs_builddir="$ac_dir";;
901 [\\/]* | ?:[\\/]* ) ac_abs_builddir=$ac_builddir;;
902 *) ac_abs_builddir="$ac_dir"/$ac_builddir;;
906 .) ac_abs_top_builddir=${ac_top_builddir}.;;
908 case ${ac_top_builddir}. in
909 .) ac_abs_top_builddir="$ac_dir";;
910 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
911 *) ac_abs_top_builddir="$ac_dir"/${ac_top_builddir}.;;
915 .) ac_abs_srcdir=$ac_srcdir;;
918 .) ac_abs_srcdir="$ac_dir";;
919 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
920 *) ac_abs_srcdir="$ac_dir"/$ac_srcdir;;
924 .) ac_abs_top_srcdir=$ac_top_srcdir;;
926 case $ac_top_srcdir in
927 .) ac_abs_top_srcdir="$ac_dir";;
928 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
929 *) ac_abs_top_srcdir="$ac_dir"/$ac_top_srcdir;;
934 # Check for guested configure; otherwise get Cygnus style configure.
935 if test -f $ac_srcdir/configure.gnu; then
937 $SHELL $ac_srcdir/configure.gnu --help=recursive
938 elif test -f $ac_srcdir/configure; then
940 $SHELL $ac_srcdir/configure --help=recursive
941 elif test -f $ac_srcdir/configure.ac ||
942 test -f $ac_srcdir/configure.in; then
946 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
952 test -n "$ac_init_help" && exit 0
953 if $ac_init_version; then
956 Copyright (C) 2003 Free Software Foundation, Inc.
957 This configure script is free software; the Free Software Foundation
958 gives unlimited permission to copy, distribute and modify it.
964 This file contains any messages produced by compilers while
965 running configure, to aid debugging if configure makes a mistake.
967 It was created by $as_me, which was
968 generated by GNU Autoconf 2.58. Invocation command line was
979 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
980 uname -m = `(uname -m) 2>/dev/null || echo unknown`
981 uname -r = `(uname -r) 2>/dev/null || echo unknown`
982 uname -s = `(uname -s) 2>/dev/null || echo unknown`
983 uname -v = `(uname -v) 2>/dev/null || echo unknown`
985 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
986 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
988 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
989 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
990 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
991 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
992 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
993 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
994 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1002 test -z "$as_dir" && as_dir=.
1003 echo "PATH: $as_dir"
1018 # Keep a trace of the command line.
1019 # Strip out --no-create and --no-recursion so they do not pile up.
1020 # Strip out --silent because we don't want to record it for future runs.
1021 # Also quote any args containing shell meta-characters.
1022 # Make two passes to allow for proper duplicate-argument suppression.
1027 ac_must_keep_next=false
1033 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1034 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1035 | -silent | --silent | --silen | --sile | --sil)
1037 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1038 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1041 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1043 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1044 if test $ac_must_keep_next = true; then
1045 ac_must_keep_next=false # Got value, back to normal.
1048 *=* | --config-cache | -C | -disable-* | --disable-* \
1049 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1050 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1051 | -with-* | --with-* | -without-* | --without-* | --x)
1052 case "$ac_configure_args0 " in
1053 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1056 -* ) ac_must_keep_next=true ;;
1059 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1060 # Get rid of the leading space.
1066 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1067 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1069 # When interrupted or exit'd, cleanup temporary files, and complete
1070 # config.log. We remove comments because anyway the quotes in there
1071 # would cause problems or look ugly.
1072 # WARNING: Be sure not to use single quotes in there, as some shells,
1073 # such as our DU 5.0 friend, will then `close' the trap.
1074 trap 'exit_status=$?
1075 # Save into config.log some information that might help in debugging.
1080 ## ---------------- ##
1081 ## Cache variables. ##
1082 ## ---------------- ##
1085 # The following way of writing the cache mishandles newlines in values,
1088 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1091 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1092 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1096 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1103 ## ----------------- ##
1104 ## Output variables. ##
1105 ## ----------------- ##
1108 for ac_var in $ac_subst_vars
1110 eval ac_val=$`echo $ac_var`
1111 echo "$ac_var='"'"'$ac_val'"'"'"
1115 if test -n "$ac_subst_files"; then
1122 for ac_var in $ac_subst_files
1124 eval ac_val=$`echo $ac_var`
1125 echo "$ac_var='"'"'$ac_val'"'"'"
1130 if test -s confdefs.h; then
1137 sed "/^$/d" confdefs.h | sort
1140 test "$ac_signal" != 0 &&
1141 echo "$as_me: caught signal $ac_signal"
1142 echo "$as_me: exit $exit_status"
1144 rm -f core *.core &&
1145 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1148 for ac_signal in 1 2 13 15; do
1149 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1153 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1154 rm -rf conftest* confdefs.h
1155 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1158 # Predefined preprocessor variables.
1160 cat >>confdefs.h <<_ACEOF
1161 #define PACKAGE_NAME "$PACKAGE_NAME"
1165 cat >>confdefs.h <<_ACEOF
1166 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1170 cat >>confdefs.h <<_ACEOF
1171 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1175 cat >>confdefs.h <<_ACEOF
1176 #define PACKAGE_STRING "$PACKAGE_STRING"
1180 cat >>confdefs.h <<_ACEOF
1181 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1185 # Let the site file select an alternate cache file if it wants to.
1186 # Prefer explicitly selected file to automatically selected ones.
1187 if test -z "$CONFIG_SITE"; then
1188 if test "x$prefix" != xNONE; then
1189 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1191 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1194 for ac_site_file in $CONFIG_SITE; do
1195 if test -r "$ac_site_file"; then
1196 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1197 echo "$as_me: loading site script $ac_site_file" >&6;}
1198 sed 's/^/| /' "$ac_site_file" >&5
1203 if test -r "$cache_file"; then
1204 # Some versions of bash will fail to source /dev/null (special
1205 # files actually), so we avoid doing that.
1206 if test -f "$cache_file"; then
1207 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1208 echo "$as_me: loading cache $cache_file" >&6;}
1210 [\\/]* | ?:[\\/]* ) . $cache_file;;
1211 *) . ./$cache_file;;
1215 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1216 echo "$as_me: creating cache $cache_file" >&6;}
1220 # Check that the precious variables saved in the cache have kept the same
1222 ac_cache_corrupted=false
1223 for ac_var in `(set) 2>&1 |
1224 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1225 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1226 eval ac_new_set=\$ac_env_${ac_var}_set
1227 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1228 eval ac_new_val="\$ac_env_${ac_var}_value"
1229 case $ac_old_set,$ac_new_set in
1231 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1232 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1233 ac_cache_corrupted=: ;;
1235 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1236 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1237 ac_cache_corrupted=: ;;
1240 if test "x$ac_old_val" != "x$ac_new_val"; then
1241 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1242 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1243 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1244 echo "$as_me: former value: $ac_old_val" >&2;}
1245 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1246 echo "$as_me: current value: $ac_new_val" >&2;}
1247 ac_cache_corrupted=:
1250 # Pass precious variables to config.status.
1251 if test "$ac_new_set" = set; then
1253 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1254 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1255 *) ac_arg=$ac_var=$ac_new_val ;;
1257 case " $ac_configure_args " in
1258 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1259 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1263 if $ac_cache_corrupted; then
1264 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1265 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1266 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1267 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1268 { (exit 1); exit 1; }; }
1272 ac_cpp='$CPP $CPPFLAGS'
1273 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1274 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1275 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1295 ac_config_headers="$ac_config_headers config.h"
1298 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1299 if test -f $ac_dir/install-sh; then
1301 ac_install_sh="$ac_aux_dir/install-sh -c"
1303 elif test -f $ac_dir/install.sh; then
1305 ac_install_sh="$ac_aux_dir/install.sh -c"
1307 elif test -f $ac_dir/shtool; then
1309 ac_install_sh="$ac_aux_dir/shtool install -c"
1313 if test -z "$ac_aux_dir"; then
1314 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1315 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1316 { (exit 1); exit 1; }; }
1318 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1319 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1320 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1322 # Make sure we can run config.sub.
1323 $ac_config_sub sun4 >/dev/null 2>&1 ||
1324 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1325 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1326 { (exit 1); exit 1; }; }
1328 echo "$as_me:$LINENO: checking build system type" >&5
1329 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1330 if test "${ac_cv_build+set}" = set; then
1331 echo $ECHO_N "(cached) $ECHO_C" >&6
1333 ac_cv_build_alias=$build_alias
1334 test -z "$ac_cv_build_alias" &&
1335 ac_cv_build_alias=`$ac_config_guess`
1336 test -z "$ac_cv_build_alias" &&
1337 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1338 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1339 { (exit 1); exit 1; }; }
1340 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1341 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1342 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1343 { (exit 1); exit 1; }; }
1346 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1347 echo "${ECHO_T}$ac_cv_build" >&6
1349 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1350 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1351 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1354 echo "$as_me:$LINENO: checking host system type" >&5
1355 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1356 if test "${ac_cv_host+set}" = set; then
1357 echo $ECHO_N "(cached) $ECHO_C" >&6
1359 ac_cv_host_alias=$host_alias
1360 test -z "$ac_cv_host_alias" &&
1361 ac_cv_host_alias=$ac_cv_build_alias
1362 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1363 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1364 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1365 { (exit 1); exit 1; }; }
1368 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1369 echo "${ECHO_T}$ac_cv_host" >&6
1371 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1372 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1373 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1377 UPDATED='Oct 6, 2004'
1381 if test "$prefix" = NONE
1396 ac_cpp='$CPP $CPPFLAGS'
1397 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1398 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1399 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1400 if test -n "$ac_tool_prefix"; then
1401 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1402 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1403 echo "$as_me:$LINENO: checking for $ac_word" >&5
1404 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1405 if test "${ac_cv_prog_CC+set}" = set; then
1406 echo $ECHO_N "(cached) $ECHO_C" >&6
1408 if test -n "$CC"; then
1409 ac_cv_prog_CC="$CC" # Let the user override the test.
1411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1415 test -z "$as_dir" && as_dir=.
1416 for ac_exec_ext in '' $ac_executable_extensions; do
1417 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1418 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1419 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1428 if test -n "$CC"; then
1429 echo "$as_me:$LINENO: result: $CC" >&5
1430 echo "${ECHO_T}$CC" >&6
1432 echo "$as_me:$LINENO: result: no" >&5
1433 echo "${ECHO_T}no" >&6
1437 if test -z "$ac_cv_prog_CC"; then
1439 # Extract the first word of "gcc", so it can be a program name with args.
1440 set dummy gcc; ac_word=$2
1441 echo "$as_me:$LINENO: checking for $ac_word" >&5
1442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1443 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1444 echo $ECHO_N "(cached) $ECHO_C" >&6
1446 if test -n "$ac_ct_CC"; then
1447 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1453 test -z "$as_dir" && as_dir=.
1454 for ac_exec_ext in '' $ac_executable_extensions; do
1455 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1456 ac_cv_prog_ac_ct_CC="gcc"
1457 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1465 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1466 if test -n "$ac_ct_CC"; then
1467 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1468 echo "${ECHO_T}$ac_ct_CC" >&6
1470 echo "$as_me:$LINENO: result: no" >&5
1471 echo "${ECHO_T}no" >&6
1479 if test -z "$CC"; then
1480 if test -n "$ac_tool_prefix"; then
1481 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1482 set dummy ${ac_tool_prefix}cc; ac_word=$2
1483 echo "$as_me:$LINENO: checking for $ac_word" >&5
1484 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1485 if test "${ac_cv_prog_CC+set}" = set; then
1486 echo $ECHO_N "(cached) $ECHO_C" >&6
1488 if test -n "$CC"; then
1489 ac_cv_prog_CC="$CC" # Let the user override the test.
1491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1495 test -z "$as_dir" && as_dir=.
1496 for ac_exec_ext in '' $ac_executable_extensions; do
1497 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1498 ac_cv_prog_CC="${ac_tool_prefix}cc"
1499 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1508 if test -n "$CC"; then
1509 echo "$as_me:$LINENO: result: $CC" >&5
1510 echo "${ECHO_T}$CC" >&6
1512 echo "$as_me:$LINENO: result: no" >&5
1513 echo "${ECHO_T}no" >&6
1517 if test -z "$ac_cv_prog_CC"; then
1519 # Extract the first word of "cc", so it can be a program name with args.
1520 set dummy cc; ac_word=$2
1521 echo "$as_me:$LINENO: checking for $ac_word" >&5
1522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1523 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1524 echo $ECHO_N "(cached) $ECHO_C" >&6
1526 if test -n "$ac_ct_CC"; then
1527 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1533 test -z "$as_dir" && as_dir=.
1534 for ac_exec_ext in '' $ac_executable_extensions; do
1535 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1536 ac_cv_prog_ac_ct_CC="cc"
1537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1545 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1546 if test -n "$ac_ct_CC"; then
1547 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1548 echo "${ECHO_T}$ac_ct_CC" >&6
1550 echo "$as_me:$LINENO: result: no" >&5
1551 echo "${ECHO_T}no" >&6
1560 if test -z "$CC"; then
1561 # Extract the first word of "cc", so it can be a program name with args.
1562 set dummy cc; ac_word=$2
1563 echo "$as_me:$LINENO: checking for $ac_word" >&5
1564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1565 if test "${ac_cv_prog_CC+set}" = set; then
1566 echo $ECHO_N "(cached) $ECHO_C" >&6
1568 if test -n "$CC"; then
1569 ac_cv_prog_CC="$CC" # Let the user override the test.
1572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1576 test -z "$as_dir" && as_dir=.
1577 for ac_exec_ext in '' $ac_executable_extensions; do
1578 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1579 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1580 ac_prog_rejected=yes
1584 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1590 if test $ac_prog_rejected = yes; then
1591 # We found a bogon in the path, so make sure we never use it.
1592 set dummy $ac_cv_prog_CC
1594 if test $# != 0; then
1595 # We chose a different compiler from the bogus one.
1596 # However, it has the same basename, so the bogon will be chosen
1597 # first if we set CC to just the basename; use the full file name.
1599 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1605 if test -n "$CC"; then
1606 echo "$as_me:$LINENO: result: $CC" >&5
1607 echo "${ECHO_T}$CC" >&6
1609 echo "$as_me:$LINENO: result: no" >&5
1610 echo "${ECHO_T}no" >&6
1614 if test -z "$CC"; then
1615 if test -n "$ac_tool_prefix"; then
1618 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1619 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1620 echo "$as_me:$LINENO: checking for $ac_word" >&5
1621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1622 if test "${ac_cv_prog_CC+set}" = set; then
1623 echo $ECHO_N "(cached) $ECHO_C" >&6
1625 if test -n "$CC"; then
1626 ac_cv_prog_CC="$CC" # Let the user override the test.
1628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1632 test -z "$as_dir" && as_dir=.
1633 for ac_exec_ext in '' $ac_executable_extensions; do
1634 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1635 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1636 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1645 if test -n "$CC"; then
1646 echo "$as_me:$LINENO: result: $CC" >&5
1647 echo "${ECHO_T}$CC" >&6
1649 echo "$as_me:$LINENO: result: no" >&5
1650 echo "${ECHO_T}no" >&6
1653 test -n "$CC" && break
1656 if test -z "$CC"; then
1660 # Extract the first word of "$ac_prog", so it can be a program name with args.
1661 set dummy $ac_prog; ac_word=$2
1662 echo "$as_me:$LINENO: checking for $ac_word" >&5
1663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1664 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1665 echo $ECHO_N "(cached) $ECHO_C" >&6
1667 if test -n "$ac_ct_CC"; then
1668 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1674 test -z "$as_dir" && as_dir=.
1675 for ac_exec_ext in '' $ac_executable_extensions; do
1676 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1677 ac_cv_prog_ac_ct_CC="$ac_prog"
1678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1686 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1687 if test -n "$ac_ct_CC"; then
1688 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1689 echo "${ECHO_T}$ac_ct_CC" >&6
1691 echo "$as_me:$LINENO: result: no" >&5
1692 echo "${ECHO_T}no" >&6
1695 test -n "$ac_ct_CC" && break
1704 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1705 See \`config.log' for more details." >&5
1706 echo "$as_me: error: no acceptable C compiler found in \$PATH
1707 See \`config.log' for more details." >&2;}
1708 { (exit 1); exit 1; }; }
1710 # Provide some information about the compiler.
1711 echo "$as_me:$LINENO:" \
1712 "checking for C compiler version" >&5
1713 ac_compiler=`set X $ac_compile; echo $2`
1714 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1715 (eval $ac_compiler --version </dev/null >&5) 2>&5
1717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1718 (exit $ac_status); }
1719 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1720 (eval $ac_compiler -v </dev/null >&5) 2>&5
1722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1723 (exit $ac_status); }
1724 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1725 (eval $ac_compiler -V </dev/null >&5) 2>&5
1727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1728 (exit $ac_status); }
1730 cat >conftest.$ac_ext <<_ACEOF
1733 cat confdefs.h >>conftest.$ac_ext
1734 cat >>conftest.$ac_ext <<_ACEOF
1735 /* end confdefs.h. */
1745 ac_clean_files_save=$ac_clean_files
1746 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1747 # Try to create an executable without -o first, disregard a.out.
1748 # It will help us diagnose broken compilers, and finding out an intuition
1750 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1751 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1752 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1753 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1754 (eval $ac_link_default) 2>&5
1756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1757 (exit $ac_status); }; then
1758 # Find the output, starting from the most likely. This scheme is
1759 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1762 # Be careful to initialize this variable, since it used to be cached.
1763 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1765 # b.out is created by i960 compilers.
1766 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1768 test -f "$ac_file" || continue
1770 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1773 # This is the source file.
1776 # We found the default executable, but exeext='' is most
1780 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1781 # FIXME: I believe we export ac_cv_exeext for Libtool,
1782 # but it would be cool to find out if it's true. Does anybody
1783 # maintain Libtool? --akim.
1791 echo "$as_me: failed program was:" >&5
1792 sed 's/^/| /' conftest.$ac_ext >&5
1794 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1795 See \`config.log' for more details." >&5
1796 echo "$as_me: error: C compiler cannot create executables
1797 See \`config.log' for more details." >&2;}
1798 { (exit 77); exit 77; }; }
1801 ac_exeext=$ac_cv_exeext
1802 echo "$as_me:$LINENO: result: $ac_file" >&5
1803 echo "${ECHO_T}$ac_file" >&6
1805 # Check the compiler produces executables we can run. If not, either
1806 # the compiler is broken, or we cross compile.
1807 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1808 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1809 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1810 # If not cross compiling, check that we can run a simple program.
1811 if test "$cross_compiling" != yes; then
1812 if { ac_try='./$ac_file'
1813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1817 (exit $ac_status); }; }; then
1820 if test "$cross_compiling" = maybe; then
1823 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1824 If you meant to cross compile, use \`--host'.
1825 See \`config.log' for more details." >&5
1826 echo "$as_me: error: cannot run C compiled programs.
1827 If you meant to cross compile, use \`--host'.
1828 See \`config.log' for more details." >&2;}
1829 { (exit 1); exit 1; }; }
1833 echo "$as_me:$LINENO: result: yes" >&5
1834 echo "${ECHO_T}yes" >&6
1836 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1837 ac_clean_files=$ac_clean_files_save
1838 # Check the compiler produces executables we can run. If not, either
1839 # the compiler is broken, or we cross compile.
1840 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1841 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1842 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1843 echo "${ECHO_T}$cross_compiling" >&6
1845 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1846 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1848 (eval $ac_link) 2>&5
1850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1851 (exit $ac_status); }; then
1852 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1853 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1854 # work properly (i.e., refer to `conftest.exe'), while it won't with
1856 for ac_file in conftest.exe conftest conftest.*; do
1857 test -f "$ac_file" || continue
1859 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1860 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1867 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1868 See \`config.log' for more details." >&5
1869 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1870 See \`config.log' for more details." >&2;}
1871 { (exit 1); exit 1; }; }
1874 rm -f conftest$ac_cv_exeext
1875 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1876 echo "${ECHO_T}$ac_cv_exeext" >&6
1878 rm -f conftest.$ac_ext
1879 EXEEXT=$ac_cv_exeext
1881 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1882 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1883 if test "${ac_cv_objext+set}" = set; then
1884 echo $ECHO_N "(cached) $ECHO_C" >&6
1886 cat >conftest.$ac_ext <<_ACEOF
1889 cat confdefs.h >>conftest.$ac_ext
1890 cat >>conftest.$ac_ext <<_ACEOF
1891 /* end confdefs.h. */
1901 rm -f conftest.o conftest.obj
1902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1903 (eval $ac_compile) 2>&5
1905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1906 (exit $ac_status); }; then
1907 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1909 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1910 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1915 echo "$as_me: failed program was:" >&5
1916 sed 's/^/| /' conftest.$ac_ext >&5
1918 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1919 See \`config.log' for more details." >&5
1920 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1921 See \`config.log' for more details." >&2;}
1922 { (exit 1); exit 1; }; }
1925 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1927 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1928 echo "${ECHO_T}$ac_cv_objext" >&6
1929 OBJEXT=$ac_cv_objext
1931 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1932 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1933 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1934 echo $ECHO_N "(cached) $ECHO_C" >&6
1936 cat >conftest.$ac_ext <<_ACEOF
1939 cat confdefs.h >>conftest.$ac_ext
1940 cat >>conftest.$ac_ext <<_ACEOF
1941 /* end confdefs.h. */
1954 rm -f conftest.$ac_objext
1955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1956 (eval $ac_compile) 2>conftest.er1
1958 grep -v '^ *+' conftest.er1 >conftest.err
1960 cat conftest.err >&5
1961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1962 (exit $ac_status); } &&
1963 { ac_try='test -z "$ac_c_werror_flag"
1964 || test ! -s conftest.err'
1965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1969 (exit $ac_status); }; } &&
1970 { ac_try='test -s conftest.$ac_objext'
1971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1975 (exit $ac_status); }; }; then
1978 echo "$as_me: failed program was:" >&5
1979 sed 's/^/| /' conftest.$ac_ext >&5
1983 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1984 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1987 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1988 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1989 GCC=`test $ac_compiler_gnu = yes && echo yes`
1990 ac_test_CFLAGS=${CFLAGS+set}
1991 ac_save_CFLAGS=$CFLAGS
1993 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1994 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1995 if test "${ac_cv_prog_cc_g+set}" = set; then
1996 echo $ECHO_N "(cached) $ECHO_C" >&6
1998 cat >conftest.$ac_ext <<_ACEOF
2001 cat confdefs.h >>conftest.$ac_ext
2002 cat >>conftest.$ac_ext <<_ACEOF
2003 /* end confdefs.h. */
2013 rm -f conftest.$ac_objext
2014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2015 (eval $ac_compile) 2>conftest.er1
2017 grep -v '^ *+' conftest.er1 >conftest.err
2019 cat conftest.err >&5
2020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2021 (exit $ac_status); } &&
2022 { ac_try='test -z "$ac_c_werror_flag"
2023 || test ! -s conftest.err'
2024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2028 (exit $ac_status); }; } &&
2029 { ac_try='test -s conftest.$ac_objext'
2030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2034 (exit $ac_status); }; }; then
2037 echo "$as_me: failed program was:" >&5
2038 sed 's/^/| /' conftest.$ac_ext >&5
2042 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2044 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2045 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2046 if test "$ac_test_CFLAGS" = set; then
2047 CFLAGS=$ac_save_CFLAGS
2048 elif test $ac_cv_prog_cc_g = yes; then
2049 if test "$GCC" = yes; then
2055 if test "$GCC" = yes; then
2061 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2062 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2063 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2064 echo $ECHO_N "(cached) $ECHO_C" >&6
2066 ac_cv_prog_cc_stdc=no
2068 cat >conftest.$ac_ext <<_ACEOF
2071 cat confdefs.h >>conftest.$ac_ext
2072 cat >>conftest.$ac_ext <<_ACEOF
2073 /* end confdefs.h. */
2076 #include <sys/types.h>
2077 #include <sys/stat.h>
2078 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2079 struct buf { int x; };
2080 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2081 static char *e (p, i)
2087 static char *f (char * (*g) (char **, int), char **p, ...)
2092 s = g (p, va_arg (v,int));
2097 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2098 function prototypes and stuff, but not '\xHH' hex character constants.
2099 These don't provoke an error unfortunately, instead are silently treated
2100 as 'x'. The following induces an error, until -std1 is added to get
2101 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2102 array size at least. It's necessary to write '\x00'==0 to get something
2103 that's true only with -std1. */
2104 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2106 int test (int i, double x);
2107 struct s1 {int (*f) (int a);};
2108 struct s2 {int (*f) (double a);};
2109 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2115 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2120 # Don't try gcc -ansi; that turns off useful extensions and
2121 # breaks some systems' header files.
2122 # AIX -qlanglvl=ansi
2123 # Ultrix and OSF/1 -std1
2124 # HP-UX 10.20 and later -Ae
2125 # HP-UX older versions -Aa -D_HPUX_SOURCE
2126 # SVR4 -Xc -D__EXTENSIONS__
2127 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2129 CC="$ac_save_CC $ac_arg"
2130 rm -f conftest.$ac_objext
2131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2132 (eval $ac_compile) 2>conftest.er1
2134 grep -v '^ *+' conftest.er1 >conftest.err
2136 cat conftest.err >&5
2137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2138 (exit $ac_status); } &&
2139 { ac_try='test -z "$ac_c_werror_flag"
2140 || test ! -s conftest.err'
2141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2145 (exit $ac_status); }; } &&
2146 { ac_try='test -s conftest.$ac_objext'
2147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2151 (exit $ac_status); }; }; then
2152 ac_cv_prog_cc_stdc=$ac_arg
2155 echo "$as_me: failed program was:" >&5
2156 sed 's/^/| /' conftest.$ac_ext >&5
2159 rm -f conftest.err conftest.$ac_objext
2161 rm -f conftest.$ac_ext conftest.$ac_objext
2166 case "x$ac_cv_prog_cc_stdc" in
2168 echo "$as_me:$LINENO: result: none needed" >&5
2169 echo "${ECHO_T}none needed" >&6 ;;
2171 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2172 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2173 CC="$CC $ac_cv_prog_cc_stdc" ;;
2176 # Some people use a C++ compiler to compile C. Since we use `exit',
2177 # in C++ we need to declare it. In case someone uses the same compiler
2178 # for both compiling C and C++ we need to have the C++ compiler decide
2179 # the declaration of exit, since it's the most demanding environment.
2180 cat >conftest.$ac_ext <<_ACEOF
2185 rm -f conftest.$ac_objext
2186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2187 (eval $ac_compile) 2>conftest.er1
2189 grep -v '^ *+' conftest.er1 >conftest.err
2191 cat conftest.err >&5
2192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2193 (exit $ac_status); } &&
2194 { ac_try='test -z "$ac_c_werror_flag"
2195 || test ! -s conftest.err'
2196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2200 (exit $ac_status); }; } &&
2201 { ac_try='test -s conftest.$ac_objext'
2202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2206 (exit $ac_status); }; }; then
2207 for ac_declaration in \
2209 'extern "C" void std::exit (int) throw (); using std::exit;' \
2210 'extern "C" void std::exit (int); using std::exit;' \
2211 'extern "C" void exit (int) throw ();' \
2212 'extern "C" void exit (int);' \
2215 cat >conftest.$ac_ext <<_ACEOF
2218 cat confdefs.h >>conftest.$ac_ext
2219 cat >>conftest.$ac_ext <<_ACEOF
2220 /* end confdefs.h. */
2231 rm -f conftest.$ac_objext
2232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2233 (eval $ac_compile) 2>conftest.er1
2235 grep -v '^ *+' conftest.er1 >conftest.err
2237 cat conftest.err >&5
2238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2239 (exit $ac_status); } &&
2240 { ac_try='test -z "$ac_c_werror_flag"
2241 || test ! -s conftest.err'
2242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2246 (exit $ac_status); }; } &&
2247 { ac_try='test -s conftest.$ac_objext'
2248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2252 (exit $ac_status); }; }; then
2255 echo "$as_me: failed program was:" >&5
2256 sed 's/^/| /' conftest.$ac_ext >&5
2260 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2261 cat >conftest.$ac_ext <<_ACEOF
2264 cat confdefs.h >>conftest.$ac_ext
2265 cat >>conftest.$ac_ext <<_ACEOF
2266 /* end confdefs.h. */
2276 rm -f conftest.$ac_objext
2277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2278 (eval $ac_compile) 2>conftest.er1
2280 grep -v '^ *+' conftest.er1 >conftest.err
2282 cat conftest.err >&5
2283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2284 (exit $ac_status); } &&
2285 { ac_try='test -z "$ac_c_werror_flag"
2286 || test ! -s conftest.err'
2287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2291 (exit $ac_status); }; } &&
2292 { ac_try='test -s conftest.$ac_objext'
2293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2297 (exit $ac_status); }; }; then
2300 echo "$as_me: failed program was:" >&5
2301 sed 's/^/| /' conftest.$ac_ext >&5
2304 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2307 if test -n "$ac_declaration"; then
2308 echo '#ifdef __cplusplus' >>confdefs.h
2309 echo $ac_declaration >>confdefs.h
2310 echo '#endif' >>confdefs.h
2314 echo "$as_me: failed program was:" >&5
2315 sed 's/^/| /' conftest.$ac_ext >&5
2318 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2320 ac_cpp='$CPP $CPPFLAGS'
2321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2325 # Find a good install program. We prefer a C program (faster),
2326 # so one script is as good as another. But avoid the broken or
2327 # incompatible versions:
2328 # SysV /etc/install, /usr/sbin/install
2329 # SunOS /usr/etc/install
2330 # IRIX /sbin/install
2332 # AmigaOS /C/install, which installs bootblocks on floppy discs
2333 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2334 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2335 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2336 # OS/2's system install, which has a completely different semantic
2337 # ./install, which can be erroneously created by make from ./install.sh.
2338 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2339 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2340 if test -z "$INSTALL"; then
2341 if test "${ac_cv_path_install+set}" = set; then
2342 echo $ECHO_N "(cached) $ECHO_C" >&6
2344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2348 test -z "$as_dir" && as_dir=.
2349 # Account for people who put trailing slashes in PATH elements.
2351 ./ | .// | /cC/* | \
2352 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2353 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2356 # OSF1 and SCO ODT 3.0 have their own names for install.
2357 # Don't use installbsd from OSF since it installs stuff as root
2359 for ac_prog in ginstall scoinst install; do
2360 for ac_exec_ext in '' $ac_executable_extensions; do
2361 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2362 if test $ac_prog = install &&
2363 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2364 # AIX install. It has an incompatible calling convention.
2366 elif test $ac_prog = install &&
2367 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2368 # program-specific install script used by HP pwplus--don't use.
2371 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2383 if test "${ac_cv_path_install+set}" = set; then
2384 INSTALL=$ac_cv_path_install
2386 # As a last resort, use the slow shell script. We don't cache a
2387 # path for INSTALL within a source directory, because that will
2388 # break other packages using the cache if that directory is
2389 # removed, or if the path is relative.
2390 INSTALL=$ac_install_sh
2393 echo "$as_me:$LINENO: result: $INSTALL" >&5
2394 echo "${ECHO_T}$INSTALL" >&6
2396 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2397 # It thinks the first close brace ends the variable substitution.
2398 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2400 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2402 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2405 ac_cpp='$CPP $CPPFLAGS'
2406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2409 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2410 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2411 # On Suns, sometimes $CPP names a directory.
2412 if test -n "$CPP" && test -d "$CPP"; then
2415 if test -z "$CPP"; then
2416 if test "${ac_cv_prog_CPP+set}" = set; then
2417 echo $ECHO_N "(cached) $ECHO_C" >&6
2419 # Double quotes because CPP needs to be expanded
2420 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2423 for ac_c_preproc_warn_flag in '' yes
2425 # Use a header file that comes with gcc, so configuring glibc
2426 # with a fresh cross-compiler works.
2427 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2428 # <limits.h> exists even on freestanding compilers.
2429 # On the NeXT, cc -E runs the code through the compiler's parser,
2430 # not just through cpp. "Syntax error" is here to catch this case.
2431 cat >conftest.$ac_ext <<_ACEOF
2434 cat confdefs.h >>conftest.$ac_ext
2435 cat >>conftest.$ac_ext <<_ACEOF
2436 /* end confdefs.h. */
2438 # include <limits.h>
2440 # include <assert.h>
2444 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2445 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2447 grep -v '^ *+' conftest.er1 >conftest.err
2449 cat conftest.err >&5
2450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2451 (exit $ac_status); } >/dev/null; then
2452 if test -s conftest.err; then
2453 ac_cpp_err=$ac_c_preproc_warn_flag
2454 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2461 if test -z "$ac_cpp_err"; then
2464 echo "$as_me: failed program was:" >&5
2465 sed 's/^/| /' conftest.$ac_ext >&5
2467 # Broken: fails on valid input.
2470 rm -f conftest.err conftest.$ac_ext
2472 # OK, works on sane cases. Now check whether non-existent headers
2473 # can be detected and how.
2474 cat >conftest.$ac_ext <<_ACEOF
2477 cat confdefs.h >>conftest.$ac_ext
2478 cat >>conftest.$ac_ext <<_ACEOF
2479 /* end confdefs.h. */
2480 #include <ac_nonexistent.h>
2482 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2483 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2485 grep -v '^ *+' conftest.er1 >conftest.err
2487 cat conftest.err >&5
2488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2489 (exit $ac_status); } >/dev/null; then
2490 if test -s conftest.err; then
2491 ac_cpp_err=$ac_c_preproc_warn_flag
2492 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2499 if test -z "$ac_cpp_err"; then
2500 # Broken: success on invalid input.
2503 echo "$as_me: failed program was:" >&5
2504 sed 's/^/| /' conftest.$ac_ext >&5
2506 # Passes both tests.
2510 rm -f conftest.err conftest.$ac_ext
2513 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2514 rm -f conftest.err conftest.$ac_ext
2515 if $ac_preproc_ok; then
2527 echo "$as_me:$LINENO: result: $CPP" >&5
2528 echo "${ECHO_T}$CPP" >&6
2530 for ac_c_preproc_warn_flag in '' yes
2532 # Use a header file that comes with gcc, so configuring glibc
2533 # with a fresh cross-compiler works.
2534 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2535 # <limits.h> exists even on freestanding compilers.
2536 # On the NeXT, cc -E runs the code through the compiler's parser,
2537 # not just through cpp. "Syntax error" is here to catch this case.
2538 cat >conftest.$ac_ext <<_ACEOF
2541 cat confdefs.h >>conftest.$ac_ext
2542 cat >>conftest.$ac_ext <<_ACEOF
2543 /* end confdefs.h. */
2545 # include <limits.h>
2547 # include <assert.h>
2551 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2552 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2554 grep -v '^ *+' conftest.er1 >conftest.err
2556 cat conftest.err >&5
2557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2558 (exit $ac_status); } >/dev/null; then
2559 if test -s conftest.err; then
2560 ac_cpp_err=$ac_c_preproc_warn_flag
2561 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2568 if test -z "$ac_cpp_err"; then
2571 echo "$as_me: failed program was:" >&5
2572 sed 's/^/| /' conftest.$ac_ext >&5
2574 # Broken: fails on valid input.
2577 rm -f conftest.err conftest.$ac_ext
2579 # OK, works on sane cases. Now check whether non-existent headers
2580 # can be detected and how.
2581 cat >conftest.$ac_ext <<_ACEOF
2584 cat confdefs.h >>conftest.$ac_ext
2585 cat >>conftest.$ac_ext <<_ACEOF
2586 /* end confdefs.h. */
2587 #include <ac_nonexistent.h>
2589 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2590 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2592 grep -v '^ *+' conftest.er1 >conftest.err
2594 cat conftest.err >&5
2595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2596 (exit $ac_status); } >/dev/null; then
2597 if test -s conftest.err; then
2598 ac_cpp_err=$ac_c_preproc_warn_flag
2599 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2606 if test -z "$ac_cpp_err"; then
2607 # Broken: success on invalid input.
2610 echo "$as_me: failed program was:" >&5
2611 sed 's/^/| /' conftest.$ac_ext >&5
2613 # Passes both tests.
2617 rm -f conftest.err conftest.$ac_ext
2620 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2621 rm -f conftest.err conftest.$ac_ext
2622 if $ac_preproc_ok; then
2625 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2626 See \`config.log' for more details." >&5
2627 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2628 See \`config.log' for more details." >&2;}
2629 { (exit 1); exit 1; }; }
2633 ac_cpp='$CPP $CPPFLAGS'
2634 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2635 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2636 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2639 if test "$GCC" = yes
2641 CFLAGS="${CFLAGS} ${PIPE}-Wmissing-prototypes -Wstrict-prototypes -Wcast-qual -Wpointer-arith -Wcast-align -Wwrite-strings -Wmissing-declarations -Wnested-externs -pedantic -fno-common"
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.58. 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.58,
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 .) ac_abs_builddir=$ac_builddir;;
5618 case $ac_builddir in
5619 .) ac_abs_builddir="$ac_dir";;
5620 [\\/]* | ?:[\\/]* ) ac_abs_builddir=$ac_builddir;;
5621 *) ac_abs_builddir="$ac_dir"/$ac_builddir;;
5625 .) ac_abs_top_builddir=${ac_top_builddir}.;;
5627 case ${ac_top_builddir}. in
5628 .) ac_abs_top_builddir="$ac_dir";;
5629 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
5630 *) ac_abs_top_builddir="$ac_dir"/${ac_top_builddir}.;;
5634 .) ac_abs_srcdir=$ac_srcdir;;
5637 .) ac_abs_srcdir="$ac_dir";;
5638 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
5639 *) ac_abs_srcdir="$ac_dir"/$ac_srcdir;;
5643 .) ac_abs_top_srcdir=$ac_top_srcdir;;
5645 case $ac_top_srcdir in
5646 .) ac_abs_top_srcdir="$ac_dir";;
5647 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
5648 *) ac_abs_top_srcdir="$ac_dir"/$ac_top_srcdir;;
5654 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5655 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
5658 if test x"$ac_file" != x-; then
5659 { echo "$as_me:$LINENO: creating $ac_file" >&5
5660 echo "$as_me: creating $ac_file" >&6;}
5663 # Let's still pretend it is `configure' which instantiates (i.e., don't
5664 # use $as_me), people would be surprised to read:
5665 # /* config.h. Generated by config.status. */
5666 if test x"$ac_file" = x-; then
5669 configure_input="$ac_file. "
5671 configure_input=$configure_input"Generated from `echo $ac_file_in |
5672 sed 's,.*/,,'` by configure."
5674 # First look for the input files in the build tree, otherwise in the
5676 ac_file_inputs=`IFS=:
5677 for f in $ac_file_in; do
5679 -) echo $tmp/stdin ;;
5681 # Absolute (can't be DOS-style, as IFS=:)
5682 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5683 echo "$as_me: error: cannot find input file: $f" >&2;}
5684 { (exit 1); exit 1; }; }
5687 if test -f "$f"; then
5690 elif test -f "$srcdir/$f"; then
5695 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5696 echo "$as_me: error: cannot find input file: $f" >&2;}
5697 { (exit 1); exit 1; }; }
5700 done` || { (exit 1); exit 1; }
5702 cat >>$CONFIG_STATUS <<_ACEOF
5706 cat >>$CONFIG_STATUS <<\_ACEOF
5708 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5709 s,@configure_input@,$configure_input,;t t
5710 s,@srcdir@,$ac_srcdir,;t t
5711 s,@abs_srcdir@,$ac_abs_srcdir,;t t
5712 s,@top_srcdir@,$ac_top_srcdir,;t t
5713 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
5714 s,@builddir@,$ac_builddir,;t t
5715 s,@abs_builddir@,$ac_abs_builddir,;t t
5716 s,@top_builddir@,$ac_top_builddir,;t t
5717 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
5718 s,@INSTALL@,$ac_INSTALL,;t t
5719 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5721 if test x"$ac_file" != x-; then
5722 mv $tmp/out $ac_file
5730 cat >>$CONFIG_STATUS <<\_ACEOF
5733 # CONFIG_HEADER section.
5736 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5737 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5739 # ac_d sets the value in "#define NAME VALUE" lines.
5740 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5741 ac_dB='[ ].*$,\1#\2'
5744 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5745 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5746 ac_uB='$,\1#\2define\3'
5750 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
5751 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5753 - | *:- | *:-:* ) # input from stdin
5755 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5756 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5757 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5758 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5759 * ) ac_file_in=$ac_file.in ;;
5762 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
5763 echo "$as_me: creating $ac_file" >&6;}
5765 # First look for the input files in the build tree, otherwise in the
5767 ac_file_inputs=`IFS=:
5768 for f in $ac_file_in; do
5770 -) echo $tmp/stdin ;;
5772 # Absolute (can't be DOS-style, as IFS=:)
5773 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5774 echo "$as_me: error: cannot find input file: $f" >&2;}
5775 { (exit 1); exit 1; }; }
5776 # Do quote $f, to prevent DOS paths from being IFS'd.
5779 if test -f "$f"; then
5782 elif test -f "$srcdir/$f"; then
5787 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5788 echo "$as_me: error: cannot find input file: $f" >&2;}
5789 { (exit 1); exit 1; }; }
5792 done` || { (exit 1); exit 1; }
5793 # Remove the trailing spaces.
5794 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
5798 # Transform confdefs.h into two sed scripts, `conftest.defines' and
5799 # `conftest.undefs', that substitutes the proper values into
5800 # config.h.in to produce config.h. The first handles `#define'
5801 # templates, and the second `#undef' templates.
5802 # And first: Protect against being on the right side of a sed subst in
5803 # config.status. Protect against being in an unquoted here document
5805 rm -f conftest.defines conftest.undefs
5806 # Using a here document instead of a string reduces the quoting nightmare.
5807 # Putting comments in sed scripts is not portable.
5809 # `end' is used to avoid that the second main sed command (meant for
5810 # 0-ary CPP macros) applies to n-ary macro definitions.
5811 # See the Autoconf documentation for `clear'.
5812 cat >confdef2sed.sed <<\_ACEOF
5817 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
5819 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
5822 # If some macros were called several times there might be several times
5823 # the same #defines, which is useless. Nevertheless, we may not want to
5824 # sort them, since we want the *last* AC-DEFINE to be honored.
5825 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
5826 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
5827 rm -f confdef2sed.sed
5829 # This sed command replaces #undef with comments. This is necessary, for
5830 # example, in the case of _POSIX_SOURCE, which is predefined and required
5831 # on some systems where configure will not decide to define it.
5832 cat >>conftest.undefs <<\_ACEOF
5833 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
5836 # Break up conftest.defines because some shells have a limit on the size
5837 # of here documents, and old seds have small limits too (100 cmds).
5838 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
5839 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
5840 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
5841 echo ' :' >>$CONFIG_STATUS
5843 while grep . conftest.defines >/dev/null
5845 # Write a limited-size here document to $tmp/defines.sed.
5846 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
5847 # Speed up: don't consider the non `#define' lines.
5848 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
5849 # Work around the forget-to-reset-the-flag bug.
5850 echo 't clr' >>$CONFIG_STATUS
5851 echo ': clr' >>$CONFIG_STATUS
5852 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
5854 sed -f $tmp/defines.sed $tmp/in >$tmp/out
5858 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
5859 rm -f conftest.defines
5860 mv conftest.tail conftest.defines
5862 rm -f conftest.defines
5863 echo ' fi # grep' >>$CONFIG_STATUS
5864 echo >>$CONFIG_STATUS
5866 # Break up conftest.undefs because some shells have a limit on the size
5867 # of here documents, and old seds have small limits too (100 cmds).
5868 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
5870 while grep . conftest.undefs >/dev/null
5872 # Write a limited-size here document to $tmp/undefs.sed.
5873 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
5874 # Speed up: don't consider the non `#undef'
5875 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
5876 # Work around the forget-to-reset-the-flag bug.
5877 echo 't clr' >>$CONFIG_STATUS
5878 echo ': clr' >>$CONFIG_STATUS
5879 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
5881 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
5885 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
5886 rm -f conftest.undefs
5887 mv conftest.tail conftest.undefs
5889 rm -f conftest.undefs
5891 cat >>$CONFIG_STATUS <<\_ACEOF
5892 # Let's still pretend it is `configure' which instantiates (i.e., don't
5893 # use $as_me), people would be surprised to read:
5894 # /* config.h. Generated by config.status. */
5895 if test x"$ac_file" = x-; then
5896 echo "/* Generated by configure. */" >$tmp/config.h
5898 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
5900 cat $tmp/in >>$tmp/config.h
5902 if test x"$ac_file" != x-; then
5903 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
5904 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
5905 echo "$as_me: $ac_file is unchanged" >&6;}
5907 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5908 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5909 X"$ac_file" : 'X\(//\)[^/]' \| \
5910 X"$ac_file" : 'X\(//\)$' \| \
5911 X"$ac_file" : 'X\(/\)' \| \
5912 . : '\(.\)' 2>/dev/null ||
5914 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5915 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5916 /^X\(\/\/\)$/{ s//\1/; q; }
5917 /^X\(\/\).*/{ s//\1/; q; }
5919 { if $as_mkdir_p; then
5924 while test ! -d "$as_dir"; do
5925 as_dirs="$as_dir $as_dirs"
5926 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5927 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5928 X"$as_dir" : 'X\(//\)[^/]' \| \
5929 X"$as_dir" : 'X\(//\)$' \| \
5930 X"$as_dir" : 'X\(/\)' \| \
5931 . : '\(.\)' 2>/dev/null ||
5933 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5934 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5935 /^X\(\/\/\)$/{ s//\1/; q; }
5936 /^X\(\/\).*/{ s//\1/; q; }
5939 test ! -n "$as_dirs" || mkdir $as_dirs
5940 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5941 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5942 { (exit 1); exit 1; }; }; }
5945 mv $tmp/config.h $ac_file
5954 cat >>$CONFIG_STATUS <<\_ACEOF
5956 { (exit 0); exit 0; }
5958 chmod +x $CONFIG_STATUS
5959 ac_clean_files=$ac_clean_files_save
5962 # configure is writing to config.log, and then calls config.status.
5963 # config.status does its own redirection, appending to config.log.
5964 # Unfortunately, on DOS this fails, as config.log is still kept open
5965 # by configure, so config.status won't be able to write to it; its
5966 # output is simply discarded. So we exec the FD to /dev/null,
5967 # effectively closing config.log, so it can be properly (re)opened and
5968 # appended to by config.status. When coming back to configure, we
5969 # need to make the FD available again.
5970 if test "$no_create" != yes; then
5972 ac_config_status_args=
5973 test "$silent" = yes &&
5974 ac_config_status_args="$ac_config_status_args --quiet"
5976 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5978 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5979 # would make configure fail if this is the last instruction.
5980 $ac_cs_success || { (exit 1); exit 1; }