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 GREP EGREP PERLPATH YACC MAKEINFO RANLIB ac_ct_RANLIB INSTALL_INFO INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S SH_SCRIPT_SED_CMD LIBC LIBM build build_cpu build_vendor build_os host host_cpu host_vendor host_os LIBICONV LTLIBICONV 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 GLIBC21 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
1081 --build=BUILD configure
for building on BUILD
[guessed
]
1082 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1086 if test -n "$ac_init_help"; then
1091 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1092 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1093 --disable-rpath do not hardcode runtime library paths
1096 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1097 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1098 --with-x use the X Window System
1099 --with-appresdir=DIR X11 application resource files
1100 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1101 --with-libiconv-prefix[=DIR
] search
for libiconv
in DIR
/include and DIR
/lib
1102 --without-libiconv-prefix don
't search for libiconv in includedir and libdir
1103 --with-alt-gs=LIST alternative names for ghostscript executable
1104 --with-gs=PROG actual [/path/]name of ghostscript executable
1105 --with-alt-awk=LIST alternative names for awk executable
1106 --with-awk=PROG actual [/path/]name of awk executable
1108 Some influential environment variables:
1109 CC C compiler command
1110 CFLAGS C compiler flags
1111 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1112 nonstandard directory <lib dir>
1113 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1114 headers in a nonstandard directory <include dir>
1115 CXX C++ compiler command
1116 CXXFLAGS C++ compiler flags
1119 Use these variables to override the choices made by `configure' or to
help
1120 it to
find libraries and programs with nonstandard names
/locations.
1125 if test "$ac_init_help" = "recursive"; then
1126 # If there are subdirs, report their specific --help.
1128 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1129 test -d $ac_dir ||
continue
1132 if test "$ac_dir" != .
; then
1133 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1134 # A "../" for each directory in $ac_dir_suffix.
1135 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1137 ac_dir_suffix
= ac_top_builddir
=
1141 .
) # No --srcdir option. We are building in place.
1143 if test -z "$ac_top_builddir"; then
1146 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
1148 [\\/]* | ?
:[\\/]* ) # Absolute name.
1149 ac_srcdir
=$srcdir$ac_dir_suffix;
1150 ac_top_srcdir
=$srcdir ;;
1152 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
1153 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
1156 # Do not use `cd foo && pwd` to compute absolute names, because
1157 # the directories may not exist.
1159 .
) ac_abs_builddir
="$ac_dir";;
1162 .
) ac_abs_builddir
=`pwd`;;
1163 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
1164 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
1167 case $ac_abs_builddir in
1168 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
1170 case ${ac_top_builddir}.
in
1171 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
1172 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
1173 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
1176 case $ac_abs_builddir in
1177 .
) ac_abs_srcdir
=$ac_srcdir;;
1180 .
) ac_abs_srcdir
=$ac_abs_builddir;;
1181 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
1182 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
1185 case $ac_abs_builddir in
1186 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
1188 case $ac_top_srcdir in
1189 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
1190 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
1191 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
1196 # Check for guested configure; otherwise get Cygnus style configure.
1197 if test -f $ac_srcdir/configure.gnu
; then
1199 $SHELL $ac_srcdir/configure.gnu
--help=recursive
1200 elif test -f $ac_srcdir/configure
; then
1202 $SHELL $ac_srcdir/configure
--help=recursive
1203 elif test -f $ac_srcdir/configure.ac ||
1204 test -f $ac_srcdir/configure.
in; then
1206 $ac_configure --help
1208 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1214 test -n "$ac_init_help" && exit 0
1215 if $ac_init_version; then
1218 Copyright
1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002,
1219 2003, 2004 Free Software Foundation
, Inc.
1220 This configure
script is free software
; the Free Software Foundation
1221 gives unlimited permission to copy
, distribute and modify it.
1227 This file contains any messages produced by compilers while
1228 running configure, to aid debugging if configure makes a mistake.
1230 It was created by $as_me, which was
1231 generated by GNU Autoconf 2.59b. Invocation command line was
1242 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1243 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1244 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1245 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1246 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1248 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1249 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1251 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1252 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1253 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1254 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1255 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1256 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1257 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1261 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1265 test -z "$as_dir" && as_dir
=.
1266 echo "PATH: $as_dir"
1281 # Keep a trace of the command line.
1282 # Strip out --no-create and --no-recursion so they do not pile up.
1283 # Strip out --silent because we don't want to record it for future runs.
1284 # Also quote any args containing shell meta-characters.
1285 # Make two passes to allow for proper duplicate-argument suppression.
1290 ac_must_keep_next
=false
1296 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1297 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1298 |
-silent |
--silent |
--silen |
--sile |
--sil)
1300 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1301 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1304 1) ac_configure_args0
="$ac_configure_args0 '$ac_arg'" ;;
1306 ac_configure_args1
="$ac_configure_args1 '$ac_arg'"
1307 if test $ac_must_keep_next = true
; then
1308 ac_must_keep_next
=false
# Got value, back to normal.
1311 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1312 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1313 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1314 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1315 case "$ac_configure_args0 " in
1316 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1319 -* ) ac_must_keep_next
=true
;;
1322 ac_configure_args
="$ac_configure_args$ac_sep'$ac_arg'"
1323 # Get rid of the leading space.
1329 $as_unset ac_configure_args0 ||
test "${ac_configure_args0+set}" != set ||
{ ac_configure_args0
=; export ac_configure_args0
; }
1330 $as_unset ac_configure_args1 ||
test "${ac_configure_args1+set}" != set ||
{ ac_configure_args1
=; export ac_configure_args1
; }
1332 # When interrupted or exit'd, cleanup temporary files, and complete
1333 # config.log. We remove comments because anyway the quotes in there
1334 # would cause problems or look ugly.
1335 # WARNING: Be sure not to use single quotes in there, as some shells,
1336 # such as our DU 5.0 friend, will then `close' the trap.
1337 trap 'exit_status=$?
1338 # Save into config.log some information that might help in debugging.
1343 ## ---------------- ##
1344 ## Cache variables. ##
1345 ## ---------------- ##
1348 # The following way of writing the cache mishandles newlines in values,
1351 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1354 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1355 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1359 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1366 ## ----------------- ##
1367 ## Output variables. ##
1368 ## ----------------- ##
1371 for ac_var in $ac_subst_vars
1373 eval ac_val=$`echo $ac_var`
1374 echo "$ac_var='"'"'$ac_val'"'"'"
1378 if test -n "$ac_subst_files"; then
1385 for ac_var in $ac_subst_files
1387 eval ac_val=$`echo $ac_var`
1388 echo "$ac_var='"'"'$ac_val'"'"'"
1393 if test -s confdefs.h; then
1400 sed "/^$/d" confdefs.h | sort
1403 test "$ac_signal" != 0 &&
1404 echo "$as_me: caught signal $ac_signal"
1405 echo "$as_me: exit $exit_status"
1407 rm -f core *.core &&
1408 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1411 for ac_signal
in 1 2 13 15; do
1412 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1416 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1417 rm -f -r conftest
* confdefs.h
1418 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1419 # NextStep 3.3 (patch 3) loses unless the first echo outputs at least 14 bytes.
1421 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
1423 # Predefined preprocessor variables.
1425 cat >>confdefs.h
<<_ACEOF
1426 #define PACKAGE_NAME "$PACKAGE_NAME"
1430 cat >>confdefs.h
<<_ACEOF
1431 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1435 cat >>confdefs.h
<<_ACEOF
1436 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1440 cat >>confdefs.h
<<_ACEOF
1441 #define PACKAGE_STRING "$PACKAGE_STRING"
1445 cat >>confdefs.h
<<_ACEOF
1446 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1450 # Let the site file select an alternate cache file if it wants to.
1451 # Prefer explicitly selected file to automatically selected ones.
1452 if test -z "$CONFIG_SITE"; then
1453 if test "x$prefix" != xNONE
; then
1454 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
1456 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1459 for ac_site_file
in $CONFIG_SITE; do
1460 if test -r "$ac_site_file"; then
1461 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1462 echo "$as_me: loading site script $ac_site_file" >&6;}
1463 sed 's/^/| /' "$ac_site_file" >&5
1468 if test -r "$cache_file"; then
1469 # Some versions of bash will fail to source /dev/null (special
1470 # files actually), so we avoid doing that.
1471 if test -f "$cache_file"; then
1472 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1473 echo "$as_me: loading cache $cache_file" >&6;}
1475 [\\/]* | ?
:[\\/]* ) .
$cache_file;;
1476 *) . .
/$cache_file;;
1480 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1481 echo "$as_me: creating cache $cache_file" >&6;}
1485 # Check that the precious variables saved in the cache have kept the same
1487 ac_cache_corrupted
=false
1488 for ac_var
in `(set) 2>&1 |
1489 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1490 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
1491 eval ac_new_set
=\
$ac_env_${ac_var}_set
1492 eval ac_old_val
="\$ac_cv_env_${ac_var}_value"
1493 eval ac_new_val
="\$ac_env_${ac_var}_value"
1494 case $ac_old_set,$ac_new_set in
1496 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1497 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1498 ac_cache_corrupted
=: ;;
1500 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1501 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1502 ac_cache_corrupted
=: ;;
1505 if test "x$ac_old_val" != "x$ac_new_val"; then
1506 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1507 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1508 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1509 echo "$as_me: former value: $ac_old_val" >&2;}
1510 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1511 echo "$as_me: current value: $ac_new_val" >&2;}
1512 ac_cache_corrupted
=:
1515 # Pass precious variables to config.status.
1516 if test "$ac_new_set" = set; then
1518 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1519 ac_arg
=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1520 *) ac_arg
=$ac_var=$ac_new_val ;;
1522 case " $ac_configure_args " in
1523 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1524 *) ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
1528 if $ac_cache_corrupted; then
1529 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1530 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1531 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1532 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1533 { (exit 1); exit 1; }; }
1537 ac_cpp
='$CPP $CPPFLAGS'
1538 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1539 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1540 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1562 ac_config_headers
="$ac_config_headers src/include/config.h:src/include/config.hin"
1566 # checks for programs
1568 ac_cpp
='$CPP $CPPFLAGS'
1569 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1570 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1571 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1572 if test -n "$ac_tool_prefix"; then
1573 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1574 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1575 echo "$as_me:$LINENO: checking for $ac_word" >&5
1576 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1577 if test "${ac_cv_prog_CC+set}" = set; then
1578 echo $ECHO_N "(cached) $ECHO_C" >&6
1580 if test -n "$CC"; then
1581 ac_cv_prog_CC
="$CC" # Let the user override the test.
1583 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1587 test -z "$as_dir" && as_dir
=.
1588 for ac_exec_ext
in '' $ac_executable_extensions; do
1589 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1590 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1591 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1600 if test -n "$CC"; then
1601 echo "$as_me:$LINENO: result: $CC" >&5
1602 echo "${ECHO_T}$CC" >&6
1604 echo "$as_me:$LINENO: result: no" >&5
1605 echo "${ECHO_T}no" >&6
1609 if test -z "$ac_cv_prog_CC"; then
1611 # Extract the first word of "gcc", so it can be a program name with args.
1612 set dummy gcc
; ac_word
=$2
1613 echo "$as_me:$LINENO: checking for $ac_word" >&5
1614 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1615 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1616 echo $ECHO_N "(cached) $ECHO_C" >&6
1618 if test -n "$ac_ct_CC"; then
1619 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1621 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1625 test -z "$as_dir" && as_dir
=.
1626 for ac_exec_ext
in '' $ac_executable_extensions; do
1627 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1628 ac_cv_prog_ac_ct_CC
="gcc"
1629 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1637 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1638 if test -n "$ac_ct_CC"; then
1639 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1640 echo "${ECHO_T}$ac_ct_CC" >&6
1642 echo "$as_me:$LINENO: result: no" >&5
1643 echo "${ECHO_T}no" >&6
1646 if test "x$ac_ct_CC" = x
; then
1649 if test "$build" != "$host"; then
1650 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1651 whose name does not start with the host triplet. If you think this
1652 configuration is useful to you, please write to autoconf@gnu.org." >&5
1653 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1654 whose name does not start with the host triplet. If you think this
1655 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1663 if test -z "$CC"; then
1664 if test -n "$ac_tool_prefix"; then
1665 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1666 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1667 echo "$as_me:$LINENO: checking for $ac_word" >&5
1668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1669 if test "${ac_cv_prog_CC+set}" = set; then
1670 echo $ECHO_N "(cached) $ECHO_C" >&6
1672 if test -n "$CC"; then
1673 ac_cv_prog_CC
="$CC" # Let the user override the test.
1675 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1679 test -z "$as_dir" && as_dir
=.
1680 for ac_exec_ext
in '' $ac_executable_extensions; do
1681 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1682 ac_cv_prog_CC
="${ac_tool_prefix}cc"
1683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1692 if test -n "$CC"; then
1693 echo "$as_me:$LINENO: result: $CC" >&5
1694 echo "${ECHO_T}$CC" >&6
1696 echo "$as_me:$LINENO: result: no" >&5
1697 echo "${ECHO_T}no" >&6
1701 if test -z "$ac_cv_prog_CC"; then
1703 # Extract the first word of "cc", so it can be a program name with args.
1704 set dummy cc
; ac_word
=$2
1705 echo "$as_me:$LINENO: checking for $ac_word" >&5
1706 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1707 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1708 echo $ECHO_N "(cached) $ECHO_C" >&6
1710 if test -n "$ac_ct_CC"; then
1711 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1713 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1717 test -z "$as_dir" && as_dir
=.
1718 for ac_exec_ext
in '' $ac_executable_extensions; do
1719 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1720 ac_cv_prog_ac_ct_CC
="cc"
1721 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1729 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1730 if test -n "$ac_ct_CC"; then
1731 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1732 echo "${ECHO_T}$ac_ct_CC" >&6
1734 echo "$as_me:$LINENO: result: no" >&5
1735 echo "${ECHO_T}no" >&6
1738 if test "x$ac_ct_CC" = x
; then
1741 if test "$build" != "$host"; then
1742 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1743 whose name does not start with the host triplet. If you think this
1744 configuration is useful to you, please write to autoconf@gnu.org." >&5
1745 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1746 whose name does not start with the host triplet. If you think this
1747 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1756 if test -z "$CC"; then
1757 # Extract the first word of "cc", so it can be a program name with args.
1758 set dummy cc
; ac_word
=$2
1759 echo "$as_me:$LINENO: checking for $ac_word" >&5
1760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1761 if test "${ac_cv_prog_CC+set}" = set; then
1762 echo $ECHO_N "(cached) $ECHO_C" >&6
1764 if test -n "$CC"; then
1765 ac_cv_prog_CC
="$CC" # Let the user override the test.
1768 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1772 test -z "$as_dir" && as_dir
=.
1773 for ac_exec_ext
in '' $ac_executable_extensions; do
1774 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1775 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1776 ac_prog_rejected
=yes
1780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1786 if test $ac_prog_rejected = yes; then
1787 # We found a bogon in the path, so make sure we never use it.
1788 set dummy
$ac_cv_prog_CC
1790 if test $# != 0; then
1791 # We chose a different compiler from the bogus one.
1792 # However, it has the same basename, so the bogon will be chosen
1793 # first if we set CC to just the basename; use the full file name.
1795 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
1801 if test -n "$CC"; then
1802 echo "$as_me:$LINENO: result: $CC" >&5
1803 echo "${ECHO_T}$CC" >&6
1805 echo "$as_me:$LINENO: result: no" >&5
1806 echo "${ECHO_T}no" >&6
1810 if test -z "$CC"; then
1811 if test -n "$ac_tool_prefix"; then
1814 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1815 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
1816 echo "$as_me:$LINENO: checking for $ac_word" >&5
1817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1818 if test "${ac_cv_prog_CC+set}" = set; then
1819 echo $ECHO_N "(cached) $ECHO_C" >&6
1821 if test -n "$CC"; then
1822 ac_cv_prog_CC
="$CC" # Let the user override the test.
1824 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1828 test -z "$as_dir" && as_dir
=.
1829 for ac_exec_ext
in '' $ac_executable_extensions; do
1830 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1831 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
1832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1841 if test -n "$CC"; then
1842 echo "$as_me:$LINENO: result: $CC" >&5
1843 echo "${ECHO_T}$CC" >&6
1845 echo "$as_me:$LINENO: result: no" >&5
1846 echo "${ECHO_T}no" >&6
1849 test -n "$CC" && break
1852 if test -z "$CC"; then
1856 # Extract the first word of "$ac_prog", so it can be a program name with args.
1857 set dummy
$ac_prog; ac_word
=$2
1858 echo "$as_me:$LINENO: checking for $ac_word" >&5
1859 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1860 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1861 echo $ECHO_N "(cached) $ECHO_C" >&6
1863 if test -n "$ac_ct_CC"; then
1864 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1866 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1870 test -z "$as_dir" && as_dir
=.
1871 for ac_exec_ext
in '' $ac_executable_extensions; do
1872 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1873 ac_cv_prog_ac_ct_CC
="$ac_prog"
1874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1882 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1883 if test -n "$ac_ct_CC"; then
1884 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1885 echo "${ECHO_T}$ac_ct_CC" >&6
1887 echo "$as_me:$LINENO: result: no" >&5
1888 echo "${ECHO_T}no" >&6
1891 test -n "$ac_ct_CC" && break
1894 if test "x$ac_ct_CC" = x
; then
1897 if test "$build" != "$host"; then
1898 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1899 whose name does not start with the host triplet. If you think this
1900 configuration is useful to you, please write to autoconf@gnu.org." >&5
1901 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1902 whose name does not start with the host triplet. If you think this
1903 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1912 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1913 See \`config.log' for more details." >&5
1914 echo "$as_me: error: no acceptable C compiler found in \$PATH
1915 See \`config.log' for more details." >&2;}
1916 { (exit 1); exit 1; }; }
1918 # Provide some information about the compiler.
1919 echo "$as_me:$LINENO:" \
1920 "checking for C compiler version" >&5
1921 ac_compiler
=`set X $ac_compile; echo $2`
1922 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1923 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
1925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1926 (exit $ac_status); }
1927 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1928 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
1930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1931 (exit $ac_status); }
1932 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1933 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
1935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1936 (exit $ac_status); }
1938 cat >conftest.
$ac_ext <<_ACEOF
1941 cat confdefs.h
>>conftest.
$ac_ext
1942 cat >>conftest.
$ac_ext <<_ACEOF
1943 /* end confdefs.h. */
1953 ac_clean_files_save
=$ac_clean_files
1954 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
1955 # Try to create an executable without -o first, disregard a.out.
1956 # It will help us diagnose broken compilers, and finding out an intuition
1958 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1959 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1960 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1962 # List of possible output files, starting from the most likely.
1963 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
1964 # only as a last resort. b.out is created by i960 compilers.
1965 ac_files
='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
1967 # The IRIX 6 linker writes into existing files which may not be
1968 # executable, retaining their permissions. Remove them first so a
1969 # subsequent execution test works.
1971 for ac_file
in $ac_files
1974 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
1975 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
1980 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1981 (eval $ac_link_default) 2>&5
1983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1984 (exit $ac_status); }; then
1985 # Be careful to initialize this variable, since it used to be cached.
1986 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1988 for ac_file
in $ac_files
1990 test -f "$ac_file" ||
continue
1992 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
1995 # We found the default executable, but exeext='' is most
1999 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2000 # FIXME: I believe we export ac_cv_exeext for Libtool,
2001 # but it would be cool to find out if it's true. Does anybody
2002 # maintain Libtool? --akim.
2010 echo "$as_me: failed program was:" >&5
2011 sed 's/^/| /' conftest.
$ac_ext >&5
2013 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2014 See \`config.log' for more details." >&5
2015 echo "$as_me: error: C compiler cannot create executables
2016 See \`config.log' for more details." >&2;}
2017 { (exit 77); exit 77; }; }
2020 ac_exeext
=$ac_cv_exeext
2021 echo "$as_me:$LINENO: result: $ac_file" >&5
2022 echo "${ECHO_T}$ac_file" >&6
2024 # Check the compiler produces executables we can run. If not, either
2025 # the compiler is broken, or we cross compile.
2026 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2027 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2028 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2029 # If not cross compiling, check that we can run a simple program.
2030 if test "$cross_compiling" != yes; then
2031 if { ac_try
='./$ac_file'
2032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2036 (exit $ac_status); }; }; then
2039 if test "$cross_compiling" = maybe
; then
2042 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2043 If you meant to cross compile, use \`--host'.
2044 See \`config.log' for more details." >&5
2045 echo "$as_me: error: cannot run C compiled programs.
2046 If you meant to cross compile, use \`--host'.
2047 See \`config.log' for more details." >&2;}
2048 { (exit 1); exit 1; }; }
2052 echo "$as_me:$LINENO: result: yes" >&5
2053 echo "${ECHO_T}yes" >&6
2055 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
2056 ac_clean_files
=$ac_clean_files_save
2057 # Check the compiler produces executables we can run. If not, either
2058 # the compiler is broken, or we cross compile.
2059 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2060 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2061 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2062 echo "${ECHO_T}$cross_compiling" >&6
2064 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2065 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2067 (eval $ac_link) 2>&5
2069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2070 (exit $ac_status); }; then
2071 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2072 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2073 # work properly (i.e., refer to `conftest.exe'), while it won't with
2075 for ac_file
in conftest.exe conftest conftest.
*; do
2076 test -f "$ac_file" ||
continue
2078 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
2079 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2086 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2087 See \`config.log' for more details." >&5
2088 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2089 See \`config.log' for more details." >&2;}
2090 { (exit 1); exit 1; }; }
2093 rm -f conftest
$ac_cv_exeext
2094 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2095 echo "${ECHO_T}$ac_cv_exeext" >&6
2097 rm -f conftest.
$ac_ext
2098 EXEEXT
=$ac_cv_exeext
2100 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2101 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2102 if test "${ac_cv_objext+set}" = set; then
2103 echo $ECHO_N "(cached) $ECHO_C" >&6
2105 cat >conftest.
$ac_ext <<_ACEOF
2108 cat confdefs.h
>>conftest.
$ac_ext
2109 cat >>conftest.
$ac_ext <<_ACEOF
2110 /* end confdefs.h. */
2120 rm -f conftest.o conftest.obj
2121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2122 (eval $ac_compile) 2>&5
2124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2125 (exit $ac_status); }; then
2126 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2128 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
2129 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2134 echo "$as_me: failed program was:" >&5
2135 sed 's/^/| /' conftest.
$ac_ext >&5
2137 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2138 See \`config.log' for more details." >&5
2139 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2140 See \`config.log' for more details." >&2;}
2141 { (exit 1); exit 1; }; }
2144 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2146 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2147 echo "${ECHO_T}$ac_cv_objext" >&6
2148 OBJEXT
=$ac_cv_objext
2150 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2151 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2152 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2153 echo $ECHO_N "(cached) $ECHO_C" >&6
2155 cat >conftest.
$ac_ext <<_ACEOF
2158 cat confdefs.h
>>conftest.
$ac_ext
2159 cat >>conftest.
$ac_ext <<_ACEOF
2160 /* end confdefs.h. */
2173 rm -f conftest.
$ac_objext
2174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2175 (eval $ac_compile) 2>conftest.er1
2177 grep -v '^ *+' conftest.er1
>conftest.err
2179 cat conftest.err
>&5
2180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2181 (exit $ac_status); } &&
2182 { ac_try
='test -z "$ac_c_werror_flag"
2183 || test ! -s conftest.err'
2184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2188 (exit $ac_status); }; } &&
2189 { ac_try
='test -s conftest.$ac_objext'
2190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2194 (exit $ac_status); }; }; then
2197 echo "$as_me: failed program was:" >&5
2198 sed 's/^/| /' conftest.
$ac_ext >&5
2202 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2203 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2206 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2207 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2208 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2209 ac_test_CFLAGS
=${CFLAGS+set}
2210 ac_save_CFLAGS
=$CFLAGS
2211 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2212 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2213 if test "${ac_cv_prog_cc_g+set}" = set; then
2214 echo $ECHO_N "(cached) $ECHO_C" >&6
2216 ac_save_c_werror_flag
=$ac_c_werror_flag
2217 ac_c_werror_flag
=yes
2220 cat >conftest.
$ac_ext <<_ACEOF
2223 cat confdefs.h
>>conftest.
$ac_ext
2224 cat >>conftest.
$ac_ext <<_ACEOF
2225 /* end confdefs.h. */
2235 rm -f conftest.
$ac_objext
2236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2237 (eval $ac_compile) 2>conftest.er1
2239 grep -v '^ *+' conftest.er1
>conftest.err
2241 cat conftest.err
>&5
2242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2243 (exit $ac_status); } &&
2244 { ac_try
='test -z "$ac_c_werror_flag"
2245 || test ! -s conftest.err'
2246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2250 (exit $ac_status); }; } &&
2251 { ac_try
='test -s conftest.$ac_objext'
2252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2256 (exit $ac_status); }; }; then
2259 echo "$as_me: failed program was:" >&5
2260 sed 's/^/| /' conftest.
$ac_ext >&5
2263 cat >conftest.
$ac_ext <<_ACEOF
2266 cat confdefs.h
>>conftest.
$ac_ext
2267 cat >>conftest.
$ac_ext <<_ACEOF
2268 /* end confdefs.h. */
2278 rm -f conftest.
$ac_objext
2279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2280 (eval $ac_compile) 2>conftest.er1
2282 grep -v '^ *+' conftest.er1
>conftest.err
2284 cat conftest.err
>&5
2285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2286 (exit $ac_status); } &&
2287 { ac_try
='test -z "$ac_c_werror_flag"
2288 || test ! -s conftest.err'
2289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2293 (exit $ac_status); }; } &&
2294 { ac_try
='test -s conftest.$ac_objext'
2295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2299 (exit $ac_status); }; }; then
2302 echo "$as_me: failed program was:" >&5
2303 sed 's/^/| /' conftest.
$ac_ext >&5
2305 ac_c_werror_flag
=$ac_save_c_werror_flag
2307 cat >conftest.
$ac_ext <<_ACEOF
2310 cat confdefs.h
>>conftest.
$ac_ext
2311 cat >>conftest.
$ac_ext <<_ACEOF
2312 /* end confdefs.h. */
2322 rm -f conftest.
$ac_objext
2323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2324 (eval $ac_compile) 2>conftest.er1
2326 grep -v '^ *+' conftest.er1
>conftest.err
2328 cat conftest.err
>&5
2329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330 (exit $ac_status); } &&
2331 { ac_try
='test -z "$ac_c_werror_flag"
2332 || test ! -s conftest.err'
2333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2337 (exit $ac_status); }; } &&
2338 { ac_try
='test -s conftest.$ac_objext'
2339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2343 (exit $ac_status); }; }; then
2346 echo "$as_me: failed program was:" >&5
2347 sed 's/^/| /' conftest.
$ac_ext >&5
2350 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2352 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2354 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2355 ac_c_werror_flag
=$ac_save_c_werror_flag
2357 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2358 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2359 if test "$ac_test_CFLAGS" = set; then
2360 CFLAGS
=$ac_save_CFLAGS
2361 elif test $ac_cv_prog_cc_g = yes; then
2362 if test "$GCC" = yes; then
2368 if test "$GCC" = yes; then
2374 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2375 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2376 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2377 echo $ECHO_N "(cached) $ECHO_C" >&6
2379 ac_cv_prog_cc_stdc
=no
2381 cat >conftest.
$ac_ext <<_ACEOF
2384 cat confdefs.h
>>conftest.
$ac_ext
2385 cat >>conftest.
$ac_ext <<_ACEOF
2386 /* end confdefs.h. */
2389 #include <sys/types.h>
2390 #include <sys/stat.h>
2391 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2392 struct buf { int x; };
2393 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2394 static char *e (p, i)
2400 static char *f (char * (*g) (char **, int), char **p, ...)
2405 s = g (p, va_arg (v,int));
2410 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2411 function prototypes and stuff, but not '\xHH' hex character constants.
2412 These don't provoke an error unfortunately, instead are silently treated
2413 as 'x'. The following induces an error, until -std is added to get
2414 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2415 array size at least. It's necessary to write '\x00'==0 to get something
2416 that's true only with -std. */
2417 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2419 int test (int i, double x);
2420 struct s1 {int (*f) (int a);};
2421 struct s2 {int (*f) (double a);};
2422 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2428 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2433 # Don't try gcc -ansi; that turns off useful extensions and
2434 # breaks some systems' header files.
2435 # AIX -qlanglvl=ansi
2436 # Ultrix, OSF/1, Tru64 -std
2437 # HP-UX 10.20 and later -Ae
2438 # HP-UX older versions -Aa -D_HPUX_SOURCE
2439 # SVR4 -Xc -D__EXTENSIONS__
2440 for ac_arg
in "" -qlanglvl=ansi
-std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2442 CC
="$ac_save_CC $ac_arg"
2443 rm -f conftest.
$ac_objext
2444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2445 (eval $ac_compile) 2>conftest.er1
2447 grep -v '^ *+' conftest.er1
>conftest.err
2449 cat conftest.err
>&5
2450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2451 (exit $ac_status); } &&
2452 { ac_try
='test -z "$ac_c_werror_flag"
2453 || test ! -s conftest.err'
2454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2458 (exit $ac_status); }; } &&
2459 { ac_try
='test -s conftest.$ac_objext'
2460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2464 (exit $ac_status); }; }; then
2465 ac_cv_prog_cc_stdc
=$ac_arg
2468 echo "$as_me: failed program was:" >&5
2469 sed 's/^/| /' conftest.
$ac_ext >&5
2472 rm -f conftest.err conftest.
$ac_objext
2474 rm -f conftest.
$ac_ext conftest.
$ac_objext
2479 case "x$ac_cv_prog_cc_stdc" in
2481 echo "$as_me:$LINENO: result: none needed" >&5
2482 echo "${ECHO_T}none needed" >&6 ;;
2484 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2485 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2486 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2489 # Some people use a C++ compiler to compile C. Since we use `exit',
2490 # in C++ we need to declare it. In case someone uses the same compiler
2491 # for both compiling C and C++ we need to have the C++ compiler decide
2492 # the declaration of exit, since it's the most demanding environment.
2493 cat >conftest.
$ac_ext <<_ACEOF
2498 rm -f conftest.
$ac_objext
2499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2500 (eval $ac_compile) 2>conftest.er1
2502 grep -v '^ *+' conftest.er1
>conftest.err
2504 cat conftest.err
>&5
2505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506 (exit $ac_status); } &&
2507 { ac_try
='test -z "$ac_c_werror_flag"
2508 || test ! -s conftest.err'
2509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2513 (exit $ac_status); }; } &&
2514 { ac_try
='test -s conftest.$ac_objext'
2515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2519 (exit $ac_status); }; }; then
2520 for ac_declaration
in \
2522 'extern "C" void std::exit (int) throw (); using std::exit;' \
2523 'extern "C" void std::exit (int); using std::exit;' \
2524 'extern "C" void exit (int) throw ();' \
2525 'extern "C" void exit (int);' \
2528 cat >conftest.
$ac_ext <<_ACEOF
2531 cat confdefs.h
>>conftest.
$ac_ext
2532 cat >>conftest.
$ac_ext <<_ACEOF
2533 /* end confdefs.h. */
2544 rm -f conftest.
$ac_objext
2545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2546 (eval $ac_compile) 2>conftest.er1
2548 grep -v '^ *+' conftest.er1
>conftest.err
2550 cat conftest.err
>&5
2551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552 (exit $ac_status); } &&
2553 { ac_try
='test -z "$ac_c_werror_flag"
2554 || test ! -s conftest.err'
2555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559 (exit $ac_status); }; } &&
2560 { ac_try
='test -s conftest.$ac_objext'
2561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565 (exit $ac_status); }; }; then
2568 echo "$as_me: failed program was:" >&5
2569 sed 's/^/| /' conftest.
$ac_ext >&5
2573 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2574 cat >conftest.
$ac_ext <<_ACEOF
2577 cat confdefs.h
>>conftest.
$ac_ext
2578 cat >>conftest.
$ac_ext <<_ACEOF
2579 /* end confdefs.h. */
2589 rm -f conftest.
$ac_objext
2590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2591 (eval $ac_compile) 2>conftest.er1
2593 grep -v '^ *+' conftest.er1
>conftest.err
2595 cat conftest.err
>&5
2596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597 (exit $ac_status); } &&
2598 { ac_try
='test -z "$ac_c_werror_flag"
2599 || test ! -s conftest.err'
2600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604 (exit $ac_status); }; } &&
2605 { ac_try
='test -s conftest.$ac_objext'
2606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610 (exit $ac_status); }; }; then
2613 echo "$as_me: failed program was:" >&5
2614 sed 's/^/| /' conftest.
$ac_ext >&5
2617 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2620 if test -n "$ac_declaration"; then
2621 echo '#ifdef __cplusplus' >>confdefs.h
2622 echo $ac_declaration >>confdefs.h
2623 echo '#endif' >>confdefs.h
2627 echo "$as_me: failed program was:" >&5
2628 sed 's/^/| /' conftest.
$ac_ext >&5
2631 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2633 ac_cpp
='$CPP $CPPFLAGS'
2634 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2635 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2636 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2639 ac_cpp
='$CXXCPP $CPPFLAGS'
2640 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2641 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2642 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
2643 if test -n "$ac_tool_prefix"; then
2644 for ac_prog
in $CCC g
++ c
++ gpp aCC CC cxx cc
++ cl FCC KCC RCC xlC_r xlC
2646 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2647 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2648 echo "$as_me:$LINENO: checking for $ac_word" >&5
2649 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2650 if test "${ac_cv_prog_CXX+set}" = set; then
2651 echo $ECHO_N "(cached) $ECHO_C" >&6
2653 if test -n "$CXX"; then
2654 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
2656 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2660 test -z "$as_dir" && as_dir
=.
2661 for ac_exec_ext
in '' $ac_executable_extensions; do
2662 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2663 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
2664 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2673 if test -n "$CXX"; then
2674 echo "$as_me:$LINENO: result: $CXX" >&5
2675 echo "${ECHO_T}$CXX" >&6
2677 echo "$as_me:$LINENO: result: no" >&5
2678 echo "${ECHO_T}no" >&6
2681 test -n "$CXX" && break
2684 if test -z "$CXX"; then
2686 for ac_prog
in $CCC g
++ c
++ gpp aCC CC cxx cc
++ cl FCC KCC RCC xlC_r xlC
2688 # Extract the first word of "$ac_prog", so it can be a program name with args.
2689 set dummy
$ac_prog; ac_word
=$2
2690 echo "$as_me:$LINENO: checking for $ac_word" >&5
2691 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2692 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2693 echo $ECHO_N "(cached) $ECHO_C" >&6
2695 if test -n "$ac_ct_CXX"; then
2696 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
2698 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2702 test -z "$as_dir" && as_dir
=.
2703 for ac_exec_ext
in '' $ac_executable_extensions; do
2704 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2705 ac_cv_prog_ac_ct_CXX
="$ac_prog"
2706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2714 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
2715 if test -n "$ac_ct_CXX"; then
2716 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2717 echo "${ECHO_T}$ac_ct_CXX" >&6
2719 echo "$as_me:$LINENO: result: no" >&5
2720 echo "${ECHO_T}no" >&6
2723 test -n "$ac_ct_CXX" && break
2726 if test "x$ac_ct_CXX" = x
; then
2729 if test "$build" != "$host"; then
2730 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2731 whose name does not start with the host triplet. If you think this
2732 configuration is useful to you, please write to autoconf@gnu.org." >&5
2733 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2734 whose name does not start with the host triplet. If you think this
2735 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2742 # Provide some information about the compiler.
2743 echo "$as_me:$LINENO:" \
2744 "checking for C++ compiler version" >&5
2745 ac_compiler
=`set X $ac_compile; echo $2`
2746 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2747 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750 (exit $ac_status); }
2751 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2752 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2755 (exit $ac_status); }
2756 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2757 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760 (exit $ac_status); }
2762 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2763 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2764 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2765 echo $ECHO_N "(cached) $ECHO_C" >&6
2767 cat >conftest.
$ac_ext <<_ACEOF
2770 cat confdefs.h
>>conftest.
$ac_ext
2771 cat >>conftest.
$ac_ext <<_ACEOF
2772 /* end confdefs.h. */
2785 rm -f conftest.
$ac_objext
2786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2787 (eval $ac_compile) 2>conftest.er1
2789 grep -v '^ *+' conftest.er1
>conftest.err
2791 cat conftest.err
>&5
2792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793 (exit $ac_status); } &&
2794 { ac_try
='test -z "$ac_cxx_werror_flag"
2795 || test ! -s conftest.err'
2796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2800 (exit $ac_status); }; } &&
2801 { ac_try
='test -s conftest.$ac_objext'
2802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2806 (exit $ac_status); }; }; then
2809 echo "$as_me: failed program was:" >&5
2810 sed 's/^/| /' conftest.
$ac_ext >&5
2814 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2815 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
2818 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2819 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2820 GXX
=`test $ac_compiler_gnu = yes && echo yes`
2821 ac_test_CXXFLAGS
=${CXXFLAGS+set}
2822 ac_save_CXXFLAGS
=$CXXFLAGS
2823 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2824 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2825 if test "${ac_cv_prog_cxx_g+set}" = set; then
2826 echo $ECHO_N "(cached) $ECHO_C" >&6
2828 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
2829 ac_cxx_werror_flag
=yes
2832 cat >conftest.
$ac_ext <<_ACEOF
2835 cat confdefs.h
>>conftest.
$ac_ext
2836 cat >>conftest.
$ac_ext <<_ACEOF
2837 /* end confdefs.h. */
2847 rm -f conftest.
$ac_objext
2848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2849 (eval $ac_compile) 2>conftest.er1
2851 grep -v '^ *+' conftest.er1
>conftest.err
2853 cat conftest.err
>&5
2854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2855 (exit $ac_status); } &&
2856 { ac_try
='test -z "$ac_cxx_werror_flag"
2857 || test ! -s conftest.err'
2858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2862 (exit $ac_status); }; } &&
2863 { ac_try
='test -s conftest.$ac_objext'
2864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2868 (exit $ac_status); }; }; then
2869 ac_cv_prog_cxx_g
=yes
2871 echo "$as_me: failed program was:" >&5
2872 sed 's/^/| /' conftest.
$ac_ext >&5
2875 cat >conftest.
$ac_ext <<_ACEOF
2878 cat confdefs.h
>>conftest.
$ac_ext
2879 cat >>conftest.
$ac_ext <<_ACEOF
2880 /* end confdefs.h. */
2890 rm -f conftest.
$ac_objext
2891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2892 (eval $ac_compile) 2>conftest.er1
2894 grep -v '^ *+' conftest.er1
>conftest.err
2896 cat conftest.err
>&5
2897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898 (exit $ac_status); } &&
2899 { ac_try
='test -z "$ac_cxx_werror_flag"
2900 || test ! -s conftest.err'
2901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905 (exit $ac_status); }; } &&
2906 { ac_try
='test -s conftest.$ac_objext'
2907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911 (exit $ac_status); }; }; then
2914 echo "$as_me: failed program was:" >&5
2915 sed 's/^/| /' conftest.
$ac_ext >&5
2917 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
2919 cat >conftest.
$ac_ext <<_ACEOF
2922 cat confdefs.h
>>conftest.
$ac_ext
2923 cat >>conftest.
$ac_ext <<_ACEOF
2924 /* end confdefs.h. */
2934 rm -f conftest.
$ac_objext
2935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2936 (eval $ac_compile) 2>conftest.er1
2938 grep -v '^ *+' conftest.er1
>conftest.err
2940 cat conftest.err
>&5
2941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2942 (exit $ac_status); } &&
2943 { ac_try
='test -z "$ac_cxx_werror_flag"
2944 || test ! -s conftest.err'
2945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2949 (exit $ac_status); }; } &&
2950 { ac_try
='test -s conftest.$ac_objext'
2951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955 (exit $ac_status); }; }; then
2956 ac_cv_prog_cxx_g
=yes
2958 echo "$as_me: failed program was:" >&5
2959 sed 's/^/| /' conftest.
$ac_ext >&5
2962 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2964 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2966 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2967 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
2969 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2970 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2971 if test "$ac_test_CXXFLAGS" = set; then
2972 CXXFLAGS
=$ac_save_CXXFLAGS
2973 elif test $ac_cv_prog_cxx_g = yes; then
2974 if test "$GXX" = yes; then
2980 if test "$GXX" = yes; then
2986 for ac_declaration
in \
2988 'extern "C" void std::exit (int) throw (); using std::exit;' \
2989 'extern "C" void std::exit (int); using std::exit;' \
2990 'extern "C" void exit (int) throw ();' \
2991 'extern "C" void exit (int);' \
2994 cat >conftest.
$ac_ext <<_ACEOF
2997 cat confdefs.h
>>conftest.
$ac_ext
2998 cat >>conftest.
$ac_ext <<_ACEOF
2999 /* end confdefs.h. */
3010 rm -f conftest.
$ac_objext
3011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3012 (eval $ac_compile) 2>conftest.er1
3014 grep -v '^ *+' conftest.er1
>conftest.err
3016 cat conftest.err
>&5
3017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018 (exit $ac_status); } &&
3019 { ac_try
='test -z "$ac_cxx_werror_flag"
3020 || test ! -s conftest.err'
3021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3025 (exit $ac_status); }; } &&
3026 { ac_try
='test -s conftest.$ac_objext'
3027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031 (exit $ac_status); }; }; then
3034 echo "$as_me: failed program was:" >&5
3035 sed 's/^/| /' conftest.
$ac_ext >&5
3039 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3040 cat >conftest.
$ac_ext <<_ACEOF
3043 cat confdefs.h
>>conftest.
$ac_ext
3044 cat >>conftest.
$ac_ext <<_ACEOF
3045 /* end confdefs.h. */
3055 rm -f conftest.
$ac_objext
3056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3057 (eval $ac_compile) 2>conftest.er1
3059 grep -v '^ *+' conftest.er1
>conftest.err
3061 cat conftest.err
>&5
3062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3063 (exit $ac_status); } &&
3064 { ac_try
='test -z "$ac_cxx_werror_flag"
3065 || test ! -s conftest.err'
3066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070 (exit $ac_status); }; } &&
3071 { ac_try
='test -s conftest.$ac_objext'
3072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3076 (exit $ac_status); }; }; then
3079 echo "$as_me: failed program was:" >&5
3080 sed 's/^/| /' conftest.
$ac_ext >&5
3083 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3086 if test -n "$ac_declaration"; then
3087 echo '#ifdef __cplusplus' >>confdefs.h
3088 echo $ac_declaration >>confdefs.h
3089 echo '#endif' >>confdefs.h
3093 ac_cpp
='$CPP $CPPFLAGS'
3094 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3095 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3096 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3101 ac_cpp
='$CXXCPP $CPPFLAGS'
3102 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3103 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3104 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
3106 if test "$cross_compiling" = no
; then
3107 echo "$as_me:$LINENO: checking that C++ compiler can compile simple program" >&5
3108 echo $ECHO_N "checking that C++ compiler can compile simple program... $ECHO_C" >&6
3110 if test "$cross_compiling" = yes; then
3113 cat >conftest.
$ac_ext <<_ACEOF
3117 cat confdefs.h
>>conftest.
$ac_ext
3118 cat >>conftest.
$ac_ext <<_ACEOF
3119 /* end confdefs.h. */
3129 rm -f conftest
$ac_exeext
3130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3131 (eval $ac_link) 2>&5
3133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139 (exit $ac_status); }; }; then
3140 echo "$as_me:$LINENO: result: yes" >&5
3141 echo "${ECHO_T}yes" >&6
3143 echo "$as_me: program exited with status $ac_status" >&5
3144 echo "$as_me: failed program was:" >&5
3145 sed 's/^/| /' conftest.
$ac_ext >&5
3148 echo "$as_me:$LINENO: result: no" >&5
3149 echo "${ECHO_T}no" >&6
3150 { { echo "$as_me:$LINENO: error: a working C++ compiler is required" >&5
3151 echo "$as_me: error: a working C++ compiler is required" >&2;}
3152 { (exit 1); exit 1; }; }
3154 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3157 if test "$cross_compiling" = no
; then
3158 echo "$as_me:$LINENO: checking that C++ static constructors and destructors are called" >&5
3159 echo $ECHO_N "checking that C++ static constructors and destructors are called... $ECHO_C" >&6
3161 if test "$cross_compiling" = yes; then
3164 cat >conftest.
$ac_ext <<_ACEOF
3168 cat confdefs.h
>>conftest.
$ac_ext
3169 cat >>conftest.
$ac_ext <<_ACEOF
3170 /* end confdefs.h. */
3181 ~A() { if (i == 1) _exit(0); }
3194 rm -f conftest
$ac_exeext
3195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3196 (eval $ac_link) 2>&5
3198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3199 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3204 (exit $ac_status); }; }; then
3205 echo "$as_me:$LINENO: result: yes" >&5
3206 echo "${ECHO_T}yes" >&6
3208 echo "$as_me: program exited with status $ac_status" >&5
3209 echo "$as_me: failed program was:" >&5
3210 sed 's/^/| /' conftest.
$ac_ext >&5
3213 echo "$as_me:$LINENO: result: no" >&5
3214 echo "${ECHO_T}no" >&6
3215 { { echo "$as_me:$LINENO: error: a working C++ compiler is required" >&5
3216 echo "$as_me: error: a working C++ compiler is required" >&2;}
3217 { (exit 1); exit 1; }; }
3219 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3222 echo "$as_me:$LINENO: checking that header files support C++" >&5
3223 echo $ECHO_N "checking that header files support C++... $ECHO_C" >&6
3224 cat >conftest.
$ac_ext <<_ACEOF
3228 cat confdefs.h
>>conftest.
$ac_ext
3229 cat >>conftest.
$ac_ext <<_ACEOF
3230 /* end confdefs.h. */
3249 rm -f conftest.
$ac_objext conftest
$ac_exeext
3250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3251 (eval $ac_link) 2>conftest.er1
3253 grep -v '^ *+' conftest.er1
>conftest.err
3255 cat conftest.err
>&5
3256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3257 (exit $ac_status); } &&
3258 { ac_try
='test -z "$ac_cxx_werror_flag"
3259 || test ! -s conftest.err'
3260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3264 (exit $ac_status); }; } &&
3265 { ac_try
='test -s conftest$ac_exeext'
3266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3270 (exit $ac_status); }; }; then
3271 echo "$as_me:$LINENO: result: yes" >&5
3272 echo "${ECHO_T}yes" >&6
3274 echo "$as_me: failed program was:" >&5
3275 sed 's/^/| /' conftest.
$ac_ext >&5
3277 echo "$as_me:$LINENO: result: no" >&5
3278 echo "${ECHO_T}no" >&6
3279 { { echo "$as_me:$LINENO: error: header files do not support C++
3280 (if you are using a version of gcc/g++ earlier than 2.5,
3281 you should install libg++)" >&5
3282 echo "$as_me: error: header files do not support C++
3283 (if you are using a version of gcc/g++ earlier than 2.5,
3284 you should install libg++)" >&2;}
3285 { (exit 1); exit 1; }; }
3287 rm -f conftest.err conftest.
$ac_objext \
3288 conftest
$ac_exeext conftest.
$ac_ext
3290 ac_cpp
='$CPP $CPPFLAGS'
3291 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3292 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3293 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3296 echo "$as_me:$LINENO: checking whether character set is EBCDIC" >&5
3297 echo $ECHO_N "checking whether character set is EBCDIC... $ECHO_C" >&6
3298 cat >conftest.
$ac_ext <<_ACEOF
3302 cat confdefs.h
>>conftest.
$ac_ext
3303 cat >>conftest.
$ac_ext <<_ACEOF
3304 /* end confdefs.h. */
3307 /* Treat any failure as ASCII for compatibility with existing art.
3308 Use compile-time rather than run-time tests for cross-compiler
3311 make an error "Character set is not EBCDIC"
3324 rm -f conftest.
$ac_objext
3325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3326 (eval $ac_compile) 2>conftest.er1
3328 grep -v '^ *+' conftest.er1
>conftest.err
3330 cat conftest.err
>&5
3331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3332 (exit $ac_status); } &&
3333 { ac_try
='test -z "$ac_c_werror_flag"
3334 || test ! -s conftest.err'
3335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3339 (exit $ac_status); }; } &&
3340 { ac_try
='test -s conftest.$ac_objext'
3341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3345 (exit $ac_status); }; }; then
3346 groff_cv_ebcdic
="yes"
3347 TTYDEVDIRS
="font/devcp1047"
3348 echo "$as_me:$LINENO: result: yes" >&5
3349 echo "${ECHO_T}yes" >&6
3351 cat >>confdefs.h
<<\_ACEOF
3352 #define IS_EBCDIC_HOST 1
3356 echo "$as_me: failed program was:" >&5
3357 sed 's/^/| /' conftest.
$ac_ext >&5
3359 groff_cv_ebcdic
="no"
3360 TTYDEVDIRS
="font/devascii font/devlatin1"
3361 OTHERDEVDIRS
="font/devlj4 font/devlbp"
3362 echo "$as_me:$LINENO: result: no" >&5
3363 echo "${ECHO_T}no" >&6
3365 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3368 if test "$groff_cv_ebcdic" = "yes"; then
3369 echo "$as_me:$LINENO: checking for OS/390 Unix" >&5
3370 echo $ECHO_N "checking for OS/390 Unix... $ECHO_C" >&6
3373 CFLAGS
="$CFLAGS -D_ALL_SOURCE"
3374 echo "$as_me:$LINENO: result: yes" >&5
3375 echo "${ECHO_T}yes" >&6 ;;
3377 echo "$as_me:$LINENO: result: no" >&5
3378 echo "${ECHO_T}no" >&6 ;;
3382 ac_cpp
='$CPP $CPPFLAGS'
3383 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3384 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3385 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3386 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3387 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3388 # On Suns, sometimes $CPP names a directory.
3389 if test -n "$CPP" && test -d "$CPP"; then
3392 if test -z "$CPP"; then
3393 if test "${ac_cv_prog_CPP+set}" = set; then
3394 echo $ECHO_N "(cached) $ECHO_C" >&6
3396 # Double quotes because CPP needs to be expanded
3397 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3400 for ac_c_preproc_warn_flag
in '' yes
3402 # Use a header file that comes with gcc, so configuring glibc
3403 # with a fresh cross-compiler works.
3404 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3405 # <limits.h> exists even on freestanding compilers.
3406 # On the NeXT, cc -E runs the code through the compiler's parser,
3407 # not just through cpp. "Syntax error" is here to catch this case.
3408 cat >conftest.
$ac_ext <<_ACEOF
3411 cat confdefs.h
>>conftest.
$ac_ext
3412 cat >>conftest.
$ac_ext <<_ACEOF
3413 /* end confdefs.h. */
3415 # include <limits.h>
3417 # include <assert.h>
3421 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3422 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3424 grep -v '^ *+' conftest.er1
>conftest.err
3426 cat conftest.err
>&5
3427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3428 (exit $ac_status); } >/dev
/null
; then
3429 if test -s conftest.err
; then
3430 ac_cpp_err
=$ac_c_preproc_warn_flag
3431 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3438 if test -z "$ac_cpp_err"; then
3441 echo "$as_me: failed program was:" >&5
3442 sed 's/^/| /' conftest.
$ac_ext >&5
3444 # Broken: fails on valid input.
3447 rm -f conftest.err conftest.
$ac_ext
3449 # OK, works on sane cases. Now check whether non-existent headers
3450 # can be detected and how.
3451 cat >conftest.
$ac_ext <<_ACEOF
3454 cat confdefs.h
>>conftest.
$ac_ext
3455 cat >>conftest.
$ac_ext <<_ACEOF
3456 /* end confdefs.h. */
3457 #include <ac_nonexistent.h>
3459 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3460 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3462 grep -v '^ *+' conftest.er1
>conftest.err
3464 cat conftest.err
>&5
3465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3466 (exit $ac_status); } >/dev
/null
; then
3467 if test -s conftest.err
; then
3468 ac_cpp_err
=$ac_c_preproc_warn_flag
3469 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3476 if test -z "$ac_cpp_err"; then
3477 # Broken: success on invalid input.
3480 echo "$as_me: failed program was:" >&5
3481 sed 's/^/| /' conftest.
$ac_ext >&5
3483 # Passes both tests.
3487 rm -f conftest.err conftest.
$ac_ext
3490 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3491 rm -f conftest.err conftest.
$ac_ext
3492 if $ac_preproc_ok; then
3504 echo "$as_me:$LINENO: result: $CPP" >&5
3505 echo "${ECHO_T}$CPP" >&6
3507 for ac_c_preproc_warn_flag
in '' yes
3509 # Use a header file that comes with gcc, so configuring glibc
3510 # with a fresh cross-compiler works.
3511 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3512 # <limits.h> exists even on freestanding compilers.
3513 # On the NeXT, cc -E runs the code through the compiler's parser,
3514 # not just through cpp. "Syntax error" is here to catch this case.
3515 cat >conftest.
$ac_ext <<_ACEOF
3518 cat confdefs.h
>>conftest.
$ac_ext
3519 cat >>conftest.
$ac_ext <<_ACEOF
3520 /* end confdefs.h. */
3522 # include <limits.h>
3524 # include <assert.h>
3528 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3529 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3531 grep -v '^ *+' conftest.er1
>conftest.err
3533 cat conftest.err
>&5
3534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3535 (exit $ac_status); } >/dev
/null
; then
3536 if test -s conftest.err
; then
3537 ac_cpp_err
=$ac_c_preproc_warn_flag
3538 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3545 if test -z "$ac_cpp_err"; then
3548 echo "$as_me: failed program was:" >&5
3549 sed 's/^/| /' conftest.
$ac_ext >&5
3551 # Broken: fails on valid input.
3554 rm -f conftest.err conftest.
$ac_ext
3556 # OK, works on sane cases. Now check whether non-existent headers
3557 # can be detected and how.
3558 cat >conftest.
$ac_ext <<_ACEOF
3561 cat confdefs.h
>>conftest.
$ac_ext
3562 cat >>conftest.
$ac_ext <<_ACEOF
3563 /* end confdefs.h. */
3564 #include <ac_nonexistent.h>
3566 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3567 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3569 grep -v '^ *+' conftest.er1
>conftest.err
3571 cat conftest.err
>&5
3572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3573 (exit $ac_status); } >/dev
/null
; then
3574 if test -s conftest.err
; then
3575 ac_cpp_err
=$ac_c_preproc_warn_flag
3576 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3583 if test -z "$ac_cpp_err"; then
3584 # Broken: success on invalid input.
3587 echo "$as_me: failed program was:" >&5
3588 sed 's/^/| /' conftest.
$ac_ext >&5
3590 # Passes both tests.
3594 rm -f conftest.err conftest.
$ac_ext
3597 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3598 rm -f conftest.err conftest.
$ac_ext
3599 if $ac_preproc_ok; then
3602 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3603 See \`config.log' for more details." >&5
3604 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3605 See \`config.log' for more details." >&2;}
3606 { (exit 1); exit 1; }; }
3610 ac_cpp
='$CPP $CPPFLAGS'
3611 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3612 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3613 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3616 echo "$as_me:$LINENO: checking for X" >&5
3617 echo $ECHO_N "checking for X... $ECHO_C" >&6
3620 # Check whether --with-x or --without-x was given.
3621 if test "${with_x+set}" = set; then
3625 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3626 if test "x$with_x" = xno
; then
3627 # The user explicitly disabled X.
3630 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
3631 # Both variables are already set.
3634 if test "${ac_cv_have_x+set}" = set; then
3635 echo $ECHO_N "(cached) $ECHO_C" >&6
3637 # One or both of the vars are not set, and there is no cached value.
3638 ac_x_includes
=no ac_x_libraries
=no
3639 rm -f -r conftest.dir
3640 if mkdir conftest.dir
; then
3642 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
3643 cat >Imakefile
<<'_ACEOF'
3645 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
3647 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
3648 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3649 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
3650 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3651 for ac_extension
in a so sl
; do
3652 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
3653 test -f $ac_im_libdir/libX11.
$ac_extension; then
3654 ac_im_usrlibdir
=$ac_im_libdir; break
3657 # Screen out bogus values from the imake configuration. They are
3658 # bogus both because they are the default anyway, and because
3659 # using them would break gcc on systems where it needs fixed includes.
3660 case $ac_im_incroot in
3662 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
3664 case $ac_im_usrlibdir in
3666 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
3670 rm -f -r conftest.dir
3673 # Standard set of common directories for X headers.
3674 # Check X11 before X11Rn because it is often a symlink to the current release.
3686 /usr/local/X11/include
3687 /usr/local/X11R6/include
3688 /usr/local/X11R5/include
3689 /usr/local/X11R4/include
3691 /usr/local/include/X11
3692 /usr/local/include/X11R6
3693 /usr/local/include/X11R5
3694 /usr/local/include/X11R4
3698 /usr/XFree86/include/X11
3702 /usr/unsupported/include
3704 /usr/local/x11r5/include
3705 /usr/lpp/Xamples/include
3707 /usr/openwin/include
3708 /usr/openwin/share/include'
3710 if test "$ac_x_includes" = no
; then
3711 # Guess where to find include files, by looking for Intrinsic.h.
3712 # First, try using that file with no special directory specified.
3713 cat >conftest.
$ac_ext <<_ACEOF
3716 cat confdefs.h
>>conftest.
$ac_ext
3717 cat >>conftest.
$ac_ext <<_ACEOF
3718 /* end confdefs.h. */
3719 #include <X11/Intrinsic.h>
3721 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3722 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3724 grep -v '^ *+' conftest.er1
>conftest.err
3726 cat conftest.err
>&5
3727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3728 (exit $ac_status); } >/dev
/null
; then
3729 if test -s conftest.err
; then
3730 ac_cpp_err
=$ac_c_preproc_warn_flag
3731 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3738 if test -z "$ac_cpp_err"; then
3739 # We can compile using X headers with no special include directory.
3742 echo "$as_me: failed program was:" >&5
3743 sed 's/^/| /' conftest.
$ac_ext >&5
3745 for ac_dir
in $ac_x_header_dirs; do
3746 if test -r "$ac_dir/X11/Intrinsic.h"; then
3747 ac_x_includes
=$ac_dir
3752 rm -f conftest.err conftest.
$ac_ext
3753 fi # $ac_x_includes = no
3755 if test "$ac_x_libraries" = no
; then
3756 # Check for the libraries.
3757 # See if we find them without any special options.
3758 # Don't add to $LIBS permanently.
3761 cat >conftest.
$ac_ext <<_ACEOF
3764 cat confdefs.h
>>conftest.
$ac_ext
3765 cat >>conftest.
$ac_ext <<_ACEOF
3766 /* end confdefs.h. */
3767 #include <X11/Intrinsic.h>
3776 rm -f conftest.
$ac_objext conftest
$ac_exeext
3777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3778 (eval $ac_link) 2>conftest.er1
3780 grep -v '^ *+' conftest.er1
>conftest.err
3782 cat conftest.err
>&5
3783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3784 (exit $ac_status); } &&
3785 { ac_try
='test -z "$ac_c_werror_flag"
3786 || test ! -s conftest.err'
3787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3791 (exit $ac_status); }; } &&
3792 { ac_try
='test -s conftest$ac_exeext'
3793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3797 (exit $ac_status); }; }; then
3799 # We can link X programs with no special library path.
3802 echo "$as_me: failed program was:" >&5
3803 sed 's/^/| /' conftest.
$ac_ext >&5
3806 for ac_dir
in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
3808 # Don't even attempt the hair of trying to link an X program!
3809 for ac_extension
in a so sl
; do
3810 if test -r $ac_dir/libXt.
$ac_extension; then
3811 ac_x_libraries
=$ac_dir
3817 rm -f conftest.err conftest.
$ac_objext \
3818 conftest
$ac_exeext conftest.
$ac_ext
3819 fi # $ac_x_libraries = no
3821 if test "$ac_x_includes" = no ||
test "$ac_x_libraries" = no
; then
3822 # Didn't find X anywhere. Cache the known absence of X.
3823 ac_cv_have_x
="have_x=no"
3825 # Record where we found X for the cache.
3826 ac_cv_have_x
="have_x=yes \
3827 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
3832 eval "$ac_cv_have_x"
3835 if test "$have_x" != yes; then
3836 echo "$as_me:$LINENO: result: $have_x" >&5
3837 echo "${ECHO_T}$have_x" >&6
3840 # If each of the values was on the command line, it overrides each guess.
3841 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
3842 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
3843 # Update the cache value to reflect the command line values.
3844 ac_cv_have_x
="have_x=yes \
3845 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
3846 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
3847 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
3850 if test "$no_x" = yes; then
3851 # Not all programs may use this symbol, but it does not hurt to define it.
3853 cat >>confdefs.h
<<\_ACEOF
3854 #define X_DISPLAY_MISSING 1
3857 X_CFLAGS
= X_PRE_LIBS
= X_LIBS
= X_EXTRA_LIBS
=
3859 if test -n "$x_includes"; then
3860 X_CFLAGS
="$X_CFLAGS -I$x_includes"
3863 # It would also be nice to do this for all -L options, not just this one.
3864 if test -n "$x_libraries"; then
3865 X_LIBS
="$X_LIBS -L$x_libraries"
3866 # For Solaris; some versions of Sun CC require a space after -R and
3867 # others require no space. Words are not sufficient . . . .
3868 case `(uname -sr) 2>/dev/null` in
3870 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
3871 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
3872 ac_xsave_LIBS
=$LIBS; LIBS
="$LIBS -R$x_libraries"
3873 cat >conftest.
$ac_ext <<_ACEOF
3876 cat confdefs.h
>>conftest.
$ac_ext
3877 cat >>conftest.
$ac_ext <<_ACEOF
3878 /* end confdefs.h. */
3888 rm -f conftest.
$ac_objext conftest
$ac_exeext
3889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3890 (eval $ac_link) 2>conftest.er1
3892 grep -v '^ *+' conftest.er1
>conftest.err
3894 cat conftest.err
>&5
3895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3896 (exit $ac_status); } &&
3897 { ac_try
='test -z "$ac_c_werror_flag"
3898 || test ! -s conftest.err'
3899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3903 (exit $ac_status); }; } &&
3904 { ac_try
='test -s conftest$ac_exeext'
3905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3909 (exit $ac_status); }; }; then
3912 echo "$as_me: failed program was:" >&5
3913 sed 's/^/| /' conftest.
$ac_ext >&5
3917 rm -f conftest.err conftest.
$ac_objext \
3918 conftest
$ac_exeext conftest.
$ac_ext
3919 if test $ac_R_nospace = yes; then
3920 echo "$as_me:$LINENO: result: no" >&5
3921 echo "${ECHO_T}no" >&6
3922 X_LIBS
="$X_LIBS -R$x_libraries"
3924 LIBS
="$ac_xsave_LIBS -R $x_libraries"
3925 cat >conftest.
$ac_ext <<_ACEOF
3928 cat confdefs.h
>>conftest.
$ac_ext
3929 cat >>conftest.
$ac_ext <<_ACEOF
3930 /* end confdefs.h. */
3940 rm -f conftest.
$ac_objext conftest
$ac_exeext
3941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3942 (eval $ac_link) 2>conftest.er1
3944 grep -v '^ *+' conftest.er1
>conftest.err
3946 cat conftest.err
>&5
3947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3948 (exit $ac_status); } &&
3949 { ac_try
='test -z "$ac_c_werror_flag"
3950 || test ! -s conftest.err'
3951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3955 (exit $ac_status); }; } &&
3956 { ac_try
='test -s conftest$ac_exeext'
3957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3961 (exit $ac_status); }; }; then
3964 echo "$as_me: failed program was:" >&5
3965 sed 's/^/| /' conftest.
$ac_ext >&5
3969 rm -f conftest.err conftest.
$ac_objext \
3970 conftest
$ac_exeext conftest.
$ac_ext
3971 if test $ac_R_space = yes; then
3972 echo "$as_me:$LINENO: result: yes" >&5
3973 echo "${ECHO_T}yes" >&6
3974 X_LIBS
="$X_LIBS -R $x_libraries"
3976 echo "$as_me:$LINENO: result: neither works" >&5
3977 echo "${ECHO_T}neither works" >&6
3984 # Check for system-dependent libraries X programs must link with.
3985 # Do this before checking for the system-independent R6 libraries
3986 # (-lICE), since we may need -lsocket or whatever for X linking.
3988 if test "$ISC" = yes; then
3989 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl_s -linet"
3991 # Martyn Johnson says this is needed for Ultrix, if the X
3992 # libraries were built with DECnet support. And Karl Berry says
3993 # the Alpha needs dnet_stub (dnet does not exist).
3994 ac_xsave_LIBS
="$LIBS"; LIBS
="$LIBS $X_LIBS -lX11"
3995 cat >conftest.
$ac_ext <<_ACEOF
3998 cat confdefs.h
>>conftest.
$ac_ext
3999 cat >>conftest.
$ac_ext <<_ACEOF
4000 /* end confdefs.h. */
4002 /* Override any gcc2 internal prototype to avoid an error. */
4006 /* We use char because int might match the return type of a gcc2
4007 builtin and then its argument prototype would still apply. */
4008 char XOpenDisplay ();
4017 rm -f conftest.
$ac_objext conftest
$ac_exeext
4018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4019 (eval $ac_link) 2>conftest.er1
4021 grep -v '^ *+' conftest.er1
>conftest.err
4023 cat conftest.err
>&5
4024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025 (exit $ac_status); } &&
4026 { ac_try
='test -z "$ac_c_werror_flag"
4027 || test ! -s conftest.err'
4028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4032 (exit $ac_status); }; } &&
4033 { ac_try
='test -s conftest$ac_exeext'
4034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4038 (exit $ac_status); }; }; then
4041 echo "$as_me: failed program was:" >&5
4042 sed 's/^/| /' conftest.
$ac_ext >&5
4044 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
4045 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
4046 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
4047 echo $ECHO_N "(cached) $ECHO_C" >&6
4049 ac_check_lib_save_LIBS
=$LIBS
4051 cat >conftest.
$ac_ext <<_ACEOF
4054 cat confdefs.h
>>conftest.
$ac_ext
4055 cat >>conftest.
$ac_ext <<_ACEOF
4056 /* end confdefs.h. */
4058 /* Override any gcc2 internal prototype to avoid an error. */
4062 /* We use char because int might match the return type of a gcc2
4063 builtin and then its argument prototype would still apply. */
4073 rm -f conftest.
$ac_objext conftest
$ac_exeext
4074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4075 (eval $ac_link) 2>conftest.er1
4077 grep -v '^ *+' conftest.er1
>conftest.err
4079 cat conftest.err
>&5
4080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4081 (exit $ac_status); } &&
4082 { ac_try
='test -z "$ac_c_werror_flag"
4083 || test ! -s conftest.err'
4084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4088 (exit $ac_status); }; } &&
4089 { ac_try
='test -s conftest$ac_exeext'
4090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4094 (exit $ac_status); }; }; then
4095 ac_cv_lib_dnet_dnet_ntoa
=yes
4097 echo "$as_me: failed program was:" >&5
4098 sed 's/^/| /' conftest.
$ac_ext >&5
4100 ac_cv_lib_dnet_dnet_ntoa
=no
4102 rm -f conftest.err conftest.
$ac_objext \
4103 conftest
$ac_exeext conftest.
$ac_ext
4104 LIBS
=$ac_check_lib_save_LIBS
4106 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
4107 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
4108 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
4109 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet"
4112 if test $ac_cv_lib_dnet_dnet_ntoa = no
; then
4113 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
4114 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
4115 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
4116 echo $ECHO_N "(cached) $ECHO_C" >&6
4118 ac_check_lib_save_LIBS
=$LIBS
4119 LIBS
="-ldnet_stub $LIBS"
4120 cat >conftest.
$ac_ext <<_ACEOF
4123 cat confdefs.h
>>conftest.
$ac_ext
4124 cat >>conftest.
$ac_ext <<_ACEOF
4125 /* end confdefs.h. */
4127 /* Override any gcc2 internal prototype to avoid an error. */
4131 /* We use char because int might match the return type of a gcc2
4132 builtin and then its argument prototype would still apply. */
4142 rm -f conftest.
$ac_objext conftest
$ac_exeext
4143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4144 (eval $ac_link) 2>conftest.er1
4146 grep -v '^ *+' conftest.er1
>conftest.err
4148 cat conftest.err
>&5
4149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4150 (exit $ac_status); } &&
4151 { ac_try
='test -z "$ac_c_werror_flag"
4152 || test ! -s conftest.err'
4153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4157 (exit $ac_status); }; } &&
4158 { ac_try
='test -s conftest$ac_exeext'
4159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4163 (exit $ac_status); }; }; then
4164 ac_cv_lib_dnet_stub_dnet_ntoa
=yes
4166 echo "$as_me: failed program was:" >&5
4167 sed 's/^/| /' conftest.
$ac_ext >&5
4169 ac_cv_lib_dnet_stub_dnet_ntoa
=no
4171 rm -f conftest.err conftest.
$ac_objext \
4172 conftest
$ac_exeext conftest.
$ac_ext
4173 LIBS
=$ac_check_lib_save_LIBS
4175 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
4176 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
4177 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
4178 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet_stub"
4183 rm -f conftest.err conftest.
$ac_objext \
4184 conftest
$ac_exeext conftest.
$ac_ext
4185 LIBS
="$ac_xsave_LIBS"
4187 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
4188 # to get the SysV transport functions.
4189 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
4191 # The nsl library prevents programs from opening the X display
4192 # on Irix 5.2, according to T.E. Dickey.
4193 # The functions gethostbyname, getservbyname, and inet_addr are
4194 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
4195 echo "$as_me:$LINENO: checking for gethostbyname" >&5
4196 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
4197 if test "${ac_cv_func_gethostbyname+set}" = set; then
4198 echo $ECHO_N "(cached) $ECHO_C" >&6
4200 cat >conftest.
$ac_ext <<_ACEOF
4203 cat confdefs.h
>>conftest.
$ac_ext
4204 cat >>conftest.
$ac_ext <<_ACEOF
4205 /* end confdefs.h. */
4206 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
4207 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4208 #define gethostbyname innocuous_gethostbyname
4210 /* System header to define __stub macros and hopefully few prototypes,
4211 which can conflict with char gethostbyname (); below.
4212 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4213 <limits.h> exists even on freestanding compilers. */
4216 # include <limits.h>
4218 # include <assert.h>
4221 #undef gethostbyname
4223 /* Override any gcc2 internal prototype to avoid an error. */
4228 /* We use char because int might match the return type of a gcc2
4229 builtin and then its argument prototype would still apply. */
4230 char gethostbyname ();
4231 /* The GNU C library defines this for functions which it implements
4232 to always fail with ENOSYS. Some functions are actually named
4233 something starting with __ and the normal name is an alias. */
4234 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
4237 char (*f) () = gethostbyname;
4246 return f != gethostbyname;
4251 rm -f conftest.
$ac_objext conftest
$ac_exeext
4252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4253 (eval $ac_link) 2>conftest.er1
4255 grep -v '^ *+' conftest.er1
>conftest.err
4257 cat conftest.err
>&5
4258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4259 (exit $ac_status); } &&
4260 { ac_try
='test -z "$ac_c_werror_flag"
4261 || test ! -s conftest.err'
4262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4266 (exit $ac_status); }; } &&
4267 { ac_try
='test -s conftest$ac_exeext'
4268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4272 (exit $ac_status); }; }; then
4273 ac_cv_func_gethostbyname
=yes
4275 echo "$as_me: failed program was:" >&5
4276 sed 's/^/| /' conftest.
$ac_ext >&5
4278 ac_cv_func_gethostbyname
=no
4280 rm -f conftest.err conftest.
$ac_objext \
4281 conftest
$ac_exeext conftest.
$ac_ext
4283 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
4284 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
4286 if test $ac_cv_func_gethostbyname = no
; then
4287 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4288 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4289 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4290 echo $ECHO_N "(cached) $ECHO_C" >&6
4292 ac_check_lib_save_LIBS
=$LIBS
4294 cat >conftest.
$ac_ext <<_ACEOF
4297 cat confdefs.h
>>conftest.
$ac_ext
4298 cat >>conftest.
$ac_ext <<_ACEOF
4299 /* end confdefs.h. */
4301 /* Override any gcc2 internal prototype to avoid an error. */
4305 /* We use char because int might match the return type of a gcc2
4306 builtin and then its argument prototype would still apply. */
4307 char gethostbyname ();
4316 rm -f conftest.
$ac_objext conftest
$ac_exeext
4317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4318 (eval $ac_link) 2>conftest.er1
4320 grep -v '^ *+' conftest.er1
>conftest.err
4322 cat conftest.err
>&5
4323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4324 (exit $ac_status); } &&
4325 { ac_try
='test -z "$ac_c_werror_flag"
4326 || test ! -s conftest.err'
4327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4331 (exit $ac_status); }; } &&
4332 { ac_try
='test -s conftest$ac_exeext'
4333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4337 (exit $ac_status); }; }; then
4338 ac_cv_lib_nsl_gethostbyname
=yes
4340 echo "$as_me: failed program was:" >&5
4341 sed 's/^/| /' conftest.
$ac_ext >&5
4343 ac_cv_lib_nsl_gethostbyname
=no
4345 rm -f conftest.err conftest.
$ac_objext \
4346 conftest
$ac_exeext conftest.
$ac_ext
4347 LIBS
=$ac_check_lib_save_LIBS
4349 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4350 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
4351 if test $ac_cv_lib_nsl_gethostbyname = yes; then
4352 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl"
4355 if test $ac_cv_lib_nsl_gethostbyname = no
; then
4356 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
4357 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
4358 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
4359 echo $ECHO_N "(cached) $ECHO_C" >&6
4361 ac_check_lib_save_LIBS
=$LIBS
4363 cat >conftest.
$ac_ext <<_ACEOF
4366 cat confdefs.h
>>conftest.
$ac_ext
4367 cat >>conftest.
$ac_ext <<_ACEOF
4368 /* end confdefs.h. */
4370 /* Override any gcc2 internal prototype to avoid an error. */
4374 /* We use char because int might match the return type of a gcc2
4375 builtin and then its argument prototype would still apply. */
4376 char gethostbyname ();
4385 rm -f conftest.
$ac_objext conftest
$ac_exeext
4386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4387 (eval $ac_link) 2>conftest.er1
4389 grep -v '^ *+' conftest.er1
>conftest.err
4391 cat conftest.err
>&5
4392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4393 (exit $ac_status); } &&
4394 { ac_try
='test -z "$ac_c_werror_flag"
4395 || test ! -s conftest.err'
4396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4400 (exit $ac_status); }; } &&
4401 { ac_try
='test -s conftest$ac_exeext'
4402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4406 (exit $ac_status); }; }; then
4407 ac_cv_lib_bsd_gethostbyname
=yes
4409 echo "$as_me: failed program was:" >&5
4410 sed 's/^/| /' conftest.
$ac_ext >&5
4412 ac_cv_lib_bsd_gethostbyname
=no
4414 rm -f conftest.err conftest.
$ac_objext \
4415 conftest
$ac_exeext conftest.
$ac_ext
4416 LIBS
=$ac_check_lib_save_LIBS
4418 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
4419 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
4420 if test $ac_cv_lib_bsd_gethostbyname = yes; then
4421 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lbsd"
4427 # lieder@skyler.mavd.honeywell.com says without -lsocket,
4428 # socket/setsockopt and other routines are undefined under SCO ODT
4429 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
4430 # on later versions), says Simon Leinen: it contains gethostby*
4431 # variants that don't use the name server (or something). -lsocket
4432 # must be given before -lnsl if both are needed. We assume that
4433 # if connect needs -lnsl, so does gethostbyname.
4434 echo "$as_me:$LINENO: checking for connect" >&5
4435 echo $ECHO_N "checking for connect... $ECHO_C" >&6
4436 if test "${ac_cv_func_connect+set}" = set; then
4437 echo $ECHO_N "(cached) $ECHO_C" >&6
4439 cat >conftest.
$ac_ext <<_ACEOF
4442 cat confdefs.h
>>conftest.
$ac_ext
4443 cat >>conftest.
$ac_ext <<_ACEOF
4444 /* end confdefs.h. */
4445 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
4446 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4447 #define connect innocuous_connect
4449 /* System header to define __stub macros and hopefully few prototypes,
4450 which can conflict with char connect (); below.
4451 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4452 <limits.h> exists even on freestanding compilers. */
4455 # include <limits.h>
4457 # include <assert.h>
4462 /* Override any gcc2 internal prototype to avoid an error. */
4467 /* We use char because int might match the return type of a gcc2
4468 builtin and then its argument prototype would still apply. */
4470 /* The GNU C library defines this for functions which it implements
4471 to always fail with ENOSYS. Some functions are actually named
4472 something starting with __ and the normal name is an alias. */
4473 #if defined (__stub_connect) || defined (__stub___connect)
4476 char (*f) () = connect;
4485 return f != connect;
4490 rm -f conftest.
$ac_objext conftest
$ac_exeext
4491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4492 (eval $ac_link) 2>conftest.er1
4494 grep -v '^ *+' conftest.er1
>conftest.err
4496 cat conftest.err
>&5
4497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4498 (exit $ac_status); } &&
4499 { ac_try
='test -z "$ac_c_werror_flag"
4500 || test ! -s conftest.err'
4501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4505 (exit $ac_status); }; } &&
4506 { ac_try
='test -s conftest$ac_exeext'
4507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4511 (exit $ac_status); }; }; then
4512 ac_cv_func_connect
=yes
4514 echo "$as_me: failed program was:" >&5
4515 sed 's/^/| /' conftest.
$ac_ext >&5
4517 ac_cv_func_connect
=no
4519 rm -f conftest.err conftest.
$ac_objext \
4520 conftest
$ac_exeext conftest.
$ac_ext
4522 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
4523 echo "${ECHO_T}$ac_cv_func_connect" >&6
4525 if test $ac_cv_func_connect = no
; then
4526 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
4527 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
4528 if test "${ac_cv_lib_socket_connect+set}" = set; then
4529 echo $ECHO_N "(cached) $ECHO_C" >&6
4531 ac_check_lib_save_LIBS
=$LIBS
4532 LIBS
="-lsocket $X_EXTRA_LIBS $LIBS"
4533 cat >conftest.
$ac_ext <<_ACEOF
4536 cat confdefs.h
>>conftest.
$ac_ext
4537 cat >>conftest.
$ac_ext <<_ACEOF
4538 /* end confdefs.h. */
4540 /* Override any gcc2 internal prototype to avoid an error. */
4544 /* We use char because int might match the return type of a gcc2
4545 builtin and then its argument prototype would still apply. */
4555 rm -f conftest.
$ac_objext conftest
$ac_exeext
4556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4557 (eval $ac_link) 2>conftest.er1
4559 grep -v '^ *+' conftest.er1
>conftest.err
4561 cat conftest.err
>&5
4562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563 (exit $ac_status); } &&
4564 { ac_try
='test -z "$ac_c_werror_flag"
4565 || test ! -s conftest.err'
4566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4570 (exit $ac_status); }; } &&
4571 { ac_try
='test -s conftest$ac_exeext'
4572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4576 (exit $ac_status); }; }; then
4577 ac_cv_lib_socket_connect
=yes
4579 echo "$as_me: failed program was:" >&5
4580 sed 's/^/| /' conftest.
$ac_ext >&5
4582 ac_cv_lib_socket_connect
=no
4584 rm -f conftest.err conftest.
$ac_objext \
4585 conftest
$ac_exeext conftest.
$ac_ext
4586 LIBS
=$ac_check_lib_save_LIBS
4588 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
4589 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
4590 if test $ac_cv_lib_socket_connect = yes; then
4591 X_EXTRA_LIBS
="-lsocket $X_EXTRA_LIBS"
4596 # Guillermo Gomez says -lposix is necessary on A/UX.
4597 echo "$as_me:$LINENO: checking for remove" >&5
4598 echo $ECHO_N "checking for remove... $ECHO_C" >&6
4599 if test "${ac_cv_func_remove+set}" = set; then
4600 echo $ECHO_N "(cached) $ECHO_C" >&6
4602 cat >conftest.
$ac_ext <<_ACEOF
4605 cat confdefs.h
>>conftest.
$ac_ext
4606 cat >>conftest.
$ac_ext <<_ACEOF
4607 /* end confdefs.h. */
4608 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
4609 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4610 #define remove innocuous_remove
4612 /* System header to define __stub macros and hopefully few prototypes,
4613 which can conflict with char remove (); below.
4614 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4615 <limits.h> exists even on freestanding compilers. */
4618 # include <limits.h>
4620 # include <assert.h>
4625 /* Override any gcc2 internal prototype to avoid an error. */
4630 /* We use char because int might match the return type of a gcc2
4631 builtin and then its argument prototype would still apply. */
4633 /* The GNU C library defines this for functions which it implements
4634 to always fail with ENOSYS. Some functions are actually named
4635 something starting with __ and the normal name is an alias. */
4636 #if defined (__stub_remove) || defined (__stub___remove)
4639 char (*f) () = remove;
4653 rm -f conftest.
$ac_objext conftest
$ac_exeext
4654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4655 (eval $ac_link) 2>conftest.er1
4657 grep -v '^ *+' conftest.er1
>conftest.err
4659 cat conftest.err
>&5
4660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4661 (exit $ac_status); } &&
4662 { ac_try
='test -z "$ac_c_werror_flag"
4663 || test ! -s conftest.err'
4664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4668 (exit $ac_status); }; } &&
4669 { ac_try
='test -s conftest$ac_exeext'
4670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4674 (exit $ac_status); }; }; then
4675 ac_cv_func_remove
=yes
4677 echo "$as_me: failed program was:" >&5
4678 sed 's/^/| /' conftest.
$ac_ext >&5
4680 ac_cv_func_remove
=no
4682 rm -f conftest.err conftest.
$ac_objext \
4683 conftest
$ac_exeext conftest.
$ac_ext
4685 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
4686 echo "${ECHO_T}$ac_cv_func_remove" >&6
4688 if test $ac_cv_func_remove = no
; then
4689 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
4690 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
4691 if test "${ac_cv_lib_posix_remove+set}" = set; then
4692 echo $ECHO_N "(cached) $ECHO_C" >&6
4694 ac_check_lib_save_LIBS
=$LIBS
4695 LIBS
="-lposix $LIBS"
4696 cat >conftest.
$ac_ext <<_ACEOF
4699 cat confdefs.h
>>conftest.
$ac_ext
4700 cat >>conftest.
$ac_ext <<_ACEOF
4701 /* end confdefs.h. */
4703 /* Override any gcc2 internal prototype to avoid an error. */
4707 /* We use char because int might match the return type of a gcc2
4708 builtin and then its argument prototype would still apply. */
4718 rm -f conftest.
$ac_objext conftest
$ac_exeext
4719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4720 (eval $ac_link) 2>conftest.er1
4722 grep -v '^ *+' conftest.er1
>conftest.err
4724 cat conftest.err
>&5
4725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4726 (exit $ac_status); } &&
4727 { ac_try
='test -z "$ac_c_werror_flag"
4728 || test ! -s conftest.err'
4729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4733 (exit $ac_status); }; } &&
4734 { ac_try
='test -s conftest$ac_exeext'
4735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4739 (exit $ac_status); }; }; then
4740 ac_cv_lib_posix_remove
=yes
4742 echo "$as_me: failed program was:" >&5
4743 sed 's/^/| /' conftest.
$ac_ext >&5
4745 ac_cv_lib_posix_remove
=no
4747 rm -f conftest.err conftest.
$ac_objext \
4748 conftest
$ac_exeext conftest.
$ac_ext
4749 LIBS
=$ac_check_lib_save_LIBS
4751 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
4752 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
4753 if test $ac_cv_lib_posix_remove = yes; then
4754 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lposix"
4759 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4760 echo "$as_me:$LINENO: checking for shmat" >&5
4761 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
4762 if test "${ac_cv_func_shmat+set}" = set; then
4763 echo $ECHO_N "(cached) $ECHO_C" >&6
4765 cat >conftest.
$ac_ext <<_ACEOF
4768 cat confdefs.h
>>conftest.
$ac_ext
4769 cat >>conftest.
$ac_ext <<_ACEOF
4770 /* end confdefs.h. */
4771 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
4772 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4773 #define shmat innocuous_shmat
4775 /* System header to define __stub macros and hopefully few prototypes,
4776 which can conflict with char shmat (); below.
4777 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4778 <limits.h> exists even on freestanding compilers. */
4781 # include <limits.h>
4783 # include <assert.h>
4788 /* Override any gcc2 internal prototype to avoid an error. */
4793 /* We use char because int might match the return type of a gcc2
4794 builtin and then its argument prototype would still apply. */
4796 /* The GNU C library defines this for functions which it implements
4797 to always fail with ENOSYS. Some functions are actually named
4798 something starting with __ and the normal name is an alias. */
4799 #if defined (__stub_shmat) || defined (__stub___shmat)
4802 char (*f) () = shmat;
4816 rm -f conftest.
$ac_objext conftest
$ac_exeext
4817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4818 (eval $ac_link) 2>conftest.er1
4820 grep -v '^ *+' conftest.er1
>conftest.err
4822 cat conftest.err
>&5
4823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4824 (exit $ac_status); } &&
4825 { ac_try
='test -z "$ac_c_werror_flag"
4826 || test ! -s conftest.err'
4827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4831 (exit $ac_status); }; } &&
4832 { ac_try
='test -s conftest$ac_exeext'
4833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4837 (exit $ac_status); }; }; then
4838 ac_cv_func_shmat
=yes
4840 echo "$as_me: failed program was:" >&5
4841 sed 's/^/| /' conftest.
$ac_ext >&5
4845 rm -f conftest.err conftest.
$ac_objext \
4846 conftest
$ac_exeext conftest.
$ac_ext
4848 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
4849 echo "${ECHO_T}$ac_cv_func_shmat" >&6
4851 if test $ac_cv_func_shmat = no
; then
4852 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
4853 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
4854 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
4855 echo $ECHO_N "(cached) $ECHO_C" >&6
4857 ac_check_lib_save_LIBS
=$LIBS
4859 cat >conftest.
$ac_ext <<_ACEOF
4862 cat confdefs.h
>>conftest.
$ac_ext
4863 cat >>conftest.
$ac_ext <<_ACEOF
4864 /* end confdefs.h. */
4866 /* Override any gcc2 internal prototype to avoid an error. */
4870 /* We use char because int might match the return type of a gcc2
4871 builtin and then its argument prototype would still apply. */
4881 rm -f conftest.
$ac_objext conftest
$ac_exeext
4882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4883 (eval $ac_link) 2>conftest.er1
4885 grep -v '^ *+' conftest.er1
>conftest.err
4887 cat conftest.err
>&5
4888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4889 (exit $ac_status); } &&
4890 { ac_try
='test -z "$ac_c_werror_flag"
4891 || test ! -s conftest.err'
4892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896 (exit $ac_status); }; } &&
4897 { ac_try
='test -s conftest$ac_exeext'
4898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4902 (exit $ac_status); }; }; then
4903 ac_cv_lib_ipc_shmat
=yes
4905 echo "$as_me: failed program was:" >&5
4906 sed 's/^/| /' conftest.
$ac_ext >&5
4908 ac_cv_lib_ipc_shmat
=no
4910 rm -f conftest.err conftest.
$ac_objext \
4911 conftest
$ac_exeext conftest.
$ac_ext
4912 LIBS
=$ac_check_lib_save_LIBS
4914 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
4915 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
4916 if test $ac_cv_lib_ipc_shmat = yes; then
4917 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lipc"
4923 # Check for libraries that X11R6 Xt/Xaw programs need.
4924 ac_save_LDFLAGS
=$LDFLAGS
4925 test -n "$x_libraries" && LDFLAGS
="$LDFLAGS -L$x_libraries"
4926 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4927 # check for ICE first), but we must link in the order -lSM -lICE or
4928 # we get undefined symbols. So assume we have SM if we have ICE.
4929 # These have to be linked with before -lX11, unlike the other
4930 # libraries we check for below, so use a different variable.
4931 # John Interrante, Karl Berry
4932 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
4933 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
4934 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
4935 echo $ECHO_N "(cached) $ECHO_C" >&6
4937 ac_check_lib_save_LIBS
=$LIBS
4938 LIBS
="-lICE $X_EXTRA_LIBS $LIBS"
4939 cat >conftest.
$ac_ext <<_ACEOF
4942 cat confdefs.h
>>conftest.
$ac_ext
4943 cat >>conftest.
$ac_ext <<_ACEOF
4944 /* end confdefs.h. */
4946 /* Override any gcc2 internal prototype to avoid an error. */
4950 /* We use char because int might match the return type of a gcc2
4951 builtin and then its argument prototype would still apply. */
4952 char IceConnectionNumber ();
4956 IceConnectionNumber ();
4961 rm -f conftest.
$ac_objext conftest
$ac_exeext
4962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4963 (eval $ac_link) 2>conftest.er1
4965 grep -v '^ *+' conftest.er1
>conftest.err
4967 cat conftest.err
>&5
4968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4969 (exit $ac_status); } &&
4970 { ac_try
='test -z "$ac_c_werror_flag"
4971 || test ! -s conftest.err'
4972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4976 (exit $ac_status); }; } &&
4977 { ac_try
='test -s conftest$ac_exeext'
4978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4982 (exit $ac_status); }; }; then
4983 ac_cv_lib_ICE_IceConnectionNumber
=yes
4985 echo "$as_me: failed program was:" >&5
4986 sed 's/^/| /' conftest.
$ac_ext >&5
4988 ac_cv_lib_ICE_IceConnectionNumber
=no
4990 rm -f conftest.err conftest.
$ac_objext \
4991 conftest
$ac_exeext conftest.
$ac_ext
4992 LIBS
=$ac_check_lib_save_LIBS
4994 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
4995 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
4996 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
4997 X_PRE_LIBS
="$X_PRE_LIBS -lSM -lICE"
5000 LDFLAGS
=$ac_save_LDFLAGS
5006 if test -z "$groff_no_x"; then
5010 CFLAGS
="$CFLAGS $X_CFLAGS"
5011 LDFLAGS
="$LDFLAGS $X_LIBS"
5012 LIBS
="$LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
5015 echo "$as_me:$LINENO: checking for Xaw library and header files" >&5
5016 echo $ECHO_N "checking for Xaw library and header files... $ECHO_C" >&6
5017 cat >conftest.
$ac_ext <<_ACEOF
5021 cat confdefs.h
>>conftest.
$ac_ext
5022 cat >>conftest.
$ac_ext <<_ACEOF
5023 /* end confdefs.h. */
5026 #include <X11/Intrinsic.h>
5027 #include <X11/Xaw/Simple.h>
5039 rm -f conftest.
$ac_objext conftest
$ac_exeext
5040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5041 (eval $ac_link) 2>conftest.er1
5043 grep -v '^ *+' conftest.er1
>conftest.err
5045 cat conftest.err
>&5
5046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5047 (exit $ac_status); } &&
5048 { ac_try
='test -z "$ac_c_werror_flag"
5049 || test ! -s conftest.err'
5050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5054 (exit $ac_status); }; } &&
5055 { ac_try
='test -s conftest$ac_exeext'
5056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5060 (exit $ac_status); }; }; then
5061 echo "$as_me:$LINENO: result: yes" >&5
5062 echo "${ECHO_T}yes" >&6
5064 echo "$as_me: failed program was:" >&5
5065 sed 's/^/| /' conftest.
$ac_ext >&5
5067 echo "$as_me:$LINENO: result: no" >&5
5068 echo "${ECHO_T}no" >&6
5071 rm -f conftest.err conftest.
$ac_objext \
5072 conftest
$ac_exeext conftest.
$ac_ext
5075 echo "$as_me:$LINENO: checking for Xmu library and header files" >&5
5076 echo $ECHO_N "checking for Xmu library and header files... $ECHO_C" >&6
5077 cat >conftest.
$ac_ext <<_ACEOF
5081 cat confdefs.h
>>conftest.
$ac_ext
5082 cat >>conftest.
$ac_ext <<_ACEOF
5083 /* end confdefs.h. */
5086 #include <X11/Intrinsic.h>
5087 #include <X11/Xmu/Converters.h>
5099 rm -f conftest.
$ac_objext conftest
$ac_exeext
5100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5101 (eval $ac_link) 2>conftest.er1
5103 grep -v '^ *+' conftest.er1
>conftest.err
5105 cat conftest.err
>&5
5106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5107 (exit $ac_status); } &&
5108 { ac_try
='test -z "$ac_c_werror_flag"
5109 || test ! -s conftest.err'
5110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5114 (exit $ac_status); }; } &&
5115 { ac_try
='test -s conftest$ac_exeext'
5116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5120 (exit $ac_status); }; }; then
5121 echo "$as_me:$LINENO: result: yes" >&5
5122 echo "${ECHO_T}yes" >&6
5124 echo "$as_me: failed program was:" >&5
5125 sed 's/^/| /' conftest.
$ac_ext >&5
5127 echo "$as_me:$LINENO: result: no" >&5
5128 echo "${ECHO_T}no" >&6
5131 rm -f conftest.err conftest.
$ac_objext \
5132 conftest
$ac_exeext conftest.
$ac_ext
5139 if test "x$groff_no_x" = "xyes"; then
5140 { echo "$as_me:$LINENO: gxditview and xtotroff won't be built" >&5
5141 echo "$as_me: gxditview and xtotroff won't be built" >&6;}
5143 XDEVDIRS
="font/devX75 font/devX75-12 font/devX100 font/devX100-12"
5144 XPROGDIRS
="src/devices/xditview src/utils/xtotroff"
5145 XLIBDIRS
="src/libs/libxutil"
5152 # Check whether --with-appresdir or --without-appresdir was given.
5153 if test "${with_appresdir+set}" = set; then
5154 withval
="$with_appresdir"
5157 if test -z "$groff_no_x"; then
5158 # Create an Imakefile, run `xmkmf', then `make'.
5159 rm -f -r conftest.dir
5160 if mkdir conftest.dir
; then
5162 # Make sure to not put `make' in the Imakefile rules,
5163 # since we grep it out.
5164 cat >Imakefile
<<'EOF'
5167 @echo 'groff_x_usrlibdir="${USRLIBDIR}"; groff_x_libdir="${LIBDIR}"'
5170 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
5171 # GNU make sometimes prints "make[1]: Entering...",
5172 # which would confuse us.
5173 eval `${MAKE-make} xlibdirs 2>/dev/null | grep -v make`
5175 # Open Windows `xmkmf' reportedly sets LIBDIR instead of USRLIBDIR.
5176 for groff_extension
in a so sl
; do
5177 if test ! -f $groff_x_usrlibdir/libX11.
$groff_extension &&
5178 test -f $groff_x_libdir/libX11.
$groff_extension; then
5179 groff_x_usrlibdir
=$groff_x_libdir
5186 rm -f -r conftest.dir
5189 # In case the test with `xmkmf' wasn't successful, try a suite of
5190 # standard directories. Check `X11' before `X11Rn' because it is often
5191 # a symlink to the current release.
5204 /usr/local/X11R6/lib
5205 /usr/local/X11R5/lib
5206 /usr/local/X11R4/lib
5209 /usr/local/lib/X11R6
5210 /usr/local/lib/X11R5
5211 /usr/local/lib/X11R4
5215 /usr/XFree86/lib/X11
5219 /usr/unsupported/lib
5221 /usr/local/x11r5/lib
5222 /usr/lpp/Xamples/lib
5225 /usr/openwin/share/lib'
5227 if test -z "$groff_x_usrlibdir"; then
5228 # We only test whether libX11 exists.
5229 for groff_dir
in $groff_x_libdirs; do
5230 for groff_extension
in a so sl
; do
5231 if test ! -r $groff_dir/libX11.
$groff_extension; then
5232 groff_x_usrlibdir
=$groff_dir
5239 if test "x$with_appresdir" = "x"; then
5240 appresdir
=$groff_x_usrlibdir/X11
/app-defaults
5242 appresdir
=$with_appresdir
5246 if test -z "$PSPRINT"; then
5249 # Extract the first word of "$ac_prog", so it can be a program name with args.
5250 set dummy
$ac_prog; ac_word
=$2
5251 echo "$as_me:$LINENO: checking for $ac_word" >&5
5252 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5253 if test "${ac_cv_prog_LPR+set}" = set; then
5254 echo $ECHO_N "(cached) $ECHO_C" >&6
5256 if test -n "$LPR"; then
5257 ac_cv_prog_LPR
="$LPR" # Let the user override the test.
5259 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5263 test -z "$as_dir" && as_dir
=.
5264 for ac_exec_ext
in '' $ac_executable_extensions; do
5265 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5266 ac_cv_prog_LPR
="$ac_prog"
5267 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5276 if test -n "$LPR"; then
5277 echo "$as_me:$LINENO: result: $LPR" >&5
5278 echo "${ECHO_T}$LPR" >&6
5280 echo "$as_me:$LINENO: result: no" >&5
5281 echo "${ECHO_T}no" >&6
5284 test -n "$LPR" && break
5289 # Extract the first word of "$ac_prog", so it can be a program name with args.
5290 set dummy
$ac_prog; ac_word
=$2
5291 echo "$as_me:$LINENO: checking for $ac_word" >&5
5292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5293 if test "${ac_cv_prog_LP+set}" = set; then
5294 echo $ECHO_N "(cached) $ECHO_C" >&6
5296 if test -n "$LP"; then
5297 ac_cv_prog_LP
="$LP" # Let the user override the test.
5299 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5303 test -z "$as_dir" && as_dir
=.
5304 for ac_exec_ext
in '' $ac_executable_extensions; do
5305 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5306 ac_cv_prog_LP
="$ac_prog"
5307 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5316 if test -n "$LP"; then
5317 echo "$as_me:$LINENO: result: $LP" >&5
5318 echo "${ECHO_T}$LP" >&6
5320 echo "$as_me:$LINENO: result: no" >&5
5321 echo "${ECHO_T}no" >&6
5324 test -n "$LP" && break
5327 if test -n "$LPR" && test -n "$LP"; then
5328 # HP-UX provides an lpr command that emulates lpr using lp,
5329 # but it doesn't have lpq; in this case we want to use lp
5333 # Extract the first word of "$ac_prog", so it can be a program name with args.
5334 set dummy
$ac_prog; ac_word
=$2
5335 echo "$as_me:$LINENO: checking for $ac_word" >&5
5336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5337 if test "${ac_cv_prog_LPQ+set}" = set; then
5338 echo $ECHO_N "(cached) $ECHO_C" >&6
5340 if test -n "$LPQ"; then
5341 ac_cv_prog_LPQ
="$LPQ" # Let the user override the test.
5343 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5347 test -z "$as_dir" && as_dir
=.
5348 for ac_exec_ext
in '' $ac_executable_extensions; do
5349 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5350 ac_cv_prog_LPQ
="$ac_prog"
5351 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5360 if test -n "$LPQ"; then
5361 echo "$as_me:$LINENO: result: $LPQ" >&5
5362 echo "${ECHO_T}$LPQ" >&6
5364 echo "$as_me:$LINENO: result: no" >&5
5365 echo "${ECHO_T}no" >&6
5368 test -n "$LPQ" && break
5371 test -n "$LPQ" || LPR
=
5373 if test -n "$LPR"; then
5375 elif test -n "$LP"; then
5380 echo "$as_me:$LINENO: checking for command to use for printing PostScript files" >&5
5381 echo $ECHO_N "checking for command to use for printing PostScript files... $ECHO_C" >&6
5382 echo "$as_me:$LINENO: result: $PSPRINT" >&5
5383 echo "${ECHO_T}$PSPRINT" >&6
5385 # Figure out DVIPRINT from PSPRINT.
5386 echo "$as_me:$LINENO: checking for command to use for printing dvi files" >&5
5387 echo $ECHO_N "checking for command to use for printing dvi files... $ECHO_C" >&6
5388 if test -n "$PSPRINT" && test -z "$DVIPRINT"; then
5389 if test "x$PSPRINT" = "xlpr"; then
5396 echo "$as_me:$LINENO: result: $DVIPRINT" >&5
5397 echo "${ECHO_T}$DVIPRINT" >&6
5398 echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5399 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6
5400 if test "${ac_cv_path_GREP+set}" = set; then
5401 echo $ECHO_N "(cached) $ECHO_C" >&6
5403 # Extract the first word of "grep ggrep" to use in msg output
5404 if test -z "$GREP"; then
5405 set dummy
grep ggrep
; ac_prog_name
=$2
5406 if test "${ac_cv_path_GREP+set}" = set; then
5407 echo $ECHO_N "(cached) $ECHO_C" >&6
5409 # Create a temporary directory, and hook for its removal unless debugging.
5412 trap 'exit_status=$?; rm -f -r $tmp && exit $exit_status' 0
5413 trap '{ (exit 1); exit 1; }' 1 2 13 15
5416 # Create a (secure) tmp directory for tmp files.
5419 tmp
=`(umask 077 && mktemp -d -q "$TMPDIR/GREPXXXXXX") 2>/dev/null` &&
5420 test -n "$tmp" && test -d "$tmp"
5423 tmp
=$TMPDIR/GREP$$
-$RANDOM
5424 (umask 077 && mkdir
$tmp)
5427 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
5428 { (exit 1); exit 1; }
5430 ac_path_GREP_found
=false
5431 # Loop through the user's path and test for each of PROGNAME-LIST
5432 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5433 as_dummy
="$PATH:/usr/xpg4/bin"
5434 for as_dir
in $as_dummy
5437 test -z "$as_dir" && as_dir
=.
5438 for ac_prog
in grep ggrep
; do
5439 for ac_exec_ext
in '' $ac_executable_extensions; do
5440 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5441 test -f "$ac_path_GREP" ||
continue
5442 $ac_path_GREP_found ||
if $as_executable_p "$ac_path_GREP"; then
5443 # Check for GNU ac_path_GREP and select it if it is found.
5444 # Check for GNU $ac_path_GREP
5445 if "$ac_path_GREP" --version 2>&1 < /dev
/null |
grep 'GNU' >/dev
/null
; then
5446 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:
5449 echo $ECHO_N "0123456789$ECHO_C" >"$tmp/conftest.in"
5452 cat "$tmp/conftest.in" "$tmp/conftest.in" >"$tmp/conftest.tmp"
5453 mv "$tmp/conftest.tmp" "$tmp/conftest.in"
5454 cp "$tmp/conftest.in" "$tmp/conftest.nl"
5455 echo 'GREP' >> "$tmp/conftest.nl"
5456 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "$tmp/conftest.nl" >"$tmp/conftest.out" 2>/dev
/null ||
break
5457 diff "$tmp/conftest.out" "$tmp/conftest.nl" >/dev
/null
2>&1 ||
break
5458 ac_count
=`expr $ac_count + 1`
5459 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5460 # Best one so far, save it but keep looking for a better one
5461 ac_cv_path_GREP
="$ac_path_GREP"
5462 ac_path_GREP_max
=$ac_count
5464 # 10*(2^10) chars as input seems more than enough
5465 test $ac_count -gt 10 && break
5471 $ac_path_GREP_found && break 3
5481 GREP
="$ac_cv_path_GREP"
5482 if test -z "$GREP"; then
5483 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH:/usr/xpg4/bin" >&5
5484 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH:/usr/xpg4/bin" >&2;}
5485 { (exit 1); exit 1; }; }
5492 echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5493 echo "${ECHO_T}$ac_cv_path_GREP" >&6
5494 GREP
="$ac_cv_path_GREP"
5497 echo "$as_me:$LINENO: checking for egrep" >&5
5498 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5499 if test "${ac_cv_path_EGREP+set}" = set; then
5500 echo $ECHO_N "(cached) $ECHO_C" >&6
5502 if echo a |
($GREP -E '(a|b)') >/dev
/null
2>&1
5503 then ac_cv_path_EGREP
="$GREP -E"
5505 # Extract the first word of "egrep" to use in msg output
5506 if test -z "$EGREP"; then
5507 set dummy
egrep; ac_prog_name
=$2
5508 if test "${ac_cv_path_EGREP+set}" = set; then
5509 echo $ECHO_N "(cached) $ECHO_C" >&6
5511 # Create a temporary directory, and hook for its removal unless debugging.
5514 trap 'exit_status=$?; rm -f -r $tmp && exit $exit_status' 0
5515 trap '{ (exit 1); exit 1; }' 1 2 13 15
5518 # Create a (secure) tmp directory for tmp files.
5521 tmp
=`(umask 077 && mktemp -d -q "$TMPDIR/EGREPXXXXXX") 2>/dev/null` &&
5522 test -n "$tmp" && test -d "$tmp"
5525 tmp
=$TMPDIR/EGREP$$
-$RANDOM
5526 (umask 077 && mkdir
$tmp)
5529 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
5530 { (exit 1); exit 1; }
5532 ac_path_EGREP_found
=false
5533 # Loop through the user's path and test for each of PROGNAME-LIST
5534 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5535 as_dummy
="$PATH:/usr/xpg4/bin"
5536 for as_dir
in $as_dummy
5539 test -z "$as_dir" && as_dir
=.
5540 for ac_prog
in egrep; do
5541 for ac_exec_ext
in '' $ac_executable_extensions; do
5542 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5543 test -f "$ac_path_EGREP" ||
continue
5544 $ac_path_EGREP_found ||
if $as_executable_p "$ac_path_EGREP"; then
5545 # Check for GNU ac_path_EGREP and select it if it is found.
5546 # Check for GNU $ac_path_EGREP
5547 if "$ac_path_EGREP" --version 2>&1 < /dev
/null |
grep 'GNU' >/dev
/null
; then
5548 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:
5551 echo $ECHO_N "0123456789$ECHO_C" >"$tmp/conftest.in"
5554 cat "$tmp/conftest.in" "$tmp/conftest.in" >"$tmp/conftest.tmp"
5555 mv "$tmp/conftest.tmp" "$tmp/conftest.in"
5556 cp "$tmp/conftest.in" "$tmp/conftest.nl"
5557 echo 'EGREP' >> "$tmp/conftest.nl"
5558 "$ac_path_EGREP" 'EGREP$' < "$tmp/conftest.nl" >"$tmp/conftest.out" 2>/dev
/null ||
break
5559 diff "$tmp/conftest.out" "$tmp/conftest.nl" >/dev
/null
2>&1 ||
break
5560 ac_count
=`expr $ac_count + 1`
5561 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5562 # Best one so far, save it but keep looking for a better one
5563 ac_cv_path_EGREP
="$ac_path_EGREP"
5564 ac_path_EGREP_max
=$ac_count
5566 # 10*(2^10) chars as input seems more than enough
5567 test $ac_count -gt 10 && break
5573 $ac_path_EGREP_found && break 3
5583 EGREP
="$ac_cv_path_EGREP"
5584 if test -z "$EGREP"; then
5585 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH:/usr/xpg4/bin" >&5
5586 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH:/usr/xpg4/bin" >&2;}
5587 { (exit 1); exit 1; }; }
5595 echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5596 echo "${ECHO_T}$ac_cv_path_EGREP" >&6
5597 EGREP
="$ac_cv_path_EGREP"
5600 # Extract the first word of "perl", so it can be a program name with args.
5601 set dummy perl
; ac_word
=$2
5602 echo "$as_me:$LINENO: checking for $ac_word" >&5
5603 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5604 if test "${ac_cv_path_PERLPATH+set}" = set; then
5605 echo $ECHO_N "(cached) $ECHO_C" >&6
5609 ac_cv_path_PERLPATH
="$PERLPATH" # Let the user override the test with a path.
5612 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5616 test -z "$as_dir" && as_dir
=.
5617 for ac_exec_ext
in '' $ac_executable_extensions; do
5618 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5619 ac_cv_path_PERLPATH
="$as_dir/$ac_word$ac_exec_ext"
5620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5626 test -z "$ac_cv_path_PERLPATH" && ac_cv_path_PERLPATH
="/usr/bin/perl"
5630 PERLPATH
=$ac_cv_path_PERLPATH
5632 if test -n "$PERLPATH"; then
5633 echo "$as_me:$LINENO: result: $PERLPATH" >&5
5634 echo "${ECHO_T}$PERLPATH" >&6
5636 echo "$as_me:$LINENO: result: no" >&5
5637 echo "${ECHO_T}no" >&6
5640 for ac_prog
in byacc
'bison -y'
5642 # Extract the first word of "$ac_prog", so it can be a program name with args.
5643 set dummy
$ac_prog; ac_word
=$2
5644 echo "$as_me:$LINENO: checking for $ac_word" >&5
5645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5646 if test "${ac_cv_prog_YACC+set}" = set; then
5647 echo $ECHO_N "(cached) $ECHO_C" >&6
5649 if test -n "$YACC"; then
5650 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
5652 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5656 test -z "$as_dir" && as_dir
=.
5657 for ac_exec_ext
in '' $ac_executable_extensions; do
5658 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5659 ac_cv_prog_YACC
="$ac_prog"
5660 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5668 YACC
=$ac_cv_prog_YACC
5669 if test -n "$YACC"; then
5670 echo "$as_me:$LINENO: result: $YACC" >&5
5671 echo "${ECHO_T}$YACC" >&6
5673 echo "$as_me:$LINENO: result: no" >&5
5674 echo "${ECHO_T}no" >&6
5677 test -n "$YACC" && break
5679 test -n "$YACC" || YACC
="yacc"
5682 # Extract the first word of "makeinfo", so it can be a program name with args.
5683 set dummy makeinfo
; ac_word
=$2
5684 echo "$as_me:$LINENO: checking for $ac_word" >&5
5685 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5686 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
5687 echo $ECHO_N "(cached) $ECHO_C" >&6
5689 if test -n "$MAKEINFO"; then
5690 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
5692 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5696 test -z "$as_dir" && as_dir
=.
5697 for ac_exec_ext
in '' $ac_executable_extensions; do
5698 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5699 ac_cv_prog_MAKEINFO
="makeinfo"
5700 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5708 MAKEINFO
=$ac_cv_prog_MAKEINFO
5709 if test -n "$MAKEINFO"; then
5710 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5711 echo "${ECHO_T}$MAKEINFO" >&6
5713 echo "$as_me:$LINENO: result: no" >&5
5714 echo "${ECHO_T}no" >&6
5717 if test -z "$MAKEINFO"; then
5718 missing
="\`makeinfo' is missing."
5720 echo "$as_me:$LINENO: checking for makeinfo version" >&5
5721 echo $ECHO_N "checking for makeinfo version... $ECHO_C" >&6
5722 # We need an additional level of quoting to make sed's regexps work.
5723 makeinfo_version
=`$MAKEINFO --version 2>&1 \
5724 | sed -e 's/^.* \([^ ][^ ]*\)$/\1/' -e '1q'`
5725 echo "$as_me:$LINENO: result: $makeinfo_version" >&5
5726 echo "${ECHO_T}$makeinfo_version" >&6
5727 # Consider only the first two numbers in version number string.
5728 makeinfo_version_major
=`IFS=.; set x $makeinfo_version; echo 0${2}`
5729 makeinfo_version_minor
=`IFS=.; set x $makeinfo_version; echo 0${3}`
5730 makeinfo_version_numeric
=`
5731 expr ${makeinfo_version_major}000 \+ ${makeinfo_version_minor}`
5732 if test $makeinfo_version_numeric -lt 4008; then
5733 missing
="\`makeinfo' is too old."
5737 if test -n "$missing"; then
5738 infofile
=doc
/groff.info
5739 test -f ${infofile} || infofile=${srcdir}/${infofile}
5740 if test ! -f ${infofile} \
5741 ||
test ${srcdir}/doc
/groff.texinfo
-nt ${infofile}; then
5742 { { echo "$as_me:$LINENO: error: $missing
5743 Get the \`texinfo' package version 4.8 or newer." >&5
5744 echo "$as_me: error: $missing
5745 Get the \`texinfo' package version 4.8 or newer." >&2;}
5746 { (exit 1); exit 1; }; }
5748 { echo "$as_me:$LINENO: WARNING: $missing
5749 Get the \`texinfo' package version 4.8 or newer if you want to convert
5750 \`groff.texinfo' into a PDF or HTML document." >&5
5751 echo "$as_me: WARNING: $missing
5752 Get the \`texinfo' package version 4.8 or newer if you want to convert
5753 \`groff.texinfo' into a PDF or HTML document." >&2;}
5757 if test -n "$ac_tool_prefix"; then
5758 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5759 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5760 echo "$as_me:$LINENO: checking for $ac_word" >&5
5761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5762 if test "${ac_cv_prog_RANLIB+set}" = set; then
5763 echo $ECHO_N "(cached) $ECHO_C" >&6
5765 if test -n "$RANLIB"; then
5766 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5768 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5772 test -z "$as_dir" && as_dir
=.
5773 for ac_exec_ext
in '' $ac_executable_extensions; do
5774 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5775 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5784 RANLIB
=$ac_cv_prog_RANLIB
5785 if test -n "$RANLIB"; then
5786 echo "$as_me:$LINENO: result: $RANLIB" >&5
5787 echo "${ECHO_T}$RANLIB" >&6
5789 echo "$as_me:$LINENO: result: no" >&5
5790 echo "${ECHO_T}no" >&6
5794 if test -z "$ac_cv_prog_RANLIB"; then
5795 ac_ct_RANLIB
=$RANLIB
5796 # Extract the first word of "ranlib", so it can be a program name with args.
5797 set dummy ranlib
; ac_word
=$2
5798 echo "$as_me:$LINENO: checking for $ac_word" >&5
5799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5800 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5801 echo $ECHO_N "(cached) $ECHO_C" >&6
5803 if test -n "$ac_ct_RANLIB"; then
5804 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5806 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5810 test -z "$as_dir" && as_dir
=.
5811 for ac_exec_ext
in '' $ac_executable_extensions; do
5812 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5813 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5814 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5822 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5823 if test -n "$ac_ct_RANLIB"; then
5824 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5825 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5827 echo "$as_me:$LINENO: result: no" >&5
5828 echo "${ECHO_T}no" >&6
5831 if test "x$ac_ct_RANLIB" = x
; then
5834 if test "$build" != "$host"; then
5835 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5836 whose name does not start with the host triplet. If you think this
5837 configuration is useful to you, please write to autoconf@gnu.org." >&5
5838 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5839 whose name does not start with the host triplet. If you think this
5840 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5842 RANLIB
=$ac_ct_RANLIB
5845 RANLIB
="$ac_cv_prog_RANLIB"
5849 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
5850 if test -f $ac_dir/install-sh
; then
5852 ac_install_sh
="$ac_aux_dir/install-sh -c"
5854 elif test -f $ac_dir/install.sh
; then
5856 ac_install_sh
="$ac_aux_dir/install.sh -c"
5858 elif test -f $ac_dir/shtool
; then
5860 ac_install_sh
="$ac_aux_dir/shtool install -c"
5864 if test -z "$ac_aux_dir"; then
5865 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
5866 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
5867 { (exit 1); exit 1; }; }
5869 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
5870 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
5871 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
5874 ac_dir
=`cd $ac_aux_dir; pwd`
5875 ac_install_sh
="$ac_dir/install-sh -c"
5876 for ac_prog
in install-info
5878 # Extract the first word of "$ac_prog", so it can be a program name with args.
5879 set dummy
$ac_prog; ac_word
=$2
5880 echo "$as_me:$LINENO: checking for $ac_word" >&5
5881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5882 if test "${ac_cv_prog_INSTALL_INFO+set}" = set; then
5883 echo $ECHO_N "(cached) $ECHO_C" >&6
5885 if test -n "$INSTALL_INFO"; then
5886 ac_cv_prog_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test.
5888 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5892 test -z "$as_dir" && as_dir
=.
5893 for ac_exec_ext
in '' $ac_executable_extensions; do
5894 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5895 ac_cv_prog_INSTALL_INFO
="$ac_prog"
5896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5904 INSTALL_INFO
=$ac_cv_prog_INSTALL_INFO
5905 if test -n "$INSTALL_INFO"; then
5906 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5907 echo "${ECHO_T}$INSTALL_INFO" >&6
5909 echo "$as_me:$LINENO: result: no" >&5
5910 echo "${ECHO_T}no" >&6
5913 test -n "$INSTALL_INFO" && break
5915 test -n "$INSTALL_INFO" || INSTALL_INFO
=":"
5917 # Find a good install program. We prefer a C program (faster),
5918 # so one script is as good as another. But avoid the broken or
5919 # incompatible versions:
5920 # SysV /etc/install, /usr/sbin/install
5921 # SunOS /usr/etc/install
5922 # IRIX /sbin/install
5924 # AmigaOS /C/install, which installs bootblocks on floppy discs
5925 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5926 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5927 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5928 # OS/2's system install, which has a completely different semantic
5929 # ./install, which can be erroneously created by make from ./install.sh.
5930 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5931 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5932 if test -z "$INSTALL"; then
5933 if test "${ac_cv_path_install+set}" = set; then
5934 echo $ECHO_N "(cached) $ECHO_C" >&6
5936 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5940 test -z "$as_dir" && as_dir
=.
5941 # Account for people who put trailing slashes in PATH elements.
5943 .
/ | .
// |
/cC
/* | \
5944 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
5945 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
5948 # OSF1 and SCO ODT 3.0 have their own names for install.
5949 # Don't use installbsd from OSF since it installs stuff as root
5951 for ac_prog
in ginstall scoinst
install; do
5952 for ac_exec_ext
in '' $ac_executable_extensions; do
5953 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5954 if test $ac_prog = install &&
5955 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5956 # AIX install. It has an incompatible calling convention.
5958 elif test $ac_prog = install &&
5959 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5960 # program-specific install script used by HP pwplus--don't use.
5963 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
5975 if test "${ac_cv_path_install+set}" = set; then
5976 INSTALL
=$ac_cv_path_install
5978 # As a last resort, use the slow shell script. Don't cache a
5979 # value for INSTALL within a source directory, because that will
5980 # break other packages using the cache if that directory is
5981 # removed, or if the value is a relative name.
5982 INSTALL
=$ac_install_sh
5985 echo "$as_me:$LINENO: result: $INSTALL" >&5
5986 echo "${ECHO_T}$INSTALL" >&6
5988 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5989 # It thinks the first close brace ends the variable substitution.
5990 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
5992 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
5994 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
5996 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5997 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5999 if test "$LN_S" = "ln -s"; then
6000 echo "$as_me:$LINENO: result: yes" >&5
6001 echo "${ECHO_T}yes" >&6
6003 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6004 echo "${ECHO_T}no, using $LN_S" >&6
6008 # use a dummy substitution if no csh hack is necessary to avoid errors
6009 # with non-GNU sed programs
6010 echo "$as_me:$LINENO: checking for csh hash hack" >&5
6011 echo $ECHO_N "checking for csh hash hack... $ECHO_C" >&6
6013 cat <<EOF >conftest.sh
6016 export PATH || exit 0
6020 chmod +x conftest.sh
6021 if echo .
/conftest.sh |
(csh
>/dev
/null
2>&1) >/dev
/null
2>&1; then
6022 echo "$as_me:$LINENO: result: yes" >&5
6023 echo "${ECHO_T}yes" >&6
6024 SH_SCRIPT_SED_CMD
='1s/.*/:/'
6026 echo "$as_me:$LINENO: result: no" >&5
6027 echo "${ECHO_T}no" >&6
6028 SH_SCRIPT_SED_CMD
='1s/a/a/'
6033 # checks for headers
6034 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6035 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6036 if test "${ac_cv_header_stdc+set}" = set; then
6037 echo $ECHO_N "(cached) $ECHO_C" >&6
6039 cat >conftest.
$ac_ext <<_ACEOF
6042 cat confdefs.h
>>conftest.
$ac_ext
6043 cat >>conftest.
$ac_ext <<_ACEOF
6044 /* end confdefs.h. */
6058 rm -f conftest.
$ac_objext
6059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6060 (eval $ac_compile) 2>conftest.er1
6062 grep -v '^ *+' conftest.er1
>conftest.err
6064 cat conftest.err
>&5
6065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6066 (exit $ac_status); } &&
6067 { ac_try
='test -z "$ac_c_werror_flag"
6068 || test ! -s conftest.err'
6069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6073 (exit $ac_status); }; } &&
6074 { ac_try
='test -s conftest.$ac_objext'
6075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6079 (exit $ac_status); }; }; then
6080 ac_cv_header_stdc
=yes
6082 echo "$as_me: failed program was:" >&5
6083 sed 's/^/| /' conftest.
$ac_ext >&5
6085 ac_cv_header_stdc
=no
6087 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6089 if test $ac_cv_header_stdc = yes; then
6090 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6091 cat >conftest.
$ac_ext <<_ACEOF
6094 cat confdefs.h
>>conftest.
$ac_ext
6095 cat >>conftest.
$ac_ext <<_ACEOF
6096 /* end confdefs.h. */
6100 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6101 $EGREP "memchr" >/dev
/null
2>&1; then
6104 ac_cv_header_stdc
=no
6110 if test $ac_cv_header_stdc = yes; then
6111 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6112 cat >conftest.
$ac_ext <<_ACEOF
6115 cat confdefs.h
>>conftest.
$ac_ext
6116 cat >>conftest.
$ac_ext <<_ACEOF
6117 /* end confdefs.h. */
6121 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6122 $EGREP "free" >/dev
/null
2>&1; then
6125 ac_cv_header_stdc
=no
6131 if test $ac_cv_header_stdc = yes; then
6132 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6133 if test "$cross_compiling" = yes; then
6136 cat >conftest.
$ac_ext <<_ACEOF
6139 cat confdefs.h
>>conftest.
$ac_ext
6140 cat >>conftest.
$ac_ext <<_ACEOF
6141 /* end confdefs.h. */
6144 #if ((' ' & 0x0FF) == 0x020)
6145 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6146 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6148 # define ISLOWER(c) \
6149 (('a' <= (c) && (c) <= 'i') \
6150 || ('j' <= (c) && (c) <= 'r') \
6151 || ('s' <= (c) && (c) <= 'z'))
6152 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6155 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6160 for (i = 0; i < 256; i++)
6161 if (XOR (islower (i), ISLOWER (i))
6162 || toupper (i) != TOUPPER (i))
6167 rm -f conftest
$ac_exeext
6168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6169 (eval $ac_link) 2>&5
6171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6172 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6177 (exit $ac_status); }; }; then
6180 echo "$as_me: program exited with status $ac_status" >&5
6181 echo "$as_me: failed program was:" >&5
6182 sed 's/^/| /' conftest.
$ac_ext >&5
6185 ac_cv_header_stdc
=no
6187 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6191 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6192 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6193 if test $ac_cv_header_stdc = yes; then
6195 cat >>confdefs.h
<<\_ACEOF
6196 #define STDC_HEADERS 1
6201 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6211 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
6212 inttypes.h stdint.h unistd.h
6214 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6215 echo "$as_me:$LINENO: checking for $ac_header" >&5
6216 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6217 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6218 echo $ECHO_N "(cached) $ECHO_C" >&6
6220 cat >conftest.
$ac_ext <<_ACEOF
6223 cat confdefs.h
>>conftest.
$ac_ext
6224 cat >>conftest.
$ac_ext <<_ACEOF
6225 /* end confdefs.h. */
6226 $ac_includes_default
6228 #include <$ac_header>
6230 rm -f conftest.
$ac_objext
6231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6232 (eval $ac_compile) 2>conftest.er1
6234 grep -v '^ *+' conftest.er1
>conftest.err
6236 cat conftest.err
>&5
6237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6238 (exit $ac_status); } &&
6239 { ac_try
='test -z "$ac_c_werror_flag"
6240 || test ! -s conftest.err'
6241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6245 (exit $ac_status); }; } &&
6246 { ac_try
='test -s conftest.$ac_objext'
6247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6251 (exit $ac_status); }; }; then
6252 eval "$as_ac_Header=yes"
6254 echo "$as_me: failed program was:" >&5
6255 sed 's/^/| /' conftest.
$ac_ext >&5
6257 eval "$as_ac_Header=no"
6259 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6261 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6262 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6263 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6264 cat >>confdefs.h
<<_ACEOF
6265 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6285 for ac_header
in stddef.h stdlib.h unistd.h dirent.h limits.h sys
/dir.h \
6286 string.h
strings.h math.h sys
/time.h direct.h process.h
6288 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6289 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6290 echo "$as_me:$LINENO: checking for $ac_header" >&5
6291 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6292 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6293 echo $ECHO_N "(cached) $ECHO_C" >&6
6295 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6296 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6298 # Is the header compilable?
6299 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6300 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6301 cat >conftest.
$ac_ext <<_ACEOF
6304 cat confdefs.h
>>conftest.
$ac_ext
6305 cat >>conftest.
$ac_ext <<_ACEOF
6306 /* end confdefs.h. */
6307 $ac_includes_default
6308 #include <$ac_header>
6310 rm -f conftest.
$ac_objext
6311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6312 (eval $ac_compile) 2>conftest.er1
6314 grep -v '^ *+' conftest.er1
>conftest.err
6316 cat conftest.err
>&5
6317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6318 (exit $ac_status); } &&
6319 { ac_try
='test -z "$ac_c_werror_flag"
6320 || test ! -s conftest.err'
6321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6325 (exit $ac_status); }; } &&
6326 { ac_try
='test -s conftest.$ac_objext'
6327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6331 (exit $ac_status); }; }; then
6332 ac_header_compiler
=yes
6334 echo "$as_me: failed program was:" >&5
6335 sed 's/^/| /' conftest.
$ac_ext >&5
6337 ac_header_compiler
=no
6339 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6340 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6341 echo "${ECHO_T}$ac_header_compiler" >&6
6343 # Is the header present?
6344 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6345 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6346 cat >conftest.
$ac_ext <<_ACEOF
6349 cat confdefs.h
>>conftest.
$ac_ext
6350 cat >>conftest.
$ac_ext <<_ACEOF
6351 /* end confdefs.h. */
6352 #include <$ac_header>
6354 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6355 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6357 grep -v '^ *+' conftest.er1
>conftest.err
6359 cat conftest.err
>&5
6360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6361 (exit $ac_status); } >/dev
/null
; then
6362 if test -s conftest.err
; then
6363 ac_cpp_err
=$ac_c_preproc_warn_flag
6364 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6371 if test -z "$ac_cpp_err"; then
6372 ac_header_preproc
=yes
6374 echo "$as_me: failed program was:" >&5
6375 sed 's/^/| /' conftest.
$ac_ext >&5
6377 ac_header_preproc
=no
6379 rm -f conftest.err conftest.
$ac_ext
6380 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6381 echo "${ECHO_T}$ac_header_preproc" >&6
6383 # So? What about this header?
6384 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6386 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6387 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6388 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6389 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6390 ac_header_preproc
=yes
6393 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6394 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6395 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6396 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6397 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6398 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6399 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6400 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6401 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6402 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6403 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6404 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6407 ## ------------------------------------------ ##
6408 ## Report this to the AC_PACKAGE_NAME lists. ##
6409 ## ------------------------------------------ ##
6412 sed "s/^/$as_me: WARNING: /" >&2
6415 echo "$as_me:$LINENO: checking for $ac_header" >&5
6416 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6417 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6418 echo $ECHO_N "(cached) $ECHO_C" >&6
6420 eval "$as_ac_Header=\$ac_header_preproc"
6422 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6423 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6426 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6427 cat >>confdefs.h
<<_ACEOF
6428 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6435 echo "$as_me:$LINENO: checking for ISC 3.x or 4.x" >&5
6436 echo $ECHO_N "checking for ISC 3.x or 4.x... $ECHO_C" >&6
6437 if grep '[34]\.' /usr
/options
/cb.name
>/dev
/null
2>&1
6439 echo "$as_me:$LINENO: result: yes" >&5
6440 echo "${ECHO_T}yes" >&6
6442 cat >>confdefs.h
<<\_ACEOF
6447 echo "$as_me:$LINENO: result: no" >&5
6448 echo "${ECHO_T}no" >&6
6450 echo "$as_me:$LINENO: checking whether -D_POSIX_SOURCE is necessary" >&5
6451 echo $ECHO_N "checking whether -D_POSIX_SOURCE is necessary... $ECHO_C" >&6
6453 ac_cpp
='$CXXCPP $CPPFLAGS'
6454 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6455 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6456 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6458 cat >conftest.
$ac_ext <<_ACEOF
6462 cat confdefs.h
>>conftest.
$ac_ext
6463 cat >>conftest.
$ac_ext <<_ACEOF
6464 /* end confdefs.h. */
6468 extern "C" { void fileno(int); }
6480 rm -f conftest.
$ac_objext
6481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6482 (eval $ac_compile) 2>conftest.er1
6484 grep -v '^ *+' conftest.er1
>conftest.err
6486 cat conftest.err
>&5
6487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6488 (exit $ac_status); } &&
6489 { ac_try
='test -z "$ac_cxx_werror_flag"
6490 || test ! -s conftest.err'
6491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6495 (exit $ac_status); }; } &&
6496 { ac_try
='test -s conftest.$ac_objext'
6497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6501 (exit $ac_status); }; }; then
6502 echo "$as_me:$LINENO: result: yes" >&5
6503 echo "${ECHO_T}yes" >&6
6505 cat >>confdefs.h
<<\_ACEOF
6506 #define _POSIX_SOURCE 1
6510 echo "$as_me: failed program was:" >&5
6511 sed 's/^/| /' conftest.
$ac_ext >&5
6513 echo "$as_me:$LINENO: result: no" >&5
6514 echo "${ECHO_T}no" >&6
6516 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6518 ac_cpp
='$CPP $CPPFLAGS'
6519 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6520 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6521 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6524 # checks for header stuff
6526 ac_cpp
='$CXXCPP $CPPFLAGS'
6527 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6528 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6529 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6531 echo "$as_me:$LINENO: checking for return type of srand" >&5
6532 echo $ECHO_N "checking for return type of srand... $ECHO_C" >&6
6533 cat >conftest.
$ac_ext <<_ACEOF
6537 cat confdefs.h
>>conftest.
$ac_ext
6538 cat >>conftest.
$ac_ext <<_ACEOF
6539 /* end confdefs.h. */
6543 extern "C" { void srand(unsigned int); }
6555 rm -f conftest.
$ac_objext
6556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6557 (eval $ac_compile) 2>conftest.er1
6559 grep -v '^ *+' conftest.er1
>conftest.err
6561 cat conftest.err
>&5
6562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6563 (exit $ac_status); } &&
6564 { ac_try
='test -z "$ac_cxx_werror_flag"
6565 || test ! -s conftest.err'
6566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6570 (exit $ac_status); }; } &&
6571 { ac_try
='test -s conftest.$ac_objext'
6572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6576 (exit $ac_status); }; }; then
6577 echo "$as_me:$LINENO: result: void" >&5
6578 echo "${ECHO_T}void" >&6
6580 cat >>confdefs.h
<<\_ACEOF
6581 #define RET_TYPE_SRAND_IS_VOID 1
6585 echo "$as_me: failed program was:" >&5
6586 sed 's/^/| /' conftest.
$ac_ext >&5
6588 echo "$as_me:$LINENO: result: int" >&5
6589 echo "${ECHO_T}int" >&6
6591 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6593 ac_cpp
='$CPP $CPPFLAGS'
6594 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6595 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6596 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6598 echo "$as_me:$LINENO: checking whether gettimeofday must be declared" >&5
6599 echo $ECHO_N "checking whether gettimeofday must be declared... $ECHO_C" >&6
6601 ac_cpp
='$CXXCPP $CPPFLAGS'
6602 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6603 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6604 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6606 if test "${groff_cv_decl_needed_gettimeofday+set}" = set; then
6607 echo $ECHO_N "(cached) $ECHO_C" >&6
6609 cat >conftest.
$ac_ext <<_ACEOF
6613 cat confdefs.h
>>conftest.
$ac_ext
6614 cat >>conftest.
$ac_ext <<_ACEOF
6615 /* end confdefs.h. */
6619 #ifdef HAVE_STRING_H
6622 #ifdef HAVE_STRINGS_H
6623 #include <strings.h>
6625 #ifdef HAVE_STDLIB_H
6628 #ifdef HAVE_SYS_TIME_H
6629 #include <sys/time.h>
6631 #ifdef HAVE_UNISTD_H
6644 #ifndef gettimeofday
6645 char *p = (char *) gettimeofday;
6654 rm -f conftest.
$ac_objext
6655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6656 (eval $ac_compile) 2>conftest.er1
6658 grep -v '^ *+' conftest.er1
>conftest.err
6660 cat conftest.err
>&5
6661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6662 (exit $ac_status); } &&
6663 { ac_try
='test -z "$ac_cxx_werror_flag"
6664 || test ! -s conftest.err'
6665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6669 (exit $ac_status); }; } &&
6670 { ac_try
='test -s conftest.$ac_objext'
6671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6675 (exit $ac_status); }; }; then
6676 groff_cv_decl_needed_gettimeofday
=no
6678 echo "$as_me: failed program was:" >&5
6679 sed 's/^/| /' conftest.
$ac_ext >&5
6681 groff_cv_decl_needed_gettimeofday
=yes
6683 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6686 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_gettimeofday" >&5
6687 echo "${ECHO_T}$groff_cv_decl_needed_gettimeofday" >&6
6688 if test $groff_cv_decl_needed_gettimeofday = yes; then
6690 cat >>confdefs.h
<<\_ACEOF
6691 #define NEED_DECLARATION_GETTIMEOFDAY 1
6696 ac_cpp
='$CPP $CPPFLAGS'
6697 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6698 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6699 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6701 echo "$as_me:$LINENO: checking whether hypot must be declared" >&5
6702 echo $ECHO_N "checking whether hypot must be declared... $ECHO_C" >&6
6704 ac_cpp
='$CXXCPP $CPPFLAGS'
6705 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6706 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6707 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6709 if test "${groff_cv_decl_needed_hypot+set}" = set; then
6710 echo $ECHO_N "(cached) $ECHO_C" >&6
6712 cat >conftest.
$ac_ext <<_ACEOF
6716 cat confdefs.h
>>conftest.
$ac_ext
6717 cat >>conftest.
$ac_ext <<_ACEOF
6718 /* end confdefs.h. */
6722 #ifdef HAVE_STRING_H
6725 #ifdef HAVE_STRINGS_H
6726 #include <strings.h>
6728 #ifdef HAVE_STDLIB_H
6731 #ifdef HAVE_SYS_TIME_H
6732 #include <sys/time.h>
6734 #ifdef HAVE_UNISTD_H
6748 char *p = (char *) hypot;
6757 rm -f conftest.
$ac_objext
6758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6759 (eval $ac_compile) 2>conftest.er1
6761 grep -v '^ *+' conftest.er1
>conftest.err
6763 cat conftest.err
>&5
6764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6765 (exit $ac_status); } &&
6766 { ac_try
='test -z "$ac_cxx_werror_flag"
6767 || test ! -s conftest.err'
6768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6772 (exit $ac_status); }; } &&
6773 { ac_try
='test -s conftest.$ac_objext'
6774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6778 (exit $ac_status); }; }; then
6779 groff_cv_decl_needed_hypot
=no
6781 echo "$as_me: failed program was:" >&5
6782 sed 's/^/| /' conftest.
$ac_ext >&5
6784 groff_cv_decl_needed_hypot
=yes
6786 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6789 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_hypot" >&5
6790 echo "${ECHO_T}$groff_cv_decl_needed_hypot" >&6
6791 if test $groff_cv_decl_needed_hypot = yes; then
6793 cat >>confdefs.h
<<\_ACEOF
6794 #define NEED_DECLARATION_HYPOT 1
6799 ac_cpp
='$CPP $CPPFLAGS'
6800 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6801 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6802 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6804 echo "$as_me:$LINENO: checking whether popen must be declared" >&5
6805 echo $ECHO_N "checking whether popen must be declared... $ECHO_C" >&6
6807 ac_cpp
='$CXXCPP $CPPFLAGS'
6808 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6809 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6810 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6812 if test "${groff_cv_decl_needed_popen+set}" = set; then
6813 echo $ECHO_N "(cached) $ECHO_C" >&6
6815 cat >conftest.
$ac_ext <<_ACEOF
6819 cat confdefs.h
>>conftest.
$ac_ext
6820 cat >>conftest.
$ac_ext <<_ACEOF
6821 /* end confdefs.h. */
6825 #ifdef HAVE_STRING_H
6828 #ifdef HAVE_STRINGS_H
6829 #include <strings.h>
6831 #ifdef HAVE_STDLIB_H
6834 #ifdef HAVE_SYS_TIME_H
6835 #include <sys/time.h>
6837 #ifdef HAVE_UNISTD_H
6851 char *p = (char *) popen;
6860 rm -f conftest.
$ac_objext
6861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6862 (eval $ac_compile) 2>conftest.er1
6864 grep -v '^ *+' conftest.er1
>conftest.err
6866 cat conftest.err
>&5
6867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6868 (exit $ac_status); } &&
6869 { ac_try
='test -z "$ac_cxx_werror_flag"
6870 || test ! -s conftest.err'
6871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6875 (exit $ac_status); }; } &&
6876 { ac_try
='test -s conftest.$ac_objext'
6877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6881 (exit $ac_status); }; }; then
6882 groff_cv_decl_needed_popen
=no
6884 echo "$as_me: failed program was:" >&5
6885 sed 's/^/| /' conftest.
$ac_ext >&5
6887 groff_cv_decl_needed_popen
=yes
6889 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6892 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_popen" >&5
6893 echo "${ECHO_T}$groff_cv_decl_needed_popen" >&6
6894 if test $groff_cv_decl_needed_popen = yes; then
6896 cat >>confdefs.h
<<\_ACEOF
6897 #define NEED_DECLARATION_POPEN 1
6902 ac_cpp
='$CPP $CPPFLAGS'
6903 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6904 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6905 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6907 echo "$as_me:$LINENO: checking whether pclose must be declared" >&5
6908 echo $ECHO_N "checking whether pclose must be declared... $ECHO_C" >&6
6910 ac_cpp
='$CXXCPP $CPPFLAGS'
6911 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6912 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6913 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6915 if test "${groff_cv_decl_needed_pclose+set}" = set; then
6916 echo $ECHO_N "(cached) $ECHO_C" >&6
6918 cat >conftest.
$ac_ext <<_ACEOF
6922 cat confdefs.h
>>conftest.
$ac_ext
6923 cat >>conftest.
$ac_ext <<_ACEOF
6924 /* end confdefs.h. */
6928 #ifdef HAVE_STRING_H
6931 #ifdef HAVE_STRINGS_H
6932 #include <strings.h>
6934 #ifdef HAVE_STDLIB_H
6937 #ifdef HAVE_SYS_TIME_H
6938 #include <sys/time.h>
6940 #ifdef HAVE_UNISTD_H
6954 char *p = (char *) pclose;
6963 rm -f conftest.
$ac_objext
6964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6965 (eval $ac_compile) 2>conftest.er1
6967 grep -v '^ *+' conftest.er1
>conftest.err
6969 cat conftest.err
>&5
6970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6971 (exit $ac_status); } &&
6972 { ac_try
='test -z "$ac_cxx_werror_flag"
6973 || test ! -s conftest.err'
6974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6978 (exit $ac_status); }; } &&
6979 { ac_try
='test -s conftest.$ac_objext'
6980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6984 (exit $ac_status); }; }; then
6985 groff_cv_decl_needed_pclose
=no
6987 echo "$as_me: failed program was:" >&5
6988 sed 's/^/| /' conftest.
$ac_ext >&5
6990 groff_cv_decl_needed_pclose
=yes
6992 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6995 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_pclose" >&5
6996 echo "${ECHO_T}$groff_cv_decl_needed_pclose" >&6
6997 if test $groff_cv_decl_needed_pclose = yes; then
6999 cat >>confdefs.h
<<\_ACEOF
7000 #define NEED_DECLARATION_PCLOSE 1
7005 ac_cpp
='$CPP $CPPFLAGS'
7006 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7007 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7008 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7010 echo "$as_me:$LINENO: checking whether putenv must be declared" >&5
7011 echo $ECHO_N "checking whether putenv must be declared... $ECHO_C" >&6
7013 ac_cpp
='$CXXCPP $CPPFLAGS'
7014 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7015 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7016 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7018 if test "${groff_cv_decl_needed_putenv+set}" = set; then
7019 echo $ECHO_N "(cached) $ECHO_C" >&6
7021 cat >conftest.
$ac_ext <<_ACEOF
7025 cat confdefs.h
>>conftest.
$ac_ext
7026 cat >>conftest.
$ac_ext <<_ACEOF
7027 /* end confdefs.h. */
7031 #ifdef HAVE_STRING_H
7034 #ifdef HAVE_STRINGS_H
7035 #include <strings.h>
7037 #ifdef HAVE_STDLIB_H
7040 #ifdef HAVE_SYS_TIME_H
7041 #include <sys/time.h>
7043 #ifdef HAVE_UNISTD_H
7057 char *p = (char *) putenv;
7066 rm -f conftest.
$ac_objext
7067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7068 (eval $ac_compile) 2>conftest.er1
7070 grep -v '^ *+' conftest.er1
>conftest.err
7072 cat conftest.err
>&5
7073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7074 (exit $ac_status); } &&
7075 { ac_try
='test -z "$ac_cxx_werror_flag"
7076 || test ! -s conftest.err'
7077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7081 (exit $ac_status); }; } &&
7082 { ac_try
='test -s conftest.$ac_objext'
7083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7087 (exit $ac_status); }; }; then
7088 groff_cv_decl_needed_putenv
=no
7090 echo "$as_me: failed program was:" >&5
7091 sed 's/^/| /' conftest.
$ac_ext >&5
7093 groff_cv_decl_needed_putenv
=yes
7095 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7098 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_putenv" >&5
7099 echo "${ECHO_T}$groff_cv_decl_needed_putenv" >&6
7100 if test $groff_cv_decl_needed_putenv = yes; then
7102 cat >>confdefs.h
<<\_ACEOF
7103 #define NEED_DECLARATION_PUTENV 1
7108 ac_cpp
='$CPP $CPPFLAGS'
7109 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7110 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7111 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7113 echo "$as_me:$LINENO: checking whether rand must be declared" >&5
7114 echo $ECHO_N "checking whether rand must be declared... $ECHO_C" >&6
7116 ac_cpp
='$CXXCPP $CPPFLAGS'
7117 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7118 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7119 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7121 if test "${groff_cv_decl_needed_rand+set}" = set; then
7122 echo $ECHO_N "(cached) $ECHO_C" >&6
7124 cat >conftest.
$ac_ext <<_ACEOF
7128 cat confdefs.h
>>conftest.
$ac_ext
7129 cat >>conftest.
$ac_ext <<_ACEOF
7130 /* end confdefs.h. */
7134 #ifdef HAVE_STRING_H
7137 #ifdef HAVE_STRINGS_H
7138 #include <strings.h>
7140 #ifdef HAVE_STDLIB_H
7143 #ifdef HAVE_SYS_TIME_H
7144 #include <sys/time.h>
7146 #ifdef HAVE_UNISTD_H
7160 char *p = (char *) rand;
7169 rm -f conftest.
$ac_objext
7170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7171 (eval $ac_compile) 2>conftest.er1
7173 grep -v '^ *+' conftest.er1
>conftest.err
7175 cat conftest.err
>&5
7176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7177 (exit $ac_status); } &&
7178 { ac_try
='test -z "$ac_cxx_werror_flag"
7179 || test ! -s conftest.err'
7180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7184 (exit $ac_status); }; } &&
7185 { ac_try
='test -s conftest.$ac_objext'
7186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7190 (exit $ac_status); }; }; then
7191 groff_cv_decl_needed_rand
=no
7193 echo "$as_me: failed program was:" >&5
7194 sed 's/^/| /' conftest.
$ac_ext >&5
7196 groff_cv_decl_needed_rand
=yes
7198 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7201 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_rand" >&5
7202 echo "${ECHO_T}$groff_cv_decl_needed_rand" >&6
7203 if test $groff_cv_decl_needed_rand = yes; then
7205 cat >>confdefs.h
<<\_ACEOF
7206 #define NEED_DECLARATION_RAND 1
7211 ac_cpp
='$CPP $CPPFLAGS'
7212 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7213 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7214 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7216 echo "$as_me:$LINENO: checking whether snprintf must be declared" >&5
7217 echo $ECHO_N "checking whether snprintf must be declared... $ECHO_C" >&6
7219 ac_cpp
='$CXXCPP $CPPFLAGS'
7220 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7221 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7222 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7224 if test "${groff_cv_decl_needed_snprintf+set}" = set; then
7225 echo $ECHO_N "(cached) $ECHO_C" >&6
7227 cat >conftest.
$ac_ext <<_ACEOF
7231 cat confdefs.h
>>conftest.
$ac_ext
7232 cat >>conftest.
$ac_ext <<_ACEOF
7233 /* end confdefs.h. */
7237 #ifdef HAVE_STRING_H
7240 #ifdef HAVE_STRINGS_H
7241 #include <strings.h>
7243 #ifdef HAVE_STDLIB_H
7246 #ifdef HAVE_SYS_TIME_H
7247 #include <sys/time.h>
7249 #ifdef HAVE_UNISTD_H
7263 char *p = (char *) snprintf;
7272 rm -f conftest.
$ac_objext
7273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7274 (eval $ac_compile) 2>conftest.er1
7276 grep -v '^ *+' conftest.er1
>conftest.err
7278 cat conftest.err
>&5
7279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7280 (exit $ac_status); } &&
7281 { ac_try
='test -z "$ac_cxx_werror_flag"
7282 || test ! -s conftest.err'
7283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7287 (exit $ac_status); }; } &&
7288 { ac_try
='test -s conftest.$ac_objext'
7289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7293 (exit $ac_status); }; }; then
7294 groff_cv_decl_needed_snprintf
=no
7296 echo "$as_me: failed program was:" >&5
7297 sed 's/^/| /' conftest.
$ac_ext >&5
7299 groff_cv_decl_needed_snprintf
=yes
7301 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7304 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_snprintf" >&5
7305 echo "${ECHO_T}$groff_cv_decl_needed_snprintf" >&6
7306 if test $groff_cv_decl_needed_snprintf = yes; then
7308 cat >>confdefs.h
<<\_ACEOF
7309 #define NEED_DECLARATION_SNPRINTF 1
7314 ac_cpp
='$CPP $CPPFLAGS'
7315 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7316 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7317 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7319 echo "$as_me:$LINENO: checking whether srand must be declared" >&5
7320 echo $ECHO_N "checking whether srand must be declared... $ECHO_C" >&6
7322 ac_cpp
='$CXXCPP $CPPFLAGS'
7323 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7324 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7325 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7327 if test "${groff_cv_decl_needed_srand+set}" = set; then
7328 echo $ECHO_N "(cached) $ECHO_C" >&6
7330 cat >conftest.
$ac_ext <<_ACEOF
7334 cat confdefs.h
>>conftest.
$ac_ext
7335 cat >>conftest.
$ac_ext <<_ACEOF
7336 /* end confdefs.h. */
7340 #ifdef HAVE_STRING_H
7343 #ifdef HAVE_STRINGS_H
7344 #include <strings.h>
7346 #ifdef HAVE_STDLIB_H
7349 #ifdef HAVE_SYS_TIME_H
7350 #include <sys/time.h>
7352 #ifdef HAVE_UNISTD_H
7366 char *p = (char *) srand;
7375 rm -f conftest.
$ac_objext
7376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7377 (eval $ac_compile) 2>conftest.er1
7379 grep -v '^ *+' conftest.er1
>conftest.err
7381 cat conftest.err
>&5
7382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7383 (exit $ac_status); } &&
7384 { ac_try
='test -z "$ac_cxx_werror_flag"
7385 || test ! -s conftest.err'
7386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7390 (exit $ac_status); }; } &&
7391 { ac_try
='test -s conftest.$ac_objext'
7392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7396 (exit $ac_status); }; }; then
7397 groff_cv_decl_needed_srand
=no
7399 echo "$as_me: failed program was:" >&5
7400 sed 's/^/| /' conftest.
$ac_ext >&5
7402 groff_cv_decl_needed_srand
=yes
7404 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7407 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_srand" >&5
7408 echo "${ECHO_T}$groff_cv_decl_needed_srand" >&6
7409 if test $groff_cv_decl_needed_srand = yes; then
7411 cat >>confdefs.h
<<\_ACEOF
7412 #define NEED_DECLARATION_SRAND 1
7417 ac_cpp
='$CPP $CPPFLAGS'
7418 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7419 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7420 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7422 echo "$as_me:$LINENO: checking whether strcasecmp must be declared" >&5
7423 echo $ECHO_N "checking whether strcasecmp must be declared... $ECHO_C" >&6
7425 ac_cpp
='$CXXCPP $CPPFLAGS'
7426 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7427 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7428 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7430 if test "${groff_cv_decl_needed_strcasecmp+set}" = set; then
7431 echo $ECHO_N "(cached) $ECHO_C" >&6
7433 cat >conftest.
$ac_ext <<_ACEOF
7437 cat confdefs.h
>>conftest.
$ac_ext
7438 cat >>conftest.
$ac_ext <<_ACEOF
7439 /* end confdefs.h. */
7443 #ifdef HAVE_STRING_H
7446 #ifdef HAVE_STRINGS_H
7447 #include <strings.h>
7449 #ifdef HAVE_STDLIB_H
7452 #ifdef HAVE_SYS_TIME_H
7453 #include <sys/time.h>
7455 #ifdef HAVE_UNISTD_H
7469 char *p = (char *) strcasecmp;
7478 rm -f conftest.
$ac_objext
7479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7480 (eval $ac_compile) 2>conftest.er1
7482 grep -v '^ *+' conftest.er1
>conftest.err
7484 cat conftest.err
>&5
7485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7486 (exit $ac_status); } &&
7487 { ac_try
='test -z "$ac_cxx_werror_flag"
7488 || test ! -s conftest.err'
7489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7493 (exit $ac_status); }; } &&
7494 { ac_try
='test -s conftest.$ac_objext'
7495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7499 (exit $ac_status); }; }; then
7500 groff_cv_decl_needed_strcasecmp
=no
7502 echo "$as_me: failed program was:" >&5
7503 sed 's/^/| /' conftest.
$ac_ext >&5
7505 groff_cv_decl_needed_strcasecmp
=yes
7507 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7510 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_strcasecmp" >&5
7511 echo "${ECHO_T}$groff_cv_decl_needed_strcasecmp" >&6
7512 if test $groff_cv_decl_needed_strcasecmp = yes; then
7514 cat >>confdefs.h
<<\_ACEOF
7515 #define NEED_DECLARATION_STRCASECMP 1
7520 ac_cpp
='$CPP $CPPFLAGS'
7521 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7522 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7523 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7525 echo "$as_me:$LINENO: checking whether strncasecmp must be declared" >&5
7526 echo $ECHO_N "checking whether strncasecmp must be declared... $ECHO_C" >&6
7528 ac_cpp
='$CXXCPP $CPPFLAGS'
7529 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7530 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7531 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7533 if test "${groff_cv_decl_needed_strncasecmp+set}" = set; then
7534 echo $ECHO_N "(cached) $ECHO_C" >&6
7536 cat >conftest.
$ac_ext <<_ACEOF
7540 cat confdefs.h
>>conftest.
$ac_ext
7541 cat >>conftest.
$ac_ext <<_ACEOF
7542 /* end confdefs.h. */
7546 #ifdef HAVE_STRING_H
7549 #ifdef HAVE_STRINGS_H
7550 #include <strings.h>
7552 #ifdef HAVE_STDLIB_H
7555 #ifdef HAVE_SYS_TIME_H
7556 #include <sys/time.h>
7558 #ifdef HAVE_UNISTD_H
7572 char *p = (char *) strncasecmp;
7581 rm -f conftest.
$ac_objext
7582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7583 (eval $ac_compile) 2>conftest.er1
7585 grep -v '^ *+' conftest.er1
>conftest.err
7587 cat conftest.err
>&5
7588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7589 (exit $ac_status); } &&
7590 { ac_try
='test -z "$ac_cxx_werror_flag"
7591 || test ! -s conftest.err'
7592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7596 (exit $ac_status); }; } &&
7597 { ac_try
='test -s conftest.$ac_objext'
7598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7602 (exit $ac_status); }; }; then
7603 groff_cv_decl_needed_strncasecmp
=no
7605 echo "$as_me: failed program was:" >&5
7606 sed 's/^/| /' conftest.
$ac_ext >&5
7608 groff_cv_decl_needed_strncasecmp
=yes
7610 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7613 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_strncasecmp" >&5
7614 echo "${ECHO_T}$groff_cv_decl_needed_strncasecmp" >&6
7615 if test $groff_cv_decl_needed_strncasecmp = yes; then
7617 cat >>confdefs.h
<<\_ACEOF
7618 #define NEED_DECLARATION_STRNCASECMP 1
7623 ac_cpp
='$CPP $CPPFLAGS'
7624 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7625 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7626 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7628 echo "$as_me:$LINENO: checking whether vfprintf must be declared" >&5
7629 echo $ECHO_N "checking whether vfprintf must be declared... $ECHO_C" >&6
7631 ac_cpp
='$CXXCPP $CPPFLAGS'
7632 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7633 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7634 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7636 if test "${groff_cv_decl_needed_vfprintf+set}" = set; then
7637 echo $ECHO_N "(cached) $ECHO_C" >&6
7639 cat >conftest.
$ac_ext <<_ACEOF
7643 cat confdefs.h
>>conftest.
$ac_ext
7644 cat >>conftest.
$ac_ext <<_ACEOF
7645 /* end confdefs.h. */
7649 #ifdef HAVE_STRING_H
7652 #ifdef HAVE_STRINGS_H
7653 #include <strings.h>
7655 #ifdef HAVE_STDLIB_H
7658 #ifdef HAVE_SYS_TIME_H
7659 #include <sys/time.h>
7661 #ifdef HAVE_UNISTD_H
7675 char *p = (char *) vfprintf;
7684 rm -f conftest.
$ac_objext
7685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7686 (eval $ac_compile) 2>conftest.er1
7688 grep -v '^ *+' conftest.er1
>conftest.err
7690 cat conftest.err
>&5
7691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7692 (exit $ac_status); } &&
7693 { ac_try
='test -z "$ac_cxx_werror_flag"
7694 || test ! -s conftest.err'
7695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7699 (exit $ac_status); }; } &&
7700 { ac_try
='test -s conftest.$ac_objext'
7701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7705 (exit $ac_status); }; }; then
7706 groff_cv_decl_needed_vfprintf
=no
7708 echo "$as_me: failed program was:" >&5
7709 sed 's/^/| /' conftest.
$ac_ext >&5
7711 groff_cv_decl_needed_vfprintf
=yes
7713 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7716 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_vfprintf" >&5
7717 echo "${ECHO_T}$groff_cv_decl_needed_vfprintf" >&6
7718 if test $groff_cv_decl_needed_vfprintf = yes; then
7720 cat >>confdefs.h
<<\_ACEOF
7721 #define NEED_DECLARATION_VFPRINTF 1
7726 ac_cpp
='$CPP $CPPFLAGS'
7727 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7728 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7729 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7731 echo "$as_me:$LINENO: checking whether vsnprintf must be declared" >&5
7732 echo $ECHO_N "checking whether vsnprintf must be declared... $ECHO_C" >&6
7734 ac_cpp
='$CXXCPP $CPPFLAGS'
7735 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7736 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7737 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7739 if test "${groff_cv_decl_needed_vsnprintf+set}" = set; then
7740 echo $ECHO_N "(cached) $ECHO_C" >&6
7742 cat >conftest.
$ac_ext <<_ACEOF
7746 cat confdefs.h
>>conftest.
$ac_ext
7747 cat >>conftest.
$ac_ext <<_ACEOF
7748 /* end confdefs.h. */
7752 #ifdef HAVE_STRING_H
7755 #ifdef HAVE_STRINGS_H
7756 #include <strings.h>
7758 #ifdef HAVE_STDLIB_H
7761 #ifdef HAVE_SYS_TIME_H
7762 #include <sys/time.h>
7764 #ifdef HAVE_UNISTD_H
7778 char *p = (char *) vsnprintf;
7787 rm -f conftest.
$ac_objext
7788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7789 (eval $ac_compile) 2>conftest.er1
7791 grep -v '^ *+' conftest.er1
>conftest.err
7793 cat conftest.err
>&5
7794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7795 (exit $ac_status); } &&
7796 { ac_try
='test -z "$ac_cxx_werror_flag"
7797 || test ! -s conftest.err'
7798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7802 (exit $ac_status); }; } &&
7803 { ac_try
='test -s conftest.$ac_objext'
7804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7808 (exit $ac_status); }; }; then
7809 groff_cv_decl_needed_vsnprintf
=no
7811 echo "$as_me: failed program was:" >&5
7812 sed 's/^/| /' conftest.
$ac_ext >&5
7814 groff_cv_decl_needed_vsnprintf
=yes
7816 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7819 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_vsnprintf" >&5
7820 echo "${ECHO_T}$groff_cv_decl_needed_vsnprintf" >&6
7821 if test $groff_cv_decl_needed_vsnprintf = yes; then
7823 cat >>confdefs.h
<<\_ACEOF
7824 #define NEED_DECLARATION_VSNPRINTF 1
7829 ac_cpp
='$CPP $CPPFLAGS'
7830 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7831 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7832 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7835 ac_cpp
='$CXXCPP $CPPFLAGS'
7836 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7837 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7838 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7840 echo "$as_me:$LINENO: checking for sys_nerr in <errno.h>, <stdio.h>, or <stdlib.h>" >&5
7841 echo $ECHO_N "checking for sys_nerr in <errno.h>, <stdio.h>, or <stdlib.h>... $ECHO_C" >&6
7842 cat >conftest.
$ac_ext <<_ACEOF
7846 cat confdefs.h
>>conftest.
$ac_ext
7847 cat >>conftest.
$ac_ext <<_ACEOF
7848 /* end confdefs.h. */
7870 rm -f conftest.
$ac_objext
7871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7872 (eval $ac_compile) 2>conftest.er1
7874 grep -v '^ *+' conftest.er1
>conftest.err
7876 cat conftest.err
>&5
7877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7878 (exit $ac_status); } &&
7879 { ac_try
='test -z "$ac_cxx_werror_flag"
7880 || test ! -s conftest.err'
7881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7885 (exit $ac_status); }; } &&
7886 { ac_try
='test -s conftest.$ac_objext'
7887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7891 (exit $ac_status); }; }; then
7892 echo "$as_me:$LINENO: result: yes" >&5
7893 echo "${ECHO_T}yes" >&6
7895 cat >>confdefs.h
<<\_ACEOF
7896 #define HAVE_SYS_NERR 1
7900 echo "$as_me: failed program was:" >&5
7901 sed 's/^/| /' conftest.
$ac_ext >&5
7903 echo "$as_me:$LINENO: result: no" >&5
7904 echo "${ECHO_T}no" >&6
7906 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7908 ac_cpp
='$CPP $CPPFLAGS'
7909 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7910 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7911 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7913 echo "$as_me:$LINENO: checking for sys_errlist in <errno.h>, <stdio.h>, or <stdlib.h>" >&5
7914 echo $ECHO_N "checking for sys_errlist in <errno.h>, <stdio.h>, or <stdlib.h>... $ECHO_C" >&6
7915 cat >conftest.
$ac_ext <<_ACEOF
7919 cat confdefs.h
>>conftest.
$ac_ext
7920 cat >>conftest.
$ac_ext <<_ACEOF
7921 /* end confdefs.h. */
7935 k = (int)sys_errlist[0];
7943 rm -f conftest.
$ac_objext
7944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7945 (eval $ac_compile) 2>conftest.er1
7947 grep -v '^ *+' conftest.er1
>conftest.err
7949 cat conftest.err
>&5
7950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7951 (exit $ac_status); } &&
7952 { ac_try
='test -z "$ac_c_werror_flag"
7953 || test ! -s conftest.err'
7954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7958 (exit $ac_status); }; } &&
7959 { ac_try
='test -s conftest.$ac_objext'
7960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7964 (exit $ac_status); }; }; then
7965 echo "$as_me:$LINENO: result: yes" >&5
7966 echo "${ECHO_T}yes" >&6
7968 cat >>confdefs.h
<<\_ACEOF
7969 #define HAVE_SYS_ERRLIST 1
7973 echo "$as_me: failed program was:" >&5
7974 sed 's/^/| /' conftest.
$ac_ext >&5
7976 echo "$as_me:$LINENO: result: no" >&5
7977 echo "${ECHO_T}no" >&6
7979 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7981 ac_cpp
='$CXXCPP $CPPFLAGS'
7982 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7983 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7984 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7986 echo "$as_me:$LINENO: checking C++ <osfcn.h>" >&5
7987 echo $ECHO_N "checking C++ <osfcn.h>... $ECHO_C" >&6
7988 cat >conftest.
$ac_ext <<_ACEOF
7992 cat confdefs.h
>>conftest.
$ac_ext
7993 cat >>conftest.
$ac_ext <<_ACEOF
7994 /* end confdefs.h. */
8014 rm -f conftest.
$ac_objext
8015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8016 (eval $ac_compile) 2>conftest.er1
8018 grep -v '^ *+' conftest.er1
>conftest.err
8020 cat conftest.err
>&5
8021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8022 (exit $ac_status); } &&
8023 { ac_try
='test -z "$ac_cxx_werror_flag"
8024 || test ! -s conftest.err'
8025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8029 (exit $ac_status); }; } &&
8030 { ac_try
='test -s conftest.$ac_objext'
8031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8035 (exit $ac_status); }; }; then
8036 echo "$as_me:$LINENO: result: yes" >&5
8037 echo "${ECHO_T}yes" >&6
8039 cat >>confdefs.h
<<\_ACEOF
8040 #define HAVE_CC_OSFCN_H 1
8044 echo "$as_me: failed program was:" >&5
8045 sed 's/^/| /' conftest.
$ac_ext >&5
8047 echo "$as_me:$LINENO: result: no" >&5
8048 echo "${ECHO_T}no" >&6
8050 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8052 ac_cpp
='$CPP $CPPFLAGS'
8053 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8054 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8055 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8058 ac_cpp
='$CXXCPP $CPPFLAGS'
8059 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8060 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8061 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8063 echo "$as_me:$LINENO: checking C++ <limits.h>" >&5
8064 echo $ECHO_N "checking C++ <limits.h>... $ECHO_C" >&6
8065 cat >conftest.
$ac_ext <<_ACEOF
8069 cat confdefs.h
>>conftest.
$ac_ext
8070 cat >>conftest.
$ac_ext <<_ACEOF
8071 /* end confdefs.h. */
8092 rm -f conftest.
$ac_objext
8093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8094 (eval $ac_compile) 2>conftest.er1
8096 grep -v '^ *+' conftest.er1
>conftest.err
8098 cat conftest.err
>&5
8099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8100 (exit $ac_status); } &&
8101 { ac_try
='test -z "$ac_cxx_werror_flag"
8102 || test ! -s conftest.err'
8103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8107 (exit $ac_status); }; } &&
8108 { ac_try
='test -s conftest.$ac_objext'
8109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8113 (exit $ac_status); }; }; then
8114 echo "$as_me:$LINENO: result: yes" >&5
8115 echo "${ECHO_T}yes" >&6
8117 cat >>confdefs.h
<<\_ACEOF
8118 #define HAVE_CC_LIMITS_H 1
8122 echo "$as_me: failed program was:" >&5
8123 sed 's/^/| /' conftest.
$ac_ext >&5
8125 echo "$as_me:$LINENO: result: no" >&5
8126 echo "${ECHO_T}no" >&6
8128 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8130 ac_cpp
='$CPP $CPPFLAGS'
8131 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8132 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8133 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8136 ac_cpp
='$CXXCPP $CPPFLAGS'
8137 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8138 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8139 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8141 echo "$as_me:$LINENO: checking C++ <inttypes.h>" >&5
8142 echo $ECHO_N "checking C++ <inttypes.h>... $ECHO_C" >&6
8143 cat >conftest.
$ac_ext <<_ACEOF
8147 cat confdefs.h
>>conftest.
$ac_ext
8148 cat >>conftest.
$ac_ext <<_ACEOF
8149 /* end confdefs.h. */
8152 #include <sys/types.h>
8153 #include <inttypes.h>
8161 uintmax_t i = (uintmax_t)-1;
8169 rm -f conftest.
$ac_objext
8170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8171 (eval $ac_compile) 2>conftest.er1
8173 grep -v '^ *+' conftest.er1
>conftest.err
8175 cat conftest.err
>&5
8176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8177 (exit $ac_status); } &&
8178 { ac_try
='test -z "$ac_cxx_werror_flag"
8179 || test ! -s conftest.err'
8180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8184 (exit $ac_status); }; } &&
8185 { ac_try
='test -s conftest.$ac_objext'
8186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8190 (exit $ac_status); }; }; then
8191 groff_cv_header_inttypes_h
=yes
8193 cat >>confdefs.h
<<\_ACEOF
8194 #define HAVE_CC_INTTYPES_H 1
8198 echo "$as_me: failed program was:" >&5
8199 sed 's/^/| /' conftest.
$ac_ext >&5
8201 groff_cv_header_inttypes_h
=no
8203 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8204 echo "$as_me:$LINENO: result: $groff_cv_header_inttypes_h" >&5
8205 echo "${ECHO_T}$groff_cv_header_inttypes_h" >&6
8207 ac_cpp
='$CPP $CPPFLAGS'
8208 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8209 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8210 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8213 # checks for typedefs
8215 ac_cpp
='$CXXCPP $CPPFLAGS'
8216 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8217 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8218 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8220 echo "$as_me:$LINENO: checking for unsigned long long" >&5
8221 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
8222 cat >conftest.
$ac_ext <<_ACEOF
8226 cat confdefs.h
>>conftest.
$ac_ext
8227 cat >>conftest.
$ac_ext <<_ACEOF
8228 /* end confdefs.h. */
8231 unsigned long long ull = 1;
8233 unsigned long long ullmax = (unsigned long long)-1;
8241 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
8249 rm -f conftest.
$ac_objext conftest
$ac_exeext
8250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8251 (eval $ac_link) 2>conftest.er1
8253 grep -v '^ *+' conftest.er1
>conftest.err
8255 cat conftest.err
>&5
8256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8257 (exit $ac_status); } &&
8258 { ac_try
='test -z "$ac_cxx_werror_flag"
8259 || test ! -s conftest.err'
8260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8264 (exit $ac_status); }; } &&
8265 { ac_try
='test -s conftest$ac_exeext'
8266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8270 (exit $ac_status); }; }; then
8271 groff_cv_type_unsigned_long_long
=yes
8273 echo "$as_me: failed program was:" >&5
8274 sed 's/^/| /' conftest.
$ac_ext >&5
8276 groff_cv_type_unsigned_long_long
=no
8278 rm -f conftest.err conftest.
$ac_objext \
8279 conftest
$ac_exeext conftest.
$ac_ext
8280 echo "$as_me:$LINENO: result: $groff_cv_type_unsigned_long_long" >&5
8281 echo "${ECHO_T}$groff_cv_type_unsigned_long_long" >&6
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
8289 if test $groff_cv_header_inttypes_h = no
; then
8291 test $groff_cv_type_unsigned_long_long = yes \
8292 && ac_type
='unsigned long long' \
8293 || ac_type
='unsigned long'
8295 cat >>confdefs.h
<<_ACEOF
8296 #define uintmax_t $ac_type
8301 ac_cpp
='$CXXCPP $CPPFLAGS'
8302 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8303 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8304 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8306 echo "$as_me:$LINENO: checking for declaration of time_t" >&5
8307 echo $ECHO_N "checking for declaration of time_t... $ECHO_C" >&6
8308 cat >conftest.
$ac_ext <<_ACEOF
8312 cat confdefs.h
>>conftest.
$ac_ext
8313 cat >>conftest.
$ac_ext <<_ACEOF
8314 /* end confdefs.h. */
8326 struct tm *p = localtime(&t);
8334 rm -f conftest.
$ac_objext
8335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8336 (eval $ac_compile) 2>conftest.er1
8338 grep -v '^ *+' conftest.er1
>conftest.err
8340 cat conftest.err
>&5
8341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8342 (exit $ac_status); } &&
8343 { ac_try
='test -z "$ac_cxx_werror_flag"
8344 || test ! -s conftest.err'
8345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8349 (exit $ac_status); }; } &&
8350 { ac_try
='test -s conftest.$ac_objext'
8351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8355 (exit $ac_status); }; }; then
8356 echo "$as_me:$LINENO: result: yes" >&5
8357 echo "${ECHO_T}yes" >&6
8359 echo "$as_me: failed program was:" >&5
8360 sed 's/^/| /' conftest.
$ac_ext >&5
8362 echo "$as_me:$LINENO: result: no" >&5
8363 echo "${ECHO_T}no" >&6
8365 cat >>confdefs.h
<<\_ACEOF
8366 #define LONG_FOR_TIME_T 1
8370 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8372 ac_cpp
='$CPP $CPPFLAGS'
8373 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8374 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8375 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8377 echo "$as_me:$LINENO: checking for return type of signal handlers" >&5
8378 echo $ECHO_N "checking for return type of signal handlers... $ECHO_C" >&6
8379 for groff_declaration
in \
8380 'extern "C" void (*signal (int, void (*)(int)))(int);' \
8381 'extern "C" void (*signal (int, void (*)(int)) throw ())(int);' \
8382 'void (*signal ()) ();'
8384 cat >conftest.
$ac_ext <<_ACEOF
8388 cat confdefs.h
>>conftest.
$ac_ext
8389 cat >>conftest.
$ac_ext <<_ACEOF
8390 /* end confdefs.h. */
8393 #include <sys/types.h>
8414 rm -f conftest.
$ac_objext
8415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8416 (eval $ac_compile) 2>conftest.er1
8418 grep -v '^ *+' conftest.er1
>conftest.err
8420 cat conftest.err
>&5
8421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8422 (exit $ac_status); } &&
8423 { ac_try
='test -z "$ac_c_werror_flag"
8424 || test ! -s conftest.err'
8425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8429 (exit $ac_status); }; } &&
8430 { ac_try
='test -s conftest.$ac_objext'
8431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8435 (exit $ac_status); }; }; then
8438 echo "$as_me: failed program was:" >&5
8439 sed 's/^/| /' conftest.
$ac_ext >&5
8443 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8446 if test -n "$groff_declaration"; then
8447 echo "$as_me:$LINENO: result: void" >&5
8448 echo "${ECHO_T}void" >&6
8450 cat >>confdefs.h
<<\_ACEOF
8451 #define RETSIGTYPE void
8455 echo "$as_me:$LINENO: result: int" >&5
8456 echo "${ECHO_T}int" >&6
8458 cat >>confdefs.h
<<\_ACEOF
8459 #define RETSIGTYPE int
8463 echo "$as_me:$LINENO: checking struct exception" >&5
8464 echo $ECHO_N "checking struct exception... $ECHO_C" >&6
8465 cat >conftest.
$ac_ext <<_ACEOF
8469 cat confdefs.h
>>conftest.
$ac_ext
8470 cat >>conftest.
$ac_ext <<_ACEOF
8471 /* end confdefs.h. */
8490 rm -f conftest.
$ac_objext
8491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8492 (eval $ac_compile) 2>conftest.er1
8494 grep -v '^ *+' conftest.er1
>conftest.err
8496 cat conftest.err
>&5
8497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8498 (exit $ac_status); } &&
8499 { ac_try
='test -z "$ac_c_werror_flag"
8500 || test ! -s conftest.err'
8501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8505 (exit $ac_status); }; } &&
8506 { ac_try
='test -s conftest.$ac_objext'
8507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8511 (exit $ac_status); }; }; then
8512 echo "$as_me:$LINENO: result: yes" >&5
8513 echo "${ECHO_T}yes" >&6
8515 cat >>confdefs.h
<<\_ACEOF
8516 #define HAVE_STRUCT_EXCEPTION 1
8520 echo "$as_me: failed program was:" >&5
8521 sed 's/^/| /' conftest.
$ac_ext >&5
8523 echo "$as_me:$LINENO: result: no" >&5
8524 echo "${ECHO_T}no" >&6
8526 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8529 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
8530 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
8531 if test "${ac_cv_c_bigendian+set}" = set; then
8532 echo $ECHO_N "(cached) $ECHO_C" >&6
8534 # See if sys/param.h defines the BYTE_ORDER macro.
8535 cat >conftest.
$ac_ext <<_ACEOF
8538 cat confdefs.h
>>conftest.
$ac_ext
8539 cat >>conftest.
$ac_ext <<_ACEOF
8540 /* end confdefs.h. */
8541 #include <sys/types.h>
8542 #include <sys/param.h>
8547 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8555 rm -f conftest.
$ac_objext
8556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8557 (eval $ac_compile) 2>conftest.er1
8559 grep -v '^ *+' conftest.er1
>conftest.err
8561 cat conftest.err
>&5
8562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8563 (exit $ac_status); } &&
8564 { ac_try
='test -z "$ac_c_werror_flag"
8565 || test ! -s conftest.err'
8566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8570 (exit $ac_status); }; } &&
8571 { ac_try
='test -s conftest.$ac_objext'
8572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8576 (exit $ac_status); }; }; then
8577 # It does; now see whether it defined to BIG_ENDIAN or not.
8578 cat >conftest.
$ac_ext <<_ACEOF
8581 cat confdefs.h
>>conftest.
$ac_ext
8582 cat >>conftest.
$ac_ext <<_ACEOF
8583 /* end confdefs.h. */
8584 #include <sys/types.h>
8585 #include <sys/param.h>
8590 #if BYTE_ORDER != BIG_ENDIAN
8598 rm -f conftest.
$ac_objext
8599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8600 (eval $ac_compile) 2>conftest.er1
8602 grep -v '^ *+' conftest.er1
>conftest.err
8604 cat conftest.err
>&5
8605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8606 (exit $ac_status); } &&
8607 { ac_try
='test -z "$ac_c_werror_flag"
8608 || test ! -s conftest.err'
8609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8613 (exit $ac_status); }; } &&
8614 { ac_try
='test -s conftest.$ac_objext'
8615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8619 (exit $ac_status); }; }; then
8620 ac_cv_c_bigendian
=yes
8622 echo "$as_me: failed program was:" >&5
8623 sed 's/^/| /' conftest.
$ac_ext >&5
8625 ac_cv_c_bigendian
=no
8627 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8629 echo "$as_me: failed program was:" >&5
8630 sed 's/^/| /' conftest.
$ac_ext >&5
8632 # It does not; compile a test program.
8633 if test "$cross_compiling" = yes; then
8634 # try to guess the endianness by grepping values into an object file
8635 ac_cv_c_bigendian
=unknown
8636 cat >conftest.
$ac_ext <<_ACEOF
8639 cat confdefs.h
>>conftest.
$ac_ext
8640 cat >>conftest.
$ac_ext <<_ACEOF
8641 /* end confdefs.h. */
8642 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8643 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8644 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
8645 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8646 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8647 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
8651 _ascii (); _ebcdic ();
8656 rm -f conftest.
$ac_objext
8657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8658 (eval $ac_compile) 2>conftest.er1
8660 grep -v '^ *+' conftest.er1
>conftest.err
8662 cat conftest.err
>&5
8663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8664 (exit $ac_status); } &&
8665 { ac_try
='test -z "$ac_c_werror_flag"
8666 || test ! -s conftest.err'
8667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8671 (exit $ac_status); }; } &&
8672 { ac_try
='test -s conftest.$ac_objext'
8673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8677 (exit $ac_status); }; }; then
8678 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
8679 ac_cv_c_bigendian
=yes
8681 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
8682 if test "$ac_cv_c_bigendian" = unknown
; then
8683 ac_cv_c_bigendian
=no
8685 # finding both strings is unlikely to happen, but who knows?
8686 ac_cv_c_bigendian
=unknown
8690 echo "$as_me: failed program was:" >&5
8691 sed 's/^/| /' conftest.
$ac_ext >&5
8694 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8696 cat >conftest.
$ac_ext <<_ACEOF
8699 cat confdefs.h
>>conftest.
$ac_ext
8700 cat >>conftest.
$ac_ext <<_ACEOF
8701 /* end confdefs.h. */
8702 $ac_includes_default
8707 /* Are we little or big endian? From Harbison&Steele. */
8711 char c[sizeof (long int)];
8714 exit (u.c[sizeof (long int) - 1] == 1);
8720 rm -f conftest
$ac_exeext
8721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8722 (eval $ac_link) 2>&5
8724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8725 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8730 (exit $ac_status); }; }; then
8731 ac_cv_c_bigendian
=no
8733 echo "$as_me: program exited with status $ac_status" >&5
8734 echo "$as_me: failed program was:" >&5
8735 sed 's/^/| /' conftest.
$ac_ext >&5
8738 ac_cv_c_bigendian
=yes
8740 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8743 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8745 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8746 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8747 case $ac_cv_c_bigendian in
8750 cat >>confdefs.h
<<\_ACEOF
8751 #define WORDS_BIGENDIAN 1
8757 { { echo "$as_me:$LINENO: error: unknown endianness
8758 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
8759 echo "$as_me: error: unknown endianness
8760 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
8761 { (exit 1); exit 1; }; } ;;
8765 # checks for libraries
8766 echo "$as_me:$LINENO: checking for main in -lc" >&5
8767 echo $ECHO_N "checking for main in -lc... $ECHO_C" >&6
8768 if test "${ac_cv_lib_c_main+set}" = set; then
8769 echo $ECHO_N "(cached) $ECHO_C" >&6
8771 ac_check_lib_save_LIBS
=$LIBS
8773 cat >conftest.
$ac_ext <<_ACEOF
8776 cat confdefs.h
>>conftest.
$ac_ext
8777 cat >>conftest.
$ac_ext <<_ACEOF
8778 /* end confdefs.h. */
8789 rm -f conftest.
$ac_objext conftest
$ac_exeext
8790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8791 (eval $ac_link) 2>conftest.er1
8793 grep -v '^ *+' conftest.er1
>conftest.err
8795 cat conftest.err
>&5
8796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8797 (exit $ac_status); } &&
8798 { ac_try
='test -z "$ac_c_werror_flag"
8799 || test ! -s conftest.err'
8800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8804 (exit $ac_status); }; } &&
8805 { ac_try
='test -s conftest$ac_exeext'
8806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8810 (exit $ac_status); }; }; then
8811 ac_cv_lib_c_main
=yes
8813 echo "$as_me: failed program was:" >&5
8814 sed 's/^/| /' conftest.
$ac_ext >&5
8818 rm -f conftest.err conftest.
$ac_objext \
8819 conftest
$ac_exeext conftest.
$ac_ext
8820 LIBS
=$ac_check_lib_save_LIBS
8822 echo "$as_me:$LINENO: result: $ac_cv_lib_c_main" >&5
8823 echo "${ECHO_T}$ac_cv_lib_c_main" >&6
8824 if test $ac_cv_lib_c_main = yes; then
8829 echo "$as_me:$LINENO: checking for sin in -lm" >&5
8830 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
8831 if test "${ac_cv_lib_m_sin+set}" = set; then
8832 echo $ECHO_N "(cached) $ECHO_C" >&6
8834 ac_check_lib_save_LIBS
=$LIBS
8836 cat >conftest.
$ac_ext <<_ACEOF
8839 cat confdefs.h
>>conftest.
$ac_ext
8840 cat >>conftest.
$ac_ext <<_ACEOF
8841 /* end confdefs.h. */
8843 /* Override any gcc2 internal prototype to avoid an error. */
8847 /* We use char because int might match the return type of a gcc2
8848 builtin and then its argument prototype would still apply. */
8858 rm -f conftest.
$ac_objext conftest
$ac_exeext
8859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8860 (eval $ac_link) 2>conftest.er1
8862 grep -v '^ *+' conftest.er1
>conftest.err
8864 cat conftest.err
>&5
8865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8866 (exit $ac_status); } &&
8867 { ac_try
='test -z "$ac_c_werror_flag"
8868 || test ! -s conftest.err'
8869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8873 (exit $ac_status); }; } &&
8874 { ac_try
='test -s conftest$ac_exeext'
8875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8879 (exit $ac_status); }; }; then
8882 echo "$as_me: failed program was:" >&5
8883 sed 's/^/| /' conftest.
$ac_ext >&5
8887 rm -f conftest.err conftest.
$ac_objext \
8888 conftest
$ac_exeext conftest.
$ac_ext
8889 LIBS
=$ac_check_lib_save_LIBS
8891 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
8892 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
8893 if test $ac_cv_lib_m_sin = yes; then
8899 if test "X$prefix" = "XNONE"; then
8900 acl_final_prefix
="$ac_default_prefix"
8902 acl_final_prefix
="$prefix"
8904 if test "X$exec_prefix" = "XNONE"; then
8905 acl_final_exec_prefix
='${prefix}'
8907 acl_final_exec_prefix
="$exec_prefix"
8909 acl_save_prefix
="$prefix"
8910 prefix
="$acl_final_prefix"
8911 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
8912 prefix
="$acl_save_prefix"
8914 # Make sure we can run config.sub.
8915 $ac_config_sub sun4
>/dev
/null
2>&1 ||
8916 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
8917 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
8918 { (exit 1); exit 1; }; }
8920 echo "$as_me:$LINENO: checking build system type" >&5
8921 echo $ECHO_N "checking build system type... $ECHO_C" >&6
8922 if test "${ac_cv_build+set}" = set; then
8923 echo $ECHO_N "(cached) $ECHO_C" >&6
8925 ac_cv_build_alias
=$build_alias
8926 test -z "$ac_cv_build_alias" &&
8927 ac_cv_build_alias
=`$ac_config_guess`
8928 test -z "$ac_cv_build_alias" &&
8929 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
8930 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
8931 { (exit 1); exit 1; }; }
8932 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
8933 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
8934 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
8935 { (exit 1); exit 1; }; }
8938 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
8939 echo "${ECHO_T}$ac_cv_build" >&6
8941 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
8942 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
8943 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
8946 echo "$as_me:$LINENO: checking host system type" >&5
8947 echo $ECHO_N "checking host system type... $ECHO_C" >&6
8948 if test "${ac_cv_host+set}" = set; then
8949 echo $ECHO_N "(cached) $ECHO_C" >&6
8951 ac_cv_host_alias
=$host_alias
8952 test -z "$ac_cv_host_alias" &&
8953 ac_cv_host_alias
=$ac_cv_build_alias
8954 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
8955 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
8956 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
8957 { (exit 1); exit 1; }; }
8960 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
8961 echo "${ECHO_T}$ac_cv_host" >&6
8963 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
8964 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
8965 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
8969 # Check whether --with-gnu-ld or --without-gnu-ld was given.
8970 if test "${with_gnu_ld+set}" = set; then
8971 withval
="$with_gnu_ld"
8972 test "$withval" = no || with_gnu_ld
=yes
8976 # Prepare PATH_SEPARATOR.
8977 # The user is always right.
8978 if test "${PATH_SEPARATOR+set}" != set; then
8979 echo "#! /bin/sh" >conf$$.sh
8980 echo "exit 0" >>conf$$.sh
8982 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
8990 if test "$GCC" = yes; then
8991 # Check if gcc -print-prog-name=ld gives a path.
8992 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
8993 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
8996 # gcc leaves a trailing carriage return which upsets mingw
8997 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8999 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
9002 # Accept absolute paths.
9003 [\\/]* |
[A-Za-z
]:[\\/]*)
9004 re_direlt
='/[^/][^/]*/\.\./'
9005 # Canonicalize the path of ld
9006 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
9007 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
9008 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
9010 test -z "$LD" && LD
="$ac_prog"
9013 # If it fails, then pretend we aren't using GCC.
9017 # If it is relative, then search for the first ld in PATH.
9021 elif test "$with_gnu_ld" = yes; then
9022 echo "$as_me:$LINENO: checking for GNU ld" >&5
9023 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9025 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9026 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9028 if test "${acl_cv_path_LD+set}" = set; then
9029 echo $ECHO_N "(cached) $ECHO_C" >&6
9031 if test -z "$LD"; then
9032 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9033 for ac_dir
in $PATH; do
9034 test -z "$ac_dir" && ac_dir
=.
9035 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
9036 acl_cv_path_LD
="$ac_dir/$ac_prog"
9037 # Check to see if the program is GNU ld. I'd rather use --version,
9038 # but apparently some GNU ld's only accept -v.
9039 # Break only if it was the GNU/non-GNU ld that we prefer.
9040 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
9041 *GNU
* |
*'with BFD'*)
9042 test "$with_gnu_ld" != no
&& break ;;
9044 test "$with_gnu_ld" != yes && break ;;
9050 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
9054 LD
="$acl_cv_path_LD"
9055 if test -n "$LD"; then
9056 echo "$as_me:$LINENO: result: $LD" >&5
9057 echo "${ECHO_T}$LD" >&6
9059 echo "$as_me:$LINENO: result: no" >&5
9060 echo "${ECHO_T}no" >&6
9062 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9063 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9064 { (exit 1); exit 1; }; }
9065 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9066 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9067 if test "${acl_cv_prog_gnu_ld+set}" = set; then
9068 echo $ECHO_N "(cached) $ECHO_C" >&6
9070 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9071 case `$LD -v 2>&1 </dev/null` in
9072 *GNU
* |
*'with BFD'*)
9073 acl_cv_prog_gnu_ld
=yes ;;
9075 acl_cv_prog_gnu_ld
=no
;;
9078 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
9079 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
9080 with_gnu_ld
=$acl_cv_prog_gnu_ld
9085 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
9086 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
9087 if test "${acl_cv_rpath+set}" = set; then
9088 echo $ECHO_N "(cached) $ECHO_C" >&6
9091 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
9092 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9098 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
9099 echo "${ECHO_T}$acl_cv_rpath" >&6
9101 libext
="$acl_cv_libext"
9102 shlibext
="$acl_cv_shlibext"
9103 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
9104 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
9105 hardcode_direct
="$acl_cv_hardcode_direct"
9106 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
9107 # Check whether --enable-rpath or --disable-rpath was given.
9108 if test "${enable_rpath+set}" = set; then
9109 enableval
="$enable_rpath"
9117 searchpath
=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
9118 if test -n "$searchpath"; then
9119 acl_save_IFS
="${IFS= }"; IFS
=":"
9120 for searchdir
in $searchpath; do
9121 if test -d "$searchdir"; then
9122 case "$searchdir" in
9123 */lib64
/ |
*/lib64
) acl_libdirstem
=lib64
;;
9124 *) searchdir
=`cd "$searchdir" && pwd`
9125 case "$searchdir" in
9126 */lib64
) acl_libdirstem
=lib64
;;
9143 acl_save_prefix
="$prefix"
9144 prefix
="$acl_final_prefix"
9145 acl_save_exec_prefix
="$exec_prefix"
9146 exec_prefix
="$acl_final_exec_prefix"
9148 eval additional_includedir
=\"$includedir\"
9149 eval additional_libdir
=\"$libdir\"
9151 exec_prefix
="$acl_save_exec_prefix"
9152 prefix
="$acl_save_prefix"
9155 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
9156 if test "${with_libiconv_prefix+set}" = set; then
9157 withval
="$with_libiconv_prefix"
9159 if test "X$withval" = "Xno"; then
9162 if test "X$withval" = "X"; then
9164 acl_save_prefix
="$prefix"
9165 prefix
="$acl_final_prefix"
9166 acl_save_exec_prefix
="$exec_prefix"
9167 exec_prefix
="$acl_final_exec_prefix"
9169 eval additional_includedir
=\"$includedir\"
9170 eval additional_libdir
=\"$libdir\"
9172 exec_prefix
="$acl_save_exec_prefix"
9173 prefix
="$acl_save_prefix"
9176 additional_includedir
="$withval/include"
9177 additional_libdir
="$withval/$acl_libdirstem"
9187 names_already_handled
=
9188 names_next_round
='iconv '
9189 while test -n "$names_next_round"; do
9190 names_this_round
="$names_next_round"
9192 for name
in $names_this_round; do
9194 for n
in $names_already_handled; do
9195 if test "$n" = "$name"; then
9200 if test -z "$already_handled"; then
9201 names_already_handled
="$names_already_handled $name"
9202 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9203 eval value
=\"\
$HAVE_LIB$uppername\"
9204 if test -n "$value"; then
9205 if test "$value" = yes; then
9206 eval value
=\"\
$LIB$uppername\"
9207 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
9208 eval value
=\"\
$LTLIB$uppername\"
9209 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
9218 if test $use_additional = yes; then
9219 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9220 found_dir
="$additional_libdir"
9221 found_so
="$additional_libdir/lib$name.$shlibext"
9222 if test -f "$additional_libdir/lib$name.la"; then
9223 found_la
="$additional_libdir/lib$name.la"
9226 if test -f "$additional_libdir/lib$name.$libext"; then
9227 found_dir
="$additional_libdir"
9228 found_a
="$additional_libdir/lib$name.$libext"
9229 if test -f "$additional_libdir/lib$name.la"; then
9230 found_la
="$additional_libdir/lib$name.la"
9235 if test "X$found_dir" = "X"; then
9236 for x
in $LDFLAGS $LTLIBICONV; do
9238 acl_save_prefix
="$prefix"
9239 prefix
="$acl_final_prefix"
9240 acl_save_exec_prefix
="$exec_prefix"
9241 exec_prefix
="$acl_final_exec_prefix"
9243 exec_prefix
="$acl_save_exec_prefix"
9244 prefix
="$acl_save_prefix"
9248 dir
=`echo "X$x" | sed -e 's/^X-L//'`
9249 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9251 found_so
="$dir/lib$name.$shlibext"
9252 if test -f "$dir/lib$name.la"; then
9253 found_la
="$dir/lib$name.la"
9256 if test -f "$dir/lib$name.$libext"; then
9258 found_a
="$dir/lib$name.$libext"
9259 if test -f "$dir/lib$name.la"; then
9260 found_la
="$dir/lib$name.la"
9266 if test "X$found_dir" != "X"; then
9271 if test "X$found_dir" != "X"; then
9272 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9273 if test "X$found_so" != "X"; then
9274 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/$acl_libdirstem"; then
9275 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9278 for x
in $ltrpathdirs; do
9279 if test "X$x" = "X$found_dir"; then
9284 if test -z "$haveit"; then
9285 ltrpathdirs
="$ltrpathdirs $found_dir"
9287 if test "$hardcode_direct" = yes; then
9288 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9290 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
9291 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9293 for x
in $rpathdirs; do
9294 if test "X$x" = "X$found_dir"; then
9299 if test -z "$haveit"; then
9300 rpathdirs
="$rpathdirs $found_dir"
9304 for x
in $LDFLAGS $LIBICONV; do
9306 acl_save_prefix
="$prefix"
9307 prefix
="$acl_final_prefix"
9308 acl_save_exec_prefix
="$exec_prefix"
9309 exec_prefix
="$acl_final_exec_prefix"
9311 exec_prefix
="$acl_save_exec_prefix"
9312 prefix
="$acl_save_prefix"
9314 if test "X$x" = "X-L$found_dir"; then
9319 if test -z "$haveit"; then
9320 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9322 if test "$hardcode_minus_L" != no
; then
9323 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9325 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
9331 if test "X$found_a" != "X"; then
9332 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
9334 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9337 additional_includedir
=
9338 case "$found_dir" in
9339 */$acl_libdirstem |
*/$acl_libdirstem/)
9340 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
9341 additional_includedir
="$basedir/include"
9344 if test "X$additional_includedir" != "X"; then
9345 if test "X$additional_includedir" != "X/usr/include"; then
9347 if test "X$additional_includedir" = "X/usr/local/include"; then
9348 if test -n "$GCC"; then
9350 linux
* | gnu
* | k
*bsd
*-gnu) haveit
=yes;;
9354 if test -z "$haveit"; then
9355 for x
in $CPPFLAGS $INCICONV; do
9357 acl_save_prefix
="$prefix"
9358 prefix
="$acl_final_prefix"
9359 acl_save_exec_prefix
="$exec_prefix"
9360 exec_prefix
="$acl_final_exec_prefix"
9362 exec_prefix
="$acl_save_exec_prefix"
9363 prefix
="$acl_save_prefix"
9365 if test "X$x" = "X-I$additional_includedir"; then
9370 if test -z "$haveit"; then
9371 if test -d "$additional_includedir"; then
9372 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9378 if test -n "$found_la"; then
9379 save_libdir
="$libdir"
9381 */* |
*\\*) .
"$found_la" ;;
9382 *) .
"./$found_la" ;;
9384 libdir
="$save_libdir"
9385 for dep
in $dependency_libs; do
9388 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
9389 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
9391 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
9392 if test -n "$GCC"; then
9394 linux
* | gnu
* | k
*bsd
*-gnu) haveit
=yes;;
9398 if test -z "$haveit"; then
9400 for x
in $LDFLAGS $LIBICONV; do
9402 acl_save_prefix
="$prefix"
9403 prefix
="$acl_final_prefix"
9404 acl_save_exec_prefix
="$exec_prefix"
9405 exec_prefix
="$acl_final_exec_prefix"
9407 exec_prefix
="$acl_save_exec_prefix"
9408 prefix
="$acl_save_prefix"
9410 if test "X$x" = "X-L$additional_libdir"; then
9415 if test -z "$haveit"; then
9416 if test -d "$additional_libdir"; then
9417 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9421 for x
in $LDFLAGS $LTLIBICONV; do
9423 acl_save_prefix
="$prefix"
9424 prefix
="$acl_final_prefix"
9425 acl_save_exec_prefix
="$exec_prefix"
9426 exec_prefix
="$acl_final_exec_prefix"
9428 exec_prefix
="$acl_save_exec_prefix"
9429 prefix
="$acl_save_prefix"
9431 if test "X$x" = "X-L$additional_libdir"; then
9436 if test -z "$haveit"; then
9437 if test -d "$additional_libdir"; then
9438 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9445 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
9446 if test "$enable_rpath" != no
; then
9448 for x
in $rpathdirs; do
9449 if test "X$x" = "X$dir"; then
9454 if test -z "$haveit"; then
9455 rpathdirs
="$rpathdirs $dir"
9458 for x
in $ltrpathdirs; do
9459 if test "X$x" = "X$dir"; then
9464 if test -z "$haveit"; then
9465 ltrpathdirs
="$ltrpathdirs $dir"
9470 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9473 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9476 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
9477 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9483 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
9484 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9490 if test "X$rpathdirs" != "X"; then
9491 if test -n "$hardcode_libdir_separator"; then
9493 for found_dir
in $rpathdirs; do
9494 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9496 acl_save_libdir
="$libdir"
9498 eval flag
=\"$hardcode_libdir_flag_spec\"
9499 libdir
="$acl_save_libdir"
9500 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
9502 for found_dir
in $rpathdirs; do
9503 acl_save_libdir
="$libdir"
9505 eval flag
=\"$hardcode_libdir_flag_spec\"
9506 libdir
="$acl_save_libdir"
9507 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
9511 if test "X$ltrpathdirs" != "X"; then
9512 for found_dir
in $ltrpathdirs; do
9513 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9523 am_save_CPPFLAGS
="$CPPFLAGS"
9525 for element
in $INCICONV; do
9527 for x
in $CPPFLAGS; do
9529 acl_save_prefix
="$prefix"
9530 prefix
="$acl_final_prefix"
9531 acl_save_exec_prefix
="$exec_prefix"
9532 exec_prefix
="$acl_final_exec_prefix"
9534 exec_prefix
="$acl_save_exec_prefix"
9535 prefix
="$acl_save_prefix"
9537 if test "X$x" = "X$element"; then
9542 if test -z "$haveit"; then
9543 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
9548 echo "$as_me:$LINENO: checking for iconv" >&5
9549 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
9550 if test "${am_cv_func_iconv+set}" = set; then
9551 echo $ECHO_N "(cached) $ECHO_C" >&6
9554 am_cv_func_iconv
="no, consider installing GNU libiconv"
9556 cat >conftest.
$ac_ext <<_ACEOF
9559 cat confdefs.h
>>conftest.
$ac_ext
9560 cat >>conftest.
$ac_ext <<_ACEOF
9561 /* end confdefs.h. */
9567 iconv_t cd = iconv_open("","");
9568 iconv(cd,NULL,NULL,NULL,NULL);
9574 rm -f conftest.
$ac_objext conftest
$ac_exeext
9575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9576 (eval $ac_link) 2>conftest.er1
9578 grep -v '^ *+' conftest.er1
>conftest.err
9580 cat conftest.err
>&5
9581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9582 (exit $ac_status); } &&
9583 { ac_try
='test -z "$ac_c_werror_flag"
9584 || test ! -s conftest.err'
9585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9589 (exit $ac_status); }; } &&
9590 { ac_try
='test -s conftest$ac_exeext'
9591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9595 (exit $ac_status); }; }; then
9596 am_cv_func_iconv
=yes
9598 echo "$as_me: failed program was:" >&5
9599 sed 's/^/| /' conftest.
$ac_ext >&5
9602 rm -f conftest.err conftest.
$ac_objext \
9603 conftest
$ac_exeext conftest.
$ac_ext
9604 if test "$am_cv_func_iconv" != yes; then
9605 am_save_LIBS
="$LIBS"
9606 LIBS
="$LIBS $LIBICONV"
9607 cat >conftest.
$ac_ext <<_ACEOF
9610 cat confdefs.h
>>conftest.
$ac_ext
9611 cat >>conftest.
$ac_ext <<_ACEOF
9612 /* end confdefs.h. */
9618 iconv_t cd = iconv_open("","");
9619 iconv(cd,NULL,NULL,NULL,NULL);
9625 rm -f conftest.
$ac_objext conftest
$ac_exeext
9626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9627 (eval $ac_link) 2>conftest.er1
9629 grep -v '^ *+' conftest.er1
>conftest.err
9631 cat conftest.err
>&5
9632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9633 (exit $ac_status); } &&
9634 { ac_try
='test -z "$ac_c_werror_flag"
9635 || test ! -s conftest.err'
9636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9640 (exit $ac_status); }; } &&
9641 { ac_try
='test -s conftest$ac_exeext'
9642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9646 (exit $ac_status); }; }; then
9648 am_cv_func_iconv
=yes
9650 echo "$as_me: failed program was:" >&5
9651 sed 's/^/| /' conftest.
$ac_ext >&5
9654 rm -f conftest.err conftest.
$ac_objext \
9655 conftest
$ac_exeext conftest.
$ac_ext
9656 LIBS
="$am_save_LIBS"
9660 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
9661 echo "${ECHO_T}$am_cv_func_iconv" >&6
9662 if test "$am_cv_func_iconv" = yes; then
9664 cat >>confdefs.h
<<\_ACEOF
9665 #define HAVE_ICONV 1
9669 if test "$am_cv_lib_iconv" = yes; then
9670 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
9671 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
9672 echo "$as_me:$LINENO: result: $LIBICONV" >&5
9673 echo "${ECHO_T}$LIBICONV" >&6
9675 CPPFLAGS
="$am_save_CPPFLAGS"
9682 if test "$am_cv_func_iconv" = yes; then
9683 echo "$as_me:$LINENO: checking for iconv declaration" >&5
9684 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
9685 if test "${am_cv_proto_iconv+set}" = set; then
9686 echo $ECHO_N "(cached) $ECHO_C" >&6
9689 cat >conftest.
$ac_ext <<_ACEOF
9692 cat confdefs.h
>>conftest.
$ac_ext
9693 cat >>conftest.
$ac_ext <<_ACEOF
9694 /* end confdefs.h. */
9702 #if defined(__STDC__) || defined(__cplusplus)
9703 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9716 rm -f conftest.
$ac_objext
9717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9718 (eval $ac_compile) 2>conftest.er1
9720 grep -v '^ *+' conftest.er1
>conftest.err
9722 cat conftest.err
>&5
9723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9724 (exit $ac_status); } &&
9725 { ac_try
='test -z "$ac_c_werror_flag"
9726 || test ! -s conftest.err'
9727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9731 (exit $ac_status); }; } &&
9732 { ac_try
='test -s conftest.$ac_objext'
9733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9737 (exit $ac_status); }; }; then
9738 am_cv_proto_iconv_arg1
=""
9740 echo "$as_me: failed program was:" >&5
9741 sed 's/^/| /' conftest.
$ac_ext >&5
9743 am_cv_proto_iconv_arg1
="const"
9745 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9746 am_cv_proto_iconv
="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
9749 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9750 echo "$as_me:$LINENO: result: ${ac_t:-
9751 }$am_cv_proto_iconv" >&5
9752 echo "${ECHO_T}${ac_t:-
9753 }$am_cv_proto_iconv" >&6
9755 cat >>confdefs.h
<<_ACEOF
9756 #define ICONV_CONST $am_cv_proto_iconv_arg1
9762 # checks for functions
9765 for ac_header
in stdlib.h unistd.h
9767 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9768 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9769 echo "$as_me:$LINENO: checking for $ac_header" >&5
9770 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9771 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9772 echo $ECHO_N "(cached) $ECHO_C" >&6
9774 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9775 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9777 # Is the header compilable?
9778 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9779 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9780 cat >conftest.
$ac_ext <<_ACEOF
9783 cat confdefs.h
>>conftest.
$ac_ext
9784 cat >>conftest.
$ac_ext <<_ACEOF
9785 /* end confdefs.h. */
9786 $ac_includes_default
9787 #include <$ac_header>
9789 rm -f conftest.
$ac_objext
9790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9791 (eval $ac_compile) 2>conftest.er1
9793 grep -v '^ *+' conftest.er1
>conftest.err
9795 cat conftest.err
>&5
9796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9797 (exit $ac_status); } &&
9798 { ac_try
='test -z "$ac_c_werror_flag"
9799 || test ! -s conftest.err'
9800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9804 (exit $ac_status); }; } &&
9805 { ac_try
='test -s conftest.$ac_objext'
9806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9810 (exit $ac_status); }; }; then
9811 ac_header_compiler
=yes
9813 echo "$as_me: failed program was:" >&5
9814 sed 's/^/| /' conftest.
$ac_ext >&5
9816 ac_header_compiler
=no
9818 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9819 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9820 echo "${ECHO_T}$ac_header_compiler" >&6
9822 # Is the header present?
9823 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9824 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9825 cat >conftest.
$ac_ext <<_ACEOF
9828 cat confdefs.h
>>conftest.
$ac_ext
9829 cat >>conftest.
$ac_ext <<_ACEOF
9830 /* end confdefs.h. */
9831 #include <$ac_header>
9833 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9834 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9836 grep -v '^ *+' conftest.er1
>conftest.err
9838 cat conftest.err
>&5
9839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9840 (exit $ac_status); } >/dev
/null
; then
9841 if test -s conftest.err
; then
9842 ac_cpp_err
=$ac_c_preproc_warn_flag
9843 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9850 if test -z "$ac_cpp_err"; then
9851 ac_header_preproc
=yes
9853 echo "$as_me: failed program was:" >&5
9854 sed 's/^/| /' conftest.
$ac_ext >&5
9856 ac_header_preproc
=no
9858 rm -f conftest.err conftest.
$ac_ext
9859 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9860 echo "${ECHO_T}$ac_header_preproc" >&6
9862 # So? What about this header?
9863 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9865 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9866 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9867 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9868 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9869 ac_header_preproc
=yes
9872 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9873 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9874 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9875 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9876 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9877 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9878 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9879 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9880 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9881 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9882 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9883 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9886 ## ------------------------------------------ ##
9887 ## Report this to the AC_PACKAGE_NAME lists. ##
9888 ## ------------------------------------------ ##
9891 sed "s/^/$as_me: WARNING: /" >&2
9894 echo "$as_me:$LINENO: checking for $ac_header" >&5
9895 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9896 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9897 echo $ECHO_N "(cached) $ECHO_C" >&6
9899 eval "$as_ac_Header=\$ac_header_preproc"
9901 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9902 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9905 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9906 cat >>confdefs.h
<<_ACEOF
9907 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9915 for ac_func
in getpagesize
9917 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9918 echo "$as_me:$LINENO: checking for $ac_func" >&5
9919 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9920 if eval "test \"\${$as_ac_var+set}\" = set"; then
9921 echo $ECHO_N "(cached) $ECHO_C" >&6
9923 cat >conftest.
$ac_ext <<_ACEOF
9926 cat confdefs.h
>>conftest.
$ac_ext
9927 cat >>conftest.
$ac_ext <<_ACEOF
9928 /* end confdefs.h. */
9929 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9930 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9931 #define $ac_func innocuous_$ac_func
9933 /* System header to define __stub macros and hopefully few prototypes,
9934 which can conflict with char $ac_func (); below.
9935 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9936 <limits.h> exists even on freestanding compilers. */
9939 # include <limits.h>
9941 # include <assert.h>
9946 /* Override any gcc2 internal prototype to avoid an error. */
9951 /* We use char because int might match the return type of a gcc2
9952 builtin and then its argument prototype would still apply. */
9954 /* The GNU C library defines this for functions which it implements
9955 to always fail with ENOSYS. Some functions are actually named
9956 something starting with __ and the normal name is an alias. */
9957 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9960 char (*f) () = $ac_func;
9969 return f != $ac_func;
9974 rm -f conftest.
$ac_objext conftest
$ac_exeext
9975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9976 (eval $ac_link) 2>conftest.er1
9978 grep -v '^ *+' conftest.er1
>conftest.err
9980 cat conftest.err
>&5
9981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9982 (exit $ac_status); } &&
9983 { ac_try
='test -z "$ac_c_werror_flag"
9984 || test ! -s conftest.err'
9985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9989 (exit $ac_status); }; } &&
9990 { ac_try
='test -s conftest$ac_exeext'
9991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9995 (exit $ac_status); }; }; then
9996 eval "$as_ac_var=yes"
9998 echo "$as_me: failed program was:" >&5
9999 sed 's/^/| /' conftest.
$ac_ext >&5
10001 eval "$as_ac_var=no"
10003 rm -f conftest.err conftest.
$ac_objext \
10004 conftest
$ac_exeext conftest.
$ac_ext
10006 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10007 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10008 if test `eval echo '${'$as_ac_var'}'` = yes; then
10009 cat >>confdefs.h
<<_ACEOF
10010 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10016 echo "$as_me:$LINENO: checking for working mmap" >&5
10017 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
10018 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10019 echo $ECHO_N "(cached) $ECHO_C" >&6
10021 if test "$cross_compiling" = yes; then
10022 ac_cv_func_mmap_fixed_mapped
=no
10024 cat >conftest.
$ac_ext <<_ACEOF
10027 cat confdefs.h
>>conftest.
$ac_ext
10028 cat >>conftest.
$ac_ext <<_ACEOF
10029 /* end confdefs.h. */
10030 $ac_includes_default
10031 /* malloc might have been renamed as rpl_malloc. */
10034 /* Thanks to Mike Haertel and Jim Avera for this test.
10035 Here is a matrix of mmap possibilities:
10036 mmap private not fixed
10037 mmap private fixed at somewhere currently unmapped
10038 mmap private fixed at somewhere already mapped
10039 mmap shared not fixed
10040 mmap shared fixed at somewhere currently unmapped
10041 mmap shared fixed at somewhere already mapped
10042 For private mappings, we should verify that changes cannot be read()
10043 back from the file, nor mmap's back from the file at a different
10044 address. (There have been systems where private was not correctly
10045 implemented like the infamous i386 svr4.0, and systems where the
10046 VM page cache was not coherent with the file system buffer cache
10047 like early versions of FreeBSD and possibly contemporary NetBSD.)
10048 For shared mappings, we should conversely verify that changes get
10049 propagated back to all the places they're supposed to be.
10051 Grep wants private fixed already mapped.
10052 The main things grep needs to know about mmap are:
10053 * does it exist and is it safe to write into the mmap'd area
10054 * how to use it (BSD variants) */
10057 #include <sys/mman.h>
10059 #if !STDC_HEADERS && !HAVE_STDLIB_H
10063 /* This mess was copied from the GNU getpagesize.h. */
10064 #if !HAVE_GETPAGESIZE
10065 /* Assume that all systems that can run configure have sys/param.h. */
10066 # if !HAVE_SYS_PARAM_H
10067 # define HAVE_SYS_PARAM_H 1
10070 # ifdef _SC_PAGESIZE
10071 # define getpagesize() sysconf(_SC_PAGESIZE)
10072 # else /* no _SC_PAGESIZE */
10073 # if HAVE_SYS_PARAM_H
10074 # include <sys/param.h>
10075 # ifdef EXEC_PAGESIZE
10076 # define getpagesize() EXEC_PAGESIZE
10077 # else /* no EXEC_PAGESIZE */
10079 # define getpagesize() NBPG * CLSIZE
10082 # endif /* no CLSIZE */
10083 # else /* no NBPG */
10085 # define getpagesize() NBPC
10086 # else /* no NBPC */
10088 # define getpagesize() PAGESIZE
10089 # endif /* PAGESIZE */
10090 # endif /* no NBPC */
10091 # endif /* no NBPG */
10092 # endif /* no EXEC_PAGESIZE */
10093 # else /* no HAVE_SYS_PARAM_H */
10094 # define getpagesize() 8192 /* punt totally */
10095 # endif /* no HAVE_SYS_PARAM_H */
10096 # endif /* no _SC_PAGESIZE */
10098 #endif /* no HAVE_GETPAGESIZE */
10103 char *data, *data2, *data3;
10107 pagesize = getpagesize ();
10109 /* First, make a file with some known garbage in it. */
10110 data = (char *) malloc (pagesize);
10113 for (i = 0; i < pagesize; ++i)
10114 *(data + i) = rand ();
10116 fd = creat ("conftest.mmap", 0600);
10119 if (write (fd, data, pagesize) != pagesize)
10123 /* Next, try to mmap the file at a fixed address which already has
10124 something else allocated at it. If we can, also make sure that
10125 we see the same garbage. */
10126 fd = open ("conftest.mmap", O_RDWR);
10129 data2 = (char *) malloc (2 * pagesize);
10132 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10133 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10134 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10136 for (i = 0; i < pagesize; ++i)
10137 if (*(data + i) != *(data2 + i))
10140 /* Finally, make sure that changes to the mapped area do not
10141 percolate back to the file as seen by read(). (This is a bug on
10142 some variants of i386 svr4.0.) */
10143 for (i = 0; i < pagesize; ++i)
10144 *(data2 + i) = *(data2 + i) + 1;
10145 data3 = (char *) malloc (pagesize);
10148 if (read (fd, data3, pagesize) != pagesize)
10150 for (i = 0; i < pagesize; ++i)
10151 if (*(data + i) != *(data3 + i))
10157 rm -f conftest
$ac_exeext
10158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10159 (eval $ac_link) 2>&5
10161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10162 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10164 (eval $ac_try) 2>&5
10166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10167 (exit $ac_status); }; }; then
10168 ac_cv_func_mmap_fixed_mapped
=yes
10170 echo "$as_me: program exited with status $ac_status" >&5
10171 echo "$as_me: failed program was:" >&5
10172 sed 's/^/| /' conftest.
$ac_ext >&5
10174 ( exit $ac_status )
10175 ac_cv_func_mmap_fixed_mapped
=no
10177 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10180 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10181 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
10182 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10184 cat >>confdefs.h
<<\_ACEOF
10185 #define HAVE_MMAP 1
10189 rm -f conftest.mmap
10192 LIBS
="$LIBS $LIBC $LIBM"
10201 for ac_func
in fmod getcwd putenv snprintf strcasecmp \
10202 strerror strncasecmp strtol
10204 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10205 echo "$as_me:$LINENO: checking for $ac_func" >&5
10206 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10207 if eval "test \"\${$as_ac_var+set}\" = set"; then
10208 echo $ECHO_N "(cached) $ECHO_C" >&6
10210 cat >conftest.
$ac_ext <<_ACEOF
10213 cat confdefs.h
>>conftest.
$ac_ext
10214 cat >>conftest.
$ac_ext <<_ACEOF
10215 /* end confdefs.h. */
10216 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10217 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10218 #define $ac_func innocuous_$ac_func
10220 /* System header to define __stub macros and hopefully few prototypes,
10221 which can conflict with char $ac_func (); below.
10222 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10223 <limits.h> exists even on freestanding compilers. */
10226 # include <limits.h>
10228 # include <assert.h>
10233 /* Override any gcc2 internal prototype to avoid an error. */
10238 /* We use char because int might match the return type of a gcc2
10239 builtin and then its argument prototype would still apply. */
10241 /* The GNU C library defines this for functions which it implements
10242 to always fail with ENOSYS. Some functions are actually named
10243 something starting with __ and the normal name is an alias. */
10244 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10247 char (*f) () = $ac_func;
10256 return f != $ac_func;
10261 rm -f conftest.
$ac_objext conftest
$ac_exeext
10262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10263 (eval $ac_link) 2>conftest.er1
10265 grep -v '^ *+' conftest.er1
>conftest.err
10267 cat conftest.err
>&5
10268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10269 (exit $ac_status); } &&
10270 { ac_try
='test -z "$ac_c_werror_flag"
10271 || test ! -s conftest.err'
10272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10273 (eval $ac_try) 2>&5
10275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10276 (exit $ac_status); }; } &&
10277 { ac_try
='test -s conftest$ac_exeext'
10278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10279 (eval $ac_try) 2>&5
10281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10282 (exit $ac_status); }; }; then
10283 eval "$as_ac_var=yes"
10285 echo "$as_me: failed program was:" >&5
10286 sed 's/^/| /' conftest.
$ac_ext >&5
10288 eval "$as_ac_var=no"
10290 rm -f conftest.err conftest.
$ac_objext \
10291 conftest
$ac_exeext conftest.
$ac_ext
10293 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10294 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10295 if test `eval echo '${'$as_ac_var'}'` = yes; then
10296 cat >>confdefs.h
<<_ACEOF
10297 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10302 "$ac_func.$ac_objext" | \
10303 *" $ac_func.$ac_objext" | \
10304 "$ac_func.$ac_objext "* | \
10305 *" $ac_func.$ac_objext "* ) ;;
10306 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext" ;;
10313 # vsnprintf is in the same source file as snprintf
10315 for ac_func
in vsnprintf
10317 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10318 echo "$as_me:$LINENO: checking for $ac_func" >&5
10319 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10320 if eval "test \"\${$as_ac_var+set}\" = set"; then
10321 echo $ECHO_N "(cached) $ECHO_C" >&6
10323 cat >conftest.
$ac_ext <<_ACEOF
10326 cat confdefs.h
>>conftest.
$ac_ext
10327 cat >>conftest.
$ac_ext <<_ACEOF
10328 /* end confdefs.h. */
10329 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10330 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10331 #define $ac_func innocuous_$ac_func
10333 /* System header to define __stub macros and hopefully few prototypes,
10334 which can conflict with char $ac_func (); below.
10335 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10336 <limits.h> exists even on freestanding compilers. */
10339 # include <limits.h>
10341 # include <assert.h>
10346 /* Override any gcc2 internal prototype to avoid an error. */
10351 /* We use char because int might match the return type of a gcc2
10352 builtin and then its argument prototype would still apply. */
10354 /* The GNU C library defines this for functions which it implements
10355 to always fail with ENOSYS. Some functions are actually named
10356 something starting with __ and the normal name is an alias. */
10357 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10360 char (*f) () = $ac_func;
10369 return f != $ac_func;
10374 rm -f conftest.
$ac_objext conftest
$ac_exeext
10375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10376 (eval $ac_link) 2>conftest.er1
10378 grep -v '^ *+' conftest.er1
>conftest.err
10380 cat conftest.err
>&5
10381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10382 (exit $ac_status); } &&
10383 { ac_try
='test -z "$ac_c_werror_flag"
10384 || test ! -s conftest.err'
10385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10386 (eval $ac_try) 2>&5
10388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10389 (exit $ac_status); }; } &&
10390 { ac_try
='test -s conftest$ac_exeext'
10391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10392 (eval $ac_try) 2>&5
10394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10395 (exit $ac_status); }; }; then
10396 eval "$as_ac_var=yes"
10398 echo "$as_me: failed program was:" >&5
10399 sed 's/^/| /' conftest.
$ac_ext >&5
10401 eval "$as_ac_var=no"
10403 rm -f conftest.err conftest.
$ac_objext \
10404 conftest
$ac_exeext conftest.
$ac_ext
10406 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10407 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10408 if test `eval echo '${'$as_ac_var'}'` = yes; then
10409 cat >>confdefs.h
<<_ACEOF
10410 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10415 "snprintf.$ac_objext" | \
10416 *" snprintf.$ac_objext" | \
10417 "snprintf.$ac_objext "* | \
10418 *" snprintf.$ac_objext "* ) ;;
10419 *) LIBOBJS
="$LIBOBJS snprintf.$ac_objext" ;;
10432 for ac_func
in gettimeofday isatty
kill rename setlocale strsep
10434 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10435 echo "$as_me:$LINENO: checking for $ac_func" >&5
10436 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10437 if eval "test \"\${$as_ac_var+set}\" = set"; then
10438 echo $ECHO_N "(cached) $ECHO_C" >&6
10440 cat >conftest.
$ac_ext <<_ACEOF
10443 cat confdefs.h
>>conftest.
$ac_ext
10444 cat >>conftest.
$ac_ext <<_ACEOF
10445 /* end confdefs.h. */
10446 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10447 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10448 #define $ac_func innocuous_$ac_func
10450 /* System header to define __stub macros and hopefully few prototypes,
10451 which can conflict with char $ac_func (); below.
10452 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10453 <limits.h> exists even on freestanding compilers. */
10456 # include <limits.h>
10458 # include <assert.h>
10463 /* Override any gcc2 internal prototype to avoid an error. */
10468 /* We use char because int might match the return type of a gcc2
10469 builtin and then its argument prototype would still apply. */
10471 /* The GNU C library defines this for functions which it implements
10472 to always fail with ENOSYS. Some functions are actually named
10473 something starting with __ and the normal name is an alias. */
10474 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10477 char (*f) () = $ac_func;
10486 return f != $ac_func;
10491 rm -f conftest.
$ac_objext conftest
$ac_exeext
10492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10493 (eval $ac_link) 2>conftest.er1
10495 grep -v '^ *+' conftest.er1
>conftest.err
10497 cat conftest.err
>&5
10498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10499 (exit $ac_status); } &&
10500 { ac_try
='test -z "$ac_c_werror_flag"
10501 || test ! -s conftest.err'
10502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10503 (eval $ac_try) 2>&5
10505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10506 (exit $ac_status); }; } &&
10507 { ac_try
='test -s conftest$ac_exeext'
10508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10509 (eval $ac_try) 2>&5
10511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10512 (exit $ac_status); }; }; then
10513 eval "$as_ac_var=yes"
10515 echo "$as_me: failed program was:" >&5
10516 sed 's/^/| /' conftest.
$ac_ext >&5
10518 eval "$as_ac_var=no"
10520 rm -f conftest.err conftest.
$ac_objext \
10521 conftest
$ac_exeext conftest.
$ac_ext
10523 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10524 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10525 if test `eval echo '${'$as_ac_var'}'` = yes; then
10526 cat >>confdefs.h
<<_ACEOF
10527 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10533 echo "$as_me:$LINENO: checking for mkstemp" >&5
10534 echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
10536 ac_cpp
='$CXXCPP $CPPFLAGS'
10537 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10538 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10539 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
10542 cat >conftest.
$ac_ext <<_ACEOF
10546 cat confdefs.h
>>conftest.
$ac_ext
10547 cat >>conftest.
$ac_ext <<_ACEOF
10548 /* end confdefs.h. */
10551 #include <stdlib.h>
10552 #include <unistd.h>
10569 rm -f conftest.
$ac_objext conftest
$ac_exeext
10570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10571 (eval $ac_link) 2>conftest.er1
10573 grep -v '^ *+' conftest.er1
>conftest.err
10575 cat conftest.err
>&5
10576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10577 (exit $ac_status); } &&
10578 { ac_try
='test -z "$ac_cxx_werror_flag"
10579 || test ! -s conftest.err'
10580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10581 (eval $ac_try) 2>&5
10583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10584 (exit $ac_status); }; } &&
10585 { ac_try
='test -s conftest$ac_exeext'
10586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10587 (eval $ac_try) 2>&5
10589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10590 (exit $ac_status); }; }; then
10591 echo "$as_me:$LINENO: result: yes" >&5
10592 echo "${ECHO_T}yes" >&6
10594 cat >>confdefs.h
<<\_ACEOF
10595 #define HAVE_MKSTEMP 1
10599 echo "$as_me: failed program was:" >&5
10600 sed 's/^/| /' conftest.
$ac_ext >&5
10602 echo "$as_me:$LINENO: result: no" >&5
10603 echo "${ECHO_T}no" >&6
10605 "mkstemp.$ac_objext" | \
10606 *" mkstemp.$ac_objext" | \
10607 "mkstemp.$ac_objext "* | \
10608 *" mkstemp.$ac_objext "* ) ;;
10609 *) LIBOBJS
="$LIBOBJS mkstemp.$ac_objext" ;;
10613 rm -f conftest.err conftest.
$ac_objext \
10614 conftest
$ac_exeext conftest.
$ac_ext
10616 ac_cpp
='$CPP $CPPFLAGS'
10617 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10618 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10619 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
10621 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
10622 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
10623 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
10624 echo $ECHO_N "(cached) $ECHO_C" >&6
10626 cat >conftest.
$ac_ext <<_ACEOF
10629 cat confdefs.h
>>conftest.
$ac_ext
10630 cat >>conftest.
$ac_ext <<_ACEOF
10631 /* end confdefs.h. */
10632 $ac_includes_default
10636 #ifndef sys_siglist
10637 char *p = (char *) sys_siglist;
10644 rm -f conftest.
$ac_objext
10645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10646 (eval $ac_compile) 2>conftest.er1
10648 grep -v '^ *+' conftest.er1
>conftest.err
10650 cat conftest.err
>&5
10651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10652 (exit $ac_status); } &&
10653 { ac_try
='test -z "$ac_c_werror_flag"
10654 || test ! -s conftest.err'
10655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10656 (eval $ac_try) 2>&5
10658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10659 (exit $ac_status); }; } &&
10660 { ac_try
='test -s conftest.$ac_objext'
10661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10662 (eval $ac_try) 2>&5
10664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10665 (exit $ac_status); }; }; then
10666 ac_cv_have_decl_sys_siglist
=yes
10668 echo "$as_me: failed program was:" >&5
10669 sed 's/^/| /' conftest.
$ac_ext >&5
10671 ac_cv_have_decl_sys_siglist
=no
10673 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10675 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
10676 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
10677 if test $ac_cv_have_decl_sys_siglist = yes; then
10679 cat >>confdefs.h
<<_ACEOF
10680 #define HAVE_DECL_SYS_SIGLIST 1
10685 cat >>confdefs.h
<<_ACEOF
10686 #define HAVE_DECL_SYS_SIGLIST 0
10691 echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
10692 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
10693 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
10694 echo $ECHO_N "(cached) $ECHO_C" >&6
10696 cat >conftest.
$ac_ext <<_ACEOF
10699 cat confdefs.h
>>conftest.
$ac_ext
10700 cat >>conftest.
$ac_ext <<_ACEOF
10701 /* end confdefs.h. */
10702 $ac_includes_default
10706 #ifndef getc_unlocked
10707 char *p = (char *) getc_unlocked;
10714 rm -f conftest.
$ac_objext
10715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10716 (eval $ac_compile) 2>conftest.er1
10718 grep -v '^ *+' conftest.er1
>conftest.err
10720 cat conftest.err
>&5
10721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10722 (exit $ac_status); } &&
10723 { ac_try
='test -z "$ac_c_werror_flag"
10724 || test ! -s conftest.err'
10725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10726 (eval $ac_try) 2>&5
10728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10729 (exit $ac_status); }; } &&
10730 { ac_try
='test -s conftest.$ac_objext'
10731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10732 (eval $ac_try) 2>&5
10734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10735 (exit $ac_status); }; }; then
10736 ac_cv_have_decl_getc_unlocked
=yes
10738 echo "$as_me: failed program was:" >&5
10739 sed 's/^/| /' conftest.
$ac_ext >&5
10741 ac_cv_have_decl_getc_unlocked
=no
10743 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10745 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
10746 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
10747 if test $ac_cv_have_decl_getc_unlocked = yes; then
10749 cat >>confdefs.h
<<_ACEOF
10750 #define HAVE_DECL_GETC_UNLOCKED 1
10755 cat >>confdefs.h
<<_ACEOF
10756 #define HAVE_DECL_GETC_UNLOCKED 0
10764 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
10765 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
10766 if test "${am_cv_langinfo_codeset+set}" = set; then
10767 echo $ECHO_N "(cached) $ECHO_C" >&6
10769 cat >conftest.
$ac_ext <<_ACEOF
10772 cat confdefs.h
>>conftest.
$ac_ext
10773 cat >>conftest.
$ac_ext <<_ACEOF
10774 /* end confdefs.h. */
10775 #include <langinfo.h>
10779 char* cs = nl_langinfo(CODESET);
10784 rm -f conftest.
$ac_objext conftest
$ac_exeext
10785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10786 (eval $ac_link) 2>conftest.er1
10788 grep -v '^ *+' conftest.er1
>conftest.err
10790 cat conftest.err
>&5
10791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10792 (exit $ac_status); } &&
10793 { ac_try
='test -z "$ac_c_werror_flag"
10794 || test ! -s conftest.err'
10795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10796 (eval $ac_try) 2>&5
10798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10799 (exit $ac_status); }; } &&
10800 { ac_try
='test -s conftest$ac_exeext'
10801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10802 (eval $ac_try) 2>&5
10804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10805 (exit $ac_status); }; }; then
10806 am_cv_langinfo_codeset
=yes
10808 echo "$as_me: failed program was:" >&5
10809 sed 's/^/| /' conftest.
$ac_ext >&5
10811 am_cv_langinfo_codeset
=no
10813 rm -f conftest.err conftest.
$ac_objext \
10814 conftest
$ac_exeext conftest.
$ac_ext
10817 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
10818 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
10819 if test $am_cv_langinfo_codeset = yes; then
10821 cat >>confdefs.h
<<\_ACEOF
10822 #define HAVE_LANGINFO_CODESET 1
10828 # checks for compiler characteristics
10830 ac_cpp
='$CXXCPP $CPPFLAGS'
10831 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10832 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10833 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
10835 echo "$as_me:$LINENO: checking whether ANSI array delete syntax is supported" >&5
10836 echo $ECHO_N "checking whether ANSI array delete syntax is supported... $ECHO_C" >&6
10837 cat >conftest.
$ac_ext <<_ACEOF
10841 cat confdefs.h
>>conftest.
$ac_ext
10842 cat >>conftest.
$ac_ext <<_ACEOF
10843 /* end confdefs.h. */
10850 char *p = new char[5];
10859 rm -f conftest.
$ac_objext
10860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10861 (eval $ac_compile) 2>conftest.er1
10863 grep -v '^ *+' conftest.er1
>conftest.err
10865 cat conftest.err
>&5
10866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10867 (exit $ac_status); } &&
10868 { ac_try
='test -z "$ac_cxx_werror_flag"
10869 || test ! -s conftest.err'
10870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10871 (eval $ac_try) 2>&5
10873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10874 (exit $ac_status); }; } &&
10875 { ac_try
='test -s conftest.$ac_objext'
10876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10877 (eval $ac_try) 2>&5
10879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10880 (exit $ac_status); }; }; then
10881 echo "$as_me:$LINENO: result: yes" >&5
10882 echo "${ECHO_T}yes" >&6
10884 echo "$as_me: failed program was:" >&5
10885 sed 's/^/| /' conftest.
$ac_ext >&5
10887 echo "$as_me:$LINENO: result: no" >&5
10888 echo "${ECHO_T}no" >&6
10890 cat >>confdefs.h
<<\_ACEOF
10891 #define ARRAY_DELETE_NEEDS_SIZE 1
10895 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10897 ac_cpp
='$CPP $CPPFLAGS'
10898 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10899 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10900 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
10903 ac_cpp
='$CXXCPP $CPPFLAGS'
10904 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10905 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10906 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
10908 echo "$as_me:$LINENO: checking traditional preprocessor" >&5
10909 echo $ECHO_N "checking traditional preprocessor... $ECHO_C" >&6
10910 cat >conftest.
$ac_ext <<_ACEOF
10914 cat confdefs.h
>>conftest.
$ac_ext
10915 cat >>conftest.
$ac_ext <<_ACEOF
10916 /* end confdefs.h. */
10919 #define name2(a, b) a/**/b
10927 int name2(foo, bar);
10935 rm -f conftest.
$ac_objext
10936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10937 (eval $ac_compile) 2>conftest.er1
10939 grep -v '^ *+' conftest.er1
>conftest.err
10941 cat conftest.err
>&5
10942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10943 (exit $ac_status); } &&
10944 { ac_try
='test -z "$ac_cxx_werror_flag"
10945 || test ! -s conftest.err'
10946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10947 (eval $ac_try) 2>&5
10949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10950 (exit $ac_status); }; } &&
10951 { ac_try
='test -s conftest.$ac_objext'
10952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10953 (eval $ac_try) 2>&5
10955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10956 (exit $ac_status); }; }; then
10957 echo "$as_me:$LINENO: result: yes" >&5
10958 echo "${ECHO_T}yes" >&6
10960 cat >>confdefs.h
<<\_ACEOF
10961 #define TRADITIONAL_CPP 1
10965 echo "$as_me: failed program was:" >&5
10966 sed 's/^/| /' conftest.
$ac_ext >&5
10968 echo "$as_me:$LINENO: result: no" >&5
10969 echo "${ECHO_T}no" >&6
10971 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10973 ac_cpp
='$CPP $CPPFLAGS'
10974 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10975 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10976 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
10979 # checks for operating system services
10980 echo "$as_me:$LINENO: checking w_coredump" >&5
10981 echo $ECHO_N "checking w_coredump... $ECHO_C" >&6
10982 if test "$cross_compiling" = yes; then
10983 echo "$as_me:$LINENO: result: no" >&5
10984 echo "${ECHO_T}no" >&6
10986 cat >conftest.
$ac_ext <<_ACEOF
10990 cat confdefs.h
>>conftest.
$ac_ext
10991 cat >>conftest.
$ac_ext <<_ACEOF
10992 /* end confdefs.h. */
10995 #include <sys/types.h>
10996 #include <sys/wait.h>
11010 ((union wait *)&i)->w_coredump = 1;
11021 rm -f conftest
$ac_exeext
11022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11023 (eval $ac_link) 2>&5
11025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11026 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11028 (eval $ac_try) 2>&5
11030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11031 (exit $ac_status); }; }; then
11032 echo "$as_me:$LINENO: result: yes" >&5
11033 echo "${ECHO_T}yes" >&6
11035 cat >>confdefs.h
<<\_ACEOF
11036 #define WCOREFLAG 0200
11040 echo "$as_me: program exited with status $ac_status" >&5
11041 echo "$as_me: failed program was:" >&5
11042 sed 's/^/| /' conftest.
$ac_ext >&5
11044 ( exit $ac_status )
11045 echo "$as_me:$LINENO: result: no" >&5
11046 echo "${ECHO_T}no" >&6
11048 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11051 # other random stuff
11052 echo "$as_me:$LINENO: checking default value for grops -b option" >&5
11053 echo $ECHO_N "checking default value for grops -b option... $ECHO_C" >&6
11054 test -n "${BROKEN_SPOOLER_FLAGS}" || BROKEN_SPOOLER_FLAGS
=0
11055 echo "$as_me:$LINENO: result: $BROKEN_SPOOLER_FLAGS" >&5
11056 echo "${ECHO_T}$BROKEN_SPOOLER_FLAGS" >&6
11058 echo "$as_me:$LINENO: checking default paper size" >&5
11059 echo $ECHO_N "checking default paper size... $ECHO_C" >&6
11060 groff_prefix
=$prefix
11061 test "x$prefix" = "xNONE" && groff_prefix
=$ac_default_prefix
11062 if test -z "$PAGE"; then
11064 if test -r $groff_prefix/share
/groff
/font
/devps
/DESC
; then
11065 descfile
=$groff_prefix/share
/groff
/font
/devps
/DESC
11066 elif test -r $groff_prefix/lib
/groff
/font
/devps
/DESC
; then
11067 descfile
=$groff_prefix/lib
/groff
/font
/devps
/DESC
11069 for f
in $groff_prefix/share
/groff
/*/font
/devps
/DESC
; do
11070 if test -r $f; then
11077 if test -n "$descfile"; then
11078 if grep '^paperlength[ ]\+841890' $descfile >/dev
/null
2>&1; then
11080 elif grep '^papersize[ ]\+[aA]4' $descfile >/dev
/null
2>&1; then
11086 if test -z "$PAGE"; then
11087 dom
=`awk '($1 == "dom" || $1 == "search") { print $2; exit}' \
11088 /etc/resolv.conf 2>/dev/null`
11089 if test -z "$dom"; then
11090 dom
=`(domainname) 2>/dev/null | tr -d '+'`
11091 if test -z "$dom" \
11092 ||
test "$dom" = '(none)'; then
11093 dom
=`(hostname) 2>/dev/null | grep '\.'`
11096 # If the top-level domain is two letters and it's not `us' or `ca'
11097 # then they probably use A4 paper.
11099 *.
[Uu
][Ss
]|
*.
[Cc
][Aa
])
11101 *.
[A-Za-z
][A-Za-z
])
11106 test -n "$PAGE" || PAGE
=letter
11107 if test "x$PAGE" = "xA4"; then
11109 cat >>confdefs.h
<<\_ACEOF
11114 echo "$as_me:$LINENO: result: $PAGE" >&5
11115 echo "${ECHO_T}$PAGE" >&6
11117 echo "$as_me:$LINENO: checking for existing troff installation" >&5
11118 echo $ECHO_N "checking for existing troff installation... $ECHO_C" >&6
11119 if test "x`(echo .tm '|n(.g' | tr '|' '\\\\' | troff -z -i 2>&1) 2>/dev/null`" = x0
; then
11120 echo "$as_me:$LINENO: result: yes" >&5
11121 echo "${ECHO_T}yes" >&6
11124 echo "$as_me:$LINENO: result: no" >&5
11125 echo "${ECHO_T}no" >&6
11129 echo "$as_me:$LINENO: checking for prefix of system macro packages" >&5
11130 echo $ECHO_N "checking for prefix of system macro packages... $ECHO_C" >&6
11132 sys_tmac_file_prefix
=
11133 for d
in /usr
/share
/lib
/tmac
/usr
/lib
/tmac
; do
11134 for t
in "" tmac.
; do
11135 for m
in an s m
; do
11137 if test -z "$sys_tmac_prefix" \
11139 && grep '^\.if' $f >/dev
/null
2>&1; then
11140 sys_tmac_prefix
=$d/$t
11141 sys_tmac_file_prefix
=$t
11146 echo "$as_me:$LINENO: result: $sys_tmac_prefix" >&5
11147 echo "${ECHO_T}$sys_tmac_prefix" >&6
11150 echo "$as_me:$LINENO: checking which system macro packages should be made available" >&5
11151 echo $ECHO_N "checking which system macro packages should be made available... $ECHO_C" >&6
11153 if test "x$sys_tmac_file_prefix" = "xtmac."; then
11154 for f
in $sys_tmac_prefix*; do
11155 suff
=`echo $f | sed -e "s;$sys_tmac_prefix;;"`
11160 grep "Copyright.*Free Software Foundation" $f >/dev
/null \
11161 || tmac_wrap
="$tmac_wrap $suff" ;;
11164 elif test -n "$sys_tmac_prefix"; then
11165 files
=`echo $sys_tmac_prefix*`
11166 grep "\\.so" $files >conftest.sol
11167 for f
in $files; do
11169 ${sys_tmac_prefix}e
)
11177 if grep "\\.so.*/$b\$" conftest.sol
>/dev
/null \
11178 ||
grep -l "Copyright.*Free Software Foundation" $f >/dev
/null
; then
11181 suff
=`echo $f | sed -e "s;$sys_tmac_prefix;;"`
11186 tmac_wrap
="$tmac_wrap $suff" ;;
11193 echo "$as_me:$LINENO: result: $tmac_wrap" >&5
11194 echo "${ECHO_T}$tmac_wrap" >&6
11196 echo "$as_me:$LINENO: checking separator character to use in groff search paths" >&5
11197 echo $ECHO_N "checking separator character to use in groff search paths... $ECHO_C" >&6
11198 cp ${srcdir}/src
/include
/nonposix.h conftest.h
11199 cat >conftest.
$ac_ext <<_ACEOF
11203 cat confdefs.h
>>conftest.
$ac_ext
11204 cat >>conftest.
$ac_ext <<_ACEOF
11205 /* end confdefs.h. */
11209 #include "conftest.h"
11217 #if PATH_SEP_CHAR == ';'
11218 make an error "Path separator is ';'"
11227 rm -f conftest.
$ac_objext
11228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11229 (eval $ac_compile) 2>conftest.er1
11231 grep -v '^ *+' conftest.er1
>conftest.err
11233 cat conftest.err
>&5
11234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11235 (exit $ac_status); } &&
11236 { ac_try
='test -z "$ac_c_werror_flag"
11237 || test ! -s conftest.err'
11238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11239 (eval $ac_try) 2>&5
11241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11242 (exit $ac_status); }; } &&
11243 { ac_try
='test -s conftest.$ac_objext'
11244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11245 (eval $ac_try) 2>&5
11247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11248 (exit $ac_status); }; }; then
11249 GROFF_PATH_SEPARATOR
=":"
11251 echo "$as_me: failed program was:" >&5
11252 sed 's/^/| /' conftest.
$ac_ext >&5
11254 GROFF_PATH_SEPARATOR
=";"
11256 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11257 echo "$as_me:$LINENO: result: $GROFF_PATH_SEPARATOR" >&5
11258 echo "${ECHO_T}$GROFF_PATH_SEPARATOR" >&6
11261 # Check whether --with-alt-gs or --without-alt-gs was given.
11262 if test "${with_alt_gs+set}" = set; then
11263 withval
="$with_alt_gs"
11264 ALT_GHOSTSCRIPT_PROGS
="$withval"
11266 ALT_GHOSTSCRIPT_PROGS
="gs gswin32c gsos2"
11271 # Check whether --with-gs or --without-gs was given.
11272 if test "${with_gs+set}" = set; then
11274 GHOSTSCRIPT
=$withval
11276 if test -n "$ac_tool_prefix"; then
11277 for ac_prog
in $ALT_GHOSTSCRIPT_PROGS
11279 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11280 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
11281 echo "$as_me:$LINENO: checking for $ac_word" >&5
11282 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11283 if test "${ac_cv_prog_GHOSTSCRIPT+set}" = set; then
11284 echo $ECHO_N "(cached) $ECHO_C" >&6
11286 if test -n "$GHOSTSCRIPT"; then
11287 ac_cv_prog_GHOSTSCRIPT
="$GHOSTSCRIPT" # Let the user override the test.
11289 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11290 for as_dir
in $PATH
11293 test -z "$as_dir" && as_dir
=.
11294 for ac_exec_ext
in '' $ac_executable_extensions; do
11295 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11296 ac_cv_prog_GHOSTSCRIPT
="$ac_tool_prefix$ac_prog"
11297 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11305 GHOSTSCRIPT
=$ac_cv_prog_GHOSTSCRIPT
11306 if test -n "$GHOSTSCRIPT"; then
11307 echo "$as_me:$LINENO: result: $GHOSTSCRIPT" >&5
11308 echo "${ECHO_T}$GHOSTSCRIPT" >&6
11310 echo "$as_me:$LINENO: result: no" >&5
11311 echo "${ECHO_T}no" >&6
11314 test -n "$GHOSTSCRIPT" && break
11317 if test -z "$GHOSTSCRIPT"; then
11318 ac_ct_GHOSTSCRIPT
=$GHOSTSCRIPT
11319 for ac_prog
in $ALT_GHOSTSCRIPT_PROGS
11321 # Extract the first word of "$ac_prog", so it can be a program name with args.
11322 set dummy
$ac_prog; ac_word
=$2
11323 echo "$as_me:$LINENO: checking for $ac_word" >&5
11324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11325 if test "${ac_cv_prog_ac_ct_GHOSTSCRIPT+set}" = set; then
11326 echo $ECHO_N "(cached) $ECHO_C" >&6
11328 if test -n "$ac_ct_GHOSTSCRIPT"; then
11329 ac_cv_prog_ac_ct_GHOSTSCRIPT
="$ac_ct_GHOSTSCRIPT" # Let the user override the test.
11331 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11332 for as_dir
in $PATH
11335 test -z "$as_dir" && as_dir
=.
11336 for ac_exec_ext
in '' $ac_executable_extensions; do
11337 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11338 ac_cv_prog_ac_ct_GHOSTSCRIPT
="$ac_prog"
11339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11347 ac_ct_GHOSTSCRIPT
=$ac_cv_prog_ac_ct_GHOSTSCRIPT
11348 if test -n "$ac_ct_GHOSTSCRIPT"; then
11349 echo "$as_me:$LINENO: result: $ac_ct_GHOSTSCRIPT" >&5
11350 echo "${ECHO_T}$ac_ct_GHOSTSCRIPT" >&6
11352 echo "$as_me:$LINENO: result: no" >&5
11353 echo "${ECHO_T}no" >&6
11356 test -n "$ac_ct_GHOSTSCRIPT" && break
11359 if test "x$ac_ct_GHOSTSCRIPT" = x
; then
11360 GHOSTSCRIPT
="missing"
11362 if test "$build" != "$host"; then
11363 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11364 whose name does not start with the host triplet. If you think this
11365 configuration is useful to you, please write to autoconf@gnu.org." >&5
11366 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11367 whose name does not start with the host triplet. If you think this
11368 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11370 GHOSTSCRIPT
=$ac_ct_GHOSTSCRIPT
11375 test "$GHOSTSCRIPT" = "no" && GHOSTSCRIPT
=missing
11378 make_install_html
=install_html
11381 # Extract the first word of "pnmcut", so it can be a program name with args.
11382 set dummy pnmcut
; ac_word
=$2
11383 echo "$as_me:$LINENO: checking for $ac_word" >&5
11384 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11385 if test "${ac_cv_prog_pnmcut+set}" = set; then
11386 echo $ECHO_N "(cached) $ECHO_C" >&6
11388 if test -n "$pnmcut"; then
11389 ac_cv_prog_pnmcut
="$pnmcut" # Let the user override the test.
11391 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11392 for as_dir
in $PATH
11395 test -z "$as_dir" && as_dir
=.
11396 for ac_exec_ext
in '' $ac_executable_extensions; do
11397 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11398 ac_cv_prog_pnmcut
="found"
11399 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11405 test -z "$ac_cv_prog_pnmcut" && ac_cv_prog_pnmcut
="missing"
11408 pnmcut
=$ac_cv_prog_pnmcut
11409 if test -n "$pnmcut"; then
11410 echo "$as_me:$LINENO: result: $pnmcut" >&5
11411 echo "${ECHO_T}$pnmcut" >&6
11413 echo "$as_me:$LINENO: result: no" >&5
11414 echo "${ECHO_T}no" >&6
11417 if test $pnmcut = missing
; then
11418 missing
="$missing \`pnmcut'"
11419 fi;# Extract the first word of "pnmcrop", so it can be a program name with args.
11420 set dummy pnmcrop
; ac_word
=$2
11421 echo "$as_me:$LINENO: checking for $ac_word" >&5
11422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11423 if test "${ac_cv_prog_pnmcrop+set}" = set; then
11424 echo $ECHO_N "(cached) $ECHO_C" >&6
11426 if test -n "$pnmcrop"; then
11427 ac_cv_prog_pnmcrop
="$pnmcrop" # Let the user override the test.
11429 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11430 for as_dir
in $PATH
11433 test -z "$as_dir" && as_dir
=.
11434 for ac_exec_ext
in '' $ac_executable_extensions; do
11435 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11436 ac_cv_prog_pnmcrop
="found"
11437 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11443 test -z "$ac_cv_prog_pnmcrop" && ac_cv_prog_pnmcrop
="missing"
11446 pnmcrop
=$ac_cv_prog_pnmcrop
11447 if test -n "$pnmcrop"; then
11448 echo "$as_me:$LINENO: result: $pnmcrop" >&5
11449 echo "${ECHO_T}$pnmcrop" >&6
11451 echo "$as_me:$LINENO: result: no" >&5
11452 echo "${ECHO_T}no" >&6
11455 if test $pnmcrop = missing
; then
11456 missing
="$missing \`pnmcrop'"
11457 fi;# Extract the first word of "pnmtopng", so it can be a program name with args.
11458 set dummy pnmtopng
; ac_word
=$2
11459 echo "$as_me:$LINENO: checking for $ac_word" >&5
11460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11461 if test "${ac_cv_prog_pnmtopng+set}" = set; then
11462 echo $ECHO_N "(cached) $ECHO_C" >&6
11464 if test -n "$pnmtopng"; then
11465 ac_cv_prog_pnmtopng
="$pnmtopng" # Let the user override the test.
11467 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11468 for as_dir
in $PATH
11471 test -z "$as_dir" && as_dir
=.
11472 for ac_exec_ext
in '' $ac_executable_extensions; do
11473 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11474 ac_cv_prog_pnmtopng
="found"
11475 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11481 test -z "$ac_cv_prog_pnmtopng" && ac_cv_prog_pnmtopng
="missing"
11484 pnmtopng
=$ac_cv_prog_pnmtopng
11485 if test -n "$pnmtopng"; then
11486 echo "$as_me:$LINENO: result: $pnmtopng" >&5
11487 echo "${ECHO_T}$pnmtopng" >&6
11489 echo "$as_me:$LINENO: result: no" >&5
11490 echo "${ECHO_T}no" >&6
11493 if test $pnmtopng = missing
; then
11494 missing
="$missing \`pnmtopng'"
11495 fi;# Extract the first word of "psselect", so it can be a program name with args.
11496 set dummy psselect
; ac_word
=$2
11497 echo "$as_me:$LINENO: checking for $ac_word" >&5
11498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11499 if test "${ac_cv_prog_psselect+set}" = set; then
11500 echo $ECHO_N "(cached) $ECHO_C" >&6
11502 if test -n "$psselect"; then
11503 ac_cv_prog_psselect
="$psselect" # Let the user override the test.
11505 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11506 for as_dir
in $PATH
11509 test -z "$as_dir" && as_dir
=.
11510 for ac_exec_ext
in '' $ac_executable_extensions; do
11511 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11512 ac_cv_prog_psselect
="found"
11513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11519 test -z "$ac_cv_prog_psselect" && ac_cv_prog_psselect
="missing"
11522 psselect
=$ac_cv_prog_psselect
11523 if test -n "$psselect"; then
11524 echo "$as_me:$LINENO: result: $psselect" >&5
11525 echo "${ECHO_T}$psselect" >&6
11527 echo "$as_me:$LINENO: result: no" >&5
11528 echo "${ECHO_T}no" >&6
11531 if test $psselect = missing
; then
11532 missing
="$missing \`psselect'"
11533 fi;# Extract the first word of "pnmtops", so it can be a program name with args.
11534 set dummy pnmtops
; ac_word
=$2
11535 echo "$as_me:$LINENO: checking for $ac_word" >&5
11536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11537 if test "${ac_cv_prog_pnmtops+set}" = set; then
11538 echo $ECHO_N "(cached) $ECHO_C" >&6
11540 if test -n "$pnmtops"; then
11541 ac_cv_prog_pnmtops
="$pnmtops" # Let the user override the test.
11543 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11544 for as_dir
in $PATH
11547 test -z "$as_dir" && as_dir
=.
11548 for ac_exec_ext
in '' $ac_executable_extensions; do
11549 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11550 ac_cv_prog_pnmtops
="found"
11551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11557 test -z "$ac_cv_prog_pnmtops" && ac_cv_prog_pnmtops
="missing"
11560 pnmtops
=$ac_cv_prog_pnmtops
11561 if test -n "$pnmtops"; then
11562 echo "$as_me:$LINENO: result: $pnmtops" >&5
11563 echo "${ECHO_T}$pnmtops" >&6
11565 echo "$as_me:$LINENO: result: no" >&5
11566 echo "${ECHO_T}no" >&6
11569 if test $pnmtops = missing
; then
11570 missing
="$missing \`pnmtops'"
11573 test "$GHOSTSCRIPT" = "missing" && missing
="$missing \`gs'"
11575 if test -n "$missing"; then
11576 plural
=`set $missing; test $# -gt 1 && echo s`
11577 missing
=`set $missing
11579 while test $# -gt 0
11582 1) missing="$missing$1" ;;
11583 2) missing="$missing$1 and " ;;
11584 *) missing="$missing$1, " ;;
11593 { echo "$as_me:$LINENO: WARNING: missing program$plural:
11597 cannot be found in the PATH.
11598 Consequently, groff's HTML backend (grohtml) will not work properly;
11599 therefore, it will neither be possible to prepare, nor to install,
11600 documentation in HTML format.
11602 echo "$as_me: WARNING: missing program$plural:
11606 cannot be found in the PATH.
11607 Consequently, groff's HTML backend (grohtml) will not work properly;
11608 therefore, it will neither be possible to prepare, nor to install,
11609 documentation in HTML format.
11616 # Check whether --with-alt-awk or --without-alt-awk was given.
11617 if test "${with_alt_awk+set}" = set; then
11618 withval
="$with_alt_awk"
11619 ALT_AWK_PROGS
="$withval"
11621 ALT_AWK_PROGS
="gawk mawk nawk awk"
11626 # Check whether --with-awk or --without-awk was given.
11627 if test "${with_awk+set}" = set; then
11628 withval
="$with_awk"
11631 if test -n "$ac_tool_prefix"; then
11632 for ac_prog
in $ALT_AWK_PROGS
11634 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11635 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
11636 echo "$as_me:$LINENO: checking for $ac_word" >&5
11637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11638 if test "${ac_cv_prog_AWK+set}" = set; then
11639 echo $ECHO_N "(cached) $ECHO_C" >&6
11641 if test -n "$AWK"; then
11642 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
11644 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11645 for as_dir
in $PATH
11648 test -z "$as_dir" && as_dir
=.
11649 for ac_exec_ext
in '' $ac_executable_extensions; do
11650 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11651 ac_cv_prog_AWK
="$ac_tool_prefix$ac_prog"
11652 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11660 AWK
=$ac_cv_prog_AWK
11661 if test -n "$AWK"; then
11662 echo "$as_me:$LINENO: result: $AWK" >&5
11663 echo "${ECHO_T}$AWK" >&6
11665 echo "$as_me:$LINENO: result: no" >&5
11666 echo "${ECHO_T}no" >&6
11669 test -n "$AWK" && break
11672 if test -z "$AWK"; then
11674 for ac_prog
in $ALT_AWK_PROGS
11676 # Extract the first word of "$ac_prog", so it can be a program name with args.
11677 set dummy
$ac_prog; ac_word
=$2
11678 echo "$as_me:$LINENO: checking for $ac_word" >&5
11679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11680 if test "${ac_cv_prog_ac_ct_AWK+set}" = set; then
11681 echo $ECHO_N "(cached) $ECHO_C" >&6
11683 if test -n "$ac_ct_AWK"; then
11684 ac_cv_prog_ac_ct_AWK
="$ac_ct_AWK" # Let the user override the test.
11686 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11687 for as_dir
in $PATH
11690 test -z "$as_dir" && as_dir
=.
11691 for ac_exec_ext
in '' $ac_executable_extensions; do
11692 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11693 ac_cv_prog_ac_ct_AWK
="$ac_prog"
11694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11702 ac_ct_AWK
=$ac_cv_prog_ac_ct_AWK
11703 if test -n "$ac_ct_AWK"; then
11704 echo "$as_me:$LINENO: result: $ac_ct_AWK" >&5
11705 echo "${ECHO_T}$ac_ct_AWK" >&6
11707 echo "$as_me:$LINENO: result: no" >&5
11708 echo "${ECHO_T}no" >&6
11711 test -n "$ac_ct_AWK" && break
11714 if test "x$ac_ct_AWK" = x
; then
11717 if test "$build" != "$host"; then
11718 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11719 whose name does not start with the host triplet. If you think this
11720 configuration is useful to you, please write to autoconf@gnu.org." >&5
11721 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11722 whose name does not start with the host triplet. If you think this
11723 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11730 test "$AWK" = "no" && AWK
=missing
11735 make_install_pdfdoc
=install_pdfdoc
11738 test "$AWK" = missing
&& missing
="\`awk'"
11739 test "$GHOSTSCRIPT" = missing
&& missing
="$missing \`gs'"
11740 if test -n "$missing"; then
11741 plural
=`set $missing; test $# -eq 2 && echo s`
11742 test x
$plural = xs \
11743 && missing
=`set $missing; echo "$1 and $2"` \
11744 || missing
=`echo $missing`
11747 make_install_pdfdoc
=
11749 { echo "$as_me:$LINENO: WARNING: missing program$plural:
11751 The program$plural $missing cannot be found in the PATH.
11752 Consequently, groff's PDF formatter (pdfroff) will not work properly;
11753 therefore, it will neither be possible to prepare, nor to install,
11754 documentation in PDF format.
11756 echo "$as_me: WARNING: missing program$plural:
11758 The program$plural $missing cannot be found in the PATH.
11759 Consequently, groff's PDF formatter (pdfroff) will not work properly;
11760 therefore, it will neither be possible to prepare, nor to install,
11761 documentation in PDF format.
11767 echo "$as_me:$LINENO: checking whether pnmtops can handle the -nosetpage option" >&5
11768 echo $ECHO_N "checking whether pnmtops can handle the -nosetpage option... $ECHO_C" >&6
11769 if echo P2
2 2 255 0 1 2 0 | pnmtops
-nosetpage > /dev
/null
2>&1 ; then
11770 echo "$as_me:$LINENO: result: yes" >&5
11771 echo "${ECHO_T}yes" >&6
11772 pnmtops_nosetpage
="pnmtops -nosetpage"
11774 echo "$as_me:$LINENO: result: no" >&5
11775 echo "${ECHO_T}no" >&6
11776 pnmtops_nosetpage
="pnmtops"
11780 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
11781 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
11782 if test "${ac_cv_gnu_library_2_1+set}" = set; then
11783 echo $ECHO_N "(cached) $ECHO_C" >&6
11785 cat >conftest.
$ac_ext <<_ACEOF
11788 cat confdefs.h
>>conftest.
$ac_ext
11789 cat >>conftest.
$ac_ext <<_ACEOF
11790 /* end confdefs.h. */
11792 #include <features.h>
11793 #ifdef __GNU_LIBRARY__
11794 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
11800 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11801 $EGREP "Lucky GNU user" >/dev
/null
2>&1; then
11802 ac_cv_gnu_library_2_1
=yes
11804 ac_cv_gnu_library_2_1
=no
11811 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
11812 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
11814 GLIBC21
="$ac_cv_gnu_library_2_1"
11818 ac_config_files
="$ac_config_files stamp-h"
11820 ac_config_files
="$ac_config_files Makefile doc/Makefile src/utils/xtotroff/Makefile"
11822 ac_config_files
="$ac_config_files contrib/gdiffmk/tests/runtests"
11824 ac_config_files
="$ac_config_files test-groff"
11826 cat >confcache
<<\_ACEOF
11827 # This file is a shell script that caches the results of configure
11828 # tests run on this system so they can be shared between configure
11829 # scripts and configure runs, see configure's option --config-cache.
11830 # It is not useful on other systems. If it contains results you don't
11831 # want to keep, you may remove or edit it.
11833 # config.status only pays attention to the cache file if you give it
11834 # the --recheck option to rerun configure.
11836 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11837 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11838 # following values.
11842 # The following way of writing the cache mishandles newlines in values,
11843 # but we know of no workaround that is simple, portable, and efficient.
11844 # So, don't put newlines in cache variables' values.
11845 # Ultrix sh set writes to stderr and can't be redirected directly,
11846 # and sets the high bit in the cache file unless we assign to the vars.
11849 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11851 # `set' does not quote correctly, so add quotes (double-quote
11852 # substitution turns \\\\ into \\, and sed turns \\ into \).
11855 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11858 # `set' quotes correctly as required by POSIX, so do not add quotes.
11860 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11867 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11869 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11871 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
11872 if test -w $cache_file; then
11873 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11874 cat confcache
>$cache_file
11876 echo "not updating unwritable cache $cache_file"
11881 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
11882 # Let make expand exec_prefix.
11883 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
11885 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11886 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11887 # trailing colons and then remove the whole line if VPATH becomes empty
11888 # (actually we leave an empty line to preserve line numbers).
11889 if test "x$srcdir" = x.
; then
11890 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
11891 s/:*\$(srcdir):*/:/;
11892 s/:*\${srcdir}:*/:/;
11894 s/^\([^=]*=[ ]*\):*/\1/;
11900 DEFS
=-DHAVE_CONFIG_H
11904 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
11905 # 1. Remove the extension, and $U if already installed.
11906 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
11907 ac_i
=`echo "$ac_i" | sed "$ac_script"`
11909 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
11910 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
11912 LIBOBJS
=$ac_libobjs
11914 LTLIBOBJS
=$ac_ltlibobjs
11918 : ${CONFIG_STATUS=./config.status}
11919 ac_clean_files_save
=$ac_clean_files
11920 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
11921 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11922 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11923 cat >$CONFIG_STATUS <<_ACEOF
11925 # Generated by $as_me.
11926 # Run this file to recreate the current configuration.
11927 # Compiler output produced by configure, useful for debugging
11928 # configure, is in config.log if it exists.
11931 ac_cs_recheck=false
11933 SHELL=\${CONFIG_SHELL-$SHELL}
11936 cat >>$CONFIG_STATUS <<\_ACEOF
11937 ## --------------------- ##
11938 ## M4sh Initialization. ##
11939 ## --------------------- ##
11941 # Be Bourne compatible
11942 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
11945 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11946 # is contrary to our usage. Disable this feature.
11947 alias -g '${1+"$@"}'='"$@"'
11948 setopt NO_GLOB_SUBST
11949 elif test -n "${BASH_VERSION+set}${KSH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
11952 BIN_SH
=xpg4
; export BIN_SH
# for Tru64
11953 DUALCASE
=1; export DUALCASE
# for MKS sh
11957 # Avoid depending upon Character Ranges.
11958 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
11959 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11960 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
11961 as_cr_digits
='0123456789'
11962 as_cr_alnum
=$as_cr_Letters$as_cr_digits
11964 # The user is always right.
11965 if test "${PATH_SEPARATOR+set}" != set; then
11966 echo "#! /bin/sh" >conf$$.sh
11967 echo "exit 0" >>conf$$.sh
11969 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
11977 # Support unset when possible.
11978 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
11985 # Find who we are. Look in the path if we contain no path at all
11988 *[\\/]* ) as_myself
=$0 ;;
11989 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11990 for as_dir
in $PATH
11993 test -z "$as_dir" && as_dir
=.
11994 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
11999 # We did not find ourselves, most probably we were run as `sh COMMAND'
12000 # in which case we are not to be found in the path.
12001 if test "x$as_myself" = x
; then
12004 if test ! -f "$as_myself"; then
12005 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute file name" >&5
12006 echo "$as_me: error: cannot find myself; rerun with an absolute file name" >&2;}
12007 { (exit 1); exit 1; }; }
12010 # Work around bugs in pre-3.0 UWIN ksh.
12011 for as_var
in ENV MAIL MAILPATH
12012 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
12020 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12021 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12022 LC_TELEPHONE LC_TIME
12024 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12025 eval $as_var=C
; export $as_var
12027 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
12031 # Required to use basename.
12032 if expr a
: '\(a\)' >/dev
/null
2>&1; then
12038 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
12039 as_basename
=basename
12045 # Name of the executable.
12046 as_me
=`$as_basename "$0" ||
12047 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12048 X"$0" : 'X\(//\)$' \| \
12049 X"$0" : 'X\(/\)$' \| \
12050 . : '\(.\)' 2>/dev/null ||
12052 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12053 /^X\/\(\/\/\)$/{ s//\1/; q; }
12054 /^X\/\(\/\).*/{ s//\1/; q; }
12060 as_lineno_1
=$LINENO
12061 as_lineno_2
=$LINENO
12062 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
12063 test "x$as_lineno_1" != "x$as_lineno_2" &&
12064 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
12066 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12067 # uniformly replaced by the line number. The first 'sed' inserts a
12068 # line-number line after each line using $LINENO; the second 'sed'
12069 # does the real work. The second script uses 'N' to pair each
12070 # line-number line with the line containing $LINENO, and appends
12071 # trailing '-' during substitution so that $LINENO is not a special
12072 # case at line end.
12073 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12074 # scripts with optimization help from Paolo Bonzini. Blame Lee
12075 # E. McMahon (1931-1989) for sed's syntax. :-)
12087 s,[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\),\2\1\2,
12090 ' >$as_me.lineno
&&
12091 chmod +x
$as_me.lineno ||
12092 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12093 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12094 { (exit 1); exit 1; }; }
12096 # Don't try to exec as it changes $[0], causing all sort of problems
12097 # (the dirname of $[0] is not the place where we might find the
12098 # original and so on. Autoconf is especially sensible to this).
12100 # Exit status is that of the last command.
12105 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12106 *c
*,-n*) ECHO_N
= ECHO_C
='
12108 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
12109 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
12112 if expr a
: '\(a\)' >/dev
/null
2>&1; then
12118 rm -f conf$$ conf$$.exe conf$$.
file
12120 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
12121 # We could just check for DJGPP; but this test a) works b) is more generic
12122 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12123 if test -f conf$$.exe
; then
12124 # Don't use ln at all; we don't have any links
12129 elif ln conf$$.
file conf$$
2>/dev
/null
; then
12134 rm -f conf$$ conf$$.exe conf$$.
file
12136 if mkdir
-p .
2>/dev
/null
; then
12139 test -d .
/-p && rmdir .
/-p
12143 as_executable_p
="test -f"
12145 # Sed expression to map a string onto a valid CPP name.
12146 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12148 # Sed expression to map a string onto a valid variable name.
12149 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12153 # We need space, tab and new line, in precisely that order.
12163 # Open the log real soon, to keep \$[0] and so on meaningful, and to
12164 # report actual input values of CONFIG_FILES etc. instead of their
12165 # values after options handling. Logging --version etc. is OK.
12169 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12170 ## Running $as_me. ##
12175 This file was extended by $as_me, which was
12176 generated by GNU Autoconf 2.59b. Invocation command line was
12178 CONFIG_FILES = $CONFIG_FILES
12179 CONFIG_HEADERS = $CONFIG_HEADERS
12180 CONFIG_LINKS = $CONFIG_LINKS
12181 CONFIG_COMMANDS = $CONFIG_COMMANDS
12185 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12189 # Files that config.status was made for.
12190 if test -n "$ac_config_files"; then
12191 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12194 if test -n "$ac_config_headers"; then
12195 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12198 if test -n "$ac_config_links"; then
12199 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12202 if test -n "$ac_config_commands"; then
12203 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12206 cat >>$CONFIG_STATUS <<\_ACEOF
12209 \`$as_me' instantiates files from templates according to the
12210 current configuration.
12212 Usage: $0 [OPTIONS] [FILE]...
12214 -h, --help print this help, then exit
12215 -V, --version print version number, then exit
12216 -q, --quiet do not print progress messages
12217 -d, --debug don't remove temporary files
12218 --recheck update $as_me by reconfiguring in the same conditions
12219 --file=FILE[:TEMPLATE]
12220 instantiate the configuration file FILE
12221 --header=FILE[:TEMPLATE]
12222 instantiate the configuration header FILE
12224 Configuration files:
12227 Configuration headers:
12230 Report bugs to <bug-autoconf@gnu.org>."
12233 cat >>$CONFIG_STATUS <<_ACEOF
12236 configured by $0, generated by GNU Autoconf 2.59b,
12237 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12239 Copyright (C) 2004 Free Software Foundation, Inc.
12240 This config.status script is free software; the Free Software Foundation
12241 gives unlimited permission to copy, distribute and modify it."
12246 cat >>$CONFIG_STATUS <<\_ACEOF
12247 # If no file are specified by the user, then we need to provide default
12248 # value. By we need to know if files were specified by the user.
12254 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
12255 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
12263 *) # This is not an option, so the user has probably given explicit
12266 ac_need_defaults
=false
;;
12270 # Handling of the options.
12272 cat >>$CONFIG_STATUS <<\_ACEOF
12273 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
12275 --version |
--vers* |
-V )
12276 echo "$ac_cs_version"; exit 0 ;;
12278 # Conflict between --help and --header
12279 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12280 Try \`$0 --help' for more information." >&5
12281 echo "$as_me: error: ambiguous option: $1
12282 Try \`$0 --help' for more information." >&2;}
12283 { (exit 1); exit 1; }; };;
12284 --help |
--hel |
-h )
12285 echo "$ac_cs_usage"; exit 0 ;;
12286 --debug |
--d* |
-d )
12288 --file |
--fil |
--fi |
--f )
12290 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
12291 ac_need_defaults
=false
;;
12292 --header |
--heade |
--head |
--hea )
12294 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
12295 ac_need_defaults
=false
;;
12296 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
12297 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
12300 # This is an error.
12301 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12302 Try \`$0 --help' for more information." >&5
12303 echo "$as_me: error: unrecognized option: $1
12304 Try \`$0 --help' for more information." >&2;}
12305 { (exit 1); exit 1; }; } ;;
12307 *) ac_config_targets
="$ac_config_targets $1" ;;
12313 ac_configure_extra_args
=
12315 if $ac_cs_silent; then
12317 ac_configure_extra_args
="$ac_configure_extra_args --silent"
12321 cat >>$CONFIG_STATUS <<_ACEOF
12322 if \$ac_cs_recheck; then
12323 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12324 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12333 cat >>$CONFIG_STATUS <<\_ACEOF
12334 for ac_config_target
in $ac_config_targets
12336 case "$ac_config_target" in
12337 # Handling of arguments.
12338 "stamp-h" ) CONFIG_FILES
="$CONFIG_FILES stamp-h" ;;
12339 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
12340 "doc/Makefile" ) CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
12341 "src/utils/xtotroff/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/xtotroff/Makefile" ;;
12342 "contrib/gdiffmk/tests/runtests" ) CONFIG_FILES
="$CONFIG_FILES contrib/gdiffmk/tests/runtests" ;;
12343 "test-groff" ) CONFIG_FILES
="$CONFIG_FILES test-groff" ;;
12344 "src/include/config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS src/include/config.h:src/include/config.hin" ;;
12345 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12346 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12347 { (exit 1); exit 1; }; };;
12351 # If the user did not use the arguments to specify the items to instantiate,
12352 # then the envvar interface is used. Set only those that are not.
12353 # We use the long form for the default assignment because of an extremely
12354 # bizarre bug on SunOS 4.1.3.
12355 if $ac_need_defaults; then
12356 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
12357 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
12360 # Have a temporary directory for convenience. Make it in the build tree
12361 # simply because there is no reason to put it here, and in addition,
12362 # creating and moving files from /tmp can sometimes cause problems.
12363 # Create a temporary directory, and hook for its removal unless debugging.
12366 trap 'exit_status=$?; rm -f -r $tmp && exit $exit_status' 0
12367 trap '{ (exit 1); exit 1; }' 1 2 13 15
12370 # Create a (secure) tmp directory for tmp files.
12373 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12374 test -n "$tmp" && test -d "$tmp"
12377 tmp
=.
/confstat$$
-$RANDOM
12378 (umask 077 && mkdir
$tmp)
12381 echo "$me: cannot create a temporary directory in ." >&2
12382 { (exit 1); exit 1; }
12387 cat >>$CONFIG_STATUS <<_ACEOF
12390 # CONFIG_FILES section.
12393 # No need to generate the scripts if there are no CONFIG_FILES.
12394 # This happens for instance when ./config.status config.h
12395 if test -n "\$CONFIG_FILES"; then
12396 # Protect against being on the right side of a sed subst in config.status.
12397 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12398 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12399 s,@SHELL@,$SHELL,;t t
12400 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12401 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12402 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12403 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12404 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12405 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12406 s,@exec_prefix@,$exec_prefix,;t t
12407 s,@prefix@,$prefix,;t t
12408 s,@program_transform_name@,$program_transform_name,;t t
12409 s,@bindir@,$bindir,;t t
12410 s,@sbindir@,$sbindir,;t t
12411 s,@libexecdir@,$libexecdir,;t t
12412 s,@datadir@,$datadir,;t t
12413 s,@sysconfdir@,$sysconfdir,;t t
12414 s,@sharedstatedir@,$sharedstatedir,;t t
12415 s,@localstatedir@,$localstatedir,;t t
12416 s,@libdir@,$libdir,;t t
12417 s,@includedir@,$includedir,;t t
12418 s,@oldincludedir@,$oldincludedir,;t t
12419 s,@infodir@,$infodir,;t t
12420 s,@mandir@,$mandir,;t t
12421 s,@build_alias@,$build_alias,;t t
12422 s,@host_alias@,$host_alias,;t t
12423 s,@target_alias@,$target_alias,;t t
12424 s,@DEFS@,$DEFS,;t t
12425 s,@ECHO_C@,$ECHO_C,;t t
12426 s,@ECHO_N@,$ECHO_N,;t t
12427 s,@ECHO_T@,$ECHO_T,;t t
12428 s,@LIBS@,$LIBS,;t t
12430 s,@CFLAGS@,$CFLAGS,;t t
12431 s,@LDFLAGS@,$LDFLAGS,;t t
12432 s,@CPPFLAGS@,$CPPFLAGS,;t t
12433 s,@ac_ct_CC@,$ac_ct_CC,;t t
12434 s,@EXEEXT@,$EXEEXT,;t t
12435 s,@OBJEXT@,$OBJEXT,;t t
12437 s,@CXXFLAGS@,$CXXFLAGS,;t t
12438 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
12439 s,@TTYDEVDIRS@,$TTYDEVDIRS,;t t
12440 s,@OTHERDEVDIRS@,$OTHERDEVDIRS,;t t
12442 s,@X_CFLAGS@,$X_CFLAGS,;t t
12443 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
12444 s,@X_LIBS@,$X_LIBS,;t t
12445 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
12446 s,@XDEVDIRS@,$XDEVDIRS,;t t
12447 s,@XPROGDIRS@,$XPROGDIRS,;t t
12448 s,@XLIBDIRS@,$XLIBDIRS,;t t
12449 s,@appresdir@,$appresdir,;t t
12453 s,@PSPRINT@,$PSPRINT,;t t
12454 s,@DVIPRINT@,$DVIPRINT,;t t
12455 s,@GREP@,$GREP,;t t
12456 s,@EGREP@,$EGREP,;t t
12457 s,@PERLPATH@,$PERLPATH,;t t
12458 s,@YACC@,$YACC,;t t
12459 s,@MAKEINFO@,$MAKEINFO,;t t
12460 s,@RANLIB@,$RANLIB,;t t
12461 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12462 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
12463 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12464 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12465 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12466 s,@LN_S@,$LN_S,;t t
12467 s,@SH_SCRIPT_SED_CMD@,$SH_SCRIPT_SED_CMD,;t t
12468 s,@LIBC@,$LIBC,;t t
12469 s,@LIBM@,$LIBM,;t t
12470 s,@build@,$build,;t t
12471 s,@build_cpu@,$build_cpu,;t t
12472 s,@build_vendor@,$build_vendor,;t t
12473 s,@build_os@,$build_os,;t t
12474 s,@host@,$host,;t t
12475 s,@host_cpu@,$host_cpu,;t t
12476 s,@host_vendor@,$host_vendor,;t t
12477 s,@host_os@,$host_os,;t t
12478 s,@LIBICONV@,$LIBICONV,;t t
12479 s,@LTLIBICONV@,$LTLIBICONV,;t t
12480 s,@LIBOBJS@,$LIBOBJS,;t t
12481 s,@BROKEN_SPOOLER_FLAGS@,$BROKEN_SPOOLER_FLAGS,;t t
12482 s,@PAGE@,$PAGE,;t t
12484 s,@sys_tmac_prefix@,$sys_tmac_prefix,;t t
12485 s,@tmac_wrap@,$tmac_wrap,;t t
12486 s,@GROFF_PATH_SEPARATOR@,$GROFF_PATH_SEPARATOR,;t t
12487 s,@ALT_GHOSTSCRIPT_PROGS@,$ALT_GHOSTSCRIPT_PROGS,;t t
12488 s,@GHOSTSCRIPT@,$GHOSTSCRIPT,;t t
12489 s,@ac_ct_GHOSTSCRIPT@,$ac_ct_GHOSTSCRIPT,;t t
12490 s,@pnmcut@,$pnmcut,;t t
12491 s,@pnmcrop@,$pnmcrop,;t t
12492 s,@pnmtopng@,$pnmtopng,;t t
12493 s,@psselect@,$psselect,;t t
12494 s,@pnmtops@,$pnmtops,;t t
12495 s,@make_html@,$make_html,;t t
12496 s,@make_install_html@,$make_install_html,;t t
12497 s,@ALT_AWK_PROGS@,$ALT_AWK_PROGS,;t t
12499 s,@ac_ct_AWK@,$ac_ct_AWK,;t t
12500 s,@make_pdfdoc@,$make_pdfdoc,;t t
12501 s,@make_install_pdfdoc@,$make_install_pdfdoc,;t t
12502 s,@pnmtops_nosetpage@,$pnmtops_nosetpage,;t t
12503 s,@GLIBC21@,$GLIBC21,;t t
12504 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12509 cat >>$CONFIG_STATUS <<\_ACEOF
12510 # Split the substitutions into bite-sized pieces for seds with
12511 # small command number limits, like on Digital OSF/1 and HP-UX.
12512 ac_max_sed_lines
=48
12513 ac_sed_frag
=1 # Number of current file.
12514 ac_beg
=1 # First line for current file.
12515 ac_end
=$ac_max_sed_lines # Line after last line for current file.
12518 while $ac_more_lines; do
12519 if test $ac_beg -gt 1; then
12520 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
12522 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
12524 if test ! -s $tmp/subs.frag
; then
12525 ac_more_lines
=false
12527 # The purpose of the label and of the branching condition is to
12528 # speed up the sed processing (if there are no `@' at all, there
12529 # is no need to browse any of the substitutions).
12530 # These are the two extra sed commands mentioned above.
12532 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
12533 if test -z "$ac_sed_cmds"; then
12534 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
12536 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12538 ac_sed_frag
=`expr $ac_sed_frag + 1`
12540 ac_end
=`expr $ac_end + $ac_max_sed_lines`
12543 if test -z "$ac_sed_cmds"; then
12546 fi # test -n "$CONFIG_FILES"
12549 cat >>$CONFIG_STATUS <<\_ACEOF
12550 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
12551 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12553 - |
*:- |
*:-:* ) # input from stdin
12555 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
12556 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
12557 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
12558 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
12559 * ) ac_file_in
=$ac_file.
in ;;
12562 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12563 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
12564 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12565 X"$ac_file" : 'X\(//\)[^/]' \| \
12566 X"$ac_file" : 'X\(//\)$' \| \
12567 X"$ac_file" : 'X\(/\)' \| \
12568 . : '\(.\)' 2>/dev/null ||
12570 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12571 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12572 /^X\(\/\/\)$/{ s//\1/; q; }
12573 /^X\(\/\).*/{ s//\1/; q; }
12575 { if $as_mkdir_p; then
12576 test -d "$ac_dir" || mkdir
-p "$ac_dir"
12580 while test ! -d "$as_dir"; do
12581 as_dirs
="$as_dir $as_dirs"
12582 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
12583 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12584 X"$as_dir" : 'X\(//\)[^/]' \| \
12585 X"$as_dir" : 'X\(//\)$' \| \
12586 X"$as_dir" : 'X\(/\)' \| \
12587 . : '\(.\)' 2>/dev/null ||
12589 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12590 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12591 /^X\(\/\/\)$/{ s//\1/; q; }
12592 /^X\(\/\).*/{ s//\1/; q; }
12595 test ! -n "$as_dirs" || mkdir
$as_dirs
12596 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12597 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12598 { (exit 1); exit 1; }; }; }
12602 if test "$ac_dir" != .
; then
12603 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12604 # A "../" for each directory in $ac_dir_suffix.
12605 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12607 ac_dir_suffix
= ac_top_builddir
=
12611 .
) # No --srcdir option. We are building in place.
12613 if test -z "$ac_top_builddir"; then
12616 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
12618 [\\/]* | ?
:[\\/]* ) # Absolute name.
12619 ac_srcdir
=$srcdir$ac_dir_suffix;
12620 ac_top_srcdir
=$srcdir ;;
12621 *) # Relative name.
12622 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
12623 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
12626 # Do not use `cd foo && pwd` to compute absolute names, because
12627 # the directories may not exist.
12629 .
) ac_abs_builddir
="$ac_dir";;
12632 .
) ac_abs_builddir
=`pwd`;;
12633 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
12634 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
12637 case $ac_abs_builddir in
12638 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
12640 case ${ac_top_builddir}.
in
12641 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
12642 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
12643 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
12646 case $ac_abs_builddir in
12647 .
) ac_abs_srcdir
=$ac_srcdir;;
12650 .
) ac_abs_srcdir
=$ac_abs_builddir;;
12651 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
12652 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
12655 case $ac_abs_builddir in
12656 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
12658 case $ac_top_srcdir in
12659 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
12660 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
12661 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
12667 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
12668 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
12671 if test x
"$ac_file" != x-
; then
12672 { echo "$as_me:$LINENO: creating $ac_file" >&5
12673 echo "$as_me: creating $ac_file" >&6;}
12676 # Let's still pretend it is `configure' which instantiates (i.e., don't
12677 # use $as_me), people would be surprised to read:
12678 # /* config.h. Generated by config.status. */
12679 if test x
"$ac_file" = x-
; then
12682 configure_input
="$ac_file. "
12684 configure_input
=$configure_input"Generated from `echo $ac_file_in |
12685 sed 's,.*/,,'` by configure."
12687 # First look for the input files in the build tree, otherwise in the
12689 ac_file_inputs
=`IFS=:
12690 for f in $ac_file_in; do
12692 -) echo $tmp/stdin ;;
12694 # Absolute (can't be DOS-style, as IFS=:)
12695 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12696 echo "$as_me: error: cannot find input file: $f" >&2;}
12697 { (exit 1); exit 1; }; }
12700 if test -f "$f"; then
12703 elif test -f "$srcdir/$f"; then
12708 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12709 echo "$as_me: error: cannot find input file: $f" >&2;}
12710 { (exit 1); exit 1; }; }
12713 done` ||
{ (exit 1); exit 1; }
12715 cat >>$CONFIG_STATUS <<_ACEOF
12719 cat >>$CONFIG_STATUS <<\_ACEOF
12721 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
12722 s
,@configure_input@
,$configure_input,;t t
12723 s
,@srcdir@
,$ac_srcdir,;t t
12724 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
12725 s
,@top_srcdir@
,$ac_top_srcdir,;t t
12726 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
12727 s
,@builddir@
,$ac_builddir,;t t
12728 s
,@abs_builddir@
,$ac_abs_builddir,;t t
12729 s
,@top_builddir@
,$ac_top_builddir,;t t
12730 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
12731 s
,@INSTALL@
,$ac_INSTALL,;t t
12732 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12734 if test x"$ac_file" != x-; then
12735 mv $tmp/out $ac_file
12741 # Run the commands associated with the file.
12743 stamp-h ) echo timestamp > stamp-h ;;
12744 contrib/gdiffmk/tests/runtests ) chmod +x contrib/gdiffmk/tests/runtests ;;
12745 test-groff ) chmod +x test-groff ;;
12749 cat >>$CONFIG_STATUS <<\_ACEOF
12752 # CONFIG_HEADER section.
12755 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
12756 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12758 # ac_d sets the value in "#define NAME VALUE" lines.
12759 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12760 ac_dB
='[ ].*$,\1#\2'
12763 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12764 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12765 ac_uB
='$,\1#\2define\3'
12769 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
12770 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12772 - |
*:- |
*:-:* ) # input from stdin
12774 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
12775 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
12776 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
12777 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
12778 * ) ac_file_in
=$ac_file.
in ;;
12781 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
12782 echo "$as_me: creating $ac_file" >&6;}
12784 # First look for the input files in the build tree, otherwise in the
12786 ac_file_inputs
=`IFS=:
12787 for f in $ac_file_in; do
12789 -) echo $tmp/stdin ;;
12791 # Absolute (can't be DOS-style, as IFS=:)
12792 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12793 echo "$as_me: error: cannot find input file: $f" >&2;}
12794 { (exit 1); exit 1; }; }
12795 # Quote $f, to prevent DOS file names from being IFS'd.
12798 if test -f "$f"; then
12801 elif test -f "$srcdir/$f"; then
12806 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12807 echo "$as_me: error: cannot find input file: $f" >&2;}
12808 { (exit 1); exit 1; }; }
12811 done` ||
{ (exit 1); exit 1; }
12812 # Remove the trailing spaces.
12813 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
12817 # Transform confdefs.h into two sed scripts, `conftest.defines' and
12818 # `conftest.undefs', that substitutes the proper values into
12819 # config.h.in to produce config.h. The first handles `#define'
12820 # templates, and the second `#undef' templates.
12821 # And first: Protect against being on the right side of a sed subst in
12822 # config.status. Protect against being in an unquoted here document
12823 # in config.status.
12824 rm -f conftest.defines conftest.undefs
12825 # Using a here document instead of a string reduces the quoting nightmare.
12826 # Putting comments in sed scripts is not portable.
12828 # `end' is used to avoid that the second main sed command (meant for
12829 # 0-ary CPP macros) applies to n-ary macro definitions.
12830 # See the Autoconf documentation for `clear'.
12831 cat >confdef2sed.
sed <<\_ACEOF
12836 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
12838 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
12841 # If some macros were called several times there might be several times
12842 # the same #defines, which is useless. Nevertheless, we may not want to
12843 # sort them, since we want the *last* AC-DEFINE to be honored.
12844 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
12845 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
12846 rm -f confdef2sed.sed
12848 # This sed command replaces #undef with comments. This is necessary, for
12849 # example, in the case of _POSIX_SOURCE, which is predefined and required
12850 # on some systems where configure will not decide to define it.
12851 cat >>conftest.undefs <<\_ACEOF
12852 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
12855 # Break up conftest.defines because some shells have a limit on the size
12856 # of here documents, and old seds have small limits too (100 cmds).
12857 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
12858 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
12859 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12860 echo ' :' >>$CONFIG_STATUS
12861 rm -f conftest.tail
12862 while grep . conftest.defines >/dev/null
12864 # Write a limited-size here document to $tmp/defines.sed.
12865 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12866 # Speed up: don't consider the non `#define' lines.
12867 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
12868 # Work around the forget-to-reset-the-flag bug.
12869 echo 't clr' >>$CONFIG_STATUS
12870 echo ': clr' >>$CONFIG_STATUS
12871 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
12873 sed -f $tmp/defines.sed $tmp/in >$tmp/out
12875 mv $tmp/out $tmp/in
12877 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
12878 rm -f conftest.defines
12879 mv conftest.
tail conftest.defines
12881 rm -f conftest.defines
12882 echo ' fi # grep' >>$CONFIG_STATUS
12883 echo >>$CONFIG_STATUS
12885 # Break up conftest.undefs because some shells have a limit on the size
12886 # of here documents, and old seds have small limits too (100 cmds).
12887 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
12888 rm -f conftest.
tail
12889 while grep . conftest.undefs
>/dev
/null
12891 # Write a limited-size here document to $tmp/undefs.sed.
12892 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
12893 # Speed up: don't consider the non
`#undef'
12894 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
12895 # Work around the forget-to-reset-the-flag bug.
12896 echo 't clr' >>$CONFIG_STATUS
12897 echo ': clr' >>$CONFIG_STATUS
12898 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
12900 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12902 mv $tmp/out $tmp/in
12904 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12905 rm -f conftest.undefs
12906 mv conftest.tail conftest.undefs
12908 rm -f conftest.undefs
12910 cat >>$CONFIG_STATUS <<\_ACEOF
12911 # Let's still pretend it is `configure
' which instantiates (i.e., don't
12912 # use $as_me), people would be surprised to read:
12913 # /* config.h. Generated by config.status. */
12914 if test x
"$ac_file" = x-
; then
12915 echo "/* Generated by configure. */" >$tmp/config.h
12917 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
12919 cat $tmp/in >>$tmp/config.h
12921 if test x
"$ac_file" != x-
; then
12922 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
12923 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12924 echo "$as_me: $ac_file is unchanged" >&6;}
12926 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
12927 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12928 X"$ac_file" : 'X\(//\)[^/]' \| \
12929 X"$ac_file" : 'X\(//\)$' \| \
12930 X"$ac_file" : 'X\(/\)' \| \
12931 . : '\(.\)' 2>/dev/null ||
12933 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12934 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12935 /^X\(\/\/\)$/{ s//\1/; q; }
12936 /^X\(\/\).*/{ s//\1/; q; }
12938 { if $as_mkdir_p; then
12939 test -d "$ac_dir" || mkdir
-p "$ac_dir"
12943 while test ! -d "$as_dir"; do
12944 as_dirs
="$as_dir $as_dirs"
12945 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
12946 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12947 X"$as_dir" : 'X\(//\)[^/]' \| \
12948 X"$as_dir" : 'X\(//\)$' \| \
12949 X"$as_dir" : 'X\(/\)' \| \
12950 . : '\(.\)' 2>/dev/null ||
12952 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12953 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12954 /^X\(\/\/\)$/{ s//\1/; q; }
12955 /^X\(\/\).*/{ s//\1/; q; }
12958 test ! -n "$as_dirs" || mkdir
$as_dirs
12959 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12960 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12961 { (exit 1); exit 1; }; }; }
12964 mv $tmp/config.h
$ac_file
12968 rm -f $tmp/config.h
12973 cat >>$CONFIG_STATUS <<\_ACEOF
12975 { (exit 0); exit 0; }
12977 chmod +x
$CONFIG_STATUS
12978 ac_clean_files
=$ac_clean_files_save
12981 # configure is writing to config.log, and then calls config.status.
12982 # config.status does its own redirection, appending to config.log.
12983 # Unfortunately, on DOS this fails, as config.log is still kept open
12984 # by configure, so config.status won't be able to write to it; its
12985 # output is simply discarded. So we exec the FD to /dev/null,
12986 # effectively closing config.log, so it can be properly (re)opened and
12987 # appended to by config.status. When coming back to configure, we
12988 # need to make the FD available again.
12989 if test "$no_create" != yes; then
12991 ac_config_status_args
=
12992 test "$silent" = yes &&
12993 ac_config_status_args
="$ac_config_status_args --quiet"
12995 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
12997 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12998 # would make configure fail if this is the last instruction.
12999 $ac_cs_success ||
{ (exit 1); exit 1; }
13003 if test -z "$groff_no_x"; then
13004 if test "x$with_appresdir" = "x"; then
13005 { echo "$as_me:$LINENO:
13007 The application resource file for gxditview will be installed as
13009 $appresdir/GXditview
13011 (an existing file will be saved as \`GXditview.old').
13012 To install it into a different directory, say, \`/etc/gxditview',
13013 add \`--with-appresdir=/etc/gxditview' to the configure script
13014 command line options and rerun it. The environment variable
13015 \`APPLRESDIR' must then be set to \`/etc/' (note the trailing slash),
13016 omitting the \`gxditview' part which is automatically appended by
13017 the X11 searching routines for resource files. More details can be
13018 found in the X(7) manual page.
13022 The application resource file for gxditview will be installed as
13024 $appresdir/GXditview
13026 (an existing file will be saved as \`GXditview.old').
13027 To install it into a different directory, say, \`/etc/gxditview',
13028 add \`--with-appresdir=/etc/gxditview' to the configure script
13029 command line options and rerun it. The environment variable
13030 \`APPLRESDIR' must then be set to \`/etc/' (note the trailing slash),
13031 omitting the \`gxditview' part which is automatically appended by
13032 the X11 searching routines for resource files. More details can be
13033 found in the X(7) manual page.