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 for return type of signal handlers" >&5
8289 echo $ECHO_N "checking for return type of signal handlers... $ECHO_C" >&6
8290 for groff_declaration
in \
8291 'extern "C" void (*signal (int, void (*)(int)))(int);' \
8292 'extern "C" void (*signal (int, void (*)(int)) throw ())(int);' \
8293 'void (*signal ()) ();'
8295 cat >conftest.
$ac_ext <<_ACEOF
8299 cat confdefs.h
>>conftest.
$ac_ext
8300 cat >>conftest.
$ac_ext <<_ACEOF
8301 /* end confdefs.h. */
8304 #include <sys/types.h>
8325 rm -f conftest.
$ac_objext
8326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8327 (eval $ac_compile) 2>conftest.er1
8329 grep -v '^ *+' conftest.er1
>conftest.err
8331 cat conftest.err
>&5
8332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8333 (exit $ac_status); } &&
8334 { ac_try
='test -z "$ac_c_werror_flag"
8335 || test ! -s conftest.err'
8336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8340 (exit $ac_status); }; } &&
8341 { ac_try
='test -s conftest.$ac_objext'
8342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8346 (exit $ac_status); }; }; then
8349 echo "$as_me: failed program was:" >&5
8350 sed 's/^/| /' conftest.
$ac_ext >&5
8354 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8357 if test -n "$groff_declaration"; then
8358 echo "$as_me:$LINENO: result: void" >&5
8359 echo "${ECHO_T}void" >&6
8361 cat >>confdefs.h
<<\_ACEOF
8362 #define RETSIGTYPE void
8366 echo "$as_me:$LINENO: result: int" >&5
8367 echo "${ECHO_T}int" >&6
8369 cat >>confdefs.h
<<\_ACEOF
8370 #define RETSIGTYPE int
8374 echo "$as_me:$LINENO: checking struct exception" >&5
8375 echo $ECHO_N "checking struct exception... $ECHO_C" >&6
8376 cat >conftest.
$ac_ext <<_ACEOF
8380 cat confdefs.h
>>conftest.
$ac_ext
8381 cat >>conftest.
$ac_ext <<_ACEOF
8382 /* end confdefs.h. */
8401 rm -f conftest.
$ac_objext
8402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8403 (eval $ac_compile) 2>conftest.er1
8405 grep -v '^ *+' conftest.er1
>conftest.err
8407 cat conftest.err
>&5
8408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8409 (exit $ac_status); } &&
8410 { ac_try
='test -z "$ac_c_werror_flag"
8411 || test ! -s conftest.err'
8412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8416 (exit $ac_status); }; } &&
8417 { ac_try
='test -s conftest.$ac_objext'
8418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8422 (exit $ac_status); }; }; then
8423 echo "$as_me:$LINENO: result: yes" >&5
8424 echo "${ECHO_T}yes" >&6
8426 cat >>confdefs.h
<<\_ACEOF
8427 #define HAVE_STRUCT_EXCEPTION 1
8431 echo "$as_me: failed program was:" >&5
8432 sed 's/^/| /' conftest.
$ac_ext >&5
8434 echo "$as_me:$LINENO: result: no" >&5
8435 echo "${ECHO_T}no" >&6
8437 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8439 # checks for libraries
8440 echo "$as_me:$LINENO: checking for main in -lc" >&5
8441 echo $ECHO_N "checking for main in -lc... $ECHO_C" >&6
8442 if test "${ac_cv_lib_c_main+set}" = set; then
8443 echo $ECHO_N "(cached) $ECHO_C" >&6
8445 ac_check_lib_save_LIBS
=$LIBS
8447 cat >conftest.
$ac_ext <<_ACEOF
8450 cat confdefs.h
>>conftest.
$ac_ext
8451 cat >>conftest.
$ac_ext <<_ACEOF
8452 /* end confdefs.h. */
8463 rm -f conftest.
$ac_objext conftest
$ac_exeext
8464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8465 (eval $ac_link) 2>conftest.er1
8467 grep -v '^ *+' conftest.er1
>conftest.err
8469 cat conftest.err
>&5
8470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8471 (exit $ac_status); } &&
8472 { ac_try
='test -z "$ac_c_werror_flag"
8473 || test ! -s conftest.err'
8474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8478 (exit $ac_status); }; } &&
8479 { ac_try
='test -s conftest$ac_exeext'
8480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8484 (exit $ac_status); }; }; then
8485 ac_cv_lib_c_main
=yes
8487 echo "$as_me: failed program was:" >&5
8488 sed 's/^/| /' conftest.
$ac_ext >&5
8492 rm -f conftest.err conftest.
$ac_objext \
8493 conftest
$ac_exeext conftest.
$ac_ext
8494 LIBS
=$ac_check_lib_save_LIBS
8496 echo "$as_me:$LINENO: result: $ac_cv_lib_c_main" >&5
8497 echo "${ECHO_T}$ac_cv_lib_c_main" >&6
8498 if test $ac_cv_lib_c_main = yes; then
8503 echo "$as_me:$LINENO: checking for sin in -lm" >&5
8504 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
8505 if test "${ac_cv_lib_m_sin+set}" = set; then
8506 echo $ECHO_N "(cached) $ECHO_C" >&6
8508 ac_check_lib_save_LIBS
=$LIBS
8510 cat >conftest.
$ac_ext <<_ACEOF
8513 cat confdefs.h
>>conftest.
$ac_ext
8514 cat >>conftest.
$ac_ext <<_ACEOF
8515 /* end confdefs.h. */
8517 /* Override any gcc2 internal prototype to avoid an error. */
8521 /* We use char because int might match the return type of a gcc2
8522 builtin and then its argument prototype would still apply. */
8532 rm -f conftest.
$ac_objext conftest
$ac_exeext
8533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8534 (eval $ac_link) 2>conftest.er1
8536 grep -v '^ *+' conftest.er1
>conftest.err
8538 cat conftest.err
>&5
8539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8540 (exit $ac_status); } &&
8541 { ac_try
='test -z "$ac_c_werror_flag"
8542 || test ! -s conftest.err'
8543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8547 (exit $ac_status); }; } &&
8548 { ac_try
='test -s conftest$ac_exeext'
8549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8553 (exit $ac_status); }; }; then
8556 echo "$as_me: failed program was:" >&5
8557 sed 's/^/| /' conftest.
$ac_ext >&5
8561 rm -f conftest.err conftest.
$ac_objext \
8562 conftest
$ac_exeext conftest.
$ac_ext
8563 LIBS
=$ac_check_lib_save_LIBS
8565 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
8566 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
8567 if test $ac_cv_lib_m_sin = yes; then
8573 # checks for functions
8576 for ac_header
in stdlib.h unistd.h
8578 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8579 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8580 echo "$as_me:$LINENO: checking for $ac_header" >&5
8581 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8582 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8583 echo $ECHO_N "(cached) $ECHO_C" >&6
8585 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8586 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8588 # Is the header compilable?
8589 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8590 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8591 cat >conftest.
$ac_ext <<_ACEOF
8594 cat confdefs.h
>>conftest.
$ac_ext
8595 cat >>conftest.
$ac_ext <<_ACEOF
8596 /* end confdefs.h. */
8597 $ac_includes_default
8598 #include <$ac_header>
8600 rm -f conftest.
$ac_objext
8601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8602 (eval $ac_compile) 2>conftest.er1
8604 grep -v '^ *+' conftest.er1
>conftest.err
8606 cat conftest.err
>&5
8607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8608 (exit $ac_status); } &&
8609 { ac_try
='test -z "$ac_c_werror_flag"
8610 || test ! -s conftest.err'
8611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8615 (exit $ac_status); }; } &&
8616 { ac_try
='test -s conftest.$ac_objext'
8617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8621 (exit $ac_status); }; }; then
8622 ac_header_compiler
=yes
8624 echo "$as_me: failed program was:" >&5
8625 sed 's/^/| /' conftest.
$ac_ext >&5
8627 ac_header_compiler
=no
8629 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8630 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8631 echo "${ECHO_T}$ac_header_compiler" >&6
8633 # Is the header present?
8634 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8635 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8636 cat >conftest.
$ac_ext <<_ACEOF
8639 cat confdefs.h
>>conftest.
$ac_ext
8640 cat >>conftest.
$ac_ext <<_ACEOF
8641 /* end confdefs.h. */
8642 #include <$ac_header>
8644 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8645 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8647 grep -v '^ *+' conftest.er1
>conftest.err
8649 cat conftest.err
>&5
8650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8651 (exit $ac_status); } >/dev
/null
; then
8652 if test -s conftest.err
; then
8653 ac_cpp_err
=$ac_c_preproc_warn_flag
8654 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8661 if test -z "$ac_cpp_err"; then
8662 ac_header_preproc
=yes
8664 echo "$as_me: failed program was:" >&5
8665 sed 's/^/| /' conftest.
$ac_ext >&5
8667 ac_header_preproc
=no
8669 rm -f conftest.err conftest.
$ac_ext
8670 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8671 echo "${ECHO_T}$ac_header_preproc" >&6
8673 # So? What about this header?
8674 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8676 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8677 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8678 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8679 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8680 ac_header_preproc
=yes
8683 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8684 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8685 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8686 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8687 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8688 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8689 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8690 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8691 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8692 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8693 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8694 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8697 ## ------------------------------------------ ##
8698 ## Report this to the AC_PACKAGE_NAME lists. ##
8699 ## ------------------------------------------ ##
8702 sed "s/^/$as_me: WARNING: /" >&2
8705 echo "$as_me:$LINENO: checking for $ac_header" >&5
8706 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8707 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8708 echo $ECHO_N "(cached) $ECHO_C" >&6
8710 eval "$as_ac_Header=\$ac_header_preproc"
8712 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8713 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8716 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8717 cat >>confdefs.h
<<_ACEOF
8718 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8726 for ac_func
in getpagesize
8728 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8729 echo "$as_me:$LINENO: checking for $ac_func" >&5
8730 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8731 if eval "test \"\${$as_ac_var+set}\" = set"; then
8732 echo $ECHO_N "(cached) $ECHO_C" >&6
8734 cat >conftest.
$ac_ext <<_ACEOF
8737 cat confdefs.h
>>conftest.
$ac_ext
8738 cat >>conftest.
$ac_ext <<_ACEOF
8739 /* end confdefs.h. */
8740 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8741 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8742 #define $ac_func innocuous_$ac_func
8744 /* System header to define __stub macros and hopefully few prototypes,
8745 which can conflict with char $ac_func (); below.
8746 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8747 <limits.h> exists even on freestanding compilers. */
8750 # include <limits.h>
8752 # include <assert.h>
8757 /* Override any gcc2 internal prototype to avoid an error. */
8762 /* We use char because int might match the return type of a gcc2
8763 builtin and then its argument prototype would still apply. */
8765 /* The GNU C library defines this for functions which it implements
8766 to always fail with ENOSYS. Some functions are actually named
8767 something starting with __ and the normal name is an alias. */
8768 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8771 char (*f) () = $ac_func;
8780 return f != $ac_func;
8785 rm -f conftest.
$ac_objext conftest
$ac_exeext
8786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8787 (eval $ac_link) 2>conftest.er1
8789 grep -v '^ *+' conftest.er1
>conftest.err
8791 cat conftest.err
>&5
8792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8793 (exit $ac_status); } &&
8794 { ac_try
='test -z "$ac_c_werror_flag"
8795 || test ! -s conftest.err'
8796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8800 (exit $ac_status); }; } &&
8801 { ac_try
='test -s conftest$ac_exeext'
8802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8806 (exit $ac_status); }; }; then
8807 eval "$as_ac_var=yes"
8809 echo "$as_me: failed program was:" >&5
8810 sed 's/^/| /' conftest.
$ac_ext >&5
8812 eval "$as_ac_var=no"
8814 rm -f conftest.err conftest.
$ac_objext \
8815 conftest
$ac_exeext conftest.
$ac_ext
8817 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8818 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8819 if test `eval echo '${'$as_ac_var'}'` = yes; then
8820 cat >>confdefs.h
<<_ACEOF
8821 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8827 echo "$as_me:$LINENO: checking for working mmap" >&5
8828 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
8829 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8830 echo $ECHO_N "(cached) $ECHO_C" >&6
8832 if test "$cross_compiling" = yes; then
8833 ac_cv_func_mmap_fixed_mapped
=no
8835 cat >conftest.
$ac_ext <<_ACEOF
8838 cat confdefs.h
>>conftest.
$ac_ext
8839 cat >>conftest.
$ac_ext <<_ACEOF
8840 /* end confdefs.h. */
8841 $ac_includes_default
8842 /* malloc might have been renamed as rpl_malloc. */
8845 /* Thanks to Mike Haertel and Jim Avera for this test.
8846 Here is a matrix of mmap possibilities:
8847 mmap private not fixed
8848 mmap private fixed at somewhere currently unmapped
8849 mmap private fixed at somewhere already mapped
8850 mmap shared not fixed
8851 mmap shared fixed at somewhere currently unmapped
8852 mmap shared fixed at somewhere already mapped
8853 For private mappings, we should verify that changes cannot be read()
8854 back from the file, nor mmap's back from the file at a different
8855 address. (There have been systems where private was not correctly
8856 implemented like the infamous i386 svr4.0, and systems where the
8857 VM page cache was not coherent with the file system buffer cache
8858 like early versions of FreeBSD and possibly contemporary NetBSD.)
8859 For shared mappings, we should conversely verify that changes get
8860 propagated back to all the places they're supposed to be.
8862 Grep wants private fixed already mapped.
8863 The main things grep needs to know about mmap are:
8864 * does it exist and is it safe to write into the mmap'd area
8865 * how to use it (BSD variants) */
8868 #include <sys/mman.h>
8870 #if !STDC_HEADERS && !HAVE_STDLIB_H
8874 /* This mess was copied from the GNU getpagesize.h. */
8875 #if !HAVE_GETPAGESIZE
8876 /* Assume that all systems that can run configure have sys/param.h. */
8877 # if !HAVE_SYS_PARAM_H
8878 # define HAVE_SYS_PARAM_H 1
8881 # ifdef _SC_PAGESIZE
8882 # define getpagesize() sysconf(_SC_PAGESIZE)
8883 # else /* no _SC_PAGESIZE */
8884 # if HAVE_SYS_PARAM_H
8885 # include <sys/param.h>
8886 # ifdef EXEC_PAGESIZE
8887 # define getpagesize() EXEC_PAGESIZE
8888 # else /* no EXEC_PAGESIZE */
8890 # define getpagesize() NBPG * CLSIZE
8893 # endif /* no CLSIZE */
8894 # else /* no NBPG */
8896 # define getpagesize() NBPC
8897 # else /* no NBPC */
8899 # define getpagesize() PAGESIZE
8900 # endif /* PAGESIZE */
8901 # endif /* no NBPC */
8902 # endif /* no NBPG */
8903 # endif /* no EXEC_PAGESIZE */
8904 # else /* no HAVE_SYS_PARAM_H */
8905 # define getpagesize() 8192 /* punt totally */
8906 # endif /* no HAVE_SYS_PARAM_H */
8907 # endif /* no _SC_PAGESIZE */
8909 #endif /* no HAVE_GETPAGESIZE */
8914 char *data, *data2, *data3;
8918 pagesize = getpagesize ();
8920 /* First, make a file with some known garbage in it. */
8921 data = (char *) malloc (pagesize);
8924 for (i = 0; i < pagesize; ++i)
8925 *(data + i) = rand ();
8927 fd = creat ("conftest.mmap", 0600);
8930 if (write (fd, data, pagesize) != pagesize)
8934 /* Next, try to mmap the file at a fixed address which already has
8935 something else allocated at it. If we can, also make sure that
8936 we see the same garbage. */
8937 fd = open ("conftest.mmap", O_RDWR);
8940 data2 = (char *) malloc (2 * pagesize);
8943 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
8944 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8945 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8947 for (i = 0; i < pagesize; ++i)
8948 if (*(data + i) != *(data2 + i))
8951 /* Finally, make sure that changes to the mapped area do not
8952 percolate back to the file as seen by read(). (This is a bug on
8953 some variants of i386 svr4.0.) */
8954 for (i = 0; i < pagesize; ++i)
8955 *(data2 + i) = *(data2 + i) + 1;
8956 data3 = (char *) malloc (pagesize);
8959 if (read (fd, data3, pagesize) != pagesize)
8961 for (i = 0; i < pagesize; ++i)
8962 if (*(data + i) != *(data3 + i))
8968 rm -f conftest
$ac_exeext
8969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8970 (eval $ac_link) 2>&5
8972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8973 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8978 (exit $ac_status); }; }; then
8979 ac_cv_func_mmap_fixed_mapped
=yes
8981 echo "$as_me: program exited with status $ac_status" >&5
8982 echo "$as_me: failed program was:" >&5
8983 sed 's/^/| /' conftest.
$ac_ext >&5
8986 ac_cv_func_mmap_fixed_mapped
=no
8988 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8991 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8992 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
8993 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8995 cat >>confdefs.h
<<\_ACEOF
9003 LIBS
="$LIBS $LIBC $LIBM"
9012 for ac_func
in fmod getcwd putenv snprintf strcasecmp \
9013 strerror strncasecmp strtol
9015 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9016 echo "$as_me:$LINENO: checking for $ac_func" >&5
9017 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9018 if eval "test \"\${$as_ac_var+set}\" = set"; then
9019 echo $ECHO_N "(cached) $ECHO_C" >&6
9021 cat >conftest.
$ac_ext <<_ACEOF
9024 cat confdefs.h
>>conftest.
$ac_ext
9025 cat >>conftest.
$ac_ext <<_ACEOF
9026 /* end confdefs.h. */
9027 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9028 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9029 #define $ac_func innocuous_$ac_func
9031 /* System header to define __stub macros and hopefully few prototypes,
9032 which can conflict with char $ac_func (); below.
9033 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9034 <limits.h> exists even on freestanding compilers. */
9037 # include <limits.h>
9039 # include <assert.h>
9044 /* Override any gcc2 internal prototype to avoid an error. */
9049 /* We use char because int might match the return type of a gcc2
9050 builtin and then its argument prototype would still apply. */
9052 /* The GNU C library defines this for functions which it implements
9053 to always fail with ENOSYS. Some functions are actually named
9054 something starting with __ and the normal name is an alias. */
9055 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9058 char (*f) () = $ac_func;
9067 return f != $ac_func;
9072 rm -f conftest.
$ac_objext conftest
$ac_exeext
9073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9074 (eval $ac_link) 2>conftest.er1
9076 grep -v '^ *+' conftest.er1
>conftest.err
9078 cat conftest.err
>&5
9079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9080 (exit $ac_status); } &&
9081 { ac_try
='test -z "$ac_c_werror_flag"
9082 || test ! -s conftest.err'
9083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9087 (exit $ac_status); }; } &&
9088 { ac_try
='test -s conftest$ac_exeext'
9089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9093 (exit $ac_status); }; }; then
9094 eval "$as_ac_var=yes"
9096 echo "$as_me: failed program was:" >&5
9097 sed 's/^/| /' conftest.
$ac_ext >&5
9099 eval "$as_ac_var=no"
9101 rm -f conftest.err conftest.
$ac_objext \
9102 conftest
$ac_exeext conftest.
$ac_ext
9104 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9105 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9106 if test `eval echo '${'$as_ac_var'}'` = yes; then
9107 cat >>confdefs.h
<<_ACEOF
9108 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9113 "$ac_func.$ac_objext" | \
9114 *" $ac_func.$ac_objext" | \
9115 "$ac_func.$ac_objext "* | \
9116 *" $ac_func.$ac_objext "* ) ;;
9117 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext" ;;
9124 # vsnprintf is in the same source file as snprintf
9126 for ac_func
in vsnprintf
9128 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9129 echo "$as_me:$LINENO: checking for $ac_func" >&5
9130 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9131 if eval "test \"\${$as_ac_var+set}\" = set"; then
9132 echo $ECHO_N "(cached) $ECHO_C" >&6
9134 cat >conftest.
$ac_ext <<_ACEOF
9137 cat confdefs.h
>>conftest.
$ac_ext
9138 cat >>conftest.
$ac_ext <<_ACEOF
9139 /* end confdefs.h. */
9140 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9141 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9142 #define $ac_func innocuous_$ac_func
9144 /* System header to define __stub macros and hopefully few prototypes,
9145 which can conflict with char $ac_func (); below.
9146 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9147 <limits.h> exists even on freestanding compilers. */
9150 # include <limits.h>
9152 # include <assert.h>
9157 /* Override any gcc2 internal prototype to avoid an error. */
9162 /* We use char because int might match the return type of a gcc2
9163 builtin and then its argument prototype would still apply. */
9165 /* The GNU C library defines this for functions which it implements
9166 to always fail with ENOSYS. Some functions are actually named
9167 something starting with __ and the normal name is an alias. */
9168 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9171 char (*f) () = $ac_func;
9180 return f != $ac_func;
9185 rm -f conftest.
$ac_objext conftest
$ac_exeext
9186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9187 (eval $ac_link) 2>conftest.er1
9189 grep -v '^ *+' conftest.er1
>conftest.err
9191 cat conftest.err
>&5
9192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9193 (exit $ac_status); } &&
9194 { ac_try
='test -z "$ac_c_werror_flag"
9195 || test ! -s conftest.err'
9196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9200 (exit $ac_status); }; } &&
9201 { ac_try
='test -s conftest$ac_exeext'
9202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9206 (exit $ac_status); }; }; then
9207 eval "$as_ac_var=yes"
9209 echo "$as_me: failed program was:" >&5
9210 sed 's/^/| /' conftest.
$ac_ext >&5
9212 eval "$as_ac_var=no"
9214 rm -f conftest.err conftest.
$ac_objext \
9215 conftest
$ac_exeext conftest.
$ac_ext
9217 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9218 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9219 if test `eval echo '${'$as_ac_var'}'` = yes; then
9220 cat >>confdefs.h
<<_ACEOF
9221 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9226 "snprintf.$ac_objext" | \
9227 *" snprintf.$ac_objext" | \
9228 "snprintf.$ac_objext "* | \
9229 *" snprintf.$ac_objext "* ) ;;
9230 *) LIBOBJS
="$LIBOBJS snprintf.$ac_objext" ;;
9243 for ac_func
in gettimeofday isatty
kill rename setlocale strsep
9245 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9246 echo "$as_me:$LINENO: checking for $ac_func" >&5
9247 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9248 if eval "test \"\${$as_ac_var+set}\" = set"; then
9249 echo $ECHO_N "(cached) $ECHO_C" >&6
9251 cat >conftest.
$ac_ext <<_ACEOF
9254 cat confdefs.h
>>conftest.
$ac_ext
9255 cat >>conftest.
$ac_ext <<_ACEOF
9256 /* end confdefs.h. */
9257 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9258 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9259 #define $ac_func innocuous_$ac_func
9261 /* System header to define __stub macros and hopefully few prototypes,
9262 which can conflict with char $ac_func (); below.
9263 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9264 <limits.h> exists even on freestanding compilers. */
9267 # include <limits.h>
9269 # include <assert.h>
9274 /* Override any gcc2 internal prototype to avoid an error. */
9279 /* We use char because int might match the return type of a gcc2
9280 builtin and then its argument prototype would still apply. */
9282 /* The GNU C library defines this for functions which it implements
9283 to always fail with ENOSYS. Some functions are actually named
9284 something starting with __ and the normal name is an alias. */
9285 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9288 char (*f) () = $ac_func;
9297 return f != $ac_func;
9302 rm -f conftest.
$ac_objext conftest
$ac_exeext
9303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9304 (eval $ac_link) 2>conftest.er1
9306 grep -v '^ *+' conftest.er1
>conftest.err
9308 cat conftest.err
>&5
9309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9310 (exit $ac_status); } &&
9311 { ac_try
='test -z "$ac_c_werror_flag"
9312 || test ! -s conftest.err'
9313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9317 (exit $ac_status); }; } &&
9318 { ac_try
='test -s conftest$ac_exeext'
9319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9323 (exit $ac_status); }; }; then
9324 eval "$as_ac_var=yes"
9326 echo "$as_me: failed program was:" >&5
9327 sed 's/^/| /' conftest.
$ac_ext >&5
9329 eval "$as_ac_var=no"
9331 rm -f conftest.err conftest.
$ac_objext \
9332 conftest
$ac_exeext conftest.
$ac_ext
9334 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9335 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9336 if test `eval echo '${'$as_ac_var'}'` = yes; then
9337 cat >>confdefs.h
<<_ACEOF
9338 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9344 echo "$as_me:$LINENO: checking for mkstemp" >&5
9345 echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
9347 ac_cpp
='$CXXCPP $CPPFLAGS'
9348 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9349 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9350 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9353 cat >conftest.
$ac_ext <<_ACEOF
9357 cat confdefs.h
>>conftest.
$ac_ext
9358 cat >>conftest.
$ac_ext <<_ACEOF
9359 /* end confdefs.h. */
9380 rm -f conftest.
$ac_objext conftest
$ac_exeext
9381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9382 (eval $ac_link) 2>conftest.er1
9384 grep -v '^ *+' conftest.er1
>conftest.err
9386 cat conftest.err
>&5
9387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9388 (exit $ac_status); } &&
9389 { ac_try
='test -z "$ac_cxx_werror_flag"
9390 || test ! -s conftest.err'
9391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9395 (exit $ac_status); }; } &&
9396 { ac_try
='test -s conftest$ac_exeext'
9397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9401 (exit $ac_status); }; }; then
9402 echo "$as_me:$LINENO: result: yes" >&5
9403 echo "${ECHO_T}yes" >&6
9405 cat >>confdefs.h
<<\_ACEOF
9406 #define HAVE_MKSTEMP 1
9410 echo "$as_me: failed program was:" >&5
9411 sed 's/^/| /' conftest.
$ac_ext >&5
9413 echo "$as_me:$LINENO: result: no" >&5
9414 echo "${ECHO_T}no" >&6
9416 "mkstemp.$ac_objext" | \
9417 *" mkstemp.$ac_objext" | \
9418 "mkstemp.$ac_objext "* | \
9419 *" mkstemp.$ac_objext "* ) ;;
9420 *) LIBOBJS
="$LIBOBJS mkstemp.$ac_objext" ;;
9424 rm -f conftest.err conftest.
$ac_objext \
9425 conftest
$ac_exeext conftest.
$ac_ext
9427 ac_cpp
='$CPP $CPPFLAGS'
9428 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9429 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9430 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
9432 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
9433 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
9434 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
9435 echo $ECHO_N "(cached) $ECHO_C" >&6
9437 cat >conftest.
$ac_ext <<_ACEOF
9440 cat confdefs.h
>>conftest.
$ac_ext
9441 cat >>conftest.
$ac_ext <<_ACEOF
9442 /* end confdefs.h. */
9443 $ac_includes_default
9448 char *p = (char *) sys_siglist;
9455 rm -f conftest.
$ac_objext
9456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9457 (eval $ac_compile) 2>conftest.er1
9459 grep -v '^ *+' conftest.er1
>conftest.err
9461 cat conftest.err
>&5
9462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9463 (exit $ac_status); } &&
9464 { ac_try
='test -z "$ac_c_werror_flag"
9465 || test ! -s conftest.err'
9466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9470 (exit $ac_status); }; } &&
9471 { ac_try
='test -s conftest.$ac_objext'
9472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9476 (exit $ac_status); }; }; then
9477 ac_cv_have_decl_sys_siglist
=yes
9479 echo "$as_me: failed program was:" >&5
9480 sed 's/^/| /' conftest.
$ac_ext >&5
9482 ac_cv_have_decl_sys_siglist
=no
9484 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9486 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
9487 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
9488 if test $ac_cv_have_decl_sys_siglist = yes; then
9490 cat >>confdefs.h
<<_ACEOF
9491 #define HAVE_DECL_SYS_SIGLIST 1
9496 cat >>confdefs.h
<<_ACEOF
9497 #define HAVE_DECL_SYS_SIGLIST 0
9505 # checks for compiler characteristics
9507 ac_cpp
='$CXXCPP $CPPFLAGS'
9508 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9509 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9510 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9512 echo "$as_me:$LINENO: checking whether ANSI array delete syntax is supported" >&5
9513 echo $ECHO_N "checking whether ANSI array delete syntax is supported... $ECHO_C" >&6
9514 cat >conftest.
$ac_ext <<_ACEOF
9518 cat confdefs.h
>>conftest.
$ac_ext
9519 cat >>conftest.
$ac_ext <<_ACEOF
9520 /* end confdefs.h. */
9527 char *p = new char[5];
9536 rm -f conftest.
$ac_objext
9537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9538 (eval $ac_compile) 2>conftest.er1
9540 grep -v '^ *+' conftest.er1
>conftest.err
9542 cat conftest.err
>&5
9543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9544 (exit $ac_status); } &&
9545 { ac_try
='test -z "$ac_cxx_werror_flag"
9546 || test ! -s conftest.err'
9547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9551 (exit $ac_status); }; } &&
9552 { ac_try
='test -s conftest.$ac_objext'
9553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9557 (exit $ac_status); }; }; then
9558 echo "$as_me:$LINENO: result: yes" >&5
9559 echo "${ECHO_T}yes" >&6
9561 echo "$as_me: failed program was:" >&5
9562 sed 's/^/| /' conftest.
$ac_ext >&5
9564 echo "$as_me:$LINENO: result: no" >&5
9565 echo "${ECHO_T}no" >&6
9567 cat >>confdefs.h
<<\_ACEOF
9568 #define ARRAY_DELETE_NEEDS_SIZE 1
9572 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9574 ac_cpp
='$CPP $CPPFLAGS'
9575 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9576 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9577 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
9580 ac_cpp
='$CXXCPP $CPPFLAGS'
9581 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9582 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9583 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9585 echo "$as_me:$LINENO: checking traditional preprocessor" >&5
9586 echo $ECHO_N "checking traditional preprocessor... $ECHO_C" >&6
9587 cat >conftest.
$ac_ext <<_ACEOF
9591 cat confdefs.h
>>conftest.
$ac_ext
9592 cat >>conftest.
$ac_ext <<_ACEOF
9593 /* end confdefs.h. */
9596 #define name2(a, b) a/**/b
9604 int name2(foo, bar);
9612 rm -f conftest.
$ac_objext
9613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9614 (eval $ac_compile) 2>conftest.er1
9616 grep -v '^ *+' conftest.er1
>conftest.err
9618 cat conftest.err
>&5
9619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9620 (exit $ac_status); } &&
9621 { ac_try
='test -z "$ac_cxx_werror_flag"
9622 || test ! -s conftest.err'
9623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9627 (exit $ac_status); }; } &&
9628 { ac_try
='test -s conftest.$ac_objext'
9629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9633 (exit $ac_status); }; }; then
9634 echo "$as_me:$LINENO: result: yes" >&5
9635 echo "${ECHO_T}yes" >&6
9637 cat >>confdefs.h
<<\_ACEOF
9638 #define TRADITIONAL_CPP 1
9642 echo "$as_me: failed program was:" >&5
9643 sed 's/^/| /' conftest.
$ac_ext >&5
9645 echo "$as_me:$LINENO: result: no" >&5
9646 echo "${ECHO_T}no" >&6
9648 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9650 ac_cpp
='$CPP $CPPFLAGS'
9651 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9652 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9653 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
9656 # checks for operating system services
9657 echo "$as_me:$LINENO: checking w_coredump" >&5
9658 echo $ECHO_N "checking w_coredump... $ECHO_C" >&6
9659 if test "$cross_compiling" = yes; then
9660 echo "$as_me:$LINENO: result: no" >&5
9661 echo "${ECHO_T}no" >&6
9663 cat >conftest.
$ac_ext <<_ACEOF
9667 cat confdefs.h
>>conftest.
$ac_ext
9668 cat >>conftest.
$ac_ext <<_ACEOF
9669 /* end confdefs.h. */
9672 #include <sys/types.h>
9673 #include <sys/wait.h>
9687 ((union wait *)&i)->w_coredump = 1;
9698 rm -f conftest
$ac_exeext
9699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9700 (eval $ac_link) 2>&5
9702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9703 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9708 (exit $ac_status); }; }; then
9709 echo "$as_me:$LINENO: result: yes" >&5
9710 echo "${ECHO_T}yes" >&6
9712 cat >>confdefs.h
<<\_ACEOF
9713 #define WCOREFLAG 0200
9717 echo "$as_me: program exited with status $ac_status" >&5
9718 echo "$as_me: failed program was:" >&5
9719 sed 's/^/| /' conftest.
$ac_ext >&5
9722 echo "$as_me:$LINENO: result: no" >&5
9723 echo "${ECHO_T}no" >&6
9725 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9728 # other random stuff
9729 echo "$as_me:$LINENO: checking default value for grops -b option" >&5
9730 echo $ECHO_N "checking default value for grops -b option... $ECHO_C" >&6
9731 test -n "${BROKEN_SPOOLER_FLAGS}" || BROKEN_SPOOLER_FLAGS
=0
9732 echo "$as_me:$LINENO: result: $BROKEN_SPOOLER_FLAGS" >&5
9733 echo "${ECHO_T}$BROKEN_SPOOLER_FLAGS" >&6
9735 echo "$as_me:$LINENO: checking default paper size" >&5
9736 echo $ECHO_N "checking default paper size... $ECHO_C" >&6
9737 groff_prefix
=$prefix
9738 test "x$prefix" = "xNONE" && groff_prefix
=$ac_default_prefix
9739 if test -z "$PAGE"; then
9741 if test -r $groff_prefix/share
/groff
/font
/devps
/DESC
; then
9742 descfile
=$groff_prefix/share
/groff
/font
/devps
/DESC
9743 elif test -r $groff_prefix/lib
/groff
/font
/devps
/DESC
; then
9744 descfile
=$groff_prefix/lib
/groff
/font
/devps
/DESC
9746 for f
in $groff_prefix/share
/groff
/*/font
/devps
/DESC
; do
9754 if test -n "$descfile"; then
9755 if grep '^paperlength[ ]\+841890' $descfile >/dev
/null
2>&1; then
9757 elif grep '^papersize[ ]\+[aA]4' $descfile >/dev
/null
2>&1; then
9763 if test -z "$PAGE"; then
9764 dom
=`awk '($1 == "dom" || $1 == "search") { print $2; exit}' \
9765 /etc/resolv.conf 2>/dev/null`
9766 if test -z "$dom"; then
9767 dom
=`(domainname) 2>/dev/null | tr -d '+'`
9769 ||
test "$dom" = '(none)'; then
9770 dom
=`(hostname) 2>/dev/null | grep '\.'`
9773 # If the top-level domain is two letters and it's not `us' or `ca'
9774 # then they probably use A4 paper.
9776 *.
[Uu
][Ss
]|
*.
[Cc
][Aa
])
9783 test -n "$PAGE" || PAGE
=letter
9784 if test "x$PAGE" = "xA4"; then
9786 cat >>confdefs.h
<<\_ACEOF
9791 echo "$as_me:$LINENO: result: $PAGE" >&5
9792 echo "${ECHO_T}$PAGE" >&6
9794 echo "$as_me:$LINENO: checking for existing troff installation" >&5
9795 echo $ECHO_N "checking for existing troff installation... $ECHO_C" >&6
9796 if test "x`(echo .tm '|n(.g' | tr '|' '\\\\' | troff -z -i 2>&1) 2>/dev/null`" = x0
; then
9797 echo "$as_me:$LINENO: result: yes" >&5
9798 echo "${ECHO_T}yes" >&6
9801 echo "$as_me:$LINENO: result: no" >&5
9802 echo "${ECHO_T}no" >&6
9806 echo "$as_me:$LINENO: checking for prefix of system macro packages" >&5
9807 echo $ECHO_N "checking for prefix of system macro packages... $ECHO_C" >&6
9809 sys_tmac_file_prefix
=
9810 for d
in /usr
/share
/lib
/tmac
/usr
/lib
/tmac
; do
9811 for t
in "" tmac.
; do
9814 if test -z "$sys_tmac_prefix" \
9816 && grep '^\.if' $f >/dev
/null
2>&1; then
9817 sys_tmac_prefix
=$d/$t
9818 sys_tmac_file_prefix
=$t
9823 echo "$as_me:$LINENO: result: $sys_tmac_prefix" >&5
9824 echo "${ECHO_T}$sys_tmac_prefix" >&6
9827 echo "$as_me:$LINENO: checking which system macro packages should be made available" >&5
9828 echo $ECHO_N "checking which system macro packages should be made available... $ECHO_C" >&6
9830 if test "x$sys_tmac_file_prefix" = "xtmac."; then
9831 for f
in $sys_tmac_prefix*; do
9832 suff
=`echo $f | sed -e "s;$sys_tmac_prefix;;"`
9837 grep "Copyright.*Free Software Foundation" $f >/dev
/null \
9838 || tmac_wrap
="$tmac_wrap $suff" ;;
9841 elif test -n "$sys_tmac_prefix"; then
9842 files
=`echo $sys_tmac_prefix*`
9843 grep "\\.so" $files >conftest.sol
9846 ${sys_tmac_prefix}e
)
9854 if grep "\\.so.*/$b\$" conftest.sol
>/dev
/null \
9855 ||
grep -l "Copyright.*Free Software Foundation" $f >/dev
/null
; then
9858 suff
=`echo $f | sed -e "s;$sys_tmac_prefix;;"`
9863 tmac_wrap
="$tmac_wrap $suff" ;;
9870 echo "$as_me:$LINENO: result: $tmac_wrap" >&5
9871 echo "${ECHO_T}$tmac_wrap" >&6
9873 echo "$as_me:$LINENO: checking separator character to use in groff search paths" >&5
9874 echo $ECHO_N "checking separator character to use in groff search paths... $ECHO_C" >&6
9875 cp ${srcdir}/src
/include
/nonposix.h conftest.h
9876 cat >conftest.
$ac_ext <<_ACEOF
9880 cat confdefs.h
>>conftest.
$ac_ext
9881 cat >>conftest.
$ac_ext <<_ACEOF
9882 /* end confdefs.h. */
9886 #include "conftest.h"
9894 #if PATH_SEP_CHAR == ';'
9895 make an error "Path separator is ';'"
9904 rm -f conftest.
$ac_objext
9905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9906 (eval $ac_compile) 2>conftest.er1
9908 grep -v '^ *+' conftest.er1
>conftest.err
9910 cat conftest.err
>&5
9911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9912 (exit $ac_status); } &&
9913 { ac_try
='test -z "$ac_c_werror_flag"
9914 || test ! -s conftest.err'
9915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9919 (exit $ac_status); }; } &&
9920 { ac_try
='test -s conftest.$ac_objext'
9921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9925 (exit $ac_status); }; }; then
9926 GROFF_PATH_SEPARATOR
=":"
9928 echo "$as_me: failed program was:" >&5
9929 sed 's/^/| /' conftest.
$ac_ext >&5
9931 GROFF_PATH_SEPARATOR
=";"
9933 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9934 echo "$as_me:$LINENO: result: $GROFF_PATH_SEPARATOR" >&5
9935 echo "${ECHO_T}$GROFF_PATH_SEPARATOR" >&6
9938 # Check whether --with-alt-gs or --without-alt-gs was given.
9939 if test "${with_alt_gs+set}" = set; then
9940 withval
="$with_alt_gs"
9941 ALT_GHOSTSCRIPT_PROGS
="$withval"
9943 ALT_GHOSTSCRIPT_PROGS
="gs gswin32c gsos2"
9948 # Check whether --with-gs or --without-gs was given.
9949 if test "${with_gs+set}" = set; then
9951 GHOSTSCRIPT
=$withval
9953 if test -n "$ac_tool_prefix"; then
9954 for ac_prog
in $ALT_GHOSTSCRIPT_PROGS
9956 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9957 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
9958 echo "$as_me:$LINENO: checking for $ac_word" >&5
9959 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9960 if test "${ac_cv_prog_GHOSTSCRIPT+set}" = set; then
9961 echo $ECHO_N "(cached) $ECHO_C" >&6
9963 if test -n "$GHOSTSCRIPT"; then
9964 ac_cv_prog_GHOSTSCRIPT
="$GHOSTSCRIPT" # Let the user override the test.
9966 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9970 test -z "$as_dir" && as_dir
=.
9971 for ac_exec_ext
in '' $ac_executable_extensions; do
9972 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9973 ac_cv_prog_GHOSTSCRIPT
="$ac_tool_prefix$ac_prog"
9974 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9982 GHOSTSCRIPT
=$ac_cv_prog_GHOSTSCRIPT
9983 if test -n "$GHOSTSCRIPT"; then
9984 echo "$as_me:$LINENO: result: $GHOSTSCRIPT" >&5
9985 echo "${ECHO_T}$GHOSTSCRIPT" >&6
9987 echo "$as_me:$LINENO: result: no" >&5
9988 echo "${ECHO_T}no" >&6
9991 test -n "$GHOSTSCRIPT" && break
9994 if test -z "$GHOSTSCRIPT"; then
9995 ac_ct_GHOSTSCRIPT
=$GHOSTSCRIPT
9996 for ac_prog
in $ALT_GHOSTSCRIPT_PROGS
9998 # Extract the first word of "$ac_prog", so it can be a program name with args.
9999 set dummy
$ac_prog; ac_word
=$2
10000 echo "$as_me:$LINENO: checking for $ac_word" >&5
10001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10002 if test "${ac_cv_prog_ac_ct_GHOSTSCRIPT+set}" = set; then
10003 echo $ECHO_N "(cached) $ECHO_C" >&6
10005 if test -n "$ac_ct_GHOSTSCRIPT"; then
10006 ac_cv_prog_ac_ct_GHOSTSCRIPT
="$ac_ct_GHOSTSCRIPT" # Let the user override the test.
10008 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10009 for as_dir
in $PATH
10012 test -z "$as_dir" && as_dir
=.
10013 for ac_exec_ext
in '' $ac_executable_extensions; do
10014 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10015 ac_cv_prog_ac_ct_GHOSTSCRIPT
="$ac_prog"
10016 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10024 ac_ct_GHOSTSCRIPT
=$ac_cv_prog_ac_ct_GHOSTSCRIPT
10025 if test -n "$ac_ct_GHOSTSCRIPT"; then
10026 echo "$as_me:$LINENO: result: $ac_ct_GHOSTSCRIPT" >&5
10027 echo "${ECHO_T}$ac_ct_GHOSTSCRIPT" >&6
10029 echo "$as_me:$LINENO: result: no" >&5
10030 echo "${ECHO_T}no" >&6
10033 test -n "$ac_ct_GHOSTSCRIPT" && break
10036 if test "x$ac_ct_GHOSTSCRIPT" = x
; then
10037 GHOSTSCRIPT
="missing"
10039 if test "$build" != "$host"; then
10040 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
10041 whose name does not start with the host triplet. If you think this
10042 configuration is useful to you, please write to autoconf@gnu.org." >&5
10043 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
10044 whose name does not start with the host triplet. If you think this
10045 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
10047 GHOSTSCRIPT
=$ac_ct_GHOSTSCRIPT
10052 test "$GHOSTSCRIPT" = "no" && GHOSTSCRIPT
=missing
10055 make_install_html
=install_html
10058 # Extract the first word of "pnmcut", so it can be a program name with args.
10059 set dummy pnmcut
; ac_word
=$2
10060 echo "$as_me:$LINENO: checking for $ac_word" >&5
10061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10062 if test "${ac_cv_prog_pnmcut+set}" = set; then
10063 echo $ECHO_N "(cached) $ECHO_C" >&6
10065 if test -n "$pnmcut"; then
10066 ac_cv_prog_pnmcut
="$pnmcut" # Let the user override the test.
10068 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10069 for as_dir
in $PATH
10072 test -z "$as_dir" && as_dir
=.
10073 for ac_exec_ext
in '' $ac_executable_extensions; do
10074 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10075 ac_cv_prog_pnmcut
="found"
10076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10082 test -z "$ac_cv_prog_pnmcut" && ac_cv_prog_pnmcut
="missing"
10085 pnmcut
=$ac_cv_prog_pnmcut
10086 if test -n "$pnmcut"; then
10087 echo "$as_me:$LINENO: result: $pnmcut" >&5
10088 echo "${ECHO_T}$pnmcut" >&6
10090 echo "$as_me:$LINENO: result: no" >&5
10091 echo "${ECHO_T}no" >&6
10094 if test $pnmcut = missing
; then
10095 missing
="$missing \`pnmcut'"
10096 fi;# Extract the first word of "pnmcrop", so it can be a program name with args.
10097 set dummy pnmcrop
; ac_word
=$2
10098 echo "$as_me:$LINENO: checking for $ac_word" >&5
10099 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10100 if test "${ac_cv_prog_pnmcrop+set}" = set; then
10101 echo $ECHO_N "(cached) $ECHO_C" >&6
10103 if test -n "$pnmcrop"; then
10104 ac_cv_prog_pnmcrop
="$pnmcrop" # Let the user override the test.
10106 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10107 for as_dir
in $PATH
10110 test -z "$as_dir" && as_dir
=.
10111 for ac_exec_ext
in '' $ac_executable_extensions; do
10112 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10113 ac_cv_prog_pnmcrop
="found"
10114 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10120 test -z "$ac_cv_prog_pnmcrop" && ac_cv_prog_pnmcrop
="missing"
10123 pnmcrop
=$ac_cv_prog_pnmcrop
10124 if test -n "$pnmcrop"; then
10125 echo "$as_me:$LINENO: result: $pnmcrop" >&5
10126 echo "${ECHO_T}$pnmcrop" >&6
10128 echo "$as_me:$LINENO: result: no" >&5
10129 echo "${ECHO_T}no" >&6
10132 if test $pnmcrop = missing
; then
10133 missing
="$missing \`pnmcrop'"
10134 fi;# Extract the first word of "pnmtopng", so it can be a program name with args.
10135 set dummy pnmtopng
; ac_word
=$2
10136 echo "$as_me:$LINENO: checking for $ac_word" >&5
10137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10138 if test "${ac_cv_prog_pnmtopng+set}" = set; then
10139 echo $ECHO_N "(cached) $ECHO_C" >&6
10141 if test -n "$pnmtopng"; then
10142 ac_cv_prog_pnmtopng
="$pnmtopng" # Let the user override the test.
10144 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10145 for as_dir
in $PATH
10148 test -z "$as_dir" && as_dir
=.
10149 for ac_exec_ext
in '' $ac_executable_extensions; do
10150 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10151 ac_cv_prog_pnmtopng
="found"
10152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10158 test -z "$ac_cv_prog_pnmtopng" && ac_cv_prog_pnmtopng
="missing"
10161 pnmtopng
=$ac_cv_prog_pnmtopng
10162 if test -n "$pnmtopng"; then
10163 echo "$as_me:$LINENO: result: $pnmtopng" >&5
10164 echo "${ECHO_T}$pnmtopng" >&6
10166 echo "$as_me:$LINENO: result: no" >&5
10167 echo "${ECHO_T}no" >&6
10170 if test $pnmtopng = missing
; then
10171 missing
="$missing \`pnmtopng'"
10172 fi;# Extract the first word of "psselect", so it can be a program name with args.
10173 set dummy psselect
; ac_word
=$2
10174 echo "$as_me:$LINENO: checking for $ac_word" >&5
10175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10176 if test "${ac_cv_prog_psselect+set}" = set; then
10177 echo $ECHO_N "(cached) $ECHO_C" >&6
10179 if test -n "$psselect"; then
10180 ac_cv_prog_psselect
="$psselect" # Let the user override the test.
10182 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10183 for as_dir
in $PATH
10186 test -z "$as_dir" && as_dir
=.
10187 for ac_exec_ext
in '' $ac_executable_extensions; do
10188 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10189 ac_cv_prog_psselect
="found"
10190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10196 test -z "$ac_cv_prog_psselect" && ac_cv_prog_psselect
="missing"
10199 psselect
=$ac_cv_prog_psselect
10200 if test -n "$psselect"; then
10201 echo "$as_me:$LINENO: result: $psselect" >&5
10202 echo "${ECHO_T}$psselect" >&6
10204 echo "$as_me:$LINENO: result: no" >&5
10205 echo "${ECHO_T}no" >&6
10208 if test $psselect = missing
; then
10209 missing
="$missing \`psselect'"
10210 fi;# Extract the first word of "pnmtops", so it can be a program name with args.
10211 set dummy pnmtops
; ac_word
=$2
10212 echo "$as_me:$LINENO: checking for $ac_word" >&5
10213 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10214 if test "${ac_cv_prog_pnmtops+set}" = set; then
10215 echo $ECHO_N "(cached) $ECHO_C" >&6
10217 if test -n "$pnmtops"; then
10218 ac_cv_prog_pnmtops
="$pnmtops" # Let the user override the test.
10220 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10221 for as_dir
in $PATH
10224 test -z "$as_dir" && as_dir
=.
10225 for ac_exec_ext
in '' $ac_executable_extensions; do
10226 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10227 ac_cv_prog_pnmtops
="found"
10228 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10234 test -z "$ac_cv_prog_pnmtops" && ac_cv_prog_pnmtops
="missing"
10237 pnmtops
=$ac_cv_prog_pnmtops
10238 if test -n "$pnmtops"; then
10239 echo "$as_me:$LINENO: result: $pnmtops" >&5
10240 echo "${ECHO_T}$pnmtops" >&6
10242 echo "$as_me:$LINENO: result: no" >&5
10243 echo "${ECHO_T}no" >&6
10246 if test $pnmtops = missing
; then
10247 missing
="$missing \`pnmtops'"
10250 test "$GHOSTSCRIPT" = "missing" && missing
="$missing \`gs'"
10252 if test -n "$missing"; then
10253 plural
=`set $missing; test $# -gt 1 && echo s`
10254 missing
=`set $missing
10256 while test $# -gt 0
10259 1) missing="$missing$1" ;;
10260 2) missing="$missing$1 and " ;;
10261 *) missing="$missing$1, " ;;
10270 { echo "$as_me:$LINENO: WARNING: missing program$plural:
10274 cannot be found in the PATH.
10275 Consequently, groff's HTML backend (grohtml) will not work properly;
10276 therefore, it will neither be possible to prepare, nor to install,
10277 documentation in HTML format.
10279 echo "$as_me: WARNING: missing program$plural:
10283 cannot be found in the PATH.
10284 Consequently, groff's HTML backend (grohtml) will not work properly;
10285 therefore, it will neither be possible to prepare, nor to install,
10286 documentation in HTML format.
10293 # Check whether --with-alt-awk or --without-alt-awk was given.
10294 if test "${with_alt_awk+set}" = set; then
10295 withval
="$with_alt_awk"
10296 ALT_AWK_PROGS
="$withval"
10298 ALT_AWK_PROGS
="gawk mawk nawk awk"
10303 # Check whether --with-awk or --without-awk was given.
10304 if test "${with_awk+set}" = set; then
10305 withval
="$with_awk"
10308 if test -n "$ac_tool_prefix"; then
10309 for ac_prog
in $ALT_AWK_PROGS
10311 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10312 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
10313 echo "$as_me:$LINENO: checking for $ac_word" >&5
10314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10315 if test "${ac_cv_prog_AWK+set}" = set; then
10316 echo $ECHO_N "(cached) $ECHO_C" >&6
10318 if test -n "$AWK"; then
10319 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
10321 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10322 for as_dir
in $PATH
10325 test -z "$as_dir" && as_dir
=.
10326 for ac_exec_ext
in '' $ac_executable_extensions; do
10327 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10328 ac_cv_prog_AWK
="$ac_tool_prefix$ac_prog"
10329 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10337 AWK
=$ac_cv_prog_AWK
10338 if test -n "$AWK"; then
10339 echo "$as_me:$LINENO: result: $AWK" >&5
10340 echo "${ECHO_T}$AWK" >&6
10342 echo "$as_me:$LINENO: result: no" >&5
10343 echo "${ECHO_T}no" >&6
10346 test -n "$AWK" && break
10349 if test -z "$AWK"; then
10351 for ac_prog
in $ALT_AWK_PROGS
10353 # Extract the first word of "$ac_prog", so it can be a program name with args.
10354 set dummy
$ac_prog; ac_word
=$2
10355 echo "$as_me:$LINENO: checking for $ac_word" >&5
10356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10357 if test "${ac_cv_prog_ac_ct_AWK+set}" = set; then
10358 echo $ECHO_N "(cached) $ECHO_C" >&6
10360 if test -n "$ac_ct_AWK"; then
10361 ac_cv_prog_ac_ct_AWK
="$ac_ct_AWK" # Let the user override the test.
10363 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10364 for as_dir
in $PATH
10367 test -z "$as_dir" && as_dir
=.
10368 for ac_exec_ext
in '' $ac_executable_extensions; do
10369 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10370 ac_cv_prog_ac_ct_AWK
="$ac_prog"
10371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10379 ac_ct_AWK
=$ac_cv_prog_ac_ct_AWK
10380 if test -n "$ac_ct_AWK"; then
10381 echo "$as_me:$LINENO: result: $ac_ct_AWK" >&5
10382 echo "${ECHO_T}$ac_ct_AWK" >&6
10384 echo "$as_me:$LINENO: result: no" >&5
10385 echo "${ECHO_T}no" >&6
10388 test -n "$ac_ct_AWK" && break
10391 if test "x$ac_ct_AWK" = x
; then
10394 if test "$build" != "$host"; then
10395 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
10396 whose name does not start with the host triplet. If you think this
10397 configuration is useful to you, please write to autoconf@gnu.org." >&5
10398 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
10399 whose name does not start with the host triplet. If you think this
10400 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
10407 test "$AWK" = "no" && AWK
=missing
10412 make_install_pdfdoc
=install_pdfdoc
10415 test "$AWK" = missing
&& missing
="\`awk'"
10416 test "$GHOSTSCRIPT" = missing
&& missing
="$missing \`gs'"
10417 if test -n "$missing"; then
10418 plural
=`set $missing; test $# -eq 2 && echo s`
10419 test x
$plural = xs \
10420 && missing
=`set $missing; echo "$1 and $2"` \
10421 || missing
=`echo $missing`
10424 make_install_pdfdoc
=
10426 { echo "$as_me:$LINENO: WARNING: missing program$plural:
10428 The program$plural $missing cannot be found in the PATH.
10429 Consequently, groff's PDF formatter (pdfroff) will not work properly;
10430 therefore, it will neither be possible to prepare, nor to install,
10431 documentation in PDF format.
10433 echo "$as_me: WARNING: missing program$plural:
10435 The program$plural $missing cannot be found in the PATH.
10436 Consequently, groff's PDF formatter (pdfroff) will not work properly;
10437 therefore, it will neither be possible to prepare, nor to install,
10438 documentation in PDF format.
10444 echo "$as_me:$LINENO: checking whether pnmtops can handle the -nosetpage option" >&5
10445 echo $ECHO_N "checking whether pnmtops can handle the -nosetpage option... $ECHO_C" >&6
10446 if echo P2
2 2 255 0 1 2 0 | pnmtops
-nosetpage > /dev
/null
2>&1 ; then
10447 echo "$as_me:$LINENO: result: yes" >&5
10448 echo "${ECHO_T}yes" >&6
10449 pnmtops_nosetpage
="pnmtops -nosetpage"
10451 echo "$as_me:$LINENO: result: no" >&5
10452 echo "${ECHO_T}no" >&6
10453 pnmtops_nosetpage
="pnmtops"
10457 ac_config_files
="$ac_config_files stamp-h"
10459 ac_config_files
="$ac_config_files Makefile doc/Makefile src/utils/xtotroff/Makefile"
10461 ac_config_files
="$ac_config_files contrib/gdiffmk/tests/runtests"
10463 ac_config_files
="$ac_config_files test-groff"
10465 cat >confcache
<<\_ACEOF
10466 # This file is a shell script that caches the results of configure
10467 # tests run on this system so they can be shared between configure
10468 # scripts and configure runs, see configure's option --config-cache.
10469 # It is not useful on other systems. If it contains results you don't
10470 # want to keep, you may remove or edit it.
10472 # config.status only pays attention to the cache file if you give it
10473 # the --recheck option to rerun configure.
10475 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10476 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10477 # following values.
10481 # The following way of writing the cache mishandles newlines in values,
10482 # but we know of no workaround that is simple, portable, and efficient.
10483 # So, don't put newlines in cache variables' values.
10484 # Ultrix sh set writes to stderr and can't be redirected directly,
10485 # and sets the high bit in the cache file unless we assign to the vars.
10488 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10490 # `set' does not quote correctly, so add quotes (double-quote
10491 # substitution turns \\\\ into \\, and sed turns \\ into \).
10494 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10497 # `set' quotes correctly as required by POSIX, so do not add quotes.
10499 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10506 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10508 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10510 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
10511 if test -w $cache_file; then
10512 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10513 cat confcache
>$cache_file
10515 echo "not updating unwritable cache $cache_file"
10520 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
10521 # Let make expand exec_prefix.
10522 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
10524 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10525 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10526 # trailing colons and then remove the whole line if VPATH becomes empty
10527 # (actually we leave an empty line to preserve line numbers).
10528 if test "x$srcdir" = x.
; then
10529 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
10530 s/:*\$(srcdir):*/:/;
10531 s/:*\${srcdir}:*/:/;
10533 s/^\([^=]*=[ ]*\):*/\1/;
10539 DEFS
=-DHAVE_CONFIG_H
10543 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
10544 # 1. Remove the extension, and $U if already installed.
10545 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
10546 ac_i
=`echo "$ac_i" | sed "$ac_script"`
10548 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
10549 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
10551 LIBOBJS
=$ac_libobjs
10553 LTLIBOBJS
=$ac_ltlibobjs
10557 : ${CONFIG_STATUS=./config.status}
10558 ac_clean_files_save
=$ac_clean_files
10559 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
10560 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10561 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10562 cat >$CONFIG_STATUS <<_ACEOF
10564 # Generated by $as_me.
10565 # Run this file to recreate the current configuration.
10566 # Compiler output produced by configure, useful for debugging
10567 # configure, is in config.log if it exists.
10570 ac_cs_recheck=false
10572 SHELL=\${CONFIG_SHELL-$SHELL}
10575 cat >>$CONFIG_STATUS <<\_ACEOF
10576 ## --------------------- ##
10577 ## M4sh Initialization. ##
10578 ## --------------------- ##
10580 # Be Bourne compatible
10581 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
10584 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10585 # is contrary to our usage. Disable this feature.
10586 alias -g '${1+"$@"}'='"$@"'
10587 setopt NO_GLOB_SUBST
10588 elif test -n "${BASH_VERSION+set}${KSH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
10591 BIN_SH
=xpg4
; export BIN_SH
# for Tru64
10592 DUALCASE
=1; export DUALCASE
# for MKS sh
10596 # Avoid depending upon Character Ranges.
10597 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
10598 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10599 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
10600 as_cr_digits
='0123456789'
10601 as_cr_alnum
=$as_cr_Letters$as_cr_digits
10603 # The user is always right.
10604 if test "${PATH_SEPARATOR+set}" != set; then
10605 echo "#! /bin/sh" >conf$$.sh
10606 echo "exit 0" >>conf$$.sh
10608 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
10616 # Support unset when possible.
10617 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
10624 # Find who we are. Look in the path if we contain no path at all
10627 *[\\/]* ) as_myself
=$0 ;;
10628 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10629 for as_dir
in $PATH
10632 test -z "$as_dir" && as_dir
=.
10633 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
10638 # We did not find ourselves, most probably we were run as `sh COMMAND'
10639 # in which case we are not to be found in the path.
10640 if test "x$as_myself" = x
; then
10643 if test ! -f "$as_myself"; then
10644 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute file name" >&5
10645 echo "$as_me: error: cannot find myself; rerun with an absolute file name" >&2;}
10646 { (exit 1); exit 1; }; }
10649 # Work around bugs in pre-3.0 UWIN ksh.
10650 for as_var
in ENV MAIL MAILPATH
10651 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
10659 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10660 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10661 LC_TELEPHONE LC_TIME
10663 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10664 eval $as_var=C
; export $as_var
10666 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
10670 # Required to use basename.
10671 if expr a
: '\(a\)' >/dev
/null
2>&1; then
10677 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
10678 as_basename
=basename
10684 # Name of the executable.
10685 as_me
=`$as_basename "$0" ||
10686 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10687 X"$0" : 'X\(//\)$' \| \
10688 X"$0" : 'X\(/\)$' \| \
10689 . : '\(.\)' 2>/dev/null ||
10691 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
10692 /^X\/\(\/\/\)$/{ s//\1/; q; }
10693 /^X\/\(\/\).*/{ s//\1/; q; }
10699 as_lineno_1
=$LINENO
10700 as_lineno_2
=$LINENO
10701 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
10702 test "x$as_lineno_1" != "x$as_lineno_2" &&
10703 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
10705 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10706 # uniformly replaced by the line number. The first 'sed' inserts a
10707 # line-number line after each line using $LINENO; the second 'sed'
10708 # does the real work. The second script uses 'N' to pair each
10709 # line-number line with the line containing $LINENO, and appends
10710 # trailing '-' during substitution so that $LINENO is not a special
10711 # case at line end.
10712 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10713 # scripts with optimization help from Paolo Bonzini. Blame Lee
10714 # E. McMahon (1931-1989) for sed's syntax. :-)
10726 s,[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\),\2\1\2,
10729 ' >$as_me.lineno
&&
10730 chmod +x
$as_me.lineno ||
10731 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
10732 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
10733 { (exit 1); exit 1; }; }
10735 # Don't try to exec as it changes $[0], causing all sort of problems
10736 # (the dirname of $[0] is not the place where we might find the
10737 # original and so on. Autoconf is especially sensible to this).
10739 # Exit status is that of the last command.
10744 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
10745 *c
*,-n*) ECHO_N
= ECHO_C
='
10747 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
10748 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
10751 if expr a
: '\(a\)' >/dev
/null
2>&1; then
10757 rm -f conf$$ conf$$.exe conf$$.
file
10759 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
10760 # We could just check for DJGPP; but this test a) works b) is more generic
10761 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
10762 if test -f conf$$.exe
; then
10763 # Don't use ln at all; we don't have any links
10768 elif ln conf$$.
file conf$$
2>/dev
/null
; then
10773 rm -f conf$$ conf$$.exe conf$$.
file
10775 if mkdir
-p .
2>/dev
/null
; then
10778 test -d .
/-p && rmdir .
/-p
10782 as_executable_p
="test -f"
10784 # Sed expression to map a string onto a valid CPP name.
10785 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10787 # Sed expression to map a string onto a valid variable name.
10788 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10792 # We need space, tab and new line, in precisely that order.
10802 # Open the log real soon, to keep \$[0] and so on meaningful, and to
10803 # report actual input values of CONFIG_FILES etc. instead of their
10804 # values after options handling. Logging --version etc. is OK.
10808 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10809 ## Running $as_me. ##
10814 This file was extended by $as_me, which was
10815 generated by GNU Autoconf 2.59b. Invocation command line was
10817 CONFIG_FILES = $CONFIG_FILES
10818 CONFIG_HEADERS = $CONFIG_HEADERS
10819 CONFIG_LINKS = $CONFIG_LINKS
10820 CONFIG_COMMANDS = $CONFIG_COMMANDS
10824 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
10828 # Files that config.status was made for.
10829 if test -n "$ac_config_files"; then
10830 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
10833 if test -n "$ac_config_headers"; then
10834 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
10837 if test -n "$ac_config_links"; then
10838 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
10841 if test -n "$ac_config_commands"; then
10842 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
10845 cat >>$CONFIG_STATUS <<\_ACEOF
10848 \`$as_me' instantiates files from templates according to the
10849 current configuration.
10851 Usage: $0 [OPTIONS] [FILE]...
10853 -h, --help print this help, then exit
10854 -V, --version print version number, then exit
10855 -q, --quiet do not print progress messages
10856 -d, --debug don't remove temporary files
10857 --recheck update $as_me by reconfiguring in the same conditions
10858 --file=FILE[:TEMPLATE]
10859 instantiate the configuration file FILE
10860 --header=FILE[:TEMPLATE]
10861 instantiate the configuration header FILE
10863 Configuration files:
10866 Configuration headers:
10869 Report bugs to <bug-autoconf@gnu.org>."
10872 cat >>$CONFIG_STATUS <<_ACEOF
10875 configured by $0, generated by GNU Autoconf 2.59b,
10876 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
10878 Copyright (C) 2004 Free Software Foundation, Inc.
10879 This config.status script is free software; the Free Software Foundation
10880 gives unlimited permission to copy, distribute and modify it."
10885 cat >>$CONFIG_STATUS <<\_ACEOF
10886 # If no file are specified by the user, then we need to provide default
10887 # value. By we need to know if files were specified by the user.
10893 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
10894 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
10902 *) # This is not an option, so the user has probably given explicit
10905 ac_need_defaults
=false
;;
10909 # Handling of the options.
10911 cat >>$CONFIG_STATUS <<\_ACEOF
10912 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
10914 --version |
--vers* |
-V )
10915 echo "$ac_cs_version"; exit 0 ;;
10917 # Conflict between --help and --header
10918 { { echo "$as_me:$LINENO: error: ambiguous option: $1
10919 Try \`$0 --help' for more information." >&5
10920 echo "$as_me: error: ambiguous option: $1
10921 Try \`$0 --help' for more information." >&2;}
10922 { (exit 1); exit 1; }; };;
10923 --help |
--hel |
-h )
10924 echo "$ac_cs_usage"; exit 0 ;;
10925 --debug |
--d* |
-d )
10927 --file |
--fil |
--fi |
--f )
10929 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
10930 ac_need_defaults
=false
;;
10931 --header |
--heade |
--head |
--hea )
10933 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
10934 ac_need_defaults
=false
;;
10935 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
10936 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
10939 # This is an error.
10940 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
10941 Try \`$0 --help' for more information." >&5
10942 echo "$as_me: error: unrecognized option: $1
10943 Try \`$0 --help' for more information." >&2;}
10944 { (exit 1); exit 1; }; } ;;
10946 *) ac_config_targets
="$ac_config_targets $1" ;;
10952 ac_configure_extra_args
=
10954 if $ac_cs_silent; then
10956 ac_configure_extra_args
="$ac_configure_extra_args --silent"
10960 cat >>$CONFIG_STATUS <<_ACEOF
10961 if \$ac_cs_recheck; then
10962 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10963 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10972 cat >>$CONFIG_STATUS <<\_ACEOF
10973 for ac_config_target
in $ac_config_targets
10975 case "$ac_config_target" in
10976 # Handling of arguments.
10977 "stamp-h" ) CONFIG_FILES
="$CONFIG_FILES stamp-h" ;;
10978 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
10979 "doc/Makefile" ) CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
10980 "src/utils/xtotroff/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/xtotroff/Makefile" ;;
10981 "contrib/gdiffmk/tests/runtests" ) CONFIG_FILES
="$CONFIG_FILES contrib/gdiffmk/tests/runtests" ;;
10982 "test-groff" ) CONFIG_FILES
="$CONFIG_FILES test-groff" ;;
10983 "src/include/config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS src/include/config.h:src/include/config.hin" ;;
10984 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10985 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10986 { (exit 1); exit 1; }; };;
10990 # If the user did not use the arguments to specify the items to instantiate,
10991 # then the envvar interface is used. Set only those that are not.
10992 # We use the long form for the default assignment because of an extremely
10993 # bizarre bug on SunOS 4.1.3.
10994 if $ac_need_defaults; then
10995 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
10996 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
10999 # Have a temporary directory for convenience. Make it in the build tree
11000 # simply because there is no reason to put it here, and in addition,
11001 # creating and moving files from /tmp can sometimes cause problems.
11002 # Create a temporary directory, and hook for its removal unless debugging.
11005 trap 'exit_status=$?; rm -f -r $tmp && exit $exit_status' 0
11006 trap '{ (exit 1); exit 1; }' 1 2 13 15
11009 # Create a (secure) tmp directory for tmp files.
11012 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
11013 test -n "$tmp" && test -d "$tmp"
11016 tmp
=.
/confstat$$
-$RANDOM
11017 (umask 077 && mkdir
$tmp)
11020 echo "$me: cannot create a temporary directory in ." >&2
11021 { (exit 1); exit 1; }
11026 cat >>$CONFIG_STATUS <<_ACEOF
11029 # CONFIG_FILES section.
11032 # No need to generate the scripts if there are no CONFIG_FILES.
11033 # This happens for instance when ./config.status config.h
11034 if test -n "\$CONFIG_FILES"; then
11035 # Protect against being on the right side of a sed subst in config.status.
11036 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11037 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11038 s,@SHELL@,$SHELL,;t t
11039 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11040 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11041 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11042 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11043 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11044 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11045 s,@exec_prefix@,$exec_prefix,;t t
11046 s,@prefix@,$prefix,;t t
11047 s,@program_transform_name@,$program_transform_name,;t t
11048 s,@bindir@,$bindir,;t t
11049 s,@sbindir@,$sbindir,;t t
11050 s,@libexecdir@,$libexecdir,;t t
11051 s,@datadir@,$datadir,;t t
11052 s,@sysconfdir@,$sysconfdir,;t t
11053 s,@sharedstatedir@,$sharedstatedir,;t t
11054 s,@localstatedir@,$localstatedir,;t t
11055 s,@libdir@,$libdir,;t t
11056 s,@includedir@,$includedir,;t t
11057 s,@oldincludedir@,$oldincludedir,;t t
11058 s,@infodir@,$infodir,;t t
11059 s,@mandir@,$mandir,;t t
11060 s,@build_alias@,$build_alias,;t t
11061 s,@host_alias@,$host_alias,;t t
11062 s,@target_alias@,$target_alias,;t t
11063 s,@DEFS@,$DEFS,;t t
11064 s,@ECHO_C@,$ECHO_C,;t t
11065 s,@ECHO_N@,$ECHO_N,;t t
11066 s,@ECHO_T@,$ECHO_T,;t t
11067 s,@LIBS@,$LIBS,;t t
11069 s,@CFLAGS@,$CFLAGS,;t t
11070 s,@LDFLAGS@,$LDFLAGS,;t t
11071 s,@CPPFLAGS@,$CPPFLAGS,;t t
11072 s,@ac_ct_CC@,$ac_ct_CC,;t t
11073 s,@EXEEXT@,$EXEEXT,;t t
11074 s,@OBJEXT@,$OBJEXT,;t t
11076 s,@CXXFLAGS@,$CXXFLAGS,;t t
11077 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
11078 s,@TTYDEVDIRS@,$TTYDEVDIRS,;t t
11079 s,@OTHERDEVDIRS@,$OTHERDEVDIRS,;t t
11081 s,@X_CFLAGS@,$X_CFLAGS,;t t
11082 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
11083 s,@X_LIBS@,$X_LIBS,;t t
11084 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
11085 s,@XDEVDIRS@,$XDEVDIRS,;t t
11086 s,@XPROGDIRS@,$XPROGDIRS,;t t
11087 s,@XLIBDIRS@,$XLIBDIRS,;t t
11088 s,@appresdir@,$appresdir,;t t
11092 s,@PSPRINT@,$PSPRINT,;t t
11093 s,@DVIPRINT@,$DVIPRINT,;t t
11094 s,@PERLPATH@,$PERLPATH,;t t
11095 s,@YACC@,$YACC,;t t
11096 s,@RANLIB@,$RANLIB,;t t
11097 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
11098 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
11099 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11100 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11101 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11102 s,@LN_S@,$LN_S,;t t
11103 s,@SH_SCRIPT_SED_CMD@,$SH_SCRIPT_SED_CMD,;t t
11104 s,@GREP@,$GREP,;t t
11105 s,@EGREP@,$EGREP,;t t
11106 s,@LIBC@,$LIBC,;t t
11107 s,@LIBM@,$LIBM,;t t
11108 s,@LIBOBJS@,$LIBOBJS,;t t
11109 s,@BROKEN_SPOOLER_FLAGS@,$BROKEN_SPOOLER_FLAGS,;t t
11110 s,@PAGE@,$PAGE,;t t
11112 s,@sys_tmac_prefix@,$sys_tmac_prefix,;t t
11113 s,@tmac_wrap@,$tmac_wrap,;t t
11114 s,@GROFF_PATH_SEPARATOR@,$GROFF_PATH_SEPARATOR,;t t
11115 s,@ALT_GHOSTSCRIPT_PROGS@,$ALT_GHOSTSCRIPT_PROGS,;t t
11116 s,@GHOSTSCRIPT@,$GHOSTSCRIPT,;t t
11117 s,@ac_ct_GHOSTSCRIPT@,$ac_ct_GHOSTSCRIPT,;t t
11118 s,@pnmcut@,$pnmcut,;t t
11119 s,@pnmcrop@,$pnmcrop,;t t
11120 s,@pnmtopng@,$pnmtopng,;t t
11121 s,@psselect@,$psselect,;t t
11122 s,@pnmtops@,$pnmtops,;t t
11123 s,@make_html@,$make_html,;t t
11124 s,@make_install_html@,$make_install_html,;t t
11125 s,@ALT_AWK_PROGS@,$ALT_AWK_PROGS,;t t
11127 s,@ac_ct_AWK@,$ac_ct_AWK,;t t
11128 s,@make_pdfdoc@,$make_pdfdoc,;t t
11129 s,@make_install_pdfdoc@,$make_install_pdfdoc,;t t
11130 s,@pnmtops_nosetpage@,$pnmtops_nosetpage,;t t
11131 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
11136 cat >>$CONFIG_STATUS <<\_ACEOF
11137 # Split the substitutions into bite-sized pieces for seds with
11138 # small command number limits, like on Digital OSF/1 and HP-UX.
11139 ac_max_sed_lines
=48
11140 ac_sed_frag
=1 # Number of current file.
11141 ac_beg
=1 # First line for current file.
11142 ac_end
=$ac_max_sed_lines # Line after last line for current file.
11145 while $ac_more_lines; do
11146 if test $ac_beg -gt 1; then
11147 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
11149 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
11151 if test ! -s $tmp/subs.frag
; then
11152 ac_more_lines
=false
11154 # The purpose of the label and of the branching condition is to
11155 # speed up the sed processing (if there are no `@' at all, there
11156 # is no need to browse any of the substitutions).
11157 # These are the two extra sed commands mentioned above.
11159 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
11160 if test -z "$ac_sed_cmds"; then
11161 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
11163 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11165 ac_sed_frag
=`expr $ac_sed_frag + 1`
11167 ac_end
=`expr $ac_end + $ac_max_sed_lines`
11170 if test -z "$ac_sed_cmds"; then
11173 fi # test -n "$CONFIG_FILES"
11176 cat >>$CONFIG_STATUS <<\_ACEOF
11177 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
11178 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11180 - |
*:- |
*:-:* ) # input from stdin
11182 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
11183 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
11184 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
11185 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
11186 * ) ac_file_in
=$ac_file.
in ;;
11189 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11190 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
11191 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11192 X"$ac_file" : 'X\(//\)[^/]' \| \
11193 X"$ac_file" : 'X\(//\)$' \| \
11194 X"$ac_file" : 'X\(/\)' \| \
11195 . : '\(.\)' 2>/dev/null ||
11197 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11198 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11199 /^X\(\/\/\)$/{ s//\1/; q; }
11200 /^X\(\/\).*/{ s//\1/; q; }
11202 { if $as_mkdir_p; then
11203 test -d "$ac_dir" || mkdir
-p "$ac_dir"
11207 while test ! -d "$as_dir"; do
11208 as_dirs
="$as_dir $as_dirs"
11209 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
11210 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11211 X"$as_dir" : 'X\(//\)[^/]' \| \
11212 X"$as_dir" : 'X\(//\)$' \| \
11213 X"$as_dir" : 'X\(/\)' \| \
11214 . : '\(.\)' 2>/dev/null ||
11216 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11217 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11218 /^X\(\/\/\)$/{ s//\1/; q; }
11219 /^X\(\/\).*/{ s//\1/; q; }
11222 test ! -n "$as_dirs" || mkdir
$as_dirs
11223 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11224 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11225 { (exit 1); exit 1; }; }; }
11229 if test "$ac_dir" != .
; then
11230 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11231 # A "../" for each directory in $ac_dir_suffix.
11232 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11234 ac_dir_suffix
= ac_top_builddir
=
11238 .
) # No --srcdir option. We are building in place.
11240 if test -z "$ac_top_builddir"; then
11243 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
11245 [\\/]* | ?
:[\\/]* ) # Absolute name.
11246 ac_srcdir
=$srcdir$ac_dir_suffix;
11247 ac_top_srcdir
=$srcdir ;;
11248 *) # Relative name.
11249 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
11250 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
11253 # Do not use `cd foo && pwd` to compute absolute names, because
11254 # the directories may not exist.
11256 .
) ac_abs_builddir
="$ac_dir";;
11259 .
) ac_abs_builddir
=`pwd`;;
11260 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
11261 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
11264 case $ac_abs_builddir in
11265 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
11267 case ${ac_top_builddir}.
in
11268 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
11269 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
11270 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
11273 case $ac_abs_builddir in
11274 .
) ac_abs_srcdir
=$ac_srcdir;;
11277 .
) ac_abs_srcdir
=$ac_abs_builddir;;
11278 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
11279 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
11282 case $ac_abs_builddir in
11283 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
11285 case $ac_top_srcdir in
11286 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
11287 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
11288 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
11294 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
11295 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
11298 if test x
"$ac_file" != x-
; then
11299 { echo "$as_me:$LINENO: creating $ac_file" >&5
11300 echo "$as_me: creating $ac_file" >&6;}
11303 # Let's still pretend it is `configure' which instantiates (i.e., don't
11304 # use $as_me), people would be surprised to read:
11305 # /* config.h. Generated by config.status. */
11306 if test x
"$ac_file" = x-
; then
11309 configure_input
="$ac_file. "
11311 configure_input
=$configure_input"Generated from `echo $ac_file_in |
11312 sed 's,.*/,,'` by configure."
11314 # First look for the input files in the build tree, otherwise in the
11316 ac_file_inputs
=`IFS=:
11317 for f in $ac_file_in; do
11319 -) echo $tmp/stdin ;;
11321 # Absolute (can't be DOS-style, as IFS=:)
11322 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11323 echo "$as_me: error: cannot find input file: $f" >&2;}
11324 { (exit 1); exit 1; }; }
11327 if test -f "$f"; then
11330 elif test -f "$srcdir/$f"; then
11335 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11336 echo "$as_me: error: cannot find input file: $f" >&2;}
11337 { (exit 1); exit 1; }; }
11340 done` ||
{ (exit 1); exit 1; }
11342 cat >>$CONFIG_STATUS <<_ACEOF
11346 cat >>$CONFIG_STATUS <<\_ACEOF
11348 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
11349 s
,@configure_input@
,$configure_input,;t t
11350 s
,@srcdir@
,$ac_srcdir,;t t
11351 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
11352 s
,@top_srcdir@
,$ac_top_srcdir,;t t
11353 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
11354 s
,@builddir@
,$ac_builddir,;t t
11355 s
,@abs_builddir@
,$ac_abs_builddir,;t t
11356 s
,@top_builddir@
,$ac_top_builddir,;t t
11357 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
11358 s
,@INSTALL@
,$ac_INSTALL,;t t
11359 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11361 if test x"$ac_file" != x-; then
11362 mv $tmp/out $ac_file
11368 # Run the commands associated with the file.
11370 stamp-h ) echo timestamp > stamp-h ;;
11371 contrib/gdiffmk/tests/runtests ) chmod +x contrib/gdiffmk/tests/runtests ;;
11372 test-groff ) chmod +x test-groff ;;
11376 cat >>$CONFIG_STATUS <<\_ACEOF
11379 # CONFIG_HEADER section.
11382 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
11383 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11385 # ac_d sets the value in "#define NAME VALUE" lines.
11386 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11387 ac_dB
='[ ].*$,\1#\2'
11390 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11391 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11392 ac_uB
='$,\1#\2define\3'
11396 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
11397 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11399 - |
*:- |
*:-:* ) # input from stdin
11401 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
11402 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
11403 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
11404 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
11405 * ) ac_file_in
=$ac_file.
in ;;
11408 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
11409 echo "$as_me: creating $ac_file" >&6;}
11411 # First look for the input files in the build tree, otherwise in the
11413 ac_file_inputs
=`IFS=:
11414 for f in $ac_file_in; do
11416 -) echo $tmp/stdin ;;
11418 # Absolute (can't be DOS-style, as IFS=:)
11419 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11420 echo "$as_me: error: cannot find input file: $f" >&2;}
11421 { (exit 1); exit 1; }; }
11422 # Quote $f, to prevent DOS file names from being IFS'd.
11425 if test -f "$f"; then
11428 elif test -f "$srcdir/$f"; then
11433 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11434 echo "$as_me: error: cannot find input file: $f" >&2;}
11435 { (exit 1); exit 1; }; }
11438 done` ||
{ (exit 1); exit 1; }
11439 # Remove the trailing spaces.
11440 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
11444 # Transform confdefs.h into two sed scripts, `conftest.defines' and
11445 # `conftest.undefs', that substitutes the proper values into
11446 # config.h.in to produce config.h. The first handles `#define'
11447 # templates, and the second `#undef' templates.
11448 # And first: Protect against being on the right side of a sed subst in
11449 # config.status. Protect against being in an unquoted here document
11450 # in config.status.
11451 rm -f conftest.defines conftest.undefs
11452 # Using a here document instead of a string reduces the quoting nightmare.
11453 # Putting comments in sed scripts is not portable.
11455 # `end' is used to avoid that the second main sed command (meant for
11456 # 0-ary CPP macros) applies to n-ary macro definitions.
11457 # See the Autoconf documentation for `clear'.
11458 cat >confdef2sed.
sed <<\_ACEOF
11463 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
11465 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11468 # If some macros were called several times there might be several times
11469 # the same #defines, which is useless. Nevertheless, we may not want to
11470 # sort them, since we want the *last* AC-DEFINE to be honored.
11471 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
11472 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
11473 rm -f confdef2sed.sed
11475 # This sed command replaces #undef with comments. This is necessary, for
11476 # example, in the case of _POSIX_SOURCE, which is predefined and required
11477 # on some systems where configure will not decide to define it.
11478 cat >>conftest.undefs <<\_ACEOF
11479 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11482 # Break up conftest.defines because some shells have a limit on the size
11483 # of here documents, and old seds have small limits too (100 cmds).
11484 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
11485 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
11486 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
11487 echo ' :' >>$CONFIG_STATUS
11488 rm -f conftest.tail
11489 while grep . conftest.defines >/dev/null
11491 # Write a limited-size here document to $tmp/defines.sed.
11492 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
11493 # Speed up: don't consider the non `#define' lines.
11494 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
11495 # Work around the forget-to-reset-the-flag bug.
11496 echo 't clr' >>$CONFIG_STATUS
11497 echo ': clr' >>$CONFIG_STATUS
11498 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
11500 sed -f $tmp/defines.sed $tmp/in >$tmp/out
11502 mv $tmp/out $tmp/in
11504 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
11505 rm -f conftest.defines
11506 mv conftest.
tail conftest.defines
11508 rm -f conftest.defines
11509 echo ' fi # grep' >>$CONFIG_STATUS
11510 echo >>$CONFIG_STATUS
11512 # Break up conftest.undefs because some shells have a limit on the size
11513 # of here documents, and old seds have small limits too (100 cmds).
11514 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
11515 rm -f conftest.
tail
11516 while grep . conftest.undefs
>/dev
/null
11518 # Write a limited-size here document to $tmp/undefs.sed.
11519 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11520 # Speed up: don't consider the non
`#undef'
11521 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
11522 # Work around the forget-to-reset-the-flag bug.
11523 echo 't clr' >>$CONFIG_STATUS
11524 echo ': clr' >>$CONFIG_STATUS
11525 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
11527 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
11529 mv $tmp/out $tmp/in
11531 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
11532 rm -f conftest.undefs
11533 mv conftest.tail conftest.undefs
11535 rm -f conftest.undefs
11537 cat >>$CONFIG_STATUS <<\_ACEOF
11538 # Let's still pretend it is `configure
' which instantiates (i.e., don't
11539 # use $as_me), people would be surprised to read:
11540 # /* config.h. Generated by config.status. */
11541 if test x
"$ac_file" = x-
; then
11542 echo "/* Generated by configure. */" >$tmp/config.h
11544 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
11546 cat $tmp/in >>$tmp/config.h
11548 if test x
"$ac_file" != x-
; then
11549 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
11550 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11551 echo "$as_me: $ac_file is unchanged" >&6;}
11553 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
11554 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11555 X"$ac_file" : 'X\(//\)[^/]' \| \
11556 X"$ac_file" : 'X\(//\)$' \| \
11557 X"$ac_file" : 'X\(/\)' \| \
11558 . : '\(.\)' 2>/dev/null ||
11560 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11561 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11562 /^X\(\/\/\)$/{ s//\1/; q; }
11563 /^X\(\/\).*/{ s//\1/; q; }
11565 { if $as_mkdir_p; then
11566 test -d "$ac_dir" || mkdir
-p "$ac_dir"
11570 while test ! -d "$as_dir"; do
11571 as_dirs
="$as_dir $as_dirs"
11572 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
11573 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11574 X"$as_dir" : 'X\(//\)[^/]' \| \
11575 X"$as_dir" : 'X\(//\)$' \| \
11576 X"$as_dir" : 'X\(/\)' \| \
11577 . : '\(.\)' 2>/dev/null ||
11579 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11580 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11581 /^X\(\/\/\)$/{ s//\1/; q; }
11582 /^X\(\/\).*/{ s//\1/; q; }
11585 test ! -n "$as_dirs" || mkdir
$as_dirs
11586 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11587 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11588 { (exit 1); exit 1; }; }; }
11591 mv $tmp/config.h
$ac_file
11595 rm -f $tmp/config.h
11600 cat >>$CONFIG_STATUS <<\_ACEOF
11602 { (exit 0); exit 0; }
11604 chmod +x
$CONFIG_STATUS
11605 ac_clean_files
=$ac_clean_files_save
11608 # configure is writing to config.log, and then calls config.status.
11609 # config.status does its own redirection, appending to config.log.
11610 # Unfortunately, on DOS this fails, as config.log is still kept open
11611 # by configure, so config.status won't be able to write to it; its
11612 # output is simply discarded. So we exec the FD to /dev/null,
11613 # effectively closing config.log, so it can be properly (re)opened and
11614 # appended to by config.status. When coming back to configure, we
11615 # need to make the FD available again.
11616 if test "$no_create" != yes; then
11618 ac_config_status_args
=
11619 test "$silent" = yes &&
11620 ac_config_status_args
="$ac_config_status_args --quiet"
11622 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
11624 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11625 # would make configure fail if this is the last instruction.
11626 $ac_cs_success ||
{ (exit 1); exit 1; }
11630 if test -z "$groff_no_x"; then
11631 if test "x$with_appresdir" = "x"; then
11632 { echo "$as_me:$LINENO:
11634 The application resource file for gxditview will be installed as
11636 $appresdir/GXditview
11638 (an existing file will be saved as \`GXditview.old').
11639 To install it into a different directory, say, \`/etc/gxditview',
11640 add \`--with-appresdir=/etc/gxditview' to the configure script
11641 command line options and rerun it. The environment variable
11642 \`APPLRESDIR' must then be set to \`/etc/' (note the trailing slash),
11643 omitting the \`gxditview' part which is automatically appended by
11644 the X11 searching routines for resource files. More details can be
11645 found in the X(7) manual page.
11649 The application resource file for gxditview will be installed as
11651 $appresdir/GXditview
11653 (an existing file will be saved as \`GXditview.old').
11654 To install it into a different directory, say, \`/etc/gxditview',
11655 add \`--with-appresdir=/etc/gxditview' to the configure script
11656 command line options and rerun it. The environment variable
11657 \`APPLRESDIR' must then be set to \`/etc/' (note the trailing slash),
11658 omitting the \`gxditview' part which is automatically appended by
11659 the X11 searching routines for resource files. More details can be
11660 found in the X(7) manual page.