2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59a.
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+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
23 DUALCASE
=1; export DUALCASE
# for MKS sh
27 # Avoid depending upon Character Ranges.
28 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
29 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
31 as_cr_digits
='0123456789'
32 as_cr_alnum
=$as_cr_Letters$as_cr_digits
34 # The user is always right.
35 if test "${PATH_SEPARATOR+set}" != set; then
36 echo "#! /bin/sh" >conf$$.sh
37 echo "exit 0" >>conf$$.sh
39 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
47 # Support unset when possible.
48 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
55 # Find who we are. Look in the path if we contain no path at all
58 *[\\/]* ) as_myself
=$0 ;;
59 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
63 test -z "$as_dir" && as_dir
=.
64 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
69 # We did not find ourselves, most probably we were run as `sh COMMAND'
70 # in which case we are not to be found in the path.
71 if test "x$as_myself" = x
; then
74 if test ! -f "$as_myself"; then
75 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
76 { (exit 1); exit 1; }; }
79 # Work around bugs in pre-3.0 UWIN ksh.
80 $as_unset ENV MAIL MAILPATH
87 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
88 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
91 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
92 eval $as_var=C
; export $as_var
98 # Required to use basename.
99 if expr a
: '\(a\)' >/dev
/null
2>&1; then
105 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
112 # Name of the executable.
113 as_me
=`$as_basename "$0" ||
114 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
115 X"$0" : 'X\(//\)$' \| \
116 X"$0" : 'X\(/\)$' \| \
117 . : '\(.\)' 2>/dev/null ||
119 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
120 /^X\/\(\/\/\)$/{ s//\1/; q; }
121 /^X\/\(\/\).*/{ s//\1/; q; }
126 if test "x$CONFIG_SHELL" = x
; then
127 if (eval ":") 2>/dev
/null
; then
133 if test $as_have_required = yes && (eval ":
143 func_ret_success () {
146 func_ret_failure () {
151 if func_success; then
155 echo func_failure succeeded.
158 if func_failure; then
160 echo func_success failed.
163 if func_ret_success; then
167 echo func_ret_success failed.
170 if func_ret_failure; then
172 echo func_ret_failure succeeded.
175 test \$exitcode = 0) || { (exit 1); exit 1; }
180 as_lineno_3=\`(expr \$as_lineno_1 + 1) 2>/dev/null\`
181 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
182 test \"x\$as_lineno_3\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
183 ") 2> /dev
/null
; then
186 as_candidate_shells
="$SHELL"
187 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
188 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
191 test -z "$as_dir" && as_dir
=.
194 for as_base
in sh bash ksh sh5
; do
195 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
201 for as_shell
in $as_candidate_shells; do
202 if { $as_shell 2> /dev
/null
<<\_ASEOF
203 # Be Bourne compatible
204 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
207 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
208 # is contrary to our usage. Disable this feature.
209 alias -g '${1+"$@"}'='"$@"'
210 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
213 DUALCASE
=1; export DUALCASE
# for MKS sh
218 CONFIG_SHELL
=$as_shell
220 if { $as_shell 2> /dev
/null
<<\_ASEOF
221 # Be Bourne compatible
222 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
225 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
226 # is contrary to our usage. Disable this feature.
227 alias -g '${1+"$@"}'='"$@"'
228 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
231 DUALCASE
=1; export DUALCASE
# for MKS sh
243 func_ret_success
() {
246 func_ret_failure
() {
251 if func_success
; then
255 echo func_failure succeeded.
258 if func_failure
; then
260 echo func_success failed.
263 if func_ret_success
; then
267 echo func_ret_success failed.
270 if func_ret_failure
; then
272 echo func_ret_failure succeeded.
275 test $exitcode = 0) ||
{ (exit 1); exit 1; }
280 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
281 test "x$as_lineno_1" != "x$as_lineno_2" &&
282 test "x$as_lineno_3" = "x$as_lineno_2") ||
{ (exit 1); exit 1; }
293 if test "x$CONFIG_SHELL" != x
; then
294 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
295 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
297 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
301 if test $as_have_required = no
; then
302 echo This
script requires a shell
more modern than all the
303 echo shells that I found on your system. Please
install a
304 echo modern shell
, or manually run the
script under such a
305 echo shell
if you
do have one.
306 { (exit 1); exit 1; }
316 (eval "func_return () {
325 func_ret_success () {
328 func_ret_failure () {
333 if func_success; then
337 echo func_failure succeeded.
340 if func_failure; then
342 echo func_success failed.
345 if func_ret_success; then
349 echo func_ret_success failed.
352 if func_ret_failure; then
354 echo func_ret_failure succeeded.
357 test \$exitcode = 0") ||
{
358 echo No shell found that supports shell functions.
359 echo Please tell autoconf@gnu.org about your system
,
360 echo including any error possibly output before this
368 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
369 test "x$as_lineno_1" != "x$as_lineno_2" &&
370 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
372 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
373 # uniformly replaced by the line number. The first 'sed' inserts a
374 # line-number line after each line using $LINENO; the second 'sed'
375 # does the real work. The second script uses 'N' to pair each
376 # line-number line with the line containing $LINENO, and appends
377 # trailing '-' during substitution so that $LINENO is not a special
379 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
380 # scripts with optimization help from Paolo Bonzini. Blame Lee
381 # E. McMahon (1931-1989) for sed's syntax. :-)
393 s,[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\),\2\1\2,
397 chmod +x
$as_me.lineno ||
398 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
399 { (exit 1); exit 1; }; }
401 # Don't try to exec as it changes $[0], causing all sort of problems
402 # (the dirname of $[0] is not the place where we might find the
403 # original and so on. Autoconf is especially sensible to this).
405 # Exit status is that of the last command.
410 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
411 *c
*,-n*) ECHO_N
= ECHO_C
='
413 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
414 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
417 if expr a
: '\(a\)' >/dev
/null
2>&1; then
423 rm -f conf$$ conf$$.exe conf$$.
file
425 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
426 # We could just check for DJGPP; but this test a) works b) is more generic
427 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
428 if test -f conf$$.exe
; then
429 # Don't use ln at all; we don't have any links
434 elif ln conf$$.
file conf$$
2>/dev
/null
; then
439 rm -f conf$$ conf$$.exe conf$$.
file
441 if mkdir
-p .
2>/dev
/null
; then
444 test -d .
/-p && rmdir .
/-p
448 as_executable_p
="test -f"
450 # Sed expression to map a string onto a valid CPP name.
451 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
453 # Sed expression to map a string onto a valid variable name.
454 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
458 # We need space, tab and new line, in precisely that order.
468 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
469 # so uname gets run too.
470 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
477 ac_default_prefix
=/usr
/local
478 ac_config_libobj_dir
=.
483 SHELL
=${CONFIG_SHELL-/bin/sh}
485 # Maximum number of lines to put in a shell here document.
486 # This variable seems obsolete. It should probably be removed, and
487 # only ac_max_sed_lines should be used.
488 : ${ac_max_here_lines=38}
490 # Identity of this package.
497 ac_unique_file
="src/roff/groff/groff.cpp"
498 # Factoring default headers for most tests.
499 ac_includes_default
="\
502 # include <sys/types.h>
505 # include <sys/stat.h>
516 # if !STDC_HEADERS && HAVE_MEMORY_H
522 # include <strings.h>
525 # include <inttypes.h>
534 ac_subst_vars
='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX TTYDEVDIRS OTHERDEVDIRS CPP X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS XDEVDIRS XPROGDIRS XLIBDIRS appresdir LPR LP LPQ PSPRINT DVIPRINT PERLPATH YACC RANLIB ac_ct_RANLIB INSTALL_INFO INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S SH_SCRIPT_SED_CMD GREP EGREP LIBC LIBM LIBOBJS BROKEN_SPOOLER_FLAGS PAGE g sys_tmac_prefix tmac_wrap GROFF_PATH_SEPARATOR pnmcut pnmcrop pnmtopng psselect pnmtops gs make_html make_install_html pnmtops_nosetpage GHOSTSCRIPT ac_pt_GHOSTSCRIPT LTLIBOBJS'
537 # Initialize some variables set by options.
539 ac_init_version
=false
540 # The variables have the same names as the options, with
541 # dashes changed to underlines.
549 program_transform_name
=s
,x
,x
,
557 # Installation directory options.
558 # These are left unexpanded so users can "make install exec_prefix=/foo"
559 # and all the variables that are supposed to be based on exec_prefix
560 # by default will actually change.
561 # Use braces instead of parens because sh, perl, etc. also accept them.
562 bindir
='${exec_prefix}/bin'
563 sbindir
='${exec_prefix}/sbin'
564 libexecdir
='${exec_prefix}/libexec'
565 datadir
='${prefix}/share'
566 sysconfdir
='${prefix}/etc'
567 sharedstatedir
='${prefix}/com'
568 localstatedir
='${prefix}/var'
569 libdir
='${exec_prefix}/lib'
570 includedir
='${prefix}/include'
571 oldincludedir
='/usr/include'
572 infodir
='${prefix}/info'
573 mandir
='${prefix}/man'
578 # If the previous option needs an argument, assign it.
579 if test -n "$ac_prev"; then
580 eval "$ac_prev=\$ac_option"
585 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
587 # Accept the important Cygnus configure options, so we can diagnose typos.
591 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
593 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
596 -build |
--build |
--buil |
--bui |
--bu)
597 ac_prev
=build_alias
;;
598 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
599 build_alias
=$ac_optarg ;;
601 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
602 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
603 ac_prev
=cache_file
;;
604 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
605 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
606 cache_file
=$ac_optarg ;;
609 cache_file
=config.cache
;;
611 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
613 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
615 datadir
=$ac_optarg ;;
617 -disable-* |
--disable-*)
618 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
619 # Reject names that are not valid shell variable names.
620 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
621 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
622 { (exit 1); exit 1; }; }
623 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
624 eval "enable_$ac_feature=no" ;;
626 -enable-* |
--enable-*)
627 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
628 # Reject names that are not valid shell variable names.
629 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
630 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
631 { (exit 1); exit 1; }; }
632 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
634 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
637 eval "enable_$ac_feature='$ac_optarg'" ;;
639 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
640 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
641 |
--exec |
--exe |
--ex)
642 ac_prev
=exec_prefix
;;
643 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
644 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
645 |
--exec=* |
--exe=* |
--ex=*)
646 exec_prefix
=$ac_optarg ;;
648 -gas |
--gas |
--ga |
--g)
649 # Obsolete; use --with-gas.
652 -help |
--help |
--hel |
--he |
-h)
654 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
655 ac_init_help
=recursive
;;
656 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
657 ac_init_help
=short
;;
659 -host |
--host |
--hos |
--ho)
660 ac_prev
=host_alias
;;
661 -host=* |
--host=* |
--hos=* |
--ho=*)
662 host_alias
=$ac_optarg ;;
664 -includedir |
--includedir |
--includedi |
--included |
--include \
665 |
--includ |
--inclu |
--incl |
--inc)
666 ac_prev
=includedir
;;
667 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
668 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
669 includedir
=$ac_optarg ;;
671 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
673 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
674 infodir
=$ac_optarg ;;
676 -libdir |
--libdir |
--libdi |
--libd)
678 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
681 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
682 |
--libexe |
--libex |
--libe)
683 ac_prev
=libexecdir
;;
684 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
685 |
--libexe=* |
--libex=* |
--libe=*)
686 libexecdir
=$ac_optarg ;;
688 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
689 |
--localstate |
--localstat |
--localsta |
--localst \
690 |
--locals |
--local |
--loca |
--loc |
--lo)
691 ac_prev
=localstatedir
;;
692 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
693 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
694 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
695 localstatedir
=$ac_optarg ;;
697 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
699 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
703 # Obsolete; use --without-fp.
706 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
707 |
--no-cr |
--no-c |
-n)
710 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
711 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
714 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
715 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
716 |
--oldin |
--oldi |
--old |
--ol |
--o)
717 ac_prev
=oldincludedir
;;
718 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
719 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
720 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
721 oldincludedir
=$ac_optarg ;;
723 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
725 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
728 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
729 |
--program-pre |
--program-pr |
--program-p)
730 ac_prev
=program_prefix
;;
731 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
732 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
733 program_prefix
=$ac_optarg ;;
735 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
736 |
--program-suf |
--program-su |
--program-s)
737 ac_prev
=program_suffix
;;
738 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
739 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
740 program_suffix
=$ac_optarg ;;
742 -program-transform-name |
--program-transform-name \
743 |
--program-transform-nam |
--program-transform-na \
744 |
--program-transform-n |
--program-transform- \
745 |
--program-transform |
--program-transfor \
746 |
--program-transfo |
--program-transf \
747 |
--program-trans |
--program-tran \
748 |
--progr-tra |
--program-tr |
--program-t)
749 ac_prev
=program_transform_name
;;
750 -program-transform-name=* |
--program-transform-name=* \
751 |
--program-transform-nam=* |
--program-transform-na=* \
752 |
--program-transform-n=* |
--program-transform-=* \
753 |
--program-transform=* |
--program-transfor=* \
754 |
--program-transfo=* |
--program-transf=* \
755 |
--program-trans=* |
--program-tran=* \
756 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
757 program_transform_name
=$ac_optarg ;;
759 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
760 |
-silent |
--silent |
--silen |
--sile |
--sil)
763 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
765 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
767 sbindir
=$ac_optarg ;;
769 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
770 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
771 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
773 ac_prev
=sharedstatedir
;;
774 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
775 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
776 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
778 sharedstatedir
=$ac_optarg ;;
780 -site |
--site |
--sit)
782 -site=* |
--site=* |
--sit=*)
785 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
787 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
790 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
791 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
792 ac_prev
=sysconfdir
;;
793 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
794 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
795 sysconfdir
=$ac_optarg ;;
797 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
798 ac_prev
=target_alias
;;
799 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
800 target_alias
=$ac_optarg ;;
802 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
805 -version |
--version |
--versio |
--versi |
--vers |
-V)
809 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
810 # Reject names that are not valid shell variable names.
811 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
812 { echo "$as_me: error: invalid package name: $ac_package" >&2
813 { (exit 1); exit 1; }; }
814 ac_package
=`echo $ac_package| sed 's/-/_/g'`
816 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
819 eval "with_$ac_package='$ac_optarg'" ;;
821 -without-* |
--without-*)
822 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
823 # Reject names that are not valid shell variable names.
824 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
825 { echo "$as_me: error: invalid package name: $ac_package" >&2
826 { (exit 1); exit 1; }; }
827 ac_package
=`echo $ac_package | sed 's/-/_/g'`
828 eval "with_$ac_package=no" ;;
831 # Obsolete; use --with-x.
834 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
835 |
--x-incl |
--x-inc |
--x-in |
--x-i)
836 ac_prev
=x_includes
;;
837 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
838 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
839 x_includes
=$ac_optarg ;;
841 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
842 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
843 ac_prev
=x_libraries
;;
844 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
845 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
846 x_libraries
=$ac_optarg ;;
848 -*) { echo "$as_me: error: unrecognized option: $ac_option
849 Try \`$0 --help' for more information." >&2
850 { (exit 1); exit 1; }; }
854 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
855 # Reject names that are not valid shell variable names.
856 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
857 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
858 { (exit 1); exit 1; }; }
859 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
860 eval "$ac_envvar='$ac_optarg'"
864 # FIXME: should be removed in autoconf 3.0.
865 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
866 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
867 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
868 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
874 if test -n "$ac_prev"; then
875 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
876 { echo "$as_me: error: missing argument to $ac_option" >&2
877 { (exit 1); exit 1; }; }
880 # Be sure to have absolute paths.
881 for ac_var
in exec_prefix prefix
883 eval ac_val
=$
`echo $ac_var`
885 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
886 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
887 { (exit 1); exit 1; }; };;
891 # Be sure to have absolute paths.
892 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
893 localstatedir libdir includedir oldincludedir infodir mandir
895 eval ac_val
=$
`echo $ac_var`
897 [\\/$
]* | ?
:[\\/]* ) ;;
898 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
899 { (exit 1); exit 1; }; };;
903 # There might be people who depend on the old broken behavior: `$host'
904 # used to hold the argument of --host etc.
905 # FIXME: To remove some day.
910 # FIXME: To remove some day.
911 if test "x$host_alias" != x
; then
912 if test "x$build_alias" = x
; then
913 cross_compiling
=maybe
914 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
915 If a cross compiler is detected then cross compile mode will be used." >&2
916 elif test "x$build_alias" != "x$host_alias"; then
922 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
924 test "$silent" = yes && exec 6>/dev
/null
927 # Find the source files, if location was not specified.
928 if test -z "$srcdir"; then
929 ac_srcdir_defaulted
=yes
930 # Try the directory containing this script, then its parent.
931 ac_confdir
=`(dirname "$0") 2>/dev/null ||
932 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
933 X"$0" : 'X\(//\)[^/]' \| \
934 X"$0" : 'X\(//\)$' \| \
935 X"$0" : 'X\(/\)' \| \
936 . : '\(.\)' 2>/dev/null ||
938 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
939 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
940 /^X\(\/\/\)$/{ s//\1/; q; }
941 /^X\(\/\).*/{ s//\1/; q; }
944 if test ! -r $srcdir/$ac_unique_file; then
948 ac_srcdir_defaulted
=no
950 if test ! -r $srcdir/$ac_unique_file; then
951 if test "$ac_srcdir_defaulted" = yes; then
952 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
953 { (exit 1); exit 1; }; }
955 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
956 { (exit 1); exit 1; }; }
959 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
960 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
961 { (exit 1); exit 1; }; }
962 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
963 ac_env_build_alias_set
=${build_alias+set}
964 ac_env_build_alias_value
=$build_alias
965 ac_cv_env_build_alias_set
=${build_alias+set}
966 ac_cv_env_build_alias_value
=$build_alias
967 ac_env_host_alias_set
=${host_alias+set}
968 ac_env_host_alias_value
=$host_alias
969 ac_cv_env_host_alias_set
=${host_alias+set}
970 ac_cv_env_host_alias_value
=$host_alias
971 ac_env_target_alias_set
=${target_alias+set}
972 ac_env_target_alias_value
=$target_alias
973 ac_cv_env_target_alias_set
=${target_alias+set}
974 ac_cv_env_target_alias_value
=$target_alias
975 ac_env_CC_set
=${CC+set}
977 ac_cv_env_CC_set
=${CC+set}
978 ac_cv_env_CC_value
=$CC
979 ac_env_CFLAGS_set
=${CFLAGS+set}
980 ac_env_CFLAGS_value
=$CFLAGS
981 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
982 ac_cv_env_CFLAGS_value
=$CFLAGS
983 ac_env_LDFLAGS_set
=${LDFLAGS+set}
984 ac_env_LDFLAGS_value
=$LDFLAGS
985 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
986 ac_cv_env_LDFLAGS_value
=$LDFLAGS
987 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
988 ac_env_CPPFLAGS_value
=$CPPFLAGS
989 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
990 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
991 ac_env_CXX_set
=${CXX+set}
992 ac_env_CXX_value
=$CXX
993 ac_cv_env_CXX_set
=${CXX+set}
994 ac_cv_env_CXX_value
=$CXX
995 ac_env_CXXFLAGS_set
=${CXXFLAGS+set}
996 ac_env_CXXFLAGS_value
=$CXXFLAGS
997 ac_cv_env_CXXFLAGS_set
=${CXXFLAGS+set}
998 ac_cv_env_CXXFLAGS_value
=$CXXFLAGS
999 ac_env_CPP_set
=${CPP+set}
1000 ac_env_CPP_value
=$CPP
1001 ac_cv_env_CPP_set
=${CPP+set}
1002 ac_cv_env_CPP_value
=$CPP
1005 # Report the --help message.
1007 if test "$ac_init_help" = "long"; then
1008 # Omit some internal or obsolete options to make the list less imposing.
1009 # This message is too long to be a string in the A/UX 3.1 sh.
1011 \`configure' configures this package to adapt to many kinds of systems.
1013 Usage: $0 [OPTION]... [VAR=VALUE]...
1015 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1016 VAR=VALUE. See below for descriptions of some of the useful variables.
1018 Defaults for the options are specified in brackets.
1021 -h, --help display this help and exit
1022 --help=short display options specific to this package
1023 --help=recursive display the short help of all the included packages
1024 -V, --version display version information and exit
1025 -q, --quiet, --silent do not print \`checking...' messages
1026 --cache-file=FILE cache test results in FILE [disabled]
1027 -C, --config-cache alias for \`--cache-file=config.cache'
1028 -n, --no-create do not create output files
1029 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1034 Installation directories:
1035 --prefix=PREFIX install architecture-independent files in PREFIX
1036 [$ac_default_prefix]
1037 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1040 By default, \`make install' will install all the files in
1041 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1042 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1043 for instance \`--prefix=\$HOME'.
1045 For better control, use the options below.
1047 Fine tuning of the installation directories:
1048 --bindir=DIR user executables [EPREFIX/bin]
1049 --sbindir=DIR system admin executables [EPREFIX/sbin]
1050 --libexecdir=DIR program executables [EPREFIX/libexec]
1051 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1052 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1053 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1054 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1055 --libdir=DIR object code libraries [EPREFIX/lib]
1056 --includedir=DIR C header files [PREFIX/include]
1057 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1058 --infodir=DIR info documentation [PREFIX/info]
1059 --mandir=DIR man documentation [PREFIX/man]
1065 --x-includes=DIR X include files are
in DIR
1066 --x-libraries=DIR X library files are
in DIR
1070 if test -n "$ac_init_help"; then
1075 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1076 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1077 --with-x use the X Window System
1078 --with-appresdir=DIR X11 application resource files
1080 Some influential environment variables
:
1081 CC C compiler
command
1082 CFLAGS C compiler flags
1083 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1084 nonstandard directory
<lib dir
>
1085 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
1086 headers
in a nonstandard directory
<include dir
>
1087 CXX C
++ compiler
command
1088 CXXFLAGS C
++ compiler flags
1091 Use these variables to override the choices made by
`configure' or to help
1092 it to find libraries and programs with nonstandard names/locations.
1097 if test "$ac_init_help" = "recursive"; then
1098 # If there are subdirs, report their specific --help.
1100 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1101 test -d $ac_dir || continue
1104 if test "$ac_dir" != .; then
1105 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1106 # A "../" for each directory in $ac_dir_suffix.
1107 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
1109 ac_dir_suffix= ac_top_builddir=
1113 .) # No --srcdir option. We are building in place.
1115 if test -z "$ac_top_builddir"; then
1118 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
1120 [\\/]* | ?:[\\/]* ) # Absolute path.
1121 ac_srcdir=$srcdir$ac_dir_suffix;
1122 ac_top_srcdir=$srcdir ;;
1124 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1125 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1128 # Do not use `cd foo
&& pwd` to compute absolute paths, because
1129 # the directories may not exist.
1131 .) ac_abs_builddir="$ac_dir";;
1134 .) ac_abs_builddir=`pwd`;;
1135 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1136 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1139 case $ac_abs_builddir in
1140 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1142 case ${ac_top_builddir}. in
1143 .) ac_abs_top_builddir=$ac_abs_builddir;;
1144 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1145 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1148 case $ac_abs_builddir in
1149 .) ac_abs_srcdir=$ac_srcdir;;
1152 .) ac_abs_srcdir=$ac_abs_builddir;;
1153 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1154 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1157 case $ac_abs_builddir in
1158 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1160 case $ac_top_srcdir in
1161 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1162 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1163 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1168 # Check for guested configure; otherwise get Cygnus style configure.
1169 if test -f $ac_srcdir/configure.gnu; then
1171 $SHELL $ac_srcdir/configure.gnu --help=recursive
1172 elif test -f $ac_srcdir/configure; then
1174 $SHELL $ac_srcdir/configure --help=recursive
1175 elif test -f $ac_srcdir/configure.ac ||
1176 test -f $ac_srcdir/configure.in; then
1178 $ac_configure --help
1180 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1186 test -n "$ac_init_help" && exit 0
1187 if $ac_init_version; then
1190 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002,
1191 2003, 2004 Free Software Foundation, Inc.
1192 This configure script is free software; the Free Software Foundation
1193 gives unlimited permission to copy, distribute and modify it.
1199 This file contains any messages produced by compilers while
1200 running configure, to aid debugging if configure makes a mistake.
1202 It was created by $as_me, which was
1203 generated by GNU Autoconf 2.59a. Invocation command line was
1214 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1215 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1216 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1217 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1218 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1220 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1221 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1223 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1224 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1225 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1226 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1227 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1228 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1229 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1237 test -z "$as_dir" && as_dir=.
1238 echo "PATH: $as_dir"
1253 # Keep a trace of the command line.
1254 # Strip out --no-create and --no-recursion so they do not pile up.
1255 # Strip out --silent because we don't want to record it for future runs.
1256 # Also quote any args containing shell meta-characters.
1257 # Make two passes to allow for proper duplicate-argument suppression.
1262 ac_must_keep_next=false
1268 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1269 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1270 | -silent | --silent | --silen | --sile | --sil)
1272 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1273 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1276 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1278 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1279 if test $ac_must_keep_next = true; then
1280 ac_must_keep_next=false # Got value, back to normal.
1283 *=* | --config-cache | -C | -disable-* | --disable-* \
1284 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1285 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1286 | -with-* | --with-* | -without-* | --without-* | --x)
1287 case "$ac_configure_args0 " in
1288 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1291 -* ) ac_must_keep_next=true ;;
1294 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1295 # Get rid of the leading space.
1301 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1302 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1304 # When interrupted or exit'd, cleanup temporary files, and complete
1305 # config.log. We remove comments because anyway the quotes in there
1306 # would cause problems or look ugly.
1307 # WARNING: Be sure not to use single quotes in there, as some shells,
1308 # such as our DU 5.0 friend, will then `close
' the trap.
1309 trap 'exit_status
=$?
1310 # Save into config.log some information that might help in debugging.
1315 ## ---------------- ##
1316 ## Cache variables. ##
1317 ## ---------------- ##
1320 # The following way of writing the cache mishandles newlines in values,
1323 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1326 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1327 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1331 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1338 ## ----------------- ##
1339 ## Output variables. ##
1340 ## ----------------- ##
1343 for ac_var
in $ac_subst_vars
1345 eval ac_val
=$
`echo $ac_var`
1346 echo "$ac_var='"'"'$ac_val'"'"'"
1350 if test -n "$ac_subst_files"; then
1357 for ac_var
in $ac_subst_files
1359 eval ac_val
=$
`echo $ac_var`
1360 echo "$ac_var='"'"'$ac_val'"'"'"
1365 if test -s confdefs.h
; then
1372 sed "/^$/d" confdefs.h |
sort
1375 test "$ac_signal" != 0 &&
1376 echo "$as_me: caught signal $ac_signal"
1377 echo "$as_me: exit $exit_status"
1379 rm -f core
*.core
&&
1380 rm -f -r conftest
* confdefs
* conf$$
* $ac_clean_files &&
1383 for ac_signal in 1 2 13 15; do
1384 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1388 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1389 rm -f -r conftest* confdefs.h
1390 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1391 # NextStep 3.3 (patch 3) loses unless the first echo outputs at least 14 bytes.
1393 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
1395 # Predefined preprocessor variables.
1397 cat >>confdefs.h <<_ACEOF
1398 #define PACKAGE_NAME "$PACKAGE_NAME"
1402 cat >>confdefs.h <<_ACEOF
1403 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1407 cat >>confdefs.h <<_ACEOF
1408 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1412 cat >>confdefs.h <<_ACEOF
1413 #define PACKAGE_STRING "$PACKAGE_STRING"
1417 cat >>confdefs.h <<_ACEOF
1418 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1422 # Let the site file select an alternate cache file if it wants to.
1423 # Prefer explicitly selected file to automatically selected ones.
1424 if test -z "$CONFIG_SITE"; then
1425 if test "x$prefix" != xNONE; then
1426 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1428 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1431 for ac_site_file in $CONFIG_SITE; do
1432 if test -r "$ac_site_file"; then
1433 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1434 echo "$as_me: loading site script $ac_site_file" >&6;}
1435 sed 's
/^
/|
/' "$ac_site_file" >&5
1440 if test -r "$cache_file"; then
1441 # Some versions of bash will fail to source /dev/null (special
1442 # files actually), so we avoid doing that.
1443 if test -f "$cache_file"; then
1444 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1445 echo "$as_me: loading cache $cache_file" >&6;}
1447 [\\/]* | ?:[\\/]* ) . $cache_file;;
1448 *) . ./$cache_file;;
1452 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1453 echo "$as_me: creating cache $cache_file" >&6;}
1457 # Check that the precious variables saved in the cache have kept the same
1459 ac_cache_corrupted=false
1460 for ac_var in `(set) 2>&1 |
1461 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1462 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1463 eval ac_new_set=\$ac_env_${ac_var}_set
1464 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1465 eval ac_new_val="\$ac_env_${ac_var}_value"
1466 case $ac_old_set,$ac_new_set in
1468 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1469 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1470 ac_cache_corrupted=: ;;
1472 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1473 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1474 ac_cache_corrupted=: ;;
1477 if test "x$ac_old_val" != "x$ac_new_val"; then
1478 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1479 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1480 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1481 echo "$as_me: former value: $ac_old_val" >&2;}
1482 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1483 echo "$as_me: current value: $ac_new_val" >&2;}
1484 ac_cache_corrupted=:
1487 # Pass precious variables to config.status.
1488 if test "$ac_new_set" = set; then
1490 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1491 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1492 *) ac_arg=$ac_var=$ac_new_val ;;
1494 case " $ac_configure_args " in
1495 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1496 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1500 if $ac_cache_corrupted; then
1501 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1502 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1503 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1504 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1505 { (exit 1); exit 1; }; }
1509 ac_cpp='$CPP $CPPFLAGS'
1510 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1511 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1512 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1533 ac_config_headers="$ac_config_headers src/include/config.h:src/include/config.hin"
1537 # checks for programs
1539 ac_cpp='$CPP $CPPFLAGS'
1540 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1541 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1542 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1543 if test -n "$ac_tool_prefix"; then
1544 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1545 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1546 echo "$as_me:$LINENO: checking for $ac_word" >&5
1547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1548 if test "${ac_cv_prog_CC+set}" = set; then
1549 echo $ECHO_N "(cached) $ECHO_C" >&6
1551 if test -n "$CC"; then
1552 ac_cv_prog_CC="$CC" # Let the user override the test.
1554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1558 test -z "$as_dir" && as_dir=.
1559 for ac_exec_ext in '' $ac_executable_extensions; do
1560 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1561 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1562 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1571 if test -n "$CC"; then
1572 echo "$as_me:$LINENO: result: $CC" >&5
1573 echo "${ECHO_T}$CC" >&6
1575 echo "$as_me:$LINENO: result: no" >&5
1576 echo "${ECHO_T}no" >&6
1580 if test -z "$ac_cv_prog_CC"; then
1582 # Extract the first word of "gcc", so it can be a program name with args.
1583 set dummy gcc; ac_word=$2
1584 echo "$as_me:$LINENO: checking for $ac_word" >&5
1585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1586 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1587 echo $ECHO_N "(cached) $ECHO_C" >&6
1589 if test -n "$ac_ct_CC"; then
1590 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1596 test -z "$as_dir" && as_dir=.
1597 for ac_exec_ext in '' $ac_executable_extensions; do
1598 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1599 ac_cv_prog_ac_ct_CC="gcc"
1600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1608 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1609 if test -n "$ac_ct_CC"; then
1610 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1611 echo "${ECHO_T}$ac_ct_CC" >&6
1613 echo "$as_me:$LINENO: result: no" >&5
1614 echo "${ECHO_T}no" >&6
1617 if test "x$ac_ct_CC" = x; then
1620 if test "$build" != "$host"; then
1621 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1622 whose name does not start with the host triplet. If you think this
1623 configuration is useful to you, please write to autoconf@gnu.org." >&5
1624 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1625 whose name does not start with the host triplet. If you think this
1626 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1634 if test -z "$CC"; then
1635 if test -n "$ac_tool_prefix"; then
1636 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1637 set dummy ${ac_tool_prefix}cc; ac_word=$2
1638 echo "$as_me:$LINENO: checking for $ac_word" >&5
1639 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1640 if test "${ac_cv_prog_CC+set}" = set; then
1641 echo $ECHO_N "(cached) $ECHO_C" >&6
1643 if test -n "$CC"; then
1644 ac_cv_prog_CC="$CC" # Let the user override the test.
1646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1650 test -z "$as_dir" && as_dir=.
1651 for ac_exec_ext in '' $ac_executable_extensions; do
1652 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1653 ac_cv_prog_CC="${ac_tool_prefix}cc"
1654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1663 if test -n "$CC"; then
1664 echo "$as_me:$LINENO: result: $CC" >&5
1665 echo "${ECHO_T}$CC" >&6
1667 echo "$as_me:$LINENO: result: no" >&5
1668 echo "${ECHO_T}no" >&6
1672 if test -z "$ac_cv_prog_CC"; then
1674 # Extract the first word of "cc", so it can be a program name with args.
1675 set dummy cc; ac_word=$2
1676 echo "$as_me:$LINENO: checking for $ac_word" >&5
1677 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1678 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1679 echo $ECHO_N "(cached) $ECHO_C" >&6
1681 if test -n "$ac_ct_CC"; then
1682 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1688 test -z "$as_dir" && as_dir=.
1689 for ac_exec_ext in '' $ac_executable_extensions; do
1690 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1691 ac_cv_prog_ac_ct_CC="cc"
1692 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1700 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1701 if test -n "$ac_ct_CC"; then
1702 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1703 echo "${ECHO_T}$ac_ct_CC" >&6
1705 echo "$as_me:$LINENO: result: no" >&5
1706 echo "${ECHO_T}no" >&6
1709 if test "x$ac_ct_CC" = x; then
1712 if test "$build" != "$host"; then
1713 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1714 whose name does not start with the host triplet. If you think this
1715 configuration is useful to you, please write to autoconf@gnu.org." >&5
1716 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1717 whose name does not start with the host triplet. If you think this
1718 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1727 if test -z "$CC"; then
1728 # Extract the first word of "cc", so it can be a program name with args.
1729 set dummy cc; ac_word=$2
1730 echo "$as_me:$LINENO: checking for $ac_word" >&5
1731 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1732 if test "${ac_cv_prog_CC+set}" = set; then
1733 echo $ECHO_N "(cached) $ECHO_C" >&6
1735 if test -n "$CC"; then
1736 ac_cv_prog_CC="$CC" # Let the user override the test.
1739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1743 test -z "$as_dir" && as_dir=.
1744 for ac_exec_ext in '' $ac_executable_extensions; do
1745 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1746 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1747 ac_prog_rejected=yes
1751 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1757 if test $ac_prog_rejected = yes; then
1758 # We found a bogon in the path, so make sure we never use it.
1759 set dummy $ac_cv_prog_CC
1761 if test $# != 0; then
1762 # We chose a different compiler from the bogus one.
1763 # However, it has the same basename, so the bogon will be chosen
1764 # first if we set CC to just the basename; use the full file name.
1766 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1772 if test -n "$CC"; then
1773 echo "$as_me:$LINENO: result: $CC" >&5
1774 echo "${ECHO_T}$CC" >&6
1776 echo "$as_me:$LINENO: result: no" >&5
1777 echo "${ECHO_T}no" >&6
1781 if test -z "$CC"; then
1782 if test -n "$ac_tool_prefix"; then
1785 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1786 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1787 echo "$as_me:$LINENO: checking for $ac_word" >&5
1788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1789 if test "${ac_cv_prog_CC+set}" = set; then
1790 echo $ECHO_N "(cached) $ECHO_C" >&6
1792 if test -n "$CC"; then
1793 ac_cv_prog_CC="$CC" # Let the user override the test.
1795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1799 test -z "$as_dir" && as_dir=.
1800 for ac_exec_ext in '' $ac_executable_extensions; do
1801 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1802 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1812 if test -n "$CC"; then
1813 echo "$as_me:$LINENO: result: $CC" >&5
1814 echo "${ECHO_T}$CC" >&6
1816 echo "$as_me:$LINENO: result: no" >&5
1817 echo "${ECHO_T}no" >&6
1820 test -n "$CC" && break
1823 if test -z "$CC"; then
1827 # Extract the first word of "$ac_prog", so it can be a program name with args.
1828 set dummy $ac_prog; ac_word=$2
1829 echo "$as_me:$LINENO: checking for $ac_word" >&5
1830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1831 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1832 echo $ECHO_N "(cached) $ECHO_C" >&6
1834 if test -n "$ac_ct_CC"; then
1835 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1841 test -z "$as_dir" && as_dir=.
1842 for ac_exec_ext in '' $ac_executable_extensions; do
1843 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1844 ac_cv_prog_ac_ct_CC="$ac_prog"
1845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1853 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1854 if test -n "$ac_ct_CC"; then
1855 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1856 echo "${ECHO_T}$ac_ct_CC" >&6
1858 echo "$as_me:$LINENO: result: no" >&5
1859 echo "${ECHO_T}no" >&6
1862 test -n "$ac_ct_CC" && break
1865 if test "x$ac_ct_CC" = x; then
1868 if test "$build" != "$host"; then
1869 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1870 whose name does not start with the host triplet. If you think this
1871 configuration is useful to you, please write to autoconf@gnu.org." >&5
1872 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1873 whose name does not start with the host triplet. If you think this
1874 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1883 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1884 See \`config.log' for more details.
" >&5
1885 echo "$as_me: error
: no acceptable C compiler found
in \
$PATH
1886 See \
`config.log' for more details." >&2;}
1887 { (exit 1); exit 1; }; }
1889 # Provide some information about the compiler.
1890 echo "$as_me:$LINENO:" \
1891 "checking for C compiler version" >&5
1892 ac_compiler=`set X
$ac_compile; echo $2`
1893 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1894 (eval $ac_compiler --version </dev/null >&5) 2>&5
1896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1897 (exit $ac_status); }
1898 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1899 (eval $ac_compiler -v </dev/null >&5) 2>&5
1901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1902 (exit $ac_status); }
1903 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1904 (eval $ac_compiler -V </dev/null >&5) 2>&5
1906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1907 (exit $ac_status); }
1909 cat >conftest.$ac_ext <<_ACEOF
1912 cat confdefs.h >>conftest.$ac_ext
1913 cat >>conftest.$ac_ext <<_ACEOF
1914 /* end confdefs.h. */
1924 ac_clean_files_save=$ac_clean_files
1925 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1926 # Try to create an executable without -o first, disregard a.out.
1927 # It will help us diagnose broken compilers, and finding out an intuition
1929 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1930 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1931 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
1932 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1933 (eval $ac_link_default) 2>&5
1935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1936 (exit $ac_status); }; then
1937 # Find the output, starting from the most likely. This scheme is
1938 # not robust to junk in `.
', hence go to wildcards (a.*) only as a last
1941 # Be careful to initialize this variable, since it used to be cached.
1942 # Otherwise an old cache value of `no' led to
`EXEEXT = no' in a Makefile.
1944 # b.out is created by i960 compilers.
1945 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1947 test -f "$ac_file" || continue
1949 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1952 # This is the source file.
1955 # We found the default executable, but exeext='' is most
1959 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1960 # FIXME: I believe we export ac_cv_exeext for Libtool,
1961 # but it would be cool to find out if it's true. Does anybody
1962 # maintain Libtool? --akim.
1970 echo "$as_me: failed program was:" >&5
1971 sed 's/^/| /' conftest.$ac_ext >&5
1973 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1974 See \`config.log
' for more details." >&5
1975 echo "$as_me: error: C compiler cannot create executables
1976 See \`config.log' for more details.
" >&2;}
1977 { (exit 77); exit 77; }; }
1980 ac_exeext=$ac_cv_exeext
1981 echo "$as_me:$LINENO: result
: $ac_file" >&5
1982 echo "${ECHO_T}$ac_file" >&6
1984 # Check the compiler produces executables we can run. If not, either
1985 # the compiler is broken, or we cross compile.
1986 echo "$as_me:$LINENO: checking whether the C compiler works
" >&5
1987 echo $ECHO_N "checking whether the C compiler works...
$ECHO_C" >&6
1988 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1989 # If not cross compiling, check that we can run a simple program.
1990 if test "$cross_compiling" != yes; then
1991 if { ac_try='./$ac_file'
1992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1995 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
1996 (exit $ac_status); }; }; then
1999 if test "$cross_compiling" = maybe; then
2002 { { echo "$as_me:$LINENO: error
: cannot run C compiled programs.
2003 If you meant to cross compile
, use \
`--host'.
2004 See \`config.log
' for more details." >&5
2005 echo "$as_me: error: cannot run C compiled programs.
2006 If you meant to cross compile, use \`--host'.
2007 See \
`config.log' for more details." >&2;}
2008 { (exit 1); exit 1; }; }
2012 echo "$as_me:$LINENO: result: yes" >&5
2013 echo "${ECHO_T}yes" >&6
2015 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2016 ac_clean_files=$ac_clean_files_save
2017 # Check the compiler produces executables we can run. If not, either
2018 # the compiler is broken, or we cross compile.
2019 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2020 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2021 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2022 echo "${ECHO_T}$cross_compiling" >&6
2024 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2025 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2027 (eval $ac_link) 2>&5
2029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2030 (exit $ac_status); }; then
2031 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
2032 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
2033 # work properly (i.e., refer to `conftest.exe'), while it won't with
2035 for ac_file
in conftest.exe conftest conftest.
*; do
2036 test -f "$ac_file" ||
continue
2038 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
2039 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2046 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2047 See \`config.log' for more details." >&5
2048 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2049 See \`config.log' for more details." >&2;}
2050 { (exit 1); exit 1; }; }
2053 rm -f conftest
$ac_cv_exeext
2054 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2055 echo "${ECHO_T}$ac_cv_exeext" >&6
2057 rm -f conftest.
$ac_ext
2058 EXEEXT
=$ac_cv_exeext
2060 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2061 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2062 if test "${ac_cv_objext+set}" = set; then
2063 echo $ECHO_N "(cached) $ECHO_C" >&6
2065 cat >conftest.
$ac_ext <<_ACEOF
2068 cat confdefs.h
>>conftest.
$ac_ext
2069 cat >>conftest.
$ac_ext <<_ACEOF
2070 /* end confdefs.h. */
2080 rm -f conftest.o conftest.obj
2081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2082 (eval $ac_compile) 2>&5
2084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2085 (exit $ac_status); }; then
2086 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2088 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
2089 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2094 echo "$as_me: failed program was:" >&5
2095 sed 's/^/| /' conftest.
$ac_ext >&5
2097 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2098 See \`config.log' for more details." >&5
2099 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2100 See \`config.log' for more details." >&2;}
2101 { (exit 1); exit 1; }; }
2104 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2106 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2107 echo "${ECHO_T}$ac_cv_objext" >&6
2108 OBJEXT
=$ac_cv_objext
2110 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2111 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2112 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2113 echo $ECHO_N "(cached) $ECHO_C" >&6
2115 cat >conftest.
$ac_ext <<_ACEOF
2118 cat confdefs.h
>>conftest.
$ac_ext
2119 cat >>conftest.
$ac_ext <<_ACEOF
2120 /* end confdefs.h. */
2133 rm -f conftest.
$ac_objext
2134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2135 (eval $ac_compile) 2>conftest.er1
2137 grep -v '^ *+' conftest.er1
>conftest.err
2139 cat conftest.err
>&5
2140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2141 (exit $ac_status); } &&
2142 { ac_try
='test -z "$ac_c_werror_flag"
2143 || test ! -s conftest.err'
2144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2148 (exit $ac_status); }; } &&
2149 { ac_try
='test -s conftest.$ac_objext'
2150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2154 (exit $ac_status); }; }; then
2157 echo "$as_me: failed program was:" >&5
2158 sed 's/^/| /' conftest.
$ac_ext >&5
2162 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2163 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2166 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2167 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2168 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2169 ac_test_CFLAGS
=${CFLAGS+set}
2170 ac_save_CFLAGS
=$CFLAGS
2172 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2173 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2174 if test "${ac_cv_prog_cc_g+set}" = set; then
2175 echo $ECHO_N "(cached) $ECHO_C" >&6
2177 cat >conftest.
$ac_ext <<_ACEOF
2180 cat confdefs.h
>>conftest.
$ac_ext
2181 cat >>conftest.
$ac_ext <<_ACEOF
2182 /* end confdefs.h. */
2192 rm -f conftest.
$ac_objext
2193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2194 (eval $ac_compile) 2>conftest.er1
2196 grep -v '^ *+' conftest.er1
>conftest.err
2198 cat conftest.err
>&5
2199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2200 (exit $ac_status); } &&
2201 { ac_try
='test -z "$ac_c_werror_flag"
2202 || test ! -s conftest.err'
2203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2207 (exit $ac_status); }; } &&
2208 { ac_try
='test -s conftest.$ac_objext'
2209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2213 (exit $ac_status); }; }; then
2216 echo "$as_me: failed program was:" >&5
2217 sed 's/^/| /' conftest.
$ac_ext >&5
2221 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2223 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2224 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2225 if test "$ac_test_CFLAGS" = set; then
2226 CFLAGS
=$ac_save_CFLAGS
2227 elif test $ac_cv_prog_cc_g = yes; then
2228 if test "$GCC" = yes; then
2234 if test "$GCC" = yes; then
2240 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2241 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2242 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2243 echo $ECHO_N "(cached) $ECHO_C" >&6
2245 ac_cv_prog_cc_stdc
=no
2247 cat >conftest.
$ac_ext <<_ACEOF
2250 cat confdefs.h
>>conftest.
$ac_ext
2251 cat >>conftest.
$ac_ext <<_ACEOF
2252 /* end confdefs.h. */
2255 #include <sys/types.h>
2256 #include <sys/stat.h>
2257 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2258 struct buf { int x; };
2259 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2260 static char *e (p, i)
2266 static char *f (char * (*g) (char **, int), char **p, ...)
2271 s = g (p, va_arg (v,int));
2276 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2277 function prototypes and stuff, but not '\xHH' hex character constants.
2278 These don't provoke an error unfortunately, instead are silently treated
2279 as 'x'. The following induces an error, until -std is added to get
2280 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2281 array size at least. It's necessary to write '\x00'==0 to get something
2282 that's true only with -std. */
2283 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2285 int test (int i, double x);
2286 struct s1 {int (*f) (int a);};
2287 struct s2 {int (*f) (double a);};
2288 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2294 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2299 # Don't try gcc -ansi; that turns off useful extensions and
2300 # breaks some systems' header files.
2301 # AIX -qlanglvl=ansi
2302 # Ultrix, OSF/1, Tru64 -std
2303 # HP-UX 10.20 and later -Ae
2304 # HP-UX older versions -Aa -D_HPUX_SOURCE
2305 # SVR4 -Xc -D__EXTENSIONS__
2306 for ac_arg
in "" -qlanglvl=ansi
-std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2308 CC
="$ac_save_CC $ac_arg"
2309 rm -f conftest.
$ac_objext
2310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2311 (eval $ac_compile) 2>conftest.er1
2313 grep -v '^ *+' conftest.er1
>conftest.err
2315 cat conftest.err
>&5
2316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2317 (exit $ac_status); } &&
2318 { ac_try
='test -z "$ac_c_werror_flag"
2319 || test ! -s conftest.err'
2320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2324 (exit $ac_status); }; } &&
2325 { ac_try
='test -s conftest.$ac_objext'
2326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330 (exit $ac_status); }; }; then
2331 ac_cv_prog_cc_stdc
=$ac_arg
2334 echo "$as_me: failed program was:" >&5
2335 sed 's/^/| /' conftest.
$ac_ext >&5
2338 rm -f conftest.err conftest.
$ac_objext
2340 rm -f conftest.
$ac_ext conftest.
$ac_objext
2345 case "x$ac_cv_prog_cc_stdc" in
2347 echo "$as_me:$LINENO: result: none needed" >&5
2348 echo "${ECHO_T}none needed" >&6 ;;
2350 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2351 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2352 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2355 # Some people use a C++ compiler to compile C. Since we use `exit',
2356 # in C++ we need to declare it. In case someone uses the same compiler
2357 # for both compiling C and C++ we need to have the C++ compiler decide
2358 # the declaration of exit, since it's the most demanding environment.
2359 cat >conftest.
$ac_ext <<_ACEOF
2364 rm -f conftest.
$ac_objext
2365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2366 (eval $ac_compile) 2>conftest.er1
2368 grep -v '^ *+' conftest.er1
>conftest.err
2370 cat conftest.err
>&5
2371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2372 (exit $ac_status); } &&
2373 { ac_try
='test -z "$ac_c_werror_flag"
2374 || test ! -s conftest.err'
2375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2379 (exit $ac_status); }; } &&
2380 { ac_try
='test -s conftest.$ac_objext'
2381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385 (exit $ac_status); }; }; then
2386 for ac_declaration
in \
2388 'extern "C" void std::exit (int) throw (); using std::exit;' \
2389 'extern "C" void std::exit (int); using std::exit;' \
2390 'extern "C" void exit (int) throw ();' \
2391 'extern "C" void exit (int);' \
2394 cat >conftest.
$ac_ext <<_ACEOF
2397 cat confdefs.h
>>conftest.
$ac_ext
2398 cat >>conftest.
$ac_ext <<_ACEOF
2399 /* end confdefs.h. */
2410 rm -f conftest.
$ac_objext
2411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2412 (eval $ac_compile) 2>conftest.er1
2414 grep -v '^ *+' conftest.er1
>conftest.err
2416 cat conftest.err
>&5
2417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2418 (exit $ac_status); } &&
2419 { ac_try
='test -z "$ac_c_werror_flag"
2420 || test ! -s conftest.err'
2421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2425 (exit $ac_status); }; } &&
2426 { ac_try
='test -s conftest.$ac_objext'
2427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2431 (exit $ac_status); }; }; then
2434 echo "$as_me: failed program was:" >&5
2435 sed 's/^/| /' conftest.
$ac_ext >&5
2439 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2440 cat >conftest.
$ac_ext <<_ACEOF
2443 cat confdefs.h
>>conftest.
$ac_ext
2444 cat >>conftest.
$ac_ext <<_ACEOF
2445 /* end confdefs.h. */
2455 rm -f conftest.
$ac_objext
2456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2457 (eval $ac_compile) 2>conftest.er1
2459 grep -v '^ *+' conftest.er1
>conftest.err
2461 cat conftest.err
>&5
2462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463 (exit $ac_status); } &&
2464 { ac_try
='test -z "$ac_c_werror_flag"
2465 || test ! -s conftest.err'
2466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470 (exit $ac_status); }; } &&
2471 { ac_try
='test -s conftest.$ac_objext'
2472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2476 (exit $ac_status); }; }; then
2479 echo "$as_me: failed program was:" >&5
2480 sed 's/^/| /' conftest.
$ac_ext >&5
2483 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2486 if test -n "$ac_declaration"; then
2487 echo '#ifdef __cplusplus' >>confdefs.h
2488 echo $ac_declaration >>confdefs.h
2489 echo '#endif' >>confdefs.h
2493 echo "$as_me: failed program was:" >&5
2494 sed 's/^/| /' conftest.
$ac_ext >&5
2497 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2499 ac_cpp
='$CPP $CPPFLAGS'
2500 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2501 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2502 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2505 ac_cpp
='$CXXCPP $CPPFLAGS'
2506 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2507 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2508 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
2509 if test -n "$ac_tool_prefix"; then
2510 for ac_prog
in $CCC g
++ c
++ gpp aCC CC cxx cc
++ cl FCC KCC RCC xlC_r xlC
2512 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2513 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2514 echo "$as_me:$LINENO: checking for $ac_word" >&5
2515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2516 if test "${ac_cv_prog_CXX+set}" = set; then
2517 echo $ECHO_N "(cached) $ECHO_C" >&6
2519 if test -n "$CXX"; then
2520 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
2522 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2526 test -z "$as_dir" && as_dir
=.
2527 for ac_exec_ext
in '' $ac_executable_extensions; do
2528 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2529 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
2530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2539 if test -n "$CXX"; then
2540 echo "$as_me:$LINENO: result: $CXX" >&5
2541 echo "${ECHO_T}$CXX" >&6
2543 echo "$as_me:$LINENO: result: no" >&5
2544 echo "${ECHO_T}no" >&6
2547 test -n "$CXX" && break
2550 if test -z "$CXX"; then
2552 for ac_prog
in $CCC g
++ c
++ gpp aCC CC cxx cc
++ cl FCC KCC RCC xlC_r xlC
2554 # Extract the first word of "$ac_prog", so it can be a program name with args.
2555 set dummy
$ac_prog; ac_word
=$2
2556 echo "$as_me:$LINENO: checking for $ac_word" >&5
2557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2558 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2559 echo $ECHO_N "(cached) $ECHO_C" >&6
2561 if test -n "$ac_ct_CXX"; then
2562 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
2564 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2568 test -z "$as_dir" && as_dir
=.
2569 for ac_exec_ext
in '' $ac_executable_extensions; do
2570 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2571 ac_cv_prog_ac_ct_CXX
="$ac_prog"
2572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2580 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
2581 if test -n "$ac_ct_CXX"; then
2582 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2583 echo "${ECHO_T}$ac_ct_CXX" >&6
2585 echo "$as_me:$LINENO: result: no" >&5
2586 echo "${ECHO_T}no" >&6
2589 test -n "$ac_ct_CXX" && break
2592 if test "x$ac_ct_CXX" = x
; then
2595 if test "$build" != "$host"; then
2596 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2597 whose name does not start with the host triplet. If you think this
2598 configuration is useful to you, please write to autoconf@gnu.org." >&5
2599 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2600 whose name does not start with the host triplet. If you think this
2601 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2608 # Provide some information about the compiler.
2609 echo "$as_me:$LINENO:" \
2610 "checking for C++ compiler version" >&5
2611 ac_compiler
=`set X $ac_compile; echo $2`
2612 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2613 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2616 (exit $ac_status); }
2617 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2618 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621 (exit $ac_status); }
2622 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2623 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626 (exit $ac_status); }
2628 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2629 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2630 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2631 echo $ECHO_N "(cached) $ECHO_C" >&6
2633 cat >conftest.
$ac_ext <<_ACEOF
2636 cat confdefs.h
>>conftest.
$ac_ext
2637 cat >>conftest.
$ac_ext <<_ACEOF
2638 /* end confdefs.h. */
2651 rm -f conftest.
$ac_objext
2652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2653 (eval $ac_compile) 2>conftest.er1
2655 grep -v '^ *+' conftest.er1
>conftest.err
2657 cat conftest.err
>&5
2658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2659 (exit $ac_status); } &&
2660 { ac_try
='test -z "$ac_cxx_werror_flag"
2661 || test ! -s conftest.err'
2662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2666 (exit $ac_status); }; } &&
2667 { ac_try
='test -s conftest.$ac_objext'
2668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2672 (exit $ac_status); }; }; then
2675 echo "$as_me: failed program was:" >&5
2676 sed 's/^/| /' conftest.
$ac_ext >&5
2680 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2681 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
2684 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2685 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2686 GXX
=`test $ac_compiler_gnu = yes && echo yes`
2687 ac_test_CXXFLAGS
=${CXXFLAGS+set}
2688 ac_save_CXXFLAGS
=$CXXFLAGS
2690 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2691 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2692 if test "${ac_cv_prog_cxx_g+set}" = set; then
2693 echo $ECHO_N "(cached) $ECHO_C" >&6
2695 cat >conftest.
$ac_ext <<_ACEOF
2698 cat confdefs.h
>>conftest.
$ac_ext
2699 cat >>conftest.
$ac_ext <<_ACEOF
2700 /* end confdefs.h. */
2710 rm -f conftest.
$ac_objext
2711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2712 (eval $ac_compile) 2>conftest.er1
2714 grep -v '^ *+' conftest.er1
>conftest.err
2716 cat conftest.err
>&5
2717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718 (exit $ac_status); } &&
2719 { ac_try
='test -z "$ac_cxx_werror_flag"
2720 || test ! -s conftest.err'
2721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2725 (exit $ac_status); }; } &&
2726 { ac_try
='test -s conftest.$ac_objext'
2727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731 (exit $ac_status); }; }; then
2732 ac_cv_prog_cxx_g
=yes
2734 echo "$as_me: failed program was:" >&5
2735 sed 's/^/| /' conftest.
$ac_ext >&5
2739 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2741 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2742 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2743 if test "$ac_test_CXXFLAGS" = set; then
2744 CXXFLAGS
=$ac_save_CXXFLAGS
2745 elif test $ac_cv_prog_cxx_g = yes; then
2746 if test "$GXX" = yes; then
2752 if test "$GXX" = yes; then
2758 for ac_declaration
in \
2760 'extern "C" void std::exit (int) throw (); using std::exit;' \
2761 'extern "C" void std::exit (int); using std::exit;' \
2762 'extern "C" void exit (int) throw ();' \
2763 'extern "C" void exit (int);' \
2766 cat >conftest.
$ac_ext <<_ACEOF
2769 cat confdefs.h
>>conftest.
$ac_ext
2770 cat >>conftest.
$ac_ext <<_ACEOF
2771 /* end confdefs.h. */
2782 rm -f conftest.
$ac_objext
2783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2784 (eval $ac_compile) 2>conftest.er1
2786 grep -v '^ *+' conftest.er1
>conftest.err
2788 cat conftest.err
>&5
2789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2790 (exit $ac_status); } &&
2791 { ac_try
='test -z "$ac_cxx_werror_flag"
2792 || test ! -s conftest.err'
2793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797 (exit $ac_status); }; } &&
2798 { ac_try
='test -s conftest.$ac_objext'
2799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2803 (exit $ac_status); }; }; then
2806 echo "$as_me: failed program was:" >&5
2807 sed 's/^/| /' conftest.
$ac_ext >&5
2811 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2812 cat >conftest.
$ac_ext <<_ACEOF
2815 cat confdefs.h
>>conftest.
$ac_ext
2816 cat >>conftest.
$ac_ext <<_ACEOF
2817 /* end confdefs.h. */
2827 rm -f conftest.
$ac_objext
2828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2829 (eval $ac_compile) 2>conftest.er1
2831 grep -v '^ *+' conftest.er1
>conftest.err
2833 cat conftest.err
>&5
2834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2835 (exit $ac_status); } &&
2836 { ac_try
='test -z "$ac_cxx_werror_flag"
2837 || test ! -s conftest.err'
2838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2842 (exit $ac_status); }; } &&
2843 { ac_try
='test -s conftest.$ac_objext'
2844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848 (exit $ac_status); }; }; then
2851 echo "$as_me: failed program was:" >&5
2852 sed 's/^/| /' conftest.
$ac_ext >&5
2855 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2858 if test -n "$ac_declaration"; then
2859 echo '#ifdef __cplusplus' >>confdefs.h
2860 echo $ac_declaration >>confdefs.h
2861 echo '#endif' >>confdefs.h
2865 ac_cpp
='$CPP $CPPFLAGS'
2866 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2867 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2868 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2873 ac_cpp
='$CXXCPP $CPPFLAGS'
2874 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2875 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2876 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
2878 if test "$cross_compiling" = no
; then
2879 echo "$as_me:$LINENO: checking that C++ compiler can compile simple program" >&5
2880 echo $ECHO_N "checking that C++ compiler can compile simple program... $ECHO_C" >&6
2882 if test "$cross_compiling" = yes; then
2885 cat >conftest.
$ac_ext <<_ACEOF
2889 cat confdefs.h
>>conftest.
$ac_ext
2890 cat >>conftest.
$ac_ext <<_ACEOF
2891 /* end confdefs.h. */
2901 rm -f conftest
$ac_exeext
2902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2903 (eval $ac_link) 2>&5
2905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2906 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
2907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911 (exit $ac_status); }; }; then
2912 echo "$as_me:$LINENO: result: yes" >&5
2913 echo "${ECHO_T}yes" >&6
2915 echo "$as_me: program exited with status $ac_status" >&5
2916 echo "$as_me: failed program was:" >&5
2917 sed 's/^/| /' conftest.
$ac_ext >&5
2920 echo "$as_me:$LINENO: result: no" >&5
2921 echo "${ECHO_T}no" >&6
2922 { { echo "$as_me:$LINENO: error: a working C++ compiler is required" >&5
2923 echo "$as_me: error: a working C++ compiler is required" >&2;}
2924 { (exit 1); exit 1; }; }
2926 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
2929 if test "$cross_compiling" = no
; then
2930 echo "$as_me:$LINENO: checking that C++ static constructors and destructors are called" >&5
2931 echo $ECHO_N "checking that C++ static constructors and destructors are called... $ECHO_C" >&6
2933 if test "$cross_compiling" = yes; then
2936 cat >conftest.
$ac_ext <<_ACEOF
2940 cat confdefs.h
>>conftest.
$ac_ext
2941 cat >>conftest.
$ac_ext <<_ACEOF
2942 /* end confdefs.h. */
2953 ~A() { if (i == 1) _exit(0); }
2966 rm -f conftest
$ac_exeext
2967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2968 (eval $ac_link) 2>&5
2970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2971 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
2972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2976 (exit $ac_status); }; }; then
2977 echo "$as_me:$LINENO: result: yes" >&5
2978 echo "${ECHO_T}yes" >&6
2980 echo "$as_me: program exited with status $ac_status" >&5
2981 echo "$as_me: failed program was:" >&5
2982 sed 's/^/| /' conftest.
$ac_ext >&5
2985 echo "$as_me:$LINENO: result: no" >&5
2986 echo "${ECHO_T}no" >&6
2987 { { echo "$as_me:$LINENO: error: a working C++ compiler is required" >&5
2988 echo "$as_me: error: a working C++ compiler is required" >&2;}
2989 { (exit 1); exit 1; }; }
2991 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
2994 echo "$as_me:$LINENO: checking that header files support C++" >&5
2995 echo $ECHO_N "checking that header files support C++... $ECHO_C" >&6
2996 cat >conftest.
$ac_ext <<_ACEOF
3000 cat confdefs.h
>>conftest.
$ac_ext
3001 cat >>conftest.
$ac_ext <<_ACEOF
3002 /* end confdefs.h. */
3021 rm -f conftest.
$ac_objext conftest
$ac_exeext
3022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3023 (eval $ac_link) 2>conftest.er1
3025 grep -v '^ *+' conftest.er1
>conftest.err
3027 cat conftest.err
>&5
3028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3029 (exit $ac_status); } &&
3030 { ac_try
='test -z "$ac_cxx_werror_flag"
3031 || test ! -s conftest.err'
3032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036 (exit $ac_status); }; } &&
3037 { ac_try
='test -s conftest$ac_exeext'
3038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3042 (exit $ac_status); }; }; then
3043 echo "$as_me:$LINENO: result: yes" >&5
3044 echo "${ECHO_T}yes" >&6
3046 echo "$as_me: failed program was:" >&5
3047 sed 's/^/| /' conftest.
$ac_ext >&5
3049 echo "$as_me:$LINENO: result: no" >&5
3050 echo "${ECHO_T}no" >&6
3051 { { echo "$as_me:$LINENO: error: header files do not support C++
3052 (if you are using a version of gcc/g++ earlier than 2.5,
3053 you should install libg++)" >&5
3054 echo "$as_me: error: header files do not support C++
3055 (if you are using a version of gcc/g++ earlier than 2.5,
3056 you should install libg++)" >&2;}
3057 { (exit 1); exit 1; }; }
3059 rm -f conftest.err conftest.
$ac_objext \
3060 conftest
$ac_exeext conftest.
$ac_ext
3062 ac_cpp
='$CPP $CPPFLAGS'
3063 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3064 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3065 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3068 echo "$as_me:$LINENO: checking whether character set is EBCDIC" >&5
3069 echo $ECHO_N "checking whether character set is EBCDIC... $ECHO_C" >&6
3070 cat >conftest.
$ac_ext <<_ACEOF
3074 cat confdefs.h
>>conftest.
$ac_ext
3075 cat >>conftest.
$ac_ext <<_ACEOF
3076 /* end confdefs.h. */
3079 /* Treat any failure as ASCII for compatibility with existing art.
3080 Use compile-time rather than run-time tests for cross-compiler
3083 make an error "Character set is not EBCDIC"
3096 rm -f conftest.
$ac_objext
3097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3098 (eval $ac_compile) 2>conftest.er1
3100 grep -v '^ *+' conftest.er1
>conftest.err
3102 cat conftest.err
>&5
3103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3104 (exit $ac_status); } &&
3105 { ac_try
='test -z "$ac_c_werror_flag"
3106 || test ! -s conftest.err'
3107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3111 (exit $ac_status); }; } &&
3112 { ac_try
='test -s conftest.$ac_objext'
3113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3117 (exit $ac_status); }; }; then
3118 groff_cv_ebcdic
="yes"
3119 TTYDEVDIRS
="font/devcp1047"
3120 echo "$as_me:$LINENO: result: yes" >&5
3121 echo "${ECHO_T}yes" >&6
3123 cat >>confdefs.h
<<\_ACEOF
3124 #define IS_EBCDIC_HOST 1
3128 echo "$as_me: failed program was:" >&5
3129 sed 's/^/| /' conftest.
$ac_ext >&5
3131 groff_cv_ebcdic
="no"
3132 TTYDEVDIRS
="font/devascii font/devlatin1"
3133 OTHERDEVDIRS
="font/devlj4 font/devlbp"
3134 echo "$as_me:$LINENO: result: no" >&5
3135 echo "${ECHO_T}no" >&6
3137 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3140 if test "$groff_cv_ebcdic" = "yes"; then
3141 echo "$as_me:$LINENO: checking for OS/390 Unix" >&5
3142 echo $ECHO_N "checking for OS/390 Unix... $ECHO_C" >&6
3145 CFLAGS
="$CFLAGS -D_ALL_SOURCE"
3146 echo "$as_me:$LINENO: result: yes" >&5
3147 echo "${ECHO_T}yes" >&6 ;;
3149 echo "$as_me:$LINENO: result: no" >&5
3150 echo "${ECHO_T}no" >&6 ;;
3154 ac_cpp
='$CPP $CPPFLAGS'
3155 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3156 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3157 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3158 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3159 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3160 # On Suns, sometimes $CPP names a directory.
3161 if test -n "$CPP" && test -d "$CPP"; then
3164 if test -z "$CPP"; then
3165 if test "${ac_cv_prog_CPP+set}" = set; then
3166 echo $ECHO_N "(cached) $ECHO_C" >&6
3168 # Double quotes because CPP needs to be expanded
3169 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3172 for ac_c_preproc_warn_flag
in '' yes
3174 # Use a header file that comes with gcc, so configuring glibc
3175 # with a fresh cross-compiler works.
3176 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3177 # <limits.h> exists even on freestanding compilers.
3178 # On the NeXT, cc -E runs the code through the compiler's parser,
3179 # not just through cpp. "Syntax error" is here to catch this case.
3180 cat >conftest.
$ac_ext <<_ACEOF
3183 cat confdefs.h
>>conftest.
$ac_ext
3184 cat >>conftest.
$ac_ext <<_ACEOF
3185 /* end confdefs.h. */
3187 # include <limits.h>
3189 # include <assert.h>
3193 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3194 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3196 grep -v '^ *+' conftest.er1
>conftest.err
3198 cat conftest.err
>&5
3199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3200 (exit $ac_status); } >/dev
/null
; then
3201 if test -s conftest.err
; then
3202 ac_cpp_err
=$ac_c_preproc_warn_flag
3203 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3210 if test -z "$ac_cpp_err"; then
3213 echo "$as_me: failed program was:" >&5
3214 sed 's/^/| /' conftest.
$ac_ext >&5
3216 # Broken: fails on valid input.
3219 rm -f conftest.err conftest.
$ac_ext
3221 # OK, works on sane cases. Now check whether non-existent headers
3222 # can be detected and how.
3223 cat >conftest.
$ac_ext <<_ACEOF
3226 cat confdefs.h
>>conftest.
$ac_ext
3227 cat >>conftest.
$ac_ext <<_ACEOF
3228 /* end confdefs.h. */
3229 #include <ac_nonexistent.h>
3231 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3232 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3234 grep -v '^ *+' conftest.er1
>conftest.err
3236 cat conftest.err
>&5
3237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3238 (exit $ac_status); } >/dev
/null
; then
3239 if test -s conftest.err
; then
3240 ac_cpp_err
=$ac_c_preproc_warn_flag
3241 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3248 if test -z "$ac_cpp_err"; then
3249 # Broken: success on invalid input.
3252 echo "$as_me: failed program was:" >&5
3253 sed 's/^/| /' conftest.
$ac_ext >&5
3255 # Passes both tests.
3259 rm -f conftest.err conftest.
$ac_ext
3262 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3263 rm -f conftest.err conftest.
$ac_ext
3264 if $ac_preproc_ok; then
3276 echo "$as_me:$LINENO: result: $CPP" >&5
3277 echo "${ECHO_T}$CPP" >&6
3279 for ac_c_preproc_warn_flag
in '' yes
3281 # Use a header file that comes with gcc, so configuring glibc
3282 # with a fresh cross-compiler works.
3283 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3284 # <limits.h> exists even on freestanding compilers.
3285 # On the NeXT, cc -E runs the code through the compiler's parser,
3286 # not just through cpp. "Syntax error" is here to catch this case.
3287 cat >conftest.
$ac_ext <<_ACEOF
3290 cat confdefs.h
>>conftest.
$ac_ext
3291 cat >>conftest.
$ac_ext <<_ACEOF
3292 /* end confdefs.h. */
3294 # include <limits.h>
3296 # include <assert.h>
3300 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3301 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3303 grep -v '^ *+' conftest.er1
>conftest.err
3305 cat conftest.err
>&5
3306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3307 (exit $ac_status); } >/dev
/null
; then
3308 if test -s conftest.err
; then
3309 ac_cpp_err
=$ac_c_preproc_warn_flag
3310 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3317 if test -z "$ac_cpp_err"; then
3320 echo "$as_me: failed program was:" >&5
3321 sed 's/^/| /' conftest.
$ac_ext >&5
3323 # Broken: fails on valid input.
3326 rm -f conftest.err conftest.
$ac_ext
3328 # OK, works on sane cases. Now check whether non-existent headers
3329 # can be detected and how.
3330 cat >conftest.
$ac_ext <<_ACEOF
3333 cat confdefs.h
>>conftest.
$ac_ext
3334 cat >>conftest.
$ac_ext <<_ACEOF
3335 /* end confdefs.h. */
3336 #include <ac_nonexistent.h>
3338 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3339 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3341 grep -v '^ *+' conftest.er1
>conftest.err
3343 cat conftest.err
>&5
3344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3345 (exit $ac_status); } >/dev
/null
; then
3346 if test -s conftest.err
; then
3347 ac_cpp_err
=$ac_c_preproc_warn_flag
3348 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3355 if test -z "$ac_cpp_err"; then
3356 # Broken: success on invalid input.
3359 echo "$as_me: failed program was:" >&5
3360 sed 's/^/| /' conftest.
$ac_ext >&5
3362 # Passes both tests.
3366 rm -f conftest.err conftest.
$ac_ext
3369 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3370 rm -f conftest.err conftest.
$ac_ext
3371 if $ac_preproc_ok; then
3374 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3375 See \`config.log' for more details." >&5
3376 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3377 See \`config.log' for more details." >&2;}
3378 { (exit 1); exit 1; }; }
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
3388 echo "$as_me:$LINENO: checking for X" >&5
3389 echo $ECHO_N "checking for X... $ECHO_C" >&6
3392 # Check whether --with-x or --without-x was given.
3393 if test "${with_x+set}" = set; then
3397 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3398 if test "x$with_x" = xno
; then
3399 # The user explicitly disabled X.
3402 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
3403 # Both variables are already set.
3406 if test "${ac_cv_have_x+set}" = set; then
3407 echo $ECHO_N "(cached) $ECHO_C" >&6
3409 # One or both of the vars are not set, and there is no cached value.
3410 ac_x_includes
=no ac_x_libraries
=no
3411 rm -f -r conftest.dir
3412 if mkdir conftest.dir
; then
3414 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
3415 cat >Imakefile
<<'_ACEOF'
3417 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
3419 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
3420 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3421 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
3422 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3423 for ac_extension
in a so sl
; do
3424 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
3425 test -f $ac_im_libdir/libX11.
$ac_extension; then
3426 ac_im_usrlibdir
=$ac_im_libdir; break
3429 # Screen out bogus values from the imake configuration. They are
3430 # bogus both because they are the default anyway, and because
3431 # using them would break gcc on systems where it needs fixed includes.
3432 case $ac_im_incroot in
3434 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
3436 case $ac_im_usrlibdir in
3438 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
3442 rm -f -r conftest.dir
3445 # Standard set of common directories for X headers.
3446 # Check X11 before X11Rn because it is often a symlink to the current release.
3458 /usr/local/X11/include
3459 /usr/local/X11R6/include
3460 /usr/local/X11R5/include
3461 /usr/local/X11R4/include
3463 /usr/local/include/X11
3464 /usr/local/include/X11R6
3465 /usr/local/include/X11R5
3466 /usr/local/include/X11R4
3470 /usr/XFree86/include/X11
3474 /usr/unsupported/include
3476 /usr/local/x11r5/include
3477 /usr/lpp/Xamples/include
3479 /usr/openwin/include
3480 /usr/openwin/share/include'
3482 if test "$ac_x_includes" = no
; then
3483 # Guess where to find include files, by looking for Intrinsic.h.
3484 # First, try using that file with no special directory specified.
3485 cat >conftest.
$ac_ext <<_ACEOF
3488 cat confdefs.h
>>conftest.
$ac_ext
3489 cat >>conftest.
$ac_ext <<_ACEOF
3490 /* end confdefs.h. */
3491 #include <X11/Intrinsic.h>
3493 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3494 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3496 grep -v '^ *+' conftest.er1
>conftest.err
3498 cat conftest.err
>&5
3499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3500 (exit $ac_status); } >/dev
/null
; then
3501 if test -s conftest.err
; then
3502 ac_cpp_err
=$ac_c_preproc_warn_flag
3503 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3510 if test -z "$ac_cpp_err"; then
3511 # We can compile using X headers with no special include directory.
3514 echo "$as_me: failed program was:" >&5
3515 sed 's/^/| /' conftest.
$ac_ext >&5
3517 for ac_dir
in $ac_x_header_dirs; do
3518 if test -r "$ac_dir/X11/Intrinsic.h"; then
3519 ac_x_includes
=$ac_dir
3524 rm -f conftest.err conftest.
$ac_ext
3525 fi # $ac_x_includes = no
3527 if test "$ac_x_libraries" = no
; then
3528 # Check for the libraries.
3529 # See if we find them without any special options.
3530 # Don't add to $LIBS permanently.
3533 cat >conftest.
$ac_ext <<_ACEOF
3536 cat confdefs.h
>>conftest.
$ac_ext
3537 cat >>conftest.
$ac_ext <<_ACEOF
3538 /* end confdefs.h. */
3539 #include <X11/Intrinsic.h>
3548 rm -f conftest.
$ac_objext conftest
$ac_exeext
3549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3550 (eval $ac_link) 2>conftest.er1
3552 grep -v '^ *+' conftest.er1
>conftest.err
3554 cat conftest.err
>&5
3555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3556 (exit $ac_status); } &&
3557 { ac_try
='test -z "$ac_c_werror_flag"
3558 || test ! -s conftest.err'
3559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3563 (exit $ac_status); }; } &&
3564 { ac_try
='test -s conftest$ac_exeext'
3565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3569 (exit $ac_status); }; }; then
3571 # We can link X programs with no special library path.
3574 echo "$as_me: failed program was:" >&5
3575 sed 's/^/| /' conftest.
$ac_ext >&5
3578 for ac_dir
in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
3580 # Don't even attempt the hair of trying to link an X program!
3581 for ac_extension
in a so sl
; do
3582 if test -r $ac_dir/libXt.
$ac_extension; then
3583 ac_x_libraries
=$ac_dir
3589 rm -f conftest.err conftest.
$ac_objext \
3590 conftest
$ac_exeext conftest.
$ac_ext
3591 fi # $ac_x_libraries = no
3593 if test "$ac_x_includes" = no ||
test "$ac_x_libraries" = no
; then
3594 # Didn't find X anywhere. Cache the known absence of X.
3595 ac_cv_have_x
="have_x=no"
3597 # Record where we found X for the cache.
3598 ac_cv_have_x
="have_x=yes \
3599 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
3604 eval "$ac_cv_have_x"
3607 if test "$have_x" != yes; then
3608 echo "$as_me:$LINENO: result: $have_x" >&5
3609 echo "${ECHO_T}$have_x" >&6
3612 # If each of the values was on the command line, it overrides each guess.
3613 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
3614 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
3615 # Update the cache value to reflect the command line values.
3616 ac_cv_have_x
="have_x=yes \
3617 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
3618 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
3619 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
3622 if test "$no_x" = yes; then
3623 # Not all programs may use this symbol, but it does not hurt to define it.
3625 cat >>confdefs.h
<<\_ACEOF
3626 #define X_DISPLAY_MISSING 1
3629 X_CFLAGS
= X_PRE_LIBS
= X_LIBS
= X_EXTRA_LIBS
=
3631 if test -n "$x_includes"; then
3632 X_CFLAGS
="$X_CFLAGS -I$x_includes"
3635 # It would also be nice to do this for all -L options, not just this one.
3636 if test -n "$x_libraries"; then
3637 X_LIBS
="$X_LIBS -L$x_libraries"
3638 # For Solaris; some versions of Sun CC require a space after -R and
3639 # others require no space. Words are not sufficient . . . .
3640 case `(uname -sr) 2>/dev/null` in
3642 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
3643 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
3644 ac_xsave_LIBS
=$LIBS; LIBS
="$LIBS -R$x_libraries"
3645 cat >conftest.
$ac_ext <<_ACEOF
3648 cat confdefs.h
>>conftest.
$ac_ext
3649 cat >>conftest.
$ac_ext <<_ACEOF
3650 /* end confdefs.h. */
3660 rm -f conftest.
$ac_objext conftest
$ac_exeext
3661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3662 (eval $ac_link) 2>conftest.er1
3664 grep -v '^ *+' conftest.er1
>conftest.err
3666 cat conftest.err
>&5
3667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3668 (exit $ac_status); } &&
3669 { ac_try
='test -z "$ac_c_werror_flag"
3670 || test ! -s conftest.err'
3671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3675 (exit $ac_status); }; } &&
3676 { ac_try
='test -s conftest$ac_exeext'
3677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681 (exit $ac_status); }; }; then
3684 echo "$as_me: failed program was:" >&5
3685 sed 's/^/| /' conftest.
$ac_ext >&5
3689 rm -f conftest.err conftest.
$ac_objext \
3690 conftest
$ac_exeext conftest.
$ac_ext
3691 if test $ac_R_nospace = yes; then
3692 echo "$as_me:$LINENO: result: no" >&5
3693 echo "${ECHO_T}no" >&6
3694 X_LIBS
="$X_LIBS -R$x_libraries"
3696 LIBS
="$ac_xsave_LIBS -R $x_libraries"
3697 cat >conftest.
$ac_ext <<_ACEOF
3700 cat confdefs.h
>>conftest.
$ac_ext
3701 cat >>conftest.
$ac_ext <<_ACEOF
3702 /* end confdefs.h. */
3712 rm -f conftest.
$ac_objext conftest
$ac_exeext
3713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3714 (eval $ac_link) 2>conftest.er1
3716 grep -v '^ *+' conftest.er1
>conftest.err
3718 cat conftest.err
>&5
3719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3720 (exit $ac_status); } &&
3721 { ac_try
='test -z "$ac_c_werror_flag"
3722 || test ! -s conftest.err'
3723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3727 (exit $ac_status); }; } &&
3728 { ac_try
='test -s conftest$ac_exeext'
3729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3733 (exit $ac_status); }; }; then
3736 echo "$as_me: failed program was:" >&5
3737 sed 's/^/| /' conftest.
$ac_ext >&5
3741 rm -f conftest.err conftest.
$ac_objext \
3742 conftest
$ac_exeext conftest.
$ac_ext
3743 if test $ac_R_space = yes; then
3744 echo "$as_me:$LINENO: result: yes" >&5
3745 echo "${ECHO_T}yes" >&6
3746 X_LIBS
="$X_LIBS -R $x_libraries"
3748 echo "$as_me:$LINENO: result: neither works" >&5
3749 echo "${ECHO_T}neither works" >&6
3756 # Check for system-dependent libraries X programs must link with.
3757 # Do this before checking for the system-independent R6 libraries
3758 # (-lICE), since we may need -lsocket or whatever for X linking.
3760 if test "$ISC" = yes; then
3761 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl_s -linet"
3763 # Martyn Johnson says this is needed for Ultrix, if the X
3764 # libraries were built with DECnet support. And Karl Berry says
3765 # the Alpha needs dnet_stub (dnet does not exist).
3766 ac_xsave_LIBS
="$LIBS"; LIBS
="$LIBS $X_LIBS -lX11"
3767 cat >conftest.
$ac_ext <<_ACEOF
3770 cat confdefs.h
>>conftest.
$ac_ext
3771 cat >>conftest.
$ac_ext <<_ACEOF
3772 /* end confdefs.h. */
3774 /* Override any gcc2 internal prototype to avoid an error. */
3778 /* We use char because int might match the return type of a gcc2
3779 builtin and then its argument prototype would still apply. */
3780 char XOpenDisplay ();
3789 rm -f conftest.
$ac_objext conftest
$ac_exeext
3790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3791 (eval $ac_link) 2>conftest.er1
3793 grep -v '^ *+' conftest.er1
>conftest.err
3795 cat conftest.err
>&5
3796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3797 (exit $ac_status); } &&
3798 { ac_try
='test -z "$ac_c_werror_flag"
3799 || test ! -s conftest.err'
3800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3804 (exit $ac_status); }; } &&
3805 { ac_try
='test -s conftest$ac_exeext'
3806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3810 (exit $ac_status); }; }; then
3813 echo "$as_me: failed program was:" >&5
3814 sed 's/^/| /' conftest.
$ac_ext >&5
3816 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
3817 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
3818 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
3819 echo $ECHO_N "(cached) $ECHO_C" >&6
3821 ac_check_lib_save_LIBS
=$LIBS
3823 cat >conftest.
$ac_ext <<_ACEOF
3826 cat confdefs.h
>>conftest.
$ac_ext
3827 cat >>conftest.
$ac_ext <<_ACEOF
3828 /* end confdefs.h. */
3830 /* Override any gcc2 internal prototype to avoid an error. */
3834 /* We use char because int might match the return type of a gcc2
3835 builtin and then its argument prototype would still apply. */
3845 rm -f conftest.
$ac_objext conftest
$ac_exeext
3846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3847 (eval $ac_link) 2>conftest.er1
3849 grep -v '^ *+' conftest.er1
>conftest.err
3851 cat conftest.err
>&5
3852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3853 (exit $ac_status); } &&
3854 { ac_try
='test -z "$ac_c_werror_flag"
3855 || test ! -s conftest.err'
3856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860 (exit $ac_status); }; } &&
3861 { ac_try
='test -s conftest$ac_exeext'
3862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866 (exit $ac_status); }; }; then
3867 ac_cv_lib_dnet_dnet_ntoa
=yes
3869 echo "$as_me: failed program was:" >&5
3870 sed 's/^/| /' conftest.
$ac_ext >&5
3872 ac_cv_lib_dnet_dnet_ntoa
=no
3874 rm -f conftest.err conftest.
$ac_objext \
3875 conftest
$ac_exeext conftest.
$ac_ext
3876 LIBS
=$ac_check_lib_save_LIBS
3878 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
3879 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
3880 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
3881 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet"
3884 if test $ac_cv_lib_dnet_dnet_ntoa = no
; then
3885 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
3886 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
3887 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
3888 echo $ECHO_N "(cached) $ECHO_C" >&6
3890 ac_check_lib_save_LIBS
=$LIBS
3891 LIBS
="-ldnet_stub $LIBS"
3892 cat >conftest.
$ac_ext <<_ACEOF
3895 cat confdefs.h
>>conftest.
$ac_ext
3896 cat >>conftest.
$ac_ext <<_ACEOF
3897 /* end confdefs.h. */
3899 /* Override any gcc2 internal prototype to avoid an error. */
3903 /* We use char because int might match the return type of a gcc2
3904 builtin and then its argument prototype would still apply. */
3914 rm -f conftest.
$ac_objext conftest
$ac_exeext
3915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3916 (eval $ac_link) 2>conftest.er1
3918 grep -v '^ *+' conftest.er1
>conftest.err
3920 cat conftest.err
>&5
3921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3922 (exit $ac_status); } &&
3923 { ac_try
='test -z "$ac_c_werror_flag"
3924 || test ! -s conftest.err'
3925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3929 (exit $ac_status); }; } &&
3930 { ac_try
='test -s conftest$ac_exeext'
3931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3935 (exit $ac_status); }; }; then
3936 ac_cv_lib_dnet_stub_dnet_ntoa
=yes
3938 echo "$as_me: failed program was:" >&5
3939 sed 's/^/| /' conftest.
$ac_ext >&5
3941 ac_cv_lib_dnet_stub_dnet_ntoa
=no
3943 rm -f conftest.err conftest.
$ac_objext \
3944 conftest
$ac_exeext conftest.
$ac_ext
3945 LIBS
=$ac_check_lib_save_LIBS
3947 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
3948 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
3949 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
3950 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet_stub"
3955 rm -f conftest.err conftest.
$ac_objext \
3956 conftest
$ac_exeext conftest.
$ac_ext
3957 LIBS
="$ac_xsave_LIBS"
3959 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3960 # to get the SysV transport functions.
3961 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
3963 # The nsl library prevents programs from opening the X display
3964 # on Irix 5.2, according to T.E. Dickey.
3965 # The functions gethostbyname, getservbyname, and inet_addr are
3966 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
3967 echo "$as_me:$LINENO: checking for gethostbyname" >&5
3968 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3969 if test "${ac_cv_func_gethostbyname+set}" = set; then
3970 echo $ECHO_N "(cached) $ECHO_C" >&6
3972 cat >conftest.
$ac_ext <<_ACEOF
3975 cat confdefs.h
>>conftest.
$ac_ext
3976 cat >>conftest.
$ac_ext <<_ACEOF
3977 /* end confdefs.h. */
3978 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
3979 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3980 #define gethostbyname innocuous_gethostbyname
3982 /* System header to define __stub macros and hopefully few prototypes,
3983 which can conflict with char gethostbyname (); below.
3984 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3985 <limits.h> exists even on freestanding compilers. */
3988 # include <limits.h>
3990 # include <assert.h>
3993 #undef gethostbyname
3995 /* Override any gcc2 internal prototype to avoid an error. */
4000 /* We use char because int might match the return type of a gcc2
4001 builtin and then its argument prototype would still apply. */
4002 char gethostbyname ();
4003 /* The GNU C library defines this for functions which it implements
4004 to always fail with ENOSYS. Some functions are actually named
4005 something starting with __ and the normal name is an alias. */
4006 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
4009 char (*f) () = gethostbyname;
4018 return f != gethostbyname;
4023 rm -f conftest.
$ac_objext conftest
$ac_exeext
4024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4025 (eval $ac_link) 2>conftest.er1
4027 grep -v '^ *+' conftest.er1
>conftest.err
4029 cat conftest.err
>&5
4030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4031 (exit $ac_status); } &&
4032 { ac_try
='test -z "$ac_c_werror_flag"
4033 || test ! -s conftest.err'
4034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4038 (exit $ac_status); }; } &&
4039 { ac_try
='test -s conftest$ac_exeext'
4040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4044 (exit $ac_status); }; }; then
4045 ac_cv_func_gethostbyname
=yes
4047 echo "$as_me: failed program was:" >&5
4048 sed 's/^/| /' conftest.
$ac_ext >&5
4050 ac_cv_func_gethostbyname
=no
4052 rm -f conftest.err conftest.
$ac_objext \
4053 conftest
$ac_exeext conftest.
$ac_ext
4055 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
4056 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
4058 if test $ac_cv_func_gethostbyname = no
; then
4059 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4060 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4061 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4062 echo $ECHO_N "(cached) $ECHO_C" >&6
4064 ac_check_lib_save_LIBS
=$LIBS
4066 cat >conftest.
$ac_ext <<_ACEOF
4069 cat confdefs.h
>>conftest.
$ac_ext
4070 cat >>conftest.
$ac_ext <<_ACEOF
4071 /* end confdefs.h. */
4073 /* Override any gcc2 internal prototype to avoid an error. */
4077 /* We use char because int might match the return type of a gcc2
4078 builtin and then its argument prototype would still apply. */
4079 char gethostbyname ();
4088 rm -f conftest.
$ac_objext conftest
$ac_exeext
4089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4090 (eval $ac_link) 2>conftest.er1
4092 grep -v '^ *+' conftest.er1
>conftest.err
4094 cat conftest.err
>&5
4095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4096 (exit $ac_status); } &&
4097 { ac_try
='test -z "$ac_c_werror_flag"
4098 || test ! -s conftest.err'
4099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4103 (exit $ac_status); }; } &&
4104 { ac_try
='test -s conftest$ac_exeext'
4105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4109 (exit $ac_status); }; }; then
4110 ac_cv_lib_nsl_gethostbyname
=yes
4112 echo "$as_me: failed program was:" >&5
4113 sed 's/^/| /' conftest.
$ac_ext >&5
4115 ac_cv_lib_nsl_gethostbyname
=no
4117 rm -f conftest.err conftest.
$ac_objext \
4118 conftest
$ac_exeext conftest.
$ac_ext
4119 LIBS
=$ac_check_lib_save_LIBS
4121 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4122 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
4123 if test $ac_cv_lib_nsl_gethostbyname = yes; then
4124 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl"
4127 if test $ac_cv_lib_nsl_gethostbyname = no
; then
4128 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
4129 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
4130 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
4131 echo $ECHO_N "(cached) $ECHO_C" >&6
4133 ac_check_lib_save_LIBS
=$LIBS
4135 cat >conftest.
$ac_ext <<_ACEOF
4138 cat confdefs.h
>>conftest.
$ac_ext
4139 cat >>conftest.
$ac_ext <<_ACEOF
4140 /* end confdefs.h. */
4142 /* Override any gcc2 internal prototype to avoid an error. */
4146 /* We use char because int might match the return type of a gcc2
4147 builtin and then its argument prototype would still apply. */
4148 char gethostbyname ();
4157 rm -f conftest.
$ac_objext conftest
$ac_exeext
4158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4159 (eval $ac_link) 2>conftest.er1
4161 grep -v '^ *+' conftest.er1
>conftest.err
4163 cat conftest.err
>&5
4164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4165 (exit $ac_status); } &&
4166 { ac_try
='test -z "$ac_c_werror_flag"
4167 || test ! -s conftest.err'
4168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4172 (exit $ac_status); }; } &&
4173 { ac_try
='test -s conftest$ac_exeext'
4174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4178 (exit $ac_status); }; }; then
4179 ac_cv_lib_bsd_gethostbyname
=yes
4181 echo "$as_me: failed program was:" >&5
4182 sed 's/^/| /' conftest.
$ac_ext >&5
4184 ac_cv_lib_bsd_gethostbyname
=no
4186 rm -f conftest.err conftest.
$ac_objext \
4187 conftest
$ac_exeext conftest.
$ac_ext
4188 LIBS
=$ac_check_lib_save_LIBS
4190 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
4191 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
4192 if test $ac_cv_lib_bsd_gethostbyname = yes; then
4193 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lbsd"
4199 # lieder@skyler.mavd.honeywell.com says without -lsocket,
4200 # socket/setsockopt and other routines are undefined under SCO ODT
4201 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
4202 # on later versions), says Simon Leinen: it contains gethostby*
4203 # variants that don't use the name server (or something). -lsocket
4204 # must be given before -lnsl if both are needed. We assume that
4205 # if connect needs -lnsl, so does gethostbyname.
4206 echo "$as_me:$LINENO: checking for connect" >&5
4207 echo $ECHO_N "checking for connect... $ECHO_C" >&6
4208 if test "${ac_cv_func_connect+set}" = set; then
4209 echo $ECHO_N "(cached) $ECHO_C" >&6
4211 cat >conftest.
$ac_ext <<_ACEOF
4214 cat confdefs.h
>>conftest.
$ac_ext
4215 cat >>conftest.
$ac_ext <<_ACEOF
4216 /* end confdefs.h. */
4217 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
4218 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4219 #define connect innocuous_connect
4221 /* System header to define __stub macros and hopefully few prototypes,
4222 which can conflict with char connect (); below.
4223 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4224 <limits.h> exists even on freestanding compilers. */
4227 # include <limits.h>
4229 # include <assert.h>
4234 /* Override any gcc2 internal prototype to avoid an error. */
4239 /* We use char because int might match the return type of a gcc2
4240 builtin and then its argument prototype would still apply. */
4242 /* The GNU C library defines this for functions which it implements
4243 to always fail with ENOSYS. Some functions are actually named
4244 something starting with __ and the normal name is an alias. */
4245 #if defined (__stub_connect) || defined (__stub___connect)
4248 char (*f) () = connect;
4257 return f != connect;
4262 rm -f conftest.
$ac_objext conftest
$ac_exeext
4263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4264 (eval $ac_link) 2>conftest.er1
4266 grep -v '^ *+' conftest.er1
>conftest.err
4268 cat conftest.err
>&5
4269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270 (exit $ac_status); } &&
4271 { ac_try
='test -z "$ac_c_werror_flag"
4272 || test ! -s conftest.err'
4273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4277 (exit $ac_status); }; } &&
4278 { ac_try
='test -s conftest$ac_exeext'
4279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4283 (exit $ac_status); }; }; then
4284 ac_cv_func_connect
=yes
4286 echo "$as_me: failed program was:" >&5
4287 sed 's/^/| /' conftest.
$ac_ext >&5
4289 ac_cv_func_connect
=no
4291 rm -f conftest.err conftest.
$ac_objext \
4292 conftest
$ac_exeext conftest.
$ac_ext
4294 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
4295 echo "${ECHO_T}$ac_cv_func_connect" >&6
4297 if test $ac_cv_func_connect = no
; then
4298 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
4299 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
4300 if test "${ac_cv_lib_socket_connect+set}" = set; then
4301 echo $ECHO_N "(cached) $ECHO_C" >&6
4303 ac_check_lib_save_LIBS
=$LIBS
4304 LIBS
="-lsocket $X_EXTRA_LIBS $LIBS"
4305 cat >conftest.
$ac_ext <<_ACEOF
4308 cat confdefs.h
>>conftest.
$ac_ext
4309 cat >>conftest.
$ac_ext <<_ACEOF
4310 /* end confdefs.h. */
4312 /* Override any gcc2 internal prototype to avoid an error. */
4316 /* We use char because int might match the return type of a gcc2
4317 builtin and then its argument prototype would still apply. */
4327 rm -f conftest.
$ac_objext conftest
$ac_exeext
4328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4329 (eval $ac_link) 2>conftest.er1
4331 grep -v '^ *+' conftest.er1
>conftest.err
4333 cat conftest.err
>&5
4334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4335 (exit $ac_status); } &&
4336 { ac_try
='test -z "$ac_c_werror_flag"
4337 || test ! -s conftest.err'
4338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4342 (exit $ac_status); }; } &&
4343 { ac_try
='test -s conftest$ac_exeext'
4344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4348 (exit $ac_status); }; }; then
4349 ac_cv_lib_socket_connect
=yes
4351 echo "$as_me: failed program was:" >&5
4352 sed 's/^/| /' conftest.
$ac_ext >&5
4354 ac_cv_lib_socket_connect
=no
4356 rm -f conftest.err conftest.
$ac_objext \
4357 conftest
$ac_exeext conftest.
$ac_ext
4358 LIBS
=$ac_check_lib_save_LIBS
4360 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
4361 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
4362 if test $ac_cv_lib_socket_connect = yes; then
4363 X_EXTRA_LIBS
="-lsocket $X_EXTRA_LIBS"
4368 # Guillermo Gomez says -lposix is necessary on A/UX.
4369 echo "$as_me:$LINENO: checking for remove" >&5
4370 echo $ECHO_N "checking for remove... $ECHO_C" >&6
4371 if test "${ac_cv_func_remove+set}" = set; then
4372 echo $ECHO_N "(cached) $ECHO_C" >&6
4374 cat >conftest.
$ac_ext <<_ACEOF
4377 cat confdefs.h
>>conftest.
$ac_ext
4378 cat >>conftest.
$ac_ext <<_ACEOF
4379 /* end confdefs.h. */
4380 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
4381 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4382 #define remove innocuous_remove
4384 /* System header to define __stub macros and hopefully few prototypes,
4385 which can conflict with char remove (); below.
4386 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4387 <limits.h> exists even on freestanding compilers. */
4390 # include <limits.h>
4392 # include <assert.h>
4397 /* Override any gcc2 internal prototype to avoid an error. */
4402 /* We use char because int might match the return type of a gcc2
4403 builtin and then its argument prototype would still apply. */
4405 /* The GNU C library defines this for functions which it implements
4406 to always fail with ENOSYS. Some functions are actually named
4407 something starting with __ and the normal name is an alias. */
4408 #if defined (__stub_remove) || defined (__stub___remove)
4411 char (*f) () = remove;
4425 rm -f conftest.
$ac_objext conftest
$ac_exeext
4426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4427 (eval $ac_link) 2>conftest.er1
4429 grep -v '^ *+' conftest.er1
>conftest.err
4431 cat conftest.err
>&5
4432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4433 (exit $ac_status); } &&
4434 { ac_try
='test -z "$ac_c_werror_flag"
4435 || test ! -s conftest.err'
4436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4440 (exit $ac_status); }; } &&
4441 { ac_try
='test -s conftest$ac_exeext'
4442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4446 (exit $ac_status); }; }; then
4447 ac_cv_func_remove
=yes
4449 echo "$as_me: failed program was:" >&5
4450 sed 's/^/| /' conftest.
$ac_ext >&5
4452 ac_cv_func_remove
=no
4454 rm -f conftest.err conftest.
$ac_objext \
4455 conftest
$ac_exeext conftest.
$ac_ext
4457 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
4458 echo "${ECHO_T}$ac_cv_func_remove" >&6
4460 if test $ac_cv_func_remove = no
; then
4461 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
4462 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
4463 if test "${ac_cv_lib_posix_remove+set}" = set; then
4464 echo $ECHO_N "(cached) $ECHO_C" >&6
4466 ac_check_lib_save_LIBS
=$LIBS
4467 LIBS
="-lposix $LIBS"
4468 cat >conftest.
$ac_ext <<_ACEOF
4471 cat confdefs.h
>>conftest.
$ac_ext
4472 cat >>conftest.
$ac_ext <<_ACEOF
4473 /* end confdefs.h. */
4475 /* Override any gcc2 internal prototype to avoid an error. */
4479 /* We use char because int might match the return type of a gcc2
4480 builtin and then its argument prototype would still apply. */
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_lib_posix_remove
=yes
4514 echo "$as_me: failed program was:" >&5
4515 sed 's/^/| /' conftest.
$ac_ext >&5
4517 ac_cv_lib_posix_remove
=no
4519 rm -f conftest.err conftest.
$ac_objext \
4520 conftest
$ac_exeext conftest.
$ac_ext
4521 LIBS
=$ac_check_lib_save_LIBS
4523 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
4524 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
4525 if test $ac_cv_lib_posix_remove = yes; then
4526 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lposix"
4531 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4532 echo "$as_me:$LINENO: checking for shmat" >&5
4533 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
4534 if test "${ac_cv_func_shmat+set}" = set; then
4535 echo $ECHO_N "(cached) $ECHO_C" >&6
4537 cat >conftest.
$ac_ext <<_ACEOF
4540 cat confdefs.h
>>conftest.
$ac_ext
4541 cat >>conftest.
$ac_ext <<_ACEOF
4542 /* end confdefs.h. */
4543 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
4544 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4545 #define shmat innocuous_shmat
4547 /* System header to define __stub macros and hopefully few prototypes,
4548 which can conflict with char shmat (); below.
4549 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4550 <limits.h> exists even on freestanding compilers. */
4553 # include <limits.h>
4555 # include <assert.h>
4560 /* Override any gcc2 internal prototype to avoid an error. */
4565 /* We use char because int might match the return type of a gcc2
4566 builtin and then its argument prototype would still apply. */
4568 /* The GNU C library defines this for functions which it implements
4569 to always fail with ENOSYS. Some functions are actually named
4570 something starting with __ and the normal name is an alias. */
4571 #if defined (__stub_shmat) || defined (__stub___shmat)
4574 char (*f) () = shmat;
4588 rm -f conftest.
$ac_objext conftest
$ac_exeext
4589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4590 (eval $ac_link) 2>conftest.er1
4592 grep -v '^ *+' conftest.er1
>conftest.err
4594 cat conftest.err
>&5
4595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4596 (exit $ac_status); } &&
4597 { ac_try
='test -z "$ac_c_werror_flag"
4598 || test ! -s conftest.err'
4599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4603 (exit $ac_status); }; } &&
4604 { ac_try
='test -s conftest$ac_exeext'
4605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4609 (exit $ac_status); }; }; then
4610 ac_cv_func_shmat
=yes
4612 echo "$as_me: failed program was:" >&5
4613 sed 's/^/| /' conftest.
$ac_ext >&5
4617 rm -f conftest.err conftest.
$ac_objext \
4618 conftest
$ac_exeext conftest.
$ac_ext
4620 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
4621 echo "${ECHO_T}$ac_cv_func_shmat" >&6
4623 if test $ac_cv_func_shmat = no
; then
4624 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
4625 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
4626 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
4627 echo $ECHO_N "(cached) $ECHO_C" >&6
4629 ac_check_lib_save_LIBS
=$LIBS
4631 cat >conftest.
$ac_ext <<_ACEOF
4634 cat confdefs.h
>>conftest.
$ac_ext
4635 cat >>conftest.
$ac_ext <<_ACEOF
4636 /* end confdefs.h. */
4638 /* Override any gcc2 internal prototype to avoid an error. */
4642 /* We use char because int might match the return type of a gcc2
4643 builtin and then its argument prototype would still apply. */
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_lib_ipc_shmat
=yes
4677 echo "$as_me: failed program was:" >&5
4678 sed 's/^/| /' conftest.
$ac_ext >&5
4680 ac_cv_lib_ipc_shmat
=no
4682 rm -f conftest.err conftest.
$ac_objext \
4683 conftest
$ac_exeext conftest.
$ac_ext
4684 LIBS
=$ac_check_lib_save_LIBS
4686 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
4687 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
4688 if test $ac_cv_lib_ipc_shmat = yes; then
4689 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lipc"
4695 # Check for libraries that X11R6 Xt/Xaw programs need.
4696 ac_save_LDFLAGS
=$LDFLAGS
4697 test -n "$x_libraries" && LDFLAGS
="$LDFLAGS -L$x_libraries"
4698 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4699 # check for ICE first), but we must link in the order -lSM -lICE or
4700 # we get undefined symbols. So assume we have SM if we have ICE.
4701 # These have to be linked with before -lX11, unlike the other
4702 # libraries we check for below, so use a different variable.
4703 # John Interrante, Karl Berry
4704 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
4705 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
4706 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
4707 echo $ECHO_N "(cached) $ECHO_C" >&6
4709 ac_check_lib_save_LIBS
=$LIBS
4710 LIBS
="-lICE $X_EXTRA_LIBS $LIBS"
4711 cat >conftest.
$ac_ext <<_ACEOF
4714 cat confdefs.h
>>conftest.
$ac_ext
4715 cat >>conftest.
$ac_ext <<_ACEOF
4716 /* end confdefs.h. */
4718 /* Override any gcc2 internal prototype to avoid an error. */
4722 /* We use char because int might match the return type of a gcc2
4723 builtin and then its argument prototype would still apply. */
4724 char IceConnectionNumber ();
4728 IceConnectionNumber ();
4733 rm -f conftest.
$ac_objext conftest
$ac_exeext
4734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4735 (eval $ac_link) 2>conftest.er1
4737 grep -v '^ *+' conftest.er1
>conftest.err
4739 cat conftest.err
>&5
4740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4741 (exit $ac_status); } &&
4742 { ac_try
='test -z "$ac_c_werror_flag"
4743 || test ! -s conftest.err'
4744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4748 (exit $ac_status); }; } &&
4749 { ac_try
='test -s conftest$ac_exeext'
4750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4754 (exit $ac_status); }; }; then
4755 ac_cv_lib_ICE_IceConnectionNumber
=yes
4757 echo "$as_me: failed program was:" >&5
4758 sed 's/^/| /' conftest.
$ac_ext >&5
4760 ac_cv_lib_ICE_IceConnectionNumber
=no
4762 rm -f conftest.err conftest.
$ac_objext \
4763 conftest
$ac_exeext conftest.
$ac_ext
4764 LIBS
=$ac_check_lib_save_LIBS
4766 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
4767 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
4768 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
4769 X_PRE_LIBS
="$X_PRE_LIBS -lSM -lICE"
4772 LDFLAGS
=$ac_save_LDFLAGS
4778 if test -z "$groff_no_x"; then
4782 CFLAGS
="$CFLAGS $X_CFLAGS"
4783 LDFLAGS
="$LDFLAGS $X_LIBS"
4784 LIBS
="$LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
4787 echo "$as_me:$LINENO: checking for Xaw library and header files" >&5
4788 echo $ECHO_N "checking for Xaw library and header files... $ECHO_C" >&6
4789 cat >conftest.
$ac_ext <<_ACEOF
4793 cat confdefs.h
>>conftest.
$ac_ext
4794 cat >>conftest.
$ac_ext <<_ACEOF
4795 /* end confdefs.h. */
4798 #include <X11/Intrinsic.h>
4799 #include <X11/Xaw/Simple.h>
4811 rm -f conftest.
$ac_objext conftest
$ac_exeext
4812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4813 (eval $ac_link) 2>conftest.er1
4815 grep -v '^ *+' conftest.er1
>conftest.err
4817 cat conftest.err
>&5
4818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4819 (exit $ac_status); } &&
4820 { ac_try
='test -z "$ac_c_werror_flag"
4821 || test ! -s conftest.err'
4822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4826 (exit $ac_status); }; } &&
4827 { ac_try
='test -s conftest$ac_exeext'
4828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4832 (exit $ac_status); }; }; then
4833 echo "$as_me:$LINENO: result: yes" >&5
4834 echo "${ECHO_T}yes" >&6
4836 echo "$as_me: failed program was:" >&5
4837 sed 's/^/| /' conftest.
$ac_ext >&5
4839 echo "$as_me:$LINENO: result: no" >&5
4840 echo "${ECHO_T}no" >&6
4843 rm -f conftest.err conftest.
$ac_objext \
4844 conftest
$ac_exeext conftest.
$ac_ext
4847 echo "$as_me:$LINENO: checking for Xmu library and header files" >&5
4848 echo $ECHO_N "checking for Xmu library and header files... $ECHO_C" >&6
4849 cat >conftest.
$ac_ext <<_ACEOF
4853 cat confdefs.h
>>conftest.
$ac_ext
4854 cat >>conftest.
$ac_ext <<_ACEOF
4855 /* end confdefs.h. */
4858 #include <X11/Intrinsic.h>
4859 #include <X11/Xmu/Converters.h>
4871 rm -f conftest.
$ac_objext conftest
$ac_exeext
4872 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4873 (eval $ac_link) 2>conftest.er1
4875 grep -v '^ *+' conftest.er1
>conftest.err
4877 cat conftest.err
>&5
4878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4879 (exit $ac_status); } &&
4880 { ac_try
='test -z "$ac_c_werror_flag"
4881 || test ! -s conftest.err'
4882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4886 (exit $ac_status); }; } &&
4887 { ac_try
='test -s conftest$ac_exeext'
4888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4892 (exit $ac_status); }; }; then
4893 echo "$as_me:$LINENO: result: yes" >&5
4894 echo "${ECHO_T}yes" >&6
4896 echo "$as_me: failed program was:" >&5
4897 sed 's/^/| /' conftest.
$ac_ext >&5
4899 echo "$as_me:$LINENO: result: no" >&5
4900 echo "${ECHO_T}no" >&6
4903 rm -f conftest.err conftest.
$ac_objext \
4904 conftest
$ac_exeext conftest.
$ac_ext
4911 if test "x$groff_no_x" = "xyes"; then
4912 { echo "$as_me:$LINENO: gxditview and xtotroff won't be built" >&5
4913 echo "$as_me: gxditview and xtotroff won't be built" >&6;}
4915 XDEVDIRS
="font/devX75 font/devX75-12 font/devX100 font/devX100-12"
4916 XPROGDIRS
="src/devices/xditview src/utils/xtotroff"
4917 XLIBDIRS
="src/libs/libxutil"
4924 # Check whether --with-appresdir or --without-appresdir was given.
4925 if test "${with_appresdir+set}" = set; then
4926 withval
="$with_appresdir"
4929 if test -z "$groff_no_x"; then
4930 # Create an Imakefile, run `xmkmf', then `make'.
4931 rm -f -r conftest.dir
4932 if mkdir conftest.dir
; then
4934 # Make sure to not put `make' in the Imakefile rules,
4935 # since we grep it out.
4936 cat >Imakefile
<<'EOF'
4939 @echo 'groff_x_usrlibdir="${USRLIBDIR}"; groff_x_libdir="${LIBDIR}"'
4942 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
4943 # GNU make sometimes prints "make[1]: Entering...",
4944 # which would confuse us.
4945 eval `${MAKE-make} xlibdirs 2>/dev/null | grep -v make`
4947 # Open Windows `xmkmf' reportedly sets LIBDIR instead of USRLIBDIR.
4948 for groff_extension
in a so sl
; do
4949 if test ! -f $groff_x_usrlibdir/libX11.
$groff_extension &&
4950 test -f $groff_x_libdir/libX11.
$groff_extension; then
4951 groff_x_usrlibdir
=$groff_x_libdir
4958 rm -f -r conftest.dir
4961 # In case the test with `xmkmf' wasn't successful, try a suite of
4962 # standard directories. Check `X11' before `X11Rn' because it is often
4963 # a symlink to the current release.
4976 /usr/local/X11R6/lib
4977 /usr/local/X11R5/lib
4978 /usr/local/X11R4/lib
4981 /usr/local/lib/X11R6
4982 /usr/local/lib/X11R5
4983 /usr/local/lib/X11R4
4987 /usr/XFree86/lib/X11
4991 /usr/unsupported/lib
4993 /usr/local/x11r5/lib
4994 /usr/lpp/Xamples/lib
4997 /usr/openwin/share/lib'
4999 if test -z "$groff_x_usrlibdir"; then
5000 # We only test whether libX11 exists.
5001 for groff_dir
in $groff_x_libdirs; do
5002 for groff_extension
in a so sl
; do
5003 if test ! -r $groff_dir/libX11.
$groff_extension; then
5004 groff_x_usrlibdir
=$groff_dir
5011 if test "x$with_appresdir" = "x"; then
5012 appresdir
=$groff_x_usrlibdir/X11
/app-defaults
5014 appresdir
=$with_appresdir
5018 if test -z "$PSPRINT"; then
5021 # Extract the first word of "$ac_prog", so it can be a program name with args.
5022 set dummy
$ac_prog; ac_word
=$2
5023 echo "$as_me:$LINENO: checking for $ac_word" >&5
5024 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5025 if test "${ac_cv_prog_LPR+set}" = set; then
5026 echo $ECHO_N "(cached) $ECHO_C" >&6
5028 if test -n "$LPR"; then
5029 ac_cv_prog_LPR
="$LPR" # Let the user override the test.
5031 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5035 test -z "$as_dir" && as_dir
=.
5036 for ac_exec_ext
in '' $ac_executable_extensions; do
5037 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5038 ac_cv_prog_LPR
="$ac_prog"
5039 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5048 if test -n "$LPR"; then
5049 echo "$as_me:$LINENO: result: $LPR" >&5
5050 echo "${ECHO_T}$LPR" >&6
5052 echo "$as_me:$LINENO: result: no" >&5
5053 echo "${ECHO_T}no" >&6
5056 test -n "$LPR" && break
5061 # Extract the first word of "$ac_prog", so it can be a program name with args.
5062 set dummy
$ac_prog; ac_word
=$2
5063 echo "$as_me:$LINENO: checking for $ac_word" >&5
5064 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5065 if test "${ac_cv_prog_LP+set}" = set; then
5066 echo $ECHO_N "(cached) $ECHO_C" >&6
5068 if test -n "$LP"; then
5069 ac_cv_prog_LP
="$LP" # Let the user override the test.
5071 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5075 test -z "$as_dir" && as_dir
=.
5076 for ac_exec_ext
in '' $ac_executable_extensions; do
5077 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5078 ac_cv_prog_LP
="$ac_prog"
5079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5088 if test -n "$LP"; then
5089 echo "$as_me:$LINENO: result: $LP" >&5
5090 echo "${ECHO_T}$LP" >&6
5092 echo "$as_me:$LINENO: result: no" >&5
5093 echo "${ECHO_T}no" >&6
5096 test -n "$LP" && break
5099 if test -n "$LPR" && test -n "$LP"; then
5100 # HP-UX provides an lpr command that emulates lpr using lp,
5101 # but it doesn't have lpq; in this case we want to use lp
5105 # Extract the first word of "$ac_prog", so it can be a program name with args.
5106 set dummy
$ac_prog; ac_word
=$2
5107 echo "$as_me:$LINENO: checking for $ac_word" >&5
5108 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5109 if test "${ac_cv_prog_LPQ+set}" = set; then
5110 echo $ECHO_N "(cached) $ECHO_C" >&6
5112 if test -n "$LPQ"; then
5113 ac_cv_prog_LPQ
="$LPQ" # Let the user override the test.
5115 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5119 test -z "$as_dir" && as_dir
=.
5120 for ac_exec_ext
in '' $ac_executable_extensions; do
5121 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5122 ac_cv_prog_LPQ
="$ac_prog"
5123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5132 if test -n "$LPQ"; then
5133 echo "$as_me:$LINENO: result: $LPQ" >&5
5134 echo "${ECHO_T}$LPQ" >&6
5136 echo "$as_me:$LINENO: result: no" >&5
5137 echo "${ECHO_T}no" >&6
5140 test -n "$LPQ" && break
5143 test -n "$LPQ" || LPR
=
5145 if test -n "$LPR"; then
5147 elif test -n "$LP"; then
5152 echo "$as_me:$LINENO: checking for command to use for printing PostScript files" >&5
5153 echo $ECHO_N "checking for command to use for printing PostScript files... $ECHO_C" >&6
5154 echo "$as_me:$LINENO: result: $PSPRINT" >&5
5155 echo "${ECHO_T}$PSPRINT" >&6
5157 # Figure out DVIPRINT from PSPRINT.
5158 echo "$as_me:$LINENO: checking for command to use for printing dvi files" >&5
5159 echo $ECHO_N "checking for command to use for printing dvi files... $ECHO_C" >&6
5160 if test -n "$PSPRINT" && test -z "$DVIPRINT"; then
5161 if test "x$PSPRINT" = "xlpr"; then
5168 echo "$as_me:$LINENO: result: $DVIPRINT" >&5
5169 echo "${ECHO_T}$DVIPRINT" >&6
5170 # Extract the first word of "perl", so it can be a program name with args.
5171 set dummy perl
; ac_word
=$2
5172 echo "$as_me:$LINENO: checking for $ac_word" >&5
5173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5174 if test "${ac_cv_path_PERLPATH+set}" = set; then
5175 echo $ECHO_N "(cached) $ECHO_C" >&6
5179 ac_cv_path_PERLPATH
="$PERLPATH" # Let the user override the test with a path.
5182 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5186 test -z "$as_dir" && as_dir
=.
5187 for ac_exec_ext
in '' $ac_executable_extensions; do
5188 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5189 ac_cv_path_PERLPATH
="$as_dir/$ac_word$ac_exec_ext"
5190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5196 test -z "$ac_cv_path_PERLPATH" && ac_cv_path_PERLPATH
="/usr/bin/perl"
5200 PERLPATH
=$ac_cv_path_PERLPATH
5202 if test -n "$PERLPATH"; then
5203 echo "$as_me:$LINENO: result: $PERLPATH" >&5
5204 echo "${ECHO_T}$PERLPATH" >&6
5206 echo "$as_me:$LINENO: result: no" >&5
5207 echo "${ECHO_T}no" >&6
5210 for ac_prog
in byacc
'bison -y'
5212 # Extract the first word of "$ac_prog", so it can be a program name with args.
5213 set dummy
$ac_prog; ac_word
=$2
5214 echo "$as_me:$LINENO: checking for $ac_word" >&5
5215 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5216 if test "${ac_cv_prog_YACC+set}" = set; then
5217 echo $ECHO_N "(cached) $ECHO_C" >&6
5219 if test -n "$YACC"; then
5220 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
5222 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5226 test -z "$as_dir" && as_dir
=.
5227 for ac_exec_ext
in '' $ac_executable_extensions; do
5228 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5229 ac_cv_prog_YACC
="$ac_prog"
5230 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5238 YACC
=$ac_cv_prog_YACC
5239 if test -n "$YACC"; then
5240 echo "$as_me:$LINENO: result: $YACC" >&5
5241 echo "${ECHO_T}$YACC" >&6
5243 echo "$as_me:$LINENO: result: no" >&5
5244 echo "${ECHO_T}no" >&6
5247 test -n "$YACC" && break
5249 test -n "$YACC" || YACC
="yacc"
5251 if test -n "$ac_tool_prefix"; then
5252 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5253 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5254 echo "$as_me:$LINENO: checking for $ac_word" >&5
5255 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5256 if test "${ac_cv_prog_RANLIB+set}" = set; then
5257 echo $ECHO_N "(cached) $ECHO_C" >&6
5259 if test -n "$RANLIB"; then
5260 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5262 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5266 test -z "$as_dir" && as_dir
=.
5267 for ac_exec_ext
in '' $ac_executable_extensions; do
5268 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5269 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5270 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5278 RANLIB
=$ac_cv_prog_RANLIB
5279 if test -n "$RANLIB"; then
5280 echo "$as_me:$LINENO: result: $RANLIB" >&5
5281 echo "${ECHO_T}$RANLIB" >&6
5283 echo "$as_me:$LINENO: result: no" >&5
5284 echo "${ECHO_T}no" >&6
5288 if test -z "$ac_cv_prog_RANLIB"; then
5289 ac_ct_RANLIB
=$RANLIB
5290 # Extract the first word of "ranlib", so it can be a program name with args.
5291 set dummy ranlib
; ac_word
=$2
5292 echo "$as_me:$LINENO: checking for $ac_word" >&5
5293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5294 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5295 echo $ECHO_N "(cached) $ECHO_C" >&6
5297 if test -n "$ac_ct_RANLIB"; then
5298 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5300 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5304 test -z "$as_dir" && as_dir
=.
5305 for ac_exec_ext
in '' $ac_executable_extensions; do
5306 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5307 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5316 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5317 if test -n "$ac_ct_RANLIB"; then
5318 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5319 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5321 echo "$as_me:$LINENO: result: no" >&5
5322 echo "${ECHO_T}no" >&6
5325 if test "x$ac_ct_RANLIB" = x
; then
5328 if test "$build" != "$host"; then
5329 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5330 whose name does not start with the host triplet. If you think this
5331 configuration is useful to you, please write to autoconf@gnu.org." >&5
5332 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5333 whose name does not start with the host triplet. If you think this
5334 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5336 RANLIB
=$ac_ct_RANLIB
5339 RANLIB
="$ac_cv_prog_RANLIB"
5343 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
5344 if test -f $ac_dir/install-sh
; then
5346 ac_install_sh
="$ac_aux_dir/install-sh -c"
5348 elif test -f $ac_dir/install.sh
; then
5350 ac_install_sh
="$ac_aux_dir/install.sh -c"
5352 elif test -f $ac_dir/shtool
; then
5354 ac_install_sh
="$ac_aux_dir/shtool install -c"
5358 if test -z "$ac_aux_dir"; then
5359 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
5360 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
5361 { (exit 1); exit 1; }; }
5363 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
5364 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
5365 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
5368 ac_dir
=`cd $ac_aux_dir; pwd`
5369 ac_install_sh
="$ac_dir/install-sh -c"
5370 for ac_prog
in install-info
5372 # Extract the first word of "$ac_prog", so it can be a program name with args.
5373 set dummy
$ac_prog; ac_word
=$2
5374 echo "$as_me:$LINENO: checking for $ac_word" >&5
5375 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5376 if test "${ac_cv_prog_INSTALL_INFO+set}" = set; then
5377 echo $ECHO_N "(cached) $ECHO_C" >&6
5379 if test -n "$INSTALL_INFO"; then
5380 ac_cv_prog_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test.
5382 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5386 test -z "$as_dir" && as_dir
=.
5387 for ac_exec_ext
in '' $ac_executable_extensions; do
5388 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5389 ac_cv_prog_INSTALL_INFO
="$ac_prog"
5390 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5398 INSTALL_INFO
=$ac_cv_prog_INSTALL_INFO
5399 if test -n "$INSTALL_INFO"; then
5400 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5401 echo "${ECHO_T}$INSTALL_INFO" >&6
5403 echo "$as_me:$LINENO: result: no" >&5
5404 echo "${ECHO_T}no" >&6
5407 test -n "$INSTALL_INFO" && break
5409 test -n "$INSTALL_INFO" || INSTALL_INFO
=":"
5411 # Find a good install program. We prefer a C program (faster),
5412 # so one script is as good as another. But avoid the broken or
5413 # incompatible versions:
5414 # SysV /etc/install, /usr/sbin/install
5415 # SunOS /usr/etc/install
5416 # IRIX /sbin/install
5418 # AmigaOS /C/install, which installs bootblocks on floppy discs
5419 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5420 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5421 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5422 # OS/2's system install, which has a completely different semantic
5423 # ./install, which can be erroneously created by make from ./install.sh.
5424 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5425 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5426 if test -z "$INSTALL"; then
5427 if test "${ac_cv_path_install+set}" = set; then
5428 echo $ECHO_N "(cached) $ECHO_C" >&6
5430 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5434 test -z "$as_dir" && as_dir
=.
5435 # Account for people who put trailing slashes in PATH elements.
5437 .
/ | .
// |
/cC
/* | \
5438 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
5439 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
5442 # OSF1 and SCO ODT 3.0 have their own names for install.
5443 # Don't use installbsd from OSF since it installs stuff as root
5445 for ac_prog
in ginstall scoinst
install; do
5446 for ac_exec_ext
in '' $ac_executable_extensions; do
5447 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5448 if test $ac_prog = install &&
5449 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5450 # AIX install. It has an incompatible calling convention.
5452 elif test $ac_prog = install &&
5453 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5454 # program-specific install script used by HP pwplus--don't use.
5457 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
5469 if test "${ac_cv_path_install+set}" = set; then
5470 INSTALL
=$ac_cv_path_install
5472 # As a last resort, use the slow shell script. We don't cache a
5473 # path for INSTALL within a source directory, because that will
5474 # break other packages using the cache if that directory is
5475 # removed, or if the path is relative.
5476 INSTALL
=$ac_install_sh
5479 echo "$as_me:$LINENO: result: $INSTALL" >&5
5480 echo "${ECHO_T}$INSTALL" >&6
5482 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5483 # It thinks the first close brace ends the variable substitution.
5484 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
5486 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
5488 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
5490 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5491 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5493 if test "$LN_S" = "ln -s"; then
5494 echo "$as_me:$LINENO: result: yes" >&5
5495 echo "${ECHO_T}yes" >&6
5497 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5498 echo "${ECHO_T}no, using $LN_S" >&6
5502 # use a dummy substitution if no csh hack is necessary to avoid errors
5503 # with non-GNU sed programs
5504 echo "$as_me:$LINENO: checking for csh hash hack" >&5
5505 echo $ECHO_N "checking for csh hash hack... $ECHO_C" >&6
5507 cat <<EOF >conftest.sh
5510 export PATH || exit 0
5514 chmod +x conftest.sh
5515 if echo .
/conftest.sh |
(csh
>/dev
/null
2>&1) >/dev
/null
2>&1; then
5516 echo "$as_me:$LINENO: result: yes" >&5
5517 echo "${ECHO_T}yes" >&6
5518 SH_SCRIPT_SED_CMD
='1s/.*/:/'
5520 echo "$as_me:$LINENO: result: no" >&5
5521 echo "${ECHO_T}no" >&6
5522 SH_SCRIPT_SED_CMD
='1s/a/a/'
5527 # checks for headers
5528 echo "$as_me:$LINENO: checking for grep that handles long lines" >&5
5529 echo $ECHO_N "checking for grep that handles long lines... $ECHO_C" >&6
5530 if test "${oc_cv_path_GREP+set}" = set; then
5531 echo $ECHO_N "(cached) $ECHO_C" >&6
5533 # Extract the first word of "grep ggrep" to use in msg output
5534 if test -z "$GREP"; then
5535 set dummy
grep ggrep
; ac_prog_name
=$2
5536 if test "${ac_cv_path_GREP+set}" = set; then
5537 echo $ECHO_N "(cached) $ECHO_C" >&6
5539 # Create a temporary directory, and hook for its removal unless debugging.
5542 trap 'exit_status=$?; rm -f -r $tmp && exit $exit_status' 0
5543 trap '{ (exit 1); exit 1; }' 1 2 13 15
5546 # Create a (secure) tmp directory for tmp files.
5549 tmp
=`(umask 077 && mktemp -d -q "$TMPDIR/GREPXXXXXX") 2>/dev/null` &&
5550 test -n "$tmp" && test -d "$tmp"
5553 tmp
=$TMPDIR/GREP$$
-$RANDOM
5554 (umask 077 && mkdir
$tmp)
5557 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
5558 { (exit 1); exit 1; }
5560 # Loop through the user's path and test for each of PROGNAME-LIST
5561 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5565 test -z "$as_dir" && as_dir
=.
5566 for ac_prog
in grep ggrep
; do
5567 for ac_exec_ext
in '' $ac_executable_extensions; do
5568 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5569 test -f "$ac_path_GREP" ||
continue
5570 if $as_executable_p "$ac_path_GREP"; then
5571 # Check for GNU ac_path_GREP and select it if it is found.
5572 # Check for GNU $ac_path_GREP
5573 if "$ac_path_GREP" --version 2>&1 < /dev
/null |
grep 'GNU' >/dev
/null
; then
5574 ac_cv_path_GREP
="$ac_path_GREP"
5581 echo $ECHO_N "0123456789$ECHO_C" >"$tmp/conftest.in"
5584 cat "$tmp/conftest.in" "$tmp/conftest.in" >"$tmp/conftest.tmp"
5585 mv "$tmp/conftest.tmp" "$tmp/conftest.in"
5586 cp "$tmp/conftest.in" "$tmp/conftest.nl"
5587 echo 'GREP' >> "$tmp/conftest.nl"
5588 "$ac_path_GREP" 'GREP$' < "$tmp/conftest.nl" >"$tmp/conftest.out" ||
break
5589 diff "$tmp/conftest.out" "$tmp/conftest.nl" >/dev
/null
2>&1 ||
break
5590 ac_count
=`expr $ac_count + 1`
5591 if test $ac_count -gt ${ac_max-0}; then
5592 # Best one so far, save it but keep looking for a better one
5593 ac_cv_path_GREP
="$ac_path_GREP"
5596 # 10*(2^10) chars as input seems more than enough
5597 test $ac_count -gt 10 && break
5609 GREP
="$ac_cv_path_GREP"
5610 if test -z "$GREP"; then
5611 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
5612 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
5613 { (exit 1); exit 1; }; }
5620 echo "$as_me:$LINENO: result: $oc_cv_path_GREP" >&5
5621 echo "${ECHO_T}$oc_cv_path_GREP" >&6
5622 GREP
="$ac_cv_path_GREP"
5625 echo "$as_me:$LINENO: checking for egrep" >&5
5626 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5627 if test "${ac_cv_path_EGREP+set}" = set; then
5628 echo $ECHO_N "(cached) $ECHO_C" >&6
5630 if echo a |
($GREP -E '(a|b)') >/dev
/null
2>&1
5631 then ac_cv_path_EGREP
="$GREP -E"
5633 # Extract the first word of "egrep" to use in msg output
5634 if test -z "$EGREP"; then
5635 set dummy
egrep; ac_prog_name
=$2
5636 if test "${ac_cv_path_EGREP+set}" = set; then
5637 echo $ECHO_N "(cached) $ECHO_C" >&6
5639 # Create a temporary directory, and hook for its removal unless debugging.
5642 trap 'exit_status=$?; rm -f -r $tmp && exit $exit_status' 0
5643 trap '{ (exit 1); exit 1; }' 1 2 13 15
5646 # Create a (secure) tmp directory for tmp files.
5649 tmp
=`(umask 077 && mktemp -d -q "$TMPDIR/EGREPXXXXXX") 2>/dev/null` &&
5650 test -n "$tmp" && test -d "$tmp"
5653 tmp
=$TMPDIR/EGREP$$
-$RANDOM
5654 (umask 077 && mkdir
$tmp)
5657 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
5658 { (exit 1); exit 1; }
5660 # Loop through the user's path and test for each of PROGNAME-LIST
5661 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5665 test -z "$as_dir" && as_dir
=.
5666 for ac_prog
in egrep; do
5667 for ac_exec_ext
in '' $ac_executable_extensions; do
5668 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5669 test -f "$ac_path_EGREP" ||
continue
5670 if $as_executable_p "$ac_path_EGREP"; then
5671 # Check for GNU ac_path_EGREP and select it if it is found.
5672 # Check for GNU $ac_path_EGREP
5673 if "$ac_path_EGREP" --version 2>&1 < /dev
/null |
grep 'GNU' >/dev
/null
; then
5674 ac_cv_path_EGREP
="$ac_path_EGREP"
5681 echo $ECHO_N "0123456789$ECHO_C" >"$tmp/conftest.in"
5684 cat "$tmp/conftest.in" "$tmp/conftest.in" >"$tmp/conftest.tmp"
5685 mv "$tmp/conftest.tmp" "$tmp/conftest.in"
5686 cp "$tmp/conftest.in" "$tmp/conftest.nl"
5687 echo 'EGREP' >> "$tmp/conftest.nl"
5688 "$ac_path_EGREP" 'EGREP$' < "$tmp/conftest.nl" >"$tmp/conftest.out" ||
break
5689 diff "$tmp/conftest.out" "$tmp/conftest.nl" >/dev
/null
2>&1 ||
break
5690 ac_count
=`expr $ac_count + 1`
5691 if test $ac_count -gt ${ac_max-0}; then
5692 # Best one so far, save it but keep looking for a better one
5693 ac_cv_path_EGREP
="$ac_path_EGREP"
5696 # 10*(2^10) chars as input seems more than enough
5697 test $ac_count -gt 10 && break
5709 EGREP
="$ac_cv_path_EGREP"
5710 if test -z "$EGREP"; then
5711 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
5712 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
5713 { (exit 1); exit 1; }; }
5721 echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5722 echo "${ECHO_T}$ac_cv_path_EGREP" >&6
5723 EGREP
="$ac_cv_path_EGREP"
5726 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5727 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5728 if test "${ac_cv_header_stdc+set}" = set; then
5729 echo $ECHO_N "(cached) $ECHO_C" >&6
5731 cat >conftest.
$ac_ext <<_ACEOF
5734 cat confdefs.h
>>conftest.
$ac_ext
5735 cat >>conftest.
$ac_ext <<_ACEOF
5736 /* end confdefs.h. */
5750 rm -f conftest.
$ac_objext
5751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5752 (eval $ac_compile) 2>conftest.er1
5754 grep -v '^ *+' conftest.er1
>conftest.err
5756 cat conftest.err
>&5
5757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5758 (exit $ac_status); } &&
5759 { ac_try
='test -z "$ac_c_werror_flag"
5760 || test ! -s conftest.err'
5761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5765 (exit $ac_status); }; } &&
5766 { ac_try
='test -s conftest.$ac_objext'
5767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5771 (exit $ac_status); }; }; then
5772 ac_cv_header_stdc
=yes
5774 echo "$as_me: failed program was:" >&5
5775 sed 's/^/| /' conftest.
$ac_ext >&5
5777 ac_cv_header_stdc
=no
5779 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5781 if test $ac_cv_header_stdc = yes; then
5782 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5783 cat >conftest.
$ac_ext <<_ACEOF
5786 cat confdefs.h
>>conftest.
$ac_ext
5787 cat >>conftest.
$ac_ext <<_ACEOF
5788 /* end confdefs.h. */
5792 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5793 $EGREP "memchr" >/dev
/null
2>&1; then
5796 ac_cv_header_stdc
=no
5802 if test $ac_cv_header_stdc = yes; then
5803 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5804 cat >conftest.
$ac_ext <<_ACEOF
5807 cat confdefs.h
>>conftest.
$ac_ext
5808 cat >>conftest.
$ac_ext <<_ACEOF
5809 /* end confdefs.h. */
5813 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5814 $EGREP "free" >/dev
/null
2>&1; then
5817 ac_cv_header_stdc
=no
5823 if test $ac_cv_header_stdc = yes; then
5824 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5825 if test "$cross_compiling" = yes; then
5828 cat >conftest.
$ac_ext <<_ACEOF
5831 cat confdefs.h
>>conftest.
$ac_ext
5832 cat >>conftest.
$ac_ext <<_ACEOF
5833 /* end confdefs.h. */
5835 #if ((' ' & 0x0FF) == 0x020)
5836 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5837 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5839 # define ISLOWER(c) \
5840 (('a' <= (c) && (c) <= 'i') \
5841 || ('j' <= (c) && (c) <= 'r') \
5842 || ('s' <= (c) && (c) <= 'z'))
5843 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5846 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5851 for (i = 0; i < 256; i++)
5852 if (XOR (islower (i), ISLOWER (i))
5853 || toupper (i) != TOUPPER (i))
5858 rm -f conftest
$ac_exeext
5859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5860 (eval $ac_link) 2>&5
5862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5863 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5868 (exit $ac_status); }; }; then
5871 echo "$as_me: program exited with status $ac_status" >&5
5872 echo "$as_me: failed program was:" >&5
5873 sed 's/^/| /' conftest.
$ac_ext >&5
5876 ac_cv_header_stdc
=no
5878 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5882 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5883 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5884 if test $ac_cv_header_stdc = yes; then
5886 cat >>confdefs.h
<<\_ACEOF
5887 #define STDC_HEADERS 1
5892 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5902 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5903 inttypes.h stdint.h unistd.h
5905 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5906 echo "$as_me:$LINENO: checking for $ac_header" >&5
5907 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5908 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5909 echo $ECHO_N "(cached) $ECHO_C" >&6
5911 cat >conftest.
$ac_ext <<_ACEOF
5914 cat confdefs.h
>>conftest.
$ac_ext
5915 cat >>conftest.
$ac_ext <<_ACEOF
5916 /* end confdefs.h. */
5917 $ac_includes_default
5919 #include <$ac_header>
5921 rm -f conftest.
$ac_objext
5922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5923 (eval $ac_compile) 2>conftest.er1
5925 grep -v '^ *+' conftest.er1
>conftest.err
5927 cat conftest.err
>&5
5928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5929 (exit $ac_status); } &&
5930 { ac_try
='test -z "$ac_c_werror_flag"
5931 || test ! -s conftest.err'
5932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936 (exit $ac_status); }; } &&
5937 { ac_try
='test -s conftest.$ac_objext'
5938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5942 (exit $ac_status); }; }; then
5943 eval "$as_ac_Header=yes"
5945 echo "$as_me: failed program was:" >&5
5946 sed 's/^/| /' conftest.
$ac_ext >&5
5948 eval "$as_ac_Header=no"
5950 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5952 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5953 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5954 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5955 cat >>confdefs.h
<<_ACEOF
5956 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5975 for ac_header
in stdlib.h unistd.h dirent.h limits.h sys
/dir.h \
5976 string.h
strings.h math.h sys
/time.h direct.h process.h
5978 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5979 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5980 echo "$as_me:$LINENO: checking for $ac_header" >&5
5981 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5982 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5983 echo $ECHO_N "(cached) $ECHO_C" >&6
5985 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5986 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5988 # Is the header compilable?
5989 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5990 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5991 cat >conftest.
$ac_ext <<_ACEOF
5994 cat confdefs.h
>>conftest.
$ac_ext
5995 cat >>conftest.
$ac_ext <<_ACEOF
5996 /* end confdefs.h. */
5997 $ac_includes_default
5998 #include <$ac_header>
6000 rm -f conftest.
$ac_objext
6001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6002 (eval $ac_compile) 2>conftest.er1
6004 grep -v '^ *+' conftest.er1
>conftest.err
6006 cat conftest.err
>&5
6007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6008 (exit $ac_status); } &&
6009 { ac_try
='test -z "$ac_c_werror_flag"
6010 || test ! -s conftest.err'
6011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015 (exit $ac_status); }; } &&
6016 { ac_try
='test -s conftest.$ac_objext'
6017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021 (exit $ac_status); }; }; then
6022 ac_header_compiler
=yes
6024 echo "$as_me: failed program was:" >&5
6025 sed 's/^/| /' conftest.
$ac_ext >&5
6027 ac_header_compiler
=no
6029 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6030 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6031 echo "${ECHO_T}$ac_header_compiler" >&6
6033 # Is the header present?
6034 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6035 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6036 cat >conftest.
$ac_ext <<_ACEOF
6039 cat confdefs.h
>>conftest.
$ac_ext
6040 cat >>conftest.
$ac_ext <<_ACEOF
6041 /* end confdefs.h. */
6042 #include <$ac_header>
6044 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6045 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6047 grep -v '^ *+' conftest.er1
>conftest.err
6049 cat conftest.err
>&5
6050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6051 (exit $ac_status); } >/dev
/null
; then
6052 if test -s conftest.err
; then
6053 ac_cpp_err
=$ac_c_preproc_warn_flag
6054 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6061 if test -z "$ac_cpp_err"; then
6062 ac_header_preproc
=yes
6064 echo "$as_me: failed program was:" >&5
6065 sed 's/^/| /' conftest.
$ac_ext >&5
6067 ac_header_preproc
=no
6069 rm -f conftest.err conftest.
$ac_ext
6070 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6071 echo "${ECHO_T}$ac_header_preproc" >&6
6073 # So? What about this header?
6074 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6076 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6077 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6078 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6079 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6080 ac_header_preproc
=yes
6083 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6084 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6085 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6086 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6087 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6088 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6089 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6090 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6091 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6092 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6093 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6094 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6097 ## ------------------------------------------ ##
6098 ## Report this to the AC_PACKAGE_NAME lists. ##
6099 ## ------------------------------------------ ##
6102 sed "s/^/$as_me: WARNING: /" >&2
6105 echo "$as_me:$LINENO: checking for $ac_header" >&5
6106 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6107 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6108 echo $ECHO_N "(cached) $ECHO_C" >&6
6110 eval "$as_ac_Header=\$ac_header_preproc"
6112 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6113 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6116 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6117 cat >>confdefs.h
<<_ACEOF
6118 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6125 echo "$as_me:$LINENO: checking for ISC 3.x or 4.x" >&5
6126 echo $ECHO_N "checking for ISC 3.x or 4.x... $ECHO_C" >&6
6127 if grep '[34]\.' /usr
/options
/cb.name
>/dev
/null
2>&1
6129 echo "$as_me:$LINENO: result: yes" >&5
6130 echo "${ECHO_T}yes" >&6
6132 cat >>confdefs.h
<<\_ACEOF
6137 echo "$as_me:$LINENO: result: no" >&5
6138 echo "${ECHO_T}no" >&6
6140 echo "$as_me:$LINENO: checking whether -D_POSIX_SOURCE is necessary" >&5
6141 echo $ECHO_N "checking whether -D_POSIX_SOURCE is necessary... $ECHO_C" >&6
6143 ac_cpp
='$CXXCPP $CPPFLAGS'
6144 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6145 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6146 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6148 cat >conftest.
$ac_ext <<_ACEOF
6152 cat confdefs.h
>>conftest.
$ac_ext
6153 cat >>conftest.
$ac_ext <<_ACEOF
6154 /* end confdefs.h. */
6158 extern "C" { void fileno(int); }
6170 rm -f conftest.
$ac_objext
6171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6172 (eval $ac_compile) 2>conftest.er1
6174 grep -v '^ *+' conftest.er1
>conftest.err
6176 cat conftest.err
>&5
6177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6178 (exit $ac_status); } &&
6179 { ac_try
='test -z "$ac_cxx_werror_flag"
6180 || test ! -s conftest.err'
6181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6185 (exit $ac_status); }; } &&
6186 { ac_try
='test -s conftest.$ac_objext'
6187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6191 (exit $ac_status); }; }; then
6192 echo "$as_me:$LINENO: result: yes" >&5
6193 echo "${ECHO_T}yes" >&6
6195 cat >>confdefs.h
<<\_ACEOF
6196 #define _POSIX_SOURCE 1
6200 echo "$as_me: failed program was:" >&5
6201 sed 's/^/| /' conftest.
$ac_ext >&5
6203 echo "$as_me:$LINENO: result: no" >&5
6204 echo "${ECHO_T}no" >&6
6206 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6208 ac_cpp
='$CPP $CPPFLAGS'
6209 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6210 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6211 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6214 # checks for header stuff
6216 ac_cpp
='$CXXCPP $CPPFLAGS'
6217 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6218 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6219 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6221 echo "$as_me:$LINENO: checking for return type of srand" >&5
6222 echo $ECHO_N "checking for return type of srand... $ECHO_C" >&6
6223 cat >conftest.
$ac_ext <<_ACEOF
6227 cat confdefs.h
>>conftest.
$ac_ext
6228 cat >>conftest.
$ac_ext <<_ACEOF
6229 /* end confdefs.h. */
6233 extern "C" { void srand(unsigned int); }
6245 rm -f conftest.
$ac_objext
6246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6247 (eval $ac_compile) 2>conftest.er1
6249 grep -v '^ *+' conftest.er1
>conftest.err
6251 cat conftest.err
>&5
6252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6253 (exit $ac_status); } &&
6254 { ac_try
='test -z "$ac_cxx_werror_flag"
6255 || test ! -s conftest.err'
6256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6260 (exit $ac_status); }; } &&
6261 { ac_try
='test -s conftest.$ac_objext'
6262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6266 (exit $ac_status); }; }; then
6267 echo "$as_me:$LINENO: result: void" >&5
6268 echo "${ECHO_T}void" >&6
6270 cat >>confdefs.h
<<\_ACEOF
6271 #define RET_TYPE_SRAND_IS_VOID 1
6275 echo "$as_me: failed program was:" >&5
6276 sed 's/^/| /' conftest.
$ac_ext >&5
6278 echo "$as_me:$LINENO: result: int" >&5
6279 echo "${ECHO_T}int" >&6
6281 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6283 ac_cpp
='$CPP $CPPFLAGS'
6284 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6285 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6286 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6288 echo "$as_me:$LINENO: checking whether gettimeofday must be declared" >&5
6289 echo $ECHO_N "checking whether gettimeofday must be declared... $ECHO_C" >&6
6291 ac_cpp
='$CXXCPP $CPPFLAGS'
6292 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6293 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6294 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6296 if test "${groff_cv_decl_needed_gettimeofday+set}" = set; then
6297 echo $ECHO_N "(cached) $ECHO_C" >&6
6299 cat >conftest.
$ac_ext <<_ACEOF
6303 cat confdefs.h
>>conftest.
$ac_ext
6304 cat >>conftest.
$ac_ext <<_ACEOF
6305 /* end confdefs.h. */
6309 #ifdef HAVE_STRING_H
6312 #ifdef HAVE_STRINGS_H
6313 #include <strings.h>
6315 #ifdef HAVE_STDLIB_H
6318 #ifdef HAVE_SYS_TIME_H
6319 #include <sys/time.h>
6321 #ifdef HAVE_UNISTD_H
6334 #ifndef gettimeofday
6335 char *p = (char *) gettimeofday;
6344 rm -f conftest.
$ac_objext
6345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6346 (eval $ac_compile) 2>conftest.er1
6348 grep -v '^ *+' conftest.er1
>conftest.err
6350 cat conftest.err
>&5
6351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6352 (exit $ac_status); } &&
6353 { ac_try
='test -z "$ac_cxx_werror_flag"
6354 || test ! -s conftest.err'
6355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6359 (exit $ac_status); }; } &&
6360 { ac_try
='test -s conftest.$ac_objext'
6361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6365 (exit $ac_status); }; }; then
6366 groff_cv_decl_needed_gettimeofday
=no
6368 echo "$as_me: failed program was:" >&5
6369 sed 's/^/| /' conftest.
$ac_ext >&5
6371 groff_cv_decl_needed_gettimeofday
=yes
6373 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6376 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_gettimeofday" >&5
6377 echo "${ECHO_T}$groff_cv_decl_needed_gettimeofday" >&6
6378 if test $groff_cv_decl_needed_gettimeofday = yes; then
6380 cat >>confdefs.h
<<\_ACEOF
6381 #define NEED_DECLARATION_GETTIMEOFDAY 1
6386 ac_cpp
='$CPP $CPPFLAGS'
6387 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6388 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6389 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6391 echo "$as_me:$LINENO: checking whether hypot must be declared" >&5
6392 echo $ECHO_N "checking whether hypot must be declared... $ECHO_C" >&6
6394 ac_cpp
='$CXXCPP $CPPFLAGS'
6395 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6396 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6397 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6399 if test "${groff_cv_decl_needed_hypot+set}" = set; then
6400 echo $ECHO_N "(cached) $ECHO_C" >&6
6402 cat >conftest.
$ac_ext <<_ACEOF
6406 cat confdefs.h
>>conftest.
$ac_ext
6407 cat >>conftest.
$ac_ext <<_ACEOF
6408 /* end confdefs.h. */
6412 #ifdef HAVE_STRING_H
6415 #ifdef HAVE_STRINGS_H
6416 #include <strings.h>
6418 #ifdef HAVE_STDLIB_H
6421 #ifdef HAVE_SYS_TIME_H
6422 #include <sys/time.h>
6424 #ifdef HAVE_UNISTD_H
6438 char *p = (char *) hypot;
6447 rm -f conftest.
$ac_objext
6448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6449 (eval $ac_compile) 2>conftest.er1
6451 grep -v '^ *+' conftest.er1
>conftest.err
6453 cat conftest.err
>&5
6454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6455 (exit $ac_status); } &&
6456 { ac_try
='test -z "$ac_cxx_werror_flag"
6457 || test ! -s conftest.err'
6458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6462 (exit $ac_status); }; } &&
6463 { ac_try
='test -s conftest.$ac_objext'
6464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6468 (exit $ac_status); }; }; then
6469 groff_cv_decl_needed_hypot
=no
6471 echo "$as_me: failed program was:" >&5
6472 sed 's/^/| /' conftest.
$ac_ext >&5
6474 groff_cv_decl_needed_hypot
=yes
6476 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6479 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_hypot" >&5
6480 echo "${ECHO_T}$groff_cv_decl_needed_hypot" >&6
6481 if test $groff_cv_decl_needed_hypot = yes; then
6483 cat >>confdefs.h
<<\_ACEOF
6484 #define NEED_DECLARATION_HYPOT 1
6489 ac_cpp
='$CPP $CPPFLAGS'
6490 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6491 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6492 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6494 echo "$as_me:$LINENO: checking whether popen must be declared" >&5
6495 echo $ECHO_N "checking whether popen must be declared... $ECHO_C" >&6
6497 ac_cpp
='$CXXCPP $CPPFLAGS'
6498 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6499 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6500 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6502 if test "${groff_cv_decl_needed_popen+set}" = set; then
6503 echo $ECHO_N "(cached) $ECHO_C" >&6
6505 cat >conftest.
$ac_ext <<_ACEOF
6509 cat confdefs.h
>>conftest.
$ac_ext
6510 cat >>conftest.
$ac_ext <<_ACEOF
6511 /* end confdefs.h. */
6515 #ifdef HAVE_STRING_H
6518 #ifdef HAVE_STRINGS_H
6519 #include <strings.h>
6521 #ifdef HAVE_STDLIB_H
6524 #ifdef HAVE_SYS_TIME_H
6525 #include <sys/time.h>
6527 #ifdef HAVE_UNISTD_H
6541 char *p = (char *) popen;
6550 rm -f conftest.
$ac_objext
6551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6552 (eval $ac_compile) 2>conftest.er1
6554 grep -v '^ *+' conftest.er1
>conftest.err
6556 cat conftest.err
>&5
6557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6558 (exit $ac_status); } &&
6559 { ac_try
='test -z "$ac_cxx_werror_flag"
6560 || test ! -s conftest.err'
6561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6565 (exit $ac_status); }; } &&
6566 { ac_try
='test -s conftest.$ac_objext'
6567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6571 (exit $ac_status); }; }; then
6572 groff_cv_decl_needed_popen
=no
6574 echo "$as_me: failed program was:" >&5
6575 sed 's/^/| /' conftest.
$ac_ext >&5
6577 groff_cv_decl_needed_popen
=yes
6579 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6582 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_popen" >&5
6583 echo "${ECHO_T}$groff_cv_decl_needed_popen" >&6
6584 if test $groff_cv_decl_needed_popen = yes; then
6586 cat >>confdefs.h
<<\_ACEOF
6587 #define NEED_DECLARATION_POPEN 1
6592 ac_cpp
='$CPP $CPPFLAGS'
6593 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6594 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6595 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6597 echo "$as_me:$LINENO: checking whether pclose must be declared" >&5
6598 echo $ECHO_N "checking whether pclose must be declared... $ECHO_C" >&6
6600 ac_cpp
='$CXXCPP $CPPFLAGS'
6601 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6602 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6603 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6605 if test "${groff_cv_decl_needed_pclose+set}" = set; then
6606 echo $ECHO_N "(cached) $ECHO_C" >&6
6608 cat >conftest.
$ac_ext <<_ACEOF
6612 cat confdefs.h
>>conftest.
$ac_ext
6613 cat >>conftest.
$ac_ext <<_ACEOF
6614 /* end confdefs.h. */
6618 #ifdef HAVE_STRING_H
6621 #ifdef HAVE_STRINGS_H
6622 #include <strings.h>
6624 #ifdef HAVE_STDLIB_H
6627 #ifdef HAVE_SYS_TIME_H
6628 #include <sys/time.h>
6630 #ifdef HAVE_UNISTD_H
6644 char *p = (char *) pclose;
6653 rm -f conftest.
$ac_objext
6654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6655 (eval $ac_compile) 2>conftest.er1
6657 grep -v '^ *+' conftest.er1
>conftest.err
6659 cat conftest.err
>&5
6660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6661 (exit $ac_status); } &&
6662 { ac_try
='test -z "$ac_cxx_werror_flag"
6663 || test ! -s conftest.err'
6664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6668 (exit $ac_status); }; } &&
6669 { ac_try
='test -s conftest.$ac_objext'
6670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6674 (exit $ac_status); }; }; then
6675 groff_cv_decl_needed_pclose
=no
6677 echo "$as_me: failed program was:" >&5
6678 sed 's/^/| /' conftest.
$ac_ext >&5
6680 groff_cv_decl_needed_pclose
=yes
6682 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6685 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_pclose" >&5
6686 echo "${ECHO_T}$groff_cv_decl_needed_pclose" >&6
6687 if test $groff_cv_decl_needed_pclose = yes; then
6689 cat >>confdefs.h
<<\_ACEOF
6690 #define NEED_DECLARATION_PCLOSE 1
6695 ac_cpp
='$CPP $CPPFLAGS'
6696 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6697 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6698 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6700 echo "$as_me:$LINENO: checking whether putenv must be declared" >&5
6701 echo $ECHO_N "checking whether putenv must be declared... $ECHO_C" >&6
6703 ac_cpp
='$CXXCPP $CPPFLAGS'
6704 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6705 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6706 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6708 if test "${groff_cv_decl_needed_putenv+set}" = set; then
6709 echo $ECHO_N "(cached) $ECHO_C" >&6
6711 cat >conftest.
$ac_ext <<_ACEOF
6715 cat confdefs.h
>>conftest.
$ac_ext
6716 cat >>conftest.
$ac_ext <<_ACEOF
6717 /* end confdefs.h. */
6721 #ifdef HAVE_STRING_H
6724 #ifdef HAVE_STRINGS_H
6725 #include <strings.h>
6727 #ifdef HAVE_STDLIB_H
6730 #ifdef HAVE_SYS_TIME_H
6731 #include <sys/time.h>
6733 #ifdef HAVE_UNISTD_H
6747 char *p = (char *) putenv;
6756 rm -f conftest.
$ac_objext
6757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6758 (eval $ac_compile) 2>conftest.er1
6760 grep -v '^ *+' conftest.er1
>conftest.err
6762 cat conftest.err
>&5
6763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6764 (exit $ac_status); } &&
6765 { ac_try
='test -z "$ac_cxx_werror_flag"
6766 || test ! -s conftest.err'
6767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6771 (exit $ac_status); }; } &&
6772 { ac_try
='test -s conftest.$ac_objext'
6773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6777 (exit $ac_status); }; }; then
6778 groff_cv_decl_needed_putenv
=no
6780 echo "$as_me: failed program was:" >&5
6781 sed 's/^/| /' conftest.
$ac_ext >&5
6783 groff_cv_decl_needed_putenv
=yes
6785 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6788 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_putenv" >&5
6789 echo "${ECHO_T}$groff_cv_decl_needed_putenv" >&6
6790 if test $groff_cv_decl_needed_putenv = yes; then
6792 cat >>confdefs.h
<<\_ACEOF
6793 #define NEED_DECLARATION_PUTENV 1
6798 ac_cpp
='$CPP $CPPFLAGS'
6799 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6800 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6801 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6803 echo "$as_me:$LINENO: checking whether rand must be declared" >&5
6804 echo $ECHO_N "checking whether rand must be declared... $ECHO_C" >&6
6806 ac_cpp
='$CXXCPP $CPPFLAGS'
6807 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6808 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6809 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6811 if test "${groff_cv_decl_needed_rand+set}" = set; then
6812 echo $ECHO_N "(cached) $ECHO_C" >&6
6814 cat >conftest.
$ac_ext <<_ACEOF
6818 cat confdefs.h
>>conftest.
$ac_ext
6819 cat >>conftest.
$ac_ext <<_ACEOF
6820 /* end confdefs.h. */
6824 #ifdef HAVE_STRING_H
6827 #ifdef HAVE_STRINGS_H
6828 #include <strings.h>
6830 #ifdef HAVE_STDLIB_H
6833 #ifdef HAVE_SYS_TIME_H
6834 #include <sys/time.h>
6836 #ifdef HAVE_UNISTD_H
6850 char *p = (char *) rand;
6859 rm -f conftest.
$ac_objext
6860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6861 (eval $ac_compile) 2>conftest.er1
6863 grep -v '^ *+' conftest.er1
>conftest.err
6865 cat conftest.err
>&5
6866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6867 (exit $ac_status); } &&
6868 { ac_try
='test -z "$ac_cxx_werror_flag"
6869 || test ! -s conftest.err'
6870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6874 (exit $ac_status); }; } &&
6875 { ac_try
='test -s conftest.$ac_objext'
6876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6880 (exit $ac_status); }; }; then
6881 groff_cv_decl_needed_rand
=no
6883 echo "$as_me: failed program was:" >&5
6884 sed 's/^/| /' conftest.
$ac_ext >&5
6886 groff_cv_decl_needed_rand
=yes
6888 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6891 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_rand" >&5
6892 echo "${ECHO_T}$groff_cv_decl_needed_rand" >&6
6893 if test $groff_cv_decl_needed_rand = yes; then
6895 cat >>confdefs.h
<<\_ACEOF
6896 #define NEED_DECLARATION_RAND 1
6901 ac_cpp
='$CPP $CPPFLAGS'
6902 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6903 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6904 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6906 echo "$as_me:$LINENO: checking whether snprintf must be declared" >&5
6907 echo $ECHO_N "checking whether snprintf must be declared... $ECHO_C" >&6
6909 ac_cpp
='$CXXCPP $CPPFLAGS'
6910 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6911 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6912 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6914 if test "${groff_cv_decl_needed_snprintf+set}" = set; then
6915 echo $ECHO_N "(cached) $ECHO_C" >&6
6917 cat >conftest.
$ac_ext <<_ACEOF
6921 cat confdefs.h
>>conftest.
$ac_ext
6922 cat >>conftest.
$ac_ext <<_ACEOF
6923 /* end confdefs.h. */
6927 #ifdef HAVE_STRING_H
6930 #ifdef HAVE_STRINGS_H
6931 #include <strings.h>
6933 #ifdef HAVE_STDLIB_H
6936 #ifdef HAVE_SYS_TIME_H
6937 #include <sys/time.h>
6939 #ifdef HAVE_UNISTD_H
6953 char *p = (char *) snprintf;
6962 rm -f conftest.
$ac_objext
6963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6964 (eval $ac_compile) 2>conftest.er1
6966 grep -v '^ *+' conftest.er1
>conftest.err
6968 cat conftest.err
>&5
6969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6970 (exit $ac_status); } &&
6971 { ac_try
='test -z "$ac_cxx_werror_flag"
6972 || test ! -s conftest.err'
6973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6977 (exit $ac_status); }; } &&
6978 { ac_try
='test -s conftest.$ac_objext'
6979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6983 (exit $ac_status); }; }; then
6984 groff_cv_decl_needed_snprintf
=no
6986 echo "$as_me: failed program was:" >&5
6987 sed 's/^/| /' conftest.
$ac_ext >&5
6989 groff_cv_decl_needed_snprintf
=yes
6991 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6994 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_snprintf" >&5
6995 echo "${ECHO_T}$groff_cv_decl_needed_snprintf" >&6
6996 if test $groff_cv_decl_needed_snprintf = yes; then
6998 cat >>confdefs.h
<<\_ACEOF
6999 #define NEED_DECLARATION_SNPRINTF 1
7004 ac_cpp
='$CPP $CPPFLAGS'
7005 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7006 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7007 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7009 echo "$as_me:$LINENO: checking whether srand must be declared" >&5
7010 echo $ECHO_N "checking whether srand must be declared... $ECHO_C" >&6
7012 ac_cpp
='$CXXCPP $CPPFLAGS'
7013 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7014 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7015 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7017 if test "${groff_cv_decl_needed_srand+set}" = set; then
7018 echo $ECHO_N "(cached) $ECHO_C" >&6
7020 cat >conftest.
$ac_ext <<_ACEOF
7024 cat confdefs.h
>>conftest.
$ac_ext
7025 cat >>conftest.
$ac_ext <<_ACEOF
7026 /* end confdefs.h. */
7030 #ifdef HAVE_STRING_H
7033 #ifdef HAVE_STRINGS_H
7034 #include <strings.h>
7036 #ifdef HAVE_STDLIB_H
7039 #ifdef HAVE_SYS_TIME_H
7040 #include <sys/time.h>
7042 #ifdef HAVE_UNISTD_H
7056 char *p = (char *) srand;
7065 rm -f conftest.
$ac_objext
7066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7067 (eval $ac_compile) 2>conftest.er1
7069 grep -v '^ *+' conftest.er1
>conftest.err
7071 cat conftest.err
>&5
7072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7073 (exit $ac_status); } &&
7074 { ac_try
='test -z "$ac_cxx_werror_flag"
7075 || test ! -s conftest.err'
7076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7080 (exit $ac_status); }; } &&
7081 { ac_try
='test -s conftest.$ac_objext'
7082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7086 (exit $ac_status); }; }; then
7087 groff_cv_decl_needed_srand
=no
7089 echo "$as_me: failed program was:" >&5
7090 sed 's/^/| /' conftest.
$ac_ext >&5
7092 groff_cv_decl_needed_srand
=yes
7094 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7097 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_srand" >&5
7098 echo "${ECHO_T}$groff_cv_decl_needed_srand" >&6
7099 if test $groff_cv_decl_needed_srand = yes; then
7101 cat >>confdefs.h
<<\_ACEOF
7102 #define NEED_DECLARATION_SRAND 1
7107 ac_cpp
='$CPP $CPPFLAGS'
7108 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7109 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7110 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7112 echo "$as_me:$LINENO: checking whether strcasecmp must be declared" >&5
7113 echo $ECHO_N "checking whether strcasecmp must be declared... $ECHO_C" >&6
7115 ac_cpp
='$CXXCPP $CPPFLAGS'
7116 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7117 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7118 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7120 if test "${groff_cv_decl_needed_strcasecmp+set}" = set; then
7121 echo $ECHO_N "(cached) $ECHO_C" >&6
7123 cat >conftest.
$ac_ext <<_ACEOF
7127 cat confdefs.h
>>conftest.
$ac_ext
7128 cat >>conftest.
$ac_ext <<_ACEOF
7129 /* end confdefs.h. */
7133 #ifdef HAVE_STRING_H
7136 #ifdef HAVE_STRINGS_H
7137 #include <strings.h>
7139 #ifdef HAVE_STDLIB_H
7142 #ifdef HAVE_SYS_TIME_H
7143 #include <sys/time.h>
7145 #ifdef HAVE_UNISTD_H
7159 char *p = (char *) strcasecmp;
7168 rm -f conftest.
$ac_objext
7169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7170 (eval $ac_compile) 2>conftest.er1
7172 grep -v '^ *+' conftest.er1
>conftest.err
7174 cat conftest.err
>&5
7175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7176 (exit $ac_status); } &&
7177 { ac_try
='test -z "$ac_cxx_werror_flag"
7178 || test ! -s conftest.err'
7179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7183 (exit $ac_status); }; } &&
7184 { ac_try
='test -s conftest.$ac_objext'
7185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7189 (exit $ac_status); }; }; then
7190 groff_cv_decl_needed_strcasecmp
=no
7192 echo "$as_me: failed program was:" >&5
7193 sed 's/^/| /' conftest.
$ac_ext >&5
7195 groff_cv_decl_needed_strcasecmp
=yes
7197 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7200 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_strcasecmp" >&5
7201 echo "${ECHO_T}$groff_cv_decl_needed_strcasecmp" >&6
7202 if test $groff_cv_decl_needed_strcasecmp = yes; then
7204 cat >>confdefs.h
<<\_ACEOF
7205 #define NEED_DECLARATION_STRCASECMP 1
7210 ac_cpp
='$CPP $CPPFLAGS'
7211 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7212 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7213 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7215 echo "$as_me:$LINENO: checking whether strncasecmp must be declared" >&5
7216 echo $ECHO_N "checking whether strncasecmp must be declared... $ECHO_C" >&6
7218 ac_cpp
='$CXXCPP $CPPFLAGS'
7219 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7220 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7221 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7223 if test "${groff_cv_decl_needed_strncasecmp+set}" = set; then
7224 echo $ECHO_N "(cached) $ECHO_C" >&6
7226 cat >conftest.
$ac_ext <<_ACEOF
7230 cat confdefs.h
>>conftest.
$ac_ext
7231 cat >>conftest.
$ac_ext <<_ACEOF
7232 /* end confdefs.h. */
7236 #ifdef HAVE_STRING_H
7239 #ifdef HAVE_STRINGS_H
7240 #include <strings.h>
7242 #ifdef HAVE_STDLIB_H
7245 #ifdef HAVE_SYS_TIME_H
7246 #include <sys/time.h>
7248 #ifdef HAVE_UNISTD_H
7262 char *p = (char *) strncasecmp;
7271 rm -f conftest.
$ac_objext
7272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7273 (eval $ac_compile) 2>conftest.er1
7275 grep -v '^ *+' conftest.er1
>conftest.err
7277 cat conftest.err
>&5
7278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7279 (exit $ac_status); } &&
7280 { ac_try
='test -z "$ac_cxx_werror_flag"
7281 || test ! -s conftest.err'
7282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7286 (exit $ac_status); }; } &&
7287 { ac_try
='test -s conftest.$ac_objext'
7288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7292 (exit $ac_status); }; }; then
7293 groff_cv_decl_needed_strncasecmp
=no
7295 echo "$as_me: failed program was:" >&5
7296 sed 's/^/| /' conftest.
$ac_ext >&5
7298 groff_cv_decl_needed_strncasecmp
=yes
7300 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7303 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_strncasecmp" >&5
7304 echo "${ECHO_T}$groff_cv_decl_needed_strncasecmp" >&6
7305 if test $groff_cv_decl_needed_strncasecmp = yes; then
7307 cat >>confdefs.h
<<\_ACEOF
7308 #define NEED_DECLARATION_STRNCASECMP 1
7313 ac_cpp
='$CPP $CPPFLAGS'
7314 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7315 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7316 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7318 echo "$as_me:$LINENO: checking whether vfprintf must be declared" >&5
7319 echo $ECHO_N "checking whether vfprintf must be declared... $ECHO_C" >&6
7321 ac_cpp
='$CXXCPP $CPPFLAGS'
7322 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7323 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7324 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7326 if test "${groff_cv_decl_needed_vfprintf+set}" = set; then
7327 echo $ECHO_N "(cached) $ECHO_C" >&6
7329 cat >conftest.
$ac_ext <<_ACEOF
7333 cat confdefs.h
>>conftest.
$ac_ext
7334 cat >>conftest.
$ac_ext <<_ACEOF
7335 /* end confdefs.h. */
7339 #ifdef HAVE_STRING_H
7342 #ifdef HAVE_STRINGS_H
7343 #include <strings.h>
7345 #ifdef HAVE_STDLIB_H
7348 #ifdef HAVE_SYS_TIME_H
7349 #include <sys/time.h>
7351 #ifdef HAVE_UNISTD_H
7365 char *p = (char *) vfprintf;
7374 rm -f conftest.
$ac_objext
7375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7376 (eval $ac_compile) 2>conftest.er1
7378 grep -v '^ *+' conftest.er1
>conftest.err
7380 cat conftest.err
>&5
7381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7382 (exit $ac_status); } &&
7383 { ac_try
='test -z "$ac_cxx_werror_flag"
7384 || test ! -s conftest.err'
7385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7389 (exit $ac_status); }; } &&
7390 { ac_try
='test -s conftest.$ac_objext'
7391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7395 (exit $ac_status); }; }; then
7396 groff_cv_decl_needed_vfprintf
=no
7398 echo "$as_me: failed program was:" >&5
7399 sed 's/^/| /' conftest.
$ac_ext >&5
7401 groff_cv_decl_needed_vfprintf
=yes
7403 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7406 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_vfprintf" >&5
7407 echo "${ECHO_T}$groff_cv_decl_needed_vfprintf" >&6
7408 if test $groff_cv_decl_needed_vfprintf = yes; then
7410 cat >>confdefs.h
<<\_ACEOF
7411 #define NEED_DECLARATION_VFPRINTF 1
7416 ac_cpp
='$CPP $CPPFLAGS'
7417 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7418 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7419 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7421 echo "$as_me:$LINENO: checking whether vsnprintf must be declared" >&5
7422 echo $ECHO_N "checking whether vsnprintf must be declared... $ECHO_C" >&6
7424 ac_cpp
='$CXXCPP $CPPFLAGS'
7425 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7426 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7427 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7429 if test "${groff_cv_decl_needed_vsnprintf+set}" = set; then
7430 echo $ECHO_N "(cached) $ECHO_C" >&6
7432 cat >conftest.
$ac_ext <<_ACEOF
7436 cat confdefs.h
>>conftest.
$ac_ext
7437 cat >>conftest.
$ac_ext <<_ACEOF
7438 /* end confdefs.h. */
7442 #ifdef HAVE_STRING_H
7445 #ifdef HAVE_STRINGS_H
7446 #include <strings.h>
7448 #ifdef HAVE_STDLIB_H
7451 #ifdef HAVE_SYS_TIME_H
7452 #include <sys/time.h>
7454 #ifdef HAVE_UNISTD_H
7468 char *p = (char *) vsnprintf;
7477 rm -f conftest.
$ac_objext
7478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7479 (eval $ac_compile) 2>conftest.er1
7481 grep -v '^ *+' conftest.er1
>conftest.err
7483 cat conftest.err
>&5
7484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7485 (exit $ac_status); } &&
7486 { ac_try
='test -z "$ac_cxx_werror_flag"
7487 || test ! -s conftest.err'
7488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7492 (exit $ac_status); }; } &&
7493 { ac_try
='test -s conftest.$ac_objext'
7494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7498 (exit $ac_status); }; }; then
7499 groff_cv_decl_needed_vsnprintf
=no
7501 echo "$as_me: failed program was:" >&5
7502 sed 's/^/| /' conftest.
$ac_ext >&5
7504 groff_cv_decl_needed_vsnprintf
=yes
7506 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7509 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_vsnprintf" >&5
7510 echo "${ECHO_T}$groff_cv_decl_needed_vsnprintf" >&6
7511 if test $groff_cv_decl_needed_vsnprintf = yes; then
7513 cat >>confdefs.h
<<\_ACEOF
7514 #define NEED_DECLARATION_VSNPRINTF 1
7519 ac_cpp
='$CPP $CPPFLAGS'
7520 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7521 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7522 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7525 ac_cpp
='$CXXCPP $CPPFLAGS'
7526 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7527 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7528 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7530 echo "$as_me:$LINENO: checking for sys_nerr in <errno.h>, <stdio.h>, or <stdlib.h>" >&5
7531 echo $ECHO_N "checking for sys_nerr in <errno.h>, <stdio.h>, or <stdlib.h>... $ECHO_C" >&6
7532 cat >conftest.
$ac_ext <<_ACEOF
7536 cat confdefs.h
>>conftest.
$ac_ext
7537 cat >>conftest.
$ac_ext <<_ACEOF
7538 /* end confdefs.h. */
7560 rm -f conftest.
$ac_objext
7561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7562 (eval $ac_compile) 2>conftest.er1
7564 grep -v '^ *+' conftest.er1
>conftest.err
7566 cat conftest.err
>&5
7567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7568 (exit $ac_status); } &&
7569 { ac_try
='test -z "$ac_cxx_werror_flag"
7570 || test ! -s conftest.err'
7571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7575 (exit $ac_status); }; } &&
7576 { ac_try
='test -s conftest.$ac_objext'
7577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7581 (exit $ac_status); }; }; then
7582 echo "$as_me:$LINENO: result: yes" >&5
7583 echo "${ECHO_T}yes" >&6
7585 cat >>confdefs.h
<<\_ACEOF
7586 #define HAVE_SYS_NERR 1
7590 echo "$as_me: failed program was:" >&5
7591 sed 's/^/| /' conftest.
$ac_ext >&5
7593 echo "$as_me:$LINENO: result: no" >&5
7594 echo "${ECHO_T}no" >&6
7596 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7598 ac_cpp
='$CPP $CPPFLAGS'
7599 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7600 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7601 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7603 echo "$as_me:$LINENO: checking for sys_errlist in <errno.h>, <stdio.h>, or <stdlib.h>" >&5
7604 echo $ECHO_N "checking for sys_errlist in <errno.h>, <stdio.h>, or <stdlib.h>... $ECHO_C" >&6
7605 cat >conftest.
$ac_ext <<_ACEOF
7609 cat confdefs.h
>>conftest.
$ac_ext
7610 cat >>conftest.
$ac_ext <<_ACEOF
7611 /* end confdefs.h. */
7625 k = (int)sys_errlist[0];
7633 rm -f conftest.
$ac_objext
7634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7635 (eval $ac_compile) 2>conftest.er1
7637 grep -v '^ *+' conftest.er1
>conftest.err
7639 cat conftest.err
>&5
7640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7641 (exit $ac_status); } &&
7642 { ac_try
='test -z "$ac_c_werror_flag"
7643 || test ! -s conftest.err'
7644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7648 (exit $ac_status); }; } &&
7649 { ac_try
='test -s conftest.$ac_objext'
7650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7654 (exit $ac_status); }; }; then
7655 echo "$as_me:$LINENO: result: yes" >&5
7656 echo "${ECHO_T}yes" >&6
7658 cat >>confdefs.h
<<\_ACEOF
7659 #define HAVE_SYS_ERRLIST 1
7663 echo "$as_me: failed program was:" >&5
7664 sed 's/^/| /' conftest.
$ac_ext >&5
7666 echo "$as_me:$LINENO: result: no" >&5
7667 echo "${ECHO_T}no" >&6
7669 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7671 ac_cpp
='$CXXCPP $CPPFLAGS'
7672 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7673 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7674 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7676 echo "$as_me:$LINENO: checking C++ <osfcn.h>" >&5
7677 echo $ECHO_N "checking C++ <osfcn.h>... $ECHO_C" >&6
7678 cat >conftest.
$ac_ext <<_ACEOF
7682 cat confdefs.h
>>conftest.
$ac_ext
7683 cat >>conftest.
$ac_ext <<_ACEOF
7684 /* end confdefs.h. */
7704 rm -f conftest.
$ac_objext
7705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7706 (eval $ac_compile) 2>conftest.er1
7708 grep -v '^ *+' conftest.er1
>conftest.err
7710 cat conftest.err
>&5
7711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7712 (exit $ac_status); } &&
7713 { ac_try
='test -z "$ac_cxx_werror_flag"
7714 || test ! -s conftest.err'
7715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7719 (exit $ac_status); }; } &&
7720 { ac_try
='test -s conftest.$ac_objext'
7721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7725 (exit $ac_status); }; }; then
7726 echo "$as_me:$LINENO: result: yes" >&5
7727 echo "${ECHO_T}yes" >&6
7729 cat >>confdefs.h
<<\_ACEOF
7730 #define HAVE_CC_OSFCN_H 1
7734 echo "$as_me: failed program was:" >&5
7735 sed 's/^/| /' conftest.
$ac_ext >&5
7737 echo "$as_me:$LINENO: result: no" >&5
7738 echo "${ECHO_T}no" >&6
7740 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7742 ac_cpp
='$CPP $CPPFLAGS'
7743 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7744 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7745 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7748 ac_cpp
='$CXXCPP $CPPFLAGS'
7749 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7750 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7751 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7753 echo "$as_me:$LINENO: checking C++ <limits.h>" >&5
7754 echo $ECHO_N "checking C++ <limits.h>... $ECHO_C" >&6
7755 cat >conftest.
$ac_ext <<_ACEOF
7759 cat confdefs.h
>>conftest.
$ac_ext
7760 cat >>conftest.
$ac_ext <<_ACEOF
7761 /* end confdefs.h. */
7782 rm -f conftest.
$ac_objext
7783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7784 (eval $ac_compile) 2>conftest.er1
7786 grep -v '^ *+' conftest.er1
>conftest.err
7788 cat conftest.err
>&5
7789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7790 (exit $ac_status); } &&
7791 { ac_try
='test -z "$ac_cxx_werror_flag"
7792 || test ! -s conftest.err'
7793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7797 (exit $ac_status); }; } &&
7798 { ac_try
='test -s conftest.$ac_objext'
7799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7803 (exit $ac_status); }; }; then
7804 echo "$as_me:$LINENO: result: yes" >&5
7805 echo "${ECHO_T}yes" >&6
7807 cat >>confdefs.h
<<\_ACEOF
7808 #define HAVE_CC_LIMITS_H 1
7812 echo "$as_me: failed program was:" >&5
7813 sed 's/^/| /' conftest.
$ac_ext >&5
7815 echo "$as_me:$LINENO: result: no" >&5
7816 echo "${ECHO_T}no" >&6
7818 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7820 ac_cpp
='$CPP $CPPFLAGS'
7821 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7822 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7823 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7826 ac_cpp
='$CXXCPP $CPPFLAGS'
7827 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7828 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7829 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7831 echo "$as_me:$LINENO: checking C++ <inttypes.h>" >&5
7832 echo $ECHO_N "checking C++ <inttypes.h>... $ECHO_C" >&6
7833 cat >conftest.
$ac_ext <<_ACEOF
7837 cat confdefs.h
>>conftest.
$ac_ext
7838 cat >>conftest.
$ac_ext <<_ACEOF
7839 /* end confdefs.h. */
7842 #include <sys/types.h>
7843 #include <inttypes.h>
7851 uintmax_t i = (uintmax_t)-1;
7859 rm -f conftest.
$ac_objext
7860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7861 (eval $ac_compile) 2>conftest.er1
7863 grep -v '^ *+' conftest.er1
>conftest.err
7865 cat conftest.err
>&5
7866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7867 (exit $ac_status); } &&
7868 { ac_try
='test -z "$ac_cxx_werror_flag"
7869 || test ! -s conftest.err'
7870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7874 (exit $ac_status); }; } &&
7875 { ac_try
='test -s conftest.$ac_objext'
7876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7880 (exit $ac_status); }; }; then
7881 groff_cv_header_inttypes_h
=yes
7883 cat >>confdefs.h
<<\_ACEOF
7884 #define HAVE_CC_INTTYPES_H 1
7888 echo "$as_me: failed program was:" >&5
7889 sed 's/^/| /' conftest.
$ac_ext >&5
7891 groff_cv_header_inttypes_h
=no
7893 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7894 echo "$as_me:$LINENO: result: $groff_cv_header_inttypes_h" >&5
7895 echo "${ECHO_T}$groff_cv_header_inttypes_h" >&6
7897 ac_cpp
='$CPP $CPPFLAGS'
7898 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7899 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7900 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7903 # checks for typedefs
7905 ac_cpp
='$CXXCPP $CPPFLAGS'
7906 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7907 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7908 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7910 echo "$as_me:$LINENO: checking for unsigned long long" >&5
7911 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
7912 cat >conftest.
$ac_ext <<_ACEOF
7916 cat confdefs.h
>>conftest.
$ac_ext
7917 cat >>conftest.
$ac_ext <<_ACEOF
7918 /* end confdefs.h. */
7921 unsigned long long ull = 1;
7923 unsigned long long ullmax = (unsigned long long)-1;
7931 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
7939 rm -f conftest.
$ac_objext conftest
$ac_exeext
7940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7941 (eval $ac_link) 2>conftest.er1
7943 grep -v '^ *+' conftest.er1
>conftest.err
7945 cat conftest.err
>&5
7946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7947 (exit $ac_status); } &&
7948 { ac_try
='test -z "$ac_cxx_werror_flag"
7949 || test ! -s conftest.err'
7950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7954 (exit $ac_status); }; } &&
7955 { ac_try
='test -s conftest$ac_exeext'
7956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7960 (exit $ac_status); }; }; then
7961 groff_cv_type_unsigned_long_long
=yes
7963 echo "$as_me: failed program was:" >&5
7964 sed 's/^/| /' conftest.
$ac_ext >&5
7966 groff_cv_type_unsigned_long_long
=no
7968 rm -f conftest.err conftest.
$ac_objext \
7969 conftest
$ac_exeext conftest.
$ac_ext
7970 echo "$as_me:$LINENO: result: $groff_cv_type_unsigned_long_long" >&5
7971 echo "${ECHO_T}$groff_cv_type_unsigned_long_long" >&6
7973 ac_cpp
='$CPP $CPPFLAGS'
7974 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7975 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7976 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7979 if test $groff_cv_header_inttypes_h = no
; then
7981 test $groff_cv_type_unsigned_long_long = yes \
7982 && ac_type
='unsigned long long' \
7983 || ac_type
='unsigned long'
7985 cat >>confdefs.h
<<_ACEOF
7986 #define uintmax_t $ac_type
7991 ac_cpp
='$CXXCPP $CPPFLAGS'
7992 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7993 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7994 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7996 echo "$as_me:$LINENO: checking for declaration of time_t" >&5
7997 echo $ECHO_N "checking for declaration of time_t... $ECHO_C" >&6
7998 cat >conftest.
$ac_ext <<_ACEOF
8002 cat confdefs.h
>>conftest.
$ac_ext
8003 cat >>conftest.
$ac_ext <<_ACEOF
8004 /* end confdefs.h. */
8016 struct tm *p = localtime(&t);
8024 rm -f conftest.
$ac_objext
8025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8026 (eval $ac_compile) 2>conftest.er1
8028 grep -v '^ *+' conftest.er1
>conftest.err
8030 cat conftest.err
>&5
8031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8032 (exit $ac_status); } &&
8033 { ac_try
='test -z "$ac_cxx_werror_flag"
8034 || test ! -s conftest.err'
8035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8039 (exit $ac_status); }; } &&
8040 { ac_try
='test -s conftest.$ac_objext'
8041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8045 (exit $ac_status); }; }; then
8046 echo "$as_me:$LINENO: result: yes" >&5
8047 echo "${ECHO_T}yes" >&6
8049 echo "$as_me: failed program was:" >&5
8050 sed 's/^/| /' conftest.
$ac_ext >&5
8052 echo "$as_me:$LINENO: result: no" >&5
8053 echo "${ECHO_T}no" >&6
8055 cat >>confdefs.h
<<\_ACEOF
8056 #define LONG_FOR_TIME_T 1
8060 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8062 ac_cpp
='$CPP $CPPFLAGS'
8063 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8064 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8065 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8067 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
8068 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
8069 if test "${ac_cv_type_signal+set}" = set; then
8070 echo $ECHO_N "(cached) $ECHO_C" >&6
8072 cat >conftest.
$ac_ext <<_ACEOF
8075 cat confdefs.h
>>conftest.
$ac_ext
8076 cat >>conftest.
$ac_ext <<_ACEOF
8077 /* end confdefs.h. */
8078 #include <sys/types.h>
8084 extern "C" void (*signal (int, void (*)(int)))(int);
8086 void (*signal ()) ();
8097 rm -f conftest.
$ac_objext
8098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8099 (eval $ac_compile) 2>conftest.er1
8101 grep -v '^ *+' conftest.er1
>conftest.err
8103 cat conftest.err
>&5
8104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8105 (exit $ac_status); } &&
8106 { ac_try
='test -z "$ac_c_werror_flag"
8107 || test ! -s conftest.err'
8108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8112 (exit $ac_status); }; } &&
8113 { ac_try
='test -s conftest.$ac_objext'
8114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8118 (exit $ac_status); }; }; then
8119 ac_cv_type_signal
=void
8121 echo "$as_me: failed program was:" >&5
8122 sed 's/^/| /' conftest.
$ac_ext >&5
8124 ac_cv_type_signal
=int
8126 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8128 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
8129 echo "${ECHO_T}$ac_cv_type_signal" >&6
8131 cat >>confdefs.h
<<_ACEOF
8132 #define RETSIGTYPE $ac_cv_type_signal
8136 echo "$as_me:$LINENO: checking struct exception" >&5
8137 echo $ECHO_N "checking struct exception... $ECHO_C" >&6
8138 cat >conftest.
$ac_ext <<_ACEOF
8142 cat confdefs.h
>>conftest.
$ac_ext
8143 cat >>conftest.
$ac_ext <<_ACEOF
8144 /* end confdefs.h. */
8163 rm -f conftest.
$ac_objext
8164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8165 (eval $ac_compile) 2>conftest.er1
8167 grep -v '^ *+' conftest.er1
>conftest.err
8169 cat conftest.err
>&5
8170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8171 (exit $ac_status); } &&
8172 { ac_try
='test -z "$ac_c_werror_flag"
8173 || test ! -s conftest.err'
8174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8178 (exit $ac_status); }; } &&
8179 { ac_try
='test -s conftest.$ac_objext'
8180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8184 (exit $ac_status); }; }; then
8185 echo "$as_me:$LINENO: result: yes" >&5
8186 echo "${ECHO_T}yes" >&6
8188 cat >>confdefs.h
<<\_ACEOF
8189 #define HAVE_STRUCT_EXCEPTION 1
8193 echo "$as_me: failed program was:" >&5
8194 sed 's/^/| /' conftest.
$ac_ext >&5
8196 echo "$as_me:$LINENO: result: no" >&5
8197 echo "${ECHO_T}no" >&6
8199 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8201 # checks for libraries
8202 echo "$as_me:$LINENO: checking for main in -lc" >&5
8203 echo $ECHO_N "checking for main in -lc... $ECHO_C" >&6
8204 if test "${ac_cv_lib_c_main+set}" = set; then
8205 echo $ECHO_N "(cached) $ECHO_C" >&6
8207 ac_check_lib_save_LIBS
=$LIBS
8209 cat >conftest.
$ac_ext <<_ACEOF
8212 cat confdefs.h
>>conftest.
$ac_ext
8213 cat >>conftest.
$ac_ext <<_ACEOF
8214 /* end confdefs.h. */
8225 rm -f conftest.
$ac_objext conftest
$ac_exeext
8226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8227 (eval $ac_link) 2>conftest.er1
8229 grep -v '^ *+' conftest.er1
>conftest.err
8231 cat conftest.err
>&5
8232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8233 (exit $ac_status); } &&
8234 { ac_try
='test -z "$ac_c_werror_flag"
8235 || test ! -s conftest.err'
8236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8240 (exit $ac_status); }; } &&
8241 { ac_try
='test -s conftest$ac_exeext'
8242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8246 (exit $ac_status); }; }; then
8247 ac_cv_lib_c_main
=yes
8249 echo "$as_me: failed program was:" >&5
8250 sed 's/^/| /' conftest.
$ac_ext >&5
8254 rm -f conftest.err conftest.
$ac_objext \
8255 conftest
$ac_exeext conftest.
$ac_ext
8256 LIBS
=$ac_check_lib_save_LIBS
8258 echo "$as_me:$LINENO: result: $ac_cv_lib_c_main" >&5
8259 echo "${ECHO_T}$ac_cv_lib_c_main" >&6
8260 if test $ac_cv_lib_c_main = yes; then
8265 echo "$as_me:$LINENO: checking for sin in -lm" >&5
8266 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
8267 if test "${ac_cv_lib_m_sin+set}" = set; then
8268 echo $ECHO_N "(cached) $ECHO_C" >&6
8270 ac_check_lib_save_LIBS
=$LIBS
8272 cat >conftest.
$ac_ext <<_ACEOF
8275 cat confdefs.h
>>conftest.
$ac_ext
8276 cat >>conftest.
$ac_ext <<_ACEOF
8277 /* end confdefs.h. */
8279 /* Override any gcc2 internal prototype to avoid an error. */
8283 /* We use char because int might match the return type of a gcc2
8284 builtin and then its argument prototype would still apply. */
8294 rm -f conftest.
$ac_objext conftest
$ac_exeext
8295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8296 (eval $ac_link) 2>conftest.er1
8298 grep -v '^ *+' conftest.er1
>conftest.err
8300 cat conftest.err
>&5
8301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8302 (exit $ac_status); } &&
8303 { ac_try
='test -z "$ac_c_werror_flag"
8304 || test ! -s conftest.err'
8305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8309 (exit $ac_status); }; } &&
8310 { ac_try
='test -s conftest$ac_exeext'
8311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8315 (exit $ac_status); }; }; then
8318 echo "$as_me: failed program was:" >&5
8319 sed 's/^/| /' conftest.
$ac_ext >&5
8323 rm -f conftest.err conftest.
$ac_objext \
8324 conftest
$ac_exeext conftest.
$ac_ext
8325 LIBS
=$ac_check_lib_save_LIBS
8327 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
8328 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
8329 if test $ac_cv_lib_m_sin = yes; then
8335 # checks for functions
8338 for ac_header
in stdlib.h unistd.h
8340 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8341 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8342 echo "$as_me:$LINENO: checking for $ac_header" >&5
8343 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8344 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8345 echo $ECHO_N "(cached) $ECHO_C" >&6
8347 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8348 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8350 # Is the header compilable?
8351 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8352 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8353 cat >conftest.
$ac_ext <<_ACEOF
8356 cat confdefs.h
>>conftest.
$ac_ext
8357 cat >>conftest.
$ac_ext <<_ACEOF
8358 /* end confdefs.h. */
8359 $ac_includes_default
8360 #include <$ac_header>
8362 rm -f conftest.
$ac_objext
8363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8364 (eval $ac_compile) 2>conftest.er1
8366 grep -v '^ *+' conftest.er1
>conftest.err
8368 cat conftest.err
>&5
8369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8370 (exit $ac_status); } &&
8371 { ac_try
='test -z "$ac_c_werror_flag"
8372 || test ! -s conftest.err'
8373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8377 (exit $ac_status); }; } &&
8378 { ac_try
='test -s conftest.$ac_objext'
8379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8383 (exit $ac_status); }; }; then
8384 ac_header_compiler
=yes
8386 echo "$as_me: failed program was:" >&5
8387 sed 's/^/| /' conftest.
$ac_ext >&5
8389 ac_header_compiler
=no
8391 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8392 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8393 echo "${ECHO_T}$ac_header_compiler" >&6
8395 # Is the header present?
8396 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8397 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8398 cat >conftest.
$ac_ext <<_ACEOF
8401 cat confdefs.h
>>conftest.
$ac_ext
8402 cat >>conftest.
$ac_ext <<_ACEOF
8403 /* end confdefs.h. */
8404 #include <$ac_header>
8406 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8407 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8409 grep -v '^ *+' conftest.er1
>conftest.err
8411 cat conftest.err
>&5
8412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8413 (exit $ac_status); } >/dev
/null
; then
8414 if test -s conftest.err
; then
8415 ac_cpp_err
=$ac_c_preproc_warn_flag
8416 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8423 if test -z "$ac_cpp_err"; then
8424 ac_header_preproc
=yes
8426 echo "$as_me: failed program was:" >&5
8427 sed 's/^/| /' conftest.
$ac_ext >&5
8429 ac_header_preproc
=no
8431 rm -f conftest.err conftest.
$ac_ext
8432 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8433 echo "${ECHO_T}$ac_header_preproc" >&6
8435 # So? What about this header?
8436 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8438 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8439 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8440 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8441 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8442 ac_header_preproc
=yes
8445 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8446 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8447 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8448 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8449 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8450 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8451 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8452 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8453 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8454 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8455 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8456 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8459 ## ------------------------------------------ ##
8460 ## Report this to the AC_PACKAGE_NAME lists. ##
8461 ## ------------------------------------------ ##
8464 sed "s/^/$as_me: WARNING: /" >&2
8467 echo "$as_me:$LINENO: checking for $ac_header" >&5
8468 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8469 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8470 echo $ECHO_N "(cached) $ECHO_C" >&6
8472 eval "$as_ac_Header=\$ac_header_preproc"
8474 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8475 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8478 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8479 cat >>confdefs.h
<<_ACEOF
8480 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8488 for ac_func
in getpagesize
8490 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8491 echo "$as_me:$LINENO: checking for $ac_func" >&5
8492 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8493 if eval "test \"\${$as_ac_var+set}\" = set"; then
8494 echo $ECHO_N "(cached) $ECHO_C" >&6
8496 cat >conftest.
$ac_ext <<_ACEOF
8499 cat confdefs.h
>>conftest.
$ac_ext
8500 cat >>conftest.
$ac_ext <<_ACEOF
8501 /* end confdefs.h. */
8502 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8503 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8504 #define $ac_func innocuous_$ac_func
8506 /* System header to define __stub macros and hopefully few prototypes,
8507 which can conflict with char $ac_func (); below.
8508 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8509 <limits.h> exists even on freestanding compilers. */
8512 # include <limits.h>
8514 # include <assert.h>
8519 /* Override any gcc2 internal prototype to avoid an error. */
8524 /* We use char because int might match the return type of a gcc2
8525 builtin and then its argument prototype would still apply. */
8527 /* The GNU C library defines this for functions which it implements
8528 to always fail with ENOSYS. Some functions are actually named
8529 something starting with __ and the normal name is an alias. */
8530 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8533 char (*f) () = $ac_func;
8542 return f != $ac_func;
8547 rm -f conftest.
$ac_objext conftest
$ac_exeext
8548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8549 (eval $ac_link) 2>conftest.er1
8551 grep -v '^ *+' conftest.er1
>conftest.err
8553 cat conftest.err
>&5
8554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8555 (exit $ac_status); } &&
8556 { ac_try
='test -z "$ac_c_werror_flag"
8557 || test ! -s conftest.err'
8558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8562 (exit $ac_status); }; } &&
8563 { ac_try
='test -s conftest$ac_exeext'
8564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8568 (exit $ac_status); }; }; then
8569 eval "$as_ac_var=yes"
8571 echo "$as_me: failed program was:" >&5
8572 sed 's/^/| /' conftest.
$ac_ext >&5
8574 eval "$as_ac_var=no"
8576 rm -f conftest.err conftest.
$ac_objext \
8577 conftest
$ac_exeext conftest.
$ac_ext
8579 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8580 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8581 if test `eval echo '${'$as_ac_var'}'` = yes; then
8582 cat >>confdefs.h
<<_ACEOF
8583 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8589 echo "$as_me:$LINENO: checking for working mmap" >&5
8590 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
8591 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8592 echo $ECHO_N "(cached) $ECHO_C" >&6
8594 if test "$cross_compiling" = yes; then
8595 ac_cv_func_mmap_fixed_mapped
=no
8597 cat >conftest.
$ac_ext <<_ACEOF
8600 cat confdefs.h
>>conftest.
$ac_ext
8601 cat >>conftest.
$ac_ext <<_ACEOF
8602 /* end confdefs.h. */
8603 $ac_includes_default
8604 /* malloc might have been renamed as rpl_malloc. */
8607 /* Thanks to Mike Haertel and Jim Avera for this test.
8608 Here is a matrix of mmap possibilities:
8609 mmap private not fixed
8610 mmap private fixed at somewhere currently unmapped
8611 mmap private fixed at somewhere already mapped
8612 mmap shared not fixed
8613 mmap shared fixed at somewhere currently unmapped
8614 mmap shared fixed at somewhere already mapped
8615 For private mappings, we should verify that changes cannot be read()
8616 back from the file, nor mmap's back from the file at a different
8617 address. (There have been systems where private was not correctly
8618 implemented like the infamous i386 svr4.0, and systems where the
8619 VM page cache was not coherent with the file system buffer cache
8620 like early versions of FreeBSD and possibly contemporary NetBSD.)
8621 For shared mappings, we should conversely verify that changes get
8622 propagated back to all the places they're supposed to be.
8624 Grep wants private fixed already mapped.
8625 The main things grep needs to know about mmap are:
8626 * does it exist and is it safe to write into the mmap'd area
8627 * how to use it (BSD variants) */
8630 #include <sys/mman.h>
8632 #if !STDC_HEADERS && !HAVE_STDLIB_H
8636 /* This mess was copied from the GNU getpagesize.h. */
8637 #if !HAVE_GETPAGESIZE
8638 /* Assume that all systems that can run configure have sys/param.h. */
8639 # if !HAVE_SYS_PARAM_H
8640 # define HAVE_SYS_PARAM_H 1
8643 # ifdef _SC_PAGESIZE
8644 # define getpagesize() sysconf(_SC_PAGESIZE)
8645 # else /* no _SC_PAGESIZE */
8646 # if HAVE_SYS_PARAM_H
8647 # include <sys/param.h>
8648 # ifdef EXEC_PAGESIZE
8649 # define getpagesize() EXEC_PAGESIZE
8650 # else /* no EXEC_PAGESIZE */
8652 # define getpagesize() NBPG * CLSIZE
8655 # endif /* no CLSIZE */
8656 # else /* no NBPG */
8658 # define getpagesize() NBPC
8659 # else /* no NBPC */
8661 # define getpagesize() PAGESIZE
8662 # endif /* PAGESIZE */
8663 # endif /* no NBPC */
8664 # endif /* no NBPG */
8665 # endif /* no EXEC_PAGESIZE */
8666 # else /* no HAVE_SYS_PARAM_H */
8667 # define getpagesize() 8192 /* punt totally */
8668 # endif /* no HAVE_SYS_PARAM_H */
8669 # endif /* no _SC_PAGESIZE */
8671 #endif /* no HAVE_GETPAGESIZE */
8676 char *data, *data2, *data3;
8680 pagesize = getpagesize ();
8682 /* First, make a file with some known garbage in it. */
8683 data = (char *) malloc (pagesize);
8686 for (i = 0; i < pagesize; ++i)
8687 *(data + i) = rand ();
8689 fd = creat ("conftest.mmap", 0600);
8692 if (write (fd, data, pagesize) != pagesize)
8696 /* Next, try to mmap the file at a fixed address which already has
8697 something else allocated at it. If we can, also make sure that
8698 we see the same garbage. */
8699 fd = open ("conftest.mmap", O_RDWR);
8702 data2 = (char *) malloc (2 * pagesize);
8705 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
8706 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8707 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8709 for (i = 0; i < pagesize; ++i)
8710 if (*(data + i) != *(data2 + i))
8713 /* Finally, make sure that changes to the mapped area do not
8714 percolate back to the file as seen by read(). (This is a bug on
8715 some variants of i386 svr4.0.) */
8716 for (i = 0; i < pagesize; ++i)
8717 *(data2 + i) = *(data2 + i) + 1;
8718 data3 = (char *) malloc (pagesize);
8721 if (read (fd, data3, pagesize) != pagesize)
8723 for (i = 0; i < pagesize; ++i)
8724 if (*(data + i) != *(data3 + i))
8730 rm -f conftest
$ac_exeext
8731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8732 (eval $ac_link) 2>&5
8734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8735 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8740 (exit $ac_status); }; }; then
8741 ac_cv_func_mmap_fixed_mapped
=yes
8743 echo "$as_me: program exited with status $ac_status" >&5
8744 echo "$as_me: failed program was:" >&5
8745 sed 's/^/| /' conftest.
$ac_ext >&5
8748 ac_cv_func_mmap_fixed_mapped
=no
8750 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8753 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8754 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
8755 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8757 cat >>confdefs.h
<<\_ACEOF
8765 LIBS
="$LIBS $LIBC $LIBM"
8774 for ac_func
in fmod getcwd putenv snprintf strcasecmp \
8775 strerror strncasecmp strtol
8777 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8778 echo "$as_me:$LINENO: checking for $ac_func" >&5
8779 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8780 if eval "test \"\${$as_ac_var+set}\" = set"; then
8781 echo $ECHO_N "(cached) $ECHO_C" >&6
8783 cat >conftest.
$ac_ext <<_ACEOF
8786 cat confdefs.h
>>conftest.
$ac_ext
8787 cat >>conftest.
$ac_ext <<_ACEOF
8788 /* end confdefs.h. */
8789 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8790 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8791 #define $ac_func innocuous_$ac_func
8793 /* System header to define __stub macros and hopefully few prototypes,
8794 which can conflict with char $ac_func (); below.
8795 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8796 <limits.h> exists even on freestanding compilers. */
8799 # include <limits.h>
8801 # include <assert.h>
8806 /* Override any gcc2 internal prototype to avoid an error. */
8811 /* We use char because int might match the return type of a gcc2
8812 builtin and then its argument prototype would still apply. */
8814 /* The GNU C library defines this for functions which it implements
8815 to always fail with ENOSYS. Some functions are actually named
8816 something starting with __ and the normal name is an alias. */
8817 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8820 char (*f) () = $ac_func;
8829 return f != $ac_func;
8834 rm -f conftest.
$ac_objext conftest
$ac_exeext
8835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8836 (eval $ac_link) 2>conftest.er1
8838 grep -v '^ *+' conftest.er1
>conftest.err
8840 cat conftest.err
>&5
8841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8842 (exit $ac_status); } &&
8843 { ac_try
='test -z "$ac_c_werror_flag"
8844 || test ! -s conftest.err'
8845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8849 (exit $ac_status); }; } &&
8850 { ac_try
='test -s conftest$ac_exeext'
8851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8855 (exit $ac_status); }; }; then
8856 eval "$as_ac_var=yes"
8858 echo "$as_me: failed program was:" >&5
8859 sed 's/^/| /' conftest.
$ac_ext >&5
8861 eval "$as_ac_var=no"
8863 rm -f conftest.err conftest.
$ac_objext \
8864 conftest
$ac_exeext conftest.
$ac_ext
8866 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8867 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8868 if test `eval echo '${'$as_ac_var'}'` = yes; then
8869 cat >>confdefs.h
<<_ACEOF
8870 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8875 "$ac_func.$ac_objext" | \
8876 *" $ac_func.$ac_objext" | \
8877 "$ac_func.$ac_objext "* | \
8878 *" $ac_func.$ac_objext "* ) ;;
8879 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext" ;;
8886 # vsnprintf is in the same source file as snprintf
8888 for ac_func
in vsnprintf
8890 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8891 echo "$as_me:$LINENO: checking for $ac_func" >&5
8892 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8893 if eval "test \"\${$as_ac_var+set}\" = set"; then
8894 echo $ECHO_N "(cached) $ECHO_C" >&6
8896 cat >conftest.
$ac_ext <<_ACEOF
8899 cat confdefs.h
>>conftest.
$ac_ext
8900 cat >>conftest.
$ac_ext <<_ACEOF
8901 /* end confdefs.h. */
8902 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8903 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8904 #define $ac_func innocuous_$ac_func
8906 /* System header to define __stub macros and hopefully few prototypes,
8907 which can conflict with char $ac_func (); below.
8908 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8909 <limits.h> exists even on freestanding compilers. */
8912 # include <limits.h>
8914 # include <assert.h>
8919 /* Override any gcc2 internal prototype to avoid an error. */
8924 /* We use char because int might match the return type of a gcc2
8925 builtin and then its argument prototype would still apply. */
8927 /* The GNU C library defines this for functions which it implements
8928 to always fail with ENOSYS. Some functions are actually named
8929 something starting with __ and the normal name is an alias. */
8930 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8933 char (*f) () = $ac_func;
8942 return f != $ac_func;
8947 rm -f conftest.
$ac_objext conftest
$ac_exeext
8948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8949 (eval $ac_link) 2>conftest.er1
8951 grep -v '^ *+' conftest.er1
>conftest.err
8953 cat conftest.err
>&5
8954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8955 (exit $ac_status); } &&
8956 { ac_try
='test -z "$ac_c_werror_flag"
8957 || test ! -s conftest.err'
8958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8962 (exit $ac_status); }; } &&
8963 { ac_try
='test -s conftest$ac_exeext'
8964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8968 (exit $ac_status); }; }; then
8969 eval "$as_ac_var=yes"
8971 echo "$as_me: failed program was:" >&5
8972 sed 's/^/| /' conftest.
$ac_ext >&5
8974 eval "$as_ac_var=no"
8976 rm -f conftest.err conftest.
$ac_objext \
8977 conftest
$ac_exeext conftest.
$ac_ext
8979 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8980 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8981 if test `eval echo '${'$as_ac_var'}'` = yes; then
8982 cat >>confdefs.h
<<_ACEOF
8983 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8988 "snprintf.$ac_objext" | \
8989 *" snprintf.$ac_objext" | \
8990 "snprintf.$ac_objext "* | \
8991 *" snprintf.$ac_objext "* ) ;;
8992 *) LIBOBJS
="$LIBOBJS snprintf.$ac_objext" ;;
9005 for ac_func
in gettimeofday isatty
kill rename setlocale strsep
9007 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9008 echo "$as_me:$LINENO: checking for $ac_func" >&5
9009 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9010 if eval "test \"\${$as_ac_var+set}\" = set"; then
9011 echo $ECHO_N "(cached) $ECHO_C" >&6
9013 cat >conftest.
$ac_ext <<_ACEOF
9016 cat confdefs.h
>>conftest.
$ac_ext
9017 cat >>conftest.
$ac_ext <<_ACEOF
9018 /* end confdefs.h. */
9019 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9020 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9021 #define $ac_func innocuous_$ac_func
9023 /* System header to define __stub macros and hopefully few prototypes,
9024 which can conflict with char $ac_func (); below.
9025 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9026 <limits.h> exists even on freestanding compilers. */
9029 # include <limits.h>
9031 # include <assert.h>
9036 /* Override any gcc2 internal prototype to avoid an error. */
9041 /* We use char because int might match the return type of a gcc2
9042 builtin and then its argument prototype would still apply. */
9044 /* The GNU C library defines this for functions which it implements
9045 to always fail with ENOSYS. Some functions are actually named
9046 something starting with __ and the normal name is an alias. */
9047 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9050 char (*f) () = $ac_func;
9059 return f != $ac_func;
9064 rm -f conftest.
$ac_objext conftest
$ac_exeext
9065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9066 (eval $ac_link) 2>conftest.er1
9068 grep -v '^ *+' conftest.er1
>conftest.err
9070 cat conftest.err
>&5
9071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9072 (exit $ac_status); } &&
9073 { ac_try
='test -z "$ac_c_werror_flag"
9074 || test ! -s conftest.err'
9075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9079 (exit $ac_status); }; } &&
9080 { ac_try
='test -s conftest$ac_exeext'
9081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9085 (exit $ac_status); }; }; then
9086 eval "$as_ac_var=yes"
9088 echo "$as_me: failed program was:" >&5
9089 sed 's/^/| /' conftest.
$ac_ext >&5
9091 eval "$as_ac_var=no"
9093 rm -f conftest.err conftest.
$ac_objext \
9094 conftest
$ac_exeext conftest.
$ac_ext
9096 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9097 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9098 if test `eval echo '${'$as_ac_var'}'` = yes; then
9099 cat >>confdefs.h
<<_ACEOF
9100 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9106 echo "$as_me:$LINENO: checking for mkstemp" >&5
9107 echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
9109 ac_cpp
='$CXXCPP $CPPFLAGS'
9110 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9111 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9112 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9115 cat >conftest.
$ac_ext <<_ACEOF
9119 cat confdefs.h
>>conftest.
$ac_ext
9120 cat >>conftest.
$ac_ext <<_ACEOF
9121 /* end confdefs.h. */
9142 rm -f conftest.
$ac_objext conftest
$ac_exeext
9143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9144 (eval $ac_link) 2>conftest.er1
9146 grep -v '^ *+' conftest.er1
>conftest.err
9148 cat conftest.err
>&5
9149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9150 (exit $ac_status); } &&
9151 { ac_try
='test -z "$ac_cxx_werror_flag"
9152 || test ! -s conftest.err'
9153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9157 (exit $ac_status); }; } &&
9158 { ac_try
='test -s conftest$ac_exeext'
9159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9163 (exit $ac_status); }; }; then
9164 echo "$as_me:$LINENO: result: yes" >&5
9165 echo "${ECHO_T}yes" >&6
9167 cat >>confdefs.h
<<\_ACEOF
9168 #define HAVE_MKSTEMP 1
9172 echo "$as_me: failed program was:" >&5
9173 sed 's/^/| /' conftest.
$ac_ext >&5
9175 echo "$as_me:$LINENO: result: no" >&5
9176 echo "${ECHO_T}no" >&6
9178 "mkstemp.$ac_objext" | \
9179 *" mkstemp.$ac_objext" | \
9180 "mkstemp.$ac_objext "* | \
9181 *" mkstemp.$ac_objext "* ) ;;
9182 *) LIBOBJS
="$LIBOBJS mkstemp.$ac_objext" ;;
9186 rm -f conftest.err conftest.
$ac_objext \
9187 conftest
$ac_exeext conftest.
$ac_ext
9189 ac_cpp
='$CPP $CPPFLAGS'
9190 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9191 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9192 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
9194 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
9195 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
9196 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
9197 echo $ECHO_N "(cached) $ECHO_C" >&6
9199 cat >conftest.
$ac_ext <<_ACEOF
9202 cat confdefs.h
>>conftest.
$ac_ext
9203 cat >>conftest.
$ac_ext <<_ACEOF
9204 /* end confdefs.h. */
9205 $ac_includes_default
9210 char *p = (char *) sys_siglist;
9217 rm -f conftest.
$ac_objext
9218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9219 (eval $ac_compile) 2>conftest.er1
9221 grep -v '^ *+' conftest.er1
>conftest.err
9223 cat conftest.err
>&5
9224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9225 (exit $ac_status); } &&
9226 { ac_try
='test -z "$ac_c_werror_flag"
9227 || test ! -s conftest.err'
9228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9232 (exit $ac_status); }; } &&
9233 { ac_try
='test -s conftest.$ac_objext'
9234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9238 (exit $ac_status); }; }; then
9239 ac_cv_have_decl_sys_siglist
=yes
9241 echo "$as_me: failed program was:" >&5
9242 sed 's/^/| /' conftest.
$ac_ext >&5
9244 ac_cv_have_decl_sys_siglist
=no
9246 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9248 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
9249 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
9250 if test $ac_cv_have_decl_sys_siglist = yes; then
9252 cat >>confdefs.h
<<_ACEOF
9253 #define HAVE_DECL_SYS_SIGLIST 1
9258 cat >>confdefs.h
<<_ACEOF
9259 #define HAVE_DECL_SYS_SIGLIST 0
9267 # checks for compiler characteristics
9269 ac_cpp
='$CXXCPP $CPPFLAGS'
9270 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9271 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9272 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9274 echo "$as_me:$LINENO: checking whether ANSI array delete syntax is supported" >&5
9275 echo $ECHO_N "checking whether ANSI array delete syntax is supported... $ECHO_C" >&6
9276 cat >conftest.
$ac_ext <<_ACEOF
9280 cat confdefs.h
>>conftest.
$ac_ext
9281 cat >>conftest.
$ac_ext <<_ACEOF
9282 /* end confdefs.h. */
9289 char *p = new char[5];
9298 rm -f conftest.
$ac_objext
9299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9300 (eval $ac_compile) 2>conftest.er1
9302 grep -v '^ *+' conftest.er1
>conftest.err
9304 cat conftest.err
>&5
9305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9306 (exit $ac_status); } &&
9307 { ac_try
='test -z "$ac_cxx_werror_flag"
9308 || test ! -s conftest.err'
9309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9313 (exit $ac_status); }; } &&
9314 { ac_try
='test -s conftest.$ac_objext'
9315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9319 (exit $ac_status); }; }; then
9320 echo "$as_me:$LINENO: result: yes" >&5
9321 echo "${ECHO_T}yes" >&6
9323 echo "$as_me: failed program was:" >&5
9324 sed 's/^/| /' conftest.
$ac_ext >&5
9326 echo "$as_me:$LINENO: result: no" >&5
9327 echo "${ECHO_T}no" >&6
9329 cat >>confdefs.h
<<\_ACEOF
9330 #define ARRAY_DELETE_NEEDS_SIZE 1
9334 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9336 ac_cpp
='$CPP $CPPFLAGS'
9337 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9338 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9339 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
9342 ac_cpp
='$CXXCPP $CPPFLAGS'
9343 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9344 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9345 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9347 echo "$as_me:$LINENO: checking traditional preprocessor" >&5
9348 echo $ECHO_N "checking traditional preprocessor... $ECHO_C" >&6
9349 cat >conftest.
$ac_ext <<_ACEOF
9353 cat confdefs.h
>>conftest.
$ac_ext
9354 cat >>conftest.
$ac_ext <<_ACEOF
9355 /* end confdefs.h. */
9358 #define name2(a, b) a/**/b
9366 int name2(foo, bar);
9374 rm -f conftest.
$ac_objext
9375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9376 (eval $ac_compile) 2>conftest.er1
9378 grep -v '^ *+' conftest.er1
>conftest.err
9380 cat conftest.err
>&5
9381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9382 (exit $ac_status); } &&
9383 { ac_try
='test -z "$ac_cxx_werror_flag"
9384 || test ! -s conftest.err'
9385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9389 (exit $ac_status); }; } &&
9390 { ac_try
='test -s conftest.$ac_objext'
9391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9395 (exit $ac_status); }; }; then
9396 echo "$as_me:$LINENO: result: yes" >&5
9397 echo "${ECHO_T}yes" >&6
9399 cat >>confdefs.h
<<\_ACEOF
9400 #define TRADITIONAL_CPP 1
9404 echo "$as_me: failed program was:" >&5
9405 sed 's/^/| /' conftest.
$ac_ext >&5
9407 echo "$as_me:$LINENO: result: no" >&5
9408 echo "${ECHO_T}no" >&6
9410 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9412 ac_cpp
='$CPP $CPPFLAGS'
9413 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9414 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9415 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
9418 # checks for operating system services
9419 echo "$as_me:$LINENO: checking w_coredump" >&5
9420 echo $ECHO_N "checking w_coredump... $ECHO_C" >&6
9421 if test "$cross_compiling" = yes; then
9422 echo "$as_me:$LINENO: result: no" >&5
9423 echo "${ECHO_T}no" >&6
9425 cat >conftest.
$ac_ext <<_ACEOF
9429 cat confdefs.h
>>conftest.
$ac_ext
9430 cat >>conftest.
$ac_ext <<_ACEOF
9431 /* end confdefs.h. */
9434 #include <sys/types.h>
9435 #include <sys/wait.h>
9449 ((union wait *)&i)->w_coredump = 1;
9460 rm -f conftest
$ac_exeext
9461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9462 (eval $ac_link) 2>&5
9464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9465 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9470 (exit $ac_status); }; }; then
9471 echo "$as_me:$LINENO: result: yes" >&5
9472 echo "${ECHO_T}yes" >&6
9474 cat >>confdefs.h
<<\_ACEOF
9475 #define WCOREFLAG 0200
9479 echo "$as_me: program exited with status $ac_status" >&5
9480 echo "$as_me: failed program was:" >&5
9481 sed 's/^/| /' conftest.
$ac_ext >&5
9484 echo "$as_me:$LINENO: result: no" >&5
9485 echo "${ECHO_T}no" >&6
9487 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9490 # other random stuff
9491 echo "$as_me:$LINENO: checking default value for grops -b option" >&5
9492 echo $ECHO_N "checking default value for grops -b option... $ECHO_C" >&6
9493 test -n "${BROKEN_SPOOLER_FLAGS}" || BROKEN_SPOOLER_FLAGS
=0
9494 echo "$as_me:$LINENO: result: $BROKEN_SPOOLER_FLAGS" >&5
9495 echo "${ECHO_T}$BROKEN_SPOOLER_FLAGS" >&6
9497 echo "$as_me:$LINENO: checking default paper size" >&5
9498 echo $ECHO_N "checking default paper size... $ECHO_C" >&6
9499 groff_prefix
=$prefix
9500 test "x$prefix" = "xNONE" && groff_prefix
=$ac_default_prefix
9501 if test -z "$PAGE"; then
9503 if test -r $groff_prefix/share
/groff
/font
/devps
/DESC
; then
9504 descfile
=$groff_prefix/share
/groff
/font
/devps
/DESC
9505 elif test -r $groff_prefix/lib
/groff
/font
/devps
/DESC
; then
9506 descfile
=$groff_prefix/lib
/groff
/font
/devps
/DESC
9508 for f
in $groff_prefix/share
/groff
/*/font
/devps
/DESC
; do
9516 if test -n "$descfile"; then
9517 if grep '^paperlength[ ]\+841890' $descfile >/dev
/null
2>&1; then
9519 elif grep '^papersize[ ]\+[aA]4' $descfile >/dev
/null
2>&1; then
9525 if test -z "$PAGE"; then
9526 dom
=`awk '($1 == "dom" || $1 == "search") { print $2; exit}' \
9527 /etc/resolv.conf 2>/dev/null`
9528 if test -z "$dom"; then
9529 dom
=`(domainname) 2>/dev/null | tr -d '+'`
9531 ||
test "$dom" = '(none)'; then
9532 dom
=`(hostname) 2>/dev/null | grep '\.'`
9535 # If the top-level domain is two letters and it's not `us' or `ca'
9536 # then they probably use A4 paper.
9538 *.
[Uu
][Ss
]|
*.
[Cc
][Aa
])
9545 test -n "$PAGE" || PAGE
=letter
9546 if test "x$PAGE" = "xA4"; then
9548 cat >>confdefs.h
<<\_ACEOF
9553 echo "$as_me:$LINENO: result: $PAGE" >&5
9554 echo "${ECHO_T}$PAGE" >&6
9556 echo "$as_me:$LINENO: checking for existing troff installation" >&5
9557 echo $ECHO_N "checking for existing troff installation... $ECHO_C" >&6
9558 if test "x`(echo .tm '|n(.g' | tr '|' '\\\\' | troff -z -i 2>&1) 2>/dev/null`" = x0
; then
9559 echo "$as_me:$LINENO: result: yes" >&5
9560 echo "${ECHO_T}yes" >&6
9563 echo "$as_me:$LINENO: result: no" >&5
9564 echo "${ECHO_T}no" >&6
9568 echo "$as_me:$LINENO: checking for prefix of system macro packages" >&5
9569 echo $ECHO_N "checking for prefix of system macro packages... $ECHO_C" >&6
9571 sys_tmac_file_prefix
=
9572 for d
in /usr
/share
/lib
/tmac
/usr
/lib
/tmac
; do
9573 for t
in "" tmac.
; do
9576 if test -z "$sys_tmac_prefix" \
9578 && grep '^\.if' $f >/dev
/null
2>&1; then
9579 sys_tmac_prefix
=$d/$t
9580 sys_tmac_file_prefix
=$t
9585 echo "$as_me:$LINENO: result: $sys_tmac_prefix" >&5
9586 echo "${ECHO_T}$sys_tmac_prefix" >&6
9589 echo "$as_me:$LINENO: checking which system macro packages should be made available" >&5
9590 echo $ECHO_N "checking which system macro packages should be made available... $ECHO_C" >&6
9592 if test "x$sys_tmac_file_prefix" = "xtmac."; then
9593 for f
in $sys_tmac_prefix*; do
9594 suff
=`echo $f | sed -e "s;$sys_tmac_prefix;;"`
9599 grep "Copyright.*Free Software Foundation" $f >/dev
/null \
9600 || tmac_wrap
="$tmac_wrap $suff" ;;
9603 elif test -n "$sys_tmac_prefix"; then
9604 files
=`echo $sys_tmac_prefix*`
9605 grep "\\.so" $files >conftest.sol
9608 ${sys_tmac_prefix}e
)
9616 if grep "\\.so.*/$b\$" conftest.sol
>/dev
/null \
9617 ||
grep -l "Copyright.*Free Software Foundation" $f >/dev
/null
; then
9620 suff
=`echo $f | sed -e "s;$sys_tmac_prefix;;"`
9625 tmac_wrap
="$tmac_wrap $suff" ;;
9632 echo "$as_me:$LINENO: result: $tmac_wrap" >&5
9633 echo "${ECHO_T}$tmac_wrap" >&6
9635 echo "$as_me:$LINENO: checking separator character to use in groff search paths" >&5
9636 echo $ECHO_N "checking separator character to use in groff search paths... $ECHO_C" >&6
9637 cp ${srcdir}/src
/include
/nonposix.h conftest.h
9638 cat >conftest.
$ac_ext <<_ACEOF
9642 cat confdefs.h
>>conftest.
$ac_ext
9643 cat >>conftest.
$ac_ext <<_ACEOF
9644 /* end confdefs.h. */
9648 #include "conftest.h"
9656 #if PATH_SEP_CHAR == ';'
9657 make an error "Path separator is ';'"
9666 rm -f conftest.
$ac_objext
9667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9668 (eval $ac_compile) 2>conftest.er1
9670 grep -v '^ *+' conftest.er1
>conftest.err
9672 cat conftest.err
>&5
9673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9674 (exit $ac_status); } &&
9675 { ac_try
='test -z "$ac_c_werror_flag"
9676 || test ! -s conftest.err'
9677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9681 (exit $ac_status); }; } &&
9682 { ac_try
='test -s conftest.$ac_objext'
9683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9687 (exit $ac_status); }; }; then
9688 GROFF_PATH_SEPARATOR
=":"
9690 echo "$as_me: failed program was:" >&5
9691 sed 's/^/| /' conftest.
$ac_ext >&5
9693 GROFF_PATH_SEPARATOR
=";"
9695 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9696 echo "$as_me:$LINENO: result: $GROFF_PATH_SEPARATOR" >&5
9697 echo "${ECHO_T}$GROFF_PATH_SEPARATOR" >&6
9700 make_install_html
=install_html
9703 # Extract the first word of "pnmcut", so it can be a program name with args.
9704 set dummy pnmcut
; ac_word
=$2
9705 echo "$as_me:$LINENO: checking for $ac_word" >&5
9706 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9707 if test "${ac_cv_prog_pnmcut+set}" = set; then
9708 echo $ECHO_N "(cached) $ECHO_C" >&6
9710 if test -n "$pnmcut"; then
9711 ac_cv_prog_pnmcut
="$pnmcut" # Let the user override the test.
9713 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9717 test -z "$as_dir" && as_dir
=.
9718 for ac_exec_ext
in '' $ac_executable_extensions; do
9719 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9720 ac_cv_prog_pnmcut
="found"
9721 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9727 test -z "$ac_cv_prog_pnmcut" && ac_cv_prog_pnmcut
="missing"
9730 pnmcut
=$ac_cv_prog_pnmcut
9731 if test -n "$pnmcut"; then
9732 echo "$as_me:$LINENO: result: $pnmcut" >&5
9733 echo "${ECHO_T}$pnmcut" >&6
9735 echo "$as_me:$LINENO: result: no" >&5
9736 echo "${ECHO_T}no" >&6
9739 if test $pnmcut = missing
; then
9740 missing
="$missing pnmcut"
9741 fi;# Extract the first word of "pnmcrop", so it can be a program name with args.
9742 set dummy pnmcrop
; ac_word
=$2
9743 echo "$as_me:$LINENO: checking for $ac_word" >&5
9744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9745 if test "${ac_cv_prog_pnmcrop+set}" = set; then
9746 echo $ECHO_N "(cached) $ECHO_C" >&6
9748 if test -n "$pnmcrop"; then
9749 ac_cv_prog_pnmcrop
="$pnmcrop" # Let the user override the test.
9751 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9755 test -z "$as_dir" && as_dir
=.
9756 for ac_exec_ext
in '' $ac_executable_extensions; do
9757 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9758 ac_cv_prog_pnmcrop
="found"
9759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9765 test -z "$ac_cv_prog_pnmcrop" && ac_cv_prog_pnmcrop
="missing"
9768 pnmcrop
=$ac_cv_prog_pnmcrop
9769 if test -n "$pnmcrop"; then
9770 echo "$as_me:$LINENO: result: $pnmcrop" >&5
9771 echo "${ECHO_T}$pnmcrop" >&6
9773 echo "$as_me:$LINENO: result: no" >&5
9774 echo "${ECHO_T}no" >&6
9777 if test $pnmcrop = missing
; then
9778 missing
="$missing pnmcrop"
9779 fi;# Extract the first word of "pnmtopng", so it can be a program name with args.
9780 set dummy pnmtopng
; ac_word
=$2
9781 echo "$as_me:$LINENO: checking for $ac_word" >&5
9782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9783 if test "${ac_cv_prog_pnmtopng+set}" = set; then
9784 echo $ECHO_N "(cached) $ECHO_C" >&6
9786 if test -n "$pnmtopng"; then
9787 ac_cv_prog_pnmtopng
="$pnmtopng" # Let the user override the test.
9789 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9793 test -z "$as_dir" && as_dir
=.
9794 for ac_exec_ext
in '' $ac_executable_extensions; do
9795 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9796 ac_cv_prog_pnmtopng
="found"
9797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9803 test -z "$ac_cv_prog_pnmtopng" && ac_cv_prog_pnmtopng
="missing"
9806 pnmtopng
=$ac_cv_prog_pnmtopng
9807 if test -n "$pnmtopng"; then
9808 echo "$as_me:$LINENO: result: $pnmtopng" >&5
9809 echo "${ECHO_T}$pnmtopng" >&6
9811 echo "$as_me:$LINENO: result: no" >&5
9812 echo "${ECHO_T}no" >&6
9815 if test $pnmtopng = missing
; then
9816 missing
="$missing pnmtopng"
9817 fi;# Extract the first word of "psselect", so it can be a program name with args.
9818 set dummy psselect
; ac_word
=$2
9819 echo "$as_me:$LINENO: checking for $ac_word" >&5
9820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9821 if test "${ac_cv_prog_psselect+set}" = set; then
9822 echo $ECHO_N "(cached) $ECHO_C" >&6
9824 if test -n "$psselect"; then
9825 ac_cv_prog_psselect
="$psselect" # Let the user override the test.
9827 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9831 test -z "$as_dir" && as_dir
=.
9832 for ac_exec_ext
in '' $ac_executable_extensions; do
9833 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9834 ac_cv_prog_psselect
="found"
9835 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9841 test -z "$ac_cv_prog_psselect" && ac_cv_prog_psselect
="missing"
9844 psselect
=$ac_cv_prog_psselect
9845 if test -n "$psselect"; then
9846 echo "$as_me:$LINENO: result: $psselect" >&5
9847 echo "${ECHO_T}$psselect" >&6
9849 echo "$as_me:$LINENO: result: no" >&5
9850 echo "${ECHO_T}no" >&6
9853 if test $psselect = missing
; then
9854 missing
="$missing psselect"
9855 fi;# Extract the first word of "pnmtops", so it can be a program name with args.
9856 set dummy pnmtops
; ac_word
=$2
9857 echo "$as_me:$LINENO: checking for $ac_word" >&5
9858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9859 if test "${ac_cv_prog_pnmtops+set}" = set; then
9860 echo $ECHO_N "(cached) $ECHO_C" >&6
9862 if test -n "$pnmtops"; then
9863 ac_cv_prog_pnmtops
="$pnmtops" # Let the user override the test.
9865 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9869 test -z "$as_dir" && as_dir
=.
9870 for ac_exec_ext
in '' $ac_executable_extensions; do
9871 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9872 ac_cv_prog_pnmtops
="found"
9873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9879 test -z "$ac_cv_prog_pnmtops" && ac_cv_prog_pnmtops
="missing"
9882 pnmtops
=$ac_cv_prog_pnmtops
9883 if test -n "$pnmtops"; then
9884 echo "$as_me:$LINENO: result: $pnmtops" >&5
9885 echo "${ECHO_T}$pnmtops" >&6
9887 echo "$as_me:$LINENO: result: no" >&5
9888 echo "${ECHO_T}no" >&6
9891 if test $pnmtops = missing
; then
9892 missing
="$missing pnmtops"
9893 fi;# Extract the first word of "gs", so it can be a program name with args.
9894 set dummy gs
; ac_word
=$2
9895 echo "$as_me:$LINENO: checking for $ac_word" >&5
9896 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9897 if test "${ac_cv_prog_gs+set}" = set; then
9898 echo $ECHO_N "(cached) $ECHO_C" >&6
9900 if test -n "$gs"; then
9901 ac_cv_prog_gs
="$gs" # Let the user override the test.
9903 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9907 test -z "$as_dir" && as_dir
=.
9908 for ac_exec_ext
in '' $ac_executable_extensions; do
9909 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9910 ac_cv_prog_gs
="found"
9911 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9917 test -z "$ac_cv_prog_gs" && ac_cv_prog_gs
="missing"
9921 if test -n "$gs"; then
9922 echo "$as_me:$LINENO: result: $gs" >&5
9923 echo "${ECHO_T}$gs" >&6
9925 echo "$as_me:$LINENO: result: no" >&5
9926 echo "${ECHO_T}no" >&6
9929 if test $gs = missing
; then
9930 missing
="$missing gs"
9933 if test -n "$missing"; then
9944 progs
="\`$prog1'" ;;
9946 progs
="\`$prog1' and \`$prog2'" ;;
9948 progs
="\`$prog1', \`$prog2', and \`$prog3'" ;;
9950 progs
="\`$prog1', \`$prog2', \`$prog3', and \`$prog4'" ;;
9952 progs
="\`$prog1', \`$prog2', \`$prog3', \`$prog4', and \`$prog5'" ;;
9954 progs
="\`$prog1', \`$prog2', \`$prog3', \`$prog4', \`$prog5', and \`$prog6'" ;;
9960 { echo "$as_me:$LINENO: WARNING:
9964 can't be found in the path, thus the HTML backend of groff (grohtml)
9965 won't work properly. Consequently, no documentation in HTML format
9966 is built and installed.
9968 echo "$as_me: WARNING:
9972 can't be found in the path, thus the HTML backend of groff (grohtml)
9973 won't work properly. Consequently, no documentation in HTML format
9974 is built and installed.
9980 echo "$as_me:$LINENO: checking whether pnmtops can handle the -nosetpage option" >&5
9981 echo $ECHO_N "checking whether pnmtops can handle the -nosetpage option... $ECHO_C" >&6
9982 if echo P2
2 2 255 0 1 2 0 | pnmtops
-nosetpage > /dev
/null
2>&1 ; then
9983 echo "$as_me:$LINENO: result: yes" >&5
9984 echo "${ECHO_T}yes" >&6
9985 pnmtops_nosetpage
="pnmtops -nosetpage"
9987 echo "$as_me:$LINENO: result: no" >&5
9988 echo "${ECHO_T}no" >&6
9989 pnmtops_nosetpage
="pnmtops"
9992 if test -n "$ac_tool_prefix"; then
9993 # Extract the first word of "${ac_tool_prefix}gs gsos2", so it can be a program name with args.
9994 set dummy
${ac_tool_prefix}gs gsos2
; ac_word
=$2
9995 echo "$as_me:$LINENO: checking for $ac_word" >&5
9996 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9997 if test "${ac_cv_path_GHOSTSCRIPT+set}" = set; then
9998 echo $ECHO_N "(cached) $ECHO_C" >&6
10000 case $GHOSTSCRIPT in
10002 ac_cv_path_GHOSTSCRIPT
="$GHOSTSCRIPT" # Let the user override the test with a path.
10005 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10006 for as_dir
in $PATH
10009 test -z "$as_dir" && as_dir
=.
10010 for ac_exec_ext
in '' $ac_executable_extensions; do
10011 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10012 ac_cv_path_GHOSTSCRIPT
="$as_dir/$ac_word$ac_exec_ext"
10013 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10022 GHOSTSCRIPT
=$ac_cv_path_GHOSTSCRIPT
10024 if test -n "$GHOSTSCRIPT"; then
10025 echo "$as_me:$LINENO: result: $GHOSTSCRIPT" >&5
10026 echo "${ECHO_T}$GHOSTSCRIPT" >&6
10028 echo "$as_me:$LINENO: result: no" >&5
10029 echo "${ECHO_T}no" >&6
10033 if test -z "$ac_cv_path_GHOSTSCRIPT"; then
10034 ac_pt_GHOSTSCRIPT
=$GHOSTSCRIPT
10035 # Extract the first word of "gs gsos2", so it can be a program name with args.
10036 set dummy gs gsos2
; ac_word
=$2
10037 echo "$as_me:$LINENO: checking for $ac_word" >&5
10038 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10039 if test "${ac_cv_path_ac_pt_GHOSTSCRIPT+set}" = set; then
10040 echo $ECHO_N "(cached) $ECHO_C" >&6
10042 case $ac_pt_GHOSTSCRIPT in
10044 ac_cv_path_ac_pt_GHOSTSCRIPT
="$ac_pt_GHOSTSCRIPT" # Let the user override the test with a path.
10047 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10048 for as_dir
in $PATH
10051 test -z "$as_dir" && as_dir
=.
10052 for ac_exec_ext
in '' $ac_executable_extensions; do
10053 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10054 ac_cv_path_ac_pt_GHOSTSCRIPT
="$as_dir/$ac_word$ac_exec_ext"
10055 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10064 ac_pt_GHOSTSCRIPT
=$ac_cv_path_ac_pt_GHOSTSCRIPT
10066 if test -n "$ac_pt_GHOSTSCRIPT"; then
10067 echo "$as_me:$LINENO: result: $ac_pt_GHOSTSCRIPT" >&5
10068 echo "${ECHO_T}$ac_pt_GHOSTSCRIPT" >&6
10070 echo "$as_me:$LINENO: result: no" >&5
10071 echo "${ECHO_T}no" >&6
10074 if test "x$ac_pt_GHOSTSCRIPT" = x
; then
10075 GHOSTSCRIPT
="missing"
10077 if test "$build" != "$host"; then
10078 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
10079 whose name does not start with the host triplet. If you think this
10080 configuration is useful to you, please write to autoconf@gnu.org." >&5
10081 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
10082 whose name does not start with the host triplet. If you think this
10083 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
10085 GHOSTSCRIPT
=$ac_pt_GHOSTSCRIPT
10088 GHOSTSCRIPT
="$ac_cv_path_GHOSTSCRIPT"
10093 ac_config_files
="$ac_config_files stamp-h"
10095 ac_config_files
="$ac_config_files Makefile doc/Makefile src/utils/xtotroff/Makefile"
10097 ac_config_files
="$ac_config_files test-groff"
10099 cat >confcache
<<\_ACEOF
10100 # This file is a shell script that caches the results of configure
10101 # tests run on this system so they can be shared between configure
10102 # scripts and configure runs, see configure's option --config-cache.
10103 # It is not useful on other systems. If it contains results you don't
10104 # want to keep, you may remove or edit it.
10106 # config.status only pays attention to the cache file if you give it
10107 # the --recheck option to rerun configure.
10109 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10110 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10111 # following values.
10115 # The following way of writing the cache mishandles newlines in values,
10116 # but we know of no workaround that is simple, portable, and efficient.
10117 # So, don't put newlines in cache variables' values.
10118 # Ultrix sh set writes to stderr and can't be redirected directly,
10119 # and sets the high bit in the cache file unless we assign to the vars.
10122 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10124 # `set' does not quote correctly, so add quotes (double-quote
10125 # substitution turns \\\\ into \\, and sed turns \\ into \).
10128 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10131 # `set' quotes correctly as required by POSIX, so do not add quotes.
10133 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10140 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10142 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10144 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
10145 if test -w $cache_file; then
10146 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10147 cat confcache
>$cache_file
10149 echo "not updating unwritable cache $cache_file"
10154 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
10155 # Let make expand exec_prefix.
10156 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
10158 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10159 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10160 # trailing colons and then remove the whole line if VPATH becomes empty
10161 # (actually we leave an empty line to preserve line numbers).
10162 if test "x$srcdir" = x.
; then
10163 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
10164 s/:*\$(srcdir):*/:/;
10165 s/:*\${srcdir}:*/:/;
10167 s/^\([^=]*=[ ]*\):*/\1/;
10173 DEFS
=-DHAVE_CONFIG_H
10177 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
10178 # 1. Remove the extension, and $U if already installed.
10179 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
10180 ac_i
=`echo "$ac_i" | sed "$ac_script"`
10182 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
10183 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
10185 LIBOBJS
=$ac_libobjs
10187 LTLIBOBJS
=$ac_ltlibobjs
10191 : ${CONFIG_STATUS=./config.status}
10192 ac_clean_files_save
=$ac_clean_files
10193 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
10194 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10195 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10196 cat >$CONFIG_STATUS <<_ACEOF
10198 # Generated by $as_me.
10199 # Run this file to recreate the current configuration.
10200 # Compiler output produced by configure, useful for debugging
10201 # configure, is in config.log if it exists.
10204 ac_cs_recheck=false
10206 SHELL=\${CONFIG_SHELL-$SHELL}
10209 cat >>$CONFIG_STATUS <<\_ACEOF
10210 ## --------------------- ##
10211 ## M4sh Initialization. ##
10212 ## --------------------- ##
10214 # Be Bourne compatible
10215 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
10218 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10219 # is contrary to our usage. Disable this feature.
10220 alias -g '${1+"$@"}'='"$@"'
10221 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
10224 DUALCASE
=1; export DUALCASE
# for MKS sh
10228 # Avoid depending upon Character Ranges.
10229 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
10230 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10231 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
10232 as_cr_digits
='0123456789'
10233 as_cr_alnum
=$as_cr_Letters$as_cr_digits
10235 # The user is always right.
10236 if test "${PATH_SEPARATOR+set}" != set; then
10237 echo "#! /bin/sh" >conf$$.sh
10238 echo "exit 0" >>conf$$.sh
10240 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
10248 # Support unset when possible.
10249 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
10256 # Find who we are. Look in the path if we contain no path at all
10259 *[\\/]* ) as_myself
=$0 ;;
10260 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10261 for as_dir
in $PATH
10264 test -z "$as_dir" && as_dir
=.
10265 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
10270 # We did not find ourselves, most probably we were run as `sh COMMAND'
10271 # in which case we are not to be found in the path.
10272 if test "x$as_myself" = x
; then
10275 if test ! -f "$as_myself"; then
10276 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
10277 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
10278 { (exit 1); exit 1; }; }
10281 # Work around bugs in pre-3.0 UWIN ksh.
10282 $as_unset ENV MAIL MAILPATH
10289 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10290 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10291 LC_TELEPHONE LC_TIME
10293 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10294 eval $as_var=C
; export $as_var
10300 # Required to use basename.
10301 if expr a
: '\(a\)' >/dev
/null
2>&1; then
10307 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
10308 as_basename
=basename
10314 # Name of the executable.
10315 as_me
=`$as_basename "$0" ||
10316 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10317 X"$0" : 'X\(//\)$' \| \
10318 X"$0" : 'X\(/\)$' \| \
10319 . : '\(.\)' 2>/dev/null ||
10321 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
10322 /^X\/\(\/\/\)$/{ s//\1/; q; }
10323 /^X\/\(\/\).*/{ s//\1/; q; }
10329 as_lineno_1
=$LINENO
10330 as_lineno_2
=$LINENO
10331 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
10332 test "x$as_lineno_1" != "x$as_lineno_2" &&
10333 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
10335 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10336 # uniformly replaced by the line number. The first 'sed' inserts a
10337 # line-number line after each line using $LINENO; the second 'sed'
10338 # does the real work. The second script uses 'N' to pair each
10339 # line-number line with the line containing $LINENO, and appends
10340 # trailing '-' during substitution so that $LINENO is not a special
10341 # case at line end.
10342 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10343 # scripts with optimization help from Paolo Bonzini. Blame Lee
10344 # E. McMahon (1931-1989) for sed's syntax. :-)
10356 s,[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\),\2\1\2,
10359 ' >$as_me.lineno
&&
10360 chmod +x
$as_me.lineno ||
10361 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
10362 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
10363 { (exit 1); exit 1; }; }
10365 # Don't try to exec as it changes $[0], causing all sort of problems
10366 # (the dirname of $[0] is not the place where we might find the
10367 # original and so on. Autoconf is especially sensible to this).
10369 # Exit status is that of the last command.
10374 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
10375 *c
*,-n*) ECHO_N
= ECHO_C
='
10377 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
10378 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
10381 if expr a
: '\(a\)' >/dev
/null
2>&1; then
10387 rm -f conf$$ conf$$.exe conf$$.
file
10389 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
10390 # We could just check for DJGPP; but this test a) works b) is more generic
10391 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
10392 if test -f conf$$.exe
; then
10393 # Don't use ln at all; we don't have any links
10398 elif ln conf$$.
file conf$$
2>/dev
/null
; then
10403 rm -f conf$$ conf$$.exe conf$$.
file
10405 if mkdir
-p .
2>/dev
/null
; then
10408 test -d .
/-p && rmdir .
/-p
10412 as_executable_p
="test -f"
10414 # Sed expression to map a string onto a valid CPP name.
10415 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10417 # Sed expression to map a string onto a valid variable name.
10418 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10422 # We need space, tab and new line, in precisely that order.
10432 # Open the log real soon, to keep \$[0] and so on meaningful, and to
10433 # report actual input values of CONFIG_FILES etc. instead of their
10434 # values after options handling. Logging --version etc. is OK.
10438 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10439 ## Running $as_me. ##
10444 This file was extended by $as_me, which was
10445 generated by GNU Autoconf 2.59a. Invocation command line was
10447 CONFIG_FILES = $CONFIG_FILES
10448 CONFIG_HEADERS = $CONFIG_HEADERS
10449 CONFIG_LINKS = $CONFIG_LINKS
10450 CONFIG_COMMANDS = $CONFIG_COMMANDS
10454 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
10458 # Files that config.status was made for.
10459 if test -n "$ac_config_files"; then
10460 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
10463 if test -n "$ac_config_headers"; then
10464 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
10467 if test -n "$ac_config_links"; then
10468 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
10471 if test -n "$ac_config_commands"; then
10472 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
10475 cat >>$CONFIG_STATUS <<\_ACEOF
10478 \`$as_me' instantiates files from templates according to the
10479 current configuration.
10481 Usage: $0 [OPTIONS] [FILE]...
10483 -h, --help print this help, then exit
10484 -V, --version print version number, then exit
10485 -q, --quiet do not print progress messages
10486 -d, --debug don't remove temporary files
10487 --recheck update $as_me by reconfiguring in the same conditions
10488 --file=FILE[:TEMPLATE]
10489 instantiate the configuration file FILE
10490 --header=FILE[:TEMPLATE]
10491 instantiate the configuration header FILE
10493 Configuration files:
10496 Configuration headers:
10499 Report bugs to <bug-autoconf@gnu.org>."
10502 cat >>$CONFIG_STATUS <<_ACEOF
10505 configured by $0, generated by GNU Autoconf 2.59a,
10506 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
10508 Copyright (C) 2004 Free Software Foundation, Inc.
10509 This config.status script is free software; the Free Software Foundation
10510 gives unlimited permission to copy, distribute and modify it."
10515 cat >>$CONFIG_STATUS <<\_ACEOF
10516 # If no file are specified by the user, then we need to provide default
10517 # value. By we need to know if files were specified by the user.
10523 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
10524 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
10532 *) # This is not an option, so the user has probably given explicit
10535 ac_need_defaults
=false
;;
10539 # Handling of the options.
10541 cat >>$CONFIG_STATUS <<\_ACEOF
10542 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
10544 --version |
--vers* |
-V )
10545 echo "$ac_cs_version"; exit 0 ;;
10547 # Conflict between --help and --header
10548 { { echo "$as_me:$LINENO: error: ambiguous option: $1
10549 Try \`$0 --help' for more information." >&5
10550 echo "$as_me: error: ambiguous option: $1
10551 Try \`$0 --help' for more information." >&2;}
10552 { (exit 1); exit 1; }; };;
10553 --help |
--hel |
-h )
10554 echo "$ac_cs_usage"; exit 0 ;;
10555 --debug |
--d* |
-d )
10557 --file |
--fil |
--fi |
--f )
10559 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
10560 ac_need_defaults
=false
;;
10561 --header |
--heade |
--head |
--hea )
10563 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
10564 ac_need_defaults
=false
;;
10565 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
10566 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
10569 # This is an error.
10570 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
10571 Try \`$0 --help' for more information." >&5
10572 echo "$as_me: error: unrecognized option: $1
10573 Try \`$0 --help' for more information." >&2;}
10574 { (exit 1); exit 1; }; } ;;
10576 *) ac_config_targets
="$ac_config_targets $1" ;;
10582 ac_configure_extra_args
=
10584 if $ac_cs_silent; then
10586 ac_configure_extra_args
="$ac_configure_extra_args --silent"
10590 cat >>$CONFIG_STATUS <<_ACEOF
10591 if \$ac_cs_recheck; then
10592 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10593 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10602 cat >>$CONFIG_STATUS <<\_ACEOF
10603 for ac_config_target
in $ac_config_targets
10605 case "$ac_config_target" in
10606 # Handling of arguments.
10607 "stamp-h" ) CONFIG_FILES
="$CONFIG_FILES stamp-h" ;;
10608 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
10609 "doc/Makefile" ) CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
10610 "src/utils/xtotroff/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/xtotroff/Makefile" ;;
10611 "test-groff" ) CONFIG_FILES
="$CONFIG_FILES test-groff" ;;
10612 "src/include/config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS src/include/config.h:src/include/config.hin" ;;
10613 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10614 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10615 { (exit 1); exit 1; }; };;
10619 # If the user did not use the arguments to specify the items to instantiate,
10620 # then the envvar interface is used. Set only those that are not.
10621 # We use the long form for the default assignment because of an extremely
10622 # bizarre bug on SunOS 4.1.3.
10623 if $ac_need_defaults; then
10624 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
10625 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
10628 # Have a temporary directory for convenience. Make it in the build tree
10629 # simply because there is no reason to put it here, and in addition,
10630 # creating and moving files from /tmp can sometimes cause problems.
10631 # Create a temporary directory, and hook for its removal unless debugging.
10634 trap 'exit_status=$?; rm -f -r $tmp && exit $exit_status' 0
10635 trap '{ (exit 1); exit 1; }' 1 2 13 15
10638 # Create a (secure) tmp directory for tmp files.
10641 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
10642 test -n "$tmp" && test -d "$tmp"
10645 tmp
=.
/confstat$$
-$RANDOM
10646 (umask 077 && mkdir
$tmp)
10649 echo "$me: cannot create a temporary directory in ." >&2
10650 { (exit 1); exit 1; }
10655 cat >>$CONFIG_STATUS <<_ACEOF
10658 # CONFIG_FILES section.
10661 # No need to generate the scripts if there are no CONFIG_FILES.
10662 # This happens for instance when ./config.status config.h
10663 if test -n "\$CONFIG_FILES"; then
10664 # Protect against being on the right side of a sed subst in config.status.
10665 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
10666 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
10667 s,@SHELL@,$SHELL,;t t
10668 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
10669 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
10670 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
10671 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
10672 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
10673 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
10674 s,@exec_prefix@,$exec_prefix,;t t
10675 s,@prefix@,$prefix,;t t
10676 s,@program_transform_name@,$program_transform_name,;t t
10677 s,@bindir@,$bindir,;t t
10678 s,@sbindir@,$sbindir,;t t
10679 s,@libexecdir@,$libexecdir,;t t
10680 s,@datadir@,$datadir,;t t
10681 s,@sysconfdir@,$sysconfdir,;t t
10682 s,@sharedstatedir@,$sharedstatedir,;t t
10683 s,@localstatedir@,$localstatedir,;t t
10684 s,@libdir@,$libdir,;t t
10685 s,@includedir@,$includedir,;t t
10686 s,@oldincludedir@,$oldincludedir,;t t
10687 s,@infodir@,$infodir,;t t
10688 s,@mandir@,$mandir,;t t
10689 s,@build_alias@,$build_alias,;t t
10690 s,@host_alias@,$host_alias,;t t
10691 s,@target_alias@,$target_alias,;t t
10692 s,@DEFS@,$DEFS,;t t
10693 s,@ECHO_C@,$ECHO_C,;t t
10694 s,@ECHO_N@,$ECHO_N,;t t
10695 s,@ECHO_T@,$ECHO_T,;t t
10696 s,@LIBS@,$LIBS,;t t
10698 s,@CFLAGS@,$CFLAGS,;t t
10699 s,@LDFLAGS@,$LDFLAGS,;t t
10700 s,@CPPFLAGS@,$CPPFLAGS,;t t
10701 s,@ac_ct_CC@,$ac_ct_CC,;t t
10702 s,@EXEEXT@,$EXEEXT,;t t
10703 s,@OBJEXT@,$OBJEXT,;t t
10705 s,@CXXFLAGS@,$CXXFLAGS,;t t
10706 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
10707 s,@TTYDEVDIRS@,$TTYDEVDIRS,;t t
10708 s,@OTHERDEVDIRS@,$OTHERDEVDIRS,;t t
10710 s,@X_CFLAGS@,$X_CFLAGS,;t t
10711 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
10712 s,@X_LIBS@,$X_LIBS,;t t
10713 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
10714 s,@XDEVDIRS@,$XDEVDIRS,;t t
10715 s,@XPROGDIRS@,$XPROGDIRS,;t t
10716 s,@XLIBDIRS@,$XLIBDIRS,;t t
10717 s,@appresdir@,$appresdir,;t t
10721 s,@PSPRINT@,$PSPRINT,;t t
10722 s,@DVIPRINT@,$DVIPRINT,;t t
10723 s,@PERLPATH@,$PERLPATH,;t t
10724 s,@YACC@,$YACC,;t t
10725 s,@RANLIB@,$RANLIB,;t t
10726 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
10727 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
10728 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
10729 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
10730 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
10731 s,@LN_S@,$LN_S,;t t
10732 s,@SH_SCRIPT_SED_CMD@,$SH_SCRIPT_SED_CMD,;t t
10733 s,@GREP@,$GREP,;t t
10734 s,@EGREP@,$EGREP,;t t
10735 s,@LIBC@,$LIBC,;t t
10736 s,@LIBM@,$LIBM,;t t
10737 s,@LIBOBJS@,$LIBOBJS,;t t
10738 s,@BROKEN_SPOOLER_FLAGS@,$BROKEN_SPOOLER_FLAGS,;t t
10739 s,@PAGE@,$PAGE,;t t
10741 s,@sys_tmac_prefix@,$sys_tmac_prefix,;t t
10742 s,@tmac_wrap@,$tmac_wrap,;t t
10743 s,@GROFF_PATH_SEPARATOR@,$GROFF_PATH_SEPARATOR,;t t
10744 s,@pnmcut@,$pnmcut,;t t
10745 s,@pnmcrop@,$pnmcrop,;t t
10746 s,@pnmtopng@,$pnmtopng,;t t
10747 s,@psselect@,$psselect,;t t
10748 s,@pnmtops@,$pnmtops,;t t
10750 s,@make_html@,$make_html,;t t
10751 s,@make_install_html@,$make_install_html,;t t
10752 s,@pnmtops_nosetpage@,$pnmtops_nosetpage,;t t
10753 s,@GHOSTSCRIPT@,$GHOSTSCRIPT,;t t
10754 s,@ac_pt_GHOSTSCRIPT@,$ac_pt_GHOSTSCRIPT,;t t
10755 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
10760 cat >>$CONFIG_STATUS <<\_ACEOF
10761 # Split the substitutions into bite-sized pieces for seds with
10762 # small command number limits, like on Digital OSF/1 and HP-UX.
10763 ac_max_sed_lines
=48
10764 ac_sed_frag
=1 # Number of current file.
10765 ac_beg
=1 # First line for current file.
10766 ac_end
=$ac_max_sed_lines # Line after last line for current file.
10769 while $ac_more_lines; do
10770 if test $ac_beg -gt 1; then
10771 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
10773 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
10775 if test ! -s $tmp/subs.frag
; then
10776 ac_more_lines
=false
10778 # The purpose of the label and of the branching condition is to
10779 # speed up the sed processing (if there are no `@' at all, there
10780 # is no need to browse any of the substitutions).
10781 # These are the two extra sed commands mentioned above.
10783 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
10784 if test -z "$ac_sed_cmds"; then
10785 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
10787 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
10789 ac_sed_frag
=`expr $ac_sed_frag + 1`
10791 ac_end
=`expr $ac_end + $ac_max_sed_lines`
10794 if test -z "$ac_sed_cmds"; then
10797 fi # test -n "$CONFIG_FILES"
10800 cat >>$CONFIG_STATUS <<\_ACEOF
10801 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
10802 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10804 - |
*:- |
*:-:* ) # input from stdin
10806 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
10807 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
10808 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
10809 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
10810 * ) ac_file_in
=$ac_file.
in ;;
10813 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
10814 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
10815 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10816 X"$ac_file" : 'X\(//\)[^/]' \| \
10817 X"$ac_file" : 'X\(//\)$' \| \
10818 X"$ac_file" : 'X\(/\)' \| \
10819 . : '\(.\)' 2>/dev/null ||
10821 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10822 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10823 /^X\(\/\/\)$/{ s//\1/; q; }
10824 /^X\(\/\).*/{ s//\1/; q; }
10826 { if $as_mkdir_p; then
10827 test -d "$ac_dir" || mkdir
-p "$ac_dir"
10831 while test ! -d "$as_dir"; do
10832 as_dirs
="$as_dir $as_dirs"
10833 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
10834 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10835 X"$as_dir" : 'X\(//\)[^/]' \| \
10836 X"$as_dir" : 'X\(//\)$' \| \
10837 X"$as_dir" : 'X\(/\)' \| \
10838 . : '\(.\)' 2>/dev/null ||
10840 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10841 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10842 /^X\(\/\/\)$/{ s//\1/; q; }
10843 /^X\(\/\).*/{ s//\1/; q; }
10846 test ! -n "$as_dirs" || mkdir
$as_dirs
10847 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10848 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10849 { (exit 1); exit 1; }; }; }
10853 if test "$ac_dir" != .
; then
10854 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10855 # A "../" for each directory in $ac_dir_suffix.
10856 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10858 ac_dir_suffix
= ac_top_builddir
=
10862 .
) # No --srcdir option. We are building in place.
10864 if test -z "$ac_top_builddir"; then
10867 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
10869 [\\/]* | ?
:[\\/]* ) # Absolute path.
10870 ac_srcdir
=$srcdir$ac_dir_suffix;
10871 ac_top_srcdir
=$srcdir ;;
10872 *) # Relative path.
10873 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
10874 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
10877 # Do not use `cd foo && pwd` to compute absolute paths, because
10878 # the directories may not exist.
10880 .
) ac_abs_builddir
="$ac_dir";;
10883 .
) ac_abs_builddir
=`pwd`;;
10884 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
10885 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
10888 case $ac_abs_builddir in
10889 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
10891 case ${ac_top_builddir}.
in
10892 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
10893 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
10894 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
10897 case $ac_abs_builddir in
10898 .
) ac_abs_srcdir
=$ac_srcdir;;
10901 .
) ac_abs_srcdir
=$ac_abs_builddir;;
10902 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
10903 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
10906 case $ac_abs_builddir in
10907 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
10909 case $ac_top_srcdir in
10910 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
10911 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
10912 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
10918 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
10919 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
10922 if test x
"$ac_file" != x-
; then
10923 { echo "$as_me:$LINENO: creating $ac_file" >&5
10924 echo "$as_me: creating $ac_file" >&6;}
10927 # Let's still pretend it is `configure' which instantiates (i.e., don't
10928 # use $as_me), people would be surprised to read:
10929 # /* config.h. Generated by config.status. */
10930 if test x
"$ac_file" = x-
; then
10933 configure_input
="$ac_file. "
10935 configure_input
=$configure_input"Generated from `echo $ac_file_in |
10936 sed 's,.*/,,'` by configure."
10938 # First look for the input files in the build tree, otherwise in the
10940 ac_file_inputs
=`IFS=:
10941 for f in $ac_file_in; do
10943 -) echo $tmp/stdin ;;
10945 # Absolute (can't be DOS-style, as IFS=:)
10946 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10947 echo "$as_me: error: cannot find input file: $f" >&2;}
10948 { (exit 1); exit 1; }; }
10951 if test -f "$f"; then
10954 elif test -f "$srcdir/$f"; then
10959 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10960 echo "$as_me: error: cannot find input file: $f" >&2;}
10961 { (exit 1); exit 1; }; }
10964 done` ||
{ (exit 1); exit 1; }
10966 cat >>$CONFIG_STATUS <<_ACEOF
10970 cat >>$CONFIG_STATUS <<\_ACEOF
10972 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
10973 s
,@configure_input@
,$configure_input,;t t
10974 s
,@srcdir@
,$ac_srcdir,;t t
10975 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
10976 s
,@top_srcdir@
,$ac_top_srcdir,;t t
10977 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
10978 s
,@builddir@
,$ac_builddir,;t t
10979 s
,@abs_builddir@
,$ac_abs_builddir,;t t
10980 s
,@top_builddir@
,$ac_top_builddir,;t t
10981 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
10982 s
,@INSTALL@
,$ac_INSTALL,;t t
10983 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
10985 if test x"$ac_file" != x-; then
10986 mv $tmp/out $ac_file
10992 # Run the commands associated with the file.
10994 stamp-h ) echo timestamp > stamp-h ;;
10995 test-groff ) chmod +x test-groff ;;
10999 cat >>$CONFIG_STATUS <<\_ACEOF
11002 # CONFIG_HEADER section.
11005 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
11006 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11008 # ac_d sets the value in "#define NAME VALUE" lines.
11009 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11010 ac_dB
='[ ].*$,\1#\2'
11013 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11014 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11015 ac_uB
='$,\1#\2define\3'
11019 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
11020 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11022 - |
*:- |
*:-:* ) # input from stdin
11024 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
11025 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
11026 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
11027 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
11028 * ) ac_file_in
=$ac_file.
in ;;
11031 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
11032 echo "$as_me: creating $ac_file" >&6;}
11034 # First look for the input files in the build tree, otherwise in the
11036 ac_file_inputs
=`IFS=:
11037 for f in $ac_file_in; do
11039 -) echo $tmp/stdin ;;
11041 # Absolute (can't be DOS-style, as IFS=:)
11042 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11043 echo "$as_me: error: cannot find input file: $f" >&2;}
11044 { (exit 1); exit 1; }; }
11045 # Do quote $f, to prevent DOS paths from being IFS'd.
11048 if test -f "$f"; then
11051 elif test -f "$srcdir/$f"; then
11056 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11057 echo "$as_me: error: cannot find input file: $f" >&2;}
11058 { (exit 1); exit 1; }; }
11061 done` ||
{ (exit 1); exit 1; }
11062 # Remove the trailing spaces.
11063 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
11067 # Transform confdefs.h into two sed scripts, `conftest.defines' and
11068 # `conftest.undefs', that substitutes the proper values into
11069 # config.h.in to produce config.h. The first handles `#define'
11070 # templates, and the second `#undef' templates.
11071 # And first: Protect against being on the right side of a sed subst in
11072 # config.status. Protect against being in an unquoted here document
11073 # in config.status.
11074 rm -f conftest.defines conftest.undefs
11075 # Using a here document instead of a string reduces the quoting nightmare.
11076 # Putting comments in sed scripts is not portable.
11078 # `end' is used to avoid that the second main sed command (meant for
11079 # 0-ary CPP macros) applies to n-ary macro definitions.
11080 # See the Autoconf documentation for `clear'.
11081 cat >confdef2sed.
sed <<\_ACEOF
11086 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
11088 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11091 # If some macros were called several times there might be several times
11092 # the same #defines, which is useless. Nevertheless, we may not want to
11093 # sort them, since we want the *last* AC-DEFINE to be honored.
11094 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
11095 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
11096 rm -f confdef2sed.sed
11098 # This sed command replaces #undef with comments. This is necessary, for
11099 # example, in the case of _POSIX_SOURCE, which is predefined and required
11100 # on some systems where configure will not decide to define it.
11101 cat >>conftest.undefs <<\_ACEOF
11102 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11105 # Break up conftest.defines because some shells have a limit on the size
11106 # of here documents, and old seds have small limits too (100 cmds).
11107 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
11108 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
11109 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
11110 echo ' :' >>$CONFIG_STATUS
11111 rm -f conftest.tail
11112 while grep . conftest.defines >/dev/null
11114 # Write a limited-size here document to $tmp/defines.sed.
11115 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
11116 # Speed up: don't consider the non `#define' lines.
11117 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
11118 # Work around the forget-to-reset-the-flag bug.
11119 echo 't clr' >>$CONFIG_STATUS
11120 echo ': clr' >>$CONFIG_STATUS
11121 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
11123 sed -f $tmp/defines.sed $tmp/in >$tmp/out
11125 mv $tmp/out $tmp/in
11127 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
11128 rm -f conftest.defines
11129 mv conftest.
tail conftest.defines
11131 rm -f conftest.defines
11132 echo ' fi # grep' >>$CONFIG_STATUS
11133 echo >>$CONFIG_STATUS
11135 # Break up conftest.undefs because some shells have a limit on the size
11136 # of here documents, and old seds have small limits too (100 cmds).
11137 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
11138 rm -f conftest.
tail
11139 while grep . conftest.undefs
>/dev
/null
11141 # Write a limited-size here document to $tmp/undefs.sed.
11142 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11143 # Speed up: don't consider the non
`#undef'
11144 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
11145 # Work around the forget-to-reset-the-flag bug.
11146 echo 't clr' >>$CONFIG_STATUS
11147 echo ': clr' >>$CONFIG_STATUS
11148 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
11150 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
11152 mv $tmp/out $tmp/in
11154 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
11155 rm -f conftest.undefs
11156 mv conftest.tail conftest.undefs
11158 rm -f conftest.undefs
11160 cat >>$CONFIG_STATUS <<\_ACEOF
11161 # Let's still pretend it is `configure
' which instantiates (i.e., don't
11162 # use $as_me), people would be surprised to read:
11163 # /* config.h. Generated by config.status. */
11164 if test x
"$ac_file" = x-
; then
11165 echo "/* Generated by configure. */" >$tmp/config.h
11167 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
11169 cat $tmp/in >>$tmp/config.h
11171 if test x
"$ac_file" != x-
; then
11172 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
11173 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11174 echo "$as_me: $ac_file is unchanged" >&6;}
11176 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
11177 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11178 X"$ac_file" : 'X\(//\)[^/]' \| \
11179 X"$ac_file" : 'X\(//\)$' \| \
11180 X"$ac_file" : 'X\(/\)' \| \
11181 . : '\(.\)' 2>/dev/null ||
11183 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11184 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11185 /^X\(\/\/\)$/{ s//\1/; q; }
11186 /^X\(\/\).*/{ s//\1/; q; }
11188 { if $as_mkdir_p; then
11189 test -d "$ac_dir" || mkdir
-p "$ac_dir"
11193 while test ! -d "$as_dir"; do
11194 as_dirs
="$as_dir $as_dirs"
11195 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
11196 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11197 X"$as_dir" : 'X\(//\)[^/]' \| \
11198 X"$as_dir" : 'X\(//\)$' \| \
11199 X"$as_dir" : 'X\(/\)' \| \
11200 . : '\(.\)' 2>/dev/null ||
11202 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11203 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11204 /^X\(\/\/\)$/{ s//\1/; q; }
11205 /^X\(\/\).*/{ s//\1/; q; }
11208 test ! -n "$as_dirs" || mkdir
$as_dirs
11209 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11210 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11211 { (exit 1); exit 1; }; }; }
11214 mv $tmp/config.h
$ac_file
11218 rm -f $tmp/config.h
11223 cat >>$CONFIG_STATUS <<\_ACEOF
11225 { (exit 0); exit 0; }
11227 chmod +x
$CONFIG_STATUS
11228 ac_clean_files
=$ac_clean_files_save
11231 # configure is writing to config.log, and then calls config.status.
11232 # config.status does its own redirection, appending to config.log.
11233 # Unfortunately, on DOS this fails, as config.log is still kept open
11234 # by configure, so config.status won't be able to write to it; its
11235 # output is simply discarded. So we exec the FD to /dev/null,
11236 # effectively closing config.log, so it can be properly (re)opened and
11237 # appended to by config.status. When coming back to configure, we
11238 # need to make the FD available again.
11239 if test "$no_create" != yes; then
11241 ac_config_status_args
=
11242 test "$silent" = yes &&
11243 ac_config_status_args
="$ac_config_status_args --quiet"
11245 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
11247 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11248 # would make configure fail if this is the last instruction.
11249 $ac_cs_success ||
{ (exit 1); exit 1; }
11253 if test -z "$groff_no_x"; then
11254 if test "x$with_appresdir" = "x"; then
11255 { echo "$as_me:$LINENO:
11257 The application resource file for gxditview will be installed as
11259 $appresdir/GXditview
11261 (an existing file will be saved as \`GXditview.old').
11262 To install it into a different directory, say, \`/etc/gxditview',
11263 add \`--with-appresdir=/etc/gxditview' to the configure script
11264 and rerun it. The environment variable \`APPLRESDIR' must then
11265 be set to \`/etc/' (note the trailing slash), omitting the
11266 \`gxditview' part which is automatically appended by the X11
11267 searching routines for resource files. More details can be
11268 found in the X(7) manual page.
11272 The application resource file for gxditview will be installed as
11274 $appresdir/GXditview
11276 (an existing file will be saved as \`GXditview.old').
11277 To install it into a different directory, say, \`/etc/gxditview',
11278 add \`--with-appresdir=/etc/gxditview' to the configure script
11279 and rerun it. The environment variable \`APPLRESDIR' must then
11280 be set to \`/etc/' (note the trailing slash), omitting the
11281 \`gxditview' part which is automatically appended by the X11
11282 searching routines for resource files. More details can be
11283 found in the X(7) manual page.