2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59b.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002,
6 # 2003, 2004 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}${KSH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
24 BIN_SH
=xpg4
; export BIN_SH
# for Tru64
25 DUALCASE
=1; export DUALCASE
# for MKS sh
29 # Avoid depending upon Character Ranges.
30 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
31 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
33 as_cr_digits
='0123456789'
34 as_cr_alnum
=$as_cr_Letters$as_cr_digits
36 # The user is always right.
37 if test "${PATH_SEPARATOR+set}" != set; then
38 echo "#! /bin/sh" >conf$$.sh
39 echo "exit 0" >>conf$$.sh
41 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
49 # Support unset when possible.
50 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
57 # Find who we are. Look in the path if we contain no path at all
60 *[\\/]* ) as_myself
=$0 ;;
61 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
65 test -z "$as_dir" && as_dir
=.
66 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
71 # We did not find ourselves, most probably we were run as `sh COMMAND'
72 # in which case we are not to be found in the path.
73 if test "x$as_myself" = x
; then
76 if test ! -f "$as_myself"; then
77 { echo "$as_me: error: cannot find myself; rerun with an absolute file name" >&2
78 { (exit 1); exit 1; }; }
81 # Work around bugs in pre-3.0 UWIN ksh.
82 for as_var
in ENV MAIL MAILPATH
83 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
91 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
92 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
95 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
96 eval $as_var=C
; export $as_var
98 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
102 # Required to use basename.
103 if expr a
: '\(a\)' >/dev
/null
2>&1; then
109 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
116 # Name of the executable.
117 as_me
=`$as_basename "$0" ||
118 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
119 X"$0" : 'X\(//\)$' \| \
120 X"$0" : 'X\(/\)$' \| \
121 . : '\(.\)' 2>/dev/null ||
123 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
124 /^X\/\(\/\/\)$/{ s//\1/; q; }
125 /^X\/\(\/\).*/{ s//\1/; q; }
130 if test "x$CONFIG_SHELL" = x
; then
131 if (eval ":") 2>/dev
/null
; then
137 if test $as_have_required = yes && (eval ":
147 func_ret_success () {
150 func_ret_failure () {
155 if func_success; then
159 echo func_failure succeeded.
162 if func_failure; then
164 echo func_success failed.
167 if func_ret_success; then
171 echo func_ret_success failed.
174 if func_ret_failure; then
176 echo func_ret_failure succeeded.
179 test \$exitcode = 0) || { (exit 1); exit 1; }
184 as_lineno_3=\`(expr \$as_lineno_1 + 1) 2>/dev/null\`
185 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
186 test \"x\$as_lineno_3\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
187 ") 2> /dev
/null
; then
191 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
192 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
195 test -z "$as_dir" && as_dir
=.
198 for as_base
in sh bash ksh sh5
; do
199 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
205 for as_shell
in $as_candidate_shells $SHELL; do
206 if { $as_shell 2> /dev
/null
<<\_ASEOF
207 # Be Bourne compatible
208 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
211 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
212 # is contrary to our usage. Disable this feature.
213 alias -g '${1+"$@"}'='"$@"'
215 elif test -n "${BASH_VERSION+set}${KSH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
218 BIN_SH
=xpg4
; export BIN_SH
# for Tru64
219 DUALCASE
=1; export DUALCASE
# for MKS sh
224 CONFIG_SHELL
=$as_shell
226 if { $as_shell 2> /dev
/null
<<\_ASEOF
227 # Be Bourne compatible
228 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
231 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
232 # is contrary to our usage. Disable this feature.
233 alias -g '${1+"$@"}'='"$@"'
235 elif test -n "${BASH_VERSION+set}${KSH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
238 BIN_SH
=xpg4
; export BIN_SH
# for Tru64
239 DUALCASE
=1; export DUALCASE
# for MKS sh
251 func_ret_success
() {
254 func_ret_failure
() {
259 if func_success
; then
263 echo func_failure succeeded.
266 if func_failure
; then
268 echo func_success failed.
271 if func_ret_success
; then
275 echo func_ret_success failed.
278 if func_ret_failure
; then
280 echo func_ret_failure succeeded.
283 test $exitcode = 0) ||
{ (exit 1); exit 1; }
288 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
289 test "x$as_lineno_1" != "x$as_lineno_2" &&
290 test "x$as_lineno_3" = "x$as_lineno_2") ||
{ (exit 1); exit 1; }
301 if test "x$CONFIG_SHELL" != x
; then
302 for as_var
in BASH_ENV ENV
303 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
306 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
310 if test $as_have_required = no
; then
311 echo This
script requires a shell
more modern than all the
312 echo shells that I found on your system. Please
install a
313 echo modern shell
, or manually run the
script under such a
314 echo shell
if you
do have one.
315 { (exit 1); exit 1; }
325 (eval "func_return () {
334 func_ret_success () {
337 func_ret_failure () {
342 if func_success; then
346 echo func_failure succeeded.
349 if func_failure; then
351 echo func_success failed.
354 if func_ret_success; then
358 echo func_ret_success failed.
361 if func_ret_failure; then
363 echo func_ret_failure succeeded.
366 test \$exitcode = 0") ||
{
367 echo No shell found that supports shell functions.
368 echo Please tell autoconf@gnu.org about your system
,
369 echo including any error possibly output before this
377 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
378 test "x$as_lineno_1" != "x$as_lineno_2" &&
379 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
381 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
382 # uniformly replaced by the line number. The first 'sed' inserts a
383 # line-number line after each line using $LINENO; the second 'sed'
384 # does the real work. The second script uses 'N' to pair each
385 # line-number line with the line containing $LINENO, and appends
386 # trailing '-' during substitution so that $LINENO is not a special
388 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
389 # scripts with optimization help from Paolo Bonzini. Blame Lee
390 # E. McMahon (1931-1989) for sed's syntax. :-)
402 s,[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\),\2\1\2,
406 chmod +x
$as_me.lineno ||
407 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
408 { (exit 1); exit 1; }; }
410 # Don't try to exec as it changes $[0], causing all sort of problems
411 # (the dirname of $[0] is not the place where we might find the
412 # original and so on. Autoconf is especially sensible to this).
414 # Exit status is that of the last command.
419 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
420 *c
*,-n*) ECHO_N
= ECHO_C
='
422 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
423 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
426 if expr a
: '\(a\)' >/dev
/null
2>&1; then
432 rm -f conf$$ conf$$.exe conf$$.
file
434 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
435 # We could just check for DJGPP; but this test a) works b) is more generic
436 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
437 if test -f conf$$.exe
; then
438 # Don't use ln at all; we don't have any links
443 elif ln conf$$.
file conf$$
2>/dev
/null
; then
448 rm -f conf$$ conf$$.exe conf$$.
file
450 if mkdir
-p .
2>/dev
/null
; then
453 test -d .
/-p && rmdir .
/-p
457 as_executable_p
="test -f"
459 # Sed expression to map a string onto a valid CPP name.
460 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
462 # Sed expression to map a string onto a valid variable name.
463 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
467 # We need space, tab and new line, in precisely that order.
477 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
478 # so uname gets run too.
479 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
486 ac_default_prefix
=/usr
/local
487 ac_config_libobj_dir
=.
492 SHELL
=${CONFIG_SHELL-/bin/sh}
494 # Maximum number of lines to put in a shell here document.
495 # This variable seems obsolete. It should probably be removed, and
496 # only ac_max_sed_lines should be used.
497 : ${ac_max_here_lines=38}
499 # Identity of this package.
506 ac_unique_file
="src/roff/groff/groff.cpp"
507 # Factoring default headers for most tests.
508 ac_includes_default
="\
511 # include <sys/types.h>
514 # include <sys/stat.h>
525 # if !STDC_HEADERS && HAVE_MEMORY_H
531 # include <strings.h>
534 # include <inttypes.h>
543 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 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX TTYDEVDIRS OTHERDEVDIRS CPP X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS XDEVDIRS XPROGDIRS XLIBDIRS appresdir LPR LP LPQ PSPRINT DVIPRINT PERLPATH YACC RANLIB ac_ct_RANLIB INSTALL_INFO INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S SH_SCRIPT_SED_CMD GREP EGREP LIBC LIBM LIBOBJS BROKEN_SPOOLER_FLAGS PAGE g sys_tmac_prefix tmac_wrap GROFF_PATH_SEPARATOR ALT_GHOSTSCRIPT_PROGS GHOSTSCRIPT ac_ct_GHOSTSCRIPT pnmcut pnmcrop pnmtopng psselect pnmtops make_html make_install_html ALT_AWK_PROGS AWK ac_ct_AWK make_pdfdoc make_install_pdfdoc pnmtops_nosetpage LTLIBOBJS'
546 # Initialize some variables set by options.
548 ac_init_version
=false
549 # The variables have the same names as the options, with
550 # dashes changed to underlines.
558 program_transform_name
=s
,x
,x
,
566 # Installation directory options.
567 # These are left unexpanded so users can "make install exec_prefix=/foo"
568 # and all the variables that are supposed to be based on exec_prefix
569 # by default will actually change.
570 # Use braces instead of parens because sh, perl, etc. also accept them.
571 bindir
='${exec_prefix}/bin'
572 sbindir
='${exec_prefix}/sbin'
573 libexecdir
='${exec_prefix}/libexec'
574 datadir
='${prefix}/share'
575 sysconfdir
='${prefix}/etc'
576 sharedstatedir
='${prefix}/com'
577 localstatedir
='${prefix}/var'
578 libdir
='${exec_prefix}/lib'
579 includedir
='${prefix}/include'
580 oldincludedir
='/usr/include'
581 infodir
='${prefix}/info'
582 mandir
='${prefix}/man'
588 # If the previous option needs an argument, assign it.
589 if test -n "$ac_prev"; then
590 eval "$ac_prev=\$ac_option"
595 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
597 # Accept the important Cygnus configure options, so we can diagnose typos.
599 case $ac_dashdash$ac_option in
603 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
605 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
608 -build |
--build |
--buil |
--bui |
--bu)
609 ac_prev
=build_alias
;;
610 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
611 build_alias
=$ac_optarg ;;
613 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
614 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
615 ac_prev
=cache_file
;;
616 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
617 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
618 cache_file
=$ac_optarg ;;
621 cache_file
=config.cache
;;
623 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
625 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
627 datadir
=$ac_optarg ;;
629 -disable-* |
--disable-*)
630 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
631 # Reject names that are not valid shell variable names.
632 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
633 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
634 { (exit 1); exit 1; }; }
635 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
636 eval "enable_$ac_feature=no" ;;
638 -enable-* |
--enable-*)
639 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
640 # Reject names that are not valid shell variable names.
641 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
642 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
643 { (exit 1); exit 1; }; }
644 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
646 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
649 eval "enable_$ac_feature='$ac_optarg'" ;;
651 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
652 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
653 |
--exec |
--exe |
--ex)
654 ac_prev
=exec_prefix
;;
655 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
656 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
657 |
--exec=* |
--exe=* |
--ex=*)
658 exec_prefix
=$ac_optarg ;;
660 -gas |
--gas |
--ga |
--g)
661 # Obsolete; use --with-gas.
664 -help |
--help |
--hel |
--he |
-h)
666 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
667 ac_init_help
=recursive
;;
668 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
669 ac_init_help
=short
;;
671 -host |
--host |
--hos |
--ho)
672 ac_prev
=host_alias
;;
673 -host=* |
--host=* |
--hos=* |
--ho=*)
674 host_alias
=$ac_optarg ;;
676 -includedir |
--includedir |
--includedi |
--included |
--include \
677 |
--includ |
--inclu |
--incl |
--inc)
678 ac_prev
=includedir
;;
679 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
680 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
681 includedir
=$ac_optarg ;;
683 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
685 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
686 infodir
=$ac_optarg ;;
688 -libdir |
--libdir |
--libdi |
--libd)
690 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
693 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
694 |
--libexe |
--libex |
--libe)
695 ac_prev
=libexecdir
;;
696 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
697 |
--libexe=* |
--libex=* |
--libe=*)
698 libexecdir
=$ac_optarg ;;
700 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
701 |
--localstate |
--localstat |
--localsta |
--localst \
702 |
--locals |
--local |
--loca |
--loc |
--lo)
703 ac_prev
=localstatedir
;;
704 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
705 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
706 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
707 localstatedir
=$ac_optarg ;;
709 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
711 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
715 # Obsolete; use --without-fp.
718 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
719 |
--no-cr |
--no-c |
-n)
722 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
723 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
726 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
727 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
728 |
--oldin |
--oldi |
--old |
--ol |
--o)
729 ac_prev
=oldincludedir
;;
730 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
731 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
732 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
733 oldincludedir
=$ac_optarg ;;
735 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
737 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
740 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
741 |
--program-pre |
--program-pr |
--program-p)
742 ac_prev
=program_prefix
;;
743 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
744 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
745 program_prefix
=$ac_optarg ;;
747 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
748 |
--program-suf |
--program-su |
--program-s)
749 ac_prev
=program_suffix
;;
750 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
751 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
752 program_suffix
=$ac_optarg ;;
754 -program-transform-name |
--program-transform-name \
755 |
--program-transform-nam |
--program-transform-na \
756 |
--program-transform-n |
--program-transform- \
757 |
--program-transform |
--program-transfor \
758 |
--program-transfo |
--program-transf \
759 |
--program-trans |
--program-tran \
760 |
--progr-tra |
--program-tr |
--program-t)
761 ac_prev
=program_transform_name
;;
762 -program-transform-name=* |
--program-transform-name=* \
763 |
--program-transform-nam=* |
--program-transform-na=* \
764 |
--program-transform-n=* |
--program-transform-=* \
765 |
--program-transform=* |
--program-transfor=* \
766 |
--program-transfo=* |
--program-transf=* \
767 |
--program-trans=* |
--program-tran=* \
768 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
769 program_transform_name
=$ac_optarg ;;
771 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
772 |
-silent |
--silent |
--silen |
--sile |
--sil)
775 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
777 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
779 sbindir
=$ac_optarg ;;
781 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
782 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
783 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
785 ac_prev
=sharedstatedir
;;
786 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
787 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
788 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
790 sharedstatedir
=$ac_optarg ;;
792 -site |
--site |
--sit)
794 -site=* |
--site=* |
--sit=*)
797 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
799 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
802 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
803 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
804 ac_prev
=sysconfdir
;;
805 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
806 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
807 sysconfdir
=$ac_optarg ;;
809 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
810 ac_prev
=target_alias
;;
811 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
812 target_alias
=$ac_optarg ;;
814 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
817 -version |
--version |
--versio |
--versi |
--vers |
-V)
821 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
822 # Reject names that are not valid shell variable names.
823 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
824 { echo "$as_me: error: invalid package name: $ac_package" >&2
825 { (exit 1); exit 1; }; }
826 ac_package
=`echo $ac_package| sed 's/-/_/g'`
828 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
831 eval "with_$ac_package='$ac_optarg'" ;;
833 -without-* |
--without-*)
834 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
835 # Reject names that are not valid shell variable names.
836 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
837 { echo "$as_me: error: invalid package name: $ac_package" >&2
838 { (exit 1); exit 1; }; }
839 ac_package
=`echo $ac_package | sed 's/-/_/g'`
840 eval "with_$ac_package=no" ;;
843 # Obsolete; use --with-x.
846 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
847 |
--x-incl |
--x-inc |
--x-in |
--x-i)
848 ac_prev
=x_includes
;;
849 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
850 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
851 x_includes
=$ac_optarg ;;
853 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
854 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
855 ac_prev
=x_libraries
;;
856 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
857 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
858 x_libraries
=$ac_optarg ;;
860 -*) { echo "$as_me: error: unrecognized option: $ac_option
861 Try \`$0 --help' for more information." >&2
862 { (exit 1); exit 1; }; }
866 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
867 # Reject names that are not valid shell variable names.
868 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
869 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
870 { (exit 1); exit 1; }; }
871 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
872 eval "$ac_envvar='$ac_optarg'"
876 # FIXME: should be removed in autoconf 3.0.
877 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
878 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
879 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
880 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
886 if test -n "$ac_prev"; then
887 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
888 { echo "$as_me: error: missing argument to $ac_option" >&2
889 { (exit 1); exit 1; }; }
892 # Be sure to have absolute directory names.
893 for ac_var
in exec_prefix prefix
895 eval ac_val
=$
`echo $ac_var`
897 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
898 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
899 { (exit 1); exit 1; }; };;
903 # Be sure to have absolute directory names.
904 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
905 localstatedir libdir includedir oldincludedir infodir mandir
907 eval ac_val
=$
`echo $ac_var`
909 [\\/$
]* | ?
:[\\/]* ) ;;
910 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
911 { (exit 1); exit 1; }; };;
915 # There might be people who depend on the old broken behavior: `$host'
916 # used to hold the argument of --host etc.
917 # FIXME: To remove some day.
922 # FIXME: To remove some day.
923 if test "x$host_alias" != x
; then
924 if test "x$build_alias" = x
; then
925 cross_compiling
=maybe
926 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
927 If a cross compiler is detected then cross compile mode will be used." >&2
928 elif test "x$build_alias" != "x$host_alias"; then
934 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
936 test "$silent" = yes && exec 6>/dev
/null
939 # Find the source files, if location was not specified.
940 if test -z "$srcdir"; then
941 ac_srcdir_defaulted
=yes
942 # Try the directory containing this script, then its parent.
943 ac_confdir
=`(dirname "$0") 2>/dev/null ||
944 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
945 X"$0" : 'X\(//\)[^/]' \| \
946 X"$0" : 'X\(//\)$' \| \
947 X"$0" : 'X\(/\)' \| \
948 . : '\(.\)' 2>/dev/null ||
950 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
951 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
952 /^X\(\/\/\)$/{ s//\1/; q; }
953 /^X\(\/\).*/{ s//\1/; q; }
956 if test ! -r $srcdir/$ac_unique_file; then
960 ac_srcdir_defaulted
=no
962 if test ! -r $srcdir/$ac_unique_file; then
963 if test "$ac_srcdir_defaulted" = yes; then
964 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
965 { (exit 1); exit 1; }; }
967 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
968 { (exit 1); exit 1; }; }
971 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
972 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
973 { (exit 1); exit 1; }; }
974 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
975 ac_env_build_alias_set
=${build_alias+set}
976 ac_env_build_alias_value
=$build_alias
977 ac_cv_env_build_alias_set
=${build_alias+set}
978 ac_cv_env_build_alias_value
=$build_alias
979 ac_env_host_alias_set
=${host_alias+set}
980 ac_env_host_alias_value
=$host_alias
981 ac_cv_env_host_alias_set
=${host_alias+set}
982 ac_cv_env_host_alias_value
=$host_alias
983 ac_env_target_alias_set
=${target_alias+set}
984 ac_env_target_alias_value
=$target_alias
985 ac_cv_env_target_alias_set
=${target_alias+set}
986 ac_cv_env_target_alias_value
=$target_alias
987 ac_env_CC_set
=${CC+set}
989 ac_cv_env_CC_set
=${CC+set}
990 ac_cv_env_CC_value
=$CC
991 ac_env_CFLAGS_set
=${CFLAGS+set}
992 ac_env_CFLAGS_value
=$CFLAGS
993 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
994 ac_cv_env_CFLAGS_value
=$CFLAGS
995 ac_env_LDFLAGS_set
=${LDFLAGS+set}
996 ac_env_LDFLAGS_value
=$LDFLAGS
997 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
998 ac_cv_env_LDFLAGS_value
=$LDFLAGS
999 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
1000 ac_env_CPPFLAGS_value
=$CPPFLAGS
1001 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
1002 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
1003 ac_env_CXX_set
=${CXX+set}
1004 ac_env_CXX_value
=$CXX
1005 ac_cv_env_CXX_set
=${CXX+set}
1006 ac_cv_env_CXX_value
=$CXX
1007 ac_env_CXXFLAGS_set
=${CXXFLAGS+set}
1008 ac_env_CXXFLAGS_value
=$CXXFLAGS
1009 ac_cv_env_CXXFLAGS_set
=${CXXFLAGS+set}
1010 ac_cv_env_CXXFLAGS_value
=$CXXFLAGS
1011 ac_env_CPP_set
=${CPP+set}
1012 ac_env_CPP_value
=$CPP
1013 ac_cv_env_CPP_set
=${CPP+set}
1014 ac_cv_env_CPP_value
=$CPP
1017 # Report the --help message.
1019 if test "$ac_init_help" = "long"; then
1020 # Omit some internal or obsolete options to make the list less imposing.
1021 # This message is too long to be a string in the A/UX 3.1 sh.
1023 \`configure' configures this package to adapt to many kinds of systems.
1025 Usage: $0 [OPTION]... [VAR=VALUE]...
1027 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1028 VAR=VALUE. See below for descriptions of some of the useful variables.
1030 Defaults for the options are specified in brackets.
1033 -h, --help display this help and exit
1034 --help=short display options specific to this package
1035 --help=recursive display the short help of all the included packages
1036 -V, --version display version information and exit
1037 -q, --quiet, --silent do not print \`checking...' messages
1038 --cache-file=FILE cache test results in FILE [disabled]
1039 -C, --config-cache alias for \`--cache-file=config.cache'
1040 -n, --no-create do not create output files
1041 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1046 Installation directories:
1047 --prefix=PREFIX install architecture-independent files in PREFIX
1048 [$ac_default_prefix]
1049 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1052 By default, \`make install' will install all the files in
1053 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1054 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1055 for instance \`--prefix=\$HOME'.
1057 For better control, use the options below.
1059 Fine tuning of the installation directories:
1060 --bindir=DIR user executables [EPREFIX/bin]
1061 --sbindir=DIR system admin executables [EPREFIX/sbin]
1062 --libexecdir=DIR program executables [EPREFIX/libexec]
1063 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1064 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1065 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1066 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1067 --libdir=DIR object code libraries [EPREFIX/lib]
1068 --includedir=DIR C header files [PREFIX/include]
1069 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1070 --infodir=DIR info documentation [PREFIX/info]
1071 --mandir=DIR man documentation [PREFIX/man]
1077 --x-includes=DIR X include files are
in DIR
1078 --x-libraries=DIR X library files are
in DIR
1082 if test -n "$ac_init_help"; then
1087 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1088 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1089 --with-x use the X Window System
1090 --with-appresdir=DIR X11 application resource files
1091 --with-alt-gs=LIST alternative names
for ghostscript executable
1092 --with-gs=PROG actual
[/path
/]name of ghostscript executable
1093 --with-alt-awk=LIST alternative names
for awk executable
1094 --with-awk=PROG actual
[/path
/]name of
awk executable
1096 Some influential environment variables
:
1097 CC C compiler
command
1098 CFLAGS C compiler flags
1099 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1100 nonstandard directory
<lib dir
>
1101 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
1102 headers
in a nonstandard directory
<include dir
>
1103 CXX C
++ compiler
command
1104 CXXFLAGS C
++ compiler flags
1107 Use these variables to override the choices made by
`configure' or to help
1108 it to find libraries and programs with nonstandard names/locations.
1113 if test "$ac_init_help" = "recursive"; then
1114 # If there are subdirs, report their specific --help.
1116 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1117 test -d $ac_dir || continue
1120 if test "$ac_dir" != .; then
1121 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1122 # A "../" for each directory in $ac_dir_suffix.
1123 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
1125 ac_dir_suffix= ac_top_builddir=
1129 .) # No --srcdir option. We are building in place.
1131 if test -z "$ac_top_builddir"; then
1134 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
1136 [\\/]* | ?:[\\/]* ) # Absolute name.
1137 ac_srcdir=$srcdir$ac_dir_suffix;
1138 ac_top_srcdir=$srcdir ;;
1140 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1141 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1144 # Do not use `cd foo
&& pwd` to compute absolute names, because
1145 # the directories may not exist.
1147 .) ac_abs_builddir="$ac_dir";;
1150 .) ac_abs_builddir=`pwd`;;
1151 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1152 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1155 case $ac_abs_builddir in
1156 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1158 case ${ac_top_builddir}. in
1159 .) ac_abs_top_builddir=$ac_abs_builddir;;
1160 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1161 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1164 case $ac_abs_builddir in
1165 .) ac_abs_srcdir=$ac_srcdir;;
1168 .) ac_abs_srcdir=$ac_abs_builddir;;
1169 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1170 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1173 case $ac_abs_builddir in
1174 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1176 case $ac_top_srcdir in
1177 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1178 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1179 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1184 # Check for guested configure; otherwise get Cygnus style configure.
1185 if test -f $ac_srcdir/configure.gnu; then
1187 $SHELL $ac_srcdir/configure.gnu --help=recursive
1188 elif test -f $ac_srcdir/configure; then
1190 $SHELL $ac_srcdir/configure --help=recursive
1191 elif test -f $ac_srcdir/configure.ac ||
1192 test -f $ac_srcdir/configure.in; then
1194 $ac_configure --help
1196 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1202 test -n "$ac_init_help" && exit 0
1203 if $ac_init_version; then
1206 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002,
1207 2003, 2004 Free Software Foundation, Inc.
1208 This configure script is free software; the Free Software Foundation
1209 gives unlimited permission to copy, distribute and modify it.
1215 This file contains any messages produced by compilers while
1216 running configure, to aid debugging if configure makes a mistake.
1218 It was created by $as_me, which was
1219 generated by GNU Autoconf 2.59b. Invocation command line was
1230 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1231 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1232 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1233 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1234 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1236 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1237 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1239 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1240 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1241 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1242 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1243 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1244 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1245 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1253 test -z "$as_dir" && as_dir=.
1254 echo "PATH: $as_dir"
1269 # Keep a trace of the command line.
1270 # Strip out --no-create and --no-recursion so they do not pile up.
1271 # Strip out --silent because we don't want to record it for future runs.
1272 # Also quote any args containing shell meta-characters.
1273 # Make two passes to allow for proper duplicate-argument suppression.
1278 ac_must_keep_next=false
1284 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1285 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1286 | -silent | --silent | --silen | --sile | --sil)
1288 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1289 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1292 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1294 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1295 if test $ac_must_keep_next = true; then
1296 ac_must_keep_next=false # Got value, back to normal.
1299 *=* | --config-cache | -C | -disable-* | --disable-* \
1300 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1301 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1302 | -with-* | --with-* | -without-* | --without-* | --x)
1303 case "$ac_configure_args0 " in
1304 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1307 -* ) ac_must_keep_next=true ;;
1310 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1311 # Get rid of the leading space.
1317 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1318 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1320 # When interrupted or exit'd, cleanup temporary files, and complete
1321 # config.log. We remove comments because anyway the quotes in there
1322 # would cause problems or look ugly.
1323 # WARNING: Be sure not to use single quotes in there, as some shells,
1324 # such as our DU 5.0 friend, will then `close
' the trap.
1325 trap 'exit_status
=$?
1326 # Save into config.log some information that might help in debugging.
1331 ## ---------------- ##
1332 ## Cache variables. ##
1333 ## ---------------- ##
1336 # The following way of writing the cache mishandles newlines in values,
1339 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1342 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1343 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1347 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1354 ## ----------------- ##
1355 ## Output variables. ##
1356 ## ----------------- ##
1359 for ac_var
in $ac_subst_vars
1361 eval ac_val
=$
`echo $ac_var`
1362 echo "$ac_var='"'"'$ac_val'"'"'"
1366 if test -n "$ac_subst_files"; then
1373 for ac_var
in $ac_subst_files
1375 eval ac_val
=$
`echo $ac_var`
1376 echo "$ac_var='"'"'$ac_val'"'"'"
1381 if test -s confdefs.h
; then
1388 sed "/^$/d" confdefs.h |
sort
1391 test "$ac_signal" != 0 &&
1392 echo "$as_me: caught signal $ac_signal"
1393 echo "$as_me: exit $exit_status"
1395 rm -f core
*.core
&&
1396 rm -f -r conftest
* confdefs
* conf$$
* $ac_clean_files &&
1399 for ac_signal in 1 2 13 15; do
1400 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1404 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1405 rm -f -r conftest* confdefs.h
1406 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1407 # NextStep 3.3 (patch 3) loses unless the first echo outputs at least 14 bytes.
1409 echo "$ac_space$ac_space$ac_space$ac_space$ac_space$ac_space$ac_space$ac_space$ac_space$ac_space$ac_space$ac_space$ac_space" >confdefs.h
1411 # Predefined preprocessor variables.
1413 cat >>confdefs.h <<_ACEOF
1414 #define PACKAGE_NAME "$PACKAGE_NAME"
1418 cat >>confdefs.h <<_ACEOF
1419 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1423 cat >>confdefs.h <<_ACEOF
1424 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1428 cat >>confdefs.h <<_ACEOF
1429 #define PACKAGE_STRING "$PACKAGE_STRING"
1433 cat >>confdefs.h <<_ACEOF
1434 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1438 # Let the site file select an alternate cache file if it wants to.
1439 # Prefer explicitly selected file to automatically selected ones.
1440 if test -z "$CONFIG_SITE"; then
1441 if test "x$prefix" != xNONE; then
1442 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1444 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1447 for ac_site_file in $CONFIG_SITE; do
1448 if test -r "$ac_site_file"; then
1449 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1450 echo "$as_me: loading site script $ac_site_file" >&6;}
1451 sed 's
/^
/|
/' "$ac_site_file" >&5
1456 if test -r "$cache_file"; then
1457 # Some versions of bash will fail to source /dev/null (special
1458 # files actually), so we avoid doing that.
1459 if test -f "$cache_file"; then
1460 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1461 echo "$as_me: loading cache $cache_file" >&6;}
1463 [\\/]* | ?:[\\/]* ) . $cache_file;;
1464 *) . ./$cache_file;;
1468 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1469 echo "$as_me: creating cache $cache_file" >&6;}
1473 # Check that the precious variables saved in the cache have kept the same
1475 ac_cache_corrupted=false
1476 for ac_var in `(set) 2>&1 |
1477 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1478 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1479 eval ac_new_set=\$ac_env_${ac_var}_set
1480 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1481 eval ac_new_val="\$ac_env_${ac_var}_value"
1482 case $ac_old_set,$ac_new_set in
1484 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1485 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1486 ac_cache_corrupted=: ;;
1488 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1489 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1490 ac_cache_corrupted=: ;;
1493 if test "x$ac_old_val" != "x$ac_new_val"; then
1494 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1495 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1496 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1497 echo "$as_me: former value: $ac_old_val" >&2;}
1498 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1499 echo "$as_me: current value: $ac_new_val" >&2;}
1500 ac_cache_corrupted=:
1503 # Pass precious variables to config.status.
1504 if test "$ac_new_set" = set; then
1506 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1507 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1508 *) ac_arg=$ac_var=$ac_new_val ;;
1510 case " $ac_configure_args " in
1511 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1512 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1516 if $ac_cache_corrupted; then
1517 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1518 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1519 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1520 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1521 { (exit 1); exit 1; }; }
1525 ac_cpp='$CPP $CPPFLAGS'
1526 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1527 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1528 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1550 ac_config_headers="$ac_config_headers src/include/config.h:src/include/config.hin"
1554 # checks for programs
1556 ac_cpp='$CPP $CPPFLAGS'
1557 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1558 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1559 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1560 if test -n "$ac_tool_prefix"; then
1561 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1562 set dummy ${ac_tool_prefix}gcc; 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.
1571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1575 test -z "$as_dir" && as_dir=.
1576 for ac_exec_ext in '' $ac_executable_extensions; do
1577 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1578 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1579 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1588 if test -n "$CC"; then
1589 echo "$as_me:$LINENO: result: $CC" >&5
1590 echo "${ECHO_T}$CC" >&6
1592 echo "$as_me:$LINENO: result: no" >&5
1593 echo "${ECHO_T}no" >&6
1597 if test -z "$ac_cv_prog_CC"; then
1599 # Extract the first word of "gcc", so it can be a program name with args.
1600 set dummy gcc; ac_word=$2
1601 echo "$as_me:$LINENO: checking for $ac_word" >&5
1602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1603 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1604 echo $ECHO_N "(cached) $ECHO_C" >&6
1606 if test -n "$ac_ct_CC"; then
1607 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1613 test -z "$as_dir" && as_dir=.
1614 for ac_exec_ext in '' $ac_executable_extensions; do
1615 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1616 ac_cv_prog_ac_ct_CC="gcc"
1617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1625 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1626 if test -n "$ac_ct_CC"; then
1627 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1628 echo "${ECHO_T}$ac_ct_CC" >&6
1630 echo "$as_me:$LINENO: result: no" >&5
1631 echo "${ECHO_T}no" >&6
1634 if test "x$ac_ct_CC" = x; then
1637 if test "$build" != "$host"; then
1638 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1639 whose name does not start with the host triplet. If you think this
1640 configuration is useful to you, please write to autoconf@gnu.org." >&5
1641 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1642 whose name does not start with the host triplet. If you think this
1643 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1651 if test -z "$CC"; then
1652 if test -n "$ac_tool_prefix"; then
1653 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1654 set dummy ${ac_tool_prefix}cc; ac_word=$2
1655 echo "$as_me:$LINENO: checking for $ac_word" >&5
1656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1657 if test "${ac_cv_prog_CC+set}" = set; then
1658 echo $ECHO_N "(cached) $ECHO_C" >&6
1660 if test -n "$CC"; then
1661 ac_cv_prog_CC="$CC" # Let the user override the test.
1663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1667 test -z "$as_dir" && as_dir=.
1668 for ac_exec_ext in '' $ac_executable_extensions; do
1669 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1670 ac_cv_prog_CC="${ac_tool_prefix}cc"
1671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1680 if test -n "$CC"; then
1681 echo "$as_me:$LINENO: result: $CC" >&5
1682 echo "${ECHO_T}$CC" >&6
1684 echo "$as_me:$LINENO: result: no" >&5
1685 echo "${ECHO_T}no" >&6
1689 if test -z "$ac_cv_prog_CC"; then
1691 # Extract the first word of "cc", so it can be a program name with args.
1692 set dummy cc; ac_word=$2
1693 echo "$as_me:$LINENO: checking for $ac_word" >&5
1694 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1695 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1696 echo $ECHO_N "(cached) $ECHO_C" >&6
1698 if test -n "$ac_ct_CC"; then
1699 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1705 test -z "$as_dir" && as_dir=.
1706 for ac_exec_ext in '' $ac_executable_extensions; do
1707 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1708 ac_cv_prog_ac_ct_CC="cc"
1709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1717 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1718 if test -n "$ac_ct_CC"; then
1719 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1720 echo "${ECHO_T}$ac_ct_CC" >&6
1722 echo "$as_me:$LINENO: result: no" >&5
1723 echo "${ECHO_T}no" >&6
1726 if test "x$ac_ct_CC" = x; then
1729 if test "$build" != "$host"; then
1730 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1731 whose name does not start with the host triplet. If you think this
1732 configuration is useful to you, please write to autoconf@gnu.org." >&5
1733 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1734 whose name does not start with the host triplet. If you think this
1735 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1744 if test -z "$CC"; then
1745 # Extract the first word of "cc", so it can be a program name with args.
1746 set dummy cc; ac_word=$2
1747 echo "$as_me:$LINENO: checking for $ac_word" >&5
1748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1749 if test "${ac_cv_prog_CC+set}" = set; then
1750 echo $ECHO_N "(cached) $ECHO_C" >&6
1752 if test -n "$CC"; then
1753 ac_cv_prog_CC="$CC" # Let the user override the test.
1756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1760 test -z "$as_dir" && as_dir=.
1761 for ac_exec_ext in '' $ac_executable_extensions; do
1762 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1763 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1764 ac_prog_rejected=yes
1768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1774 if test $ac_prog_rejected = yes; then
1775 # We found a bogon in the path, so make sure we never use it.
1776 set dummy $ac_cv_prog_CC
1778 if test $# != 0; then
1779 # We chose a different compiler from the bogus one.
1780 # However, it has the same basename, so the bogon will be chosen
1781 # first if we set CC to just the basename; use the full file name.
1783 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1789 if test -n "$CC"; then
1790 echo "$as_me:$LINENO: result: $CC" >&5
1791 echo "${ECHO_T}$CC" >&6
1793 echo "$as_me:$LINENO: result: no" >&5
1794 echo "${ECHO_T}no" >&6
1798 if test -z "$CC"; then
1799 if test -n "$ac_tool_prefix"; then
1802 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1803 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1804 echo "$as_me:$LINENO: checking for $ac_word" >&5
1805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1806 if test "${ac_cv_prog_CC+set}" = set; then
1807 echo $ECHO_N "(cached) $ECHO_C" >&6
1809 if test -n "$CC"; then
1810 ac_cv_prog_CC="$CC" # Let the user override the test.
1812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1816 test -z "$as_dir" && as_dir=.
1817 for ac_exec_ext in '' $ac_executable_extensions; do
1818 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1819 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1820 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1829 if test -n "$CC"; then
1830 echo "$as_me:$LINENO: result: $CC" >&5
1831 echo "${ECHO_T}$CC" >&6
1833 echo "$as_me:$LINENO: result: no" >&5
1834 echo "${ECHO_T}no" >&6
1837 test -n "$CC" && break
1840 if test -z "$CC"; then
1844 # Extract the first word of "$ac_prog", so it can be a program name with args.
1845 set dummy $ac_prog; ac_word=$2
1846 echo "$as_me:$LINENO: checking for $ac_word" >&5
1847 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1848 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1849 echo $ECHO_N "(cached) $ECHO_C" >&6
1851 if test -n "$ac_ct_CC"; then
1852 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1858 test -z "$as_dir" && as_dir=.
1859 for ac_exec_ext in '' $ac_executable_extensions; do
1860 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1861 ac_cv_prog_ac_ct_CC="$ac_prog"
1862 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1870 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1871 if test -n "$ac_ct_CC"; then
1872 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1873 echo "${ECHO_T}$ac_ct_CC" >&6
1875 echo "$as_me:$LINENO: result: no" >&5
1876 echo "${ECHO_T}no" >&6
1879 test -n "$ac_ct_CC" && break
1882 if test "x$ac_ct_CC" = x; then
1885 if test "$build" != "$host"; then
1886 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1887 whose name does not start with the host triplet. If you think this
1888 configuration is useful to you, please write to autoconf@gnu.org." >&5
1889 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1890 whose name does not start with the host triplet. If you think this
1891 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1900 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1901 See \`config.log' for more details.
" >&5
1902 echo "$as_me: error
: no acceptable C compiler found
in \
$PATH
1903 See \
`config.log' for more details." >&2;}
1904 { (exit 1); exit 1; }; }
1906 # Provide some information about the compiler.
1907 echo "$as_me:$LINENO:" \
1908 "checking for C compiler version" >&5
1909 ac_compiler=`set X
$ac_compile; echo $2`
1910 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1911 (eval $ac_compiler --version </dev/null >&5) 2>&5
1913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1914 (exit $ac_status); }
1915 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1916 (eval $ac_compiler -v </dev/null >&5) 2>&5
1918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1919 (exit $ac_status); }
1920 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1921 (eval $ac_compiler -V </dev/null >&5) 2>&5
1923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1924 (exit $ac_status); }
1926 cat >conftest.$ac_ext <<_ACEOF
1929 cat confdefs.h >>conftest.$ac_ext
1930 cat >>conftest.$ac_ext <<_ACEOF
1931 /* end confdefs.h. */
1941 ac_clean_files_save=$ac_clean_files
1942 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1943 # Try to create an executable without -o first, disregard a.out.
1944 # It will help us diagnose broken compilers, and finding out an intuition
1946 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1947 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1948 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
1950 # List of possible output files, starting from the most likely.
1951 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
1952 # only as a last resort. b.out is created by i960 compilers.
1953 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
1955 # The IRIX 6 linker writes into existing files which may not be
1956 # executable, retaining their permissions. Remove them first so a
1957 # subsequent execution test works.
1959 for ac_file in $ac_files
1962 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1963 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
1968 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1969 (eval $ac_link_default) 2>&5
1971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1972 (exit $ac_status); }; then
1973 # Be careful to initialize this variable, since it used to be cached.
1974 # Otherwise an old cache value of `no' led to
`EXEEXT = no' in a Makefile.
1976 for ac_file in $ac_files
1978 test -f "$ac_file" || continue
1980 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1983 # We found the default executable, but exeext='' is most
1987 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1988 # FIXME: I believe we export ac_cv_exeext for Libtool,
1989 # but it would be cool to find out if it's true. Does anybody
1990 # maintain Libtool? --akim.
1998 echo "$as_me: failed program was:" >&5
1999 sed 's/^/| /' conftest.$ac_ext >&5
2001 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2002 See \`config.log
' for more details." >&5
2003 echo "$as_me: error: C compiler cannot create executables
2004 See \`config.log' for more details.
" >&2;}
2005 { (exit 77); exit 77; }; }
2008 ac_exeext=$ac_cv_exeext
2009 echo "$as_me:$LINENO: result
: $ac_file" >&5
2010 echo "${ECHO_T}$ac_file" >&6
2012 # Check the compiler produces executables we can run. If not, either
2013 # the compiler is broken, or we cross compile.
2014 echo "$as_me:$LINENO: checking whether the C compiler works
" >&5
2015 echo $ECHO_N "checking whether the C compiler works...
$ECHO_C" >&6
2016 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2017 # If not cross compiling, check that we can run a simple program.
2018 if test "$cross_compiling" != yes; then
2019 if { ac_try='./$ac_file'
2020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2023 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2024 (exit $ac_status); }; }; then
2027 if test "$cross_compiling" = maybe; then
2030 { { echo "$as_me:$LINENO: error
: cannot run C compiled programs.
2031 If you meant to cross compile
, use \
`--host'.
2032 See \`config.log
' for more details." >&5
2033 echo "$as_me: error: cannot run C compiled programs.
2034 If you meant to cross compile, use \`--host'.
2035 See \
`config.log' for more details." >&2;}
2036 { (exit 1); exit 1; }; }
2040 echo "$as_me:$LINENO: result: yes" >&5
2041 echo "${ECHO_T}yes" >&6
2043 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2044 ac_clean_files=$ac_clean_files_save
2045 # Check the compiler produces executables we can run. If not, either
2046 # the compiler is broken, or we cross compile.
2047 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2048 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2049 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2050 echo "${ECHO_T}$cross_compiling" >&6
2052 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2053 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2055 (eval $ac_link) 2>&5
2057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2058 (exit $ac_status); }; then
2059 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
2060 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
2061 # work properly (i.e., refer to `conftest.exe'), while it won't with
2063 for ac_file
in conftest.exe conftest conftest.
*; do
2064 test -f "$ac_file" ||
continue
2066 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
2067 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2074 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2075 See \`config.log' for more details." >&5
2076 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2077 See \`config.log' for more details." >&2;}
2078 { (exit 1); exit 1; }; }
2081 rm -f conftest
$ac_cv_exeext
2082 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2083 echo "${ECHO_T}$ac_cv_exeext" >&6
2085 rm -f conftest.
$ac_ext
2086 EXEEXT
=$ac_cv_exeext
2088 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2089 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2090 if test "${ac_cv_objext+set}" = set; then
2091 echo $ECHO_N "(cached) $ECHO_C" >&6
2093 cat >conftest.
$ac_ext <<_ACEOF
2096 cat confdefs.h
>>conftest.
$ac_ext
2097 cat >>conftest.
$ac_ext <<_ACEOF
2098 /* end confdefs.h. */
2108 rm -f conftest.o conftest.obj
2109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2110 (eval $ac_compile) 2>&5
2112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2113 (exit $ac_status); }; then
2114 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2116 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
2117 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2122 echo "$as_me: failed program was:" >&5
2123 sed 's/^/| /' conftest.
$ac_ext >&5
2125 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2126 See \`config.log' for more details." >&5
2127 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2128 See \`config.log' for more details." >&2;}
2129 { (exit 1); exit 1; }; }
2132 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2134 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2135 echo "${ECHO_T}$ac_cv_objext" >&6
2136 OBJEXT
=$ac_cv_objext
2138 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2139 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2140 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2141 echo $ECHO_N "(cached) $ECHO_C" >&6
2143 cat >conftest.
$ac_ext <<_ACEOF
2146 cat confdefs.h
>>conftest.
$ac_ext
2147 cat >>conftest.
$ac_ext <<_ACEOF
2148 /* end confdefs.h. */
2161 rm -f conftest.
$ac_objext
2162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2163 (eval $ac_compile) 2>conftest.er1
2165 grep -v '^ *+' conftest.er1
>conftest.err
2167 cat conftest.err
>&5
2168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2169 (exit $ac_status); } &&
2170 { ac_try
='test -z "$ac_c_werror_flag"
2171 || test ! -s conftest.err'
2172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2176 (exit $ac_status); }; } &&
2177 { ac_try
='test -s conftest.$ac_objext'
2178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2182 (exit $ac_status); }; }; then
2185 echo "$as_me: failed program was:" >&5
2186 sed 's/^/| /' conftest.
$ac_ext >&5
2190 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2191 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2194 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2195 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2196 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2197 ac_test_CFLAGS
=${CFLAGS+set}
2198 ac_save_CFLAGS
=$CFLAGS
2199 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2200 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2201 if test "${ac_cv_prog_cc_g+set}" = set; then
2202 echo $ECHO_N "(cached) $ECHO_C" >&6
2204 ac_save_c_werror_flag
=$ac_c_werror_flag
2205 ac_c_werror_flag
=yes
2208 cat >conftest.
$ac_ext <<_ACEOF
2211 cat confdefs.h
>>conftest.
$ac_ext
2212 cat >>conftest.
$ac_ext <<_ACEOF
2213 /* end confdefs.h. */
2223 rm -f conftest.
$ac_objext
2224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2225 (eval $ac_compile) 2>conftest.er1
2227 grep -v '^ *+' conftest.er1
>conftest.err
2229 cat conftest.err
>&5
2230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2231 (exit $ac_status); } &&
2232 { ac_try
='test -z "$ac_c_werror_flag"
2233 || test ! -s conftest.err'
2234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2238 (exit $ac_status); }; } &&
2239 { ac_try
='test -s conftest.$ac_objext'
2240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2244 (exit $ac_status); }; }; then
2247 echo "$as_me: failed program was:" >&5
2248 sed 's/^/| /' conftest.
$ac_ext >&5
2251 cat >conftest.
$ac_ext <<_ACEOF
2254 cat confdefs.h
>>conftest.
$ac_ext
2255 cat >>conftest.
$ac_ext <<_ACEOF
2256 /* end confdefs.h. */
2266 rm -f conftest.
$ac_objext
2267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2268 (eval $ac_compile) 2>conftest.er1
2270 grep -v '^ *+' conftest.er1
>conftest.err
2272 cat conftest.err
>&5
2273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274 (exit $ac_status); } &&
2275 { ac_try
='test -z "$ac_c_werror_flag"
2276 || test ! -s conftest.err'
2277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2281 (exit $ac_status); }; } &&
2282 { ac_try
='test -s conftest.$ac_objext'
2283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2287 (exit $ac_status); }; }; then
2290 echo "$as_me: failed program was:" >&5
2291 sed 's/^/| /' conftest.
$ac_ext >&5
2293 ac_c_werror_flag
=$ac_save_c_werror_flag
2295 cat >conftest.
$ac_ext <<_ACEOF
2298 cat confdefs.h
>>conftest.
$ac_ext
2299 cat >>conftest.
$ac_ext <<_ACEOF
2300 /* end confdefs.h. */
2310 rm -f conftest.
$ac_objext
2311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2312 (eval $ac_compile) 2>conftest.er1
2314 grep -v '^ *+' conftest.er1
>conftest.err
2316 cat conftest.err
>&5
2317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2318 (exit $ac_status); } &&
2319 { ac_try
='test -z "$ac_c_werror_flag"
2320 || test ! -s conftest.err'
2321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325 (exit $ac_status); }; } &&
2326 { ac_try
='test -s conftest.$ac_objext'
2327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2331 (exit $ac_status); }; }; then
2334 echo "$as_me: failed program was:" >&5
2335 sed 's/^/| /' conftest.
$ac_ext >&5
2338 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2340 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2342 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2343 ac_c_werror_flag
=$ac_save_c_werror_flag
2345 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2346 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2347 if test "$ac_test_CFLAGS" = set; then
2348 CFLAGS
=$ac_save_CFLAGS
2349 elif test $ac_cv_prog_cc_g = yes; then
2350 if test "$GCC" = yes; then
2356 if test "$GCC" = yes; then
2362 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2363 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2364 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2365 echo $ECHO_N "(cached) $ECHO_C" >&6
2367 ac_cv_prog_cc_stdc
=no
2369 cat >conftest.
$ac_ext <<_ACEOF
2372 cat confdefs.h
>>conftest.
$ac_ext
2373 cat >>conftest.
$ac_ext <<_ACEOF
2374 /* end confdefs.h. */
2377 #include <sys/types.h>
2378 #include <sys/stat.h>
2379 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2380 struct buf { int x; };
2381 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2382 static char *e (p, i)
2388 static char *f (char * (*g) (char **, int), char **p, ...)
2393 s = g (p, va_arg (v,int));
2398 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2399 function prototypes and stuff, but not '\xHH' hex character constants.
2400 These don't provoke an error unfortunately, instead are silently treated
2401 as 'x'. The following induces an error, until -std is added to get
2402 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2403 array size at least. It's necessary to write '\x00'==0 to get something
2404 that's true only with -std. */
2405 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2407 int test (int i, double x);
2408 struct s1 {int (*f) (int a);};
2409 struct s2 {int (*f) (double a);};
2410 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2416 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2421 # Don't try gcc -ansi; that turns off useful extensions and
2422 # breaks some systems' header files.
2423 # AIX -qlanglvl=ansi
2424 # Ultrix, OSF/1, Tru64 -std
2425 # HP-UX 10.20 and later -Ae
2426 # HP-UX older versions -Aa -D_HPUX_SOURCE
2427 # SVR4 -Xc -D__EXTENSIONS__
2428 for ac_arg
in "" -qlanglvl=ansi
-std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2430 CC
="$ac_save_CC $ac_arg"
2431 rm -f conftest.
$ac_objext
2432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2433 (eval $ac_compile) 2>conftest.er1
2435 grep -v '^ *+' conftest.er1
>conftest.err
2437 cat conftest.err
>&5
2438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2439 (exit $ac_status); } &&
2440 { ac_try
='test -z "$ac_c_werror_flag"
2441 || test ! -s conftest.err'
2442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2446 (exit $ac_status); }; } &&
2447 { ac_try
='test -s conftest.$ac_objext'
2448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2452 (exit $ac_status); }; }; then
2453 ac_cv_prog_cc_stdc
=$ac_arg
2456 echo "$as_me: failed program was:" >&5
2457 sed 's/^/| /' conftest.
$ac_ext >&5
2460 rm -f conftest.err conftest.
$ac_objext
2462 rm -f conftest.
$ac_ext conftest.
$ac_objext
2467 case "x$ac_cv_prog_cc_stdc" in
2469 echo "$as_me:$LINENO: result: none needed" >&5
2470 echo "${ECHO_T}none needed" >&6 ;;
2472 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2473 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2474 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2477 # Some people use a C++ compiler to compile C. Since we use `exit',
2478 # in C++ we need to declare it. In case someone uses the same compiler
2479 # for both compiling C and C++ we need to have the C++ compiler decide
2480 # the declaration of exit, since it's the most demanding environment.
2481 cat >conftest.
$ac_ext <<_ACEOF
2486 rm -f conftest.
$ac_objext
2487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2488 (eval $ac_compile) 2>conftest.er1
2490 grep -v '^ *+' conftest.er1
>conftest.err
2492 cat conftest.err
>&5
2493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494 (exit $ac_status); } &&
2495 { ac_try
='test -z "$ac_c_werror_flag"
2496 || test ! -s conftest.err'
2497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2501 (exit $ac_status); }; } &&
2502 { ac_try
='test -s conftest.$ac_objext'
2503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2507 (exit $ac_status); }; }; then
2508 for ac_declaration
in \
2510 'extern "C" void std::exit (int) throw (); using std::exit;' \
2511 'extern "C" void std::exit (int); using std::exit;' \
2512 'extern "C" void exit (int) throw ();' \
2513 'extern "C" void exit (int);' \
2516 cat >conftest.
$ac_ext <<_ACEOF
2519 cat confdefs.h
>>conftest.
$ac_ext
2520 cat >>conftest.
$ac_ext <<_ACEOF
2521 /* end confdefs.h. */
2532 rm -f conftest.
$ac_objext
2533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2534 (eval $ac_compile) 2>conftest.er1
2536 grep -v '^ *+' conftest.er1
>conftest.err
2538 cat conftest.err
>&5
2539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2540 (exit $ac_status); } &&
2541 { ac_try
='test -z "$ac_c_werror_flag"
2542 || test ! -s conftest.err'
2543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2547 (exit $ac_status); }; } &&
2548 { ac_try
='test -s conftest.$ac_objext'
2549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553 (exit $ac_status); }; }; then
2556 echo "$as_me: failed program was:" >&5
2557 sed 's/^/| /' conftest.
$ac_ext >&5
2561 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2562 cat >conftest.
$ac_ext <<_ACEOF
2565 cat confdefs.h
>>conftest.
$ac_ext
2566 cat >>conftest.
$ac_ext <<_ACEOF
2567 /* end confdefs.h. */
2577 rm -f conftest.
$ac_objext
2578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2579 (eval $ac_compile) 2>conftest.er1
2581 grep -v '^ *+' conftest.er1
>conftest.err
2583 cat conftest.err
>&5
2584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585 (exit $ac_status); } &&
2586 { ac_try
='test -z "$ac_c_werror_flag"
2587 || test ! -s conftest.err'
2588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592 (exit $ac_status); }; } &&
2593 { ac_try
='test -s conftest.$ac_objext'
2594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2598 (exit $ac_status); }; }; then
2601 echo "$as_me: failed program was:" >&5
2602 sed 's/^/| /' conftest.
$ac_ext >&5
2605 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2608 if test -n "$ac_declaration"; then
2609 echo '#ifdef __cplusplus' >>confdefs.h
2610 echo $ac_declaration >>confdefs.h
2611 echo '#endif' >>confdefs.h
2615 echo "$as_me: failed program was:" >&5
2616 sed 's/^/| /' conftest.
$ac_ext >&5
2619 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2621 ac_cpp
='$CPP $CPPFLAGS'
2622 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2623 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2624 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2627 ac_cpp
='$CXXCPP $CPPFLAGS'
2628 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2629 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2630 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
2631 if test -n "$ac_tool_prefix"; then
2632 for ac_prog
in $CCC g
++ c
++ gpp aCC CC cxx cc
++ cl FCC KCC RCC xlC_r xlC
2634 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2635 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2636 echo "$as_me:$LINENO: checking for $ac_word" >&5
2637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2638 if test "${ac_cv_prog_CXX+set}" = set; then
2639 echo $ECHO_N "(cached) $ECHO_C" >&6
2641 if test -n "$CXX"; then
2642 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
2644 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2648 test -z "$as_dir" && as_dir
=.
2649 for ac_exec_ext
in '' $ac_executable_extensions; do
2650 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2651 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
2652 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2661 if test -n "$CXX"; then
2662 echo "$as_me:$LINENO: result: $CXX" >&5
2663 echo "${ECHO_T}$CXX" >&6
2665 echo "$as_me:$LINENO: result: no" >&5
2666 echo "${ECHO_T}no" >&6
2669 test -n "$CXX" && break
2672 if test -z "$CXX"; then
2674 for ac_prog
in $CCC g
++ c
++ gpp aCC CC cxx cc
++ cl FCC KCC RCC xlC_r xlC
2676 # Extract the first word of "$ac_prog", so it can be a program name with args.
2677 set dummy
$ac_prog; ac_word
=$2
2678 echo "$as_me:$LINENO: checking for $ac_word" >&5
2679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2680 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2681 echo $ECHO_N "(cached) $ECHO_C" >&6
2683 if test -n "$ac_ct_CXX"; then
2684 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
2686 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2690 test -z "$as_dir" && as_dir
=.
2691 for ac_exec_ext
in '' $ac_executable_extensions; do
2692 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2693 ac_cv_prog_ac_ct_CXX
="$ac_prog"
2694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2702 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
2703 if test -n "$ac_ct_CXX"; then
2704 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2705 echo "${ECHO_T}$ac_ct_CXX" >&6
2707 echo "$as_me:$LINENO: result: no" >&5
2708 echo "${ECHO_T}no" >&6
2711 test -n "$ac_ct_CXX" && break
2714 if test "x$ac_ct_CXX" = x
; then
2717 if test "$build" != "$host"; then
2718 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2719 whose name does not start with the host triplet. If you think this
2720 configuration is useful to you, please write to autoconf@gnu.org." >&5
2721 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2722 whose name does not start with the host triplet. If you think this
2723 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2730 # Provide some information about the compiler.
2731 echo "$as_me:$LINENO:" \
2732 "checking for C++ compiler version" >&5
2733 ac_compiler
=`set X $ac_compile; echo $2`
2734 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2735 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2738 (exit $ac_status); }
2739 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2740 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2743 (exit $ac_status); }
2744 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2745 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748 (exit $ac_status); }
2750 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2751 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2752 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2753 echo $ECHO_N "(cached) $ECHO_C" >&6
2755 cat >conftest.
$ac_ext <<_ACEOF
2758 cat confdefs.h
>>conftest.
$ac_ext
2759 cat >>conftest.
$ac_ext <<_ACEOF
2760 /* end confdefs.h. */
2773 rm -f conftest.
$ac_objext
2774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2775 (eval $ac_compile) 2>conftest.er1
2777 grep -v '^ *+' conftest.er1
>conftest.err
2779 cat conftest.err
>&5
2780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2781 (exit $ac_status); } &&
2782 { ac_try
='test -z "$ac_cxx_werror_flag"
2783 || test ! -s conftest.err'
2784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2788 (exit $ac_status); }; } &&
2789 { ac_try
='test -s conftest.$ac_objext'
2790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2794 (exit $ac_status); }; }; then
2797 echo "$as_me: failed program was:" >&5
2798 sed 's/^/| /' conftest.
$ac_ext >&5
2802 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2803 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
2806 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2807 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2808 GXX
=`test $ac_compiler_gnu = yes && echo yes`
2809 ac_test_CXXFLAGS
=${CXXFLAGS+set}
2810 ac_save_CXXFLAGS
=$CXXFLAGS
2811 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2812 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2813 if test "${ac_cv_prog_cxx_g+set}" = set; then
2814 echo $ECHO_N "(cached) $ECHO_C" >&6
2816 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
2817 ac_cxx_werror_flag
=yes
2820 cat >conftest.
$ac_ext <<_ACEOF
2823 cat confdefs.h
>>conftest.
$ac_ext
2824 cat >>conftest.
$ac_ext <<_ACEOF
2825 /* end confdefs.h. */
2835 rm -f conftest.
$ac_objext
2836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2837 (eval $ac_compile) 2>conftest.er1
2839 grep -v '^ *+' conftest.er1
>conftest.err
2841 cat conftest.err
>&5
2842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843 (exit $ac_status); } &&
2844 { ac_try
='test -z "$ac_cxx_werror_flag"
2845 || test ! -s conftest.err'
2846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850 (exit $ac_status); }; } &&
2851 { ac_try
='test -s conftest.$ac_objext'
2852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856 (exit $ac_status); }; }; then
2857 ac_cv_prog_cxx_g
=yes
2859 echo "$as_me: failed program was:" >&5
2860 sed 's/^/| /' conftest.
$ac_ext >&5
2863 cat >conftest.
$ac_ext <<_ACEOF
2866 cat confdefs.h
>>conftest.
$ac_ext
2867 cat >>conftest.
$ac_ext <<_ACEOF
2868 /* end confdefs.h. */
2878 rm -f conftest.
$ac_objext
2879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2880 (eval $ac_compile) 2>conftest.er1
2882 grep -v '^ *+' conftest.er1
>conftest.err
2884 cat conftest.err
>&5
2885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886 (exit $ac_status); } &&
2887 { ac_try
='test -z "$ac_cxx_werror_flag"
2888 || test ! -s conftest.err'
2889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893 (exit $ac_status); }; } &&
2894 { ac_try
='test -s conftest.$ac_objext'
2895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899 (exit $ac_status); }; }; then
2902 echo "$as_me: failed program was:" >&5
2903 sed 's/^/| /' conftest.
$ac_ext >&5
2905 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
2907 cat >conftest.
$ac_ext <<_ACEOF
2910 cat confdefs.h
>>conftest.
$ac_ext
2911 cat >>conftest.
$ac_ext <<_ACEOF
2912 /* end confdefs.h. */
2922 rm -f conftest.
$ac_objext
2923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2924 (eval $ac_compile) 2>conftest.er1
2926 grep -v '^ *+' conftest.er1
>conftest.err
2928 cat conftest.err
>&5
2929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930 (exit $ac_status); } &&
2931 { ac_try
='test -z "$ac_cxx_werror_flag"
2932 || test ! -s conftest.err'
2933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2937 (exit $ac_status); }; } &&
2938 { ac_try
='test -s conftest.$ac_objext'
2939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2943 (exit $ac_status); }; }; then
2944 ac_cv_prog_cxx_g
=yes
2946 echo "$as_me: failed program was:" >&5
2947 sed 's/^/| /' conftest.
$ac_ext >&5
2950 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2952 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2954 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2955 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
2957 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2958 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2959 if test "$ac_test_CXXFLAGS" = set; then
2960 CXXFLAGS
=$ac_save_CXXFLAGS
2961 elif test $ac_cv_prog_cxx_g = yes; then
2962 if test "$GXX" = yes; then
2968 if test "$GXX" = yes; then
2974 for ac_declaration
in \
2976 'extern "C" void std::exit (int) throw (); using std::exit;' \
2977 'extern "C" void std::exit (int); using std::exit;' \
2978 'extern "C" void exit (int) throw ();' \
2979 'extern "C" void exit (int);' \
2982 cat >conftest.
$ac_ext <<_ACEOF
2985 cat confdefs.h
>>conftest.
$ac_ext
2986 cat >>conftest.
$ac_ext <<_ACEOF
2987 /* end confdefs.h. */
2998 rm -f conftest.
$ac_objext
2999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3000 (eval $ac_compile) 2>conftest.er1
3002 grep -v '^ *+' conftest.er1
>conftest.err
3004 cat conftest.err
>&5
3005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3006 (exit $ac_status); } &&
3007 { ac_try
='test -z "$ac_cxx_werror_flag"
3008 || test ! -s conftest.err'
3009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013 (exit $ac_status); }; } &&
3014 { ac_try
='test -s conftest.$ac_objext'
3015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3019 (exit $ac_status); }; }; then
3022 echo "$as_me: failed program was:" >&5
3023 sed 's/^/| /' conftest.
$ac_ext >&5
3027 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3028 cat >conftest.
$ac_ext <<_ACEOF
3031 cat confdefs.h
>>conftest.
$ac_ext
3032 cat >>conftest.
$ac_ext <<_ACEOF
3033 /* end confdefs.h. */
3043 rm -f conftest.
$ac_objext
3044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3045 (eval $ac_compile) 2>conftest.er1
3047 grep -v '^ *+' conftest.er1
>conftest.err
3049 cat conftest.err
>&5
3050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051 (exit $ac_status); } &&
3052 { ac_try
='test -z "$ac_cxx_werror_flag"
3053 || test ! -s conftest.err'
3054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058 (exit $ac_status); }; } &&
3059 { ac_try
='test -s conftest.$ac_objext'
3060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3064 (exit $ac_status); }; }; then
3067 echo "$as_me: failed program was:" >&5
3068 sed 's/^/| /' conftest.
$ac_ext >&5
3071 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3074 if test -n "$ac_declaration"; then
3075 echo '#ifdef __cplusplus' >>confdefs.h
3076 echo $ac_declaration >>confdefs.h
3077 echo '#endif' >>confdefs.h
3081 ac_cpp
='$CPP $CPPFLAGS'
3082 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3083 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3084 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3089 ac_cpp
='$CXXCPP $CPPFLAGS'
3090 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3091 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3092 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
3094 if test "$cross_compiling" = no
; then
3095 echo "$as_me:$LINENO: checking that C++ compiler can compile simple program" >&5
3096 echo $ECHO_N "checking that C++ compiler can compile simple program... $ECHO_C" >&6
3098 if test "$cross_compiling" = yes; then
3101 cat >conftest.
$ac_ext <<_ACEOF
3105 cat confdefs.h
>>conftest.
$ac_ext
3106 cat >>conftest.
$ac_ext <<_ACEOF
3107 /* end confdefs.h. */
3117 rm -f conftest
$ac_exeext
3118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3119 (eval $ac_link) 2>&5
3121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3122 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3127 (exit $ac_status); }; }; then
3128 echo "$as_me:$LINENO: result: yes" >&5
3129 echo "${ECHO_T}yes" >&6
3131 echo "$as_me: program exited with status $ac_status" >&5
3132 echo "$as_me: failed program was:" >&5
3133 sed 's/^/| /' conftest.
$ac_ext >&5
3136 echo "$as_me:$LINENO: result: no" >&5
3137 echo "${ECHO_T}no" >&6
3138 { { echo "$as_me:$LINENO: error: a working C++ compiler is required" >&5
3139 echo "$as_me: error: a working C++ compiler is required" >&2;}
3140 { (exit 1); exit 1; }; }
3142 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3145 if test "$cross_compiling" = no
; then
3146 echo "$as_me:$LINENO: checking that C++ static constructors and destructors are called" >&5
3147 echo $ECHO_N "checking that C++ static constructors and destructors are called... $ECHO_C" >&6
3149 if test "$cross_compiling" = yes; then
3152 cat >conftest.
$ac_ext <<_ACEOF
3156 cat confdefs.h
>>conftest.
$ac_ext
3157 cat >>conftest.
$ac_ext <<_ACEOF
3158 /* end confdefs.h. */
3169 ~A() { if (i == 1) _exit(0); }
3182 rm -f conftest
$ac_exeext
3183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3184 (eval $ac_link) 2>&5
3186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3192 (exit $ac_status); }; }; then
3193 echo "$as_me:$LINENO: result: yes" >&5
3194 echo "${ECHO_T}yes" >&6
3196 echo "$as_me: program exited with status $ac_status" >&5
3197 echo "$as_me: failed program was:" >&5
3198 sed 's/^/| /' conftest.
$ac_ext >&5
3201 echo "$as_me:$LINENO: result: no" >&5
3202 echo "${ECHO_T}no" >&6
3203 { { echo "$as_me:$LINENO: error: a working C++ compiler is required" >&5
3204 echo "$as_me: error: a working C++ compiler is required" >&2;}
3205 { (exit 1); exit 1; }; }
3207 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3210 echo "$as_me:$LINENO: checking that header files support C++" >&5
3211 echo $ECHO_N "checking that header files support C++... $ECHO_C" >&6
3212 cat >conftest.
$ac_ext <<_ACEOF
3216 cat confdefs.h
>>conftest.
$ac_ext
3217 cat >>conftest.
$ac_ext <<_ACEOF
3218 /* end confdefs.h. */
3237 rm -f conftest.
$ac_objext conftest
$ac_exeext
3238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3239 (eval $ac_link) 2>conftest.er1
3241 grep -v '^ *+' conftest.er1
>conftest.err
3243 cat conftest.err
>&5
3244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3245 (exit $ac_status); } &&
3246 { ac_try
='test -z "$ac_cxx_werror_flag"
3247 || test ! -s conftest.err'
3248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3252 (exit $ac_status); }; } &&
3253 { ac_try
='test -s conftest$ac_exeext'
3254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3258 (exit $ac_status); }; }; then
3259 echo "$as_me:$LINENO: result: yes" >&5
3260 echo "${ECHO_T}yes" >&6
3262 echo "$as_me: failed program was:" >&5
3263 sed 's/^/| /' conftest.
$ac_ext >&5
3265 echo "$as_me:$LINENO: result: no" >&5
3266 echo "${ECHO_T}no" >&6
3267 { { echo "$as_me:$LINENO: error: header files do not support C++
3268 (if you are using a version of gcc/g++ earlier than 2.5,
3269 you should install libg++)" >&5
3270 echo "$as_me: error: header files do not support C++
3271 (if you are using a version of gcc/g++ earlier than 2.5,
3272 you should install libg++)" >&2;}
3273 { (exit 1); exit 1; }; }
3275 rm -f conftest.err conftest.
$ac_objext \
3276 conftest
$ac_exeext conftest.
$ac_ext
3278 ac_cpp
='$CPP $CPPFLAGS'
3279 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3280 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3281 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3284 echo "$as_me:$LINENO: checking whether character set is EBCDIC" >&5
3285 echo $ECHO_N "checking whether character set is EBCDIC... $ECHO_C" >&6
3286 cat >conftest.
$ac_ext <<_ACEOF
3290 cat confdefs.h
>>conftest.
$ac_ext
3291 cat >>conftest.
$ac_ext <<_ACEOF
3292 /* end confdefs.h. */
3295 /* Treat any failure as ASCII for compatibility with existing art.
3296 Use compile-time rather than run-time tests for cross-compiler
3299 make an error "Character set is not EBCDIC"
3312 rm -f conftest.
$ac_objext
3313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3314 (eval $ac_compile) 2>conftest.er1
3316 grep -v '^ *+' conftest.er1
>conftest.err
3318 cat conftest.err
>&5
3319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320 (exit $ac_status); } &&
3321 { ac_try
='test -z "$ac_c_werror_flag"
3322 || test ! -s conftest.err'
3323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3327 (exit $ac_status); }; } &&
3328 { ac_try
='test -s conftest.$ac_objext'
3329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3333 (exit $ac_status); }; }; then
3334 groff_cv_ebcdic
="yes"
3335 TTYDEVDIRS
="font/devcp1047"
3336 echo "$as_me:$LINENO: result: yes" >&5
3337 echo "${ECHO_T}yes" >&6
3339 cat >>confdefs.h
<<\_ACEOF
3340 #define IS_EBCDIC_HOST 1
3344 echo "$as_me: failed program was:" >&5
3345 sed 's/^/| /' conftest.
$ac_ext >&5
3347 groff_cv_ebcdic
="no"
3348 TTYDEVDIRS
="font/devascii font/devlatin1"
3349 OTHERDEVDIRS
="font/devlj4 font/devlbp"
3350 echo "$as_me:$LINENO: result: no" >&5
3351 echo "${ECHO_T}no" >&6
3353 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3356 if test "$groff_cv_ebcdic" = "yes"; then
3357 echo "$as_me:$LINENO: checking for OS/390 Unix" >&5
3358 echo $ECHO_N "checking for OS/390 Unix... $ECHO_C" >&6
3361 CFLAGS
="$CFLAGS -D_ALL_SOURCE"
3362 echo "$as_me:$LINENO: result: yes" >&5
3363 echo "${ECHO_T}yes" >&6 ;;
3365 echo "$as_me:$LINENO: result: no" >&5
3366 echo "${ECHO_T}no" >&6 ;;
3370 ac_cpp
='$CPP $CPPFLAGS'
3371 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3372 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3373 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3374 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3375 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3376 # On Suns, sometimes $CPP names a directory.
3377 if test -n "$CPP" && test -d "$CPP"; then
3380 if test -z "$CPP"; then
3381 if test "${ac_cv_prog_CPP+set}" = set; then
3382 echo $ECHO_N "(cached) $ECHO_C" >&6
3384 # Double quotes because CPP needs to be expanded
3385 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3388 for ac_c_preproc_warn_flag
in '' yes
3390 # Use a header file that comes with gcc, so configuring glibc
3391 # with a fresh cross-compiler works.
3392 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3393 # <limits.h> exists even on freestanding compilers.
3394 # On the NeXT, cc -E runs the code through the compiler's parser,
3395 # not just through cpp. "Syntax error" is here to catch this case.
3396 cat >conftest.
$ac_ext <<_ACEOF
3399 cat confdefs.h
>>conftest.
$ac_ext
3400 cat >>conftest.
$ac_ext <<_ACEOF
3401 /* end confdefs.h. */
3403 # include <limits.h>
3405 # include <assert.h>
3409 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3410 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3412 grep -v '^ *+' conftest.er1
>conftest.err
3414 cat conftest.err
>&5
3415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3416 (exit $ac_status); } >/dev
/null
; then
3417 if test -s conftest.err
; then
3418 ac_cpp_err
=$ac_c_preproc_warn_flag
3419 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3426 if test -z "$ac_cpp_err"; then
3429 echo "$as_me: failed program was:" >&5
3430 sed 's/^/| /' conftest.
$ac_ext >&5
3432 # Broken: fails on valid input.
3435 rm -f conftest.err conftest.
$ac_ext
3437 # OK, works on sane cases. Now check whether non-existent headers
3438 # can be detected and how.
3439 cat >conftest.
$ac_ext <<_ACEOF
3442 cat confdefs.h
>>conftest.
$ac_ext
3443 cat >>conftest.
$ac_ext <<_ACEOF
3444 /* end confdefs.h. */
3445 #include <ac_nonexistent.h>
3447 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3448 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3450 grep -v '^ *+' conftest.er1
>conftest.err
3452 cat conftest.err
>&5
3453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454 (exit $ac_status); } >/dev
/null
; then
3455 if test -s conftest.err
; then
3456 ac_cpp_err
=$ac_c_preproc_warn_flag
3457 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3464 if test -z "$ac_cpp_err"; then
3465 # Broken: success on invalid input.
3468 echo "$as_me: failed program was:" >&5
3469 sed 's/^/| /' conftest.
$ac_ext >&5
3471 # Passes both tests.
3475 rm -f conftest.err conftest.
$ac_ext
3478 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3479 rm -f conftest.err conftest.
$ac_ext
3480 if $ac_preproc_ok; then
3492 echo "$as_me:$LINENO: result: $CPP" >&5
3493 echo "${ECHO_T}$CPP" >&6
3495 for ac_c_preproc_warn_flag
in '' yes
3497 # Use a header file that comes with gcc, so configuring glibc
3498 # with a fresh cross-compiler works.
3499 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3500 # <limits.h> exists even on freestanding compilers.
3501 # On the NeXT, cc -E runs the code through the compiler's parser,
3502 # not just through cpp. "Syntax error" is here to catch this case.
3503 cat >conftest.
$ac_ext <<_ACEOF
3506 cat confdefs.h
>>conftest.
$ac_ext
3507 cat >>conftest.
$ac_ext <<_ACEOF
3508 /* end confdefs.h. */
3510 # include <limits.h>
3512 # include <assert.h>
3516 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3517 (eval $ac_cpp conftest.
$ac_ext) 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); } >/dev
/null
; then
3524 if test -s conftest.err
; then
3525 ac_cpp_err
=$ac_c_preproc_warn_flag
3526 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3533 if test -z "$ac_cpp_err"; then
3536 echo "$as_me: failed program was:" >&5
3537 sed 's/^/| /' conftest.
$ac_ext >&5
3539 # Broken: fails on valid input.
3542 rm -f conftest.err conftest.
$ac_ext
3544 # OK, works on sane cases. Now check whether non-existent headers
3545 # can be detected and how.
3546 cat >conftest.
$ac_ext <<_ACEOF
3549 cat confdefs.h
>>conftest.
$ac_ext
3550 cat >>conftest.
$ac_ext <<_ACEOF
3551 /* end confdefs.h. */
3552 #include <ac_nonexistent.h>
3554 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3555 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3557 grep -v '^ *+' conftest.er1
>conftest.err
3559 cat conftest.err
>&5
3560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3561 (exit $ac_status); } >/dev
/null
; then
3562 if test -s conftest.err
; then
3563 ac_cpp_err
=$ac_c_preproc_warn_flag
3564 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3571 if test -z "$ac_cpp_err"; then
3572 # Broken: success on invalid input.
3575 echo "$as_me: failed program was:" >&5
3576 sed 's/^/| /' conftest.
$ac_ext >&5
3578 # Passes both tests.
3582 rm -f conftest.err conftest.
$ac_ext
3585 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3586 rm -f conftest.err conftest.
$ac_ext
3587 if $ac_preproc_ok; then
3590 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3591 See \`config.log' for more details." >&5
3592 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3593 See \`config.log' for more details." >&2;}
3594 { (exit 1); exit 1; }; }
3598 ac_cpp
='$CPP $CPPFLAGS'
3599 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3600 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3601 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3604 echo "$as_me:$LINENO: checking for X" >&5
3605 echo $ECHO_N "checking for X... $ECHO_C" >&6
3608 # Check whether --with-x or --without-x was given.
3609 if test "${with_x+set}" = set; then
3613 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3614 if test "x$with_x" = xno
; then
3615 # The user explicitly disabled X.
3618 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
3619 # Both variables are already set.
3622 if test "${ac_cv_have_x+set}" = set; then
3623 echo $ECHO_N "(cached) $ECHO_C" >&6
3625 # One or both of the vars are not set, and there is no cached value.
3626 ac_x_includes
=no ac_x_libraries
=no
3627 rm -f -r conftest.dir
3628 if mkdir conftest.dir
; then
3630 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
3631 cat >Imakefile
<<'_ACEOF'
3633 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
3635 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
3636 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3637 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
3638 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3639 for ac_extension
in a so sl
; do
3640 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
3641 test -f $ac_im_libdir/libX11.
$ac_extension; then
3642 ac_im_usrlibdir
=$ac_im_libdir; break
3645 # Screen out bogus values from the imake configuration. They are
3646 # bogus both because they are the default anyway, and because
3647 # using them would break gcc on systems where it needs fixed includes.
3648 case $ac_im_incroot in
3650 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
3652 case $ac_im_usrlibdir in
3654 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
3658 rm -f -r conftest.dir
3661 # Standard set of common directories for X headers.
3662 # Check X11 before X11Rn because it is often a symlink to the current release.
3674 /usr/local/X11/include
3675 /usr/local/X11R6/include
3676 /usr/local/X11R5/include
3677 /usr/local/X11R4/include
3679 /usr/local/include/X11
3680 /usr/local/include/X11R6
3681 /usr/local/include/X11R5
3682 /usr/local/include/X11R4
3686 /usr/XFree86/include/X11
3690 /usr/unsupported/include
3692 /usr/local/x11r5/include
3693 /usr/lpp/Xamples/include
3695 /usr/openwin/include
3696 /usr/openwin/share/include'
3698 if test "$ac_x_includes" = no
; then
3699 # Guess where to find include files, by looking for Intrinsic.h.
3700 # First, try using that file with no special directory specified.
3701 cat >conftest.
$ac_ext <<_ACEOF
3704 cat confdefs.h
>>conftest.
$ac_ext
3705 cat >>conftest.
$ac_ext <<_ACEOF
3706 /* end confdefs.h. */
3707 #include <X11/Intrinsic.h>
3709 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3710 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3712 grep -v '^ *+' conftest.er1
>conftest.err
3714 cat conftest.err
>&5
3715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3716 (exit $ac_status); } >/dev
/null
; then
3717 if test -s conftest.err
; then
3718 ac_cpp_err
=$ac_c_preproc_warn_flag
3719 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3726 if test -z "$ac_cpp_err"; then
3727 # We can compile using X headers with no special include directory.
3730 echo "$as_me: failed program was:" >&5
3731 sed 's/^/| /' conftest.
$ac_ext >&5
3733 for ac_dir
in $ac_x_header_dirs; do
3734 if test -r "$ac_dir/X11/Intrinsic.h"; then
3735 ac_x_includes
=$ac_dir
3740 rm -f conftest.err conftest.
$ac_ext
3741 fi # $ac_x_includes = no
3743 if test "$ac_x_libraries" = no
; then
3744 # Check for the libraries.
3745 # See if we find them without any special options.
3746 # Don't add to $LIBS permanently.
3749 cat >conftest.
$ac_ext <<_ACEOF
3752 cat confdefs.h
>>conftest.
$ac_ext
3753 cat >>conftest.
$ac_ext <<_ACEOF
3754 /* end confdefs.h. */
3755 #include <X11/Intrinsic.h>
3764 rm -f conftest.
$ac_objext conftest
$ac_exeext
3765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3766 (eval $ac_link) 2>conftest.er1
3768 grep -v '^ *+' conftest.er1
>conftest.err
3770 cat conftest.err
>&5
3771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3772 (exit $ac_status); } &&
3773 { ac_try
='test -z "$ac_c_werror_flag"
3774 || test ! -s conftest.err'
3775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3779 (exit $ac_status); }; } &&
3780 { ac_try
='test -s conftest$ac_exeext'
3781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3785 (exit $ac_status); }; }; then
3787 # We can link X programs with no special library path.
3790 echo "$as_me: failed program was:" >&5
3791 sed 's/^/| /' conftest.
$ac_ext >&5
3794 for ac_dir
in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
3796 # Don't even attempt the hair of trying to link an X program!
3797 for ac_extension
in a so sl
; do
3798 if test -r $ac_dir/libXt.
$ac_extension; then
3799 ac_x_libraries
=$ac_dir
3805 rm -f conftest.err conftest.
$ac_objext \
3806 conftest
$ac_exeext conftest.
$ac_ext
3807 fi # $ac_x_libraries = no
3809 if test "$ac_x_includes" = no ||
test "$ac_x_libraries" = no
; then
3810 # Didn't find X anywhere. Cache the known absence of X.
3811 ac_cv_have_x
="have_x=no"
3813 # Record where we found X for the cache.
3814 ac_cv_have_x
="have_x=yes \
3815 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
3820 eval "$ac_cv_have_x"
3823 if test "$have_x" != yes; then
3824 echo "$as_me:$LINENO: result: $have_x" >&5
3825 echo "${ECHO_T}$have_x" >&6
3828 # If each of the values was on the command line, it overrides each guess.
3829 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
3830 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
3831 # Update the cache value to reflect the command line values.
3832 ac_cv_have_x
="have_x=yes \
3833 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
3834 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
3835 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
3838 if test "$no_x" = yes; then
3839 # Not all programs may use this symbol, but it does not hurt to define it.
3841 cat >>confdefs.h
<<\_ACEOF
3842 #define X_DISPLAY_MISSING 1
3845 X_CFLAGS
= X_PRE_LIBS
= X_LIBS
= X_EXTRA_LIBS
=
3847 if test -n "$x_includes"; then
3848 X_CFLAGS
="$X_CFLAGS -I$x_includes"
3851 # It would also be nice to do this for all -L options, not just this one.
3852 if test -n "$x_libraries"; then
3853 X_LIBS
="$X_LIBS -L$x_libraries"
3854 # For Solaris; some versions of Sun CC require a space after -R and
3855 # others require no space. Words are not sufficient . . . .
3856 case `(uname -sr) 2>/dev/null` in
3858 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
3859 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
3860 ac_xsave_LIBS
=$LIBS; LIBS
="$LIBS -R$x_libraries"
3861 cat >conftest.
$ac_ext <<_ACEOF
3864 cat confdefs.h
>>conftest.
$ac_ext
3865 cat >>conftest.
$ac_ext <<_ACEOF
3866 /* end confdefs.h. */
3876 rm -f conftest.
$ac_objext conftest
$ac_exeext
3877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3878 (eval $ac_link) 2>conftest.er1
3880 grep -v '^ *+' conftest.er1
>conftest.err
3882 cat conftest.err
>&5
3883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3884 (exit $ac_status); } &&
3885 { ac_try
='test -z "$ac_c_werror_flag"
3886 || test ! -s conftest.err'
3887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3891 (exit $ac_status); }; } &&
3892 { ac_try
='test -s conftest$ac_exeext'
3893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3897 (exit $ac_status); }; }; then
3900 echo "$as_me: failed program was:" >&5
3901 sed 's/^/| /' conftest.
$ac_ext >&5
3905 rm -f conftest.err conftest.
$ac_objext \
3906 conftest
$ac_exeext conftest.
$ac_ext
3907 if test $ac_R_nospace = yes; then
3908 echo "$as_me:$LINENO: result: no" >&5
3909 echo "${ECHO_T}no" >&6
3910 X_LIBS
="$X_LIBS -R$x_libraries"
3912 LIBS
="$ac_xsave_LIBS -R $x_libraries"
3913 cat >conftest.
$ac_ext <<_ACEOF
3916 cat confdefs.h
>>conftest.
$ac_ext
3917 cat >>conftest.
$ac_ext <<_ACEOF
3918 /* end confdefs.h. */
3928 rm -f conftest.
$ac_objext conftest
$ac_exeext
3929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3930 (eval $ac_link) 2>conftest.er1
3932 grep -v '^ *+' conftest.er1
>conftest.err
3934 cat conftest.err
>&5
3935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3936 (exit $ac_status); } &&
3937 { ac_try
='test -z "$ac_c_werror_flag"
3938 || test ! -s conftest.err'
3939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3943 (exit $ac_status); }; } &&
3944 { ac_try
='test -s conftest$ac_exeext'
3945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3949 (exit $ac_status); }; }; then
3952 echo "$as_me: failed program was:" >&5
3953 sed 's/^/| /' conftest.
$ac_ext >&5
3957 rm -f conftest.err conftest.
$ac_objext \
3958 conftest
$ac_exeext conftest.
$ac_ext
3959 if test $ac_R_space = yes; then
3960 echo "$as_me:$LINENO: result: yes" >&5
3961 echo "${ECHO_T}yes" >&6
3962 X_LIBS
="$X_LIBS -R $x_libraries"
3964 echo "$as_me:$LINENO: result: neither works" >&5
3965 echo "${ECHO_T}neither works" >&6
3972 # Check for system-dependent libraries X programs must link with.
3973 # Do this before checking for the system-independent R6 libraries
3974 # (-lICE), since we may need -lsocket or whatever for X linking.
3976 if test "$ISC" = yes; then
3977 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl_s -linet"
3979 # Martyn Johnson says this is needed for Ultrix, if the X
3980 # libraries were built with DECnet support. And Karl Berry says
3981 # the Alpha needs dnet_stub (dnet does not exist).
3982 ac_xsave_LIBS
="$LIBS"; LIBS
="$LIBS $X_LIBS -lX11"
3983 cat >conftest.
$ac_ext <<_ACEOF
3986 cat confdefs.h
>>conftest.
$ac_ext
3987 cat >>conftest.
$ac_ext <<_ACEOF
3988 /* end confdefs.h. */
3990 /* Override any gcc2 internal prototype to avoid an error. */
3994 /* We use char because int might match the return type of a gcc2
3995 builtin and then its argument prototype would still apply. */
3996 char XOpenDisplay ();
4005 rm -f conftest.
$ac_objext conftest
$ac_exeext
4006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4007 (eval $ac_link) 2>conftest.er1
4009 grep -v '^ *+' conftest.er1
>conftest.err
4011 cat conftest.err
>&5
4012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4013 (exit $ac_status); } &&
4014 { ac_try
='test -z "$ac_c_werror_flag"
4015 || test ! -s conftest.err'
4016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4020 (exit $ac_status); }; } &&
4021 { ac_try
='test -s conftest$ac_exeext'
4022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4026 (exit $ac_status); }; }; then
4029 echo "$as_me: failed program was:" >&5
4030 sed 's/^/| /' conftest.
$ac_ext >&5
4032 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
4033 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
4034 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
4035 echo $ECHO_N "(cached) $ECHO_C" >&6
4037 ac_check_lib_save_LIBS
=$LIBS
4039 cat >conftest.
$ac_ext <<_ACEOF
4042 cat confdefs.h
>>conftest.
$ac_ext
4043 cat >>conftest.
$ac_ext <<_ACEOF
4044 /* end confdefs.h. */
4046 /* Override any gcc2 internal prototype to avoid an error. */
4050 /* We use char because int might match the return type of a gcc2
4051 builtin and then its argument prototype would still apply. */
4061 rm -f conftest.
$ac_objext conftest
$ac_exeext
4062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4063 (eval $ac_link) 2>conftest.er1
4065 grep -v '^ *+' conftest.er1
>conftest.err
4067 cat conftest.err
>&5
4068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4069 (exit $ac_status); } &&
4070 { ac_try
='test -z "$ac_c_werror_flag"
4071 || test ! -s conftest.err'
4072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076 (exit $ac_status); }; } &&
4077 { ac_try
='test -s conftest$ac_exeext'
4078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082 (exit $ac_status); }; }; then
4083 ac_cv_lib_dnet_dnet_ntoa
=yes
4085 echo "$as_me: failed program was:" >&5
4086 sed 's/^/| /' conftest.
$ac_ext >&5
4088 ac_cv_lib_dnet_dnet_ntoa
=no
4090 rm -f conftest.err conftest.
$ac_objext \
4091 conftest
$ac_exeext conftest.
$ac_ext
4092 LIBS
=$ac_check_lib_save_LIBS
4094 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
4095 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
4096 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
4097 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet"
4100 if test $ac_cv_lib_dnet_dnet_ntoa = no
; then
4101 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
4102 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
4103 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
4104 echo $ECHO_N "(cached) $ECHO_C" >&6
4106 ac_check_lib_save_LIBS
=$LIBS
4107 LIBS
="-ldnet_stub $LIBS"
4108 cat >conftest.
$ac_ext <<_ACEOF
4111 cat confdefs.h
>>conftest.
$ac_ext
4112 cat >>conftest.
$ac_ext <<_ACEOF
4113 /* end confdefs.h. */
4115 /* Override any gcc2 internal prototype to avoid an error. */
4119 /* We use char because int might match the return type of a gcc2
4120 builtin and then its argument prototype would still apply. */
4130 rm -f conftest.
$ac_objext conftest
$ac_exeext
4131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4132 (eval $ac_link) 2>conftest.er1
4134 grep -v '^ *+' conftest.er1
>conftest.err
4136 cat conftest.err
>&5
4137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4138 (exit $ac_status); } &&
4139 { ac_try
='test -z "$ac_c_werror_flag"
4140 || test ! -s conftest.err'
4141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4145 (exit $ac_status); }; } &&
4146 { ac_try
='test -s conftest$ac_exeext'
4147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4151 (exit $ac_status); }; }; then
4152 ac_cv_lib_dnet_stub_dnet_ntoa
=yes
4154 echo "$as_me: failed program was:" >&5
4155 sed 's/^/| /' conftest.
$ac_ext >&5
4157 ac_cv_lib_dnet_stub_dnet_ntoa
=no
4159 rm -f conftest.err conftest.
$ac_objext \
4160 conftest
$ac_exeext conftest.
$ac_ext
4161 LIBS
=$ac_check_lib_save_LIBS
4163 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
4164 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
4165 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
4166 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet_stub"
4171 rm -f conftest.err conftest.
$ac_objext \
4172 conftest
$ac_exeext conftest.
$ac_ext
4173 LIBS
="$ac_xsave_LIBS"
4175 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
4176 # to get the SysV transport functions.
4177 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
4179 # The nsl library prevents programs from opening the X display
4180 # on Irix 5.2, according to T.E. Dickey.
4181 # The functions gethostbyname, getservbyname, and inet_addr are
4182 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
4183 echo "$as_me:$LINENO: checking for gethostbyname" >&5
4184 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
4185 if test "${ac_cv_func_gethostbyname+set}" = set; then
4186 echo $ECHO_N "(cached) $ECHO_C" >&6
4188 cat >conftest.
$ac_ext <<_ACEOF
4191 cat confdefs.h
>>conftest.
$ac_ext
4192 cat >>conftest.
$ac_ext <<_ACEOF
4193 /* end confdefs.h. */
4194 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
4195 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4196 #define gethostbyname innocuous_gethostbyname
4198 /* System header to define __stub macros and hopefully few prototypes,
4199 which can conflict with char gethostbyname (); below.
4200 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4201 <limits.h> exists even on freestanding compilers. */
4204 # include <limits.h>
4206 # include <assert.h>
4209 #undef gethostbyname
4211 /* Override any gcc2 internal prototype to avoid an error. */
4216 /* We use char because int might match the return type of a gcc2
4217 builtin and then its argument prototype would still apply. */
4218 char gethostbyname ();
4219 /* The GNU C library defines this for functions which it implements
4220 to always fail with ENOSYS. Some functions are actually named
4221 something starting with __ and the normal name is an alias. */
4222 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
4225 char (*f) () = gethostbyname;
4234 return f != gethostbyname;
4239 rm -f conftest.
$ac_objext conftest
$ac_exeext
4240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4241 (eval $ac_link) 2>conftest.er1
4243 grep -v '^ *+' conftest.er1
>conftest.err
4245 cat conftest.err
>&5
4246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4247 (exit $ac_status); } &&
4248 { ac_try
='test -z "$ac_c_werror_flag"
4249 || test ! -s conftest.err'
4250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4254 (exit $ac_status); }; } &&
4255 { ac_try
='test -s conftest$ac_exeext'
4256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4260 (exit $ac_status); }; }; then
4261 ac_cv_func_gethostbyname
=yes
4263 echo "$as_me: failed program was:" >&5
4264 sed 's/^/| /' conftest.
$ac_ext >&5
4266 ac_cv_func_gethostbyname
=no
4268 rm -f conftest.err conftest.
$ac_objext \
4269 conftest
$ac_exeext conftest.
$ac_ext
4271 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
4272 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
4274 if test $ac_cv_func_gethostbyname = no
; then
4275 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4276 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4277 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4278 echo $ECHO_N "(cached) $ECHO_C" >&6
4280 ac_check_lib_save_LIBS
=$LIBS
4282 cat >conftest.
$ac_ext <<_ACEOF
4285 cat confdefs.h
>>conftest.
$ac_ext
4286 cat >>conftest.
$ac_ext <<_ACEOF
4287 /* end confdefs.h. */
4289 /* Override any gcc2 internal prototype to avoid an error. */
4293 /* We use char because int might match the return type of a gcc2
4294 builtin and then its argument prototype would still apply. */
4295 char gethostbyname ();
4304 rm -f conftest.
$ac_objext conftest
$ac_exeext
4305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4306 (eval $ac_link) 2>conftest.er1
4308 grep -v '^ *+' conftest.er1
>conftest.err
4310 cat conftest.err
>&5
4311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4312 (exit $ac_status); } &&
4313 { ac_try
='test -z "$ac_c_werror_flag"
4314 || test ! -s conftest.err'
4315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4319 (exit $ac_status); }; } &&
4320 { ac_try
='test -s conftest$ac_exeext'
4321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4325 (exit $ac_status); }; }; then
4326 ac_cv_lib_nsl_gethostbyname
=yes
4328 echo "$as_me: failed program was:" >&5
4329 sed 's/^/| /' conftest.
$ac_ext >&5
4331 ac_cv_lib_nsl_gethostbyname
=no
4333 rm -f conftest.err conftest.
$ac_objext \
4334 conftest
$ac_exeext conftest.
$ac_ext
4335 LIBS
=$ac_check_lib_save_LIBS
4337 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4338 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
4339 if test $ac_cv_lib_nsl_gethostbyname = yes; then
4340 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl"
4343 if test $ac_cv_lib_nsl_gethostbyname = no
; then
4344 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
4345 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
4346 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
4347 echo $ECHO_N "(cached) $ECHO_C" >&6
4349 ac_check_lib_save_LIBS
=$LIBS
4351 cat >conftest.
$ac_ext <<_ACEOF
4354 cat confdefs.h
>>conftest.
$ac_ext
4355 cat >>conftest.
$ac_ext <<_ACEOF
4356 /* end confdefs.h. */
4358 /* Override any gcc2 internal prototype to avoid an error. */
4362 /* We use char because int might match the return type of a gcc2
4363 builtin and then its argument prototype would still apply. */
4364 char gethostbyname ();
4373 rm -f conftest.
$ac_objext conftest
$ac_exeext
4374 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4375 (eval $ac_link) 2>conftest.er1
4377 grep -v '^ *+' conftest.er1
>conftest.err
4379 cat conftest.err
>&5
4380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4381 (exit $ac_status); } &&
4382 { ac_try
='test -z "$ac_c_werror_flag"
4383 || test ! -s conftest.err'
4384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4388 (exit $ac_status); }; } &&
4389 { ac_try
='test -s conftest$ac_exeext'
4390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4394 (exit $ac_status); }; }; then
4395 ac_cv_lib_bsd_gethostbyname
=yes
4397 echo "$as_me: failed program was:" >&5
4398 sed 's/^/| /' conftest.
$ac_ext >&5
4400 ac_cv_lib_bsd_gethostbyname
=no
4402 rm -f conftest.err conftest.
$ac_objext \
4403 conftest
$ac_exeext conftest.
$ac_ext
4404 LIBS
=$ac_check_lib_save_LIBS
4406 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
4407 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
4408 if test $ac_cv_lib_bsd_gethostbyname = yes; then
4409 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lbsd"
4415 # lieder@skyler.mavd.honeywell.com says without -lsocket,
4416 # socket/setsockopt and other routines are undefined under SCO ODT
4417 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
4418 # on later versions), says Simon Leinen: it contains gethostby*
4419 # variants that don't use the name server (or something). -lsocket
4420 # must be given before -lnsl if both are needed. We assume that
4421 # if connect needs -lnsl, so does gethostbyname.
4422 echo "$as_me:$LINENO: checking for connect" >&5
4423 echo $ECHO_N "checking for connect... $ECHO_C" >&6
4424 if test "${ac_cv_func_connect+set}" = set; then
4425 echo $ECHO_N "(cached) $ECHO_C" >&6
4427 cat >conftest.
$ac_ext <<_ACEOF
4430 cat confdefs.h
>>conftest.
$ac_ext
4431 cat >>conftest.
$ac_ext <<_ACEOF
4432 /* end confdefs.h. */
4433 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
4434 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4435 #define connect innocuous_connect
4437 /* System header to define __stub macros and hopefully few prototypes,
4438 which can conflict with char connect (); below.
4439 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4440 <limits.h> exists even on freestanding compilers. */
4443 # include <limits.h>
4445 # include <assert.h>
4450 /* Override any gcc2 internal prototype to avoid an error. */
4455 /* We use char because int might match the return type of a gcc2
4456 builtin and then its argument prototype would still apply. */
4458 /* The GNU C library defines this for functions which it implements
4459 to always fail with ENOSYS. Some functions are actually named
4460 something starting with __ and the normal name is an alias. */
4461 #if defined (__stub_connect) || defined (__stub___connect)
4464 char (*f) () = connect;
4473 return f != connect;
4478 rm -f conftest.
$ac_objext conftest
$ac_exeext
4479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4480 (eval $ac_link) 2>conftest.er1
4482 grep -v '^ *+' conftest.er1
>conftest.err
4484 cat conftest.err
>&5
4485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4486 (exit $ac_status); } &&
4487 { ac_try
='test -z "$ac_c_werror_flag"
4488 || test ! -s conftest.err'
4489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4493 (exit $ac_status); }; } &&
4494 { ac_try
='test -s conftest$ac_exeext'
4495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4499 (exit $ac_status); }; }; then
4500 ac_cv_func_connect
=yes
4502 echo "$as_me: failed program was:" >&5
4503 sed 's/^/| /' conftest.
$ac_ext >&5
4505 ac_cv_func_connect
=no
4507 rm -f conftest.err conftest.
$ac_objext \
4508 conftest
$ac_exeext conftest.
$ac_ext
4510 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
4511 echo "${ECHO_T}$ac_cv_func_connect" >&6
4513 if test $ac_cv_func_connect = no
; then
4514 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
4515 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
4516 if test "${ac_cv_lib_socket_connect+set}" = set; then
4517 echo $ECHO_N "(cached) $ECHO_C" >&6
4519 ac_check_lib_save_LIBS
=$LIBS
4520 LIBS
="-lsocket $X_EXTRA_LIBS $LIBS"
4521 cat >conftest.
$ac_ext <<_ACEOF
4524 cat confdefs.h
>>conftest.
$ac_ext
4525 cat >>conftest.
$ac_ext <<_ACEOF
4526 /* end confdefs.h. */
4528 /* Override any gcc2 internal prototype to avoid an error. */
4532 /* We use char because int might match the return type of a gcc2
4533 builtin and then its argument prototype would still apply. */
4543 rm -f conftest.
$ac_objext conftest
$ac_exeext
4544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4545 (eval $ac_link) 2>conftest.er1
4547 grep -v '^ *+' conftest.er1
>conftest.err
4549 cat conftest.err
>&5
4550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551 (exit $ac_status); } &&
4552 { ac_try
='test -z "$ac_c_werror_flag"
4553 || test ! -s conftest.err'
4554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4558 (exit $ac_status); }; } &&
4559 { ac_try
='test -s conftest$ac_exeext'
4560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4564 (exit $ac_status); }; }; then
4565 ac_cv_lib_socket_connect
=yes
4567 echo "$as_me: failed program was:" >&5
4568 sed 's/^/| /' conftest.
$ac_ext >&5
4570 ac_cv_lib_socket_connect
=no
4572 rm -f conftest.err conftest.
$ac_objext \
4573 conftest
$ac_exeext conftest.
$ac_ext
4574 LIBS
=$ac_check_lib_save_LIBS
4576 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
4577 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
4578 if test $ac_cv_lib_socket_connect = yes; then
4579 X_EXTRA_LIBS
="-lsocket $X_EXTRA_LIBS"
4584 # Guillermo Gomez says -lposix is necessary on A/UX.
4585 echo "$as_me:$LINENO: checking for remove" >&5
4586 echo $ECHO_N "checking for remove... $ECHO_C" >&6
4587 if test "${ac_cv_func_remove+set}" = set; then
4588 echo $ECHO_N "(cached) $ECHO_C" >&6
4590 cat >conftest.
$ac_ext <<_ACEOF
4593 cat confdefs.h
>>conftest.
$ac_ext
4594 cat >>conftest.
$ac_ext <<_ACEOF
4595 /* end confdefs.h. */
4596 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
4597 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4598 #define remove innocuous_remove
4600 /* System header to define __stub macros and hopefully few prototypes,
4601 which can conflict with char remove (); below.
4602 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4603 <limits.h> exists even on freestanding compilers. */
4606 # include <limits.h>
4608 # include <assert.h>
4613 /* Override any gcc2 internal prototype to avoid an error. */
4618 /* We use char because int might match the return type of a gcc2
4619 builtin and then its argument prototype would still apply. */
4621 /* The GNU C library defines this for functions which it implements
4622 to always fail with ENOSYS. Some functions are actually named
4623 something starting with __ and the normal name is an alias. */
4624 #if defined (__stub_remove) || defined (__stub___remove)
4627 char (*f) () = remove;
4641 rm -f conftest.
$ac_objext conftest
$ac_exeext
4642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4643 (eval $ac_link) 2>conftest.er1
4645 grep -v '^ *+' conftest.er1
>conftest.err
4647 cat conftest.err
>&5
4648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4649 (exit $ac_status); } &&
4650 { ac_try
='test -z "$ac_c_werror_flag"
4651 || test ! -s conftest.err'
4652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4656 (exit $ac_status); }; } &&
4657 { ac_try
='test -s conftest$ac_exeext'
4658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4662 (exit $ac_status); }; }; then
4663 ac_cv_func_remove
=yes
4665 echo "$as_me: failed program was:" >&5
4666 sed 's/^/| /' conftest.
$ac_ext >&5
4668 ac_cv_func_remove
=no
4670 rm -f conftest.err conftest.
$ac_objext \
4671 conftest
$ac_exeext conftest.
$ac_ext
4673 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
4674 echo "${ECHO_T}$ac_cv_func_remove" >&6
4676 if test $ac_cv_func_remove = no
; then
4677 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
4678 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
4679 if test "${ac_cv_lib_posix_remove+set}" = set; then
4680 echo $ECHO_N "(cached) $ECHO_C" >&6
4682 ac_check_lib_save_LIBS
=$LIBS
4683 LIBS
="-lposix $LIBS"
4684 cat >conftest.
$ac_ext <<_ACEOF
4687 cat confdefs.h
>>conftest.
$ac_ext
4688 cat >>conftest.
$ac_ext <<_ACEOF
4689 /* end confdefs.h. */
4691 /* Override any gcc2 internal prototype to avoid an error. */
4695 /* We use char because int might match the return type of a gcc2
4696 builtin and then its argument prototype would still apply. */
4706 rm -f conftest.
$ac_objext conftest
$ac_exeext
4707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4708 (eval $ac_link) 2>conftest.er1
4710 grep -v '^ *+' conftest.er1
>conftest.err
4712 cat conftest.err
>&5
4713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4714 (exit $ac_status); } &&
4715 { ac_try
='test -z "$ac_c_werror_flag"
4716 || test ! -s conftest.err'
4717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4721 (exit $ac_status); }; } &&
4722 { ac_try
='test -s conftest$ac_exeext'
4723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4727 (exit $ac_status); }; }; then
4728 ac_cv_lib_posix_remove
=yes
4730 echo "$as_me: failed program was:" >&5
4731 sed 's/^/| /' conftest.
$ac_ext >&5
4733 ac_cv_lib_posix_remove
=no
4735 rm -f conftest.err conftest.
$ac_objext \
4736 conftest
$ac_exeext conftest.
$ac_ext
4737 LIBS
=$ac_check_lib_save_LIBS
4739 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
4740 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
4741 if test $ac_cv_lib_posix_remove = yes; then
4742 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lposix"
4747 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4748 echo "$as_me:$LINENO: checking for shmat" >&5
4749 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
4750 if test "${ac_cv_func_shmat+set}" = set; then
4751 echo $ECHO_N "(cached) $ECHO_C" >&6
4753 cat >conftest.
$ac_ext <<_ACEOF
4756 cat confdefs.h
>>conftest.
$ac_ext
4757 cat >>conftest.
$ac_ext <<_ACEOF
4758 /* end confdefs.h. */
4759 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
4760 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4761 #define shmat innocuous_shmat
4763 /* System header to define __stub macros and hopefully few prototypes,
4764 which can conflict with char shmat (); below.
4765 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4766 <limits.h> exists even on freestanding compilers. */
4769 # include <limits.h>
4771 # include <assert.h>
4776 /* Override any gcc2 internal prototype to avoid an error. */
4781 /* We use char because int might match the return type of a gcc2
4782 builtin and then its argument prototype would still apply. */
4784 /* The GNU C library defines this for functions which it implements
4785 to always fail with ENOSYS. Some functions are actually named
4786 something starting with __ and the normal name is an alias. */
4787 #if defined (__stub_shmat) || defined (__stub___shmat)
4790 char (*f) () = shmat;
4804 rm -f conftest.
$ac_objext conftest
$ac_exeext
4805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4806 (eval $ac_link) 2>conftest.er1
4808 grep -v '^ *+' conftest.er1
>conftest.err
4810 cat conftest.err
>&5
4811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4812 (exit $ac_status); } &&
4813 { ac_try
='test -z "$ac_c_werror_flag"
4814 || test ! -s conftest.err'
4815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4819 (exit $ac_status); }; } &&
4820 { ac_try
='test -s conftest$ac_exeext'
4821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4825 (exit $ac_status); }; }; then
4826 ac_cv_func_shmat
=yes
4828 echo "$as_me: failed program was:" >&5
4829 sed 's/^/| /' conftest.
$ac_ext >&5
4833 rm -f conftest.err conftest.
$ac_objext \
4834 conftest
$ac_exeext conftest.
$ac_ext
4836 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
4837 echo "${ECHO_T}$ac_cv_func_shmat" >&6
4839 if test $ac_cv_func_shmat = no
; then
4840 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
4841 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
4842 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
4843 echo $ECHO_N "(cached) $ECHO_C" >&6
4845 ac_check_lib_save_LIBS
=$LIBS
4847 cat >conftest.
$ac_ext <<_ACEOF
4850 cat confdefs.h
>>conftest.
$ac_ext
4851 cat >>conftest.
$ac_ext <<_ACEOF
4852 /* end confdefs.h. */
4854 /* Override any gcc2 internal prototype to avoid an error. */
4858 /* We use char because int might match the return type of a gcc2
4859 builtin and then its argument prototype would still apply. */
4869 rm -f conftest.
$ac_objext conftest
$ac_exeext
4870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4871 (eval $ac_link) 2>conftest.er1
4873 grep -v '^ *+' conftest.er1
>conftest.err
4875 cat conftest.err
>&5
4876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4877 (exit $ac_status); } &&
4878 { ac_try
='test -z "$ac_c_werror_flag"
4879 || test ! -s conftest.err'
4880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4884 (exit $ac_status); }; } &&
4885 { ac_try
='test -s conftest$ac_exeext'
4886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4890 (exit $ac_status); }; }; then
4891 ac_cv_lib_ipc_shmat
=yes
4893 echo "$as_me: failed program was:" >&5
4894 sed 's/^/| /' conftest.
$ac_ext >&5
4896 ac_cv_lib_ipc_shmat
=no
4898 rm -f conftest.err conftest.
$ac_objext \
4899 conftest
$ac_exeext conftest.
$ac_ext
4900 LIBS
=$ac_check_lib_save_LIBS
4902 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
4903 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
4904 if test $ac_cv_lib_ipc_shmat = yes; then
4905 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lipc"
4911 # Check for libraries that X11R6 Xt/Xaw programs need.
4912 ac_save_LDFLAGS
=$LDFLAGS
4913 test -n "$x_libraries" && LDFLAGS
="$LDFLAGS -L$x_libraries"
4914 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4915 # check for ICE first), but we must link in the order -lSM -lICE or
4916 # we get undefined symbols. So assume we have SM if we have ICE.
4917 # These have to be linked with before -lX11, unlike the other
4918 # libraries we check for below, so use a different variable.
4919 # John Interrante, Karl Berry
4920 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
4921 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
4922 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
4923 echo $ECHO_N "(cached) $ECHO_C" >&6
4925 ac_check_lib_save_LIBS
=$LIBS
4926 LIBS
="-lICE $X_EXTRA_LIBS $LIBS"
4927 cat >conftest.
$ac_ext <<_ACEOF
4930 cat confdefs.h
>>conftest.
$ac_ext
4931 cat >>conftest.
$ac_ext <<_ACEOF
4932 /* end confdefs.h. */
4934 /* Override any gcc2 internal prototype to avoid an error. */
4938 /* We use char because int might match the return type of a gcc2
4939 builtin and then its argument prototype would still apply. */
4940 char IceConnectionNumber ();
4944 IceConnectionNumber ();
4949 rm -f conftest.
$ac_objext conftest
$ac_exeext
4950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4951 (eval $ac_link) 2>conftest.er1
4953 grep -v '^ *+' conftest.er1
>conftest.err
4955 cat conftest.err
>&5
4956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4957 (exit $ac_status); } &&
4958 { ac_try
='test -z "$ac_c_werror_flag"
4959 || test ! -s conftest.err'
4960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4964 (exit $ac_status); }; } &&
4965 { ac_try
='test -s conftest$ac_exeext'
4966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4970 (exit $ac_status); }; }; then
4971 ac_cv_lib_ICE_IceConnectionNumber
=yes
4973 echo "$as_me: failed program was:" >&5
4974 sed 's/^/| /' conftest.
$ac_ext >&5
4976 ac_cv_lib_ICE_IceConnectionNumber
=no
4978 rm -f conftest.err conftest.
$ac_objext \
4979 conftest
$ac_exeext conftest.
$ac_ext
4980 LIBS
=$ac_check_lib_save_LIBS
4982 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
4983 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
4984 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
4985 X_PRE_LIBS
="$X_PRE_LIBS -lSM -lICE"
4988 LDFLAGS
=$ac_save_LDFLAGS
4994 if test -z "$groff_no_x"; then
4998 CFLAGS
="$CFLAGS $X_CFLAGS"
4999 LDFLAGS
="$LDFLAGS $X_LIBS"
5000 LIBS
="$LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
5003 echo "$as_me:$LINENO: checking for Xaw library and header files" >&5
5004 echo $ECHO_N "checking for Xaw library and header files... $ECHO_C" >&6
5005 cat >conftest.
$ac_ext <<_ACEOF
5009 cat confdefs.h
>>conftest.
$ac_ext
5010 cat >>conftest.
$ac_ext <<_ACEOF
5011 /* end confdefs.h. */
5014 #include <X11/Intrinsic.h>
5015 #include <X11/Xaw/Simple.h>
5027 rm -f conftest.
$ac_objext conftest
$ac_exeext
5028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5029 (eval $ac_link) 2>conftest.er1
5031 grep -v '^ *+' conftest.er1
>conftest.err
5033 cat conftest.err
>&5
5034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5035 (exit $ac_status); } &&
5036 { ac_try
='test -z "$ac_c_werror_flag"
5037 || test ! -s conftest.err'
5038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5042 (exit $ac_status); }; } &&
5043 { ac_try
='test -s conftest$ac_exeext'
5044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5048 (exit $ac_status); }; }; then
5049 echo "$as_me:$LINENO: result: yes" >&5
5050 echo "${ECHO_T}yes" >&6
5052 echo "$as_me: failed program was:" >&5
5053 sed 's/^/| /' conftest.
$ac_ext >&5
5055 echo "$as_me:$LINENO: result: no" >&5
5056 echo "${ECHO_T}no" >&6
5059 rm -f conftest.err conftest.
$ac_objext \
5060 conftest
$ac_exeext conftest.
$ac_ext
5063 echo "$as_me:$LINENO: checking for Xmu library and header files" >&5
5064 echo $ECHO_N "checking for Xmu library and header files... $ECHO_C" >&6
5065 cat >conftest.
$ac_ext <<_ACEOF
5069 cat confdefs.h
>>conftest.
$ac_ext
5070 cat >>conftest.
$ac_ext <<_ACEOF
5071 /* end confdefs.h. */
5074 #include <X11/Intrinsic.h>
5075 #include <X11/Xmu/Converters.h>
5087 rm -f conftest.
$ac_objext conftest
$ac_exeext
5088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5089 (eval $ac_link) 2>conftest.er1
5091 grep -v '^ *+' conftest.er1
>conftest.err
5093 cat conftest.err
>&5
5094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5095 (exit $ac_status); } &&
5096 { ac_try
='test -z "$ac_c_werror_flag"
5097 || test ! -s conftest.err'
5098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5102 (exit $ac_status); }; } &&
5103 { ac_try
='test -s conftest$ac_exeext'
5104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108 (exit $ac_status); }; }; then
5109 echo "$as_me:$LINENO: result: yes" >&5
5110 echo "${ECHO_T}yes" >&6
5112 echo "$as_me: failed program was:" >&5
5113 sed 's/^/| /' conftest.
$ac_ext >&5
5115 echo "$as_me:$LINENO: result: no" >&5
5116 echo "${ECHO_T}no" >&6
5119 rm -f conftest.err conftest.
$ac_objext \
5120 conftest
$ac_exeext conftest.
$ac_ext
5127 if test "x$groff_no_x" = "xyes"; then
5128 { echo "$as_me:$LINENO: gxditview and xtotroff won't be built" >&5
5129 echo "$as_me: gxditview and xtotroff won't be built" >&6;}
5131 XDEVDIRS
="font/devX75 font/devX75-12 font/devX100 font/devX100-12"
5132 XPROGDIRS
="src/devices/xditview src/utils/xtotroff"
5133 XLIBDIRS
="src/libs/libxutil"
5140 # Check whether --with-appresdir or --without-appresdir was given.
5141 if test "${with_appresdir+set}" = set; then
5142 withval
="$with_appresdir"
5145 if test -z "$groff_no_x"; then
5146 # Create an Imakefile, run `xmkmf', then `make'.
5147 rm -f -r conftest.dir
5148 if mkdir conftest.dir
; then
5150 # Make sure to not put `make' in the Imakefile rules,
5151 # since we grep it out.
5152 cat >Imakefile
<<'EOF'
5155 @echo 'groff_x_usrlibdir="${USRLIBDIR}"; groff_x_libdir="${LIBDIR}"'
5158 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
5159 # GNU make sometimes prints "make[1]: Entering...",
5160 # which would confuse us.
5161 eval `${MAKE-make} xlibdirs 2>/dev/null | grep -v make`
5163 # Open Windows `xmkmf' reportedly sets LIBDIR instead of USRLIBDIR.
5164 for groff_extension
in a so sl
; do
5165 if test ! -f $groff_x_usrlibdir/libX11.
$groff_extension &&
5166 test -f $groff_x_libdir/libX11.
$groff_extension; then
5167 groff_x_usrlibdir
=$groff_x_libdir
5174 rm -f -r conftest.dir
5177 # In case the test with `xmkmf' wasn't successful, try a suite of
5178 # standard directories. Check `X11' before `X11Rn' because it is often
5179 # a symlink to the current release.
5192 /usr/local/X11R6/lib
5193 /usr/local/X11R5/lib
5194 /usr/local/X11R4/lib
5197 /usr/local/lib/X11R6
5198 /usr/local/lib/X11R5
5199 /usr/local/lib/X11R4
5203 /usr/XFree86/lib/X11
5207 /usr/unsupported/lib
5209 /usr/local/x11r5/lib
5210 /usr/lpp/Xamples/lib
5213 /usr/openwin/share/lib'
5215 if test -z "$groff_x_usrlibdir"; then
5216 # We only test whether libX11 exists.
5217 for groff_dir
in $groff_x_libdirs; do
5218 for groff_extension
in a so sl
; do
5219 if test ! -r $groff_dir/libX11.
$groff_extension; then
5220 groff_x_usrlibdir
=$groff_dir
5227 if test "x$with_appresdir" = "x"; then
5228 appresdir
=$groff_x_usrlibdir/X11
/app-defaults
5230 appresdir
=$with_appresdir
5234 if test -z "$PSPRINT"; then
5237 # Extract the first word of "$ac_prog", so it can be a program name with args.
5238 set dummy
$ac_prog; ac_word
=$2
5239 echo "$as_me:$LINENO: checking for $ac_word" >&5
5240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5241 if test "${ac_cv_prog_LPR+set}" = set; then
5242 echo $ECHO_N "(cached) $ECHO_C" >&6
5244 if test -n "$LPR"; then
5245 ac_cv_prog_LPR
="$LPR" # Let the user override the test.
5247 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5251 test -z "$as_dir" && as_dir
=.
5252 for ac_exec_ext
in '' $ac_executable_extensions; do
5253 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5254 ac_cv_prog_LPR
="$ac_prog"
5255 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5264 if test -n "$LPR"; then
5265 echo "$as_me:$LINENO: result: $LPR" >&5
5266 echo "${ECHO_T}$LPR" >&6
5268 echo "$as_me:$LINENO: result: no" >&5
5269 echo "${ECHO_T}no" >&6
5272 test -n "$LPR" && break
5277 # Extract the first word of "$ac_prog", so it can be a program name with args.
5278 set dummy
$ac_prog; ac_word
=$2
5279 echo "$as_me:$LINENO: checking for $ac_word" >&5
5280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5281 if test "${ac_cv_prog_LP+set}" = set; then
5282 echo $ECHO_N "(cached) $ECHO_C" >&6
5284 if test -n "$LP"; then
5285 ac_cv_prog_LP
="$LP" # Let the user override the test.
5287 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5291 test -z "$as_dir" && as_dir
=.
5292 for ac_exec_ext
in '' $ac_executable_extensions; do
5293 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5294 ac_cv_prog_LP
="$ac_prog"
5295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5304 if test -n "$LP"; then
5305 echo "$as_me:$LINENO: result: $LP" >&5
5306 echo "${ECHO_T}$LP" >&6
5308 echo "$as_me:$LINENO: result: no" >&5
5309 echo "${ECHO_T}no" >&6
5312 test -n "$LP" && break
5315 if test -n "$LPR" && test -n "$LP"; then
5316 # HP-UX provides an lpr command that emulates lpr using lp,
5317 # but it doesn't have lpq; in this case we want to use lp
5321 # Extract the first word of "$ac_prog", so it can be a program name with args.
5322 set dummy
$ac_prog; ac_word
=$2
5323 echo "$as_me:$LINENO: checking for $ac_word" >&5
5324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5325 if test "${ac_cv_prog_LPQ+set}" = set; then
5326 echo $ECHO_N "(cached) $ECHO_C" >&6
5328 if test -n "$LPQ"; then
5329 ac_cv_prog_LPQ
="$LPQ" # Let the user override the test.
5331 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5335 test -z "$as_dir" && as_dir
=.
5336 for ac_exec_ext
in '' $ac_executable_extensions; do
5337 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5338 ac_cv_prog_LPQ
="$ac_prog"
5339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5348 if test -n "$LPQ"; then
5349 echo "$as_me:$LINENO: result: $LPQ" >&5
5350 echo "${ECHO_T}$LPQ" >&6
5352 echo "$as_me:$LINENO: result: no" >&5
5353 echo "${ECHO_T}no" >&6
5356 test -n "$LPQ" && break
5359 test -n "$LPQ" || LPR
=
5361 if test -n "$LPR"; then
5363 elif test -n "$LP"; then
5368 echo "$as_me:$LINENO: checking for command to use for printing PostScript files" >&5
5369 echo $ECHO_N "checking for command to use for printing PostScript files... $ECHO_C" >&6
5370 echo "$as_me:$LINENO: result: $PSPRINT" >&5
5371 echo "${ECHO_T}$PSPRINT" >&6
5373 # Figure out DVIPRINT from PSPRINT.
5374 echo "$as_me:$LINENO: checking for command to use for printing dvi files" >&5
5375 echo $ECHO_N "checking for command to use for printing dvi files... $ECHO_C" >&6
5376 if test -n "$PSPRINT" && test -z "$DVIPRINT"; then
5377 if test "x$PSPRINT" = "xlpr"; then
5384 echo "$as_me:$LINENO: result: $DVIPRINT" >&5
5385 echo "${ECHO_T}$DVIPRINT" >&6
5386 # Extract the first word of "perl", so it can be a program name with args.
5387 set dummy perl
; ac_word
=$2
5388 echo "$as_me:$LINENO: checking for $ac_word" >&5
5389 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5390 if test "${ac_cv_path_PERLPATH+set}" = set; then
5391 echo $ECHO_N "(cached) $ECHO_C" >&6
5395 ac_cv_path_PERLPATH
="$PERLPATH" # Let the user override the test with a path.
5398 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5402 test -z "$as_dir" && as_dir
=.
5403 for ac_exec_ext
in '' $ac_executable_extensions; do
5404 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5405 ac_cv_path_PERLPATH
="$as_dir/$ac_word$ac_exec_ext"
5406 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5412 test -z "$ac_cv_path_PERLPATH" && ac_cv_path_PERLPATH
="/usr/bin/perl"
5416 PERLPATH
=$ac_cv_path_PERLPATH
5418 if test -n "$PERLPATH"; then
5419 echo "$as_me:$LINENO: result: $PERLPATH" >&5
5420 echo "${ECHO_T}$PERLPATH" >&6
5422 echo "$as_me:$LINENO: result: no" >&5
5423 echo "${ECHO_T}no" >&6
5426 for ac_prog
in byacc
'bison -y'
5428 # Extract the first word of "$ac_prog", so it can be a program name with args.
5429 set dummy
$ac_prog; ac_word
=$2
5430 echo "$as_me:$LINENO: checking for $ac_word" >&5
5431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5432 if test "${ac_cv_prog_YACC+set}" = set; then
5433 echo $ECHO_N "(cached) $ECHO_C" >&6
5435 if test -n "$YACC"; then
5436 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
5438 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5442 test -z "$as_dir" && as_dir
=.
5443 for ac_exec_ext
in '' $ac_executable_extensions; do
5444 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5445 ac_cv_prog_YACC
="$ac_prog"
5446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5454 YACC
=$ac_cv_prog_YACC
5455 if test -n "$YACC"; then
5456 echo "$as_me:$LINENO: result: $YACC" >&5
5457 echo "${ECHO_T}$YACC" >&6
5459 echo "$as_me:$LINENO: result: no" >&5
5460 echo "${ECHO_T}no" >&6
5463 test -n "$YACC" && break
5465 test -n "$YACC" || YACC
="yacc"
5467 if test -n "$ac_tool_prefix"; then
5468 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5469 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5470 echo "$as_me:$LINENO: checking for $ac_word" >&5
5471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5472 if test "${ac_cv_prog_RANLIB+set}" = set; then
5473 echo $ECHO_N "(cached) $ECHO_C" >&6
5475 if test -n "$RANLIB"; then
5476 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5478 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5482 test -z "$as_dir" && as_dir
=.
5483 for ac_exec_ext
in '' $ac_executable_extensions; do
5484 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5485 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5494 RANLIB
=$ac_cv_prog_RANLIB
5495 if test -n "$RANLIB"; then
5496 echo "$as_me:$LINENO: result: $RANLIB" >&5
5497 echo "${ECHO_T}$RANLIB" >&6
5499 echo "$as_me:$LINENO: result: no" >&5
5500 echo "${ECHO_T}no" >&6
5504 if test -z "$ac_cv_prog_RANLIB"; then
5505 ac_ct_RANLIB
=$RANLIB
5506 # Extract the first word of "ranlib", so it can be a program name with args.
5507 set dummy ranlib
; ac_word
=$2
5508 echo "$as_me:$LINENO: checking for $ac_word" >&5
5509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5510 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5511 echo $ECHO_N "(cached) $ECHO_C" >&6
5513 if test -n "$ac_ct_RANLIB"; then
5514 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5516 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5520 test -z "$as_dir" && as_dir
=.
5521 for ac_exec_ext
in '' $ac_executable_extensions; do
5522 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5523 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5524 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5532 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5533 if test -n "$ac_ct_RANLIB"; then
5534 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5535 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5537 echo "$as_me:$LINENO: result: no" >&5
5538 echo "${ECHO_T}no" >&6
5541 if test "x$ac_ct_RANLIB" = x
; then
5544 if test "$build" != "$host"; then
5545 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5546 whose name does not start with the host triplet. If you think this
5547 configuration is useful to you, please write to autoconf@gnu.org." >&5
5548 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5549 whose name does not start with the host triplet. If you think this
5550 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5552 RANLIB
=$ac_ct_RANLIB
5555 RANLIB
="$ac_cv_prog_RANLIB"
5559 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
5560 if test -f $ac_dir/install-sh
; then
5562 ac_install_sh
="$ac_aux_dir/install-sh -c"
5564 elif test -f $ac_dir/install.sh
; then
5566 ac_install_sh
="$ac_aux_dir/install.sh -c"
5568 elif test -f $ac_dir/shtool
; then
5570 ac_install_sh
="$ac_aux_dir/shtool install -c"
5574 if test -z "$ac_aux_dir"; then
5575 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
5576 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
5577 { (exit 1); exit 1; }; }
5579 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
5580 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
5581 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
5584 ac_dir
=`cd $ac_aux_dir; pwd`
5585 ac_install_sh
="$ac_dir/install-sh -c"
5586 for ac_prog
in install-info
5588 # Extract the first word of "$ac_prog", so it can be a program name with args.
5589 set dummy
$ac_prog; ac_word
=$2
5590 echo "$as_me:$LINENO: checking for $ac_word" >&5
5591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5592 if test "${ac_cv_prog_INSTALL_INFO+set}" = set; then
5593 echo $ECHO_N "(cached) $ECHO_C" >&6
5595 if test -n "$INSTALL_INFO"; then
5596 ac_cv_prog_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test.
5598 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5602 test -z "$as_dir" && as_dir
=.
5603 for ac_exec_ext
in '' $ac_executable_extensions; do
5604 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5605 ac_cv_prog_INSTALL_INFO
="$ac_prog"
5606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5614 INSTALL_INFO
=$ac_cv_prog_INSTALL_INFO
5615 if test -n "$INSTALL_INFO"; then
5616 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5617 echo "${ECHO_T}$INSTALL_INFO" >&6
5619 echo "$as_me:$LINENO: result: no" >&5
5620 echo "${ECHO_T}no" >&6
5623 test -n "$INSTALL_INFO" && break
5625 test -n "$INSTALL_INFO" || INSTALL_INFO
=":"
5627 # Find a good install program. We prefer a C program (faster),
5628 # so one script is as good as another. But avoid the broken or
5629 # incompatible versions:
5630 # SysV /etc/install, /usr/sbin/install
5631 # SunOS /usr/etc/install
5632 # IRIX /sbin/install
5634 # AmigaOS /C/install, which installs bootblocks on floppy discs
5635 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5636 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5637 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5638 # OS/2's system install, which has a completely different semantic
5639 # ./install, which can be erroneously created by make from ./install.sh.
5640 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5641 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5642 if test -z "$INSTALL"; then
5643 if test "${ac_cv_path_install+set}" = set; then
5644 echo $ECHO_N "(cached) $ECHO_C" >&6
5646 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5650 test -z "$as_dir" && as_dir
=.
5651 # Account for people who put trailing slashes in PATH elements.
5653 .
/ | .
// |
/cC
/* | \
5654 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
5655 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
5658 # OSF1 and SCO ODT 3.0 have their own names for install.
5659 # Don't use installbsd from OSF since it installs stuff as root
5661 for ac_prog
in ginstall scoinst
install; do
5662 for ac_exec_ext
in '' $ac_executable_extensions; do
5663 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5664 if test $ac_prog = install &&
5665 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5666 # AIX install. It has an incompatible calling convention.
5668 elif test $ac_prog = install &&
5669 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5670 # program-specific install script used by HP pwplus--don't use.
5673 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
5685 if test "${ac_cv_path_install+set}" = set; then
5686 INSTALL
=$ac_cv_path_install
5688 # As a last resort, use the slow shell script. Don't cache a
5689 # value for INSTALL within a source directory, because that will
5690 # break other packages using the cache if that directory is
5691 # removed, or if the value is a relative name.
5692 INSTALL
=$ac_install_sh
5695 echo "$as_me:$LINENO: result: $INSTALL" >&5
5696 echo "${ECHO_T}$INSTALL" >&6
5698 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5699 # It thinks the first close brace ends the variable substitution.
5700 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
5702 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
5704 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
5706 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5707 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5709 if test "$LN_S" = "ln -s"; then
5710 echo "$as_me:$LINENO: result: yes" >&5
5711 echo "${ECHO_T}yes" >&6
5713 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5714 echo "${ECHO_T}no, using $LN_S" >&6
5718 # use a dummy substitution if no csh hack is necessary to avoid errors
5719 # with non-GNU sed programs
5720 echo "$as_me:$LINENO: checking for csh hash hack" >&5
5721 echo $ECHO_N "checking for csh hash hack... $ECHO_C" >&6
5723 cat <<EOF >conftest.sh
5726 export PATH || exit 0
5730 chmod +x conftest.sh
5731 if echo .
/conftest.sh |
(csh
>/dev
/null
2>&1) >/dev
/null
2>&1; then
5732 echo "$as_me:$LINENO: result: yes" >&5
5733 echo "${ECHO_T}yes" >&6
5734 SH_SCRIPT_SED_CMD
='1s/.*/:/'
5736 echo "$as_me:$LINENO: result: no" >&5
5737 echo "${ECHO_T}no" >&6
5738 SH_SCRIPT_SED_CMD
='1s/a/a/'
5743 # checks for headers
5744 echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5745 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6
5746 if test "${ac_cv_path_GREP+set}" = set; then
5747 echo $ECHO_N "(cached) $ECHO_C" >&6
5749 # Extract the first word of "grep ggrep" to use in msg output
5750 if test -z "$GREP"; then
5751 set dummy
grep ggrep
; ac_prog_name
=$2
5752 if test "${ac_cv_path_GREP+set}" = set; then
5753 echo $ECHO_N "(cached) $ECHO_C" >&6
5755 # Create a temporary directory, and hook for its removal unless debugging.
5758 trap 'exit_status=$?; rm -f -r $tmp && exit $exit_status' 0
5759 trap '{ (exit 1); exit 1; }' 1 2 13 15
5762 # Create a (secure) tmp directory for tmp files.
5765 tmp
=`(umask 077 && mktemp -d -q "$TMPDIR/GREPXXXXXX") 2>/dev/null` &&
5766 test -n "$tmp" && test -d "$tmp"
5769 tmp
=$TMPDIR/GREP$$
-$RANDOM
5770 (umask 077 && mkdir
$tmp)
5773 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
5774 { (exit 1); exit 1; }
5776 ac_path_GREP_found
=false
5777 # Loop through the user's path and test for each of PROGNAME-LIST
5778 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5779 as_dummy
="$PATH:/usr/xpg4/bin"
5780 for as_dir
in $as_dummy
5783 test -z "$as_dir" && as_dir
=.
5784 for ac_prog
in grep ggrep
; do
5785 for ac_exec_ext
in '' $ac_executable_extensions; do
5786 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5787 test -f "$ac_path_GREP" ||
continue
5788 $ac_path_GREP_found ||
if $as_executable_p "$ac_path_GREP"; then
5789 # Check for GNU ac_path_GREP and select it if it is found.
5790 # Check for GNU $ac_path_GREP
5791 if "$ac_path_GREP" --version 2>&1 < /dev
/null |
grep 'GNU' >/dev
/null
; then
5792 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:
5795 echo $ECHO_N "0123456789$ECHO_C" >"$tmp/conftest.in"
5798 cat "$tmp/conftest.in" "$tmp/conftest.in" >"$tmp/conftest.tmp"
5799 mv "$tmp/conftest.tmp" "$tmp/conftest.in"
5800 cp "$tmp/conftest.in" "$tmp/conftest.nl"
5801 echo 'GREP' >> "$tmp/conftest.nl"
5802 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "$tmp/conftest.nl" >"$tmp/conftest.out" 2>/dev
/null ||
break
5803 diff "$tmp/conftest.out" "$tmp/conftest.nl" >/dev
/null
2>&1 ||
break
5804 ac_count
=`expr $ac_count + 1`
5805 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5806 # Best one so far, save it but keep looking for a better one
5807 ac_cv_path_GREP
="$ac_path_GREP"
5808 ac_path_GREP_max
=$ac_count
5810 # 10*(2^10) chars as input seems more than enough
5811 test $ac_count -gt 10 && break
5817 $ac_path_GREP_found && break 3
5827 GREP
="$ac_cv_path_GREP"
5828 if test -z "$GREP"; then
5829 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH:/usr/xpg4/bin" >&5
5830 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH:/usr/xpg4/bin" >&2;}
5831 { (exit 1); exit 1; }; }
5838 echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5839 echo "${ECHO_T}$ac_cv_path_GREP" >&6
5840 GREP
="$ac_cv_path_GREP"
5843 echo "$as_me:$LINENO: checking for egrep" >&5
5844 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5845 if test "${ac_cv_path_EGREP+set}" = set; then
5846 echo $ECHO_N "(cached) $ECHO_C" >&6
5848 if echo a |
($GREP -E '(a|b)') >/dev
/null
2>&1
5849 then ac_cv_path_EGREP
="$GREP -E"
5851 # Extract the first word of "egrep" to use in msg output
5852 if test -z "$EGREP"; then
5853 set dummy
egrep; ac_prog_name
=$2
5854 if test "${ac_cv_path_EGREP+set}" = set; then
5855 echo $ECHO_N "(cached) $ECHO_C" >&6
5857 # Create a temporary directory, and hook for its removal unless debugging.
5860 trap 'exit_status=$?; rm -f -r $tmp && exit $exit_status' 0
5861 trap '{ (exit 1); exit 1; }' 1 2 13 15
5864 # Create a (secure) tmp directory for tmp files.
5867 tmp
=`(umask 077 && mktemp -d -q "$TMPDIR/EGREPXXXXXX") 2>/dev/null` &&
5868 test -n "$tmp" && test -d "$tmp"
5871 tmp
=$TMPDIR/EGREP$$
-$RANDOM
5872 (umask 077 && mkdir
$tmp)
5875 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
5876 { (exit 1); exit 1; }
5878 ac_path_EGREP_found
=false
5879 # Loop through the user's path and test for each of PROGNAME-LIST
5880 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5881 as_dummy
="$PATH:/usr/xpg4/bin"
5882 for as_dir
in $as_dummy
5885 test -z "$as_dir" && as_dir
=.
5886 for ac_prog
in egrep; do
5887 for ac_exec_ext
in '' $ac_executable_extensions; do
5888 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5889 test -f "$ac_path_EGREP" ||
continue
5890 $ac_path_EGREP_found ||
if $as_executable_p "$ac_path_EGREP"; then
5891 # Check for GNU ac_path_EGREP and select it if it is found.
5892 # Check for GNU $ac_path_EGREP
5893 if "$ac_path_EGREP" --version 2>&1 < /dev
/null |
grep 'GNU' >/dev
/null
; then
5894 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:
5897 echo $ECHO_N "0123456789$ECHO_C" >"$tmp/conftest.in"
5900 cat "$tmp/conftest.in" "$tmp/conftest.in" >"$tmp/conftest.tmp"
5901 mv "$tmp/conftest.tmp" "$tmp/conftest.in"
5902 cp "$tmp/conftest.in" "$tmp/conftest.nl"
5903 echo 'EGREP' >> "$tmp/conftest.nl"
5904 "$ac_path_EGREP" 'EGREP$' < "$tmp/conftest.nl" >"$tmp/conftest.out" 2>/dev
/null ||
break
5905 diff "$tmp/conftest.out" "$tmp/conftest.nl" >/dev
/null
2>&1 ||
break
5906 ac_count
=`expr $ac_count + 1`
5907 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5908 # Best one so far, save it but keep looking for a better one
5909 ac_cv_path_EGREP
="$ac_path_EGREP"
5910 ac_path_EGREP_max
=$ac_count
5912 # 10*(2^10) chars as input seems more than enough
5913 test $ac_count -gt 10 && break
5919 $ac_path_EGREP_found && break 3
5929 EGREP
="$ac_cv_path_EGREP"
5930 if test -z "$EGREP"; then
5931 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH:/usr/xpg4/bin" >&5
5932 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH:/usr/xpg4/bin" >&2;}
5933 { (exit 1); exit 1; }; }
5941 echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5942 echo "${ECHO_T}$ac_cv_path_EGREP" >&6
5943 EGREP
="$ac_cv_path_EGREP"
5946 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5947 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5948 if test "${ac_cv_header_stdc+set}" = set; then
5949 echo $ECHO_N "(cached) $ECHO_C" >&6
5951 cat >conftest.
$ac_ext <<_ACEOF
5954 cat confdefs.h
>>conftest.
$ac_ext
5955 cat >>conftest.
$ac_ext <<_ACEOF
5956 /* end confdefs.h. */
5970 rm -f conftest.
$ac_objext
5971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5972 (eval $ac_compile) 2>conftest.er1
5974 grep -v '^ *+' conftest.er1
>conftest.err
5976 cat conftest.err
>&5
5977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5978 (exit $ac_status); } &&
5979 { ac_try
='test -z "$ac_c_werror_flag"
5980 || test ! -s conftest.err'
5981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5985 (exit $ac_status); }; } &&
5986 { ac_try
='test -s conftest.$ac_objext'
5987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5991 (exit $ac_status); }; }; then
5992 ac_cv_header_stdc
=yes
5994 echo "$as_me: failed program was:" >&5
5995 sed 's/^/| /' conftest.
$ac_ext >&5
5997 ac_cv_header_stdc
=no
5999 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6001 if test $ac_cv_header_stdc = yes; then
6002 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6003 cat >conftest.
$ac_ext <<_ACEOF
6006 cat confdefs.h
>>conftest.
$ac_ext
6007 cat >>conftest.
$ac_ext <<_ACEOF
6008 /* end confdefs.h. */
6012 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6013 $EGREP "memchr" >/dev
/null
2>&1; then
6016 ac_cv_header_stdc
=no
6022 if test $ac_cv_header_stdc = yes; then
6023 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6024 cat >conftest.
$ac_ext <<_ACEOF
6027 cat confdefs.h
>>conftest.
$ac_ext
6028 cat >>conftest.
$ac_ext <<_ACEOF
6029 /* end confdefs.h. */
6033 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6034 $EGREP "free" >/dev
/null
2>&1; then
6037 ac_cv_header_stdc
=no
6043 if test $ac_cv_header_stdc = yes; then
6044 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6045 if test "$cross_compiling" = yes; then
6048 cat >conftest.
$ac_ext <<_ACEOF
6051 cat confdefs.h
>>conftest.
$ac_ext
6052 cat >>conftest.
$ac_ext <<_ACEOF
6053 /* end confdefs.h. */
6056 #if ((' ' & 0x0FF) == 0x020)
6057 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6058 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6060 # define ISLOWER(c) \
6061 (('a' <= (c) && (c) <= 'i') \
6062 || ('j' <= (c) && (c) <= 'r') \
6063 || ('s' <= (c) && (c) <= 'z'))
6064 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6067 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6072 for (i = 0; i < 256; i++)
6073 if (XOR (islower (i), ISLOWER (i))
6074 || toupper (i) != TOUPPER (i))
6079 rm -f conftest
$ac_exeext
6080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6081 (eval $ac_link) 2>&5
6083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6089 (exit $ac_status); }; }; then
6092 echo "$as_me: program exited with status $ac_status" >&5
6093 echo "$as_me: failed program was:" >&5
6094 sed 's/^/| /' conftest.
$ac_ext >&5
6097 ac_cv_header_stdc
=no
6099 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6103 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6104 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6105 if test $ac_cv_header_stdc = yes; then
6107 cat >>confdefs.h
<<\_ACEOF
6108 #define STDC_HEADERS 1
6113 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6123 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
6124 inttypes.h stdint.h unistd.h
6126 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6127 echo "$as_me:$LINENO: checking for $ac_header" >&5
6128 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6129 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6130 echo $ECHO_N "(cached) $ECHO_C" >&6
6132 cat >conftest.
$ac_ext <<_ACEOF
6135 cat confdefs.h
>>conftest.
$ac_ext
6136 cat >>conftest.
$ac_ext <<_ACEOF
6137 /* end confdefs.h. */
6138 $ac_includes_default
6140 #include <$ac_header>
6142 rm -f conftest.
$ac_objext
6143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6144 (eval $ac_compile) 2>conftest.er1
6146 grep -v '^ *+' conftest.er1
>conftest.err
6148 cat conftest.err
>&5
6149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6150 (exit $ac_status); } &&
6151 { ac_try
='test -z "$ac_c_werror_flag"
6152 || test ! -s conftest.err'
6153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6157 (exit $ac_status); }; } &&
6158 { ac_try
='test -s conftest.$ac_objext'
6159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6163 (exit $ac_status); }; }; then
6164 eval "$as_ac_Header=yes"
6166 echo "$as_me: failed program was:" >&5
6167 sed 's/^/| /' conftest.
$ac_ext >&5
6169 eval "$as_ac_Header=no"
6171 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6173 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6174 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6175 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6176 cat >>confdefs.h
<<_ACEOF
6177 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6196 for ac_header
in stdlib.h unistd.h dirent.h limits.h sys
/dir.h \
6197 string.h
strings.h math.h sys
/time.h direct.h process.h
6199 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6200 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6201 echo "$as_me:$LINENO: checking for $ac_header" >&5
6202 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6203 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6204 echo $ECHO_N "(cached) $ECHO_C" >&6
6206 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6207 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6209 # Is the header compilable?
6210 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6211 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6212 cat >conftest.
$ac_ext <<_ACEOF
6215 cat confdefs.h
>>conftest.
$ac_ext
6216 cat >>conftest.
$ac_ext <<_ACEOF
6217 /* end confdefs.h. */
6218 $ac_includes_default
6219 #include <$ac_header>
6221 rm -f conftest.
$ac_objext
6222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6223 (eval $ac_compile) 2>conftest.er1
6225 grep -v '^ *+' conftest.er1
>conftest.err
6227 cat conftest.err
>&5
6228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6229 (exit $ac_status); } &&
6230 { ac_try
='test -z "$ac_c_werror_flag"
6231 || test ! -s conftest.err'
6232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6236 (exit $ac_status); }; } &&
6237 { ac_try
='test -s conftest.$ac_objext'
6238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6242 (exit $ac_status); }; }; then
6243 ac_header_compiler
=yes
6245 echo "$as_me: failed program was:" >&5
6246 sed 's/^/| /' conftest.
$ac_ext >&5
6248 ac_header_compiler
=no
6250 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6251 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6252 echo "${ECHO_T}$ac_header_compiler" >&6
6254 # Is the header present?
6255 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6256 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6257 cat >conftest.
$ac_ext <<_ACEOF
6260 cat confdefs.h
>>conftest.
$ac_ext
6261 cat >>conftest.
$ac_ext <<_ACEOF
6262 /* end confdefs.h. */
6263 #include <$ac_header>
6265 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6266 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6268 grep -v '^ *+' conftest.er1
>conftest.err
6270 cat conftest.err
>&5
6271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6272 (exit $ac_status); } >/dev
/null
; then
6273 if test -s conftest.err
; then
6274 ac_cpp_err
=$ac_c_preproc_warn_flag
6275 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6282 if test -z "$ac_cpp_err"; then
6283 ac_header_preproc
=yes
6285 echo "$as_me: failed program was:" >&5
6286 sed 's/^/| /' conftest.
$ac_ext >&5
6288 ac_header_preproc
=no
6290 rm -f conftest.err conftest.
$ac_ext
6291 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6292 echo "${ECHO_T}$ac_header_preproc" >&6
6294 # So? What about this header?
6295 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6297 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6298 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6299 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6300 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6301 ac_header_preproc
=yes
6304 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6305 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6306 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6307 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6308 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6309 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6310 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6311 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6312 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6313 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6314 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6315 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6318 ## ------------------------------------------ ##
6319 ## Report this to the AC_PACKAGE_NAME lists. ##
6320 ## ------------------------------------------ ##
6323 sed "s/^/$as_me: WARNING: /" >&2
6326 echo "$as_me:$LINENO: checking for $ac_header" >&5
6327 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6328 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6329 echo $ECHO_N "(cached) $ECHO_C" >&6
6331 eval "$as_ac_Header=\$ac_header_preproc"
6333 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6334 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6337 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6338 cat >>confdefs.h
<<_ACEOF
6339 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6346 echo "$as_me:$LINENO: checking for ISC 3.x or 4.x" >&5
6347 echo $ECHO_N "checking for ISC 3.x or 4.x... $ECHO_C" >&6
6348 if grep '[34]\.' /usr
/options
/cb.name
>/dev
/null
2>&1
6350 echo "$as_me:$LINENO: result: yes" >&5
6351 echo "${ECHO_T}yes" >&6
6353 cat >>confdefs.h
<<\_ACEOF
6358 echo "$as_me:$LINENO: result: no" >&5
6359 echo "${ECHO_T}no" >&6
6361 echo "$as_me:$LINENO: checking whether -D_POSIX_SOURCE is necessary" >&5
6362 echo $ECHO_N "checking whether -D_POSIX_SOURCE is necessary... $ECHO_C" >&6
6364 ac_cpp
='$CXXCPP $CPPFLAGS'
6365 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6366 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6367 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6369 cat >conftest.
$ac_ext <<_ACEOF
6373 cat confdefs.h
>>conftest.
$ac_ext
6374 cat >>conftest.
$ac_ext <<_ACEOF
6375 /* end confdefs.h. */
6379 extern "C" { void fileno(int); }
6391 rm -f conftest.
$ac_objext
6392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6393 (eval $ac_compile) 2>conftest.er1
6395 grep -v '^ *+' conftest.er1
>conftest.err
6397 cat conftest.err
>&5
6398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6399 (exit $ac_status); } &&
6400 { ac_try
='test -z "$ac_cxx_werror_flag"
6401 || test ! -s conftest.err'
6402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6406 (exit $ac_status); }; } &&
6407 { ac_try
='test -s conftest.$ac_objext'
6408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6412 (exit $ac_status); }; }; then
6413 echo "$as_me:$LINENO: result: yes" >&5
6414 echo "${ECHO_T}yes" >&6
6416 cat >>confdefs.h
<<\_ACEOF
6417 #define _POSIX_SOURCE 1
6421 echo "$as_me: failed program was:" >&5
6422 sed 's/^/| /' conftest.
$ac_ext >&5
6424 echo "$as_me:$LINENO: result: no" >&5
6425 echo "${ECHO_T}no" >&6
6427 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6429 ac_cpp
='$CPP $CPPFLAGS'
6430 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6431 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6432 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6435 # checks for header stuff
6437 ac_cpp
='$CXXCPP $CPPFLAGS'
6438 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6439 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6440 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6442 echo "$as_me:$LINENO: checking for return type of srand" >&5
6443 echo $ECHO_N "checking for return type of srand... $ECHO_C" >&6
6444 cat >conftest.
$ac_ext <<_ACEOF
6448 cat confdefs.h
>>conftest.
$ac_ext
6449 cat >>conftest.
$ac_ext <<_ACEOF
6450 /* end confdefs.h. */
6454 extern "C" { void srand(unsigned int); }
6466 rm -f conftest.
$ac_objext
6467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6468 (eval $ac_compile) 2>conftest.er1
6470 grep -v '^ *+' conftest.er1
>conftest.err
6472 cat conftest.err
>&5
6473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6474 (exit $ac_status); } &&
6475 { ac_try
='test -z "$ac_cxx_werror_flag"
6476 || test ! -s conftest.err'
6477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6481 (exit $ac_status); }; } &&
6482 { ac_try
='test -s conftest.$ac_objext'
6483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6487 (exit $ac_status); }; }; then
6488 echo "$as_me:$LINENO: result: void" >&5
6489 echo "${ECHO_T}void" >&6
6491 cat >>confdefs.h
<<\_ACEOF
6492 #define RET_TYPE_SRAND_IS_VOID 1
6496 echo "$as_me: failed program was:" >&5
6497 sed 's/^/| /' conftest.
$ac_ext >&5
6499 echo "$as_me:$LINENO: result: int" >&5
6500 echo "${ECHO_T}int" >&6
6502 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6504 ac_cpp
='$CPP $CPPFLAGS'
6505 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6506 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6507 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6509 echo "$as_me:$LINENO: checking whether gettimeofday must be declared" >&5
6510 echo $ECHO_N "checking whether gettimeofday must be declared... $ECHO_C" >&6
6512 ac_cpp
='$CXXCPP $CPPFLAGS'
6513 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6514 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6515 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6517 if test "${groff_cv_decl_needed_gettimeofday+set}" = set; then
6518 echo $ECHO_N "(cached) $ECHO_C" >&6
6520 cat >conftest.
$ac_ext <<_ACEOF
6524 cat confdefs.h
>>conftest.
$ac_ext
6525 cat >>conftest.
$ac_ext <<_ACEOF
6526 /* end confdefs.h. */
6530 #ifdef HAVE_STRING_H
6533 #ifdef HAVE_STRINGS_H
6534 #include <strings.h>
6536 #ifdef HAVE_STDLIB_H
6539 #ifdef HAVE_SYS_TIME_H
6540 #include <sys/time.h>
6542 #ifdef HAVE_UNISTD_H
6555 #ifndef gettimeofday
6556 char *p = (char *) gettimeofday;
6565 rm -f conftest.
$ac_objext
6566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6567 (eval $ac_compile) 2>conftest.er1
6569 grep -v '^ *+' conftest.er1
>conftest.err
6571 cat conftest.err
>&5
6572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6573 (exit $ac_status); } &&
6574 { ac_try
='test -z "$ac_cxx_werror_flag"
6575 || test ! -s conftest.err'
6576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6580 (exit $ac_status); }; } &&
6581 { ac_try
='test -s conftest.$ac_objext'
6582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6586 (exit $ac_status); }; }; then
6587 groff_cv_decl_needed_gettimeofday
=no
6589 echo "$as_me: failed program was:" >&5
6590 sed 's/^/| /' conftest.
$ac_ext >&5
6592 groff_cv_decl_needed_gettimeofday
=yes
6594 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6597 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_gettimeofday" >&5
6598 echo "${ECHO_T}$groff_cv_decl_needed_gettimeofday" >&6
6599 if test $groff_cv_decl_needed_gettimeofday = yes; then
6601 cat >>confdefs.h
<<\_ACEOF
6602 #define NEED_DECLARATION_GETTIMEOFDAY 1
6607 ac_cpp
='$CPP $CPPFLAGS'
6608 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6609 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6610 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6612 echo "$as_me:$LINENO: checking whether hypot must be declared" >&5
6613 echo $ECHO_N "checking whether hypot must be declared... $ECHO_C" >&6
6615 ac_cpp
='$CXXCPP $CPPFLAGS'
6616 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6617 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6618 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6620 if test "${groff_cv_decl_needed_hypot+set}" = set; then
6621 echo $ECHO_N "(cached) $ECHO_C" >&6
6623 cat >conftest.
$ac_ext <<_ACEOF
6627 cat confdefs.h
>>conftest.
$ac_ext
6628 cat >>conftest.
$ac_ext <<_ACEOF
6629 /* end confdefs.h. */
6633 #ifdef HAVE_STRING_H
6636 #ifdef HAVE_STRINGS_H
6637 #include <strings.h>
6639 #ifdef HAVE_STDLIB_H
6642 #ifdef HAVE_SYS_TIME_H
6643 #include <sys/time.h>
6645 #ifdef HAVE_UNISTD_H
6659 char *p = (char *) hypot;
6668 rm -f conftest.
$ac_objext
6669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6670 (eval $ac_compile) 2>conftest.er1
6672 grep -v '^ *+' conftest.er1
>conftest.err
6674 cat conftest.err
>&5
6675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6676 (exit $ac_status); } &&
6677 { ac_try
='test -z "$ac_cxx_werror_flag"
6678 || test ! -s conftest.err'
6679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6683 (exit $ac_status); }; } &&
6684 { ac_try
='test -s conftest.$ac_objext'
6685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6689 (exit $ac_status); }; }; then
6690 groff_cv_decl_needed_hypot
=no
6692 echo "$as_me: failed program was:" >&5
6693 sed 's/^/| /' conftest.
$ac_ext >&5
6695 groff_cv_decl_needed_hypot
=yes
6697 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6700 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_hypot" >&5
6701 echo "${ECHO_T}$groff_cv_decl_needed_hypot" >&6
6702 if test $groff_cv_decl_needed_hypot = yes; then
6704 cat >>confdefs.h
<<\_ACEOF
6705 #define NEED_DECLARATION_HYPOT 1
6710 ac_cpp
='$CPP $CPPFLAGS'
6711 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6712 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6713 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6715 echo "$as_me:$LINENO: checking whether popen must be declared" >&5
6716 echo $ECHO_N "checking whether popen must be declared... $ECHO_C" >&6
6718 ac_cpp
='$CXXCPP $CPPFLAGS'
6719 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6720 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6721 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6723 if test "${groff_cv_decl_needed_popen+set}" = set; then
6724 echo $ECHO_N "(cached) $ECHO_C" >&6
6726 cat >conftest.
$ac_ext <<_ACEOF
6730 cat confdefs.h
>>conftest.
$ac_ext
6731 cat >>conftest.
$ac_ext <<_ACEOF
6732 /* end confdefs.h. */
6736 #ifdef HAVE_STRING_H
6739 #ifdef HAVE_STRINGS_H
6740 #include <strings.h>
6742 #ifdef HAVE_STDLIB_H
6745 #ifdef HAVE_SYS_TIME_H
6746 #include <sys/time.h>
6748 #ifdef HAVE_UNISTD_H
6762 char *p = (char *) popen;
6771 rm -f conftest.
$ac_objext
6772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6773 (eval $ac_compile) 2>conftest.er1
6775 grep -v '^ *+' conftest.er1
>conftest.err
6777 cat conftest.err
>&5
6778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6779 (exit $ac_status); } &&
6780 { ac_try
='test -z "$ac_cxx_werror_flag"
6781 || test ! -s conftest.err'
6782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6786 (exit $ac_status); }; } &&
6787 { ac_try
='test -s conftest.$ac_objext'
6788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6792 (exit $ac_status); }; }; then
6793 groff_cv_decl_needed_popen
=no
6795 echo "$as_me: failed program was:" >&5
6796 sed 's/^/| /' conftest.
$ac_ext >&5
6798 groff_cv_decl_needed_popen
=yes
6800 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6803 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_popen" >&5
6804 echo "${ECHO_T}$groff_cv_decl_needed_popen" >&6
6805 if test $groff_cv_decl_needed_popen = yes; then
6807 cat >>confdefs.h
<<\_ACEOF
6808 #define NEED_DECLARATION_POPEN 1
6813 ac_cpp
='$CPP $CPPFLAGS'
6814 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6815 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6816 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6818 echo "$as_me:$LINENO: checking whether pclose must be declared" >&5
6819 echo $ECHO_N "checking whether pclose must be declared... $ECHO_C" >&6
6821 ac_cpp
='$CXXCPP $CPPFLAGS'
6822 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6823 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6824 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6826 if test "${groff_cv_decl_needed_pclose+set}" = set; then
6827 echo $ECHO_N "(cached) $ECHO_C" >&6
6829 cat >conftest.
$ac_ext <<_ACEOF
6833 cat confdefs.h
>>conftest.
$ac_ext
6834 cat >>conftest.
$ac_ext <<_ACEOF
6835 /* end confdefs.h. */
6839 #ifdef HAVE_STRING_H
6842 #ifdef HAVE_STRINGS_H
6843 #include <strings.h>
6845 #ifdef HAVE_STDLIB_H
6848 #ifdef HAVE_SYS_TIME_H
6849 #include <sys/time.h>
6851 #ifdef HAVE_UNISTD_H
6865 char *p = (char *) pclose;
6874 rm -f conftest.
$ac_objext
6875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6876 (eval $ac_compile) 2>conftest.er1
6878 grep -v '^ *+' conftest.er1
>conftest.err
6880 cat conftest.err
>&5
6881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6882 (exit $ac_status); } &&
6883 { ac_try
='test -z "$ac_cxx_werror_flag"
6884 || test ! -s conftest.err'
6885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6889 (exit $ac_status); }; } &&
6890 { ac_try
='test -s conftest.$ac_objext'
6891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6895 (exit $ac_status); }; }; then
6896 groff_cv_decl_needed_pclose
=no
6898 echo "$as_me: failed program was:" >&5
6899 sed 's/^/| /' conftest.
$ac_ext >&5
6901 groff_cv_decl_needed_pclose
=yes
6903 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6906 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_pclose" >&5
6907 echo "${ECHO_T}$groff_cv_decl_needed_pclose" >&6
6908 if test $groff_cv_decl_needed_pclose = yes; then
6910 cat >>confdefs.h
<<\_ACEOF
6911 #define NEED_DECLARATION_PCLOSE 1
6916 ac_cpp
='$CPP $CPPFLAGS'
6917 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6918 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6919 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6921 echo "$as_me:$LINENO: checking whether putenv must be declared" >&5
6922 echo $ECHO_N "checking whether putenv must be declared... $ECHO_C" >&6
6924 ac_cpp
='$CXXCPP $CPPFLAGS'
6925 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6926 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6927 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6929 if test "${groff_cv_decl_needed_putenv+set}" = set; then
6930 echo $ECHO_N "(cached) $ECHO_C" >&6
6932 cat >conftest.
$ac_ext <<_ACEOF
6936 cat confdefs.h
>>conftest.
$ac_ext
6937 cat >>conftest.
$ac_ext <<_ACEOF
6938 /* end confdefs.h. */
6942 #ifdef HAVE_STRING_H
6945 #ifdef HAVE_STRINGS_H
6946 #include <strings.h>
6948 #ifdef HAVE_STDLIB_H
6951 #ifdef HAVE_SYS_TIME_H
6952 #include <sys/time.h>
6954 #ifdef HAVE_UNISTD_H
6968 char *p = (char *) putenv;
6977 rm -f conftest.
$ac_objext
6978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6979 (eval $ac_compile) 2>conftest.er1
6981 grep -v '^ *+' conftest.er1
>conftest.err
6983 cat conftest.err
>&5
6984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6985 (exit $ac_status); } &&
6986 { ac_try
='test -z "$ac_cxx_werror_flag"
6987 || test ! -s conftest.err'
6988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6992 (exit $ac_status); }; } &&
6993 { ac_try
='test -s conftest.$ac_objext'
6994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6998 (exit $ac_status); }; }; then
6999 groff_cv_decl_needed_putenv
=no
7001 echo "$as_me: failed program was:" >&5
7002 sed 's/^/| /' conftest.
$ac_ext >&5
7004 groff_cv_decl_needed_putenv
=yes
7006 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7009 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_putenv" >&5
7010 echo "${ECHO_T}$groff_cv_decl_needed_putenv" >&6
7011 if test $groff_cv_decl_needed_putenv = yes; then
7013 cat >>confdefs.h
<<\_ACEOF
7014 #define NEED_DECLARATION_PUTENV 1
7019 ac_cpp
='$CPP $CPPFLAGS'
7020 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7021 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7022 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7024 echo "$as_me:$LINENO: checking whether rand must be declared" >&5
7025 echo $ECHO_N "checking whether rand must be declared... $ECHO_C" >&6
7027 ac_cpp
='$CXXCPP $CPPFLAGS'
7028 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7029 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7030 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7032 if test "${groff_cv_decl_needed_rand+set}" = set; then
7033 echo $ECHO_N "(cached) $ECHO_C" >&6
7035 cat >conftest.
$ac_ext <<_ACEOF
7039 cat confdefs.h
>>conftest.
$ac_ext
7040 cat >>conftest.
$ac_ext <<_ACEOF
7041 /* end confdefs.h. */
7045 #ifdef HAVE_STRING_H
7048 #ifdef HAVE_STRINGS_H
7049 #include <strings.h>
7051 #ifdef HAVE_STDLIB_H
7054 #ifdef HAVE_SYS_TIME_H
7055 #include <sys/time.h>
7057 #ifdef HAVE_UNISTD_H
7071 char *p = (char *) rand;
7080 rm -f conftest.
$ac_objext
7081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7082 (eval $ac_compile) 2>conftest.er1
7084 grep -v '^ *+' conftest.er1
>conftest.err
7086 cat conftest.err
>&5
7087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7088 (exit $ac_status); } &&
7089 { ac_try
='test -z "$ac_cxx_werror_flag"
7090 || test ! -s conftest.err'
7091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7095 (exit $ac_status); }; } &&
7096 { ac_try
='test -s conftest.$ac_objext'
7097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7101 (exit $ac_status); }; }; then
7102 groff_cv_decl_needed_rand
=no
7104 echo "$as_me: failed program was:" >&5
7105 sed 's/^/| /' conftest.
$ac_ext >&5
7107 groff_cv_decl_needed_rand
=yes
7109 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7112 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_rand" >&5
7113 echo "${ECHO_T}$groff_cv_decl_needed_rand" >&6
7114 if test $groff_cv_decl_needed_rand = yes; then
7116 cat >>confdefs.h
<<\_ACEOF
7117 #define NEED_DECLARATION_RAND 1
7122 ac_cpp
='$CPP $CPPFLAGS'
7123 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7124 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7125 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7127 echo "$as_me:$LINENO: checking whether snprintf must be declared" >&5
7128 echo $ECHO_N "checking whether snprintf must be declared... $ECHO_C" >&6
7130 ac_cpp
='$CXXCPP $CPPFLAGS'
7131 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7132 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7133 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7135 if test "${groff_cv_decl_needed_snprintf+set}" = set; then
7136 echo $ECHO_N "(cached) $ECHO_C" >&6
7138 cat >conftest.
$ac_ext <<_ACEOF
7142 cat confdefs.h
>>conftest.
$ac_ext
7143 cat >>conftest.
$ac_ext <<_ACEOF
7144 /* end confdefs.h. */
7148 #ifdef HAVE_STRING_H
7151 #ifdef HAVE_STRINGS_H
7152 #include <strings.h>
7154 #ifdef HAVE_STDLIB_H
7157 #ifdef HAVE_SYS_TIME_H
7158 #include <sys/time.h>
7160 #ifdef HAVE_UNISTD_H
7174 char *p = (char *) snprintf;
7183 rm -f conftest.
$ac_objext
7184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7185 (eval $ac_compile) 2>conftest.er1
7187 grep -v '^ *+' conftest.er1
>conftest.err
7189 cat conftest.err
>&5
7190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7191 (exit $ac_status); } &&
7192 { ac_try
='test -z "$ac_cxx_werror_flag"
7193 || test ! -s conftest.err'
7194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7198 (exit $ac_status); }; } &&
7199 { ac_try
='test -s conftest.$ac_objext'
7200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7204 (exit $ac_status); }; }; then
7205 groff_cv_decl_needed_snprintf
=no
7207 echo "$as_me: failed program was:" >&5
7208 sed 's/^/| /' conftest.
$ac_ext >&5
7210 groff_cv_decl_needed_snprintf
=yes
7212 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7215 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_snprintf" >&5
7216 echo "${ECHO_T}$groff_cv_decl_needed_snprintf" >&6
7217 if test $groff_cv_decl_needed_snprintf = yes; then
7219 cat >>confdefs.h
<<\_ACEOF
7220 #define NEED_DECLARATION_SNPRINTF 1
7225 ac_cpp
='$CPP $CPPFLAGS'
7226 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7227 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7228 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7230 echo "$as_me:$LINENO: checking whether srand must be declared" >&5
7231 echo $ECHO_N "checking whether srand must be declared... $ECHO_C" >&6
7233 ac_cpp
='$CXXCPP $CPPFLAGS'
7234 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7235 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7236 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7238 if test "${groff_cv_decl_needed_srand+set}" = set; then
7239 echo $ECHO_N "(cached) $ECHO_C" >&6
7241 cat >conftest.
$ac_ext <<_ACEOF
7245 cat confdefs.h
>>conftest.
$ac_ext
7246 cat >>conftest.
$ac_ext <<_ACEOF
7247 /* end confdefs.h. */
7251 #ifdef HAVE_STRING_H
7254 #ifdef HAVE_STRINGS_H
7255 #include <strings.h>
7257 #ifdef HAVE_STDLIB_H
7260 #ifdef HAVE_SYS_TIME_H
7261 #include <sys/time.h>
7263 #ifdef HAVE_UNISTD_H
7277 char *p = (char *) srand;
7286 rm -f conftest.
$ac_objext
7287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7288 (eval $ac_compile) 2>conftest.er1
7290 grep -v '^ *+' conftest.er1
>conftest.err
7292 cat conftest.err
>&5
7293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7294 (exit $ac_status); } &&
7295 { ac_try
='test -z "$ac_cxx_werror_flag"
7296 || test ! -s conftest.err'
7297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7301 (exit $ac_status); }; } &&
7302 { ac_try
='test -s conftest.$ac_objext'
7303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7307 (exit $ac_status); }; }; then
7308 groff_cv_decl_needed_srand
=no
7310 echo "$as_me: failed program was:" >&5
7311 sed 's/^/| /' conftest.
$ac_ext >&5
7313 groff_cv_decl_needed_srand
=yes
7315 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7318 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_srand" >&5
7319 echo "${ECHO_T}$groff_cv_decl_needed_srand" >&6
7320 if test $groff_cv_decl_needed_srand = yes; then
7322 cat >>confdefs.h
<<\_ACEOF
7323 #define NEED_DECLARATION_SRAND 1
7328 ac_cpp
='$CPP $CPPFLAGS'
7329 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7330 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7331 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7333 echo "$as_me:$LINENO: checking whether strcasecmp must be declared" >&5
7334 echo $ECHO_N "checking whether strcasecmp must be declared... $ECHO_C" >&6
7336 ac_cpp
='$CXXCPP $CPPFLAGS'
7337 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7338 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7339 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7341 if test "${groff_cv_decl_needed_strcasecmp+set}" = set; then
7342 echo $ECHO_N "(cached) $ECHO_C" >&6
7344 cat >conftest.
$ac_ext <<_ACEOF
7348 cat confdefs.h
>>conftest.
$ac_ext
7349 cat >>conftest.
$ac_ext <<_ACEOF
7350 /* end confdefs.h. */
7354 #ifdef HAVE_STRING_H
7357 #ifdef HAVE_STRINGS_H
7358 #include <strings.h>
7360 #ifdef HAVE_STDLIB_H
7363 #ifdef HAVE_SYS_TIME_H
7364 #include <sys/time.h>
7366 #ifdef HAVE_UNISTD_H
7380 char *p = (char *) strcasecmp;
7389 rm -f conftest.
$ac_objext
7390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7391 (eval $ac_compile) 2>conftest.er1
7393 grep -v '^ *+' conftest.er1
>conftest.err
7395 cat conftest.err
>&5
7396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7397 (exit $ac_status); } &&
7398 { ac_try
='test -z "$ac_cxx_werror_flag"
7399 || test ! -s conftest.err'
7400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7404 (exit $ac_status); }; } &&
7405 { ac_try
='test -s conftest.$ac_objext'
7406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7410 (exit $ac_status); }; }; then
7411 groff_cv_decl_needed_strcasecmp
=no
7413 echo "$as_me: failed program was:" >&5
7414 sed 's/^/| /' conftest.
$ac_ext >&5
7416 groff_cv_decl_needed_strcasecmp
=yes
7418 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7421 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_strcasecmp" >&5
7422 echo "${ECHO_T}$groff_cv_decl_needed_strcasecmp" >&6
7423 if test $groff_cv_decl_needed_strcasecmp = yes; then
7425 cat >>confdefs.h
<<\_ACEOF
7426 #define NEED_DECLARATION_STRCASECMP 1
7431 ac_cpp
='$CPP $CPPFLAGS'
7432 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7433 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7434 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7436 echo "$as_me:$LINENO: checking whether strncasecmp must be declared" >&5
7437 echo $ECHO_N "checking whether strncasecmp must be declared... $ECHO_C" >&6
7439 ac_cpp
='$CXXCPP $CPPFLAGS'
7440 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7441 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7442 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7444 if test "${groff_cv_decl_needed_strncasecmp+set}" = set; then
7445 echo $ECHO_N "(cached) $ECHO_C" >&6
7447 cat >conftest.
$ac_ext <<_ACEOF
7451 cat confdefs.h
>>conftest.
$ac_ext
7452 cat >>conftest.
$ac_ext <<_ACEOF
7453 /* end confdefs.h. */
7457 #ifdef HAVE_STRING_H
7460 #ifdef HAVE_STRINGS_H
7461 #include <strings.h>
7463 #ifdef HAVE_STDLIB_H
7466 #ifdef HAVE_SYS_TIME_H
7467 #include <sys/time.h>
7469 #ifdef HAVE_UNISTD_H
7483 char *p = (char *) strncasecmp;
7492 rm -f conftest.
$ac_objext
7493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7494 (eval $ac_compile) 2>conftest.er1
7496 grep -v '^ *+' conftest.er1
>conftest.err
7498 cat conftest.err
>&5
7499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7500 (exit $ac_status); } &&
7501 { ac_try
='test -z "$ac_cxx_werror_flag"
7502 || test ! -s conftest.err'
7503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7507 (exit $ac_status); }; } &&
7508 { ac_try
='test -s conftest.$ac_objext'
7509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7513 (exit $ac_status); }; }; then
7514 groff_cv_decl_needed_strncasecmp
=no
7516 echo "$as_me: failed program was:" >&5
7517 sed 's/^/| /' conftest.
$ac_ext >&5
7519 groff_cv_decl_needed_strncasecmp
=yes
7521 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7524 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_strncasecmp" >&5
7525 echo "${ECHO_T}$groff_cv_decl_needed_strncasecmp" >&6
7526 if test $groff_cv_decl_needed_strncasecmp = yes; then
7528 cat >>confdefs.h
<<\_ACEOF
7529 #define NEED_DECLARATION_STRNCASECMP 1
7534 ac_cpp
='$CPP $CPPFLAGS'
7535 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7536 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7537 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7539 echo "$as_me:$LINENO: checking whether vfprintf must be declared" >&5
7540 echo $ECHO_N "checking whether vfprintf must be declared... $ECHO_C" >&6
7542 ac_cpp
='$CXXCPP $CPPFLAGS'
7543 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7544 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7545 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7547 if test "${groff_cv_decl_needed_vfprintf+set}" = set; then
7548 echo $ECHO_N "(cached) $ECHO_C" >&6
7550 cat >conftest.
$ac_ext <<_ACEOF
7554 cat confdefs.h
>>conftest.
$ac_ext
7555 cat >>conftest.
$ac_ext <<_ACEOF
7556 /* end confdefs.h. */
7560 #ifdef HAVE_STRING_H
7563 #ifdef HAVE_STRINGS_H
7564 #include <strings.h>
7566 #ifdef HAVE_STDLIB_H
7569 #ifdef HAVE_SYS_TIME_H
7570 #include <sys/time.h>
7572 #ifdef HAVE_UNISTD_H
7586 char *p = (char *) vfprintf;
7595 rm -f conftest.
$ac_objext
7596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7597 (eval $ac_compile) 2>conftest.er1
7599 grep -v '^ *+' conftest.er1
>conftest.err
7601 cat conftest.err
>&5
7602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7603 (exit $ac_status); } &&
7604 { ac_try
='test -z "$ac_cxx_werror_flag"
7605 || test ! -s conftest.err'
7606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7610 (exit $ac_status); }; } &&
7611 { ac_try
='test -s conftest.$ac_objext'
7612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7616 (exit $ac_status); }; }; then
7617 groff_cv_decl_needed_vfprintf
=no
7619 echo "$as_me: failed program was:" >&5
7620 sed 's/^/| /' conftest.
$ac_ext >&5
7622 groff_cv_decl_needed_vfprintf
=yes
7624 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7627 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_vfprintf" >&5
7628 echo "${ECHO_T}$groff_cv_decl_needed_vfprintf" >&6
7629 if test $groff_cv_decl_needed_vfprintf = yes; then
7631 cat >>confdefs.h
<<\_ACEOF
7632 #define NEED_DECLARATION_VFPRINTF 1
7637 ac_cpp
='$CPP $CPPFLAGS'
7638 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7639 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7640 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7642 echo "$as_me:$LINENO: checking whether vsnprintf must be declared" >&5
7643 echo $ECHO_N "checking whether vsnprintf must be declared... $ECHO_C" >&6
7645 ac_cpp
='$CXXCPP $CPPFLAGS'
7646 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7647 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7648 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7650 if test "${groff_cv_decl_needed_vsnprintf+set}" = set; then
7651 echo $ECHO_N "(cached) $ECHO_C" >&6
7653 cat >conftest.
$ac_ext <<_ACEOF
7657 cat confdefs.h
>>conftest.
$ac_ext
7658 cat >>conftest.
$ac_ext <<_ACEOF
7659 /* end confdefs.h. */
7663 #ifdef HAVE_STRING_H
7666 #ifdef HAVE_STRINGS_H
7667 #include <strings.h>
7669 #ifdef HAVE_STDLIB_H
7672 #ifdef HAVE_SYS_TIME_H
7673 #include <sys/time.h>
7675 #ifdef HAVE_UNISTD_H
7689 char *p = (char *) vsnprintf;
7698 rm -f conftest.
$ac_objext
7699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7700 (eval $ac_compile) 2>conftest.er1
7702 grep -v '^ *+' conftest.er1
>conftest.err
7704 cat conftest.err
>&5
7705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7706 (exit $ac_status); } &&
7707 { ac_try
='test -z "$ac_cxx_werror_flag"
7708 || test ! -s conftest.err'
7709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7713 (exit $ac_status); }; } &&
7714 { ac_try
='test -s conftest.$ac_objext'
7715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7719 (exit $ac_status); }; }; then
7720 groff_cv_decl_needed_vsnprintf
=no
7722 echo "$as_me: failed program was:" >&5
7723 sed 's/^/| /' conftest.
$ac_ext >&5
7725 groff_cv_decl_needed_vsnprintf
=yes
7727 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7730 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_vsnprintf" >&5
7731 echo "${ECHO_T}$groff_cv_decl_needed_vsnprintf" >&6
7732 if test $groff_cv_decl_needed_vsnprintf = yes; then
7734 cat >>confdefs.h
<<\_ACEOF
7735 #define NEED_DECLARATION_VSNPRINTF 1
7740 ac_cpp
='$CPP $CPPFLAGS'
7741 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7742 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7743 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7746 ac_cpp
='$CXXCPP $CPPFLAGS'
7747 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7748 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7749 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7751 echo "$as_me:$LINENO: checking for sys_nerr in <errno.h>, <stdio.h>, or <stdlib.h>" >&5
7752 echo $ECHO_N "checking for sys_nerr in <errno.h>, <stdio.h>, or <stdlib.h>... $ECHO_C" >&6
7753 cat >conftest.
$ac_ext <<_ACEOF
7757 cat confdefs.h
>>conftest.
$ac_ext
7758 cat >>conftest.
$ac_ext <<_ACEOF
7759 /* end confdefs.h. */
7781 rm -f conftest.
$ac_objext
7782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7783 (eval $ac_compile) 2>conftest.er1
7785 grep -v '^ *+' conftest.er1
>conftest.err
7787 cat conftest.err
>&5
7788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7789 (exit $ac_status); } &&
7790 { ac_try
='test -z "$ac_cxx_werror_flag"
7791 || test ! -s conftest.err'
7792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7796 (exit $ac_status); }; } &&
7797 { ac_try
='test -s conftest.$ac_objext'
7798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7802 (exit $ac_status); }; }; then
7803 echo "$as_me:$LINENO: result: yes" >&5
7804 echo "${ECHO_T}yes" >&6
7806 cat >>confdefs.h
<<\_ACEOF
7807 #define HAVE_SYS_NERR 1
7811 echo "$as_me: failed program was:" >&5
7812 sed 's/^/| /' conftest.
$ac_ext >&5
7814 echo "$as_me:$LINENO: result: no" >&5
7815 echo "${ECHO_T}no" >&6
7817 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7819 ac_cpp
='$CPP $CPPFLAGS'
7820 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7821 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7822 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7824 echo "$as_me:$LINENO: checking for sys_errlist in <errno.h>, <stdio.h>, or <stdlib.h>" >&5
7825 echo $ECHO_N "checking for sys_errlist in <errno.h>, <stdio.h>, or <stdlib.h>... $ECHO_C" >&6
7826 cat >conftest.
$ac_ext <<_ACEOF
7830 cat confdefs.h
>>conftest.
$ac_ext
7831 cat >>conftest.
$ac_ext <<_ACEOF
7832 /* end confdefs.h. */
7846 k = (int)sys_errlist[0];
7854 rm -f conftest.
$ac_objext
7855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7856 (eval $ac_compile) 2>conftest.er1
7858 grep -v '^ *+' conftest.er1
>conftest.err
7860 cat conftest.err
>&5
7861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7862 (exit $ac_status); } &&
7863 { ac_try
='test -z "$ac_c_werror_flag"
7864 || test ! -s conftest.err'
7865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7869 (exit $ac_status); }; } &&
7870 { ac_try
='test -s conftest.$ac_objext'
7871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7875 (exit $ac_status); }; }; then
7876 echo "$as_me:$LINENO: result: yes" >&5
7877 echo "${ECHO_T}yes" >&6
7879 cat >>confdefs.h
<<\_ACEOF
7880 #define HAVE_SYS_ERRLIST 1
7884 echo "$as_me: failed program was:" >&5
7885 sed 's/^/| /' conftest.
$ac_ext >&5
7887 echo "$as_me:$LINENO: result: no" >&5
7888 echo "${ECHO_T}no" >&6
7890 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7892 ac_cpp
='$CXXCPP $CPPFLAGS'
7893 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7894 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7895 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7897 echo "$as_me:$LINENO: checking C++ <osfcn.h>" >&5
7898 echo $ECHO_N "checking C++ <osfcn.h>... $ECHO_C" >&6
7899 cat >conftest.
$ac_ext <<_ACEOF
7903 cat confdefs.h
>>conftest.
$ac_ext
7904 cat >>conftest.
$ac_ext <<_ACEOF
7905 /* end confdefs.h. */
7925 rm -f conftest.
$ac_objext
7926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7927 (eval $ac_compile) 2>conftest.er1
7929 grep -v '^ *+' conftest.er1
>conftest.err
7931 cat conftest.err
>&5
7932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7933 (exit $ac_status); } &&
7934 { ac_try
='test -z "$ac_cxx_werror_flag"
7935 || test ! -s conftest.err'
7936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7940 (exit $ac_status); }; } &&
7941 { ac_try
='test -s conftest.$ac_objext'
7942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7946 (exit $ac_status); }; }; then
7947 echo "$as_me:$LINENO: result: yes" >&5
7948 echo "${ECHO_T}yes" >&6
7950 cat >>confdefs.h
<<\_ACEOF
7951 #define HAVE_CC_OSFCN_H 1
7955 echo "$as_me: failed program was:" >&5
7956 sed 's/^/| /' conftest.
$ac_ext >&5
7958 echo "$as_me:$LINENO: result: no" >&5
7959 echo "${ECHO_T}no" >&6
7961 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7963 ac_cpp
='$CPP $CPPFLAGS'
7964 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7965 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7966 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7969 ac_cpp
='$CXXCPP $CPPFLAGS'
7970 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7971 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7972 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7974 echo "$as_me:$LINENO: checking C++ <limits.h>" >&5
7975 echo $ECHO_N "checking C++ <limits.h>... $ECHO_C" >&6
7976 cat >conftest.
$ac_ext <<_ACEOF
7980 cat confdefs.h
>>conftest.
$ac_ext
7981 cat >>conftest.
$ac_ext <<_ACEOF
7982 /* end confdefs.h. */
8003 rm -f conftest.
$ac_objext
8004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8005 (eval $ac_compile) 2>conftest.er1
8007 grep -v '^ *+' conftest.er1
>conftest.err
8009 cat conftest.err
>&5
8010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8011 (exit $ac_status); } &&
8012 { ac_try
='test -z "$ac_cxx_werror_flag"
8013 || test ! -s conftest.err'
8014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8018 (exit $ac_status); }; } &&
8019 { ac_try
='test -s conftest.$ac_objext'
8020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8024 (exit $ac_status); }; }; then
8025 echo "$as_me:$LINENO: result: yes" >&5
8026 echo "${ECHO_T}yes" >&6
8028 cat >>confdefs.h
<<\_ACEOF
8029 #define HAVE_CC_LIMITS_H 1
8033 echo "$as_me: failed program was:" >&5
8034 sed 's/^/| /' conftest.
$ac_ext >&5
8036 echo "$as_me:$LINENO: result: no" >&5
8037 echo "${ECHO_T}no" >&6
8039 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8041 ac_cpp
='$CPP $CPPFLAGS'
8042 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8043 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8044 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8047 ac_cpp
='$CXXCPP $CPPFLAGS'
8048 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8049 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8050 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8052 echo "$as_me:$LINENO: checking C++ <inttypes.h>" >&5
8053 echo $ECHO_N "checking C++ <inttypes.h>... $ECHO_C" >&6
8054 cat >conftest.
$ac_ext <<_ACEOF
8058 cat confdefs.h
>>conftest.
$ac_ext
8059 cat >>conftest.
$ac_ext <<_ACEOF
8060 /* end confdefs.h. */
8063 #include <sys/types.h>
8064 #include <inttypes.h>
8072 uintmax_t i = (uintmax_t)-1;
8080 rm -f conftest.
$ac_objext
8081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8082 (eval $ac_compile) 2>conftest.er1
8084 grep -v '^ *+' conftest.er1
>conftest.err
8086 cat conftest.err
>&5
8087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8088 (exit $ac_status); } &&
8089 { ac_try
='test -z "$ac_cxx_werror_flag"
8090 || test ! -s conftest.err'
8091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8095 (exit $ac_status); }; } &&
8096 { ac_try
='test -s conftest.$ac_objext'
8097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8101 (exit $ac_status); }; }; then
8102 groff_cv_header_inttypes_h
=yes
8104 cat >>confdefs.h
<<\_ACEOF
8105 #define HAVE_CC_INTTYPES_H 1
8109 echo "$as_me: failed program was:" >&5
8110 sed 's/^/| /' conftest.
$ac_ext >&5
8112 groff_cv_header_inttypes_h
=no
8114 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8115 echo "$as_me:$LINENO: result: $groff_cv_header_inttypes_h" >&5
8116 echo "${ECHO_T}$groff_cv_header_inttypes_h" >&6
8118 ac_cpp
='$CPP $CPPFLAGS'
8119 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8120 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8121 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8124 # checks for typedefs
8126 ac_cpp
='$CXXCPP $CPPFLAGS'
8127 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8128 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8129 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8131 echo "$as_me:$LINENO: checking for unsigned long long" >&5
8132 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
8133 cat >conftest.
$ac_ext <<_ACEOF
8137 cat confdefs.h
>>conftest.
$ac_ext
8138 cat >>conftest.
$ac_ext <<_ACEOF
8139 /* end confdefs.h. */
8142 unsigned long long ull = 1;
8144 unsigned long long ullmax = (unsigned long long)-1;
8152 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
8160 rm -f conftest.
$ac_objext conftest
$ac_exeext
8161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8162 (eval $ac_link) 2>conftest.er1
8164 grep -v '^ *+' conftest.er1
>conftest.err
8166 cat conftest.err
>&5
8167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8168 (exit $ac_status); } &&
8169 { ac_try
='test -z "$ac_cxx_werror_flag"
8170 || test ! -s conftest.err'
8171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8175 (exit $ac_status); }; } &&
8176 { ac_try
='test -s conftest$ac_exeext'
8177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8181 (exit $ac_status); }; }; then
8182 groff_cv_type_unsigned_long_long
=yes
8184 echo "$as_me: failed program was:" >&5
8185 sed 's/^/| /' conftest.
$ac_ext >&5
8187 groff_cv_type_unsigned_long_long
=no
8189 rm -f conftest.err conftest.
$ac_objext \
8190 conftest
$ac_exeext conftest.
$ac_ext
8191 echo "$as_me:$LINENO: result: $groff_cv_type_unsigned_long_long" >&5
8192 echo "${ECHO_T}$groff_cv_type_unsigned_long_long" >&6
8194 ac_cpp
='$CPP $CPPFLAGS'
8195 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8196 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8197 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8200 if test $groff_cv_header_inttypes_h = no
; then
8202 test $groff_cv_type_unsigned_long_long = yes \
8203 && ac_type
='unsigned long long' \
8204 || ac_type
='unsigned long'
8206 cat >>confdefs.h
<<_ACEOF
8207 #define uintmax_t $ac_type
8212 ac_cpp
='$CXXCPP $CPPFLAGS'
8213 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8214 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8215 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8217 echo "$as_me:$LINENO: checking for declaration of time_t" >&5
8218 echo $ECHO_N "checking for declaration of time_t... $ECHO_C" >&6
8219 cat >conftest.
$ac_ext <<_ACEOF
8223 cat confdefs.h
>>conftest.
$ac_ext
8224 cat >>conftest.
$ac_ext <<_ACEOF
8225 /* end confdefs.h. */
8237 struct tm *p = localtime(&t);
8245 rm -f conftest.
$ac_objext
8246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8247 (eval $ac_compile) 2>conftest.er1
8249 grep -v '^ *+' conftest.er1
>conftest.err
8251 cat conftest.err
>&5
8252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8253 (exit $ac_status); } &&
8254 { ac_try
='test -z "$ac_cxx_werror_flag"
8255 || test ! -s conftest.err'
8256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8260 (exit $ac_status); }; } &&
8261 { ac_try
='test -s conftest.$ac_objext'
8262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8266 (exit $ac_status); }; }; then
8267 echo "$as_me:$LINENO: result: yes" >&5
8268 echo "${ECHO_T}yes" >&6
8270 echo "$as_me: failed program was:" >&5
8271 sed 's/^/| /' conftest.
$ac_ext >&5
8273 echo "$as_me:$LINENO: result: no" >&5
8274 echo "${ECHO_T}no" >&6
8276 cat >>confdefs.h
<<\_ACEOF
8277 #define LONG_FOR_TIME_T 1
8281 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8283 ac_cpp
='$CPP $CPPFLAGS'
8284 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8285 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8286 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8288 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
8289 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
8290 if test "${ac_cv_type_signal+set}" = set; then
8291 echo $ECHO_N "(cached) $ECHO_C" >&6
8293 cat >conftest.
$ac_ext <<_ACEOF
8296 cat confdefs.h
>>conftest.
$ac_ext
8297 cat >>conftest.
$ac_ext <<_ACEOF
8298 /* end confdefs.h. */
8299 #include <sys/types.h>
8305 extern "C" void (*signal (int, void (*)(int)))(int);
8307 void (*signal ()) ();
8318 rm -f conftest.
$ac_objext
8319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8320 (eval $ac_compile) 2>conftest.er1
8322 grep -v '^ *+' conftest.er1
>conftest.err
8324 cat conftest.err
>&5
8325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8326 (exit $ac_status); } &&
8327 { ac_try
='test -z "$ac_c_werror_flag"
8328 || test ! -s conftest.err'
8329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8333 (exit $ac_status); }; } &&
8334 { ac_try
='test -s conftest.$ac_objext'
8335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8339 (exit $ac_status); }; }; then
8340 ac_cv_type_signal
=void
8342 echo "$as_me: failed program was:" >&5
8343 sed 's/^/| /' conftest.
$ac_ext >&5
8345 ac_cv_type_signal
=int
8347 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8349 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
8350 echo "${ECHO_T}$ac_cv_type_signal" >&6
8352 cat >>confdefs.h
<<_ACEOF
8353 #define RETSIGTYPE $ac_cv_type_signal
8357 echo "$as_me:$LINENO: checking struct exception" >&5
8358 echo $ECHO_N "checking struct exception... $ECHO_C" >&6
8359 cat >conftest.
$ac_ext <<_ACEOF
8363 cat confdefs.h
>>conftest.
$ac_ext
8364 cat >>conftest.
$ac_ext <<_ACEOF
8365 /* end confdefs.h. */
8384 rm -f conftest.
$ac_objext
8385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8386 (eval $ac_compile) 2>conftest.er1
8388 grep -v '^ *+' conftest.er1
>conftest.err
8390 cat conftest.err
>&5
8391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8392 (exit $ac_status); } &&
8393 { ac_try
='test -z "$ac_c_werror_flag"
8394 || test ! -s conftest.err'
8395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8399 (exit $ac_status); }; } &&
8400 { ac_try
='test -s conftest.$ac_objext'
8401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8405 (exit $ac_status); }; }; then
8406 echo "$as_me:$LINENO: result: yes" >&5
8407 echo "${ECHO_T}yes" >&6
8409 cat >>confdefs.h
<<\_ACEOF
8410 #define HAVE_STRUCT_EXCEPTION 1
8414 echo "$as_me: failed program was:" >&5
8415 sed 's/^/| /' conftest.
$ac_ext >&5
8417 echo "$as_me:$LINENO: result: no" >&5
8418 echo "${ECHO_T}no" >&6
8420 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8422 # checks for libraries
8423 echo "$as_me:$LINENO: checking for main in -lc" >&5
8424 echo $ECHO_N "checking for main in -lc... $ECHO_C" >&6
8425 if test "${ac_cv_lib_c_main+set}" = set; then
8426 echo $ECHO_N "(cached) $ECHO_C" >&6
8428 ac_check_lib_save_LIBS
=$LIBS
8430 cat >conftest.
$ac_ext <<_ACEOF
8433 cat confdefs.h
>>conftest.
$ac_ext
8434 cat >>conftest.
$ac_ext <<_ACEOF
8435 /* end confdefs.h. */
8446 rm -f conftest.
$ac_objext conftest
$ac_exeext
8447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8448 (eval $ac_link) 2>conftest.er1
8450 grep -v '^ *+' conftest.er1
>conftest.err
8452 cat conftest.err
>&5
8453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8454 (exit $ac_status); } &&
8455 { ac_try
='test -z "$ac_c_werror_flag"
8456 || test ! -s conftest.err'
8457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8461 (exit $ac_status); }; } &&
8462 { ac_try
='test -s conftest$ac_exeext'
8463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467 (exit $ac_status); }; }; then
8468 ac_cv_lib_c_main
=yes
8470 echo "$as_me: failed program was:" >&5
8471 sed 's/^/| /' conftest.
$ac_ext >&5
8475 rm -f conftest.err conftest.
$ac_objext \
8476 conftest
$ac_exeext conftest.
$ac_ext
8477 LIBS
=$ac_check_lib_save_LIBS
8479 echo "$as_me:$LINENO: result: $ac_cv_lib_c_main" >&5
8480 echo "${ECHO_T}$ac_cv_lib_c_main" >&6
8481 if test $ac_cv_lib_c_main = yes; then
8486 echo "$as_me:$LINENO: checking for sin in -lm" >&5
8487 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
8488 if test "${ac_cv_lib_m_sin+set}" = set; then
8489 echo $ECHO_N "(cached) $ECHO_C" >&6
8491 ac_check_lib_save_LIBS
=$LIBS
8493 cat >conftest.
$ac_ext <<_ACEOF
8496 cat confdefs.h
>>conftest.
$ac_ext
8497 cat >>conftest.
$ac_ext <<_ACEOF
8498 /* end confdefs.h. */
8500 /* Override any gcc2 internal prototype to avoid an error. */
8504 /* We use char because int might match the return type of a gcc2
8505 builtin and then its argument prototype would still apply. */
8515 rm -f conftest.
$ac_objext conftest
$ac_exeext
8516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8517 (eval $ac_link) 2>conftest.er1
8519 grep -v '^ *+' conftest.er1
>conftest.err
8521 cat conftest.err
>&5
8522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8523 (exit $ac_status); } &&
8524 { ac_try
='test -z "$ac_c_werror_flag"
8525 || test ! -s conftest.err'
8526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8530 (exit $ac_status); }; } &&
8531 { ac_try
='test -s conftest$ac_exeext'
8532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8536 (exit $ac_status); }; }; then
8539 echo "$as_me: failed program was:" >&5
8540 sed 's/^/| /' conftest.
$ac_ext >&5
8544 rm -f conftest.err conftest.
$ac_objext \
8545 conftest
$ac_exeext conftest.
$ac_ext
8546 LIBS
=$ac_check_lib_save_LIBS
8548 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
8549 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
8550 if test $ac_cv_lib_m_sin = yes; then
8556 # checks for functions
8559 for ac_header
in stdlib.h unistd.h
8561 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8562 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8563 echo "$as_me:$LINENO: checking for $ac_header" >&5
8564 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8565 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8566 echo $ECHO_N "(cached) $ECHO_C" >&6
8568 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8569 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8571 # Is the header compilable?
8572 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8573 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8574 cat >conftest.
$ac_ext <<_ACEOF
8577 cat confdefs.h
>>conftest.
$ac_ext
8578 cat >>conftest.
$ac_ext <<_ACEOF
8579 /* end confdefs.h. */
8580 $ac_includes_default
8581 #include <$ac_header>
8583 rm -f conftest.
$ac_objext
8584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8585 (eval $ac_compile) 2>conftest.er1
8587 grep -v '^ *+' conftest.er1
>conftest.err
8589 cat conftest.err
>&5
8590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8591 (exit $ac_status); } &&
8592 { ac_try
='test -z "$ac_c_werror_flag"
8593 || test ! -s conftest.err'
8594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8598 (exit $ac_status); }; } &&
8599 { ac_try
='test -s conftest.$ac_objext'
8600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8604 (exit $ac_status); }; }; then
8605 ac_header_compiler
=yes
8607 echo "$as_me: failed program was:" >&5
8608 sed 's/^/| /' conftest.
$ac_ext >&5
8610 ac_header_compiler
=no
8612 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8613 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8614 echo "${ECHO_T}$ac_header_compiler" >&6
8616 # Is the header present?
8617 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8618 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8619 cat >conftest.
$ac_ext <<_ACEOF
8622 cat confdefs.h
>>conftest.
$ac_ext
8623 cat >>conftest.
$ac_ext <<_ACEOF
8624 /* end confdefs.h. */
8625 #include <$ac_header>
8627 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8628 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8630 grep -v '^ *+' conftest.er1
>conftest.err
8632 cat conftest.err
>&5
8633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8634 (exit $ac_status); } >/dev
/null
; then
8635 if test -s conftest.err
; then
8636 ac_cpp_err
=$ac_c_preproc_warn_flag
8637 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8644 if test -z "$ac_cpp_err"; then
8645 ac_header_preproc
=yes
8647 echo "$as_me: failed program was:" >&5
8648 sed 's/^/| /' conftest.
$ac_ext >&5
8650 ac_header_preproc
=no
8652 rm -f conftest.err conftest.
$ac_ext
8653 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8654 echo "${ECHO_T}$ac_header_preproc" >&6
8656 # So? What about this header?
8657 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8659 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8660 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8661 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8662 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8663 ac_header_preproc
=yes
8666 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8667 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8668 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8669 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8670 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8671 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8672 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8673 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8674 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8675 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8676 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8677 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8680 ## ------------------------------------------ ##
8681 ## Report this to the AC_PACKAGE_NAME lists. ##
8682 ## ------------------------------------------ ##
8685 sed "s/^/$as_me: WARNING: /" >&2
8688 echo "$as_me:$LINENO: checking for $ac_header" >&5
8689 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8690 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8691 echo $ECHO_N "(cached) $ECHO_C" >&6
8693 eval "$as_ac_Header=\$ac_header_preproc"
8695 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8696 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8699 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8700 cat >>confdefs.h
<<_ACEOF
8701 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8709 for ac_func
in getpagesize
8711 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8712 echo "$as_me:$LINENO: checking for $ac_func" >&5
8713 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8714 if eval "test \"\${$as_ac_var+set}\" = set"; then
8715 echo $ECHO_N "(cached) $ECHO_C" >&6
8717 cat >conftest.
$ac_ext <<_ACEOF
8720 cat confdefs.h
>>conftest.
$ac_ext
8721 cat >>conftest.
$ac_ext <<_ACEOF
8722 /* end confdefs.h. */
8723 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8724 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8725 #define $ac_func innocuous_$ac_func
8727 /* System header to define __stub macros and hopefully few prototypes,
8728 which can conflict with char $ac_func (); below.
8729 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8730 <limits.h> exists even on freestanding compilers. */
8733 # include <limits.h>
8735 # include <assert.h>
8740 /* Override any gcc2 internal prototype to avoid an error. */
8745 /* We use char because int might match the return type of a gcc2
8746 builtin and then its argument prototype would still apply. */
8748 /* The GNU C library defines this for functions which it implements
8749 to always fail with ENOSYS. Some functions are actually named
8750 something starting with __ and the normal name is an alias. */
8751 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8754 char (*f) () = $ac_func;
8763 return f != $ac_func;
8768 rm -f conftest.
$ac_objext conftest
$ac_exeext
8769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8770 (eval $ac_link) 2>conftest.er1
8772 grep -v '^ *+' conftest.er1
>conftest.err
8774 cat conftest.err
>&5
8775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8776 (exit $ac_status); } &&
8777 { ac_try
='test -z "$ac_c_werror_flag"
8778 || test ! -s conftest.err'
8779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8783 (exit $ac_status); }; } &&
8784 { ac_try
='test -s conftest$ac_exeext'
8785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8789 (exit $ac_status); }; }; then
8790 eval "$as_ac_var=yes"
8792 echo "$as_me: failed program was:" >&5
8793 sed 's/^/| /' conftest.
$ac_ext >&5
8795 eval "$as_ac_var=no"
8797 rm -f conftest.err conftest.
$ac_objext \
8798 conftest
$ac_exeext conftest.
$ac_ext
8800 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8801 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8802 if test `eval echo '${'$as_ac_var'}'` = yes; then
8803 cat >>confdefs.h
<<_ACEOF
8804 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8810 echo "$as_me:$LINENO: checking for working mmap" >&5
8811 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
8812 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8813 echo $ECHO_N "(cached) $ECHO_C" >&6
8815 if test "$cross_compiling" = yes; then
8816 ac_cv_func_mmap_fixed_mapped
=no
8818 cat >conftest.
$ac_ext <<_ACEOF
8821 cat confdefs.h
>>conftest.
$ac_ext
8822 cat >>conftest.
$ac_ext <<_ACEOF
8823 /* end confdefs.h. */
8824 $ac_includes_default
8825 /* malloc might have been renamed as rpl_malloc. */
8828 /* Thanks to Mike Haertel and Jim Avera for this test.
8829 Here is a matrix of mmap possibilities:
8830 mmap private not fixed
8831 mmap private fixed at somewhere currently unmapped
8832 mmap private fixed at somewhere already mapped
8833 mmap shared not fixed
8834 mmap shared fixed at somewhere currently unmapped
8835 mmap shared fixed at somewhere already mapped
8836 For private mappings, we should verify that changes cannot be read()
8837 back from the file, nor mmap's back from the file at a different
8838 address. (There have been systems where private was not correctly
8839 implemented like the infamous i386 svr4.0, and systems where the
8840 VM page cache was not coherent with the file system buffer cache
8841 like early versions of FreeBSD and possibly contemporary NetBSD.)
8842 For shared mappings, we should conversely verify that changes get
8843 propagated back to all the places they're supposed to be.
8845 Grep wants private fixed already mapped.
8846 The main things grep needs to know about mmap are:
8847 * does it exist and is it safe to write into the mmap'd area
8848 * how to use it (BSD variants) */
8851 #include <sys/mman.h>
8853 #if !STDC_HEADERS && !HAVE_STDLIB_H
8857 /* This mess was copied from the GNU getpagesize.h. */
8858 #if !HAVE_GETPAGESIZE
8859 /* Assume that all systems that can run configure have sys/param.h. */
8860 # if !HAVE_SYS_PARAM_H
8861 # define HAVE_SYS_PARAM_H 1
8864 # ifdef _SC_PAGESIZE
8865 # define getpagesize() sysconf(_SC_PAGESIZE)
8866 # else /* no _SC_PAGESIZE */
8867 # if HAVE_SYS_PARAM_H
8868 # include <sys/param.h>
8869 # ifdef EXEC_PAGESIZE
8870 # define getpagesize() EXEC_PAGESIZE
8871 # else /* no EXEC_PAGESIZE */
8873 # define getpagesize() NBPG * CLSIZE
8876 # endif /* no CLSIZE */
8877 # else /* no NBPG */
8879 # define getpagesize() NBPC
8880 # else /* no NBPC */
8882 # define getpagesize() PAGESIZE
8883 # endif /* PAGESIZE */
8884 # endif /* no NBPC */
8885 # endif /* no NBPG */
8886 # endif /* no EXEC_PAGESIZE */
8887 # else /* no HAVE_SYS_PARAM_H */
8888 # define getpagesize() 8192 /* punt totally */
8889 # endif /* no HAVE_SYS_PARAM_H */
8890 # endif /* no _SC_PAGESIZE */
8892 #endif /* no HAVE_GETPAGESIZE */
8897 char *data, *data2, *data3;
8901 pagesize = getpagesize ();
8903 /* First, make a file with some known garbage in it. */
8904 data = (char *) malloc (pagesize);
8907 for (i = 0; i < pagesize; ++i)
8908 *(data + i) = rand ();
8910 fd = creat ("conftest.mmap", 0600);
8913 if (write (fd, data, pagesize) != pagesize)
8917 /* Next, try to mmap the file at a fixed address which already has
8918 something else allocated at it. If we can, also make sure that
8919 we see the same garbage. */
8920 fd = open ("conftest.mmap", O_RDWR);
8923 data2 = (char *) malloc (2 * pagesize);
8926 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
8927 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8928 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8930 for (i = 0; i < pagesize; ++i)
8931 if (*(data + i) != *(data2 + i))
8934 /* Finally, make sure that changes to the mapped area do not
8935 percolate back to the file as seen by read(). (This is a bug on
8936 some variants of i386 svr4.0.) */
8937 for (i = 0; i < pagesize; ++i)
8938 *(data2 + i) = *(data2 + i) + 1;
8939 data3 = (char *) malloc (pagesize);
8942 if (read (fd, data3, pagesize) != pagesize)
8944 for (i = 0; i < pagesize; ++i)
8945 if (*(data + i) != *(data3 + i))
8951 rm -f conftest
$ac_exeext
8952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8953 (eval $ac_link) 2>&5
8955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8956 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8961 (exit $ac_status); }; }; then
8962 ac_cv_func_mmap_fixed_mapped
=yes
8964 echo "$as_me: program exited with status $ac_status" >&5
8965 echo "$as_me: failed program was:" >&5
8966 sed 's/^/| /' conftest.
$ac_ext >&5
8969 ac_cv_func_mmap_fixed_mapped
=no
8971 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8974 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8975 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
8976 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8978 cat >>confdefs.h
<<\_ACEOF
8986 LIBS
="$LIBS $LIBC $LIBM"
8995 for ac_func
in fmod getcwd putenv snprintf strcasecmp \
8996 strerror strncasecmp strtol
8998 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8999 echo "$as_me:$LINENO: checking for $ac_func" >&5
9000 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9001 if eval "test \"\${$as_ac_var+set}\" = set"; then
9002 echo $ECHO_N "(cached) $ECHO_C" >&6
9004 cat >conftest.
$ac_ext <<_ACEOF
9007 cat confdefs.h
>>conftest.
$ac_ext
9008 cat >>conftest.
$ac_ext <<_ACEOF
9009 /* end confdefs.h. */
9010 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9011 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9012 #define $ac_func innocuous_$ac_func
9014 /* System header to define __stub macros and hopefully few prototypes,
9015 which can conflict with char $ac_func (); below.
9016 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9017 <limits.h> exists even on freestanding compilers. */
9020 # include <limits.h>
9022 # include <assert.h>
9027 /* Override any gcc2 internal prototype to avoid an error. */
9032 /* We use char because int might match the return type of a gcc2
9033 builtin and then its argument prototype would still apply. */
9035 /* The GNU C library defines this for functions which it implements
9036 to always fail with ENOSYS. Some functions are actually named
9037 something starting with __ and the normal name is an alias. */
9038 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9041 char (*f) () = $ac_func;
9050 return f != $ac_func;
9055 rm -f conftest.
$ac_objext conftest
$ac_exeext
9056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9057 (eval $ac_link) 2>conftest.er1
9059 grep -v '^ *+' conftest.er1
>conftest.err
9061 cat conftest.err
>&5
9062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9063 (exit $ac_status); } &&
9064 { ac_try
='test -z "$ac_c_werror_flag"
9065 || test ! -s conftest.err'
9066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9070 (exit $ac_status); }; } &&
9071 { ac_try
='test -s conftest$ac_exeext'
9072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9076 (exit $ac_status); }; }; then
9077 eval "$as_ac_var=yes"
9079 echo "$as_me: failed program was:" >&5
9080 sed 's/^/| /' conftest.
$ac_ext >&5
9082 eval "$as_ac_var=no"
9084 rm -f conftest.err conftest.
$ac_objext \
9085 conftest
$ac_exeext conftest.
$ac_ext
9087 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9088 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9089 if test `eval echo '${'$as_ac_var'}'` = yes; then
9090 cat >>confdefs.h
<<_ACEOF
9091 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9096 "$ac_func.$ac_objext" | \
9097 *" $ac_func.$ac_objext" | \
9098 "$ac_func.$ac_objext "* | \
9099 *" $ac_func.$ac_objext "* ) ;;
9100 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext" ;;
9107 # vsnprintf is in the same source file as snprintf
9109 for ac_func
in vsnprintf
9111 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9112 echo "$as_me:$LINENO: checking for $ac_func" >&5
9113 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9114 if eval "test \"\${$as_ac_var+set}\" = set"; then
9115 echo $ECHO_N "(cached) $ECHO_C" >&6
9117 cat >conftest.
$ac_ext <<_ACEOF
9120 cat confdefs.h
>>conftest.
$ac_ext
9121 cat >>conftest.
$ac_ext <<_ACEOF
9122 /* end confdefs.h. */
9123 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9124 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9125 #define $ac_func innocuous_$ac_func
9127 /* System header to define __stub macros and hopefully few prototypes,
9128 which can conflict with char $ac_func (); below.
9129 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9130 <limits.h> exists even on freestanding compilers. */
9133 # include <limits.h>
9135 # include <assert.h>
9140 /* Override any gcc2 internal prototype to avoid an error. */
9145 /* We use char because int might match the return type of a gcc2
9146 builtin and then its argument prototype would still apply. */
9148 /* The GNU C library defines this for functions which it implements
9149 to always fail with ENOSYS. Some functions are actually named
9150 something starting with __ and the normal name is an alias. */
9151 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9154 char (*f) () = $ac_func;
9163 return f != $ac_func;
9168 rm -f conftest.
$ac_objext conftest
$ac_exeext
9169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9170 (eval $ac_link) 2>conftest.er1
9172 grep -v '^ *+' conftest.er1
>conftest.err
9174 cat conftest.err
>&5
9175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9176 (exit $ac_status); } &&
9177 { ac_try
='test -z "$ac_c_werror_flag"
9178 || test ! -s conftest.err'
9179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9183 (exit $ac_status); }; } &&
9184 { ac_try
='test -s conftest$ac_exeext'
9185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9189 (exit $ac_status); }; }; then
9190 eval "$as_ac_var=yes"
9192 echo "$as_me: failed program was:" >&5
9193 sed 's/^/| /' conftest.
$ac_ext >&5
9195 eval "$as_ac_var=no"
9197 rm -f conftest.err conftest.
$ac_objext \
9198 conftest
$ac_exeext conftest.
$ac_ext
9200 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9201 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9202 if test `eval echo '${'$as_ac_var'}'` = yes; then
9203 cat >>confdefs.h
<<_ACEOF
9204 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9209 "snprintf.$ac_objext" | \
9210 *" snprintf.$ac_objext" | \
9211 "snprintf.$ac_objext "* | \
9212 *" snprintf.$ac_objext "* ) ;;
9213 *) LIBOBJS
="$LIBOBJS snprintf.$ac_objext" ;;
9226 for ac_func
in gettimeofday isatty
kill rename setlocale strsep
9228 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9229 echo "$as_me:$LINENO: checking for $ac_func" >&5
9230 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9231 if eval "test \"\${$as_ac_var+set}\" = set"; then
9232 echo $ECHO_N "(cached) $ECHO_C" >&6
9234 cat >conftest.
$ac_ext <<_ACEOF
9237 cat confdefs.h
>>conftest.
$ac_ext
9238 cat >>conftest.
$ac_ext <<_ACEOF
9239 /* end confdefs.h. */
9240 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9241 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9242 #define $ac_func innocuous_$ac_func
9244 /* System header to define __stub macros and hopefully few prototypes,
9245 which can conflict with char $ac_func (); below.
9246 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9247 <limits.h> exists even on freestanding compilers. */
9250 # include <limits.h>
9252 # include <assert.h>
9257 /* Override any gcc2 internal prototype to avoid an error. */
9262 /* We use char because int might match the return type of a gcc2
9263 builtin and then its argument prototype would still apply. */
9265 /* The GNU C library defines this for functions which it implements
9266 to always fail with ENOSYS. Some functions are actually named
9267 something starting with __ and the normal name is an alias. */
9268 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9271 char (*f) () = $ac_func;
9280 return f != $ac_func;
9285 rm -f conftest.
$ac_objext conftest
$ac_exeext
9286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9287 (eval $ac_link) 2>conftest.er1
9289 grep -v '^ *+' conftest.er1
>conftest.err
9291 cat conftest.err
>&5
9292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9293 (exit $ac_status); } &&
9294 { ac_try
='test -z "$ac_c_werror_flag"
9295 || test ! -s conftest.err'
9296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9300 (exit $ac_status); }; } &&
9301 { ac_try
='test -s conftest$ac_exeext'
9302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9306 (exit $ac_status); }; }; then
9307 eval "$as_ac_var=yes"
9309 echo "$as_me: failed program was:" >&5
9310 sed 's/^/| /' conftest.
$ac_ext >&5
9312 eval "$as_ac_var=no"
9314 rm -f conftest.err conftest.
$ac_objext \
9315 conftest
$ac_exeext conftest.
$ac_ext
9317 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9318 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9319 if test `eval echo '${'$as_ac_var'}'` = yes; then
9320 cat >>confdefs.h
<<_ACEOF
9321 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9327 echo "$as_me:$LINENO: checking for mkstemp" >&5
9328 echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
9330 ac_cpp
='$CXXCPP $CPPFLAGS'
9331 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9332 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9333 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9336 cat >conftest.
$ac_ext <<_ACEOF
9340 cat confdefs.h
>>conftest.
$ac_ext
9341 cat >>conftest.
$ac_ext <<_ACEOF
9342 /* end confdefs.h. */
9363 rm -f conftest.
$ac_objext conftest
$ac_exeext
9364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9365 (eval $ac_link) 2>conftest.er1
9367 grep -v '^ *+' conftest.er1
>conftest.err
9369 cat conftest.err
>&5
9370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9371 (exit $ac_status); } &&
9372 { ac_try
='test -z "$ac_cxx_werror_flag"
9373 || test ! -s conftest.err'
9374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9378 (exit $ac_status); }; } &&
9379 { ac_try
='test -s conftest$ac_exeext'
9380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9384 (exit $ac_status); }; }; then
9385 echo "$as_me:$LINENO: result: yes" >&5
9386 echo "${ECHO_T}yes" >&6
9388 cat >>confdefs.h
<<\_ACEOF
9389 #define HAVE_MKSTEMP 1
9393 echo "$as_me: failed program was:" >&5
9394 sed 's/^/| /' conftest.
$ac_ext >&5
9396 echo "$as_me:$LINENO: result: no" >&5
9397 echo "${ECHO_T}no" >&6
9399 "mkstemp.$ac_objext" | \
9400 *" mkstemp.$ac_objext" | \
9401 "mkstemp.$ac_objext "* | \
9402 *" mkstemp.$ac_objext "* ) ;;
9403 *) LIBOBJS
="$LIBOBJS mkstemp.$ac_objext" ;;
9407 rm -f conftest.err conftest.
$ac_objext \
9408 conftest
$ac_exeext conftest.
$ac_ext
9410 ac_cpp
='$CPP $CPPFLAGS'
9411 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9412 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9413 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
9415 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
9416 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
9417 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
9418 echo $ECHO_N "(cached) $ECHO_C" >&6
9420 cat >conftest.
$ac_ext <<_ACEOF
9423 cat confdefs.h
>>conftest.
$ac_ext
9424 cat >>conftest.
$ac_ext <<_ACEOF
9425 /* end confdefs.h. */
9426 $ac_includes_default
9431 char *p = (char *) sys_siglist;
9438 rm -f conftest.
$ac_objext
9439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9440 (eval $ac_compile) 2>conftest.er1
9442 grep -v '^ *+' conftest.er1
>conftest.err
9444 cat conftest.err
>&5
9445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9446 (exit $ac_status); } &&
9447 { ac_try
='test -z "$ac_c_werror_flag"
9448 || test ! -s conftest.err'
9449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9453 (exit $ac_status); }; } &&
9454 { ac_try
='test -s conftest.$ac_objext'
9455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9459 (exit $ac_status); }; }; then
9460 ac_cv_have_decl_sys_siglist
=yes
9462 echo "$as_me: failed program was:" >&5
9463 sed 's/^/| /' conftest.
$ac_ext >&5
9465 ac_cv_have_decl_sys_siglist
=no
9467 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9469 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
9470 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
9471 if test $ac_cv_have_decl_sys_siglist = yes; then
9473 cat >>confdefs.h
<<_ACEOF
9474 #define HAVE_DECL_SYS_SIGLIST 1
9479 cat >>confdefs.h
<<_ACEOF
9480 #define HAVE_DECL_SYS_SIGLIST 0
9488 # checks for compiler characteristics
9490 ac_cpp
='$CXXCPP $CPPFLAGS'
9491 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9492 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9493 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9495 echo "$as_me:$LINENO: checking whether ANSI array delete syntax is supported" >&5
9496 echo $ECHO_N "checking whether ANSI array delete syntax is supported... $ECHO_C" >&6
9497 cat >conftest.
$ac_ext <<_ACEOF
9501 cat confdefs.h
>>conftest.
$ac_ext
9502 cat >>conftest.
$ac_ext <<_ACEOF
9503 /* end confdefs.h. */
9510 char *p = new char[5];
9519 rm -f conftest.
$ac_objext
9520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9521 (eval $ac_compile) 2>conftest.er1
9523 grep -v '^ *+' conftest.er1
>conftest.err
9525 cat conftest.err
>&5
9526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9527 (exit $ac_status); } &&
9528 { ac_try
='test -z "$ac_cxx_werror_flag"
9529 || test ! -s conftest.err'
9530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9534 (exit $ac_status); }; } &&
9535 { ac_try
='test -s conftest.$ac_objext'
9536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9540 (exit $ac_status); }; }; then
9541 echo "$as_me:$LINENO: result: yes" >&5
9542 echo "${ECHO_T}yes" >&6
9544 echo "$as_me: failed program was:" >&5
9545 sed 's/^/| /' conftest.
$ac_ext >&5
9547 echo "$as_me:$LINENO: result: no" >&5
9548 echo "${ECHO_T}no" >&6
9550 cat >>confdefs.h
<<\_ACEOF
9551 #define ARRAY_DELETE_NEEDS_SIZE 1
9555 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9557 ac_cpp
='$CPP $CPPFLAGS'
9558 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9559 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9560 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
9563 ac_cpp
='$CXXCPP $CPPFLAGS'
9564 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9565 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9566 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9568 echo "$as_me:$LINENO: checking traditional preprocessor" >&5
9569 echo $ECHO_N "checking traditional preprocessor... $ECHO_C" >&6
9570 cat >conftest.
$ac_ext <<_ACEOF
9574 cat confdefs.h
>>conftest.
$ac_ext
9575 cat >>conftest.
$ac_ext <<_ACEOF
9576 /* end confdefs.h. */
9579 #define name2(a, b) a/**/b
9587 int name2(foo, bar);
9595 rm -f conftest.
$ac_objext
9596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9597 (eval $ac_compile) 2>conftest.er1
9599 grep -v '^ *+' conftest.er1
>conftest.err
9601 cat conftest.err
>&5
9602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9603 (exit $ac_status); } &&
9604 { ac_try
='test -z "$ac_cxx_werror_flag"
9605 || test ! -s conftest.err'
9606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9610 (exit $ac_status); }; } &&
9611 { ac_try
='test -s conftest.$ac_objext'
9612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9616 (exit $ac_status); }; }; then
9617 echo "$as_me:$LINENO: result: yes" >&5
9618 echo "${ECHO_T}yes" >&6
9620 cat >>confdefs.h
<<\_ACEOF
9621 #define TRADITIONAL_CPP 1
9625 echo "$as_me: failed program was:" >&5
9626 sed 's/^/| /' conftest.
$ac_ext >&5
9628 echo "$as_me:$LINENO: result: no" >&5
9629 echo "${ECHO_T}no" >&6
9631 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9633 ac_cpp
='$CPP $CPPFLAGS'
9634 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9635 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9636 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
9639 # checks for operating system services
9640 echo "$as_me:$LINENO: checking w_coredump" >&5
9641 echo $ECHO_N "checking w_coredump... $ECHO_C" >&6
9642 if test "$cross_compiling" = yes; then
9643 echo "$as_me:$LINENO: result: no" >&5
9644 echo "${ECHO_T}no" >&6
9646 cat >conftest.
$ac_ext <<_ACEOF
9650 cat confdefs.h
>>conftest.
$ac_ext
9651 cat >>conftest.
$ac_ext <<_ACEOF
9652 /* end confdefs.h. */
9655 #include <sys/types.h>
9656 #include <sys/wait.h>
9670 ((union wait *)&i)->w_coredump = 1;
9681 rm -f conftest
$ac_exeext
9682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9683 (eval $ac_link) 2>&5
9685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9686 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9691 (exit $ac_status); }; }; then
9692 echo "$as_me:$LINENO: result: yes" >&5
9693 echo "${ECHO_T}yes" >&6
9695 cat >>confdefs.h
<<\_ACEOF
9696 #define WCOREFLAG 0200
9700 echo "$as_me: program exited with status $ac_status" >&5
9701 echo "$as_me: failed program was:" >&5
9702 sed 's/^/| /' conftest.
$ac_ext >&5
9705 echo "$as_me:$LINENO: result: no" >&5
9706 echo "${ECHO_T}no" >&6
9708 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9711 # other random stuff
9712 echo "$as_me:$LINENO: checking default value for grops -b option" >&5
9713 echo $ECHO_N "checking default value for grops -b option... $ECHO_C" >&6
9714 test -n "${BROKEN_SPOOLER_FLAGS}" || BROKEN_SPOOLER_FLAGS
=0
9715 echo "$as_me:$LINENO: result: $BROKEN_SPOOLER_FLAGS" >&5
9716 echo "${ECHO_T}$BROKEN_SPOOLER_FLAGS" >&6
9718 echo "$as_me:$LINENO: checking default paper size" >&5
9719 echo $ECHO_N "checking default paper size... $ECHO_C" >&6
9720 groff_prefix
=$prefix
9721 test "x$prefix" = "xNONE" && groff_prefix
=$ac_default_prefix
9722 if test -z "$PAGE"; then
9724 if test -r $groff_prefix/share
/groff
/font
/devps
/DESC
; then
9725 descfile
=$groff_prefix/share
/groff
/font
/devps
/DESC
9726 elif test -r $groff_prefix/lib
/groff
/font
/devps
/DESC
; then
9727 descfile
=$groff_prefix/lib
/groff
/font
/devps
/DESC
9729 for f
in $groff_prefix/share
/groff
/*/font
/devps
/DESC
; do
9737 if test -n "$descfile"; then
9738 if grep '^paperlength[ ]\+841890' $descfile >/dev
/null
2>&1; then
9740 elif grep '^papersize[ ]\+[aA]4' $descfile >/dev
/null
2>&1; then
9746 if test -z "$PAGE"; then
9747 dom
=`awk '($1 == "dom" || $1 == "search") { print $2; exit}' \
9748 /etc/resolv.conf 2>/dev/null`
9749 if test -z "$dom"; then
9750 dom
=`(domainname) 2>/dev/null | tr -d '+'`
9752 ||
test "$dom" = '(none)'; then
9753 dom
=`(hostname) 2>/dev/null | grep '\.'`
9756 # If the top-level domain is two letters and it's not `us' or `ca'
9757 # then they probably use A4 paper.
9759 *.
[Uu
][Ss
]|
*.
[Cc
][Aa
])
9766 test -n "$PAGE" || PAGE
=letter
9767 if test "x$PAGE" = "xA4"; then
9769 cat >>confdefs.h
<<\_ACEOF
9774 echo "$as_me:$LINENO: result: $PAGE" >&5
9775 echo "${ECHO_T}$PAGE" >&6
9777 echo "$as_me:$LINENO: checking for existing troff installation" >&5
9778 echo $ECHO_N "checking for existing troff installation... $ECHO_C" >&6
9779 if test "x`(echo .tm '|n(.g' | tr '|' '\\\\' | troff -z -i 2>&1) 2>/dev/null`" = x0
; then
9780 echo "$as_me:$LINENO: result: yes" >&5
9781 echo "${ECHO_T}yes" >&6
9784 echo "$as_me:$LINENO: result: no" >&5
9785 echo "${ECHO_T}no" >&6
9789 echo "$as_me:$LINENO: checking for prefix of system macro packages" >&5
9790 echo $ECHO_N "checking for prefix of system macro packages... $ECHO_C" >&6
9792 sys_tmac_file_prefix
=
9793 for d
in /usr
/share
/lib
/tmac
/usr
/lib
/tmac
; do
9794 for t
in "" tmac.
; do
9797 if test -z "$sys_tmac_prefix" \
9799 && grep '^\.if' $f >/dev
/null
2>&1; then
9800 sys_tmac_prefix
=$d/$t
9801 sys_tmac_file_prefix
=$t
9806 echo "$as_me:$LINENO: result: $sys_tmac_prefix" >&5
9807 echo "${ECHO_T}$sys_tmac_prefix" >&6
9810 echo "$as_me:$LINENO: checking which system macro packages should be made available" >&5
9811 echo $ECHO_N "checking which system macro packages should be made available... $ECHO_C" >&6
9813 if test "x$sys_tmac_file_prefix" = "xtmac."; then
9814 for f
in $sys_tmac_prefix*; do
9815 suff
=`echo $f | sed -e "s;$sys_tmac_prefix;;"`
9820 grep "Copyright.*Free Software Foundation" $f >/dev
/null \
9821 || tmac_wrap
="$tmac_wrap $suff" ;;
9824 elif test -n "$sys_tmac_prefix"; then
9825 files
=`echo $sys_tmac_prefix*`
9826 grep "\\.so" $files >conftest.sol
9829 ${sys_tmac_prefix}e
)
9837 if grep "\\.so.*/$b\$" conftest.sol
>/dev
/null \
9838 ||
grep -l "Copyright.*Free Software Foundation" $f >/dev
/null
; then
9841 suff
=`echo $f | sed -e "s;$sys_tmac_prefix;;"`
9846 tmac_wrap
="$tmac_wrap $suff" ;;
9853 echo "$as_me:$LINENO: result: $tmac_wrap" >&5
9854 echo "${ECHO_T}$tmac_wrap" >&6
9856 echo "$as_me:$LINENO: checking separator character to use in groff search paths" >&5
9857 echo $ECHO_N "checking separator character to use in groff search paths... $ECHO_C" >&6
9858 cp ${srcdir}/src
/include
/nonposix.h conftest.h
9859 cat >conftest.
$ac_ext <<_ACEOF
9863 cat confdefs.h
>>conftest.
$ac_ext
9864 cat >>conftest.
$ac_ext <<_ACEOF
9865 /* end confdefs.h. */
9869 #include "conftest.h"
9877 #if PATH_SEP_CHAR == ';'
9878 make an error "Path separator is ';'"
9887 rm -f conftest.
$ac_objext
9888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9889 (eval $ac_compile) 2>conftest.er1
9891 grep -v '^ *+' conftest.er1
>conftest.err
9893 cat conftest.err
>&5
9894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9895 (exit $ac_status); } &&
9896 { ac_try
='test -z "$ac_c_werror_flag"
9897 || test ! -s conftest.err'
9898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9902 (exit $ac_status); }; } &&
9903 { ac_try
='test -s conftest.$ac_objext'
9904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9908 (exit $ac_status); }; }; then
9909 GROFF_PATH_SEPARATOR
=":"
9911 echo "$as_me: failed program was:" >&5
9912 sed 's/^/| /' conftest.
$ac_ext >&5
9914 GROFF_PATH_SEPARATOR
=";"
9916 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9917 echo "$as_me:$LINENO: result: $GROFF_PATH_SEPARATOR" >&5
9918 echo "${ECHO_T}$GROFF_PATH_SEPARATOR" >&6
9921 # Check whether --with-alt-gs or --without-alt-gs was given.
9922 if test "${with_alt_gs+set}" = set; then
9923 withval
="$with_alt_gs"
9924 ALT_GHOSTSCRIPT_PROGS
="$withval"
9926 ALT_GHOSTSCRIPT_PROGS
="gs gswin32c gsos2"
9931 # Check whether --with-gs or --without-gs was given.
9932 if test "${with_gs+set}" = set; then
9934 GHOSTSCRIPT
=$withval
9936 if test -n "$ac_tool_prefix"; then
9937 for ac_prog
in $ALT_GHOSTSCRIPT_PROGS
9939 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9940 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
9941 echo "$as_me:$LINENO: checking for $ac_word" >&5
9942 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9943 if test "${ac_cv_prog_GHOSTSCRIPT+set}" = set; then
9944 echo $ECHO_N "(cached) $ECHO_C" >&6
9946 if test -n "$GHOSTSCRIPT"; then
9947 ac_cv_prog_GHOSTSCRIPT
="$GHOSTSCRIPT" # Let the user override the test.
9949 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9953 test -z "$as_dir" && as_dir
=.
9954 for ac_exec_ext
in '' $ac_executable_extensions; do
9955 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9956 ac_cv_prog_GHOSTSCRIPT
="$ac_tool_prefix$ac_prog"
9957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9965 GHOSTSCRIPT
=$ac_cv_prog_GHOSTSCRIPT
9966 if test -n "$GHOSTSCRIPT"; then
9967 echo "$as_me:$LINENO: result: $GHOSTSCRIPT" >&5
9968 echo "${ECHO_T}$GHOSTSCRIPT" >&6
9970 echo "$as_me:$LINENO: result: no" >&5
9971 echo "${ECHO_T}no" >&6
9974 test -n "$GHOSTSCRIPT" && break
9977 if test -z "$GHOSTSCRIPT"; then
9978 ac_ct_GHOSTSCRIPT
=$GHOSTSCRIPT
9979 for ac_prog
in $ALT_GHOSTSCRIPT_PROGS
9981 # Extract the first word of "$ac_prog", so it can be a program name with args.
9982 set dummy
$ac_prog; ac_word
=$2
9983 echo "$as_me:$LINENO: checking for $ac_word" >&5
9984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9985 if test "${ac_cv_prog_ac_ct_GHOSTSCRIPT+set}" = set; then
9986 echo $ECHO_N "(cached) $ECHO_C" >&6
9988 if test -n "$ac_ct_GHOSTSCRIPT"; then
9989 ac_cv_prog_ac_ct_GHOSTSCRIPT
="$ac_ct_GHOSTSCRIPT" # Let the user override the test.
9991 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9995 test -z "$as_dir" && as_dir
=.
9996 for ac_exec_ext
in '' $ac_executable_extensions; do
9997 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9998 ac_cv_prog_ac_ct_GHOSTSCRIPT
="$ac_prog"
9999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10007 ac_ct_GHOSTSCRIPT
=$ac_cv_prog_ac_ct_GHOSTSCRIPT
10008 if test -n "$ac_ct_GHOSTSCRIPT"; then
10009 echo "$as_me:$LINENO: result: $ac_ct_GHOSTSCRIPT" >&5
10010 echo "${ECHO_T}$ac_ct_GHOSTSCRIPT" >&6
10012 echo "$as_me:$LINENO: result: no" >&5
10013 echo "${ECHO_T}no" >&6
10016 test -n "$ac_ct_GHOSTSCRIPT" && break
10019 if test "x$ac_ct_GHOSTSCRIPT" = x
; then
10020 GHOSTSCRIPT
="missing"
10022 if test "$build" != "$host"; then
10023 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
10024 whose name does not start with the host triplet. If you think this
10025 configuration is useful to you, please write to autoconf@gnu.org." >&5
10026 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
10027 whose name does not start with the host triplet. If you think this
10028 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
10030 GHOSTSCRIPT
=$ac_ct_GHOSTSCRIPT
10035 test "$GHOSTSCRIPT" = "no" && GHOSTSCRIPT
=missing
10038 make_install_html
=install_html
10041 # Extract the first word of "pnmcut", so it can be a program name with args.
10042 set dummy pnmcut
; ac_word
=$2
10043 echo "$as_me:$LINENO: checking for $ac_word" >&5
10044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10045 if test "${ac_cv_prog_pnmcut+set}" = set; then
10046 echo $ECHO_N "(cached) $ECHO_C" >&6
10048 if test -n "$pnmcut"; then
10049 ac_cv_prog_pnmcut
="$pnmcut" # Let the user override the test.
10051 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10052 for as_dir
in $PATH
10055 test -z "$as_dir" && as_dir
=.
10056 for ac_exec_ext
in '' $ac_executable_extensions; do
10057 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10058 ac_cv_prog_pnmcut
="found"
10059 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10065 test -z "$ac_cv_prog_pnmcut" && ac_cv_prog_pnmcut
="missing"
10068 pnmcut
=$ac_cv_prog_pnmcut
10069 if test -n "$pnmcut"; then
10070 echo "$as_me:$LINENO: result: $pnmcut" >&5
10071 echo "${ECHO_T}$pnmcut" >&6
10073 echo "$as_me:$LINENO: result: no" >&5
10074 echo "${ECHO_T}no" >&6
10077 if test $pnmcut = missing
; then
10078 missing
="$missing \`pnmcut'"
10079 fi;# Extract the first word of "pnmcrop", so it can be a program name with args.
10080 set dummy pnmcrop
; ac_word
=$2
10081 echo "$as_me:$LINENO: checking for $ac_word" >&5
10082 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10083 if test "${ac_cv_prog_pnmcrop+set}" = set; then
10084 echo $ECHO_N "(cached) $ECHO_C" >&6
10086 if test -n "$pnmcrop"; then
10087 ac_cv_prog_pnmcrop
="$pnmcrop" # Let the user override the test.
10089 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10090 for as_dir
in $PATH
10093 test -z "$as_dir" && as_dir
=.
10094 for ac_exec_ext
in '' $ac_executable_extensions; do
10095 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10096 ac_cv_prog_pnmcrop
="found"
10097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10103 test -z "$ac_cv_prog_pnmcrop" && ac_cv_prog_pnmcrop
="missing"
10106 pnmcrop
=$ac_cv_prog_pnmcrop
10107 if test -n "$pnmcrop"; then
10108 echo "$as_me:$LINENO: result: $pnmcrop" >&5
10109 echo "${ECHO_T}$pnmcrop" >&6
10111 echo "$as_me:$LINENO: result: no" >&5
10112 echo "${ECHO_T}no" >&6
10115 if test $pnmcrop = missing
; then
10116 missing
="$missing \`pnmcrop'"
10117 fi;# Extract the first word of "pnmtopng", so it can be a program name with args.
10118 set dummy pnmtopng
; ac_word
=$2
10119 echo "$as_me:$LINENO: checking for $ac_word" >&5
10120 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10121 if test "${ac_cv_prog_pnmtopng+set}" = set; then
10122 echo $ECHO_N "(cached) $ECHO_C" >&6
10124 if test -n "$pnmtopng"; then
10125 ac_cv_prog_pnmtopng
="$pnmtopng" # Let the user override the test.
10127 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10128 for as_dir
in $PATH
10131 test -z "$as_dir" && as_dir
=.
10132 for ac_exec_ext
in '' $ac_executable_extensions; do
10133 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10134 ac_cv_prog_pnmtopng
="found"
10135 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10141 test -z "$ac_cv_prog_pnmtopng" && ac_cv_prog_pnmtopng
="missing"
10144 pnmtopng
=$ac_cv_prog_pnmtopng
10145 if test -n "$pnmtopng"; then
10146 echo "$as_me:$LINENO: result: $pnmtopng" >&5
10147 echo "${ECHO_T}$pnmtopng" >&6
10149 echo "$as_me:$LINENO: result: no" >&5
10150 echo "${ECHO_T}no" >&6
10153 if test $pnmtopng = missing
; then
10154 missing
="$missing \`pnmtopng'"
10155 fi;# Extract the first word of "psselect", so it can be a program name with args.
10156 set dummy psselect
; ac_word
=$2
10157 echo "$as_me:$LINENO: checking for $ac_word" >&5
10158 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10159 if test "${ac_cv_prog_psselect+set}" = set; then
10160 echo $ECHO_N "(cached) $ECHO_C" >&6
10162 if test -n "$psselect"; then
10163 ac_cv_prog_psselect
="$psselect" # Let the user override the test.
10165 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10166 for as_dir
in $PATH
10169 test -z "$as_dir" && as_dir
=.
10170 for ac_exec_ext
in '' $ac_executable_extensions; do
10171 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10172 ac_cv_prog_psselect
="found"
10173 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10179 test -z "$ac_cv_prog_psselect" && ac_cv_prog_psselect
="missing"
10182 psselect
=$ac_cv_prog_psselect
10183 if test -n "$psselect"; then
10184 echo "$as_me:$LINENO: result: $psselect" >&5
10185 echo "${ECHO_T}$psselect" >&6
10187 echo "$as_me:$LINENO: result: no" >&5
10188 echo "${ECHO_T}no" >&6
10191 if test $psselect = missing
; then
10192 missing
="$missing \`psselect'"
10193 fi;# Extract the first word of "pnmtops", so it can be a program name with args.
10194 set dummy pnmtops
; ac_word
=$2
10195 echo "$as_me:$LINENO: checking for $ac_word" >&5
10196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10197 if test "${ac_cv_prog_pnmtops+set}" = set; then
10198 echo $ECHO_N "(cached) $ECHO_C" >&6
10200 if test -n "$pnmtops"; then
10201 ac_cv_prog_pnmtops
="$pnmtops" # Let the user override the test.
10203 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10204 for as_dir
in $PATH
10207 test -z "$as_dir" && as_dir
=.
10208 for ac_exec_ext
in '' $ac_executable_extensions; do
10209 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10210 ac_cv_prog_pnmtops
="found"
10211 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10217 test -z "$ac_cv_prog_pnmtops" && ac_cv_prog_pnmtops
="missing"
10220 pnmtops
=$ac_cv_prog_pnmtops
10221 if test -n "$pnmtops"; then
10222 echo "$as_me:$LINENO: result: $pnmtops" >&5
10223 echo "${ECHO_T}$pnmtops" >&6
10225 echo "$as_me:$LINENO: result: no" >&5
10226 echo "${ECHO_T}no" >&6
10229 if test $pnmtops = missing
; then
10230 missing
="$missing \`pnmtops'"
10233 test "$GHOSTSCRIPT" = "missing" && missing
="$missing \`gs'"
10235 if test -n "$missing"; then
10236 plural
=`set $missing; test $# -gt 1 && echo s`
10237 missing
=`set $missing
10239 while test $# -gt 0
10242 1) missing="$missing$1" ;;
10243 2) missing="$missing$1 and " ;;
10244 *) missing="$missing$1, " ;;
10253 { echo "$as_me:$LINENO: WARNING: missing program$plural:
10257 cannot be found in the PATH.
10258 Consequently, groff's HTML backend (grohtml) will not work properly;
10259 therefore, it will neither be possible to prepare, nor to install,
10260 documentation in HTML format.
10262 echo "$as_me: WARNING: missing program$plural:
10266 cannot be found in the PATH.
10267 Consequently, groff's HTML backend (grohtml) will not work properly;
10268 therefore, it will neither be possible to prepare, nor to install,
10269 documentation in HTML format.
10276 # Check whether --with-alt-awk or --without-alt-awk was given.
10277 if test "${with_alt_awk+set}" = set; then
10278 withval
="$with_alt_awk"
10279 ALT_AWK_PROGS
="$withval"
10281 ALT_AWK_PROGS
="gawk mawk nawk awk"
10286 # Check whether --with-awk or --without-awk was given.
10287 if test "${with_awk+set}" = set; then
10288 withval
="$with_awk"
10291 if test -n "$ac_tool_prefix"; then
10292 for ac_prog
in $ALT_AWK_PROGS
10294 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10295 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
10296 echo "$as_me:$LINENO: checking for $ac_word" >&5
10297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10298 if test "${ac_cv_prog_AWK+set}" = set; then
10299 echo $ECHO_N "(cached) $ECHO_C" >&6
10301 if test -n "$AWK"; then
10302 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
10304 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10305 for as_dir
in $PATH
10308 test -z "$as_dir" && as_dir
=.
10309 for ac_exec_ext
in '' $ac_executable_extensions; do
10310 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10311 ac_cv_prog_AWK
="$ac_tool_prefix$ac_prog"
10312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10320 AWK
=$ac_cv_prog_AWK
10321 if test -n "$AWK"; then
10322 echo "$as_me:$LINENO: result: $AWK" >&5
10323 echo "${ECHO_T}$AWK" >&6
10325 echo "$as_me:$LINENO: result: no" >&5
10326 echo "${ECHO_T}no" >&6
10329 test -n "$AWK" && break
10332 if test -z "$AWK"; then
10334 for ac_prog
in $ALT_AWK_PROGS
10336 # Extract the first word of "$ac_prog", so it can be a program name with args.
10337 set dummy
$ac_prog; ac_word
=$2
10338 echo "$as_me:$LINENO: checking for $ac_word" >&5
10339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10340 if test "${ac_cv_prog_ac_ct_AWK+set}" = set; then
10341 echo $ECHO_N "(cached) $ECHO_C" >&6
10343 if test -n "$ac_ct_AWK"; then
10344 ac_cv_prog_ac_ct_AWK
="$ac_ct_AWK" # Let the user override the test.
10346 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10347 for as_dir
in $PATH
10350 test -z "$as_dir" && as_dir
=.
10351 for ac_exec_ext
in '' $ac_executable_extensions; do
10352 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10353 ac_cv_prog_ac_ct_AWK
="$ac_prog"
10354 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10362 ac_ct_AWK
=$ac_cv_prog_ac_ct_AWK
10363 if test -n "$ac_ct_AWK"; then
10364 echo "$as_me:$LINENO: result: $ac_ct_AWK" >&5
10365 echo "${ECHO_T}$ac_ct_AWK" >&6
10367 echo "$as_me:$LINENO: result: no" >&5
10368 echo "${ECHO_T}no" >&6
10371 test -n "$ac_ct_AWK" && break
10374 if test "x$ac_ct_AWK" = x
; then
10377 if test "$build" != "$host"; then
10378 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
10379 whose name does not start with the host triplet. If you think this
10380 configuration is useful to you, please write to autoconf@gnu.org." >&5
10381 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
10382 whose name does not start with the host triplet. If you think this
10383 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
10390 test "$AWK" = "no" && AWK
=missing
10395 make_install_pdfdoc
=install_pdfdoc
10398 test "$AWK" = missing
&& missing
="\`awk'"
10399 test "$GHOSTSCRIPT" = missing
&& missing
="$missing \`gs'"
10400 if test -n "$missing"; then
10401 plural
=`set $missing; test $# -eq 2 && echo s`
10402 test x
$plural = xs \
10403 && missing
=`set $missing; echo "$1 and $2"` \
10404 || missing
=`echo $missing`
10407 make_install_pdfdoc
=
10409 { echo "$as_me:$LINENO: WARNING: missing program$plural:
10411 The program$plural $missing cannot be found in the PATH.
10412 Consequently, groff's PDF formatter (pdfroff) will not work properly;
10413 therefore, it will neither be possible to prepare, nor to install,
10414 documentation in PDF format.
10416 echo "$as_me: WARNING: missing program$plural:
10418 The program$plural $missing cannot be found in the PATH.
10419 Consequently, groff's PDF formatter (pdfroff) will not work properly;
10420 therefore, it will neither be possible to prepare, nor to install,
10421 documentation in PDF format.
10427 echo "$as_me:$LINENO: checking whether pnmtops can handle the -nosetpage option" >&5
10428 echo $ECHO_N "checking whether pnmtops can handle the -nosetpage option... $ECHO_C" >&6
10429 if echo P2
2 2 255 0 1 2 0 | pnmtops
-nosetpage > /dev
/null
2>&1 ; then
10430 echo "$as_me:$LINENO: result: yes" >&5
10431 echo "${ECHO_T}yes" >&6
10432 pnmtops_nosetpage
="pnmtops -nosetpage"
10434 echo "$as_me:$LINENO: result: no" >&5
10435 echo "${ECHO_T}no" >&6
10436 pnmtops_nosetpage
="pnmtops"
10440 ac_config_files
="$ac_config_files stamp-h"
10442 ac_config_files
="$ac_config_files Makefile doc/Makefile src/utils/xtotroff/Makefile"
10444 ac_config_files
="$ac_config_files contrib/gdiffmk/tests/runtests"
10446 ac_config_files
="$ac_config_files test-groff"
10448 cat >confcache
<<\_ACEOF
10449 # This file is a shell script that caches the results of configure
10450 # tests run on this system so they can be shared between configure
10451 # scripts and configure runs, see configure's option --config-cache.
10452 # It is not useful on other systems. If it contains results you don't
10453 # want to keep, you may remove or edit it.
10455 # config.status only pays attention to the cache file if you give it
10456 # the --recheck option to rerun configure.
10458 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10459 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10460 # following values.
10464 # The following way of writing the cache mishandles newlines in values,
10465 # but we know of no workaround that is simple, portable, and efficient.
10466 # So, don't put newlines in cache variables' values.
10467 # Ultrix sh set writes to stderr and can't be redirected directly,
10468 # and sets the high bit in the cache file unless we assign to the vars.
10471 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10473 # `set' does not quote correctly, so add quotes (double-quote
10474 # substitution turns \\\\ into \\, and sed turns \\ into \).
10477 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10480 # `set' quotes correctly as required by POSIX, so do not add quotes.
10482 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10489 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10491 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10493 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
10494 if test -w $cache_file; then
10495 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10496 cat confcache
>$cache_file
10498 echo "not updating unwritable cache $cache_file"
10503 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
10504 # Let make expand exec_prefix.
10505 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
10507 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10508 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10509 # trailing colons and then remove the whole line if VPATH becomes empty
10510 # (actually we leave an empty line to preserve line numbers).
10511 if test "x$srcdir" = x.
; then
10512 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
10513 s/:*\$(srcdir):*/:/;
10514 s/:*\${srcdir}:*/:/;
10516 s/^\([^=]*=[ ]*\):*/\1/;
10522 DEFS
=-DHAVE_CONFIG_H
10526 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
10527 # 1. Remove the extension, and $U if already installed.
10528 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
10529 ac_i
=`echo "$ac_i" | sed "$ac_script"`
10531 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
10532 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
10534 LIBOBJS
=$ac_libobjs
10536 LTLIBOBJS
=$ac_ltlibobjs
10540 : ${CONFIG_STATUS=./config.status}
10541 ac_clean_files_save
=$ac_clean_files
10542 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
10543 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10544 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10545 cat >$CONFIG_STATUS <<_ACEOF
10547 # Generated by $as_me.
10548 # Run this file to recreate the current configuration.
10549 # Compiler output produced by configure, useful for debugging
10550 # configure, is in config.log if it exists.
10553 ac_cs_recheck=false
10555 SHELL=\${CONFIG_SHELL-$SHELL}
10558 cat >>$CONFIG_STATUS <<\_ACEOF
10559 ## --------------------- ##
10560 ## M4sh Initialization. ##
10561 ## --------------------- ##
10563 # Be Bourne compatible
10564 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
10567 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10568 # is contrary to our usage. Disable this feature.
10569 alias -g '${1+"$@"}'='"$@"'
10570 setopt NO_GLOB_SUBST
10571 elif test -n "${BASH_VERSION+set}${KSH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
10574 BIN_SH
=xpg4
; export BIN_SH
# for Tru64
10575 DUALCASE
=1; export DUALCASE
# for MKS sh
10579 # Avoid depending upon Character Ranges.
10580 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
10581 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10582 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
10583 as_cr_digits
='0123456789'
10584 as_cr_alnum
=$as_cr_Letters$as_cr_digits
10586 # The user is always right.
10587 if test "${PATH_SEPARATOR+set}" != set; then
10588 echo "#! /bin/sh" >conf$$.sh
10589 echo "exit 0" >>conf$$.sh
10591 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
10599 # Support unset when possible.
10600 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
10607 # Find who we are. Look in the path if we contain no path at all
10610 *[\\/]* ) as_myself
=$0 ;;
10611 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10612 for as_dir
in $PATH
10615 test -z "$as_dir" && as_dir
=.
10616 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
10621 # We did not find ourselves, most probably we were run as `sh COMMAND'
10622 # in which case we are not to be found in the path.
10623 if test "x$as_myself" = x
; then
10626 if test ! -f "$as_myself"; then
10627 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute file name" >&5
10628 echo "$as_me: error: cannot find myself; rerun with an absolute file name" >&2;}
10629 { (exit 1); exit 1; }; }
10632 # Work around bugs in pre-3.0 UWIN ksh.
10633 for as_var
in ENV MAIL MAILPATH
10634 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
10642 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10643 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10644 LC_TELEPHONE LC_TIME
10646 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10647 eval $as_var=C
; export $as_var
10649 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
10653 # Required to use basename.
10654 if expr a
: '\(a\)' >/dev
/null
2>&1; then
10660 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
10661 as_basename
=basename
10667 # Name of the executable.
10668 as_me
=`$as_basename "$0" ||
10669 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10670 X"$0" : 'X\(//\)$' \| \
10671 X"$0" : 'X\(/\)$' \| \
10672 . : '\(.\)' 2>/dev/null ||
10674 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
10675 /^X\/\(\/\/\)$/{ s//\1/; q; }
10676 /^X\/\(\/\).*/{ s//\1/; q; }
10682 as_lineno_1
=$LINENO
10683 as_lineno_2
=$LINENO
10684 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
10685 test "x$as_lineno_1" != "x$as_lineno_2" &&
10686 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
10688 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10689 # uniformly replaced by the line number. The first 'sed' inserts a
10690 # line-number line after each line using $LINENO; the second 'sed'
10691 # does the real work. The second script uses 'N' to pair each
10692 # line-number line with the line containing $LINENO, and appends
10693 # trailing '-' during substitution so that $LINENO is not a special
10694 # case at line end.
10695 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10696 # scripts with optimization help from Paolo Bonzini. Blame Lee
10697 # E. McMahon (1931-1989) for sed's syntax. :-)
10709 s,[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\),\2\1\2,
10712 ' >$as_me.lineno
&&
10713 chmod +x
$as_me.lineno ||
10714 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
10715 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
10716 { (exit 1); exit 1; }; }
10718 # Don't try to exec as it changes $[0], causing all sort of problems
10719 # (the dirname of $[0] is not the place where we might find the
10720 # original and so on. Autoconf is especially sensible to this).
10722 # Exit status is that of the last command.
10727 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
10728 *c
*,-n*) ECHO_N
= ECHO_C
='
10730 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
10731 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
10734 if expr a
: '\(a\)' >/dev
/null
2>&1; then
10740 rm -f conf$$ conf$$.exe conf$$.
file
10742 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
10743 # We could just check for DJGPP; but this test a) works b) is more generic
10744 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
10745 if test -f conf$$.exe
; then
10746 # Don't use ln at all; we don't have any links
10751 elif ln conf$$.
file conf$$
2>/dev
/null
; then
10756 rm -f conf$$ conf$$.exe conf$$.
file
10758 if mkdir
-p .
2>/dev
/null
; then
10761 test -d .
/-p && rmdir .
/-p
10765 as_executable_p
="test -f"
10767 # Sed expression to map a string onto a valid CPP name.
10768 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10770 # Sed expression to map a string onto a valid variable name.
10771 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10775 # We need space, tab and new line, in precisely that order.
10785 # Open the log real soon, to keep \$[0] and so on meaningful, and to
10786 # report actual input values of CONFIG_FILES etc. instead of their
10787 # values after options handling. Logging --version etc. is OK.
10791 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10792 ## Running $as_me. ##
10797 This file was extended by $as_me, which was
10798 generated by GNU Autoconf 2.59b. Invocation command line was
10800 CONFIG_FILES = $CONFIG_FILES
10801 CONFIG_HEADERS = $CONFIG_HEADERS
10802 CONFIG_LINKS = $CONFIG_LINKS
10803 CONFIG_COMMANDS = $CONFIG_COMMANDS
10807 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
10811 # Files that config.status was made for.
10812 if test -n "$ac_config_files"; then
10813 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
10816 if test -n "$ac_config_headers"; then
10817 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
10820 if test -n "$ac_config_links"; then
10821 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
10824 if test -n "$ac_config_commands"; then
10825 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
10828 cat >>$CONFIG_STATUS <<\_ACEOF
10831 \`$as_me' instantiates files from templates according to the
10832 current configuration.
10834 Usage: $0 [OPTIONS] [FILE]...
10836 -h, --help print this help, then exit
10837 -V, --version print version number, then exit
10838 -q, --quiet do not print progress messages
10839 -d, --debug don't remove temporary files
10840 --recheck update $as_me by reconfiguring in the same conditions
10841 --file=FILE[:TEMPLATE]
10842 instantiate the configuration file FILE
10843 --header=FILE[:TEMPLATE]
10844 instantiate the configuration header FILE
10846 Configuration files:
10849 Configuration headers:
10852 Report bugs to <bug-autoconf@gnu.org>."
10855 cat >>$CONFIG_STATUS <<_ACEOF
10858 configured by $0, generated by GNU Autoconf 2.59b,
10859 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
10861 Copyright (C) 2004 Free Software Foundation, Inc.
10862 This config.status script is free software; the Free Software Foundation
10863 gives unlimited permission to copy, distribute and modify it."
10868 cat >>$CONFIG_STATUS <<\_ACEOF
10869 # If no file are specified by the user, then we need to provide default
10870 # value. By we need to know if files were specified by the user.
10876 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
10877 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
10885 *) # This is not an option, so the user has probably given explicit
10888 ac_need_defaults
=false
;;
10892 # Handling of the options.
10894 cat >>$CONFIG_STATUS <<\_ACEOF
10895 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
10897 --version |
--vers* |
-V )
10898 echo "$ac_cs_version"; exit 0 ;;
10900 # Conflict between --help and --header
10901 { { echo "$as_me:$LINENO: error: ambiguous option: $1
10902 Try \`$0 --help' for more information." >&5
10903 echo "$as_me: error: ambiguous option: $1
10904 Try \`$0 --help' for more information." >&2;}
10905 { (exit 1); exit 1; }; };;
10906 --help |
--hel |
-h )
10907 echo "$ac_cs_usage"; exit 0 ;;
10908 --debug |
--d* |
-d )
10910 --file |
--fil |
--fi |
--f )
10912 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
10913 ac_need_defaults
=false
;;
10914 --header |
--heade |
--head |
--hea )
10916 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
10917 ac_need_defaults
=false
;;
10918 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
10919 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
10922 # This is an error.
10923 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
10924 Try \`$0 --help' for more information." >&5
10925 echo "$as_me: error: unrecognized option: $1
10926 Try \`$0 --help' for more information." >&2;}
10927 { (exit 1); exit 1; }; } ;;
10929 *) ac_config_targets
="$ac_config_targets $1" ;;
10935 ac_configure_extra_args
=
10937 if $ac_cs_silent; then
10939 ac_configure_extra_args
="$ac_configure_extra_args --silent"
10943 cat >>$CONFIG_STATUS <<_ACEOF
10944 if \$ac_cs_recheck; then
10945 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10946 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10955 cat >>$CONFIG_STATUS <<\_ACEOF
10956 for ac_config_target
in $ac_config_targets
10958 case "$ac_config_target" in
10959 # Handling of arguments.
10960 "stamp-h" ) CONFIG_FILES
="$CONFIG_FILES stamp-h" ;;
10961 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
10962 "doc/Makefile" ) CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
10963 "src/utils/xtotroff/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/xtotroff/Makefile" ;;
10964 "contrib/gdiffmk/tests/runtests" ) CONFIG_FILES
="$CONFIG_FILES contrib/gdiffmk/tests/runtests" ;;
10965 "test-groff" ) CONFIG_FILES
="$CONFIG_FILES test-groff" ;;
10966 "src/include/config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS src/include/config.h:src/include/config.hin" ;;
10967 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10968 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10969 { (exit 1); exit 1; }; };;
10973 # If the user did not use the arguments to specify the items to instantiate,
10974 # then the envvar interface is used. Set only those that are not.
10975 # We use the long form for the default assignment because of an extremely
10976 # bizarre bug on SunOS 4.1.3.
10977 if $ac_need_defaults; then
10978 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
10979 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
10982 # Have a temporary directory for convenience. Make it in the build tree
10983 # simply because there is no reason to put it here, and in addition,
10984 # creating and moving files from /tmp can sometimes cause problems.
10985 # Create a temporary directory, and hook for its removal unless debugging.
10988 trap 'exit_status=$?; rm -f -r $tmp && exit $exit_status' 0
10989 trap '{ (exit 1); exit 1; }' 1 2 13 15
10992 # Create a (secure) tmp directory for tmp files.
10995 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
10996 test -n "$tmp" && test -d "$tmp"
10999 tmp
=.
/confstat$$
-$RANDOM
11000 (umask 077 && mkdir
$tmp)
11003 echo "$me: cannot create a temporary directory in ." >&2
11004 { (exit 1); exit 1; }
11009 cat >>$CONFIG_STATUS <<_ACEOF
11012 # CONFIG_FILES section.
11015 # No need to generate the scripts if there are no CONFIG_FILES.
11016 # This happens for instance when ./config.status config.h
11017 if test -n "\$CONFIG_FILES"; then
11018 # Protect against being on the right side of a sed subst in config.status.
11019 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11020 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11021 s,@SHELL@,$SHELL,;t t
11022 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11023 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11024 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11025 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11026 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11027 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11028 s,@exec_prefix@,$exec_prefix,;t t
11029 s,@prefix@,$prefix,;t t
11030 s,@program_transform_name@,$program_transform_name,;t t
11031 s,@bindir@,$bindir,;t t
11032 s,@sbindir@,$sbindir,;t t
11033 s,@libexecdir@,$libexecdir,;t t
11034 s,@datadir@,$datadir,;t t
11035 s,@sysconfdir@,$sysconfdir,;t t
11036 s,@sharedstatedir@,$sharedstatedir,;t t
11037 s,@localstatedir@,$localstatedir,;t t
11038 s,@libdir@,$libdir,;t t
11039 s,@includedir@,$includedir,;t t
11040 s,@oldincludedir@,$oldincludedir,;t t
11041 s,@infodir@,$infodir,;t t
11042 s,@mandir@,$mandir,;t t
11043 s,@build_alias@,$build_alias,;t t
11044 s,@host_alias@,$host_alias,;t t
11045 s,@target_alias@,$target_alias,;t t
11046 s,@DEFS@,$DEFS,;t t
11047 s,@ECHO_C@,$ECHO_C,;t t
11048 s,@ECHO_N@,$ECHO_N,;t t
11049 s,@ECHO_T@,$ECHO_T,;t t
11050 s,@LIBS@,$LIBS,;t t
11052 s,@CFLAGS@,$CFLAGS,;t t
11053 s,@LDFLAGS@,$LDFLAGS,;t t
11054 s,@CPPFLAGS@,$CPPFLAGS,;t t
11055 s,@ac_ct_CC@,$ac_ct_CC,;t t
11056 s,@EXEEXT@,$EXEEXT,;t t
11057 s,@OBJEXT@,$OBJEXT,;t t
11059 s,@CXXFLAGS@,$CXXFLAGS,;t t
11060 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
11061 s,@TTYDEVDIRS@,$TTYDEVDIRS,;t t
11062 s,@OTHERDEVDIRS@,$OTHERDEVDIRS,;t t
11064 s,@X_CFLAGS@,$X_CFLAGS,;t t
11065 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
11066 s,@X_LIBS@,$X_LIBS,;t t
11067 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
11068 s,@XDEVDIRS@,$XDEVDIRS,;t t
11069 s,@XPROGDIRS@,$XPROGDIRS,;t t
11070 s,@XLIBDIRS@,$XLIBDIRS,;t t
11071 s,@appresdir@,$appresdir,;t t
11075 s,@PSPRINT@,$PSPRINT,;t t
11076 s,@DVIPRINT@,$DVIPRINT,;t t
11077 s,@PERLPATH@,$PERLPATH,;t t
11078 s,@YACC@,$YACC,;t t
11079 s,@RANLIB@,$RANLIB,;t t
11080 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
11081 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
11082 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11083 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11084 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11085 s,@LN_S@,$LN_S,;t t
11086 s,@SH_SCRIPT_SED_CMD@,$SH_SCRIPT_SED_CMD,;t t
11087 s,@GREP@,$GREP,;t t
11088 s,@EGREP@,$EGREP,;t t
11089 s,@LIBC@,$LIBC,;t t
11090 s,@LIBM@,$LIBM,;t t
11091 s,@LIBOBJS@,$LIBOBJS,;t t
11092 s,@BROKEN_SPOOLER_FLAGS@,$BROKEN_SPOOLER_FLAGS,;t t
11093 s,@PAGE@,$PAGE,;t t
11095 s,@sys_tmac_prefix@,$sys_tmac_prefix,;t t
11096 s,@tmac_wrap@,$tmac_wrap,;t t
11097 s,@GROFF_PATH_SEPARATOR@,$GROFF_PATH_SEPARATOR,;t t
11098 s,@ALT_GHOSTSCRIPT_PROGS@,$ALT_GHOSTSCRIPT_PROGS,;t t
11099 s,@GHOSTSCRIPT@,$GHOSTSCRIPT,;t t
11100 s,@ac_ct_GHOSTSCRIPT@,$ac_ct_GHOSTSCRIPT,;t t
11101 s,@pnmcut@,$pnmcut,;t t
11102 s,@pnmcrop@,$pnmcrop,;t t
11103 s,@pnmtopng@,$pnmtopng,;t t
11104 s,@psselect@,$psselect,;t t
11105 s,@pnmtops@,$pnmtops,;t t
11106 s,@make_html@,$make_html,;t t
11107 s,@make_install_html@,$make_install_html,;t t
11108 s,@ALT_AWK_PROGS@,$ALT_AWK_PROGS,;t t
11110 s,@ac_ct_AWK@,$ac_ct_AWK,;t t
11111 s,@make_pdfdoc@,$make_pdfdoc,;t t
11112 s,@make_install_pdfdoc@,$make_install_pdfdoc,;t t
11113 s,@pnmtops_nosetpage@,$pnmtops_nosetpage,;t t
11114 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
11119 cat >>$CONFIG_STATUS <<\_ACEOF
11120 # Split the substitutions into bite-sized pieces for seds with
11121 # small command number limits, like on Digital OSF/1 and HP-UX.
11122 ac_max_sed_lines
=48
11123 ac_sed_frag
=1 # Number of current file.
11124 ac_beg
=1 # First line for current file.
11125 ac_end
=$ac_max_sed_lines # Line after last line for current file.
11128 while $ac_more_lines; do
11129 if test $ac_beg -gt 1; then
11130 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
11132 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
11134 if test ! -s $tmp/subs.frag
; then
11135 ac_more_lines
=false
11137 # The purpose of the label and of the branching condition is to
11138 # speed up the sed processing (if there are no `@' at all, there
11139 # is no need to browse any of the substitutions).
11140 # These are the two extra sed commands mentioned above.
11142 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
11143 if test -z "$ac_sed_cmds"; then
11144 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
11146 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11148 ac_sed_frag
=`expr $ac_sed_frag + 1`
11150 ac_end
=`expr $ac_end + $ac_max_sed_lines`
11153 if test -z "$ac_sed_cmds"; then
11156 fi # test -n "$CONFIG_FILES"
11159 cat >>$CONFIG_STATUS <<\_ACEOF
11160 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
11161 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11163 - |
*:- |
*:-:* ) # input from stdin
11165 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
11166 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
11167 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
11168 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
11169 * ) ac_file_in
=$ac_file.
in ;;
11172 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11173 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
11174 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11175 X"$ac_file" : 'X\(//\)[^/]' \| \
11176 X"$ac_file" : 'X\(//\)$' \| \
11177 X"$ac_file" : 'X\(/\)' \| \
11178 . : '\(.\)' 2>/dev/null ||
11180 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11181 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11182 /^X\(\/\/\)$/{ s//\1/; q; }
11183 /^X\(\/\).*/{ s//\1/; q; }
11185 { if $as_mkdir_p; then
11186 test -d "$ac_dir" || mkdir
-p "$ac_dir"
11190 while test ! -d "$as_dir"; do
11191 as_dirs
="$as_dir $as_dirs"
11192 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
11193 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11194 X"$as_dir" : 'X\(//\)[^/]' \| \
11195 X"$as_dir" : 'X\(//\)$' \| \
11196 X"$as_dir" : 'X\(/\)' \| \
11197 . : '\(.\)' 2>/dev/null ||
11199 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11200 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11201 /^X\(\/\/\)$/{ s//\1/; q; }
11202 /^X\(\/\).*/{ s//\1/; q; }
11205 test ! -n "$as_dirs" || mkdir
$as_dirs
11206 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11207 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11208 { (exit 1); exit 1; }; }; }
11212 if test "$ac_dir" != .
; then
11213 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11214 # A "../" for each directory in $ac_dir_suffix.
11215 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11217 ac_dir_suffix
= ac_top_builddir
=
11221 .
) # No --srcdir option. We are building in place.
11223 if test -z "$ac_top_builddir"; then
11226 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
11228 [\\/]* | ?
:[\\/]* ) # Absolute name.
11229 ac_srcdir
=$srcdir$ac_dir_suffix;
11230 ac_top_srcdir
=$srcdir ;;
11231 *) # Relative name.
11232 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
11233 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
11236 # Do not use `cd foo && pwd` to compute absolute names, because
11237 # the directories may not exist.
11239 .
) ac_abs_builddir
="$ac_dir";;
11242 .
) ac_abs_builddir
=`pwd`;;
11243 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
11244 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
11247 case $ac_abs_builddir in
11248 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
11250 case ${ac_top_builddir}.
in
11251 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
11252 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
11253 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
11256 case $ac_abs_builddir in
11257 .
) ac_abs_srcdir
=$ac_srcdir;;
11260 .
) ac_abs_srcdir
=$ac_abs_builddir;;
11261 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
11262 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
11265 case $ac_abs_builddir in
11266 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
11268 case $ac_top_srcdir in
11269 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
11270 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
11271 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
11277 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
11278 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
11281 if test x
"$ac_file" != x-
; then
11282 { echo "$as_me:$LINENO: creating $ac_file" >&5
11283 echo "$as_me: creating $ac_file" >&6;}
11286 # Let's still pretend it is `configure' which instantiates (i.e., don't
11287 # use $as_me), people would be surprised to read:
11288 # /* config.h. Generated by config.status. */
11289 if test x
"$ac_file" = x-
; then
11292 configure_input
="$ac_file. "
11294 configure_input
=$configure_input"Generated from `echo $ac_file_in |
11295 sed 's,.*/,,'` by configure."
11297 # First look for the input files in the build tree, otherwise in the
11299 ac_file_inputs
=`IFS=:
11300 for f in $ac_file_in; do
11302 -) echo $tmp/stdin ;;
11304 # Absolute (can't be DOS-style, as IFS=:)
11305 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11306 echo "$as_me: error: cannot find input file: $f" >&2;}
11307 { (exit 1); exit 1; }; }
11310 if test -f "$f"; then
11313 elif test -f "$srcdir/$f"; then
11318 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11319 echo "$as_me: error: cannot find input file: $f" >&2;}
11320 { (exit 1); exit 1; }; }
11323 done` ||
{ (exit 1); exit 1; }
11325 cat >>$CONFIG_STATUS <<_ACEOF
11329 cat >>$CONFIG_STATUS <<\_ACEOF
11331 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
11332 s
,@configure_input@
,$configure_input,;t t
11333 s
,@srcdir@
,$ac_srcdir,;t t
11334 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
11335 s
,@top_srcdir@
,$ac_top_srcdir,;t t
11336 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
11337 s
,@builddir@
,$ac_builddir,;t t
11338 s
,@abs_builddir@
,$ac_abs_builddir,;t t
11339 s
,@top_builddir@
,$ac_top_builddir,;t t
11340 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
11341 s
,@INSTALL@
,$ac_INSTALL,;t t
11342 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11344 if test x"$ac_file" != x-; then
11345 mv $tmp/out $ac_file
11351 # Run the commands associated with the file.
11353 stamp-h ) echo timestamp > stamp-h ;;
11354 contrib/gdiffmk/tests/runtests ) chmod +x contrib/gdiffmk/tests/runtests ;;
11355 test-groff ) chmod +x test-groff ;;
11359 cat >>$CONFIG_STATUS <<\_ACEOF
11362 # CONFIG_HEADER section.
11365 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
11366 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11368 # ac_d sets the value in "#define NAME VALUE" lines.
11369 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11370 ac_dB
='[ ].*$,\1#\2'
11373 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11374 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11375 ac_uB
='$,\1#\2define\3'
11379 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
11380 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11382 - |
*:- |
*:-:* ) # input from stdin
11384 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
11385 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
11386 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
11387 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
11388 * ) ac_file_in
=$ac_file.
in ;;
11391 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
11392 echo "$as_me: creating $ac_file" >&6;}
11394 # First look for the input files in the build tree, otherwise in the
11396 ac_file_inputs
=`IFS=:
11397 for f in $ac_file_in; do
11399 -) echo $tmp/stdin ;;
11401 # Absolute (can't be DOS-style, as IFS=:)
11402 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11403 echo "$as_me: error: cannot find input file: $f" >&2;}
11404 { (exit 1); exit 1; }; }
11405 # Quote $f, to prevent DOS file names from being IFS'd.
11408 if test -f "$f"; then
11411 elif test -f "$srcdir/$f"; then
11416 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11417 echo "$as_me: error: cannot find input file: $f" >&2;}
11418 { (exit 1); exit 1; }; }
11421 done` ||
{ (exit 1); exit 1; }
11422 # Remove the trailing spaces.
11423 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
11427 # Transform confdefs.h into two sed scripts, `conftest.defines' and
11428 # `conftest.undefs', that substitutes the proper values into
11429 # config.h.in to produce config.h. The first handles `#define'
11430 # templates, and the second `#undef' templates.
11431 # And first: Protect against being on the right side of a sed subst in
11432 # config.status. Protect against being in an unquoted here document
11433 # in config.status.
11434 rm -f conftest.defines conftest.undefs
11435 # Using a here document instead of a string reduces the quoting nightmare.
11436 # Putting comments in sed scripts is not portable.
11438 # `end' is used to avoid that the second main sed command (meant for
11439 # 0-ary CPP macros) applies to n-ary macro definitions.
11440 # See the Autoconf documentation for `clear'.
11441 cat >confdef2sed.
sed <<\_ACEOF
11446 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
11448 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11451 # If some macros were called several times there might be several times
11452 # the same #defines, which is useless. Nevertheless, we may not want to
11453 # sort them, since we want the *last* AC-DEFINE to be honored.
11454 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
11455 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
11456 rm -f confdef2sed.sed
11458 # This sed command replaces #undef with comments. This is necessary, for
11459 # example, in the case of _POSIX_SOURCE, which is predefined and required
11460 # on some systems where configure will not decide to define it.
11461 cat >>conftest.undefs <<\_ACEOF
11462 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11465 # Break up conftest.defines because some shells have a limit on the size
11466 # of here documents, and old seds have small limits too (100 cmds).
11467 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
11468 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
11469 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
11470 echo ' :' >>$CONFIG_STATUS
11471 rm -f conftest.tail
11472 while grep . conftest.defines >/dev/null
11474 # Write a limited-size here document to $tmp/defines.sed.
11475 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
11476 # Speed up: don't consider the non `#define' lines.
11477 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
11478 # Work around the forget-to-reset-the-flag bug.
11479 echo 't clr' >>$CONFIG_STATUS
11480 echo ': clr' >>$CONFIG_STATUS
11481 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
11483 sed -f $tmp/defines.sed $tmp/in >$tmp/out
11485 mv $tmp/out $tmp/in
11487 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
11488 rm -f conftest.defines
11489 mv conftest.
tail conftest.defines
11491 rm -f conftest.defines
11492 echo ' fi # grep' >>$CONFIG_STATUS
11493 echo >>$CONFIG_STATUS
11495 # Break up conftest.undefs because some shells have a limit on the size
11496 # of here documents, and old seds have small limits too (100 cmds).
11497 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
11498 rm -f conftest.
tail
11499 while grep . conftest.undefs
>/dev
/null
11501 # Write a limited-size here document to $tmp/undefs.sed.
11502 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11503 # Speed up: don't consider the non
`#undef'
11504 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
11505 # Work around the forget-to-reset-the-flag bug.
11506 echo 't clr' >>$CONFIG_STATUS
11507 echo ': clr' >>$CONFIG_STATUS
11508 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
11510 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
11512 mv $tmp/out $tmp/in
11514 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
11515 rm -f conftest.undefs
11516 mv conftest.tail conftest.undefs
11518 rm -f conftest.undefs
11520 cat >>$CONFIG_STATUS <<\_ACEOF
11521 # Let's still pretend it is `configure
' which instantiates (i.e., don't
11522 # use $as_me), people would be surprised to read:
11523 # /* config.h. Generated by config.status. */
11524 if test x
"$ac_file" = x-
; then
11525 echo "/* Generated by configure. */" >$tmp/config.h
11527 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
11529 cat $tmp/in >>$tmp/config.h
11531 if test x
"$ac_file" != x-
; then
11532 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
11533 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11534 echo "$as_me: $ac_file is unchanged" >&6;}
11536 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
11537 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11538 X"$ac_file" : 'X\(//\)[^/]' \| \
11539 X"$ac_file" : 'X\(//\)$' \| \
11540 X"$ac_file" : 'X\(/\)' \| \
11541 . : '\(.\)' 2>/dev/null ||
11543 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11544 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11545 /^X\(\/\/\)$/{ s//\1/; q; }
11546 /^X\(\/\).*/{ s//\1/; q; }
11548 { if $as_mkdir_p; then
11549 test -d "$ac_dir" || mkdir
-p "$ac_dir"
11553 while test ! -d "$as_dir"; do
11554 as_dirs
="$as_dir $as_dirs"
11555 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
11556 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11557 X"$as_dir" : 'X\(//\)[^/]' \| \
11558 X"$as_dir" : 'X\(//\)$' \| \
11559 X"$as_dir" : 'X\(/\)' \| \
11560 . : '\(.\)' 2>/dev/null ||
11562 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11563 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11564 /^X\(\/\/\)$/{ s//\1/; q; }
11565 /^X\(\/\).*/{ s//\1/; q; }
11568 test ! -n "$as_dirs" || mkdir
$as_dirs
11569 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11570 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11571 { (exit 1); exit 1; }; }; }
11574 mv $tmp/config.h
$ac_file
11578 rm -f $tmp/config.h
11583 cat >>$CONFIG_STATUS <<\_ACEOF
11585 { (exit 0); exit 0; }
11587 chmod +x
$CONFIG_STATUS
11588 ac_clean_files
=$ac_clean_files_save
11591 # configure is writing to config.log, and then calls config.status.
11592 # config.status does its own redirection, appending to config.log.
11593 # Unfortunately, on DOS this fails, as config.log is still kept open
11594 # by configure, so config.status won't be able to write to it; its
11595 # output is simply discarded. So we exec the FD to /dev/null,
11596 # effectively closing config.log, so it can be properly (re)opened and
11597 # appended to by config.status. When coming back to configure, we
11598 # need to make the FD available again.
11599 if test "$no_create" != yes; then
11601 ac_config_status_args
=
11602 test "$silent" = yes &&
11603 ac_config_status_args
="$ac_config_status_args --quiet"
11605 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
11607 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11608 # would make configure fail if this is the last instruction.
11609 $ac_cs_success ||
{ (exit 1); exit 1; }
11613 if test -z "$groff_no_x"; then
11614 if test "x$with_appresdir" = "x"; then
11615 { echo "$as_me:$LINENO:
11617 The application resource file for gxditview will be installed as
11619 $appresdir/GXditview
11621 (an existing file will be saved as \`GXditview.old').
11622 To install it into a different directory, say, \`/etc/gxditview',
11623 add \`--with-appresdir=/etc/gxditview' to the configure script
11624 command line options and rerun it. The environment variable
11625 \`APPLRESDIR' must then be set to \`/etc/' (note the trailing slash),
11626 omitting the \`gxditview' part which is automatically appended by
11627 the X11 searching routines for resource files. More details can be
11628 found in the X(7) manual page.
11632 The application resource file for gxditview will be installed as
11634 $appresdir/GXditview
11636 (an existing file will be saved as \`GXditview.old').
11637 To install it into a different directory, say, \`/etc/gxditview',
11638 add \`--with-appresdir=/etc/gxditview' to the configure script
11639 command line options and rerun it. The environment variable
11640 \`APPLRESDIR' must then be set to \`/etc/' (note the trailing slash),
11641 omitting the \`gxditview' part which is automatically appended by
11642 the X11 searching routines for resource files. More details can be
11643 found in the X(7) manual page.