Add numbered and definition lists to www.tmac.
[s-roff.git] / configure
blob845617b1b123739079e255cc203597197eefa096
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59b.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002,
6 # 2003, 2004 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15 emulate sh
16 NULLCMD=:
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 setopt NO_GLOB_SUBST
21 elif test -n "${BASH_VERSION+set}${KSH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 set -o posix
24 BIN_SH=xpg4; export BIN_SH # for Tru64
25 DUALCASE=1; export DUALCASE # for MKS sh
28 # PATH needs CR
29 # Avoid depending upon Character Ranges.
30 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33 as_cr_digits='0123456789'
34 as_cr_alnum=$as_cr_Letters$as_cr_digits
36 # The user is always right.
37 if test "${PATH_SEPARATOR+set}" != set; then
38 echo "#! /bin/sh" >conf$$.sh
39 echo "exit 0" >>conf$$.sh
40 chmod +x conf$$.sh
41 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
42 PATH_SEPARATOR=';'
43 else
44 PATH_SEPARATOR=:
46 rm -f conf$$.sh
49 # Support unset when possible.
50 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
51 as_unset=unset
52 else
53 as_unset=false
57 # Find who we are. Look in the path if we contain no path at all
58 # relative or not.
59 case $0 in
60 *[\\/]* ) as_myself=$0 ;;
61 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
62 for as_dir in $PATH
64 IFS=$as_save_IFS
65 test -z "$as_dir" && as_dir=.
66 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
67 done
70 esac
71 # We did not find ourselves, most probably we were run as `sh COMMAND'
72 # in which case we are not to be found in the path.
73 if test "x$as_myself" = x; then
74 as_myself=$0
76 if test ! -f "$as_myself"; then
77 { echo "$as_me: error: cannot find myself; rerun with an absolute file name" >&2
78 { (exit 1); exit 1; }; }
81 # Work around bugs in pre-3.0 UWIN ksh.
82 for as_var in ENV MAIL MAILPATH
83 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
84 done
85 PS1='$ '
86 PS2='> '
87 PS4='+ '
89 # NLS nuisances.
90 for as_var in \
91 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
92 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
93 LC_TELEPHONE LC_TIME
95 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
96 eval $as_var=C; export $as_var
97 else
98 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
100 done
102 # Required to use basename.
103 if expr a : '\(a\)' >/dev/null 2>&1; then
104 as_expr=expr
105 else
106 as_expr=false
109 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
110 as_basename=basename
111 else
112 as_basename=false
116 # Name of the executable.
117 as_me=`$as_basename "$0" ||
118 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
119 X"$0" : 'X\(//\)$' \| \
120 X"$0" : 'X\(/\)$' \| \
121 . : '\(.\)' 2>/dev/null ||
122 echo X/"$0" |
123 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
124 /^X\/\(\/\/\)$/{ s//\1/; q; }
125 /^X\/\(\/\).*/{ s//\1/; q; }
126 s/.*/./; q'`
130 if test "x$CONFIG_SHELL" = x; then
131 if (eval ":") 2>/dev/null; then
132 as_have_required=yes
133 else
134 as_have_required=no
137 if test $as_have_required = yes && (eval ":
138 (func_return () {
139 (exit \$1)
141 func_success () {
142 func_return 0
144 func_failure () {
145 func_return 1
147 func_ret_success () {
148 return 0
150 func_ret_failure () {
151 return 1
154 exitcode=0
155 if func_success; then
157 else
158 exitcode=1
159 echo func_failure succeeded.
162 if func_failure; then
163 exitcode=1
164 echo func_success failed.
167 if func_ret_success; then
169 else
170 exitcode=1
171 echo func_ret_success failed.
174 if func_ret_failure; then
175 exitcode=1
176 echo func_ret_failure succeeded.
179 test \$exitcode = 0) || { (exit 1); exit 1; }
182 as_lineno_1=\$LINENO
183 as_lineno_2=\$LINENO
184 as_lineno_3=\`(expr \$as_lineno_1 + 1) 2>/dev/null\`
185 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
186 test \"x\$as_lineno_3\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
187 ") 2> /dev/null; then
189 else
190 as_candidate_shells=
191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
192 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
194 IFS=$as_save_IFS
195 test -z "$as_dir" && as_dir=.
196 case $as_dir in
198 for as_base in sh bash ksh sh5; do
199 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
200 done
201 esac
202 done
205 for as_shell in $as_candidate_shells $SHELL; do
206 if { $as_shell 2> /dev/null <<\_ASEOF
207 # Be Bourne compatible
208 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
209 emulate sh
210 NULLCMD=:
211 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
212 # is contrary to our usage. Disable this feature.
213 alias -g '${1+"$@"}'='"$@"'
214 setopt NO_GLOB_SUBST
215 elif test -n "${BASH_VERSION+set}${KSH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
216 set -o posix
218 BIN_SH=xpg4; export BIN_SH # for Tru64
219 DUALCASE=1; export DUALCASE # for MKS sh
222 _ASEOF
223 }; then
224 CONFIG_SHELL=$as_shell
225 as_have_required=yes
226 if { $as_shell 2> /dev/null <<\_ASEOF
227 # Be Bourne compatible
228 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
229 emulate sh
230 NULLCMD=:
231 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
232 # is contrary to our usage. Disable this feature.
233 alias -g '${1+"$@"}'='"$@"'
234 setopt NO_GLOB_SUBST
235 elif test -n "${BASH_VERSION+set}${KSH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
236 set -o posix
238 BIN_SH=xpg4; export BIN_SH # for Tru64
239 DUALCASE=1; export DUALCASE # for MKS sh
242 (func_return () {
243 (exit $1)
245 func_success () {
246 func_return 0
248 func_failure () {
249 func_return 1
251 func_ret_success () {
252 return 0
254 func_ret_failure () {
255 return 1
258 exitcode=0
259 if func_success; then
261 else
262 exitcode=1
263 echo func_failure succeeded.
266 if func_failure; then
267 exitcode=1
268 echo func_success failed.
271 if func_ret_success; then
273 else
274 exitcode=1
275 echo func_ret_success failed.
278 if func_ret_failure; then
279 exitcode=1
280 echo func_ret_failure succeeded.
283 test $exitcode = 0) || { (exit 1); exit 1; }
286 as_lineno_1=$LINENO
287 as_lineno_2=$LINENO
288 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
289 test "x$as_lineno_1" != "x$as_lineno_2" &&
290 test "x$as_lineno_3" = "x$as_lineno_2") || { (exit 1); exit 1; }
292 _ASEOF
293 }; then
294 break
299 done
301 if test "x$CONFIG_SHELL" != x; then
302 for as_var in BASH_ENV ENV
303 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
304 done
305 export CONFIG_SHELL
306 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
310 if test $as_have_required = no; then
311 echo This script requires a shell more modern than all the
312 echo shells that I found on your system. Please install a
313 echo modern shell, or manually run the script under such a
314 echo shell if you do have one.
315 { (exit 1); exit 1; }
325 (eval "func_return () {
326 (exit \$1)
328 func_success () {
329 func_return 0
331 func_failure () {
332 func_return 1
334 func_ret_success () {
335 return 0
337 func_ret_failure () {
338 return 1
341 exitcode=0
342 if func_success; then
344 else
345 exitcode=1
346 echo func_failure succeeded.
349 if func_failure; then
350 exitcode=1
351 echo func_success failed.
354 if func_ret_success; then
356 else
357 exitcode=1
358 echo func_ret_success failed.
361 if func_ret_failure; then
362 exitcode=1
363 echo func_ret_failure succeeded.
366 test \$exitcode = 0") || {
367 echo No shell found that supports shell functions.
368 echo Please tell autoconf@gnu.org about your system,
369 echo including any error possibly output before this
370 echo message
375 as_lineno_1=$LINENO
376 as_lineno_2=$LINENO
377 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
378 test "x$as_lineno_1" != "x$as_lineno_2" &&
379 test "x$as_lineno_3" = "x$as_lineno_2" || {
381 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
382 # uniformly replaced by the line number. The first 'sed' inserts a
383 # line-number line after each line using $LINENO; the second 'sed'
384 # does the real work. The second script uses 'N' to pair each
385 # line-number line with the line containing $LINENO, and appends
386 # trailing '-' during substitution so that $LINENO is not a special
387 # case at line end.
388 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
389 # scripts with optimization help from Paolo Bonzini. Blame Lee
390 # E. McMahon (1931-1989) for sed's syntax. :-)
391 sed -n '
393 /[$]LINENO/=
394 ' <$as_myself |
395 sed '
396 s,[$]LINENO.*,&-,
397 t lineno
399 : lineno
401 : loop
402 s,[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\),\2\1\2,
403 t loop
404 s,-\n.*,,
405 ' >$as_me.lineno &&
406 chmod +x $as_me.lineno ||
407 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
408 { (exit 1); exit 1; }; }
410 # Don't try to exec as it changes $[0], causing all sort of problems
411 # (the dirname of $[0] is not the place where we might find the
412 # original and so on. Autoconf is especially sensible to this).
413 . ./$as_me.lineno
414 # Exit status is that of the last command.
415 exit
419 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
420 *c*,-n*) ECHO_N= ECHO_C='
421 ' ECHO_T=' ' ;;
422 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
423 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
424 esac
426 if expr a : '\(a\)' >/dev/null 2>&1; then
427 as_expr=expr
428 else
429 as_expr=false
432 rm -f conf$$ conf$$.exe conf$$.file
433 echo >conf$$.file
434 if ln -s conf$$.file conf$$ 2>/dev/null; then
435 # We could just check for DJGPP; but this test a) works b) is more generic
436 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
437 if test -f conf$$.exe; then
438 # Don't use ln at all; we don't have any links
439 as_ln_s='cp -p'
440 else
441 as_ln_s='ln -s'
443 elif ln conf$$.file conf$$ 2>/dev/null; then
444 as_ln_s=ln
445 else
446 as_ln_s='cp -p'
448 rm -f conf$$ conf$$.exe conf$$.file
450 if mkdir -p . 2>/dev/null; then
451 as_mkdir_p=:
452 else
453 test -d ./-p && rmdir ./-p
454 as_mkdir_p=false
457 as_executable_p="test -f"
459 # Sed expression to map a string onto a valid CPP name.
460 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
462 # Sed expression to map a string onto a valid variable name.
463 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
466 # IFS
467 # We need space, tab and new line, in precisely that order.
468 as_nl='
470 IFS=" $as_nl"
472 # CDPATH.
473 $as_unset CDPATH
476 # Name of the host.
477 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
478 # so uname gets run too.
479 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
481 exec 6>&1
484 # Initializations.
486 ac_default_prefix=/usr/local
487 ac_config_libobj_dir=.
488 cross_compiling=no
489 subdirs=
490 MFLAGS=
491 MAKEFLAGS=
492 SHELL=${CONFIG_SHELL-/bin/sh}
494 # Maximum number of lines to put in a shell here document.
495 # This variable seems obsolete. It should probably be removed, and
496 # only ac_max_sed_lines should be used.
497 : ${ac_max_here_lines=38}
499 # Identity of this package.
500 PACKAGE_NAME=
501 PACKAGE_TARNAME=
502 PACKAGE_VERSION=
503 PACKAGE_STRING=
504 PACKAGE_BUGREPORT=
506 ac_unique_file="src/roff/groff/groff.cpp"
507 # Factoring default headers for most tests.
508 ac_includes_default="\
509 #include <stdio.h>
510 #if HAVE_SYS_TYPES_H
511 # include <sys/types.h>
512 #endif
513 #if HAVE_SYS_STAT_H
514 # include <sys/stat.h>
515 #endif
516 #if STDC_HEADERS
517 # include <stdlib.h>
518 # include <stddef.h>
519 #else
520 # if HAVE_STDLIB_H
521 # include <stdlib.h>
522 # endif
523 #endif
524 #if HAVE_STRING_H
525 # if !STDC_HEADERS && HAVE_MEMORY_H
526 # include <memory.h>
527 # endif
528 # include <string.h>
529 #endif
530 #if HAVE_STRINGS_H
531 # include <strings.h>
532 #endif
533 #if HAVE_INTTYPES_H
534 # include <inttypes.h>
535 #endif
536 #if HAVE_STDINT_H
537 # include <stdint.h>
538 #endif
539 #if HAVE_UNISTD_H
540 # include <unistd.h>
541 #endif"
543 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX TTYDEVDIRS OTHERDEVDIRS CPP X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS XDEVDIRS XPROGDIRS XLIBDIRS appresdir LPR LP LPQ PSPRINT DVIPRINT PERLPATH YACC RANLIB ac_ct_RANLIB INSTALL_INFO INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S SH_SCRIPT_SED_CMD GREP EGREP LIBC LIBM LIBOBJS BROKEN_SPOOLER_FLAGS PAGE g sys_tmac_prefix tmac_wrap GROFF_PATH_SEPARATOR ALT_GHOSTSCRIPT_PROGS GHOSTSCRIPT ac_ct_GHOSTSCRIPT pnmcut pnmcrop pnmtopng psselect pnmtops make_html make_install_html ALT_AWK_PROGS AWK ac_ct_AWK make_pdfdoc make_install_pdfdoc pnmtops_nosetpage LTLIBOBJS'
544 ac_subst_files=''
546 # Initialize some variables set by options.
547 ac_init_help=
548 ac_init_version=false
549 # The variables have the same names as the options, with
550 # dashes changed to underlines.
551 cache_file=/dev/null
552 exec_prefix=NONE
553 no_create=
554 no_recursion=
555 prefix=NONE
556 program_prefix=NONE
557 program_suffix=NONE
558 program_transform_name=s,x,x,
559 silent=
560 site=
561 srcdir=
562 verbose=
563 x_includes=NONE
564 x_libraries=NONE
566 # Installation directory options.
567 # These are left unexpanded so users can "make install exec_prefix=/foo"
568 # and all the variables that are supposed to be based on exec_prefix
569 # by default will actually change.
570 # Use braces instead of parens because sh, perl, etc. also accept them.
571 bindir='${exec_prefix}/bin'
572 sbindir='${exec_prefix}/sbin'
573 libexecdir='${exec_prefix}/libexec'
574 datadir='${prefix}/share'
575 sysconfdir='${prefix}/etc'
576 sharedstatedir='${prefix}/com'
577 localstatedir='${prefix}/var'
578 libdir='${exec_prefix}/lib'
579 includedir='${prefix}/include'
580 oldincludedir='/usr/include'
581 infodir='${prefix}/info'
582 mandir='${prefix}/man'
584 ac_prev=
585 ac_dashdash=
586 for ac_option
588 # If the previous option needs an argument, assign it.
589 if test -n "$ac_prev"; then
590 eval "$ac_prev=\$ac_option"
591 ac_prev=
592 continue
595 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
597 # Accept the important Cygnus configure options, so we can diagnose typos.
599 case $ac_dashdash$ac_option in
601 ac_dashdash=yes ;;
603 -bindir | --bindir | --bindi | --bind | --bin | --bi)
604 ac_prev=bindir ;;
605 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
606 bindir=$ac_optarg ;;
608 -build | --build | --buil | --bui | --bu)
609 ac_prev=build_alias ;;
610 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
611 build_alias=$ac_optarg ;;
613 -cache-file | --cache-file | --cache-fil | --cache-fi \
614 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
615 ac_prev=cache_file ;;
616 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
617 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
618 cache_file=$ac_optarg ;;
620 --config-cache | -C)
621 cache_file=config.cache ;;
623 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
624 ac_prev=datadir ;;
625 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
626 | --da=*)
627 datadir=$ac_optarg ;;
629 -disable-* | --disable-*)
630 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
631 # Reject names that are not valid shell variable names.
632 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
633 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
634 { (exit 1); exit 1; }; }
635 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
636 eval "enable_$ac_feature=no" ;;
638 -enable-* | --enable-*)
639 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
640 # Reject names that are not valid shell variable names.
641 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
642 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
643 { (exit 1); exit 1; }; }
644 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
645 case $ac_option in
646 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
647 *) ac_optarg=yes ;;
648 esac
649 eval "enable_$ac_feature='$ac_optarg'" ;;
651 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
652 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
653 | --exec | --exe | --ex)
654 ac_prev=exec_prefix ;;
655 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
656 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
657 | --exec=* | --exe=* | --ex=*)
658 exec_prefix=$ac_optarg ;;
660 -gas | --gas | --ga | --g)
661 # Obsolete; use --with-gas.
662 with_gas=yes ;;
664 -help | --help | --hel | --he | -h)
665 ac_init_help=long ;;
666 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
667 ac_init_help=recursive ;;
668 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
669 ac_init_help=short ;;
671 -host | --host | --hos | --ho)
672 ac_prev=host_alias ;;
673 -host=* | --host=* | --hos=* | --ho=*)
674 host_alias=$ac_optarg ;;
676 -includedir | --includedir | --includedi | --included | --include \
677 | --includ | --inclu | --incl | --inc)
678 ac_prev=includedir ;;
679 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
680 | --includ=* | --inclu=* | --incl=* | --inc=*)
681 includedir=$ac_optarg ;;
683 -infodir | --infodir | --infodi | --infod | --info | --inf)
684 ac_prev=infodir ;;
685 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
686 infodir=$ac_optarg ;;
688 -libdir | --libdir | --libdi | --libd)
689 ac_prev=libdir ;;
690 -libdir=* | --libdir=* | --libdi=* | --libd=*)
691 libdir=$ac_optarg ;;
693 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
694 | --libexe | --libex | --libe)
695 ac_prev=libexecdir ;;
696 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
697 | --libexe=* | --libex=* | --libe=*)
698 libexecdir=$ac_optarg ;;
700 -localstatedir | --localstatedir | --localstatedi | --localstated \
701 | --localstate | --localstat | --localsta | --localst \
702 | --locals | --local | --loca | --loc | --lo)
703 ac_prev=localstatedir ;;
704 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
705 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
706 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
707 localstatedir=$ac_optarg ;;
709 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
710 ac_prev=mandir ;;
711 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
712 mandir=$ac_optarg ;;
714 -nfp | --nfp | --nf)
715 # Obsolete; use --without-fp.
716 with_fp=no ;;
718 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
719 | --no-cr | --no-c | -n)
720 no_create=yes ;;
722 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
723 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
724 no_recursion=yes ;;
726 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
727 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
728 | --oldin | --oldi | --old | --ol | --o)
729 ac_prev=oldincludedir ;;
730 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
731 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
732 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
733 oldincludedir=$ac_optarg ;;
735 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
736 ac_prev=prefix ;;
737 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
738 prefix=$ac_optarg ;;
740 -program-prefix | --program-prefix | --program-prefi | --program-pref \
741 | --program-pre | --program-pr | --program-p)
742 ac_prev=program_prefix ;;
743 -program-prefix=* | --program-prefix=* | --program-prefi=* \
744 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
745 program_prefix=$ac_optarg ;;
747 -program-suffix | --program-suffix | --program-suffi | --program-suff \
748 | --program-suf | --program-su | --program-s)
749 ac_prev=program_suffix ;;
750 -program-suffix=* | --program-suffix=* | --program-suffi=* \
751 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
752 program_suffix=$ac_optarg ;;
754 -program-transform-name | --program-transform-name \
755 | --program-transform-nam | --program-transform-na \
756 | --program-transform-n | --program-transform- \
757 | --program-transform | --program-transfor \
758 | --program-transfo | --program-transf \
759 | --program-trans | --program-tran \
760 | --progr-tra | --program-tr | --program-t)
761 ac_prev=program_transform_name ;;
762 -program-transform-name=* | --program-transform-name=* \
763 | --program-transform-nam=* | --program-transform-na=* \
764 | --program-transform-n=* | --program-transform-=* \
765 | --program-transform=* | --program-transfor=* \
766 | --program-transfo=* | --program-transf=* \
767 | --program-trans=* | --program-tran=* \
768 | --progr-tra=* | --program-tr=* | --program-t=*)
769 program_transform_name=$ac_optarg ;;
771 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
772 | -silent | --silent | --silen | --sile | --sil)
773 silent=yes ;;
775 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
776 ac_prev=sbindir ;;
777 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
778 | --sbi=* | --sb=*)
779 sbindir=$ac_optarg ;;
781 -sharedstatedir | --sharedstatedir | --sharedstatedi \
782 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
783 | --sharedst | --shareds | --shared | --share | --shar \
784 | --sha | --sh)
785 ac_prev=sharedstatedir ;;
786 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
787 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
788 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
789 | --sha=* | --sh=*)
790 sharedstatedir=$ac_optarg ;;
792 -site | --site | --sit)
793 ac_prev=site ;;
794 -site=* | --site=* | --sit=*)
795 site=$ac_optarg ;;
797 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
798 ac_prev=srcdir ;;
799 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
800 srcdir=$ac_optarg ;;
802 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
803 | --syscon | --sysco | --sysc | --sys | --sy)
804 ac_prev=sysconfdir ;;
805 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
806 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
807 sysconfdir=$ac_optarg ;;
809 -target | --target | --targe | --targ | --tar | --ta | --t)
810 ac_prev=target_alias ;;
811 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
812 target_alias=$ac_optarg ;;
814 -v | -verbose | --verbose | --verbos | --verbo | --verb)
815 verbose=yes ;;
817 -version | --version | --versio | --versi | --vers | -V)
818 ac_init_version=: ;;
820 -with-* | --with-*)
821 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
822 # Reject names that are not valid shell variable names.
823 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
824 { echo "$as_me: error: invalid package name: $ac_package" >&2
825 { (exit 1); exit 1; }; }
826 ac_package=`echo $ac_package| sed 's/-/_/g'`
827 case $ac_option in
828 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
829 *) ac_optarg=yes ;;
830 esac
831 eval "with_$ac_package='$ac_optarg'" ;;
833 -without-* | --without-*)
834 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
835 # Reject names that are not valid shell variable names.
836 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
837 { echo "$as_me: error: invalid package name: $ac_package" >&2
838 { (exit 1); exit 1; }; }
839 ac_package=`echo $ac_package | sed 's/-/_/g'`
840 eval "with_$ac_package=no" ;;
842 --x)
843 # Obsolete; use --with-x.
844 with_x=yes ;;
846 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
847 | --x-incl | --x-inc | --x-in | --x-i)
848 ac_prev=x_includes ;;
849 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
850 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
851 x_includes=$ac_optarg ;;
853 -x-libraries | --x-libraries | --x-librarie | --x-librari \
854 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
855 ac_prev=x_libraries ;;
856 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
857 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
858 x_libraries=$ac_optarg ;;
860 -*) { echo "$as_me: error: unrecognized option: $ac_option
861 Try \`$0 --help' for more information." >&2
862 { (exit 1); exit 1; }; }
865 *=*)
866 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
867 # Reject names that are not valid shell variable names.
868 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
869 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
870 { (exit 1); exit 1; }; }
871 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
872 eval "$ac_envvar='$ac_optarg'"
873 export $ac_envvar ;;
876 # FIXME: should be removed in autoconf 3.0.
877 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
878 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
879 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
880 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
883 esac
884 done
886 if test -n "$ac_prev"; then
887 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
888 { echo "$as_me: error: missing argument to $ac_option" >&2
889 { (exit 1); exit 1; }; }
892 # Be sure to have absolute directory names.
893 for ac_var in exec_prefix prefix
895 eval ac_val=$`echo $ac_var`
896 case $ac_val in
897 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
898 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
899 { (exit 1); exit 1; }; };;
900 esac
901 done
903 # Be sure to have absolute directory names.
904 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
905 localstatedir libdir includedir oldincludedir infodir mandir
907 eval ac_val=$`echo $ac_var`
908 case $ac_val in
909 [\\/$]* | ?:[\\/]* ) ;;
910 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
911 { (exit 1); exit 1; }; };;
912 esac
913 done
915 # There might be people who depend on the old broken behavior: `$host'
916 # used to hold the argument of --host etc.
917 # FIXME: To remove some day.
918 build=$build_alias
919 host=$host_alias
920 target=$target_alias
922 # FIXME: To remove some day.
923 if test "x$host_alias" != x; then
924 if test "x$build_alias" = x; then
925 cross_compiling=maybe
926 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
927 If a cross compiler is detected then cross compile mode will be used." >&2
928 elif test "x$build_alias" != "x$host_alias"; then
929 cross_compiling=yes
933 ac_tool_prefix=
934 test -n "$host_alias" && ac_tool_prefix=$host_alias-
936 test "$silent" = yes && exec 6>/dev/null
939 # Find the source files, if location was not specified.
940 if test -z "$srcdir"; then
941 ac_srcdir_defaulted=yes
942 # Try the directory containing this script, then its parent.
943 ac_confdir=`(dirname "$0") 2>/dev/null ||
944 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
945 X"$0" : 'X\(//\)[^/]' \| \
946 X"$0" : 'X\(//\)$' \| \
947 X"$0" : 'X\(/\)' \| \
948 . : '\(.\)' 2>/dev/null ||
949 echo X"$0" |
950 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
951 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
952 /^X\(\/\/\)$/{ s//\1/; q; }
953 /^X\(\/\).*/{ s//\1/; q; }
954 s/.*/./; q'`
955 srcdir=$ac_confdir
956 if test ! -r $srcdir/$ac_unique_file; then
957 srcdir=..
959 else
960 ac_srcdir_defaulted=no
962 if test ! -r $srcdir/$ac_unique_file; then
963 if test "$ac_srcdir_defaulted" = yes; then
964 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
965 { (exit 1); exit 1; }; }
966 else
967 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
968 { (exit 1); exit 1; }; }
971 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
972 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
973 { (exit 1); exit 1; }; }
974 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
975 ac_env_build_alias_set=${build_alias+set}
976 ac_env_build_alias_value=$build_alias
977 ac_cv_env_build_alias_set=${build_alias+set}
978 ac_cv_env_build_alias_value=$build_alias
979 ac_env_host_alias_set=${host_alias+set}
980 ac_env_host_alias_value=$host_alias
981 ac_cv_env_host_alias_set=${host_alias+set}
982 ac_cv_env_host_alias_value=$host_alias
983 ac_env_target_alias_set=${target_alias+set}
984 ac_env_target_alias_value=$target_alias
985 ac_cv_env_target_alias_set=${target_alias+set}
986 ac_cv_env_target_alias_value=$target_alias
987 ac_env_CC_set=${CC+set}
988 ac_env_CC_value=$CC
989 ac_cv_env_CC_set=${CC+set}
990 ac_cv_env_CC_value=$CC
991 ac_env_CFLAGS_set=${CFLAGS+set}
992 ac_env_CFLAGS_value=$CFLAGS
993 ac_cv_env_CFLAGS_set=${CFLAGS+set}
994 ac_cv_env_CFLAGS_value=$CFLAGS
995 ac_env_LDFLAGS_set=${LDFLAGS+set}
996 ac_env_LDFLAGS_value=$LDFLAGS
997 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
998 ac_cv_env_LDFLAGS_value=$LDFLAGS
999 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
1000 ac_env_CPPFLAGS_value=$CPPFLAGS
1001 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
1002 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
1003 ac_env_CXX_set=${CXX+set}
1004 ac_env_CXX_value=$CXX
1005 ac_cv_env_CXX_set=${CXX+set}
1006 ac_cv_env_CXX_value=$CXX
1007 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
1008 ac_env_CXXFLAGS_value=$CXXFLAGS
1009 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
1010 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
1011 ac_env_CPP_set=${CPP+set}
1012 ac_env_CPP_value=$CPP
1013 ac_cv_env_CPP_set=${CPP+set}
1014 ac_cv_env_CPP_value=$CPP
1017 # Report the --help message.
1019 if test "$ac_init_help" = "long"; then
1020 # Omit some internal or obsolete options to make the list less imposing.
1021 # This message is too long to be a string in the A/UX 3.1 sh.
1022 cat <<_ACEOF
1023 \`configure' configures this package to adapt to many kinds of systems.
1025 Usage: $0 [OPTION]... [VAR=VALUE]...
1027 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1028 VAR=VALUE. See below for descriptions of some of the useful variables.
1030 Defaults for the options are specified in brackets.
1032 Configuration:
1033 -h, --help display this help and exit
1034 --help=short display options specific to this package
1035 --help=recursive display the short help of all the included packages
1036 -V, --version display version information and exit
1037 -q, --quiet, --silent do not print \`checking...' messages
1038 --cache-file=FILE cache test results in FILE [disabled]
1039 -C, --config-cache alias for \`--cache-file=config.cache'
1040 -n, --no-create do not create output files
1041 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1043 _ACEOF
1045 cat <<_ACEOF
1046 Installation directories:
1047 --prefix=PREFIX install architecture-independent files in PREFIX
1048 [$ac_default_prefix]
1049 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1050 [PREFIX]
1052 By default, \`make install' will install all the files in
1053 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1054 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1055 for instance \`--prefix=\$HOME'.
1057 For better control, use the options below.
1059 Fine tuning of the installation directories:
1060 --bindir=DIR user executables [EPREFIX/bin]
1061 --sbindir=DIR system admin executables [EPREFIX/sbin]
1062 --libexecdir=DIR program executables [EPREFIX/libexec]
1063 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1064 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1065 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1066 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1067 --libdir=DIR object code libraries [EPREFIX/lib]
1068 --includedir=DIR C header files [PREFIX/include]
1069 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1070 --infodir=DIR info documentation [PREFIX/info]
1071 --mandir=DIR man documentation [PREFIX/man]
1072 _ACEOF
1074 cat <<\_ACEOF
1076 X features:
1077 --x-includes=DIR X include files are in DIR
1078 --x-libraries=DIR X library files are in DIR
1079 _ACEOF
1082 if test -n "$ac_init_help"; then
1084 cat <<\_ACEOF
1086 Optional Packages:
1087 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1088 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1089 --with-x use the X Window System
1090 --with-appresdir=DIR X11 application resource files
1091 --with-alt-gs=LIST alternative names for ghostscript executable
1092 --with-gs=PROG actual [/path/]name of ghostscript executable
1093 --with-alt-awk=LIST alternative names for awk executable
1094 --with-awk=PROG actual [/path/]name of awk executable
1096 Some influential environment variables:
1097 CC C compiler command
1098 CFLAGS C compiler flags
1099 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1100 nonstandard directory <lib dir>
1101 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1102 headers in a nonstandard directory <include dir>
1103 CXX C++ compiler command
1104 CXXFLAGS C++ compiler flags
1105 CPP C preprocessor
1107 Use these variables to override the choices made by `configure' or to help
1108 it to find libraries and programs with nonstandard names/locations.
1110 _ACEOF
1113 if test "$ac_init_help" = "recursive"; then
1114 # If there are subdirs, report their specific --help.
1115 ac_popdir=`pwd`
1116 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1117 test -d $ac_dir || continue
1118 ac_builddir=.
1120 if test "$ac_dir" != .; then
1121 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1122 # A "../" for each directory in $ac_dir_suffix.
1123 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1124 else
1125 ac_dir_suffix= ac_top_builddir=
1128 case $srcdir in
1129 .) # No --srcdir option. We are building in place.
1130 ac_srcdir=.
1131 if test -z "$ac_top_builddir"; then
1132 ac_top_srcdir=.
1133 else
1134 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1135 fi ;;
1136 [\\/]* | ?:[\\/]* ) # Absolute name.
1137 ac_srcdir=$srcdir$ac_dir_suffix;
1138 ac_top_srcdir=$srcdir ;;
1139 *) # Relative name.
1140 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1141 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1142 esac
1144 # Do not use `cd foo && pwd` to compute absolute names, because
1145 # the directories may not exist.
1146 case `pwd` in
1147 .) ac_abs_builddir="$ac_dir";;
1149 case "$ac_dir" in
1150 .) ac_abs_builddir=`pwd`;;
1151 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1152 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1153 esac;;
1154 esac
1155 case $ac_abs_builddir in
1156 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1158 case ${ac_top_builddir}. in
1159 .) ac_abs_top_builddir=$ac_abs_builddir;;
1160 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1161 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1162 esac;;
1163 esac
1164 case $ac_abs_builddir in
1165 .) ac_abs_srcdir=$ac_srcdir;;
1167 case $ac_srcdir in
1168 .) ac_abs_srcdir=$ac_abs_builddir;;
1169 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1170 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1171 esac;;
1172 esac
1173 case $ac_abs_builddir in
1174 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1176 case $ac_top_srcdir in
1177 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1178 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1179 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1180 esac;;
1181 esac
1183 cd $ac_dir
1184 # Check for guested configure; otherwise get Cygnus style configure.
1185 if test -f $ac_srcdir/configure.gnu; then
1186 echo
1187 $SHELL $ac_srcdir/configure.gnu --help=recursive
1188 elif test -f $ac_srcdir/configure; then
1189 echo
1190 $SHELL $ac_srcdir/configure --help=recursive
1191 elif test -f $ac_srcdir/configure.ac ||
1192 test -f $ac_srcdir/configure.in; then
1193 echo
1194 $ac_configure --help
1195 else
1196 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1198 cd "$ac_popdir"
1199 done
1202 test -n "$ac_init_help" && exit 0
1203 if $ac_init_version; then
1204 cat <<\_ACEOF
1206 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002,
1207 2003, 2004 Free Software Foundation, Inc.
1208 This configure script is free software; the Free Software Foundation
1209 gives unlimited permission to copy, distribute and modify it.
1210 _ACEOF
1211 exit 0
1213 exec 5>config.log
1214 cat >&5 <<_ACEOF
1215 This file contains any messages produced by compilers while
1216 running configure, to aid debugging if configure makes a mistake.
1218 It was created by $as_me, which was
1219 generated by GNU Autoconf 2.59b. Invocation command line was
1221 $ $0 $@
1223 _ACEOF
1225 cat <<_ASUNAME
1226 ## --------- ##
1227 ## Platform. ##
1228 ## --------- ##
1230 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1231 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1232 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1233 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1234 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1236 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1237 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1239 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1240 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1241 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1242 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1243 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1244 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1245 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1247 _ASUNAME
1249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1250 for as_dir in $PATH
1252 IFS=$as_save_IFS
1253 test -z "$as_dir" && as_dir=.
1254 echo "PATH: $as_dir"
1255 done
1257 } >&5
1259 cat >&5 <<_ACEOF
1262 ## ----------- ##
1263 ## Core tests. ##
1264 ## ----------- ##
1266 _ACEOF
1269 # Keep a trace of the command line.
1270 # Strip out --no-create and --no-recursion so they do not pile up.
1271 # Strip out --silent because we don't want to record it for future runs.
1272 # Also quote any args containing shell meta-characters.
1273 # Make two passes to allow for proper duplicate-argument suppression.
1274 ac_configure_args=
1275 ac_configure_args0=
1276 ac_configure_args1=
1277 ac_sep=
1278 ac_must_keep_next=false
1279 for ac_pass in 1 2
1281 for ac_arg
1283 case $ac_arg in
1284 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1285 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1286 | -silent | --silent | --silen | --sile | --sil)
1287 continue ;;
1288 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1289 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1290 esac
1291 case $ac_pass in
1292 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1294 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1295 if test $ac_must_keep_next = true; then
1296 ac_must_keep_next=false # Got value, back to normal.
1297 else
1298 case $ac_arg in
1299 *=* | --config-cache | -C | -disable-* | --disable-* \
1300 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1301 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1302 | -with-* | --with-* | -without-* | --without-* | --x)
1303 case "$ac_configure_args0 " in
1304 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1305 esac
1307 -* ) ac_must_keep_next=true ;;
1308 esac
1310 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1311 # Get rid of the leading space.
1312 ac_sep=" "
1314 esac
1315 done
1316 done
1317 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1318 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1320 # When interrupted or exit'd, cleanup temporary files, and complete
1321 # config.log. We remove comments because anyway the quotes in there
1322 # would cause problems or look ugly.
1323 # WARNING: Be sure not to use single quotes in there, as some shells,
1324 # such as our DU 5.0 friend, will then `close' the trap.
1325 trap 'exit_status=$?
1326 # Save into config.log some information that might help in debugging.
1328 echo
1330 cat <<\_ASBOX
1331 ## ---------------- ##
1332 ## Cache variables. ##
1333 ## ---------------- ##
1334 _ASBOX
1335 echo
1336 # The following way of writing the cache mishandles newlines in values,
1338 (set) 2>&1 |
1339 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1340 *ac_space=\ *)
1341 sed -n \
1342 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1343 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1346 sed -n \
1347 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1349 esac;
1351 echo
1353 cat <<\_ASBOX
1354 ## ----------------- ##
1355 ## Output variables. ##
1356 ## ----------------- ##
1357 _ASBOX
1358 echo
1359 for ac_var in $ac_subst_vars
1361 eval ac_val=$`echo $ac_var`
1362 echo "$ac_var='"'"'$ac_val'"'"'"
1363 done | sort
1364 echo
1366 if test -n "$ac_subst_files"; then
1367 cat <<\_ASBOX
1368 ## ------------- ##
1369 ## Output files. ##
1370 ## ------------- ##
1371 _ASBOX
1372 echo
1373 for ac_var in $ac_subst_files
1375 eval ac_val=$`echo $ac_var`
1376 echo "$ac_var='"'"'$ac_val'"'"'"
1377 done | sort
1378 echo
1381 if test -s confdefs.h; then
1382 cat <<\_ASBOX
1383 ## ----------- ##
1384 ## confdefs.h. ##
1385 ## ----------- ##
1386 _ASBOX
1387 echo
1388 sed "/^$/d" confdefs.h | sort
1389 echo
1391 test "$ac_signal" != 0 &&
1392 echo "$as_me: caught signal $ac_signal"
1393 echo "$as_me: exit $exit_status"
1394 } >&5
1395 rm -f core *.core &&
1396 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1397 exit $exit_status
1399 for ac_signal in 1 2 13 15; do
1400 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1401 done
1402 ac_signal=0
1404 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1405 rm -f -r conftest* confdefs.h
1406 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1407 # NextStep 3.3 (patch 3) loses unless the first echo outputs at least 14 bytes.
1408 ac_space=' '
1409 echo "$ac_space$ac_space$ac_space$ac_space$ac_space$ac_space$ac_space$ac_space$ac_space$ac_space$ac_space$ac_space$ac_space" >confdefs.h
1411 # Predefined preprocessor variables.
1413 cat >>confdefs.h <<_ACEOF
1414 #define PACKAGE_NAME "$PACKAGE_NAME"
1415 _ACEOF
1418 cat >>confdefs.h <<_ACEOF
1419 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1420 _ACEOF
1423 cat >>confdefs.h <<_ACEOF
1424 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1425 _ACEOF
1428 cat >>confdefs.h <<_ACEOF
1429 #define PACKAGE_STRING "$PACKAGE_STRING"
1430 _ACEOF
1433 cat >>confdefs.h <<_ACEOF
1434 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1435 _ACEOF
1438 # Let the site file select an alternate cache file if it wants to.
1439 # Prefer explicitly selected file to automatically selected ones.
1440 if test -z "$CONFIG_SITE"; then
1441 if test "x$prefix" != xNONE; then
1442 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1443 else
1444 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1447 for ac_site_file in $CONFIG_SITE; do
1448 if test -r "$ac_site_file"; then
1449 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1450 echo "$as_me: loading site script $ac_site_file" >&6;}
1451 sed 's/^/| /' "$ac_site_file" >&5
1452 . "$ac_site_file"
1454 done
1456 if test -r "$cache_file"; then
1457 # Some versions of bash will fail to source /dev/null (special
1458 # files actually), so we avoid doing that.
1459 if test -f "$cache_file"; then
1460 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1461 echo "$as_me: loading cache $cache_file" >&6;}
1462 case $cache_file in
1463 [\\/]* | ?:[\\/]* ) . $cache_file;;
1464 *) . ./$cache_file;;
1465 esac
1467 else
1468 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1469 echo "$as_me: creating cache $cache_file" >&6;}
1470 >$cache_file
1473 # Check that the precious variables saved in the cache have kept the same
1474 # value.
1475 ac_cache_corrupted=false
1476 for ac_var in `(set) 2>&1 |
1477 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1478 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1479 eval ac_new_set=\$ac_env_${ac_var}_set
1480 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1481 eval ac_new_val="\$ac_env_${ac_var}_value"
1482 case $ac_old_set,$ac_new_set in
1483 set,)
1484 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1485 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1486 ac_cache_corrupted=: ;;
1487 ,set)
1488 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1489 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1490 ac_cache_corrupted=: ;;
1491 ,);;
1493 if test "x$ac_old_val" != "x$ac_new_val"; then
1494 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1495 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1496 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1497 echo "$as_me: former value: $ac_old_val" >&2;}
1498 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1499 echo "$as_me: current value: $ac_new_val" >&2;}
1500 ac_cache_corrupted=:
1501 fi;;
1502 esac
1503 # Pass precious variables to config.status.
1504 if test "$ac_new_set" = set; then
1505 case $ac_new_val in
1506 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1507 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1508 *) ac_arg=$ac_var=$ac_new_val ;;
1509 esac
1510 case " $ac_configure_args " in
1511 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1512 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1513 esac
1515 done
1516 if $ac_cache_corrupted; then
1517 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1518 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1519 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1520 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1521 { (exit 1); exit 1; }; }
1524 ac_ext=c
1525 ac_cpp='$CPP $CPPFLAGS'
1526 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1527 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1528 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1550 ac_config_headers="$ac_config_headers src/include/config.h:src/include/config.hin"
1554 # checks for programs
1555 ac_ext=c
1556 ac_cpp='$CPP $CPPFLAGS'
1557 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1558 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1559 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1560 if test -n "$ac_tool_prefix"; then
1561 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1562 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1563 echo "$as_me:$LINENO: checking for $ac_word" >&5
1564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1565 if test "${ac_cv_prog_CC+set}" = set; then
1566 echo $ECHO_N "(cached) $ECHO_C" >&6
1567 else
1568 if test -n "$CC"; then
1569 ac_cv_prog_CC="$CC" # Let the user override the test.
1570 else
1571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1572 for as_dir in $PATH
1574 IFS=$as_save_IFS
1575 test -z "$as_dir" && as_dir=.
1576 for ac_exec_ext in '' $ac_executable_extensions; do
1577 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1578 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1579 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1580 break 2
1582 done
1583 done
1587 CC=$ac_cv_prog_CC
1588 if test -n "$CC"; then
1589 echo "$as_me:$LINENO: result: $CC" >&5
1590 echo "${ECHO_T}$CC" >&6
1591 else
1592 echo "$as_me:$LINENO: result: no" >&5
1593 echo "${ECHO_T}no" >&6
1597 if test -z "$ac_cv_prog_CC"; then
1598 ac_ct_CC=$CC
1599 # Extract the first word of "gcc", so it can be a program name with args.
1600 set dummy gcc; ac_word=$2
1601 echo "$as_me:$LINENO: checking for $ac_word" >&5
1602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1603 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1604 echo $ECHO_N "(cached) $ECHO_C" >&6
1605 else
1606 if test -n "$ac_ct_CC"; then
1607 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1608 else
1609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1610 for as_dir in $PATH
1612 IFS=$as_save_IFS
1613 test -z "$as_dir" && as_dir=.
1614 for ac_exec_ext in '' $ac_executable_extensions; do
1615 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1616 ac_cv_prog_ac_ct_CC="gcc"
1617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1618 break 2
1620 done
1621 done
1625 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1626 if test -n "$ac_ct_CC"; then
1627 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1628 echo "${ECHO_T}$ac_ct_CC" >&6
1629 else
1630 echo "$as_me:$LINENO: result: no" >&5
1631 echo "${ECHO_T}no" >&6
1634 if test "x$ac_ct_CC" = x; then
1635 CC=""
1636 else
1637 if test "$build" != "$host"; then
1638 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1639 whose name does not start with the host triplet. If you think this
1640 configuration is useful to you, please write to autoconf@gnu.org." >&5
1641 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1642 whose name does not start with the host triplet. If you think this
1643 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1645 CC=$ac_ct_CC
1647 else
1648 CC="$ac_cv_prog_CC"
1651 if test -z "$CC"; then
1652 if test -n "$ac_tool_prefix"; then
1653 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1654 set dummy ${ac_tool_prefix}cc; ac_word=$2
1655 echo "$as_me:$LINENO: checking for $ac_word" >&5
1656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1657 if test "${ac_cv_prog_CC+set}" = set; then
1658 echo $ECHO_N "(cached) $ECHO_C" >&6
1659 else
1660 if test -n "$CC"; then
1661 ac_cv_prog_CC="$CC" # Let the user override the test.
1662 else
1663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1664 for as_dir in $PATH
1666 IFS=$as_save_IFS
1667 test -z "$as_dir" && as_dir=.
1668 for ac_exec_ext in '' $ac_executable_extensions; do
1669 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1670 ac_cv_prog_CC="${ac_tool_prefix}cc"
1671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1672 break 2
1674 done
1675 done
1679 CC=$ac_cv_prog_CC
1680 if test -n "$CC"; then
1681 echo "$as_me:$LINENO: result: $CC" >&5
1682 echo "${ECHO_T}$CC" >&6
1683 else
1684 echo "$as_me:$LINENO: result: no" >&5
1685 echo "${ECHO_T}no" >&6
1689 if test -z "$ac_cv_prog_CC"; then
1690 ac_ct_CC=$CC
1691 # Extract the first word of "cc", so it can be a program name with args.
1692 set dummy cc; ac_word=$2
1693 echo "$as_me:$LINENO: checking for $ac_word" >&5
1694 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1695 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1696 echo $ECHO_N "(cached) $ECHO_C" >&6
1697 else
1698 if test -n "$ac_ct_CC"; then
1699 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1700 else
1701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1702 for as_dir in $PATH
1704 IFS=$as_save_IFS
1705 test -z "$as_dir" && as_dir=.
1706 for ac_exec_ext in '' $ac_executable_extensions; do
1707 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1708 ac_cv_prog_ac_ct_CC="cc"
1709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1710 break 2
1712 done
1713 done
1717 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1718 if test -n "$ac_ct_CC"; then
1719 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1720 echo "${ECHO_T}$ac_ct_CC" >&6
1721 else
1722 echo "$as_me:$LINENO: result: no" >&5
1723 echo "${ECHO_T}no" >&6
1726 if test "x$ac_ct_CC" = x; then
1727 CC=""
1728 else
1729 if test "$build" != "$host"; then
1730 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1731 whose name does not start with the host triplet. If you think this
1732 configuration is useful to you, please write to autoconf@gnu.org." >&5
1733 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1734 whose name does not start with the host triplet. If you think this
1735 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1737 CC=$ac_ct_CC
1739 else
1740 CC="$ac_cv_prog_CC"
1744 if test -z "$CC"; then
1745 # Extract the first word of "cc", so it can be a program name with args.
1746 set dummy cc; ac_word=$2
1747 echo "$as_me:$LINENO: checking for $ac_word" >&5
1748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1749 if test "${ac_cv_prog_CC+set}" = set; then
1750 echo $ECHO_N "(cached) $ECHO_C" >&6
1751 else
1752 if test -n "$CC"; then
1753 ac_cv_prog_CC="$CC" # Let the user override the test.
1754 else
1755 ac_prog_rejected=no
1756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1757 for as_dir in $PATH
1759 IFS=$as_save_IFS
1760 test -z "$as_dir" && as_dir=.
1761 for ac_exec_ext in '' $ac_executable_extensions; do
1762 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1763 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1764 ac_prog_rejected=yes
1765 continue
1767 ac_cv_prog_CC="cc"
1768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1769 break 2
1771 done
1772 done
1774 if test $ac_prog_rejected = yes; then
1775 # We found a bogon in the path, so make sure we never use it.
1776 set dummy $ac_cv_prog_CC
1777 shift
1778 if test $# != 0; then
1779 # We chose a different compiler from the bogus one.
1780 # However, it has the same basename, so the bogon will be chosen
1781 # first if we set CC to just the basename; use the full file name.
1782 shift
1783 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1788 CC=$ac_cv_prog_CC
1789 if test -n "$CC"; then
1790 echo "$as_me:$LINENO: result: $CC" >&5
1791 echo "${ECHO_T}$CC" >&6
1792 else
1793 echo "$as_me:$LINENO: result: no" >&5
1794 echo "${ECHO_T}no" >&6
1798 if test -z "$CC"; then
1799 if test -n "$ac_tool_prefix"; then
1800 for ac_prog in cl
1802 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1803 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1804 echo "$as_me:$LINENO: checking for $ac_word" >&5
1805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1806 if test "${ac_cv_prog_CC+set}" = set; then
1807 echo $ECHO_N "(cached) $ECHO_C" >&6
1808 else
1809 if test -n "$CC"; then
1810 ac_cv_prog_CC="$CC" # Let the user override the test.
1811 else
1812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1813 for as_dir in $PATH
1815 IFS=$as_save_IFS
1816 test -z "$as_dir" && as_dir=.
1817 for ac_exec_ext in '' $ac_executable_extensions; do
1818 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1819 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1820 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1821 break 2
1823 done
1824 done
1828 CC=$ac_cv_prog_CC
1829 if test -n "$CC"; then
1830 echo "$as_me:$LINENO: result: $CC" >&5
1831 echo "${ECHO_T}$CC" >&6
1832 else
1833 echo "$as_me:$LINENO: result: no" >&5
1834 echo "${ECHO_T}no" >&6
1837 test -n "$CC" && break
1838 done
1840 if test -z "$CC"; then
1841 ac_ct_CC=$CC
1842 for ac_prog in cl
1844 # Extract the first word of "$ac_prog", so it can be a program name with args.
1845 set dummy $ac_prog; ac_word=$2
1846 echo "$as_me:$LINENO: checking for $ac_word" >&5
1847 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1848 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1849 echo $ECHO_N "(cached) $ECHO_C" >&6
1850 else
1851 if test -n "$ac_ct_CC"; then
1852 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1853 else
1854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1855 for as_dir in $PATH
1857 IFS=$as_save_IFS
1858 test -z "$as_dir" && as_dir=.
1859 for ac_exec_ext in '' $ac_executable_extensions; do
1860 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1861 ac_cv_prog_ac_ct_CC="$ac_prog"
1862 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1863 break 2
1865 done
1866 done
1870 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1871 if test -n "$ac_ct_CC"; then
1872 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1873 echo "${ECHO_T}$ac_ct_CC" >&6
1874 else
1875 echo "$as_me:$LINENO: result: no" >&5
1876 echo "${ECHO_T}no" >&6
1879 test -n "$ac_ct_CC" && break
1880 done
1882 if test "x$ac_ct_CC" = x; then
1883 CC=""
1884 else
1885 if test "$build" != "$host"; then
1886 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1887 whose name does not start with the host triplet. If you think this
1888 configuration is useful to you, please write to autoconf@gnu.org." >&5
1889 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1890 whose name does not start with the host triplet. If you think this
1891 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1893 CC=$ac_ct_CC
1900 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1901 See \`config.log' for more details." >&5
1902 echo "$as_me: error: no acceptable C compiler found in \$PATH
1903 See \`config.log' for more details." >&2;}
1904 { (exit 1); exit 1; }; }
1906 # Provide some information about the compiler.
1907 echo "$as_me:$LINENO:" \
1908 "checking for C compiler version" >&5
1909 ac_compiler=`set X $ac_compile; echo $2`
1910 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1911 (eval $ac_compiler --version </dev/null >&5) 2>&5
1912 ac_status=$?
1913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1914 (exit $ac_status); }
1915 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1916 (eval $ac_compiler -v </dev/null >&5) 2>&5
1917 ac_status=$?
1918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1919 (exit $ac_status); }
1920 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1921 (eval $ac_compiler -V </dev/null >&5) 2>&5
1922 ac_status=$?
1923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1924 (exit $ac_status); }
1926 cat >conftest.$ac_ext <<_ACEOF
1927 /* confdefs.h. */
1928 _ACEOF
1929 cat confdefs.h >>conftest.$ac_ext
1930 cat >>conftest.$ac_ext <<_ACEOF
1931 /* end confdefs.h. */
1934 main ()
1938 return 0;
1940 _ACEOF
1941 ac_clean_files_save=$ac_clean_files
1942 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1943 # Try to create an executable without -o first, disregard a.out.
1944 # It will help us diagnose broken compilers, and finding out an intuition
1945 # of exeext.
1946 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1947 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1948 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1950 # List of possible output files, starting from the most likely.
1951 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
1952 # only as a last resort. b.out is created by i960 compilers.
1953 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
1955 # The IRIX 6 linker writes into existing files which may not be
1956 # executable, retaining their permissions. Remove them first so a
1957 # subsequent execution test works.
1958 ac_rmfiles=
1959 for ac_file in $ac_files
1961 case $ac_file in
1962 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1963 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
1964 esac
1965 done
1966 rm -f $ac_rmfiles
1968 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1969 (eval $ac_link_default) 2>&5
1970 ac_status=$?
1971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1972 (exit $ac_status); }; then
1973 # Be careful to initialize this variable, since it used to be cached.
1974 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1975 ac_cv_exeext=
1976 for ac_file in $ac_files
1978 test -f "$ac_file" || continue
1979 case $ac_file in
1980 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1982 [ab].out )
1983 # We found the default executable, but exeext='' is most
1984 # certainly right.
1985 break;;
1986 *.* )
1987 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1988 # FIXME: I believe we export ac_cv_exeext for Libtool,
1989 # but it would be cool to find out if it's true. Does anybody
1990 # maintain Libtool? --akim.
1991 export ac_cv_exeext
1992 break;;
1994 break;;
1995 esac
1996 done
1997 else
1998 echo "$as_me: failed program was:" >&5
1999 sed 's/^/| /' conftest.$ac_ext >&5
2001 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2002 See \`config.log' for more details." >&5
2003 echo "$as_me: error: C compiler cannot create executables
2004 See \`config.log' for more details." >&2;}
2005 { (exit 77); exit 77; }; }
2008 ac_exeext=$ac_cv_exeext
2009 echo "$as_me:$LINENO: result: $ac_file" >&5
2010 echo "${ECHO_T}$ac_file" >&6
2012 # Check the compiler produces executables we can run. If not, either
2013 # the compiler is broken, or we cross compile.
2014 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2015 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2016 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2017 # If not cross compiling, check that we can run a simple program.
2018 if test "$cross_compiling" != yes; then
2019 if { ac_try='./$ac_file'
2020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2021 (eval $ac_try) 2>&5
2022 ac_status=$?
2023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2024 (exit $ac_status); }; }; then
2025 cross_compiling=no
2026 else
2027 if test "$cross_compiling" = maybe; then
2028 cross_compiling=yes
2029 else
2030 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2031 If you meant to cross compile, use \`--host'.
2032 See \`config.log' for more details." >&5
2033 echo "$as_me: error: cannot run C compiled programs.
2034 If you meant to cross compile, use \`--host'.
2035 See \`config.log' for more details." >&2;}
2036 { (exit 1); exit 1; }; }
2040 echo "$as_me:$LINENO: result: yes" >&5
2041 echo "${ECHO_T}yes" >&6
2043 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2044 ac_clean_files=$ac_clean_files_save
2045 # Check the compiler produces executables we can run. If not, either
2046 # the compiler is broken, or we cross compile.
2047 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2048 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2049 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2050 echo "${ECHO_T}$cross_compiling" >&6
2052 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2053 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2055 (eval $ac_link) 2>&5
2056 ac_status=$?
2057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2058 (exit $ac_status); }; then
2059 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2060 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2061 # work properly (i.e., refer to `conftest.exe'), while it won't with
2062 # `rm'.
2063 for ac_file in conftest.exe conftest conftest.*; do
2064 test -f "$ac_file" || continue
2065 case $ac_file in
2066 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2067 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2068 export ac_cv_exeext
2069 break;;
2070 * ) break;;
2071 esac
2072 done
2073 else
2074 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2075 See \`config.log' for more details." >&5
2076 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2077 See \`config.log' for more details." >&2;}
2078 { (exit 1); exit 1; }; }
2081 rm -f conftest$ac_cv_exeext
2082 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2083 echo "${ECHO_T}$ac_cv_exeext" >&6
2085 rm -f conftest.$ac_ext
2086 EXEEXT=$ac_cv_exeext
2087 ac_exeext=$EXEEXT
2088 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2089 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2090 if test "${ac_cv_objext+set}" = set; then
2091 echo $ECHO_N "(cached) $ECHO_C" >&6
2092 else
2093 cat >conftest.$ac_ext <<_ACEOF
2094 /* confdefs.h. */
2095 _ACEOF
2096 cat confdefs.h >>conftest.$ac_ext
2097 cat >>conftest.$ac_ext <<_ACEOF
2098 /* end confdefs.h. */
2101 main ()
2105 return 0;
2107 _ACEOF
2108 rm -f conftest.o conftest.obj
2109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2110 (eval $ac_compile) 2>&5
2111 ac_status=$?
2112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2113 (exit $ac_status); }; then
2114 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2115 case $ac_file in
2116 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2117 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2118 break;;
2119 esac
2120 done
2121 else
2122 echo "$as_me: failed program was:" >&5
2123 sed 's/^/| /' conftest.$ac_ext >&5
2125 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2126 See \`config.log' for more details." >&5
2127 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2128 See \`config.log' for more details." >&2;}
2129 { (exit 1); exit 1; }; }
2132 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2134 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2135 echo "${ECHO_T}$ac_cv_objext" >&6
2136 OBJEXT=$ac_cv_objext
2137 ac_objext=$OBJEXT
2138 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2139 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2140 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2141 echo $ECHO_N "(cached) $ECHO_C" >&6
2142 else
2143 cat >conftest.$ac_ext <<_ACEOF
2144 /* confdefs.h. */
2145 _ACEOF
2146 cat confdefs.h >>conftest.$ac_ext
2147 cat >>conftest.$ac_ext <<_ACEOF
2148 /* end confdefs.h. */
2151 main ()
2153 #ifndef __GNUC__
2154 choke me
2155 #endif
2158 return 0;
2160 _ACEOF
2161 rm -f conftest.$ac_objext
2162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2163 (eval $ac_compile) 2>conftest.er1
2164 ac_status=$?
2165 grep -v '^ *+' conftest.er1 >conftest.err
2166 rm -f conftest.er1
2167 cat conftest.err >&5
2168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2169 (exit $ac_status); } &&
2170 { ac_try='test -z "$ac_c_werror_flag"
2171 || test ! -s conftest.err'
2172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2173 (eval $ac_try) 2>&5
2174 ac_status=$?
2175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2176 (exit $ac_status); }; } &&
2177 { ac_try='test -s conftest.$ac_objext'
2178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2179 (eval $ac_try) 2>&5
2180 ac_status=$?
2181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2182 (exit $ac_status); }; }; then
2183 ac_compiler_gnu=yes
2184 else
2185 echo "$as_me: failed program was:" >&5
2186 sed 's/^/| /' conftest.$ac_ext >&5
2188 ac_compiler_gnu=no
2190 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2191 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2194 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2195 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2196 GCC=`test $ac_compiler_gnu = yes && echo yes`
2197 ac_test_CFLAGS=${CFLAGS+set}
2198 ac_save_CFLAGS=$CFLAGS
2199 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2200 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2201 if test "${ac_cv_prog_cc_g+set}" = set; then
2202 echo $ECHO_N "(cached) $ECHO_C" >&6
2203 else
2204 ac_save_c_werror_flag=$ac_c_werror_flag
2205 ac_c_werror_flag=yes
2206 ac_cv_prog_cc_g=no
2207 CFLAGS="-g"
2208 cat >conftest.$ac_ext <<_ACEOF
2209 /* confdefs.h. */
2210 _ACEOF
2211 cat confdefs.h >>conftest.$ac_ext
2212 cat >>conftest.$ac_ext <<_ACEOF
2213 /* end confdefs.h. */
2216 main ()
2220 return 0;
2222 _ACEOF
2223 rm -f conftest.$ac_objext
2224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2225 (eval $ac_compile) 2>conftest.er1
2226 ac_status=$?
2227 grep -v '^ *+' conftest.er1 >conftest.err
2228 rm -f conftest.er1
2229 cat conftest.err >&5
2230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2231 (exit $ac_status); } &&
2232 { ac_try='test -z "$ac_c_werror_flag"
2233 || test ! -s conftest.err'
2234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2235 (eval $ac_try) 2>&5
2236 ac_status=$?
2237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2238 (exit $ac_status); }; } &&
2239 { ac_try='test -s conftest.$ac_objext'
2240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2241 (eval $ac_try) 2>&5
2242 ac_status=$?
2243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2244 (exit $ac_status); }; }; then
2245 ac_cv_prog_cc_g=yes
2246 else
2247 echo "$as_me: failed program was:" >&5
2248 sed 's/^/| /' conftest.$ac_ext >&5
2250 CFLAGS=""
2251 cat >conftest.$ac_ext <<_ACEOF
2252 /* confdefs.h. */
2253 _ACEOF
2254 cat confdefs.h >>conftest.$ac_ext
2255 cat >>conftest.$ac_ext <<_ACEOF
2256 /* end confdefs.h. */
2259 main ()
2263 return 0;
2265 _ACEOF
2266 rm -f conftest.$ac_objext
2267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2268 (eval $ac_compile) 2>conftest.er1
2269 ac_status=$?
2270 grep -v '^ *+' conftest.er1 >conftest.err
2271 rm -f conftest.er1
2272 cat conftest.err >&5
2273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274 (exit $ac_status); } &&
2275 { ac_try='test -z "$ac_c_werror_flag"
2276 || test ! -s conftest.err'
2277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2278 (eval $ac_try) 2>&5
2279 ac_status=$?
2280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2281 (exit $ac_status); }; } &&
2282 { ac_try='test -s conftest.$ac_objext'
2283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2284 (eval $ac_try) 2>&5
2285 ac_status=$?
2286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2287 (exit $ac_status); }; }; then
2289 else
2290 echo "$as_me: failed program was:" >&5
2291 sed 's/^/| /' conftest.$ac_ext >&5
2293 ac_c_werror_flag=$ac_save_c_werror_flag
2294 CFLAGS="-g"
2295 cat >conftest.$ac_ext <<_ACEOF
2296 /* confdefs.h. */
2297 _ACEOF
2298 cat confdefs.h >>conftest.$ac_ext
2299 cat >>conftest.$ac_ext <<_ACEOF
2300 /* end confdefs.h. */
2303 main ()
2307 return 0;
2309 _ACEOF
2310 rm -f conftest.$ac_objext
2311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2312 (eval $ac_compile) 2>conftest.er1
2313 ac_status=$?
2314 grep -v '^ *+' conftest.er1 >conftest.err
2315 rm -f conftest.er1
2316 cat conftest.err >&5
2317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2318 (exit $ac_status); } &&
2319 { ac_try='test -z "$ac_c_werror_flag"
2320 || test ! -s conftest.err'
2321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2322 (eval $ac_try) 2>&5
2323 ac_status=$?
2324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325 (exit $ac_status); }; } &&
2326 { ac_try='test -s conftest.$ac_objext'
2327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2328 (eval $ac_try) 2>&5
2329 ac_status=$?
2330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2331 (exit $ac_status); }; }; then
2332 ac_cv_prog_cc_g=yes
2333 else
2334 echo "$as_me: failed program was:" >&5
2335 sed 's/^/| /' conftest.$ac_ext >&5
2338 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2340 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2342 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2343 ac_c_werror_flag=$ac_save_c_werror_flag
2345 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2346 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2347 if test "$ac_test_CFLAGS" = set; then
2348 CFLAGS=$ac_save_CFLAGS
2349 elif test $ac_cv_prog_cc_g = yes; then
2350 if test "$GCC" = yes; then
2351 CFLAGS="-g -O2"
2352 else
2353 CFLAGS="-g"
2355 else
2356 if test "$GCC" = yes; then
2357 CFLAGS="-O2"
2358 else
2359 CFLAGS=
2362 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2363 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2364 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2365 echo $ECHO_N "(cached) $ECHO_C" >&6
2366 else
2367 ac_cv_prog_cc_stdc=no
2368 ac_save_CC=$CC
2369 cat >conftest.$ac_ext <<_ACEOF
2370 /* confdefs.h. */
2371 _ACEOF
2372 cat confdefs.h >>conftest.$ac_ext
2373 cat >>conftest.$ac_ext <<_ACEOF
2374 /* end confdefs.h. */
2375 #include <stdarg.h>
2376 #include <stdio.h>
2377 #include <sys/types.h>
2378 #include <sys/stat.h>
2379 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2380 struct buf { int x; };
2381 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2382 static char *e (p, i)
2383 char **p;
2384 int i;
2386 return p[i];
2388 static char *f (char * (*g) (char **, int), char **p, ...)
2390 char *s;
2391 va_list v;
2392 va_start (v,p);
2393 s = g (p, va_arg (v,int));
2394 va_end (v);
2395 return s;
2398 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2399 function prototypes and stuff, but not '\xHH' hex character constants.
2400 These don't provoke an error unfortunately, instead are silently treated
2401 as 'x'. The following induces an error, until -std is added to get
2402 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2403 array size at least. It's necessary to write '\x00'==0 to get something
2404 that's true only with -std. */
2405 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2407 int test (int i, double x);
2408 struct s1 {int (*f) (int a);};
2409 struct s2 {int (*f) (double a);};
2410 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2411 int argc;
2412 char **argv;
2414 main ()
2416 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2418 return 0;
2420 _ACEOF
2421 # Don't try gcc -ansi; that turns off useful extensions and
2422 # breaks some systems' header files.
2423 # AIX -qlanglvl=ansi
2424 # Ultrix, OSF/1, Tru64 -std
2425 # HP-UX 10.20 and later -Ae
2426 # HP-UX older versions -Aa -D_HPUX_SOURCE
2427 # SVR4 -Xc -D__EXTENSIONS__
2428 for ac_arg in "" -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2430 CC="$ac_save_CC $ac_arg"
2431 rm -f conftest.$ac_objext
2432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2433 (eval $ac_compile) 2>conftest.er1
2434 ac_status=$?
2435 grep -v '^ *+' conftest.er1 >conftest.err
2436 rm -f conftest.er1
2437 cat conftest.err >&5
2438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2439 (exit $ac_status); } &&
2440 { ac_try='test -z "$ac_c_werror_flag"
2441 || test ! -s conftest.err'
2442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2443 (eval $ac_try) 2>&5
2444 ac_status=$?
2445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2446 (exit $ac_status); }; } &&
2447 { ac_try='test -s conftest.$ac_objext'
2448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2449 (eval $ac_try) 2>&5
2450 ac_status=$?
2451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2452 (exit $ac_status); }; }; then
2453 ac_cv_prog_cc_stdc=$ac_arg
2454 break
2455 else
2456 echo "$as_me: failed program was:" >&5
2457 sed 's/^/| /' conftest.$ac_ext >&5
2460 rm -f conftest.err conftest.$ac_objext
2461 done
2462 rm -f conftest.$ac_ext conftest.$ac_objext
2463 CC=$ac_save_CC
2467 case "x$ac_cv_prog_cc_stdc" in
2468 x|xno)
2469 echo "$as_me:$LINENO: result: none needed" >&5
2470 echo "${ECHO_T}none needed" >&6 ;;
2472 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2473 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2474 CC="$CC $ac_cv_prog_cc_stdc" ;;
2475 esac
2477 # Some people use a C++ compiler to compile C. Since we use `exit',
2478 # in C++ we need to declare it. In case someone uses the same compiler
2479 # for both compiling C and C++ we need to have the C++ compiler decide
2480 # the declaration of exit, since it's the most demanding environment.
2481 cat >conftest.$ac_ext <<_ACEOF
2482 #ifndef __cplusplus
2483 choke me
2484 #endif
2485 _ACEOF
2486 rm -f conftest.$ac_objext
2487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2488 (eval $ac_compile) 2>conftest.er1
2489 ac_status=$?
2490 grep -v '^ *+' conftest.er1 >conftest.err
2491 rm -f conftest.er1
2492 cat conftest.err >&5
2493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494 (exit $ac_status); } &&
2495 { ac_try='test -z "$ac_c_werror_flag"
2496 || test ! -s conftest.err'
2497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2498 (eval $ac_try) 2>&5
2499 ac_status=$?
2500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2501 (exit $ac_status); }; } &&
2502 { ac_try='test -s conftest.$ac_objext'
2503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2504 (eval $ac_try) 2>&5
2505 ac_status=$?
2506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2507 (exit $ac_status); }; }; then
2508 for ac_declaration in \
2509 '' \
2510 'extern "C" void std::exit (int) throw (); using std::exit;' \
2511 'extern "C" void std::exit (int); using std::exit;' \
2512 'extern "C" void exit (int) throw ();' \
2513 'extern "C" void exit (int);' \
2514 'void exit (int);'
2516 cat >conftest.$ac_ext <<_ACEOF
2517 /* confdefs.h. */
2518 _ACEOF
2519 cat confdefs.h >>conftest.$ac_ext
2520 cat >>conftest.$ac_ext <<_ACEOF
2521 /* end confdefs.h. */
2522 $ac_declaration
2523 #include <stdlib.h>
2525 main ()
2527 exit (42);
2529 return 0;
2531 _ACEOF
2532 rm -f conftest.$ac_objext
2533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2534 (eval $ac_compile) 2>conftest.er1
2535 ac_status=$?
2536 grep -v '^ *+' conftest.er1 >conftest.err
2537 rm -f conftest.er1
2538 cat conftest.err >&5
2539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2540 (exit $ac_status); } &&
2541 { ac_try='test -z "$ac_c_werror_flag"
2542 || test ! -s conftest.err'
2543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2544 (eval $ac_try) 2>&5
2545 ac_status=$?
2546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2547 (exit $ac_status); }; } &&
2548 { ac_try='test -s conftest.$ac_objext'
2549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2550 (eval $ac_try) 2>&5
2551 ac_status=$?
2552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553 (exit $ac_status); }; }; then
2555 else
2556 echo "$as_me: failed program was:" >&5
2557 sed 's/^/| /' conftest.$ac_ext >&5
2559 continue
2561 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2562 cat >conftest.$ac_ext <<_ACEOF
2563 /* confdefs.h. */
2564 _ACEOF
2565 cat confdefs.h >>conftest.$ac_ext
2566 cat >>conftest.$ac_ext <<_ACEOF
2567 /* end confdefs.h. */
2568 $ac_declaration
2570 main ()
2572 exit (42);
2574 return 0;
2576 _ACEOF
2577 rm -f conftest.$ac_objext
2578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2579 (eval $ac_compile) 2>conftest.er1
2580 ac_status=$?
2581 grep -v '^ *+' conftest.er1 >conftest.err
2582 rm -f conftest.er1
2583 cat conftest.err >&5
2584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585 (exit $ac_status); } &&
2586 { ac_try='test -z "$ac_c_werror_flag"
2587 || test ! -s conftest.err'
2588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2589 (eval $ac_try) 2>&5
2590 ac_status=$?
2591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592 (exit $ac_status); }; } &&
2593 { ac_try='test -s conftest.$ac_objext'
2594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2595 (eval $ac_try) 2>&5
2596 ac_status=$?
2597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2598 (exit $ac_status); }; }; then
2599 break
2600 else
2601 echo "$as_me: failed program was:" >&5
2602 sed 's/^/| /' conftest.$ac_ext >&5
2605 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2606 done
2607 rm -f conftest*
2608 if test -n "$ac_declaration"; then
2609 echo '#ifdef __cplusplus' >>confdefs.h
2610 echo $ac_declaration >>confdefs.h
2611 echo '#endif' >>confdefs.h
2614 else
2615 echo "$as_me: failed program was:" >&5
2616 sed 's/^/| /' conftest.$ac_ext >&5
2619 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2620 ac_ext=c
2621 ac_cpp='$CPP $CPPFLAGS'
2622 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2623 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2624 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2626 ac_ext=cc
2627 ac_cpp='$CXXCPP $CPPFLAGS'
2628 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2629 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2630 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2631 if test -n "$ac_tool_prefix"; then
2632 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2634 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2635 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2636 echo "$as_me:$LINENO: checking for $ac_word" >&5
2637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2638 if test "${ac_cv_prog_CXX+set}" = set; then
2639 echo $ECHO_N "(cached) $ECHO_C" >&6
2640 else
2641 if test -n "$CXX"; then
2642 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2643 else
2644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2645 for as_dir in $PATH
2647 IFS=$as_save_IFS
2648 test -z "$as_dir" && as_dir=.
2649 for ac_exec_ext in '' $ac_executable_extensions; do
2650 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2651 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2652 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2653 break 2
2655 done
2656 done
2660 CXX=$ac_cv_prog_CXX
2661 if test -n "$CXX"; then
2662 echo "$as_me:$LINENO: result: $CXX" >&5
2663 echo "${ECHO_T}$CXX" >&6
2664 else
2665 echo "$as_me:$LINENO: result: no" >&5
2666 echo "${ECHO_T}no" >&6
2669 test -n "$CXX" && break
2670 done
2672 if test -z "$CXX"; then
2673 ac_ct_CXX=$CXX
2674 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2676 # Extract the first word of "$ac_prog", so it can be a program name with args.
2677 set dummy $ac_prog; ac_word=$2
2678 echo "$as_me:$LINENO: checking for $ac_word" >&5
2679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2680 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2681 echo $ECHO_N "(cached) $ECHO_C" >&6
2682 else
2683 if test -n "$ac_ct_CXX"; then
2684 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2685 else
2686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2687 for as_dir in $PATH
2689 IFS=$as_save_IFS
2690 test -z "$as_dir" && as_dir=.
2691 for ac_exec_ext in '' $ac_executable_extensions; do
2692 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2693 ac_cv_prog_ac_ct_CXX="$ac_prog"
2694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2695 break 2
2697 done
2698 done
2702 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2703 if test -n "$ac_ct_CXX"; then
2704 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2705 echo "${ECHO_T}$ac_ct_CXX" >&6
2706 else
2707 echo "$as_me:$LINENO: result: no" >&5
2708 echo "${ECHO_T}no" >&6
2711 test -n "$ac_ct_CXX" && break
2712 done
2714 if test "x$ac_ct_CXX" = x; then
2715 CXX="g++"
2716 else
2717 if test "$build" != "$host"; then
2718 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2719 whose name does not start with the host triplet. If you think this
2720 configuration is useful to you, please write to autoconf@gnu.org." >&5
2721 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2722 whose name does not start with the host triplet. If you think this
2723 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2725 CXX=$ac_ct_CXX
2730 # Provide some information about the compiler.
2731 echo "$as_me:$LINENO:" \
2732 "checking for C++ compiler version" >&5
2733 ac_compiler=`set X $ac_compile; echo $2`
2734 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2735 (eval $ac_compiler --version </dev/null >&5) 2>&5
2736 ac_status=$?
2737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2738 (exit $ac_status); }
2739 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2740 (eval $ac_compiler -v </dev/null >&5) 2>&5
2741 ac_status=$?
2742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2743 (exit $ac_status); }
2744 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2745 (eval $ac_compiler -V </dev/null >&5) 2>&5
2746 ac_status=$?
2747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748 (exit $ac_status); }
2750 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2751 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2752 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2753 echo $ECHO_N "(cached) $ECHO_C" >&6
2754 else
2755 cat >conftest.$ac_ext <<_ACEOF
2756 /* confdefs.h. */
2757 _ACEOF
2758 cat confdefs.h >>conftest.$ac_ext
2759 cat >>conftest.$ac_ext <<_ACEOF
2760 /* end confdefs.h. */
2763 main ()
2765 #ifndef __GNUC__
2766 choke me
2767 #endif
2770 return 0;
2772 _ACEOF
2773 rm -f conftest.$ac_objext
2774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2775 (eval $ac_compile) 2>conftest.er1
2776 ac_status=$?
2777 grep -v '^ *+' conftest.er1 >conftest.err
2778 rm -f conftest.er1
2779 cat conftest.err >&5
2780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2781 (exit $ac_status); } &&
2782 { ac_try='test -z "$ac_cxx_werror_flag"
2783 || test ! -s conftest.err'
2784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2785 (eval $ac_try) 2>&5
2786 ac_status=$?
2787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2788 (exit $ac_status); }; } &&
2789 { ac_try='test -s conftest.$ac_objext'
2790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2791 (eval $ac_try) 2>&5
2792 ac_status=$?
2793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2794 (exit $ac_status); }; }; then
2795 ac_compiler_gnu=yes
2796 else
2797 echo "$as_me: failed program was:" >&5
2798 sed 's/^/| /' conftest.$ac_ext >&5
2800 ac_compiler_gnu=no
2802 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2803 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2806 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2807 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2808 GXX=`test $ac_compiler_gnu = yes && echo yes`
2809 ac_test_CXXFLAGS=${CXXFLAGS+set}
2810 ac_save_CXXFLAGS=$CXXFLAGS
2811 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2812 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2813 if test "${ac_cv_prog_cxx_g+set}" = set; then
2814 echo $ECHO_N "(cached) $ECHO_C" >&6
2815 else
2816 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2817 ac_cxx_werror_flag=yes
2818 ac_cv_prog_cxx_g=no
2819 CXXFLAGS="-g"
2820 cat >conftest.$ac_ext <<_ACEOF
2821 /* confdefs.h. */
2822 _ACEOF
2823 cat confdefs.h >>conftest.$ac_ext
2824 cat >>conftest.$ac_ext <<_ACEOF
2825 /* end confdefs.h. */
2828 main ()
2832 return 0;
2834 _ACEOF
2835 rm -f conftest.$ac_objext
2836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2837 (eval $ac_compile) 2>conftest.er1
2838 ac_status=$?
2839 grep -v '^ *+' conftest.er1 >conftest.err
2840 rm -f conftest.er1
2841 cat conftest.err >&5
2842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843 (exit $ac_status); } &&
2844 { ac_try='test -z "$ac_cxx_werror_flag"
2845 || test ! -s conftest.err'
2846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2847 (eval $ac_try) 2>&5
2848 ac_status=$?
2849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850 (exit $ac_status); }; } &&
2851 { ac_try='test -s conftest.$ac_objext'
2852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2853 (eval $ac_try) 2>&5
2854 ac_status=$?
2855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856 (exit $ac_status); }; }; then
2857 ac_cv_prog_cxx_g=yes
2858 else
2859 echo "$as_me: failed program was:" >&5
2860 sed 's/^/| /' conftest.$ac_ext >&5
2862 CXXFLAGS=""
2863 cat >conftest.$ac_ext <<_ACEOF
2864 /* confdefs.h. */
2865 _ACEOF
2866 cat confdefs.h >>conftest.$ac_ext
2867 cat >>conftest.$ac_ext <<_ACEOF
2868 /* end confdefs.h. */
2871 main ()
2875 return 0;
2877 _ACEOF
2878 rm -f conftest.$ac_objext
2879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2880 (eval $ac_compile) 2>conftest.er1
2881 ac_status=$?
2882 grep -v '^ *+' conftest.er1 >conftest.err
2883 rm -f conftest.er1
2884 cat conftest.err >&5
2885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886 (exit $ac_status); } &&
2887 { ac_try='test -z "$ac_cxx_werror_flag"
2888 || test ! -s conftest.err'
2889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2890 (eval $ac_try) 2>&5
2891 ac_status=$?
2892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893 (exit $ac_status); }; } &&
2894 { ac_try='test -s conftest.$ac_objext'
2895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2896 (eval $ac_try) 2>&5
2897 ac_status=$?
2898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899 (exit $ac_status); }; }; then
2901 else
2902 echo "$as_me: failed program was:" >&5
2903 sed 's/^/| /' conftest.$ac_ext >&5
2905 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2906 CXXFLAGS="-g"
2907 cat >conftest.$ac_ext <<_ACEOF
2908 /* confdefs.h. */
2909 _ACEOF
2910 cat confdefs.h >>conftest.$ac_ext
2911 cat >>conftest.$ac_ext <<_ACEOF
2912 /* end confdefs.h. */
2915 main ()
2919 return 0;
2921 _ACEOF
2922 rm -f conftest.$ac_objext
2923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2924 (eval $ac_compile) 2>conftest.er1
2925 ac_status=$?
2926 grep -v '^ *+' conftest.er1 >conftest.err
2927 rm -f conftest.er1
2928 cat conftest.err >&5
2929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930 (exit $ac_status); } &&
2931 { ac_try='test -z "$ac_cxx_werror_flag"
2932 || test ! -s conftest.err'
2933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2934 (eval $ac_try) 2>&5
2935 ac_status=$?
2936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2937 (exit $ac_status); }; } &&
2938 { ac_try='test -s conftest.$ac_objext'
2939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2940 (eval $ac_try) 2>&5
2941 ac_status=$?
2942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2943 (exit $ac_status); }; }; then
2944 ac_cv_prog_cxx_g=yes
2945 else
2946 echo "$as_me: failed program was:" >&5
2947 sed 's/^/| /' conftest.$ac_ext >&5
2950 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2952 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2954 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2955 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2957 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2958 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2959 if test "$ac_test_CXXFLAGS" = set; then
2960 CXXFLAGS=$ac_save_CXXFLAGS
2961 elif test $ac_cv_prog_cxx_g = yes; then
2962 if test "$GXX" = yes; then
2963 CXXFLAGS="-g -O2"
2964 else
2965 CXXFLAGS="-g"
2967 else
2968 if test "$GXX" = yes; then
2969 CXXFLAGS="-O2"
2970 else
2971 CXXFLAGS=
2974 for ac_declaration in \
2975 '' \
2976 'extern "C" void std::exit (int) throw (); using std::exit;' \
2977 'extern "C" void std::exit (int); using std::exit;' \
2978 'extern "C" void exit (int) throw ();' \
2979 'extern "C" void exit (int);' \
2980 'void exit (int);'
2982 cat >conftest.$ac_ext <<_ACEOF
2983 /* confdefs.h. */
2984 _ACEOF
2985 cat confdefs.h >>conftest.$ac_ext
2986 cat >>conftest.$ac_ext <<_ACEOF
2987 /* end confdefs.h. */
2988 $ac_declaration
2989 #include <stdlib.h>
2991 main ()
2993 exit (42);
2995 return 0;
2997 _ACEOF
2998 rm -f conftest.$ac_objext
2999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3000 (eval $ac_compile) 2>conftest.er1
3001 ac_status=$?
3002 grep -v '^ *+' conftest.er1 >conftest.err
3003 rm -f conftest.er1
3004 cat conftest.err >&5
3005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3006 (exit $ac_status); } &&
3007 { ac_try='test -z "$ac_cxx_werror_flag"
3008 || test ! -s conftest.err'
3009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3010 (eval $ac_try) 2>&5
3011 ac_status=$?
3012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013 (exit $ac_status); }; } &&
3014 { ac_try='test -s conftest.$ac_objext'
3015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3016 (eval $ac_try) 2>&5
3017 ac_status=$?
3018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3019 (exit $ac_status); }; }; then
3021 else
3022 echo "$as_me: failed program was:" >&5
3023 sed 's/^/| /' conftest.$ac_ext >&5
3025 continue
3027 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3028 cat >conftest.$ac_ext <<_ACEOF
3029 /* confdefs.h. */
3030 _ACEOF
3031 cat confdefs.h >>conftest.$ac_ext
3032 cat >>conftest.$ac_ext <<_ACEOF
3033 /* end confdefs.h. */
3034 $ac_declaration
3036 main ()
3038 exit (42);
3040 return 0;
3042 _ACEOF
3043 rm -f conftest.$ac_objext
3044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3045 (eval $ac_compile) 2>conftest.er1
3046 ac_status=$?
3047 grep -v '^ *+' conftest.er1 >conftest.err
3048 rm -f conftest.er1
3049 cat conftest.err >&5
3050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051 (exit $ac_status); } &&
3052 { ac_try='test -z "$ac_cxx_werror_flag"
3053 || test ! -s conftest.err'
3054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3055 (eval $ac_try) 2>&5
3056 ac_status=$?
3057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058 (exit $ac_status); }; } &&
3059 { ac_try='test -s conftest.$ac_objext'
3060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3061 (eval $ac_try) 2>&5
3062 ac_status=$?
3063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3064 (exit $ac_status); }; }; then
3065 break
3066 else
3067 echo "$as_me: failed program was:" >&5
3068 sed 's/^/| /' conftest.$ac_ext >&5
3071 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3072 done
3073 rm -f conftest*
3074 if test -n "$ac_declaration"; then
3075 echo '#ifdef __cplusplus' >>confdefs.h
3076 echo $ac_declaration >>confdefs.h
3077 echo '#endif' >>confdefs.h
3080 ac_ext=c
3081 ac_cpp='$CPP $CPPFLAGS'
3082 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3083 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3084 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3088 ac_ext=cc
3089 ac_cpp='$CXXCPP $CPPFLAGS'
3090 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3091 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3092 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3094 if test "$cross_compiling" = no; then
3095 echo "$as_me:$LINENO: checking that C++ compiler can compile simple program" >&5
3096 echo $ECHO_N "checking that C++ compiler can compile simple program... $ECHO_C" >&6
3098 if test "$cross_compiling" = yes; then
3100 else
3101 cat >conftest.$ac_ext <<_ACEOF
3103 /* confdefs.h. */
3104 _ACEOF
3105 cat confdefs.h >>conftest.$ac_ext
3106 cat >>conftest.$ac_ext <<_ACEOF
3107 /* end confdefs.h. */
3110 int main() {
3111 return 0;
3116 _ACEOF
3117 rm -f conftest$ac_exeext
3118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3119 (eval $ac_link) 2>&5
3120 ac_status=$?
3121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3122 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3124 (eval $ac_try) 2>&5
3125 ac_status=$?
3126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3127 (exit $ac_status); }; }; then
3128 echo "$as_me:$LINENO: result: yes" >&5
3129 echo "${ECHO_T}yes" >&6
3130 else
3131 echo "$as_me: program exited with status $ac_status" >&5
3132 echo "$as_me: failed program was:" >&5
3133 sed 's/^/| /' conftest.$ac_ext >&5
3135 ( exit $ac_status )
3136 echo "$as_me:$LINENO: result: no" >&5
3137 echo "${ECHO_T}no" >&6
3138 { { echo "$as_me:$LINENO: error: a working C++ compiler is required" >&5
3139 echo "$as_me: error: a working C++ compiler is required" >&2;}
3140 { (exit 1); exit 1; }; }
3142 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3145 if test "$cross_compiling" = no; then
3146 echo "$as_me:$LINENO: checking that C++ static constructors and destructors are called" >&5
3147 echo $ECHO_N "checking that C++ static constructors and destructors are called... $ECHO_C" >&6
3149 if test "$cross_compiling" = yes; then
3151 else
3152 cat >conftest.$ac_ext <<_ACEOF
3154 /* confdefs.h. */
3155 _ACEOF
3156 cat confdefs.h >>conftest.$ac_ext
3157 cat >>conftest.$ac_ext <<_ACEOF
3158 /* end confdefs.h. */
3161 extern "C" {
3162 void _exit(int);
3165 int i;
3166 struct A {
3167 char dummy;
3168 A() { i = 1; }
3169 ~A() { if (i == 1) _exit(0); }
3172 A a;
3174 int main()
3176 return 1;
3181 _ACEOF
3182 rm -f conftest$ac_exeext
3183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3184 (eval $ac_link) 2>&5
3185 ac_status=$?
3186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3189 (eval $ac_try) 2>&5
3190 ac_status=$?
3191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3192 (exit $ac_status); }; }; then
3193 echo "$as_me:$LINENO: result: yes" >&5
3194 echo "${ECHO_T}yes" >&6
3195 else
3196 echo "$as_me: program exited with status $ac_status" >&5
3197 echo "$as_me: failed program was:" >&5
3198 sed 's/^/| /' conftest.$ac_ext >&5
3200 ( exit $ac_status )
3201 echo "$as_me:$LINENO: result: no" >&5
3202 echo "${ECHO_T}no" >&6
3203 { { echo "$as_me:$LINENO: error: a working C++ compiler is required" >&5
3204 echo "$as_me: error: a working C++ compiler is required" >&2;}
3205 { (exit 1); exit 1; }; }
3207 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3210 echo "$as_me:$LINENO: checking that header files support C++" >&5
3211 echo $ECHO_N "checking that header files support C++... $ECHO_C" >&6
3212 cat >conftest.$ac_ext <<_ACEOF
3214 /* confdefs.h. */
3215 _ACEOF
3216 cat confdefs.h >>conftest.$ac_ext
3217 cat >>conftest.$ac_ext <<_ACEOF
3218 /* end confdefs.h. */
3221 #include <stdio.h>
3225 main ()
3229 fopen(0, 0);
3233 return 0;
3236 _ACEOF
3237 rm -f conftest.$ac_objext conftest$ac_exeext
3238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3239 (eval $ac_link) 2>conftest.er1
3240 ac_status=$?
3241 grep -v '^ *+' conftest.er1 >conftest.err
3242 rm -f conftest.er1
3243 cat conftest.err >&5
3244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3245 (exit $ac_status); } &&
3246 { ac_try='test -z "$ac_cxx_werror_flag"
3247 || test ! -s conftest.err'
3248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3249 (eval $ac_try) 2>&5
3250 ac_status=$?
3251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3252 (exit $ac_status); }; } &&
3253 { ac_try='test -s conftest$ac_exeext'
3254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3255 (eval $ac_try) 2>&5
3256 ac_status=$?
3257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3258 (exit $ac_status); }; }; then
3259 echo "$as_me:$LINENO: result: yes" >&5
3260 echo "${ECHO_T}yes" >&6
3261 else
3262 echo "$as_me: failed program was:" >&5
3263 sed 's/^/| /' conftest.$ac_ext >&5
3265 echo "$as_me:$LINENO: result: no" >&5
3266 echo "${ECHO_T}no" >&6
3267 { { echo "$as_me:$LINENO: error: header files do not support C++
3268 (if you are using a version of gcc/g++ earlier than 2.5,
3269 you should install libg++)" >&5
3270 echo "$as_me: error: header files do not support C++
3271 (if you are using a version of gcc/g++ earlier than 2.5,
3272 you should install libg++)" >&2;}
3273 { (exit 1); exit 1; }; }
3275 rm -f conftest.err conftest.$ac_objext \
3276 conftest$ac_exeext conftest.$ac_ext
3277 ac_ext=c
3278 ac_cpp='$CPP $CPPFLAGS'
3279 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3280 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3281 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3284 echo "$as_me:$LINENO: checking whether character set is EBCDIC" >&5
3285 echo $ECHO_N "checking whether character set is EBCDIC... $ECHO_C" >&6
3286 cat >conftest.$ac_ext <<_ACEOF
3288 /* confdefs.h. */
3289 _ACEOF
3290 cat confdefs.h >>conftest.$ac_ext
3291 cat >>conftest.$ac_ext <<_ACEOF
3292 /* end confdefs.h. */
3295 /* Treat any failure as ASCII for compatibility with existing art.
3296 Use compile-time rather than run-time tests for cross-compiler
3297 tolerance. */
3298 #if '0' != 240
3299 make an error "Character set is not EBCDIC"
3300 #endif
3304 main ()
3308 return 0;
3311 _ACEOF
3312 rm -f conftest.$ac_objext
3313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3314 (eval $ac_compile) 2>conftest.er1
3315 ac_status=$?
3316 grep -v '^ *+' conftest.er1 >conftest.err
3317 rm -f conftest.er1
3318 cat conftest.err >&5
3319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320 (exit $ac_status); } &&
3321 { ac_try='test -z "$ac_c_werror_flag"
3322 || test ! -s conftest.err'
3323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3324 (eval $ac_try) 2>&5
3325 ac_status=$?
3326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3327 (exit $ac_status); }; } &&
3328 { ac_try='test -s conftest.$ac_objext'
3329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3330 (eval $ac_try) 2>&5
3331 ac_status=$?
3332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3333 (exit $ac_status); }; }; then
3334 groff_cv_ebcdic="yes"
3335 TTYDEVDIRS="font/devcp1047"
3336 echo "$as_me:$LINENO: result: yes" >&5
3337 echo "${ECHO_T}yes" >&6
3339 cat >>confdefs.h <<\_ACEOF
3340 #define IS_EBCDIC_HOST 1
3341 _ACEOF
3343 else
3344 echo "$as_me: failed program was:" >&5
3345 sed 's/^/| /' conftest.$ac_ext >&5
3347 groff_cv_ebcdic="no"
3348 TTYDEVDIRS="font/devascii font/devlatin1"
3349 OTHERDEVDIRS="font/devlj4 font/devlbp"
3350 echo "$as_me:$LINENO: result: no" >&5
3351 echo "${ECHO_T}no" >&6
3353 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3356 if test "$groff_cv_ebcdic" = "yes"; then
3357 echo "$as_me:$LINENO: checking for OS/390 Unix" >&5
3358 echo $ECHO_N "checking for OS/390 Unix... $ECHO_C" >&6
3359 case `uname` in
3360 OS/390)
3361 CFLAGS="$CFLAGS -D_ALL_SOURCE"
3362 echo "$as_me:$LINENO: result: yes" >&5
3363 echo "${ECHO_T}yes" >&6 ;;
3365 echo "$as_me:$LINENO: result: no" >&5
3366 echo "${ECHO_T}no" >&6 ;;
3367 esac
3369 ac_ext=c
3370 ac_cpp='$CPP $CPPFLAGS'
3371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3372 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3374 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3375 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3376 # On Suns, sometimes $CPP names a directory.
3377 if test -n "$CPP" && test -d "$CPP"; then
3378 CPP=
3380 if test -z "$CPP"; then
3381 if test "${ac_cv_prog_CPP+set}" = set; then
3382 echo $ECHO_N "(cached) $ECHO_C" >&6
3383 else
3384 # Double quotes because CPP needs to be expanded
3385 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3387 ac_preproc_ok=false
3388 for ac_c_preproc_warn_flag in '' yes
3390 # Use a header file that comes with gcc, so configuring glibc
3391 # with a fresh cross-compiler works.
3392 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3393 # <limits.h> exists even on freestanding compilers.
3394 # On the NeXT, cc -E runs the code through the compiler's parser,
3395 # not just through cpp. "Syntax error" is here to catch this case.
3396 cat >conftest.$ac_ext <<_ACEOF
3397 /* confdefs.h. */
3398 _ACEOF
3399 cat confdefs.h >>conftest.$ac_ext
3400 cat >>conftest.$ac_ext <<_ACEOF
3401 /* end confdefs.h. */
3402 #ifdef __STDC__
3403 # include <limits.h>
3404 #else
3405 # include <assert.h>
3406 #endif
3407 Syntax error
3408 _ACEOF
3409 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3410 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3411 ac_status=$?
3412 grep -v '^ *+' conftest.er1 >conftest.err
3413 rm -f conftest.er1
3414 cat conftest.err >&5
3415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3416 (exit $ac_status); } >/dev/null; then
3417 if test -s conftest.err; then
3418 ac_cpp_err=$ac_c_preproc_warn_flag
3419 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3420 else
3421 ac_cpp_err=
3423 else
3424 ac_cpp_err=yes
3426 if test -z "$ac_cpp_err"; then
3428 else
3429 echo "$as_me: failed program was:" >&5
3430 sed 's/^/| /' conftest.$ac_ext >&5
3432 # Broken: fails on valid input.
3433 continue
3435 rm -f conftest.err conftest.$ac_ext
3437 # OK, works on sane cases. Now check whether non-existent headers
3438 # can be detected and how.
3439 cat >conftest.$ac_ext <<_ACEOF
3440 /* confdefs.h. */
3441 _ACEOF
3442 cat confdefs.h >>conftest.$ac_ext
3443 cat >>conftest.$ac_ext <<_ACEOF
3444 /* end confdefs.h. */
3445 #include <ac_nonexistent.h>
3446 _ACEOF
3447 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3448 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3449 ac_status=$?
3450 grep -v '^ *+' conftest.er1 >conftest.err
3451 rm -f conftest.er1
3452 cat conftest.err >&5
3453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454 (exit $ac_status); } >/dev/null; then
3455 if test -s conftest.err; then
3456 ac_cpp_err=$ac_c_preproc_warn_flag
3457 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3458 else
3459 ac_cpp_err=
3461 else
3462 ac_cpp_err=yes
3464 if test -z "$ac_cpp_err"; then
3465 # Broken: success on invalid input.
3466 continue
3467 else
3468 echo "$as_me: failed program was:" >&5
3469 sed 's/^/| /' conftest.$ac_ext >&5
3471 # Passes both tests.
3472 ac_preproc_ok=:
3473 break
3475 rm -f conftest.err conftest.$ac_ext
3477 done
3478 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3479 rm -f conftest.err conftest.$ac_ext
3480 if $ac_preproc_ok; then
3481 break
3484 done
3485 ac_cv_prog_CPP=$CPP
3488 CPP=$ac_cv_prog_CPP
3489 else
3490 ac_cv_prog_CPP=$CPP
3492 echo "$as_me:$LINENO: result: $CPP" >&5
3493 echo "${ECHO_T}$CPP" >&6
3494 ac_preproc_ok=false
3495 for ac_c_preproc_warn_flag in '' yes
3497 # Use a header file that comes with gcc, so configuring glibc
3498 # with a fresh cross-compiler works.
3499 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3500 # <limits.h> exists even on freestanding compilers.
3501 # On the NeXT, cc -E runs the code through the compiler's parser,
3502 # not just through cpp. "Syntax error" is here to catch this case.
3503 cat >conftest.$ac_ext <<_ACEOF
3504 /* confdefs.h. */
3505 _ACEOF
3506 cat confdefs.h >>conftest.$ac_ext
3507 cat >>conftest.$ac_ext <<_ACEOF
3508 /* end confdefs.h. */
3509 #ifdef __STDC__
3510 # include <limits.h>
3511 #else
3512 # include <assert.h>
3513 #endif
3514 Syntax error
3515 _ACEOF
3516 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3517 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3518 ac_status=$?
3519 grep -v '^ *+' conftest.er1 >conftest.err
3520 rm -f conftest.er1
3521 cat conftest.err >&5
3522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523 (exit $ac_status); } >/dev/null; then
3524 if test -s conftest.err; then
3525 ac_cpp_err=$ac_c_preproc_warn_flag
3526 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3527 else
3528 ac_cpp_err=
3530 else
3531 ac_cpp_err=yes
3533 if test -z "$ac_cpp_err"; then
3535 else
3536 echo "$as_me: failed program was:" >&5
3537 sed 's/^/| /' conftest.$ac_ext >&5
3539 # Broken: fails on valid input.
3540 continue
3542 rm -f conftest.err conftest.$ac_ext
3544 # OK, works on sane cases. Now check whether non-existent headers
3545 # can be detected and how.
3546 cat >conftest.$ac_ext <<_ACEOF
3547 /* confdefs.h. */
3548 _ACEOF
3549 cat confdefs.h >>conftest.$ac_ext
3550 cat >>conftest.$ac_ext <<_ACEOF
3551 /* end confdefs.h. */
3552 #include <ac_nonexistent.h>
3553 _ACEOF
3554 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3555 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3556 ac_status=$?
3557 grep -v '^ *+' conftest.er1 >conftest.err
3558 rm -f conftest.er1
3559 cat conftest.err >&5
3560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3561 (exit $ac_status); } >/dev/null; then
3562 if test -s conftest.err; then
3563 ac_cpp_err=$ac_c_preproc_warn_flag
3564 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3565 else
3566 ac_cpp_err=
3568 else
3569 ac_cpp_err=yes
3571 if test -z "$ac_cpp_err"; then
3572 # Broken: success on invalid input.
3573 continue
3574 else
3575 echo "$as_me: failed program was:" >&5
3576 sed 's/^/| /' conftest.$ac_ext >&5
3578 # Passes both tests.
3579 ac_preproc_ok=:
3580 break
3582 rm -f conftest.err conftest.$ac_ext
3584 done
3585 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3586 rm -f conftest.err conftest.$ac_ext
3587 if $ac_preproc_ok; then
3589 else
3590 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3591 See \`config.log' for more details." >&5
3592 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3593 See \`config.log' for more details." >&2;}
3594 { (exit 1); exit 1; }; }
3597 ac_ext=c
3598 ac_cpp='$CPP $CPPFLAGS'
3599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3604 echo "$as_me:$LINENO: checking for X" >&5
3605 echo $ECHO_N "checking for X... $ECHO_C" >&6
3608 # Check whether --with-x or --without-x was given.
3609 if test "${with_x+set}" = set; then
3610 withval="$with_x"
3613 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3614 if test "x$with_x" = xno; then
3615 # The user explicitly disabled X.
3616 have_x=disabled
3617 else
3618 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
3619 # Both variables are already set.
3620 have_x=yes
3621 else
3622 if test "${ac_cv_have_x+set}" = set; then
3623 echo $ECHO_N "(cached) $ECHO_C" >&6
3624 else
3625 # One or both of the vars are not set, and there is no cached value.
3626 ac_x_includes=no ac_x_libraries=no
3627 rm -f -r conftest.dir
3628 if mkdir conftest.dir; then
3629 cd conftest.dir
3630 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
3631 cat >Imakefile <<'_ACEOF'
3632 acfindx:
3633 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
3634 _ACEOF
3635 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
3636 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3637 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
3638 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3639 for ac_extension in a so sl; do
3640 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
3641 test -f $ac_im_libdir/libX11.$ac_extension; then
3642 ac_im_usrlibdir=$ac_im_libdir; break
3644 done
3645 # Screen out bogus values from the imake configuration. They are
3646 # bogus both because they are the default anyway, and because
3647 # using them would break gcc on systems where it needs fixed includes.
3648 case $ac_im_incroot in
3649 /usr/include) ;;
3650 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
3651 esac
3652 case $ac_im_usrlibdir in
3653 /usr/lib | /lib) ;;
3654 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
3655 esac
3657 cd ..
3658 rm -f -r conftest.dir
3661 # Standard set of common directories for X headers.
3662 # Check X11 before X11Rn because it is often a symlink to the current release.
3663 ac_x_header_dirs='
3664 /usr/X11/include
3665 /usr/X11R6/include
3666 /usr/X11R5/include
3667 /usr/X11R4/include
3669 /usr/include/X11
3670 /usr/include/X11R6
3671 /usr/include/X11R5
3672 /usr/include/X11R4
3674 /usr/local/X11/include
3675 /usr/local/X11R6/include
3676 /usr/local/X11R5/include
3677 /usr/local/X11R4/include
3679 /usr/local/include/X11
3680 /usr/local/include/X11R6
3681 /usr/local/include/X11R5
3682 /usr/local/include/X11R4
3684 /usr/X386/include
3685 /usr/x386/include
3686 /usr/XFree86/include/X11
3688 /usr/include
3689 /usr/local/include
3690 /usr/unsupported/include
3691 /usr/athena/include
3692 /usr/local/x11r5/include
3693 /usr/lpp/Xamples/include
3695 /usr/openwin/include
3696 /usr/openwin/share/include'
3698 if test "$ac_x_includes" = no; then
3699 # Guess where to find include files, by looking for Intrinsic.h.
3700 # First, try using that file with no special directory specified.
3701 cat >conftest.$ac_ext <<_ACEOF
3702 /* confdefs.h. */
3703 _ACEOF
3704 cat confdefs.h >>conftest.$ac_ext
3705 cat >>conftest.$ac_ext <<_ACEOF
3706 /* end confdefs.h. */
3707 #include <X11/Intrinsic.h>
3708 _ACEOF
3709 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3710 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3711 ac_status=$?
3712 grep -v '^ *+' conftest.er1 >conftest.err
3713 rm -f conftest.er1
3714 cat conftest.err >&5
3715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3716 (exit $ac_status); } >/dev/null; then
3717 if test -s conftest.err; then
3718 ac_cpp_err=$ac_c_preproc_warn_flag
3719 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3720 else
3721 ac_cpp_err=
3723 else
3724 ac_cpp_err=yes
3726 if test -z "$ac_cpp_err"; then
3727 # We can compile using X headers with no special include directory.
3728 ac_x_includes=
3729 else
3730 echo "$as_me: failed program was:" >&5
3731 sed 's/^/| /' conftest.$ac_ext >&5
3733 for ac_dir in $ac_x_header_dirs; do
3734 if test -r "$ac_dir/X11/Intrinsic.h"; then
3735 ac_x_includes=$ac_dir
3736 break
3738 done
3740 rm -f conftest.err conftest.$ac_ext
3741 fi # $ac_x_includes = no
3743 if test "$ac_x_libraries" = no; then
3744 # Check for the libraries.
3745 # See if we find them without any special options.
3746 # Don't add to $LIBS permanently.
3747 ac_save_LIBS=$LIBS
3748 LIBS="-lXt $LIBS"
3749 cat >conftest.$ac_ext <<_ACEOF
3750 /* confdefs.h. */
3751 _ACEOF
3752 cat confdefs.h >>conftest.$ac_ext
3753 cat >>conftest.$ac_ext <<_ACEOF
3754 /* end confdefs.h. */
3755 #include <X11/Intrinsic.h>
3757 main ()
3759 XtMalloc (0)
3761 return 0;
3763 _ACEOF
3764 rm -f conftest.$ac_objext conftest$ac_exeext
3765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3766 (eval $ac_link) 2>conftest.er1
3767 ac_status=$?
3768 grep -v '^ *+' conftest.er1 >conftest.err
3769 rm -f conftest.er1
3770 cat conftest.err >&5
3771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3772 (exit $ac_status); } &&
3773 { ac_try='test -z "$ac_c_werror_flag"
3774 || test ! -s conftest.err'
3775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3776 (eval $ac_try) 2>&5
3777 ac_status=$?
3778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3779 (exit $ac_status); }; } &&
3780 { ac_try='test -s conftest$ac_exeext'
3781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3782 (eval $ac_try) 2>&5
3783 ac_status=$?
3784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3785 (exit $ac_status); }; }; then
3786 LIBS=$ac_save_LIBS
3787 # We can link X programs with no special library path.
3788 ac_x_libraries=
3789 else
3790 echo "$as_me: failed program was:" >&5
3791 sed 's/^/| /' conftest.$ac_ext >&5
3793 LIBS=$ac_save_LIBS
3794 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
3796 # Don't even attempt the hair of trying to link an X program!
3797 for ac_extension in a so sl; do
3798 if test -r $ac_dir/libXt.$ac_extension; then
3799 ac_x_libraries=$ac_dir
3800 break 2
3802 done
3803 done
3805 rm -f conftest.err conftest.$ac_objext \
3806 conftest$ac_exeext conftest.$ac_ext
3807 fi # $ac_x_libraries = no
3809 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
3810 # Didn't find X anywhere. Cache the known absence of X.
3811 ac_cv_have_x="have_x=no"
3812 else
3813 # Record where we found X for the cache.
3814 ac_cv_have_x="have_x=yes \
3815 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
3820 eval "$ac_cv_have_x"
3821 fi # $with_x != no
3823 if test "$have_x" != yes; then
3824 echo "$as_me:$LINENO: result: $have_x" >&5
3825 echo "${ECHO_T}$have_x" >&6
3826 no_x=yes
3827 else
3828 # If each of the values was on the command line, it overrides each guess.
3829 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
3830 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
3831 # Update the cache value to reflect the command line values.
3832 ac_cv_have_x="have_x=yes \
3833 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
3834 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
3835 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
3838 if test "$no_x" = yes; then
3839 # Not all programs may use this symbol, but it does not hurt to define it.
3841 cat >>confdefs.h <<\_ACEOF
3842 #define X_DISPLAY_MISSING 1
3843 _ACEOF
3845 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
3846 else
3847 if test -n "$x_includes"; then
3848 X_CFLAGS="$X_CFLAGS -I$x_includes"
3851 # It would also be nice to do this for all -L options, not just this one.
3852 if test -n "$x_libraries"; then
3853 X_LIBS="$X_LIBS -L$x_libraries"
3854 # For Solaris; some versions of Sun CC require a space after -R and
3855 # others require no space. Words are not sufficient . . . .
3856 case `(uname -sr) 2>/dev/null` in
3857 "SunOS 5"*)
3858 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
3859 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
3860 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
3861 cat >conftest.$ac_ext <<_ACEOF
3862 /* confdefs.h. */
3863 _ACEOF
3864 cat confdefs.h >>conftest.$ac_ext
3865 cat >>conftest.$ac_ext <<_ACEOF
3866 /* end confdefs.h. */
3869 main ()
3873 return 0;
3875 _ACEOF
3876 rm -f conftest.$ac_objext conftest$ac_exeext
3877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3878 (eval $ac_link) 2>conftest.er1
3879 ac_status=$?
3880 grep -v '^ *+' conftest.er1 >conftest.err
3881 rm -f conftest.er1
3882 cat conftest.err >&5
3883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3884 (exit $ac_status); } &&
3885 { ac_try='test -z "$ac_c_werror_flag"
3886 || test ! -s conftest.err'
3887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3888 (eval $ac_try) 2>&5
3889 ac_status=$?
3890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3891 (exit $ac_status); }; } &&
3892 { ac_try='test -s conftest$ac_exeext'
3893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3894 (eval $ac_try) 2>&5
3895 ac_status=$?
3896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3897 (exit $ac_status); }; }; then
3898 ac_R_nospace=yes
3899 else
3900 echo "$as_me: failed program was:" >&5
3901 sed 's/^/| /' conftest.$ac_ext >&5
3903 ac_R_nospace=no
3905 rm -f conftest.err conftest.$ac_objext \
3906 conftest$ac_exeext conftest.$ac_ext
3907 if test $ac_R_nospace = yes; then
3908 echo "$as_me:$LINENO: result: no" >&5
3909 echo "${ECHO_T}no" >&6
3910 X_LIBS="$X_LIBS -R$x_libraries"
3911 else
3912 LIBS="$ac_xsave_LIBS -R $x_libraries"
3913 cat >conftest.$ac_ext <<_ACEOF
3914 /* confdefs.h. */
3915 _ACEOF
3916 cat confdefs.h >>conftest.$ac_ext
3917 cat >>conftest.$ac_ext <<_ACEOF
3918 /* end confdefs.h. */
3921 main ()
3925 return 0;
3927 _ACEOF
3928 rm -f conftest.$ac_objext conftest$ac_exeext
3929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3930 (eval $ac_link) 2>conftest.er1
3931 ac_status=$?
3932 grep -v '^ *+' conftest.er1 >conftest.err
3933 rm -f conftest.er1
3934 cat conftest.err >&5
3935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3936 (exit $ac_status); } &&
3937 { ac_try='test -z "$ac_c_werror_flag"
3938 || test ! -s conftest.err'
3939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3940 (eval $ac_try) 2>&5
3941 ac_status=$?
3942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3943 (exit $ac_status); }; } &&
3944 { ac_try='test -s conftest$ac_exeext'
3945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3946 (eval $ac_try) 2>&5
3947 ac_status=$?
3948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3949 (exit $ac_status); }; }; then
3950 ac_R_space=yes
3951 else
3952 echo "$as_me: failed program was:" >&5
3953 sed 's/^/| /' conftest.$ac_ext >&5
3955 ac_R_space=no
3957 rm -f conftest.err conftest.$ac_objext \
3958 conftest$ac_exeext conftest.$ac_ext
3959 if test $ac_R_space = yes; then
3960 echo "$as_me:$LINENO: result: yes" >&5
3961 echo "${ECHO_T}yes" >&6
3962 X_LIBS="$X_LIBS -R $x_libraries"
3963 else
3964 echo "$as_me:$LINENO: result: neither works" >&5
3965 echo "${ECHO_T}neither works" >&6
3968 LIBS=$ac_xsave_LIBS
3969 esac
3972 # Check for system-dependent libraries X programs must link with.
3973 # Do this before checking for the system-independent R6 libraries
3974 # (-lICE), since we may need -lsocket or whatever for X linking.
3976 if test "$ISC" = yes; then
3977 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
3978 else
3979 # Martyn Johnson says this is needed for Ultrix, if the X
3980 # libraries were built with DECnet support. And Karl Berry says
3981 # the Alpha needs dnet_stub (dnet does not exist).
3982 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
3983 cat >conftest.$ac_ext <<_ACEOF
3984 /* confdefs.h. */
3985 _ACEOF
3986 cat confdefs.h >>conftest.$ac_ext
3987 cat >>conftest.$ac_ext <<_ACEOF
3988 /* end confdefs.h. */
3990 /* Override any gcc2 internal prototype to avoid an error. */
3991 #ifdef __cplusplus
3992 extern "C"
3993 #endif
3994 /* We use char because int might match the return type of a gcc2
3995 builtin and then its argument prototype would still apply. */
3996 char XOpenDisplay ();
3998 main ()
4000 XOpenDisplay ();
4002 return 0;
4004 _ACEOF
4005 rm -f conftest.$ac_objext conftest$ac_exeext
4006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4007 (eval $ac_link) 2>conftest.er1
4008 ac_status=$?
4009 grep -v '^ *+' conftest.er1 >conftest.err
4010 rm -f conftest.er1
4011 cat conftest.err >&5
4012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4013 (exit $ac_status); } &&
4014 { ac_try='test -z "$ac_c_werror_flag"
4015 || test ! -s conftest.err'
4016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4017 (eval $ac_try) 2>&5
4018 ac_status=$?
4019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4020 (exit $ac_status); }; } &&
4021 { ac_try='test -s conftest$ac_exeext'
4022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4023 (eval $ac_try) 2>&5
4024 ac_status=$?
4025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4026 (exit $ac_status); }; }; then
4028 else
4029 echo "$as_me: failed program was:" >&5
4030 sed 's/^/| /' conftest.$ac_ext >&5
4032 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
4033 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
4034 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
4035 echo $ECHO_N "(cached) $ECHO_C" >&6
4036 else
4037 ac_check_lib_save_LIBS=$LIBS
4038 LIBS="-ldnet $LIBS"
4039 cat >conftest.$ac_ext <<_ACEOF
4040 /* confdefs.h. */
4041 _ACEOF
4042 cat confdefs.h >>conftest.$ac_ext
4043 cat >>conftest.$ac_ext <<_ACEOF
4044 /* end confdefs.h. */
4046 /* Override any gcc2 internal prototype to avoid an error. */
4047 #ifdef __cplusplus
4048 extern "C"
4049 #endif
4050 /* We use char because int might match the return type of a gcc2
4051 builtin and then its argument prototype would still apply. */
4052 char dnet_ntoa ();
4054 main ()
4056 dnet_ntoa ();
4058 return 0;
4060 _ACEOF
4061 rm -f conftest.$ac_objext conftest$ac_exeext
4062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4063 (eval $ac_link) 2>conftest.er1
4064 ac_status=$?
4065 grep -v '^ *+' conftest.er1 >conftest.err
4066 rm -f conftest.er1
4067 cat conftest.err >&5
4068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4069 (exit $ac_status); } &&
4070 { ac_try='test -z "$ac_c_werror_flag"
4071 || test ! -s conftest.err'
4072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4073 (eval $ac_try) 2>&5
4074 ac_status=$?
4075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076 (exit $ac_status); }; } &&
4077 { ac_try='test -s conftest$ac_exeext'
4078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4079 (eval $ac_try) 2>&5
4080 ac_status=$?
4081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082 (exit $ac_status); }; }; then
4083 ac_cv_lib_dnet_dnet_ntoa=yes
4084 else
4085 echo "$as_me: failed program was:" >&5
4086 sed 's/^/| /' conftest.$ac_ext >&5
4088 ac_cv_lib_dnet_dnet_ntoa=no
4090 rm -f conftest.err conftest.$ac_objext \
4091 conftest$ac_exeext conftest.$ac_ext
4092 LIBS=$ac_check_lib_save_LIBS
4094 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
4095 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
4096 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
4097 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
4100 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4101 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
4102 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
4103 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
4104 echo $ECHO_N "(cached) $ECHO_C" >&6
4105 else
4106 ac_check_lib_save_LIBS=$LIBS
4107 LIBS="-ldnet_stub $LIBS"
4108 cat >conftest.$ac_ext <<_ACEOF
4109 /* confdefs.h. */
4110 _ACEOF
4111 cat confdefs.h >>conftest.$ac_ext
4112 cat >>conftest.$ac_ext <<_ACEOF
4113 /* end confdefs.h. */
4115 /* Override any gcc2 internal prototype to avoid an error. */
4116 #ifdef __cplusplus
4117 extern "C"
4118 #endif
4119 /* We use char because int might match the return type of a gcc2
4120 builtin and then its argument prototype would still apply. */
4121 char dnet_ntoa ();
4123 main ()
4125 dnet_ntoa ();
4127 return 0;
4129 _ACEOF
4130 rm -f conftest.$ac_objext conftest$ac_exeext
4131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4132 (eval $ac_link) 2>conftest.er1
4133 ac_status=$?
4134 grep -v '^ *+' conftest.er1 >conftest.err
4135 rm -f conftest.er1
4136 cat conftest.err >&5
4137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4138 (exit $ac_status); } &&
4139 { ac_try='test -z "$ac_c_werror_flag"
4140 || test ! -s conftest.err'
4141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4142 (eval $ac_try) 2>&5
4143 ac_status=$?
4144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4145 (exit $ac_status); }; } &&
4146 { ac_try='test -s conftest$ac_exeext'
4147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4148 (eval $ac_try) 2>&5
4149 ac_status=$?
4150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4151 (exit $ac_status); }; }; then
4152 ac_cv_lib_dnet_stub_dnet_ntoa=yes
4153 else
4154 echo "$as_me: failed program was:" >&5
4155 sed 's/^/| /' conftest.$ac_ext >&5
4157 ac_cv_lib_dnet_stub_dnet_ntoa=no
4159 rm -f conftest.err conftest.$ac_objext \
4160 conftest$ac_exeext conftest.$ac_ext
4161 LIBS=$ac_check_lib_save_LIBS
4163 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
4164 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
4165 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
4166 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
4171 rm -f conftest.err conftest.$ac_objext \
4172 conftest$ac_exeext conftest.$ac_ext
4173 LIBS="$ac_xsave_LIBS"
4175 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
4176 # to get the SysV transport functions.
4177 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
4178 # needs -lnsl.
4179 # The nsl library prevents programs from opening the X display
4180 # on Irix 5.2, according to T.E. Dickey.
4181 # The functions gethostbyname, getservbyname, and inet_addr are
4182 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
4183 echo "$as_me:$LINENO: checking for gethostbyname" >&5
4184 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
4185 if test "${ac_cv_func_gethostbyname+set}" = set; then
4186 echo $ECHO_N "(cached) $ECHO_C" >&6
4187 else
4188 cat >conftest.$ac_ext <<_ACEOF
4189 /* confdefs.h. */
4190 _ACEOF
4191 cat confdefs.h >>conftest.$ac_ext
4192 cat >>conftest.$ac_ext <<_ACEOF
4193 /* end confdefs.h. */
4194 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
4195 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4196 #define gethostbyname innocuous_gethostbyname
4198 /* System header to define __stub macros and hopefully few prototypes,
4199 which can conflict with char gethostbyname (); below.
4200 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4201 <limits.h> exists even on freestanding compilers. */
4203 #ifdef __STDC__
4204 # include <limits.h>
4205 #else
4206 # include <assert.h>
4207 #endif
4209 #undef gethostbyname
4211 /* Override any gcc2 internal prototype to avoid an error. */
4212 #ifdef __cplusplus
4213 extern "C"
4215 #endif
4216 /* We use char because int might match the return type of a gcc2
4217 builtin and then its argument prototype would still apply. */
4218 char gethostbyname ();
4219 /* The GNU C library defines this for functions which it implements
4220 to always fail with ENOSYS. Some functions are actually named
4221 something starting with __ and the normal name is an alias. */
4222 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
4223 choke me
4224 #else
4225 char (*f) () = gethostbyname;
4226 #endif
4227 #ifdef __cplusplus
4229 #endif
4232 main ()
4234 return f != gethostbyname;
4236 return 0;
4238 _ACEOF
4239 rm -f conftest.$ac_objext conftest$ac_exeext
4240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4241 (eval $ac_link) 2>conftest.er1
4242 ac_status=$?
4243 grep -v '^ *+' conftest.er1 >conftest.err
4244 rm -f conftest.er1
4245 cat conftest.err >&5
4246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4247 (exit $ac_status); } &&
4248 { ac_try='test -z "$ac_c_werror_flag"
4249 || test ! -s conftest.err'
4250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4251 (eval $ac_try) 2>&5
4252 ac_status=$?
4253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4254 (exit $ac_status); }; } &&
4255 { ac_try='test -s conftest$ac_exeext'
4256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4257 (eval $ac_try) 2>&5
4258 ac_status=$?
4259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4260 (exit $ac_status); }; }; then
4261 ac_cv_func_gethostbyname=yes
4262 else
4263 echo "$as_me: failed program was:" >&5
4264 sed 's/^/| /' conftest.$ac_ext >&5
4266 ac_cv_func_gethostbyname=no
4268 rm -f conftest.err conftest.$ac_objext \
4269 conftest$ac_exeext conftest.$ac_ext
4271 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
4272 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
4274 if test $ac_cv_func_gethostbyname = no; then
4275 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4276 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4277 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4278 echo $ECHO_N "(cached) $ECHO_C" >&6
4279 else
4280 ac_check_lib_save_LIBS=$LIBS
4281 LIBS="-lnsl $LIBS"
4282 cat >conftest.$ac_ext <<_ACEOF
4283 /* confdefs.h. */
4284 _ACEOF
4285 cat confdefs.h >>conftest.$ac_ext
4286 cat >>conftest.$ac_ext <<_ACEOF
4287 /* end confdefs.h. */
4289 /* Override any gcc2 internal prototype to avoid an error. */
4290 #ifdef __cplusplus
4291 extern "C"
4292 #endif
4293 /* We use char because int might match the return type of a gcc2
4294 builtin and then its argument prototype would still apply. */
4295 char gethostbyname ();
4297 main ()
4299 gethostbyname ();
4301 return 0;
4303 _ACEOF
4304 rm -f conftest.$ac_objext conftest$ac_exeext
4305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4306 (eval $ac_link) 2>conftest.er1
4307 ac_status=$?
4308 grep -v '^ *+' conftest.er1 >conftest.err
4309 rm -f conftest.er1
4310 cat conftest.err >&5
4311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4312 (exit $ac_status); } &&
4313 { ac_try='test -z "$ac_c_werror_flag"
4314 || test ! -s conftest.err'
4315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4316 (eval $ac_try) 2>&5
4317 ac_status=$?
4318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4319 (exit $ac_status); }; } &&
4320 { ac_try='test -s conftest$ac_exeext'
4321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4322 (eval $ac_try) 2>&5
4323 ac_status=$?
4324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4325 (exit $ac_status); }; }; then
4326 ac_cv_lib_nsl_gethostbyname=yes
4327 else
4328 echo "$as_me: failed program was:" >&5
4329 sed 's/^/| /' conftest.$ac_ext >&5
4331 ac_cv_lib_nsl_gethostbyname=no
4333 rm -f conftest.err conftest.$ac_objext \
4334 conftest$ac_exeext conftest.$ac_ext
4335 LIBS=$ac_check_lib_save_LIBS
4337 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4338 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
4339 if test $ac_cv_lib_nsl_gethostbyname = yes; then
4340 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
4343 if test $ac_cv_lib_nsl_gethostbyname = no; then
4344 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
4345 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
4346 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
4347 echo $ECHO_N "(cached) $ECHO_C" >&6
4348 else
4349 ac_check_lib_save_LIBS=$LIBS
4350 LIBS="-lbsd $LIBS"
4351 cat >conftest.$ac_ext <<_ACEOF
4352 /* confdefs.h. */
4353 _ACEOF
4354 cat confdefs.h >>conftest.$ac_ext
4355 cat >>conftest.$ac_ext <<_ACEOF
4356 /* end confdefs.h. */
4358 /* Override any gcc2 internal prototype to avoid an error. */
4359 #ifdef __cplusplus
4360 extern "C"
4361 #endif
4362 /* We use char because int might match the return type of a gcc2
4363 builtin and then its argument prototype would still apply. */
4364 char gethostbyname ();
4366 main ()
4368 gethostbyname ();
4370 return 0;
4372 _ACEOF
4373 rm -f conftest.$ac_objext conftest$ac_exeext
4374 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4375 (eval $ac_link) 2>conftest.er1
4376 ac_status=$?
4377 grep -v '^ *+' conftest.er1 >conftest.err
4378 rm -f conftest.er1
4379 cat conftest.err >&5
4380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4381 (exit $ac_status); } &&
4382 { ac_try='test -z "$ac_c_werror_flag"
4383 || test ! -s conftest.err'
4384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4385 (eval $ac_try) 2>&5
4386 ac_status=$?
4387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4388 (exit $ac_status); }; } &&
4389 { ac_try='test -s conftest$ac_exeext'
4390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4391 (eval $ac_try) 2>&5
4392 ac_status=$?
4393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4394 (exit $ac_status); }; }; then
4395 ac_cv_lib_bsd_gethostbyname=yes
4396 else
4397 echo "$as_me: failed program was:" >&5
4398 sed 's/^/| /' conftest.$ac_ext >&5
4400 ac_cv_lib_bsd_gethostbyname=no
4402 rm -f conftest.err conftest.$ac_objext \
4403 conftest$ac_exeext conftest.$ac_ext
4404 LIBS=$ac_check_lib_save_LIBS
4406 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
4407 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
4408 if test $ac_cv_lib_bsd_gethostbyname = yes; then
4409 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
4415 # lieder@skyler.mavd.honeywell.com says without -lsocket,
4416 # socket/setsockopt and other routines are undefined under SCO ODT
4417 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
4418 # on later versions), says Simon Leinen: it contains gethostby*
4419 # variants that don't use the name server (or something). -lsocket
4420 # must be given before -lnsl if both are needed. We assume that
4421 # if connect needs -lnsl, so does gethostbyname.
4422 echo "$as_me:$LINENO: checking for connect" >&5
4423 echo $ECHO_N "checking for connect... $ECHO_C" >&6
4424 if test "${ac_cv_func_connect+set}" = set; then
4425 echo $ECHO_N "(cached) $ECHO_C" >&6
4426 else
4427 cat >conftest.$ac_ext <<_ACEOF
4428 /* confdefs.h. */
4429 _ACEOF
4430 cat confdefs.h >>conftest.$ac_ext
4431 cat >>conftest.$ac_ext <<_ACEOF
4432 /* end confdefs.h. */
4433 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
4434 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4435 #define connect innocuous_connect
4437 /* System header to define __stub macros and hopefully few prototypes,
4438 which can conflict with char connect (); below.
4439 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4440 <limits.h> exists even on freestanding compilers. */
4442 #ifdef __STDC__
4443 # include <limits.h>
4444 #else
4445 # include <assert.h>
4446 #endif
4448 #undef connect
4450 /* Override any gcc2 internal prototype to avoid an error. */
4451 #ifdef __cplusplus
4452 extern "C"
4454 #endif
4455 /* We use char because int might match the return type of a gcc2
4456 builtin and then its argument prototype would still apply. */
4457 char connect ();
4458 /* The GNU C library defines this for functions which it implements
4459 to always fail with ENOSYS. Some functions are actually named
4460 something starting with __ and the normal name is an alias. */
4461 #if defined (__stub_connect) || defined (__stub___connect)
4462 choke me
4463 #else
4464 char (*f) () = connect;
4465 #endif
4466 #ifdef __cplusplus
4468 #endif
4471 main ()
4473 return f != connect;
4475 return 0;
4477 _ACEOF
4478 rm -f conftest.$ac_objext conftest$ac_exeext
4479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4480 (eval $ac_link) 2>conftest.er1
4481 ac_status=$?
4482 grep -v '^ *+' conftest.er1 >conftest.err
4483 rm -f conftest.er1
4484 cat conftest.err >&5
4485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4486 (exit $ac_status); } &&
4487 { ac_try='test -z "$ac_c_werror_flag"
4488 || test ! -s conftest.err'
4489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4490 (eval $ac_try) 2>&5
4491 ac_status=$?
4492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4493 (exit $ac_status); }; } &&
4494 { ac_try='test -s conftest$ac_exeext'
4495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4496 (eval $ac_try) 2>&5
4497 ac_status=$?
4498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4499 (exit $ac_status); }; }; then
4500 ac_cv_func_connect=yes
4501 else
4502 echo "$as_me: failed program was:" >&5
4503 sed 's/^/| /' conftest.$ac_ext >&5
4505 ac_cv_func_connect=no
4507 rm -f conftest.err conftest.$ac_objext \
4508 conftest$ac_exeext conftest.$ac_ext
4510 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
4511 echo "${ECHO_T}$ac_cv_func_connect" >&6
4513 if test $ac_cv_func_connect = no; then
4514 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
4515 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
4516 if test "${ac_cv_lib_socket_connect+set}" = set; then
4517 echo $ECHO_N "(cached) $ECHO_C" >&6
4518 else
4519 ac_check_lib_save_LIBS=$LIBS
4520 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
4521 cat >conftest.$ac_ext <<_ACEOF
4522 /* confdefs.h. */
4523 _ACEOF
4524 cat confdefs.h >>conftest.$ac_ext
4525 cat >>conftest.$ac_ext <<_ACEOF
4526 /* end confdefs.h. */
4528 /* Override any gcc2 internal prototype to avoid an error. */
4529 #ifdef __cplusplus
4530 extern "C"
4531 #endif
4532 /* We use char because int might match the return type of a gcc2
4533 builtin and then its argument prototype would still apply. */
4534 char connect ();
4536 main ()
4538 connect ();
4540 return 0;
4542 _ACEOF
4543 rm -f conftest.$ac_objext conftest$ac_exeext
4544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4545 (eval $ac_link) 2>conftest.er1
4546 ac_status=$?
4547 grep -v '^ *+' conftest.er1 >conftest.err
4548 rm -f conftest.er1
4549 cat conftest.err >&5
4550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551 (exit $ac_status); } &&
4552 { ac_try='test -z "$ac_c_werror_flag"
4553 || test ! -s conftest.err'
4554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4555 (eval $ac_try) 2>&5
4556 ac_status=$?
4557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4558 (exit $ac_status); }; } &&
4559 { ac_try='test -s conftest$ac_exeext'
4560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4561 (eval $ac_try) 2>&5
4562 ac_status=$?
4563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4564 (exit $ac_status); }; }; then
4565 ac_cv_lib_socket_connect=yes
4566 else
4567 echo "$as_me: failed program was:" >&5
4568 sed 's/^/| /' conftest.$ac_ext >&5
4570 ac_cv_lib_socket_connect=no
4572 rm -f conftest.err conftest.$ac_objext \
4573 conftest$ac_exeext conftest.$ac_ext
4574 LIBS=$ac_check_lib_save_LIBS
4576 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
4577 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
4578 if test $ac_cv_lib_socket_connect = yes; then
4579 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
4584 # Guillermo Gomez says -lposix is necessary on A/UX.
4585 echo "$as_me:$LINENO: checking for remove" >&5
4586 echo $ECHO_N "checking for remove... $ECHO_C" >&6
4587 if test "${ac_cv_func_remove+set}" = set; then
4588 echo $ECHO_N "(cached) $ECHO_C" >&6
4589 else
4590 cat >conftest.$ac_ext <<_ACEOF
4591 /* confdefs.h. */
4592 _ACEOF
4593 cat confdefs.h >>conftest.$ac_ext
4594 cat >>conftest.$ac_ext <<_ACEOF
4595 /* end confdefs.h. */
4596 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
4597 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4598 #define remove innocuous_remove
4600 /* System header to define __stub macros and hopefully few prototypes,
4601 which can conflict with char remove (); below.
4602 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4603 <limits.h> exists even on freestanding compilers. */
4605 #ifdef __STDC__
4606 # include <limits.h>
4607 #else
4608 # include <assert.h>
4609 #endif
4611 #undef remove
4613 /* Override any gcc2 internal prototype to avoid an error. */
4614 #ifdef __cplusplus
4615 extern "C"
4617 #endif
4618 /* We use char because int might match the return type of a gcc2
4619 builtin and then its argument prototype would still apply. */
4620 char remove ();
4621 /* The GNU C library defines this for functions which it implements
4622 to always fail with ENOSYS. Some functions are actually named
4623 something starting with __ and the normal name is an alias. */
4624 #if defined (__stub_remove) || defined (__stub___remove)
4625 choke me
4626 #else
4627 char (*f) () = remove;
4628 #endif
4629 #ifdef __cplusplus
4631 #endif
4634 main ()
4636 return f != remove;
4638 return 0;
4640 _ACEOF
4641 rm -f conftest.$ac_objext conftest$ac_exeext
4642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4643 (eval $ac_link) 2>conftest.er1
4644 ac_status=$?
4645 grep -v '^ *+' conftest.er1 >conftest.err
4646 rm -f conftest.er1
4647 cat conftest.err >&5
4648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4649 (exit $ac_status); } &&
4650 { ac_try='test -z "$ac_c_werror_flag"
4651 || test ! -s conftest.err'
4652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4653 (eval $ac_try) 2>&5
4654 ac_status=$?
4655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4656 (exit $ac_status); }; } &&
4657 { ac_try='test -s conftest$ac_exeext'
4658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4659 (eval $ac_try) 2>&5
4660 ac_status=$?
4661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4662 (exit $ac_status); }; }; then
4663 ac_cv_func_remove=yes
4664 else
4665 echo "$as_me: failed program was:" >&5
4666 sed 's/^/| /' conftest.$ac_ext >&5
4668 ac_cv_func_remove=no
4670 rm -f conftest.err conftest.$ac_objext \
4671 conftest$ac_exeext conftest.$ac_ext
4673 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
4674 echo "${ECHO_T}$ac_cv_func_remove" >&6
4676 if test $ac_cv_func_remove = no; then
4677 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
4678 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
4679 if test "${ac_cv_lib_posix_remove+set}" = set; then
4680 echo $ECHO_N "(cached) $ECHO_C" >&6
4681 else
4682 ac_check_lib_save_LIBS=$LIBS
4683 LIBS="-lposix $LIBS"
4684 cat >conftest.$ac_ext <<_ACEOF
4685 /* confdefs.h. */
4686 _ACEOF
4687 cat confdefs.h >>conftest.$ac_ext
4688 cat >>conftest.$ac_ext <<_ACEOF
4689 /* end confdefs.h. */
4691 /* Override any gcc2 internal prototype to avoid an error. */
4692 #ifdef __cplusplus
4693 extern "C"
4694 #endif
4695 /* We use char because int might match the return type of a gcc2
4696 builtin and then its argument prototype would still apply. */
4697 char remove ();
4699 main ()
4701 remove ();
4703 return 0;
4705 _ACEOF
4706 rm -f conftest.$ac_objext conftest$ac_exeext
4707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4708 (eval $ac_link) 2>conftest.er1
4709 ac_status=$?
4710 grep -v '^ *+' conftest.er1 >conftest.err
4711 rm -f conftest.er1
4712 cat conftest.err >&5
4713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4714 (exit $ac_status); } &&
4715 { ac_try='test -z "$ac_c_werror_flag"
4716 || test ! -s conftest.err'
4717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4718 (eval $ac_try) 2>&5
4719 ac_status=$?
4720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4721 (exit $ac_status); }; } &&
4722 { ac_try='test -s conftest$ac_exeext'
4723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4724 (eval $ac_try) 2>&5
4725 ac_status=$?
4726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4727 (exit $ac_status); }; }; then
4728 ac_cv_lib_posix_remove=yes
4729 else
4730 echo "$as_me: failed program was:" >&5
4731 sed 's/^/| /' conftest.$ac_ext >&5
4733 ac_cv_lib_posix_remove=no
4735 rm -f conftest.err conftest.$ac_objext \
4736 conftest$ac_exeext conftest.$ac_ext
4737 LIBS=$ac_check_lib_save_LIBS
4739 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
4740 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
4741 if test $ac_cv_lib_posix_remove = yes; then
4742 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
4747 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4748 echo "$as_me:$LINENO: checking for shmat" >&5
4749 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
4750 if test "${ac_cv_func_shmat+set}" = set; then
4751 echo $ECHO_N "(cached) $ECHO_C" >&6
4752 else
4753 cat >conftest.$ac_ext <<_ACEOF
4754 /* confdefs.h. */
4755 _ACEOF
4756 cat confdefs.h >>conftest.$ac_ext
4757 cat >>conftest.$ac_ext <<_ACEOF
4758 /* end confdefs.h. */
4759 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
4760 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4761 #define shmat innocuous_shmat
4763 /* System header to define __stub macros and hopefully few prototypes,
4764 which can conflict with char shmat (); below.
4765 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4766 <limits.h> exists even on freestanding compilers. */
4768 #ifdef __STDC__
4769 # include <limits.h>
4770 #else
4771 # include <assert.h>
4772 #endif
4774 #undef shmat
4776 /* Override any gcc2 internal prototype to avoid an error. */
4777 #ifdef __cplusplus
4778 extern "C"
4780 #endif
4781 /* We use char because int might match the return type of a gcc2
4782 builtin and then its argument prototype would still apply. */
4783 char shmat ();
4784 /* The GNU C library defines this for functions which it implements
4785 to always fail with ENOSYS. Some functions are actually named
4786 something starting with __ and the normal name is an alias. */
4787 #if defined (__stub_shmat) || defined (__stub___shmat)
4788 choke me
4789 #else
4790 char (*f) () = shmat;
4791 #endif
4792 #ifdef __cplusplus
4794 #endif
4797 main ()
4799 return f != shmat;
4801 return 0;
4803 _ACEOF
4804 rm -f conftest.$ac_objext conftest$ac_exeext
4805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4806 (eval $ac_link) 2>conftest.er1
4807 ac_status=$?
4808 grep -v '^ *+' conftest.er1 >conftest.err
4809 rm -f conftest.er1
4810 cat conftest.err >&5
4811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4812 (exit $ac_status); } &&
4813 { ac_try='test -z "$ac_c_werror_flag"
4814 || test ! -s conftest.err'
4815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4816 (eval $ac_try) 2>&5
4817 ac_status=$?
4818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4819 (exit $ac_status); }; } &&
4820 { ac_try='test -s conftest$ac_exeext'
4821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4822 (eval $ac_try) 2>&5
4823 ac_status=$?
4824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4825 (exit $ac_status); }; }; then
4826 ac_cv_func_shmat=yes
4827 else
4828 echo "$as_me: failed program was:" >&5
4829 sed 's/^/| /' conftest.$ac_ext >&5
4831 ac_cv_func_shmat=no
4833 rm -f conftest.err conftest.$ac_objext \
4834 conftest$ac_exeext conftest.$ac_ext
4836 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
4837 echo "${ECHO_T}$ac_cv_func_shmat" >&6
4839 if test $ac_cv_func_shmat = no; then
4840 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
4841 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
4842 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
4843 echo $ECHO_N "(cached) $ECHO_C" >&6
4844 else
4845 ac_check_lib_save_LIBS=$LIBS
4846 LIBS="-lipc $LIBS"
4847 cat >conftest.$ac_ext <<_ACEOF
4848 /* confdefs.h. */
4849 _ACEOF
4850 cat confdefs.h >>conftest.$ac_ext
4851 cat >>conftest.$ac_ext <<_ACEOF
4852 /* end confdefs.h. */
4854 /* Override any gcc2 internal prototype to avoid an error. */
4855 #ifdef __cplusplus
4856 extern "C"
4857 #endif
4858 /* We use char because int might match the return type of a gcc2
4859 builtin and then its argument prototype would still apply. */
4860 char shmat ();
4862 main ()
4864 shmat ();
4866 return 0;
4868 _ACEOF
4869 rm -f conftest.$ac_objext conftest$ac_exeext
4870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4871 (eval $ac_link) 2>conftest.er1
4872 ac_status=$?
4873 grep -v '^ *+' conftest.er1 >conftest.err
4874 rm -f conftest.er1
4875 cat conftest.err >&5
4876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4877 (exit $ac_status); } &&
4878 { ac_try='test -z "$ac_c_werror_flag"
4879 || test ! -s conftest.err'
4880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4881 (eval $ac_try) 2>&5
4882 ac_status=$?
4883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4884 (exit $ac_status); }; } &&
4885 { ac_try='test -s conftest$ac_exeext'
4886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4887 (eval $ac_try) 2>&5
4888 ac_status=$?
4889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4890 (exit $ac_status); }; }; then
4891 ac_cv_lib_ipc_shmat=yes
4892 else
4893 echo "$as_me: failed program was:" >&5
4894 sed 's/^/| /' conftest.$ac_ext >&5
4896 ac_cv_lib_ipc_shmat=no
4898 rm -f conftest.err conftest.$ac_objext \
4899 conftest$ac_exeext conftest.$ac_ext
4900 LIBS=$ac_check_lib_save_LIBS
4902 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
4903 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
4904 if test $ac_cv_lib_ipc_shmat = yes; then
4905 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
4911 # Check for libraries that X11R6 Xt/Xaw programs need.
4912 ac_save_LDFLAGS=$LDFLAGS
4913 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
4914 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4915 # check for ICE first), but we must link in the order -lSM -lICE or
4916 # we get undefined symbols. So assume we have SM if we have ICE.
4917 # These have to be linked with before -lX11, unlike the other
4918 # libraries we check for below, so use a different variable.
4919 # John Interrante, Karl Berry
4920 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
4921 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
4922 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
4923 echo $ECHO_N "(cached) $ECHO_C" >&6
4924 else
4925 ac_check_lib_save_LIBS=$LIBS
4926 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
4927 cat >conftest.$ac_ext <<_ACEOF
4928 /* confdefs.h. */
4929 _ACEOF
4930 cat confdefs.h >>conftest.$ac_ext
4931 cat >>conftest.$ac_ext <<_ACEOF
4932 /* end confdefs.h. */
4934 /* Override any gcc2 internal prototype to avoid an error. */
4935 #ifdef __cplusplus
4936 extern "C"
4937 #endif
4938 /* We use char because int might match the return type of a gcc2
4939 builtin and then its argument prototype would still apply. */
4940 char IceConnectionNumber ();
4942 main ()
4944 IceConnectionNumber ();
4946 return 0;
4948 _ACEOF
4949 rm -f conftest.$ac_objext conftest$ac_exeext
4950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4951 (eval $ac_link) 2>conftest.er1
4952 ac_status=$?
4953 grep -v '^ *+' conftest.er1 >conftest.err
4954 rm -f conftest.er1
4955 cat conftest.err >&5
4956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4957 (exit $ac_status); } &&
4958 { ac_try='test -z "$ac_c_werror_flag"
4959 || test ! -s conftest.err'
4960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4961 (eval $ac_try) 2>&5
4962 ac_status=$?
4963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4964 (exit $ac_status); }; } &&
4965 { ac_try='test -s conftest$ac_exeext'
4966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4967 (eval $ac_try) 2>&5
4968 ac_status=$?
4969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4970 (exit $ac_status); }; }; then
4971 ac_cv_lib_ICE_IceConnectionNumber=yes
4972 else
4973 echo "$as_me: failed program was:" >&5
4974 sed 's/^/| /' conftest.$ac_ext >&5
4976 ac_cv_lib_ICE_IceConnectionNumber=no
4978 rm -f conftest.err conftest.$ac_objext \
4979 conftest$ac_exeext conftest.$ac_ext
4980 LIBS=$ac_check_lib_save_LIBS
4982 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
4983 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
4984 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
4985 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
4988 LDFLAGS=$ac_save_LDFLAGS
4993 groff_no_x=$no_x
4994 if test -z "$groff_no_x"; then
4995 OLDCFLAGS=$CFLAGS
4996 OLDLDFLAGS=$LDFLAGS
4997 OLDLIBS=$LIBS
4998 CFLAGS="$CFLAGS $X_CFLAGS"
4999 LDFLAGS="$LDFLAGS $X_LIBS"
5000 LIBS="$LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
5002 LIBS="$LIBS -lXaw"
5003 echo "$as_me:$LINENO: checking for Xaw library and header files" >&5
5004 echo $ECHO_N "checking for Xaw library and header files... $ECHO_C" >&6
5005 cat >conftest.$ac_ext <<_ACEOF
5007 /* confdefs.h. */
5008 _ACEOF
5009 cat confdefs.h >>conftest.$ac_ext
5010 cat >>conftest.$ac_ext <<_ACEOF
5011 /* end confdefs.h. */
5014 #include <X11/Intrinsic.h>
5015 #include <X11/Xaw/Simple.h>
5019 main ()
5023 return 0;
5026 _ACEOF
5027 rm -f conftest.$ac_objext conftest$ac_exeext
5028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5029 (eval $ac_link) 2>conftest.er1
5030 ac_status=$?
5031 grep -v '^ *+' conftest.er1 >conftest.err
5032 rm -f conftest.er1
5033 cat conftest.err >&5
5034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5035 (exit $ac_status); } &&
5036 { ac_try='test -z "$ac_c_werror_flag"
5037 || test ! -s conftest.err'
5038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5039 (eval $ac_try) 2>&5
5040 ac_status=$?
5041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5042 (exit $ac_status); }; } &&
5043 { ac_try='test -s conftest$ac_exeext'
5044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5045 (eval $ac_try) 2>&5
5046 ac_status=$?
5047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5048 (exit $ac_status); }; }; then
5049 echo "$as_me:$LINENO: result: yes" >&5
5050 echo "${ECHO_T}yes" >&6
5051 else
5052 echo "$as_me: failed program was:" >&5
5053 sed 's/^/| /' conftest.$ac_ext >&5
5055 echo "$as_me:$LINENO: result: no" >&5
5056 echo "${ECHO_T}no" >&6
5057 groff_no_x="yes"
5059 rm -f conftest.err conftest.$ac_objext \
5060 conftest$ac_exeext conftest.$ac_ext
5062 LIBS="$LIBS -lXmu"
5063 echo "$as_me:$LINENO: checking for Xmu library and header files" >&5
5064 echo $ECHO_N "checking for Xmu library and header files... $ECHO_C" >&6
5065 cat >conftest.$ac_ext <<_ACEOF
5067 /* confdefs.h. */
5068 _ACEOF
5069 cat confdefs.h >>conftest.$ac_ext
5070 cat >>conftest.$ac_ext <<_ACEOF
5071 /* end confdefs.h. */
5074 #include <X11/Intrinsic.h>
5075 #include <X11/Xmu/Converters.h>
5079 main ()
5083 return 0;
5086 _ACEOF
5087 rm -f conftest.$ac_objext conftest$ac_exeext
5088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5089 (eval $ac_link) 2>conftest.er1
5090 ac_status=$?
5091 grep -v '^ *+' conftest.er1 >conftest.err
5092 rm -f conftest.er1
5093 cat conftest.err >&5
5094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5095 (exit $ac_status); } &&
5096 { ac_try='test -z "$ac_c_werror_flag"
5097 || test ! -s conftest.err'
5098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5099 (eval $ac_try) 2>&5
5100 ac_status=$?
5101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5102 (exit $ac_status); }; } &&
5103 { ac_try='test -s conftest$ac_exeext'
5104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5105 (eval $ac_try) 2>&5
5106 ac_status=$?
5107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108 (exit $ac_status); }; }; then
5109 echo "$as_me:$LINENO: result: yes" >&5
5110 echo "${ECHO_T}yes" >&6
5111 else
5112 echo "$as_me: failed program was:" >&5
5113 sed 's/^/| /' conftest.$ac_ext >&5
5115 echo "$as_me:$LINENO: result: no" >&5
5116 echo "${ECHO_T}no" >&6
5117 groff_no_x="yes"
5119 rm -f conftest.err conftest.$ac_objext \
5120 conftest$ac_exeext conftest.$ac_ext
5122 CFLAGS=$OLDCFLAGS
5123 LDFLAGS=$OLDLDFLAGS
5124 LIBS=$OLDLIBS
5127 if test "x$groff_no_x" = "xyes"; then
5128 { echo "$as_me:$LINENO: gxditview and xtotroff won't be built" >&5
5129 echo "$as_me: gxditview and xtotroff won't be built" >&6;}
5130 else
5131 XDEVDIRS="font/devX75 font/devX75-12 font/devX100 font/devX100-12"
5132 XPROGDIRS="src/devices/xditview src/utils/xtotroff"
5133 XLIBDIRS="src/libs/libxutil"
5140 # Check whether --with-appresdir or --without-appresdir was given.
5141 if test "${with_appresdir+set}" = set; then
5142 withval="$with_appresdir"
5145 if test -z "$groff_no_x"; then
5146 # Create an Imakefile, run `xmkmf', then `make'.
5147 rm -f -r conftest.dir
5148 if mkdir conftest.dir; then
5149 cd conftest.dir
5150 # Make sure to not put `make' in the Imakefile rules,
5151 # since we grep it out.
5152 cat >Imakefile <<'EOF'
5154 xlibdirs:
5155 @echo 'groff_x_usrlibdir="${USRLIBDIR}"; groff_x_libdir="${LIBDIR}"'
5158 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5159 # GNU make sometimes prints "make[1]: Entering...",
5160 # which would confuse us.
5161 eval `${MAKE-make} xlibdirs 2>/dev/null | grep -v make`
5163 # Open Windows `xmkmf' reportedly sets LIBDIR instead of USRLIBDIR.
5164 for groff_extension in a so sl; do
5165 if test ! -f $groff_x_usrlibdir/libX11.$groff_extension &&
5166 test -f $groff_x_libdir/libX11.$groff_extension; then
5167 groff_x_usrlibdir=$groff_x_libdir
5168 break
5170 done
5173 cd ..
5174 rm -f -r conftest.dir
5177 # In case the test with `xmkmf' wasn't successful, try a suite of
5178 # standard directories. Check `X11' before `X11Rn' because it is often
5179 # a symlink to the current release.
5180 groff_x_libdirs='
5181 /usr/X11/lib
5182 /usr/X11R6/lib
5183 /usr/X11R5/lib
5184 /usr/X11R4/lib
5186 /usr/lib/X11
5187 /usr/lib/X11R6
5188 /usr/lib/X11R5
5189 /usr/lib/X11R4
5191 /usr/local/X11/lib
5192 /usr/local/X11R6/lib
5193 /usr/local/X11R5/lib
5194 /usr/local/X11R4/lib
5196 /usr/local/lib/X11
5197 /usr/local/lib/X11R6
5198 /usr/local/lib/X11R5
5199 /usr/local/lib/X11R4
5201 /usr/X386/lib
5202 /usr/x386/lib
5203 /usr/XFree86/lib/X11
5205 /usr/lib
5206 /usr/local/lib
5207 /usr/unsupported/lib
5208 /usr/athena/lib
5209 /usr/local/x11r5/lib
5210 /usr/lpp/Xamples/lib
5212 /usr/openwin/lib
5213 /usr/openwin/share/lib'
5215 if test -z "$groff_x_usrlibdir"; then
5216 # We only test whether libX11 exists.
5217 for groff_dir in $groff_x_libdirs; do
5218 for groff_extension in a so sl; do
5219 if test ! -r $groff_dir/libX11.$groff_extension; then
5220 groff_x_usrlibdir=$groff_dir
5221 break 2
5223 done
5224 done
5227 if test "x$with_appresdir" = "x"; then
5228 appresdir=$groff_x_usrlibdir/X11/app-defaults
5229 else
5230 appresdir=$with_appresdir
5234 if test -z "$PSPRINT"; then
5235 for ac_prog in lpr
5237 # Extract the first word of "$ac_prog", so it can be a program name with args.
5238 set dummy $ac_prog; ac_word=$2
5239 echo "$as_me:$LINENO: checking for $ac_word" >&5
5240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5241 if test "${ac_cv_prog_LPR+set}" = set; then
5242 echo $ECHO_N "(cached) $ECHO_C" >&6
5243 else
5244 if test -n "$LPR"; then
5245 ac_cv_prog_LPR="$LPR" # Let the user override the test.
5246 else
5247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5248 for as_dir in $PATH
5250 IFS=$as_save_IFS
5251 test -z "$as_dir" && as_dir=.
5252 for ac_exec_ext in '' $ac_executable_extensions; do
5253 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5254 ac_cv_prog_LPR="$ac_prog"
5255 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5256 break 2
5258 done
5259 done
5263 LPR=$ac_cv_prog_LPR
5264 if test -n "$LPR"; then
5265 echo "$as_me:$LINENO: result: $LPR" >&5
5266 echo "${ECHO_T}$LPR" >&6
5267 else
5268 echo "$as_me:$LINENO: result: no" >&5
5269 echo "${ECHO_T}no" >&6
5272 test -n "$LPR" && break
5273 done
5275 for ac_prog in lp
5277 # Extract the first word of "$ac_prog", so it can be a program name with args.
5278 set dummy $ac_prog; ac_word=$2
5279 echo "$as_me:$LINENO: checking for $ac_word" >&5
5280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5281 if test "${ac_cv_prog_LP+set}" = set; then
5282 echo $ECHO_N "(cached) $ECHO_C" >&6
5283 else
5284 if test -n "$LP"; then
5285 ac_cv_prog_LP="$LP" # Let the user override the test.
5286 else
5287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5288 for as_dir in $PATH
5290 IFS=$as_save_IFS
5291 test -z "$as_dir" && as_dir=.
5292 for ac_exec_ext in '' $ac_executable_extensions; do
5293 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5294 ac_cv_prog_LP="$ac_prog"
5295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5296 break 2
5298 done
5299 done
5303 LP=$ac_cv_prog_LP
5304 if test -n "$LP"; then
5305 echo "$as_me:$LINENO: result: $LP" >&5
5306 echo "${ECHO_T}$LP" >&6
5307 else
5308 echo "$as_me:$LINENO: result: no" >&5
5309 echo "${ECHO_T}no" >&6
5312 test -n "$LP" && break
5313 done
5315 if test -n "$LPR" && test -n "$LP"; then
5316 # HP-UX provides an lpr command that emulates lpr using lp,
5317 # but it doesn't have lpq; in this case we want to use lp
5318 # rather than lpr.
5319 for ac_prog in lpq
5321 # Extract the first word of "$ac_prog", so it can be a program name with args.
5322 set dummy $ac_prog; ac_word=$2
5323 echo "$as_me:$LINENO: checking for $ac_word" >&5
5324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5325 if test "${ac_cv_prog_LPQ+set}" = set; then
5326 echo $ECHO_N "(cached) $ECHO_C" >&6
5327 else
5328 if test -n "$LPQ"; then
5329 ac_cv_prog_LPQ="$LPQ" # Let the user override the test.
5330 else
5331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5332 for as_dir in $PATH
5334 IFS=$as_save_IFS
5335 test -z "$as_dir" && as_dir=.
5336 for ac_exec_ext in '' $ac_executable_extensions; do
5337 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5338 ac_cv_prog_LPQ="$ac_prog"
5339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5340 break 2
5342 done
5343 done
5347 LPQ=$ac_cv_prog_LPQ
5348 if test -n "$LPQ"; then
5349 echo "$as_me:$LINENO: result: $LPQ" >&5
5350 echo "${ECHO_T}$LPQ" >&6
5351 else
5352 echo "$as_me:$LINENO: result: no" >&5
5353 echo "${ECHO_T}no" >&6
5356 test -n "$LPQ" && break
5357 done
5359 test -n "$LPQ" || LPR=
5361 if test -n "$LPR"; then
5362 PSPRINT="$LPR"
5363 elif test -n "$LP"; then
5364 PSPRINT="$LP"
5368 echo "$as_me:$LINENO: checking for command to use for printing PostScript files" >&5
5369 echo $ECHO_N "checking for command to use for printing PostScript files... $ECHO_C" >&6
5370 echo "$as_me:$LINENO: result: $PSPRINT" >&5
5371 echo "${ECHO_T}$PSPRINT" >&6
5373 # Figure out DVIPRINT from PSPRINT.
5374 echo "$as_me:$LINENO: checking for command to use for printing dvi files" >&5
5375 echo $ECHO_N "checking for command to use for printing dvi files... $ECHO_C" >&6
5376 if test -n "$PSPRINT" && test -z "$DVIPRINT"; then
5377 if test "x$PSPRINT" = "xlpr"; then
5378 DVIPRINT="lpr -d"
5379 else
5380 DVIPRINT="$PSPRINT"
5384 echo "$as_me:$LINENO: result: $DVIPRINT" >&5
5385 echo "${ECHO_T}$DVIPRINT" >&6
5386 # Extract the first word of "perl", so it can be a program name with args.
5387 set dummy perl; ac_word=$2
5388 echo "$as_me:$LINENO: checking for $ac_word" >&5
5389 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5390 if test "${ac_cv_path_PERLPATH+set}" = set; then
5391 echo $ECHO_N "(cached) $ECHO_C" >&6
5392 else
5393 case $PERLPATH in
5394 [\\/]* | ?:[\\/]*)
5395 ac_cv_path_PERLPATH="$PERLPATH" # Let the user override the test with a path.
5398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5399 for as_dir in $PATH
5401 IFS=$as_save_IFS
5402 test -z "$as_dir" && as_dir=.
5403 for ac_exec_ext in '' $ac_executable_extensions; do
5404 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5405 ac_cv_path_PERLPATH="$as_dir/$ac_word$ac_exec_ext"
5406 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5407 break 2
5409 done
5410 done
5412 test -z "$ac_cv_path_PERLPATH" && ac_cv_path_PERLPATH="/usr/bin/perl"
5414 esac
5416 PERLPATH=$ac_cv_path_PERLPATH
5418 if test -n "$PERLPATH"; then
5419 echo "$as_me:$LINENO: result: $PERLPATH" >&5
5420 echo "${ECHO_T}$PERLPATH" >&6
5421 else
5422 echo "$as_me:$LINENO: result: no" >&5
5423 echo "${ECHO_T}no" >&6
5426 for ac_prog in byacc 'bison -y'
5428 # Extract the first word of "$ac_prog", so it can be a program name with args.
5429 set dummy $ac_prog; ac_word=$2
5430 echo "$as_me:$LINENO: checking for $ac_word" >&5
5431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5432 if test "${ac_cv_prog_YACC+set}" = set; then
5433 echo $ECHO_N "(cached) $ECHO_C" >&6
5434 else
5435 if test -n "$YACC"; then
5436 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5437 else
5438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5439 for as_dir in $PATH
5441 IFS=$as_save_IFS
5442 test -z "$as_dir" && as_dir=.
5443 for ac_exec_ext in '' $ac_executable_extensions; do
5444 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5445 ac_cv_prog_YACC="$ac_prog"
5446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5447 break 2
5449 done
5450 done
5454 YACC=$ac_cv_prog_YACC
5455 if test -n "$YACC"; then
5456 echo "$as_me:$LINENO: result: $YACC" >&5
5457 echo "${ECHO_T}$YACC" >&6
5458 else
5459 echo "$as_me:$LINENO: result: no" >&5
5460 echo "${ECHO_T}no" >&6
5463 test -n "$YACC" && break
5464 done
5465 test -n "$YACC" || YACC="yacc"
5467 if test -n "$ac_tool_prefix"; then
5468 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5469 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5470 echo "$as_me:$LINENO: checking for $ac_word" >&5
5471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5472 if test "${ac_cv_prog_RANLIB+set}" = set; then
5473 echo $ECHO_N "(cached) $ECHO_C" >&6
5474 else
5475 if test -n "$RANLIB"; then
5476 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5477 else
5478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5479 for as_dir in $PATH
5481 IFS=$as_save_IFS
5482 test -z "$as_dir" && as_dir=.
5483 for ac_exec_ext in '' $ac_executable_extensions; do
5484 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5485 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5487 break 2
5489 done
5490 done
5494 RANLIB=$ac_cv_prog_RANLIB
5495 if test -n "$RANLIB"; then
5496 echo "$as_me:$LINENO: result: $RANLIB" >&5
5497 echo "${ECHO_T}$RANLIB" >&6
5498 else
5499 echo "$as_me:$LINENO: result: no" >&5
5500 echo "${ECHO_T}no" >&6
5504 if test -z "$ac_cv_prog_RANLIB"; then
5505 ac_ct_RANLIB=$RANLIB
5506 # Extract the first word of "ranlib", so it can be a program name with args.
5507 set dummy ranlib; ac_word=$2
5508 echo "$as_me:$LINENO: checking for $ac_word" >&5
5509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5510 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5511 echo $ECHO_N "(cached) $ECHO_C" >&6
5512 else
5513 if test -n "$ac_ct_RANLIB"; then
5514 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5515 else
5516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5517 for as_dir in $PATH
5519 IFS=$as_save_IFS
5520 test -z "$as_dir" && as_dir=.
5521 for ac_exec_ext in '' $ac_executable_extensions; do
5522 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5523 ac_cv_prog_ac_ct_RANLIB="ranlib"
5524 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5525 break 2
5527 done
5528 done
5532 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5533 if test -n "$ac_ct_RANLIB"; then
5534 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5535 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5536 else
5537 echo "$as_me:$LINENO: result: no" >&5
5538 echo "${ECHO_T}no" >&6
5541 if test "x$ac_ct_RANLIB" = x; then
5542 RANLIB=":"
5543 else
5544 if test "$build" != "$host"; then
5545 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5546 whose name does not start with the host triplet. If you think this
5547 configuration is useful to you, please write to autoconf@gnu.org." >&5
5548 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5549 whose name does not start with the host triplet. If you think this
5550 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5552 RANLIB=$ac_ct_RANLIB
5554 else
5555 RANLIB="$ac_cv_prog_RANLIB"
5558 ac_aux_dir=
5559 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
5560 if test -f $ac_dir/install-sh; then
5561 ac_aux_dir=$ac_dir
5562 ac_install_sh="$ac_aux_dir/install-sh -c"
5563 break
5564 elif test -f $ac_dir/install.sh; then
5565 ac_aux_dir=$ac_dir
5566 ac_install_sh="$ac_aux_dir/install.sh -c"
5567 break
5568 elif test -f $ac_dir/shtool; then
5569 ac_aux_dir=$ac_dir
5570 ac_install_sh="$ac_aux_dir/shtool install -c"
5571 break
5573 done
5574 if test -z "$ac_aux_dir"; then
5575 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
5576 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
5577 { (exit 1); exit 1; }; }
5579 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
5580 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
5581 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
5584 ac_dir=`cd $ac_aux_dir; pwd`
5585 ac_install_sh="$ac_dir/install-sh -c"
5586 for ac_prog in install-info
5588 # Extract the first word of "$ac_prog", so it can be a program name with args.
5589 set dummy $ac_prog; ac_word=$2
5590 echo "$as_me:$LINENO: checking for $ac_word" >&5
5591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5592 if test "${ac_cv_prog_INSTALL_INFO+set}" = set; then
5593 echo $ECHO_N "(cached) $ECHO_C" >&6
5594 else
5595 if test -n "$INSTALL_INFO"; then
5596 ac_cv_prog_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test.
5597 else
5598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5599 for as_dir in $PATH
5601 IFS=$as_save_IFS
5602 test -z "$as_dir" && as_dir=.
5603 for ac_exec_ext in '' $ac_executable_extensions; do
5604 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5605 ac_cv_prog_INSTALL_INFO="$ac_prog"
5606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5607 break 2
5609 done
5610 done
5614 INSTALL_INFO=$ac_cv_prog_INSTALL_INFO
5615 if test -n "$INSTALL_INFO"; then
5616 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5617 echo "${ECHO_T}$INSTALL_INFO" >&6
5618 else
5619 echo "$as_me:$LINENO: result: no" >&5
5620 echo "${ECHO_T}no" >&6
5623 test -n "$INSTALL_INFO" && break
5624 done
5625 test -n "$INSTALL_INFO" || INSTALL_INFO=":"
5627 # Find a good install program. We prefer a C program (faster),
5628 # so one script is as good as another. But avoid the broken or
5629 # incompatible versions:
5630 # SysV /etc/install, /usr/sbin/install
5631 # SunOS /usr/etc/install
5632 # IRIX /sbin/install
5633 # AIX /bin/install
5634 # AmigaOS /C/install, which installs bootblocks on floppy discs
5635 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5636 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5637 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5638 # OS/2's system install, which has a completely different semantic
5639 # ./install, which can be erroneously created by make from ./install.sh.
5640 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5641 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5642 if test -z "$INSTALL"; then
5643 if test "${ac_cv_path_install+set}" = set; then
5644 echo $ECHO_N "(cached) $ECHO_C" >&6
5645 else
5646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5647 for as_dir in $PATH
5649 IFS=$as_save_IFS
5650 test -z "$as_dir" && as_dir=.
5651 # Account for people who put trailing slashes in PATH elements.
5652 case $as_dir/ in
5653 ./ | .// | /cC/* | \
5654 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5655 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5656 /usr/ucb/* ) ;;
5658 # OSF1 and SCO ODT 3.0 have their own names for install.
5659 # Don't use installbsd from OSF since it installs stuff as root
5660 # by default.
5661 for ac_prog in ginstall scoinst install; do
5662 for ac_exec_ext in '' $ac_executable_extensions; do
5663 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5664 if test $ac_prog = install &&
5665 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5666 # AIX install. It has an incompatible calling convention.
5668 elif test $ac_prog = install &&
5669 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5670 # program-specific install script used by HP pwplus--don't use.
5672 else
5673 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5674 break 3
5677 done
5678 done
5680 esac
5681 done
5685 if test "${ac_cv_path_install+set}" = set; then
5686 INSTALL=$ac_cv_path_install
5687 else
5688 # As a last resort, use the slow shell script. Don't cache a
5689 # value for INSTALL within a source directory, because that will
5690 # break other packages using the cache if that directory is
5691 # removed, or if the value is a relative name.
5692 INSTALL=$ac_install_sh
5695 echo "$as_me:$LINENO: result: $INSTALL" >&5
5696 echo "${ECHO_T}$INSTALL" >&6
5698 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5699 # It thinks the first close brace ends the variable substitution.
5700 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5702 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5704 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5706 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5707 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5708 LN_S=$as_ln_s
5709 if test "$LN_S" = "ln -s"; then
5710 echo "$as_me:$LINENO: result: yes" >&5
5711 echo "${ECHO_T}yes" >&6
5712 else
5713 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5714 echo "${ECHO_T}no, using $LN_S" >&6
5718 # use a dummy substitution if no csh hack is necessary to avoid errors
5719 # with non-GNU sed programs
5720 echo "$as_me:$LINENO: checking for csh hash hack" >&5
5721 echo $ECHO_N "checking for csh hash hack... $ECHO_C" >&6
5723 cat <<EOF >conftest.sh
5724 #!/bin/sh
5725 true || exit 0
5726 export PATH || exit 0
5727 exit 1
5730 chmod +x conftest.sh
5731 if echo ./conftest.sh | (csh >/dev/null 2>&1) >/dev/null 2>&1; then
5732 echo "$as_me:$LINENO: result: yes" >&5
5733 echo "${ECHO_T}yes" >&6
5734 SH_SCRIPT_SED_CMD='1s/.*/:/'
5735 else
5736 echo "$as_me:$LINENO: result: no" >&5
5737 echo "${ECHO_T}no" >&6
5738 SH_SCRIPT_SED_CMD='1s/a/a/'
5740 rm -f conftest.sh
5743 # checks for headers
5744 echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5745 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6
5746 if test "${ac_cv_path_GREP+set}" = set; then
5747 echo $ECHO_N "(cached) $ECHO_C" >&6
5748 else
5749 # Extract the first word of "grep ggrep" to use in msg output
5750 if test -z "$GREP"; then
5751 set dummy grep ggrep; ac_prog_name=$2
5752 if test "${ac_cv_path_GREP+set}" = set; then
5753 echo $ECHO_N "(cached) $ECHO_C" >&6
5754 else
5755 # Create a temporary directory, and hook for its removal unless debugging.
5756 $debug ||
5758 trap 'exit_status=$?; rm -f -r $tmp && exit $exit_status' 0
5759 trap '{ (exit 1); exit 1; }' 1 2 13 15
5762 # Create a (secure) tmp directory for tmp files.
5763 : ${TMPDIR=/tmp}
5765 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/GREPXXXXXX") 2>/dev/null` &&
5766 test -n "$tmp" && test -d "$tmp"
5767 } ||
5769 tmp=$TMPDIR/GREP$$-$RANDOM
5770 (umask 077 && mkdir $tmp)
5771 } ||
5773 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
5774 { (exit 1); exit 1; }
5776 ac_path_GREP_found=false
5777 # Loop through the user's path and test for each of PROGNAME-LIST
5778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5779 as_dummy="$PATH:/usr/xpg4/bin"
5780 for as_dir in $as_dummy
5782 IFS=$as_save_IFS
5783 test -z "$as_dir" && as_dir=.
5784 for ac_prog in grep ggrep; do
5785 for ac_exec_ext in '' $ac_executable_extensions; do
5786 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5787 test -f "$ac_path_GREP" || continue
5788 $ac_path_GREP_found || if $as_executable_p "$ac_path_GREP"; then
5789 # Check for GNU ac_path_GREP and select it if it is found.
5790 # Check for GNU $ac_path_GREP
5791 if "$ac_path_GREP" --version 2>&1 < /dev/null | grep 'GNU' >/dev/null; then
5792 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:
5793 else
5794 ac_count=0
5795 echo $ECHO_N "0123456789$ECHO_C" >"$tmp/conftest.in"
5796 while :
5798 cat "$tmp/conftest.in" "$tmp/conftest.in" >"$tmp/conftest.tmp"
5799 mv "$tmp/conftest.tmp" "$tmp/conftest.in"
5800 cp "$tmp/conftest.in" "$tmp/conftest.nl"
5801 echo 'GREP' >> "$tmp/conftest.nl"
5802 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "$tmp/conftest.nl" >"$tmp/conftest.out" 2>/dev/null || break
5803 diff "$tmp/conftest.out" "$tmp/conftest.nl" >/dev/null 2>&1 || break
5804 ac_count=`expr $ac_count + 1`
5805 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5806 # Best one so far, save it but keep looking for a better one
5807 ac_cv_path_GREP="$ac_path_GREP"
5808 ac_path_GREP_max=$ac_count
5810 # 10*(2^10) chars as input seems more than enough
5811 test $ac_count -gt 10 && break
5812 done
5817 $ac_path_GREP_found && break 3
5818 done
5819 done
5821 done
5823 rm -rf "$tmp"
5827 GREP="$ac_cv_path_GREP"
5828 if test -z "$GREP"; then
5829 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH:/usr/xpg4/bin" >&5
5830 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH:/usr/xpg4/bin" >&2;}
5831 { (exit 1); exit 1; }; }
5838 echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5839 echo "${ECHO_T}$ac_cv_path_GREP" >&6
5840 GREP="$ac_cv_path_GREP"
5843 echo "$as_me:$LINENO: checking for egrep" >&5
5844 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5845 if test "${ac_cv_path_EGREP+set}" = set; then
5846 echo $ECHO_N "(cached) $ECHO_C" >&6
5847 else
5848 if echo a | ($GREP -E '(a|b)') >/dev/null 2>&1
5849 then ac_cv_path_EGREP="$GREP -E"
5850 else
5851 # Extract the first word of "egrep" to use in msg output
5852 if test -z "$EGREP"; then
5853 set dummy egrep; ac_prog_name=$2
5854 if test "${ac_cv_path_EGREP+set}" = set; then
5855 echo $ECHO_N "(cached) $ECHO_C" >&6
5856 else
5857 # Create a temporary directory, and hook for its removal unless debugging.
5858 $debug ||
5860 trap 'exit_status=$?; rm -f -r $tmp && exit $exit_status' 0
5861 trap '{ (exit 1); exit 1; }' 1 2 13 15
5864 # Create a (secure) tmp directory for tmp files.
5865 : ${TMPDIR=/tmp}
5867 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/EGREPXXXXXX") 2>/dev/null` &&
5868 test -n "$tmp" && test -d "$tmp"
5869 } ||
5871 tmp=$TMPDIR/EGREP$$-$RANDOM
5872 (umask 077 && mkdir $tmp)
5873 } ||
5875 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
5876 { (exit 1); exit 1; }
5878 ac_path_EGREP_found=false
5879 # Loop through the user's path and test for each of PROGNAME-LIST
5880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5881 as_dummy="$PATH:/usr/xpg4/bin"
5882 for as_dir in $as_dummy
5884 IFS=$as_save_IFS
5885 test -z "$as_dir" && as_dir=.
5886 for ac_prog in egrep; do
5887 for ac_exec_ext in '' $ac_executable_extensions; do
5888 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5889 test -f "$ac_path_EGREP" || continue
5890 $ac_path_EGREP_found || if $as_executable_p "$ac_path_EGREP"; then
5891 # Check for GNU ac_path_EGREP and select it if it is found.
5892 # Check for GNU $ac_path_EGREP
5893 if "$ac_path_EGREP" --version 2>&1 < /dev/null | grep 'GNU' >/dev/null; then
5894 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:
5895 else
5896 ac_count=0
5897 echo $ECHO_N "0123456789$ECHO_C" >"$tmp/conftest.in"
5898 while :
5900 cat "$tmp/conftest.in" "$tmp/conftest.in" >"$tmp/conftest.tmp"
5901 mv "$tmp/conftest.tmp" "$tmp/conftest.in"
5902 cp "$tmp/conftest.in" "$tmp/conftest.nl"
5903 echo 'EGREP' >> "$tmp/conftest.nl"
5904 "$ac_path_EGREP" 'EGREP$' < "$tmp/conftest.nl" >"$tmp/conftest.out" 2>/dev/null || break
5905 diff "$tmp/conftest.out" "$tmp/conftest.nl" >/dev/null 2>&1 || break
5906 ac_count=`expr $ac_count + 1`
5907 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5908 # Best one so far, save it but keep looking for a better one
5909 ac_cv_path_EGREP="$ac_path_EGREP"
5910 ac_path_EGREP_max=$ac_count
5912 # 10*(2^10) chars as input seems more than enough
5913 test $ac_count -gt 10 && break
5914 done
5919 $ac_path_EGREP_found && break 3
5920 done
5921 done
5923 done
5925 rm -rf "$tmp"
5929 EGREP="$ac_cv_path_EGREP"
5930 if test -z "$EGREP"; then
5931 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH:/usr/xpg4/bin" >&5
5932 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH:/usr/xpg4/bin" >&2;}
5933 { (exit 1); exit 1; }; }
5941 echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5942 echo "${ECHO_T}$ac_cv_path_EGREP" >&6
5943 EGREP="$ac_cv_path_EGREP"
5946 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5947 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5948 if test "${ac_cv_header_stdc+set}" = set; then
5949 echo $ECHO_N "(cached) $ECHO_C" >&6
5950 else
5951 cat >conftest.$ac_ext <<_ACEOF
5952 /* confdefs.h. */
5953 _ACEOF
5954 cat confdefs.h >>conftest.$ac_ext
5955 cat >>conftest.$ac_ext <<_ACEOF
5956 /* end confdefs.h. */
5957 #include <stdlib.h>
5958 #include <stdarg.h>
5959 #include <string.h>
5960 #include <float.h>
5963 main ()
5967 return 0;
5969 _ACEOF
5970 rm -f conftest.$ac_objext
5971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5972 (eval $ac_compile) 2>conftest.er1
5973 ac_status=$?
5974 grep -v '^ *+' conftest.er1 >conftest.err
5975 rm -f conftest.er1
5976 cat conftest.err >&5
5977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5978 (exit $ac_status); } &&
5979 { ac_try='test -z "$ac_c_werror_flag"
5980 || test ! -s conftest.err'
5981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5982 (eval $ac_try) 2>&5
5983 ac_status=$?
5984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5985 (exit $ac_status); }; } &&
5986 { ac_try='test -s conftest.$ac_objext'
5987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5988 (eval $ac_try) 2>&5
5989 ac_status=$?
5990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5991 (exit $ac_status); }; }; then
5992 ac_cv_header_stdc=yes
5993 else
5994 echo "$as_me: failed program was:" >&5
5995 sed 's/^/| /' conftest.$ac_ext >&5
5997 ac_cv_header_stdc=no
5999 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6001 if test $ac_cv_header_stdc = yes; then
6002 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6003 cat >conftest.$ac_ext <<_ACEOF
6004 /* confdefs.h. */
6005 _ACEOF
6006 cat confdefs.h >>conftest.$ac_ext
6007 cat >>conftest.$ac_ext <<_ACEOF
6008 /* end confdefs.h. */
6009 #include <string.h>
6011 _ACEOF
6012 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6013 $EGREP "memchr" >/dev/null 2>&1; then
6015 else
6016 ac_cv_header_stdc=no
6018 rm -f conftest*
6022 if test $ac_cv_header_stdc = yes; then
6023 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6024 cat >conftest.$ac_ext <<_ACEOF
6025 /* confdefs.h. */
6026 _ACEOF
6027 cat confdefs.h >>conftest.$ac_ext
6028 cat >>conftest.$ac_ext <<_ACEOF
6029 /* end confdefs.h. */
6030 #include <stdlib.h>
6032 _ACEOF
6033 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6034 $EGREP "free" >/dev/null 2>&1; then
6036 else
6037 ac_cv_header_stdc=no
6039 rm -f conftest*
6043 if test $ac_cv_header_stdc = yes; then
6044 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6045 if test "$cross_compiling" = yes; then
6047 else
6048 cat >conftest.$ac_ext <<_ACEOF
6049 /* confdefs.h. */
6050 _ACEOF
6051 cat confdefs.h >>conftest.$ac_ext
6052 cat >>conftest.$ac_ext <<_ACEOF
6053 /* end confdefs.h. */
6054 #include <ctype.h>
6055 #include <stdlib.h>
6056 #if ((' ' & 0x0FF) == 0x020)
6057 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6058 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6059 #else
6060 # define ISLOWER(c) \
6061 (('a' <= (c) && (c) <= 'i') \
6062 || ('j' <= (c) && (c) <= 'r') \
6063 || ('s' <= (c) && (c) <= 'z'))
6064 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6065 #endif
6067 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6069 main ()
6071 int i;
6072 for (i = 0; i < 256; i++)
6073 if (XOR (islower (i), ISLOWER (i))
6074 || toupper (i) != TOUPPER (i))
6075 exit (2);
6076 exit (0);
6078 _ACEOF
6079 rm -f conftest$ac_exeext
6080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6081 (eval $ac_link) 2>&5
6082 ac_status=$?
6083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6086 (eval $ac_try) 2>&5
6087 ac_status=$?
6088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6089 (exit $ac_status); }; }; then
6091 else
6092 echo "$as_me: program exited with status $ac_status" >&5
6093 echo "$as_me: failed program was:" >&5
6094 sed 's/^/| /' conftest.$ac_ext >&5
6096 ( exit $ac_status )
6097 ac_cv_header_stdc=no
6099 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6103 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6104 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6105 if test $ac_cv_header_stdc = yes; then
6107 cat >>confdefs.h <<\_ACEOF
6108 #define STDC_HEADERS 1
6109 _ACEOF
6113 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6123 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6124 inttypes.h stdint.h unistd.h
6126 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6127 echo "$as_me:$LINENO: checking for $ac_header" >&5
6128 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6129 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6130 echo $ECHO_N "(cached) $ECHO_C" >&6
6131 else
6132 cat >conftest.$ac_ext <<_ACEOF
6133 /* confdefs.h. */
6134 _ACEOF
6135 cat confdefs.h >>conftest.$ac_ext
6136 cat >>conftest.$ac_ext <<_ACEOF
6137 /* end confdefs.h. */
6138 $ac_includes_default
6140 #include <$ac_header>
6141 _ACEOF
6142 rm -f conftest.$ac_objext
6143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6144 (eval $ac_compile) 2>conftest.er1
6145 ac_status=$?
6146 grep -v '^ *+' conftest.er1 >conftest.err
6147 rm -f conftest.er1
6148 cat conftest.err >&5
6149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6150 (exit $ac_status); } &&
6151 { ac_try='test -z "$ac_c_werror_flag"
6152 || test ! -s conftest.err'
6153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6154 (eval $ac_try) 2>&5
6155 ac_status=$?
6156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6157 (exit $ac_status); }; } &&
6158 { ac_try='test -s conftest.$ac_objext'
6159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6160 (eval $ac_try) 2>&5
6161 ac_status=$?
6162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6163 (exit $ac_status); }; }; then
6164 eval "$as_ac_Header=yes"
6165 else
6166 echo "$as_me: failed program was:" >&5
6167 sed 's/^/| /' conftest.$ac_ext >&5
6169 eval "$as_ac_Header=no"
6171 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6173 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6174 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6175 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6176 cat >>confdefs.h <<_ACEOF
6177 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6178 _ACEOF
6182 done
6196 for ac_header in stdlib.h unistd.h dirent.h limits.h sys/dir.h \
6197 string.h strings.h math.h sys/time.h direct.h process.h
6199 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6200 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6201 echo "$as_me:$LINENO: checking for $ac_header" >&5
6202 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6203 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6204 echo $ECHO_N "(cached) $ECHO_C" >&6
6206 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6207 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6208 else
6209 # Is the header compilable?
6210 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6211 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6212 cat >conftest.$ac_ext <<_ACEOF
6213 /* confdefs.h. */
6214 _ACEOF
6215 cat confdefs.h >>conftest.$ac_ext
6216 cat >>conftest.$ac_ext <<_ACEOF
6217 /* end confdefs.h. */
6218 $ac_includes_default
6219 #include <$ac_header>
6220 _ACEOF
6221 rm -f conftest.$ac_objext
6222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6223 (eval $ac_compile) 2>conftest.er1
6224 ac_status=$?
6225 grep -v '^ *+' conftest.er1 >conftest.err
6226 rm -f conftest.er1
6227 cat conftest.err >&5
6228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6229 (exit $ac_status); } &&
6230 { ac_try='test -z "$ac_c_werror_flag"
6231 || test ! -s conftest.err'
6232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6233 (eval $ac_try) 2>&5
6234 ac_status=$?
6235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6236 (exit $ac_status); }; } &&
6237 { ac_try='test -s conftest.$ac_objext'
6238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6239 (eval $ac_try) 2>&5
6240 ac_status=$?
6241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6242 (exit $ac_status); }; }; then
6243 ac_header_compiler=yes
6244 else
6245 echo "$as_me: failed program was:" >&5
6246 sed 's/^/| /' conftest.$ac_ext >&5
6248 ac_header_compiler=no
6250 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6251 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6252 echo "${ECHO_T}$ac_header_compiler" >&6
6254 # Is the header present?
6255 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6256 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6257 cat >conftest.$ac_ext <<_ACEOF
6258 /* confdefs.h. */
6259 _ACEOF
6260 cat confdefs.h >>conftest.$ac_ext
6261 cat >>conftest.$ac_ext <<_ACEOF
6262 /* end confdefs.h. */
6263 #include <$ac_header>
6264 _ACEOF
6265 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6266 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6267 ac_status=$?
6268 grep -v '^ *+' conftest.er1 >conftest.err
6269 rm -f conftest.er1
6270 cat conftest.err >&5
6271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6272 (exit $ac_status); } >/dev/null; then
6273 if test -s conftest.err; then
6274 ac_cpp_err=$ac_c_preproc_warn_flag
6275 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6276 else
6277 ac_cpp_err=
6279 else
6280 ac_cpp_err=yes
6282 if test -z "$ac_cpp_err"; then
6283 ac_header_preproc=yes
6284 else
6285 echo "$as_me: failed program was:" >&5
6286 sed 's/^/| /' conftest.$ac_ext >&5
6288 ac_header_preproc=no
6290 rm -f conftest.err conftest.$ac_ext
6291 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6292 echo "${ECHO_T}$ac_header_preproc" >&6
6294 # So? What about this header?
6295 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6296 yes:no: )
6297 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6298 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6299 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6300 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6301 ac_header_preproc=yes
6303 no:yes:* )
6304 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6305 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6306 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6307 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6308 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6309 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6310 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6311 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6312 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6313 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6314 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6315 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6317 cat <<\_ASBOX
6318 ## ------------------------------------------ ##
6319 ## Report this to the AC_PACKAGE_NAME lists. ##
6320 ## ------------------------------------------ ##
6321 _ASBOX
6323 sed "s/^/$as_me: WARNING: /" >&2
6325 esac
6326 echo "$as_me:$LINENO: checking for $ac_header" >&5
6327 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6328 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6329 echo $ECHO_N "(cached) $ECHO_C" >&6
6330 else
6331 eval "$as_ac_Header=\$ac_header_preproc"
6333 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6334 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6337 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6338 cat >>confdefs.h <<_ACEOF
6339 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6340 _ACEOF
6344 done
6346 echo "$as_me:$LINENO: checking for ISC 3.x or 4.x" >&5
6347 echo $ECHO_N "checking for ISC 3.x or 4.x... $ECHO_C" >&6
6348 if grep '[34]\.' /usr/options/cb.name >/dev/null 2>&1
6349 then
6350 echo "$as_me:$LINENO: result: yes" >&5
6351 echo "${ECHO_T}yes" >&6
6353 cat >>confdefs.h <<\_ACEOF
6354 #define _SYSV3 1
6355 _ACEOF
6357 else
6358 echo "$as_me:$LINENO: result: no" >&5
6359 echo "${ECHO_T}no" >&6
6361 echo "$as_me:$LINENO: checking whether -D_POSIX_SOURCE is necessary" >&5
6362 echo $ECHO_N "checking whether -D_POSIX_SOURCE is necessary... $ECHO_C" >&6
6363 ac_ext=cc
6364 ac_cpp='$CXXCPP $CPPFLAGS'
6365 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6366 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6367 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6369 cat >conftest.$ac_ext <<_ACEOF
6371 /* confdefs.h. */
6372 _ACEOF
6373 cat confdefs.h >>conftest.$ac_ext
6374 cat >>conftest.$ac_ext <<_ACEOF
6375 /* end confdefs.h. */
6378 #include <stdio.h>
6379 extern "C" { void fileno(int); }
6383 main ()
6387 return 0;
6390 _ACEOF
6391 rm -f conftest.$ac_objext
6392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6393 (eval $ac_compile) 2>conftest.er1
6394 ac_status=$?
6395 grep -v '^ *+' conftest.er1 >conftest.err
6396 rm -f conftest.er1
6397 cat conftest.err >&5
6398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6399 (exit $ac_status); } &&
6400 { ac_try='test -z "$ac_cxx_werror_flag"
6401 || test ! -s conftest.err'
6402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6403 (eval $ac_try) 2>&5
6404 ac_status=$?
6405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6406 (exit $ac_status); }; } &&
6407 { ac_try='test -s conftest.$ac_objext'
6408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6409 (eval $ac_try) 2>&5
6410 ac_status=$?
6411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6412 (exit $ac_status); }; }; then
6413 echo "$as_me:$LINENO: result: yes" >&5
6414 echo "${ECHO_T}yes" >&6
6416 cat >>confdefs.h <<\_ACEOF
6417 #define _POSIX_SOURCE 1
6418 _ACEOF
6420 else
6421 echo "$as_me: failed program was:" >&5
6422 sed 's/^/| /' conftest.$ac_ext >&5
6424 echo "$as_me:$LINENO: result: no" >&5
6425 echo "${ECHO_T}no" >&6
6427 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6428 ac_ext=c
6429 ac_cpp='$CPP $CPPFLAGS'
6430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6435 # checks for header stuff
6436 ac_ext=cc
6437 ac_cpp='$CXXCPP $CPPFLAGS'
6438 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6439 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6440 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6442 echo "$as_me:$LINENO: checking for return type of srand" >&5
6443 echo $ECHO_N "checking for return type of srand... $ECHO_C" >&6
6444 cat >conftest.$ac_ext <<_ACEOF
6446 /* confdefs.h. */
6447 _ACEOF
6448 cat confdefs.h >>conftest.$ac_ext
6449 cat >>conftest.$ac_ext <<_ACEOF
6450 /* end confdefs.h. */
6453 #include <stdlib.h>
6454 extern "C" { void srand(unsigned int); }
6458 main ()
6462 return 0;
6465 _ACEOF
6466 rm -f conftest.$ac_objext
6467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6468 (eval $ac_compile) 2>conftest.er1
6469 ac_status=$?
6470 grep -v '^ *+' conftest.er1 >conftest.err
6471 rm -f conftest.er1
6472 cat conftest.err >&5
6473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6474 (exit $ac_status); } &&
6475 { ac_try='test -z "$ac_cxx_werror_flag"
6476 || test ! -s conftest.err'
6477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6478 (eval $ac_try) 2>&5
6479 ac_status=$?
6480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6481 (exit $ac_status); }; } &&
6482 { ac_try='test -s conftest.$ac_objext'
6483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6484 (eval $ac_try) 2>&5
6485 ac_status=$?
6486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6487 (exit $ac_status); }; }; then
6488 echo "$as_me:$LINENO: result: void" >&5
6489 echo "${ECHO_T}void" >&6
6491 cat >>confdefs.h <<\_ACEOF
6492 #define RET_TYPE_SRAND_IS_VOID 1
6493 _ACEOF
6495 else
6496 echo "$as_me: failed program was:" >&5
6497 sed 's/^/| /' conftest.$ac_ext >&5
6499 echo "$as_me:$LINENO: result: int" >&5
6500 echo "${ECHO_T}int" >&6
6502 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6503 ac_ext=c
6504 ac_cpp='$CPP $CPPFLAGS'
6505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6509 echo "$as_me:$LINENO: checking whether gettimeofday must be declared" >&5
6510 echo $ECHO_N "checking whether gettimeofday must be declared... $ECHO_C" >&6
6511 ac_ext=cc
6512 ac_cpp='$CXXCPP $CPPFLAGS'
6513 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6514 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6515 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6517 if test "${groff_cv_decl_needed_gettimeofday+set}" = set; then
6518 echo $ECHO_N "(cached) $ECHO_C" >&6
6519 else
6520 cat >conftest.$ac_ext <<_ACEOF
6522 /* confdefs.h. */
6523 _ACEOF
6524 cat confdefs.h >>conftest.$ac_ext
6525 cat >>conftest.$ac_ext <<_ACEOF
6526 /* end confdefs.h. */
6529 #include <stdio.h>
6530 #ifdef HAVE_STRING_H
6531 #include <string.h>
6532 #endif
6533 #ifdef HAVE_STRINGS_H
6534 #include <strings.h>
6535 #endif
6536 #ifdef HAVE_STDLIB_H
6537 #include <stdlib.h>
6538 #endif
6539 #ifdef HAVE_SYS_TIME_H
6540 #include <sys/time.h>
6541 #endif
6542 #ifdef HAVE_UNISTD_H
6543 #include <unistd.h>
6544 #endif
6545 #ifdef HAVE_MATH_H
6546 #include <math.h>
6547 #endif
6551 main ()
6555 #ifndef gettimeofday
6556 char *p = (char *) gettimeofday;
6557 #endif
6561 return 0;
6564 _ACEOF
6565 rm -f conftest.$ac_objext
6566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6567 (eval $ac_compile) 2>conftest.er1
6568 ac_status=$?
6569 grep -v '^ *+' conftest.er1 >conftest.err
6570 rm -f conftest.er1
6571 cat conftest.err >&5
6572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6573 (exit $ac_status); } &&
6574 { ac_try='test -z "$ac_cxx_werror_flag"
6575 || test ! -s conftest.err'
6576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6577 (eval $ac_try) 2>&5
6578 ac_status=$?
6579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6580 (exit $ac_status); }; } &&
6581 { ac_try='test -s conftest.$ac_objext'
6582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6583 (eval $ac_try) 2>&5
6584 ac_status=$?
6585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6586 (exit $ac_status); }; }; then
6587 groff_cv_decl_needed_gettimeofday=no
6588 else
6589 echo "$as_me: failed program was:" >&5
6590 sed 's/^/| /' conftest.$ac_ext >&5
6592 groff_cv_decl_needed_gettimeofday=yes
6594 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6597 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_gettimeofday" >&5
6598 echo "${ECHO_T}$groff_cv_decl_needed_gettimeofday" >&6
6599 if test $groff_cv_decl_needed_gettimeofday = yes; then
6601 cat >>confdefs.h <<\_ACEOF
6602 #define NEED_DECLARATION_GETTIMEOFDAY 1
6603 _ACEOF
6606 ac_ext=c
6607 ac_cpp='$CPP $CPPFLAGS'
6608 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6609 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6610 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6612 echo "$as_me:$LINENO: checking whether hypot must be declared" >&5
6613 echo $ECHO_N "checking whether hypot must be declared... $ECHO_C" >&6
6614 ac_ext=cc
6615 ac_cpp='$CXXCPP $CPPFLAGS'
6616 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6617 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6618 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6620 if test "${groff_cv_decl_needed_hypot+set}" = set; then
6621 echo $ECHO_N "(cached) $ECHO_C" >&6
6622 else
6623 cat >conftest.$ac_ext <<_ACEOF
6625 /* confdefs.h. */
6626 _ACEOF
6627 cat confdefs.h >>conftest.$ac_ext
6628 cat >>conftest.$ac_ext <<_ACEOF
6629 /* end confdefs.h. */
6632 #include <stdio.h>
6633 #ifdef HAVE_STRING_H
6634 #include <string.h>
6635 #endif
6636 #ifdef HAVE_STRINGS_H
6637 #include <strings.h>
6638 #endif
6639 #ifdef HAVE_STDLIB_H
6640 #include <stdlib.h>
6641 #endif
6642 #ifdef HAVE_SYS_TIME_H
6643 #include <sys/time.h>
6644 #endif
6645 #ifdef HAVE_UNISTD_H
6646 #include <unistd.h>
6647 #endif
6648 #ifdef HAVE_MATH_H
6649 #include <math.h>
6650 #endif
6654 main ()
6658 #ifndef hypot
6659 char *p = (char *) hypot;
6660 #endif
6664 return 0;
6667 _ACEOF
6668 rm -f conftest.$ac_objext
6669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6670 (eval $ac_compile) 2>conftest.er1
6671 ac_status=$?
6672 grep -v '^ *+' conftest.er1 >conftest.err
6673 rm -f conftest.er1
6674 cat conftest.err >&5
6675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6676 (exit $ac_status); } &&
6677 { ac_try='test -z "$ac_cxx_werror_flag"
6678 || test ! -s conftest.err'
6679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6680 (eval $ac_try) 2>&5
6681 ac_status=$?
6682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6683 (exit $ac_status); }; } &&
6684 { ac_try='test -s conftest.$ac_objext'
6685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6686 (eval $ac_try) 2>&5
6687 ac_status=$?
6688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6689 (exit $ac_status); }; }; then
6690 groff_cv_decl_needed_hypot=no
6691 else
6692 echo "$as_me: failed program was:" >&5
6693 sed 's/^/| /' conftest.$ac_ext >&5
6695 groff_cv_decl_needed_hypot=yes
6697 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6700 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_hypot" >&5
6701 echo "${ECHO_T}$groff_cv_decl_needed_hypot" >&6
6702 if test $groff_cv_decl_needed_hypot = yes; then
6704 cat >>confdefs.h <<\_ACEOF
6705 #define NEED_DECLARATION_HYPOT 1
6706 _ACEOF
6709 ac_ext=c
6710 ac_cpp='$CPP $CPPFLAGS'
6711 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6712 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6713 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6715 echo "$as_me:$LINENO: checking whether popen must be declared" >&5
6716 echo $ECHO_N "checking whether popen must be declared... $ECHO_C" >&6
6717 ac_ext=cc
6718 ac_cpp='$CXXCPP $CPPFLAGS'
6719 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6720 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6721 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6723 if test "${groff_cv_decl_needed_popen+set}" = set; then
6724 echo $ECHO_N "(cached) $ECHO_C" >&6
6725 else
6726 cat >conftest.$ac_ext <<_ACEOF
6728 /* confdefs.h. */
6729 _ACEOF
6730 cat confdefs.h >>conftest.$ac_ext
6731 cat >>conftest.$ac_ext <<_ACEOF
6732 /* end confdefs.h. */
6735 #include <stdio.h>
6736 #ifdef HAVE_STRING_H
6737 #include <string.h>
6738 #endif
6739 #ifdef HAVE_STRINGS_H
6740 #include <strings.h>
6741 #endif
6742 #ifdef HAVE_STDLIB_H
6743 #include <stdlib.h>
6744 #endif
6745 #ifdef HAVE_SYS_TIME_H
6746 #include <sys/time.h>
6747 #endif
6748 #ifdef HAVE_UNISTD_H
6749 #include <unistd.h>
6750 #endif
6751 #ifdef HAVE_MATH_H
6752 #include <math.h>
6753 #endif
6757 main ()
6761 #ifndef popen
6762 char *p = (char *) popen;
6763 #endif
6767 return 0;
6770 _ACEOF
6771 rm -f conftest.$ac_objext
6772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6773 (eval $ac_compile) 2>conftest.er1
6774 ac_status=$?
6775 grep -v '^ *+' conftest.er1 >conftest.err
6776 rm -f conftest.er1
6777 cat conftest.err >&5
6778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6779 (exit $ac_status); } &&
6780 { ac_try='test -z "$ac_cxx_werror_flag"
6781 || test ! -s conftest.err'
6782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6783 (eval $ac_try) 2>&5
6784 ac_status=$?
6785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6786 (exit $ac_status); }; } &&
6787 { ac_try='test -s conftest.$ac_objext'
6788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6789 (eval $ac_try) 2>&5
6790 ac_status=$?
6791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6792 (exit $ac_status); }; }; then
6793 groff_cv_decl_needed_popen=no
6794 else
6795 echo "$as_me: failed program was:" >&5
6796 sed 's/^/| /' conftest.$ac_ext >&5
6798 groff_cv_decl_needed_popen=yes
6800 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6803 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_popen" >&5
6804 echo "${ECHO_T}$groff_cv_decl_needed_popen" >&6
6805 if test $groff_cv_decl_needed_popen = yes; then
6807 cat >>confdefs.h <<\_ACEOF
6808 #define NEED_DECLARATION_POPEN 1
6809 _ACEOF
6812 ac_ext=c
6813 ac_cpp='$CPP $CPPFLAGS'
6814 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6815 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6816 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6818 echo "$as_me:$LINENO: checking whether pclose must be declared" >&5
6819 echo $ECHO_N "checking whether pclose must be declared... $ECHO_C" >&6
6820 ac_ext=cc
6821 ac_cpp='$CXXCPP $CPPFLAGS'
6822 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6823 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6824 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6826 if test "${groff_cv_decl_needed_pclose+set}" = set; then
6827 echo $ECHO_N "(cached) $ECHO_C" >&6
6828 else
6829 cat >conftest.$ac_ext <<_ACEOF
6831 /* confdefs.h. */
6832 _ACEOF
6833 cat confdefs.h >>conftest.$ac_ext
6834 cat >>conftest.$ac_ext <<_ACEOF
6835 /* end confdefs.h. */
6838 #include <stdio.h>
6839 #ifdef HAVE_STRING_H
6840 #include <string.h>
6841 #endif
6842 #ifdef HAVE_STRINGS_H
6843 #include <strings.h>
6844 #endif
6845 #ifdef HAVE_STDLIB_H
6846 #include <stdlib.h>
6847 #endif
6848 #ifdef HAVE_SYS_TIME_H
6849 #include <sys/time.h>
6850 #endif
6851 #ifdef HAVE_UNISTD_H
6852 #include <unistd.h>
6853 #endif
6854 #ifdef HAVE_MATH_H
6855 #include <math.h>
6856 #endif
6860 main ()
6864 #ifndef pclose
6865 char *p = (char *) pclose;
6866 #endif
6870 return 0;
6873 _ACEOF
6874 rm -f conftest.$ac_objext
6875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6876 (eval $ac_compile) 2>conftest.er1
6877 ac_status=$?
6878 grep -v '^ *+' conftest.er1 >conftest.err
6879 rm -f conftest.er1
6880 cat conftest.err >&5
6881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6882 (exit $ac_status); } &&
6883 { ac_try='test -z "$ac_cxx_werror_flag"
6884 || test ! -s conftest.err'
6885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6886 (eval $ac_try) 2>&5
6887 ac_status=$?
6888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6889 (exit $ac_status); }; } &&
6890 { ac_try='test -s conftest.$ac_objext'
6891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6892 (eval $ac_try) 2>&5
6893 ac_status=$?
6894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6895 (exit $ac_status); }; }; then
6896 groff_cv_decl_needed_pclose=no
6897 else
6898 echo "$as_me: failed program was:" >&5
6899 sed 's/^/| /' conftest.$ac_ext >&5
6901 groff_cv_decl_needed_pclose=yes
6903 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6906 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_pclose" >&5
6907 echo "${ECHO_T}$groff_cv_decl_needed_pclose" >&6
6908 if test $groff_cv_decl_needed_pclose = yes; then
6910 cat >>confdefs.h <<\_ACEOF
6911 #define NEED_DECLARATION_PCLOSE 1
6912 _ACEOF
6915 ac_ext=c
6916 ac_cpp='$CPP $CPPFLAGS'
6917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6921 echo "$as_me:$LINENO: checking whether putenv must be declared" >&5
6922 echo $ECHO_N "checking whether putenv must be declared... $ECHO_C" >&6
6923 ac_ext=cc
6924 ac_cpp='$CXXCPP $CPPFLAGS'
6925 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6926 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6927 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6929 if test "${groff_cv_decl_needed_putenv+set}" = set; then
6930 echo $ECHO_N "(cached) $ECHO_C" >&6
6931 else
6932 cat >conftest.$ac_ext <<_ACEOF
6934 /* confdefs.h. */
6935 _ACEOF
6936 cat confdefs.h >>conftest.$ac_ext
6937 cat >>conftest.$ac_ext <<_ACEOF
6938 /* end confdefs.h. */
6941 #include <stdio.h>
6942 #ifdef HAVE_STRING_H
6943 #include <string.h>
6944 #endif
6945 #ifdef HAVE_STRINGS_H
6946 #include <strings.h>
6947 #endif
6948 #ifdef HAVE_STDLIB_H
6949 #include <stdlib.h>
6950 #endif
6951 #ifdef HAVE_SYS_TIME_H
6952 #include <sys/time.h>
6953 #endif
6954 #ifdef HAVE_UNISTD_H
6955 #include <unistd.h>
6956 #endif
6957 #ifdef HAVE_MATH_H
6958 #include <math.h>
6959 #endif
6963 main ()
6967 #ifndef putenv
6968 char *p = (char *) putenv;
6969 #endif
6973 return 0;
6976 _ACEOF
6977 rm -f conftest.$ac_objext
6978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6979 (eval $ac_compile) 2>conftest.er1
6980 ac_status=$?
6981 grep -v '^ *+' conftest.er1 >conftest.err
6982 rm -f conftest.er1
6983 cat conftest.err >&5
6984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6985 (exit $ac_status); } &&
6986 { ac_try='test -z "$ac_cxx_werror_flag"
6987 || test ! -s conftest.err'
6988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6989 (eval $ac_try) 2>&5
6990 ac_status=$?
6991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6992 (exit $ac_status); }; } &&
6993 { ac_try='test -s conftest.$ac_objext'
6994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6995 (eval $ac_try) 2>&5
6996 ac_status=$?
6997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6998 (exit $ac_status); }; }; then
6999 groff_cv_decl_needed_putenv=no
7000 else
7001 echo "$as_me: failed program was:" >&5
7002 sed 's/^/| /' conftest.$ac_ext >&5
7004 groff_cv_decl_needed_putenv=yes
7006 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7009 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_putenv" >&5
7010 echo "${ECHO_T}$groff_cv_decl_needed_putenv" >&6
7011 if test $groff_cv_decl_needed_putenv = yes; then
7013 cat >>confdefs.h <<\_ACEOF
7014 #define NEED_DECLARATION_PUTENV 1
7015 _ACEOF
7018 ac_ext=c
7019 ac_cpp='$CPP $CPPFLAGS'
7020 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7021 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7022 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7024 echo "$as_me:$LINENO: checking whether rand must be declared" >&5
7025 echo $ECHO_N "checking whether rand must be declared... $ECHO_C" >&6
7026 ac_ext=cc
7027 ac_cpp='$CXXCPP $CPPFLAGS'
7028 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7029 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7030 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7032 if test "${groff_cv_decl_needed_rand+set}" = set; then
7033 echo $ECHO_N "(cached) $ECHO_C" >&6
7034 else
7035 cat >conftest.$ac_ext <<_ACEOF
7037 /* confdefs.h. */
7038 _ACEOF
7039 cat confdefs.h >>conftest.$ac_ext
7040 cat >>conftest.$ac_ext <<_ACEOF
7041 /* end confdefs.h. */
7044 #include <stdio.h>
7045 #ifdef HAVE_STRING_H
7046 #include <string.h>
7047 #endif
7048 #ifdef HAVE_STRINGS_H
7049 #include <strings.h>
7050 #endif
7051 #ifdef HAVE_STDLIB_H
7052 #include <stdlib.h>
7053 #endif
7054 #ifdef HAVE_SYS_TIME_H
7055 #include <sys/time.h>
7056 #endif
7057 #ifdef HAVE_UNISTD_H
7058 #include <unistd.h>
7059 #endif
7060 #ifdef HAVE_MATH_H
7061 #include <math.h>
7062 #endif
7066 main ()
7070 #ifndef rand
7071 char *p = (char *) rand;
7072 #endif
7076 return 0;
7079 _ACEOF
7080 rm -f conftest.$ac_objext
7081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7082 (eval $ac_compile) 2>conftest.er1
7083 ac_status=$?
7084 grep -v '^ *+' conftest.er1 >conftest.err
7085 rm -f conftest.er1
7086 cat conftest.err >&5
7087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7088 (exit $ac_status); } &&
7089 { ac_try='test -z "$ac_cxx_werror_flag"
7090 || test ! -s conftest.err'
7091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7092 (eval $ac_try) 2>&5
7093 ac_status=$?
7094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7095 (exit $ac_status); }; } &&
7096 { ac_try='test -s conftest.$ac_objext'
7097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7098 (eval $ac_try) 2>&5
7099 ac_status=$?
7100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7101 (exit $ac_status); }; }; then
7102 groff_cv_decl_needed_rand=no
7103 else
7104 echo "$as_me: failed program was:" >&5
7105 sed 's/^/| /' conftest.$ac_ext >&5
7107 groff_cv_decl_needed_rand=yes
7109 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7112 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_rand" >&5
7113 echo "${ECHO_T}$groff_cv_decl_needed_rand" >&6
7114 if test $groff_cv_decl_needed_rand = yes; then
7116 cat >>confdefs.h <<\_ACEOF
7117 #define NEED_DECLARATION_RAND 1
7118 _ACEOF
7121 ac_ext=c
7122 ac_cpp='$CPP $CPPFLAGS'
7123 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7124 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7125 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7127 echo "$as_me:$LINENO: checking whether snprintf must be declared" >&5
7128 echo $ECHO_N "checking whether snprintf must be declared... $ECHO_C" >&6
7129 ac_ext=cc
7130 ac_cpp='$CXXCPP $CPPFLAGS'
7131 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7132 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7133 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7135 if test "${groff_cv_decl_needed_snprintf+set}" = set; then
7136 echo $ECHO_N "(cached) $ECHO_C" >&6
7137 else
7138 cat >conftest.$ac_ext <<_ACEOF
7140 /* confdefs.h. */
7141 _ACEOF
7142 cat confdefs.h >>conftest.$ac_ext
7143 cat >>conftest.$ac_ext <<_ACEOF
7144 /* end confdefs.h. */
7147 #include <stdio.h>
7148 #ifdef HAVE_STRING_H
7149 #include <string.h>
7150 #endif
7151 #ifdef HAVE_STRINGS_H
7152 #include <strings.h>
7153 #endif
7154 #ifdef HAVE_STDLIB_H
7155 #include <stdlib.h>
7156 #endif
7157 #ifdef HAVE_SYS_TIME_H
7158 #include <sys/time.h>
7159 #endif
7160 #ifdef HAVE_UNISTD_H
7161 #include <unistd.h>
7162 #endif
7163 #ifdef HAVE_MATH_H
7164 #include <math.h>
7165 #endif
7169 main ()
7173 #ifndef snprintf
7174 char *p = (char *) snprintf;
7175 #endif
7179 return 0;
7182 _ACEOF
7183 rm -f conftest.$ac_objext
7184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7185 (eval $ac_compile) 2>conftest.er1
7186 ac_status=$?
7187 grep -v '^ *+' conftest.er1 >conftest.err
7188 rm -f conftest.er1
7189 cat conftest.err >&5
7190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7191 (exit $ac_status); } &&
7192 { ac_try='test -z "$ac_cxx_werror_flag"
7193 || test ! -s conftest.err'
7194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7195 (eval $ac_try) 2>&5
7196 ac_status=$?
7197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7198 (exit $ac_status); }; } &&
7199 { ac_try='test -s conftest.$ac_objext'
7200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7201 (eval $ac_try) 2>&5
7202 ac_status=$?
7203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7204 (exit $ac_status); }; }; then
7205 groff_cv_decl_needed_snprintf=no
7206 else
7207 echo "$as_me: failed program was:" >&5
7208 sed 's/^/| /' conftest.$ac_ext >&5
7210 groff_cv_decl_needed_snprintf=yes
7212 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7215 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_snprintf" >&5
7216 echo "${ECHO_T}$groff_cv_decl_needed_snprintf" >&6
7217 if test $groff_cv_decl_needed_snprintf = yes; then
7219 cat >>confdefs.h <<\_ACEOF
7220 #define NEED_DECLARATION_SNPRINTF 1
7221 _ACEOF
7224 ac_ext=c
7225 ac_cpp='$CPP $CPPFLAGS'
7226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7230 echo "$as_me:$LINENO: checking whether srand must be declared" >&5
7231 echo $ECHO_N "checking whether srand must be declared... $ECHO_C" >&6
7232 ac_ext=cc
7233 ac_cpp='$CXXCPP $CPPFLAGS'
7234 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7235 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7236 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7238 if test "${groff_cv_decl_needed_srand+set}" = set; then
7239 echo $ECHO_N "(cached) $ECHO_C" >&6
7240 else
7241 cat >conftest.$ac_ext <<_ACEOF
7243 /* confdefs.h. */
7244 _ACEOF
7245 cat confdefs.h >>conftest.$ac_ext
7246 cat >>conftest.$ac_ext <<_ACEOF
7247 /* end confdefs.h. */
7250 #include <stdio.h>
7251 #ifdef HAVE_STRING_H
7252 #include <string.h>
7253 #endif
7254 #ifdef HAVE_STRINGS_H
7255 #include <strings.h>
7256 #endif
7257 #ifdef HAVE_STDLIB_H
7258 #include <stdlib.h>
7259 #endif
7260 #ifdef HAVE_SYS_TIME_H
7261 #include <sys/time.h>
7262 #endif
7263 #ifdef HAVE_UNISTD_H
7264 #include <unistd.h>
7265 #endif
7266 #ifdef HAVE_MATH_H
7267 #include <math.h>
7268 #endif
7272 main ()
7276 #ifndef srand
7277 char *p = (char *) srand;
7278 #endif
7282 return 0;
7285 _ACEOF
7286 rm -f conftest.$ac_objext
7287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7288 (eval $ac_compile) 2>conftest.er1
7289 ac_status=$?
7290 grep -v '^ *+' conftest.er1 >conftest.err
7291 rm -f conftest.er1
7292 cat conftest.err >&5
7293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7294 (exit $ac_status); } &&
7295 { ac_try='test -z "$ac_cxx_werror_flag"
7296 || test ! -s conftest.err'
7297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7298 (eval $ac_try) 2>&5
7299 ac_status=$?
7300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7301 (exit $ac_status); }; } &&
7302 { ac_try='test -s conftest.$ac_objext'
7303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7304 (eval $ac_try) 2>&5
7305 ac_status=$?
7306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7307 (exit $ac_status); }; }; then
7308 groff_cv_decl_needed_srand=no
7309 else
7310 echo "$as_me: failed program was:" >&5
7311 sed 's/^/| /' conftest.$ac_ext >&5
7313 groff_cv_decl_needed_srand=yes
7315 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7318 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_srand" >&5
7319 echo "${ECHO_T}$groff_cv_decl_needed_srand" >&6
7320 if test $groff_cv_decl_needed_srand = yes; then
7322 cat >>confdefs.h <<\_ACEOF
7323 #define NEED_DECLARATION_SRAND 1
7324 _ACEOF
7327 ac_ext=c
7328 ac_cpp='$CPP $CPPFLAGS'
7329 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7330 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7331 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7333 echo "$as_me:$LINENO: checking whether strcasecmp must be declared" >&5
7334 echo $ECHO_N "checking whether strcasecmp must be declared... $ECHO_C" >&6
7335 ac_ext=cc
7336 ac_cpp='$CXXCPP $CPPFLAGS'
7337 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7338 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7339 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7341 if test "${groff_cv_decl_needed_strcasecmp+set}" = set; then
7342 echo $ECHO_N "(cached) $ECHO_C" >&6
7343 else
7344 cat >conftest.$ac_ext <<_ACEOF
7346 /* confdefs.h. */
7347 _ACEOF
7348 cat confdefs.h >>conftest.$ac_ext
7349 cat >>conftest.$ac_ext <<_ACEOF
7350 /* end confdefs.h. */
7353 #include <stdio.h>
7354 #ifdef HAVE_STRING_H
7355 #include <string.h>
7356 #endif
7357 #ifdef HAVE_STRINGS_H
7358 #include <strings.h>
7359 #endif
7360 #ifdef HAVE_STDLIB_H
7361 #include <stdlib.h>
7362 #endif
7363 #ifdef HAVE_SYS_TIME_H
7364 #include <sys/time.h>
7365 #endif
7366 #ifdef HAVE_UNISTD_H
7367 #include <unistd.h>
7368 #endif
7369 #ifdef HAVE_MATH_H
7370 #include <math.h>
7371 #endif
7375 main ()
7379 #ifndef strcasecmp
7380 char *p = (char *) strcasecmp;
7381 #endif
7385 return 0;
7388 _ACEOF
7389 rm -f conftest.$ac_objext
7390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7391 (eval $ac_compile) 2>conftest.er1
7392 ac_status=$?
7393 grep -v '^ *+' conftest.er1 >conftest.err
7394 rm -f conftest.er1
7395 cat conftest.err >&5
7396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7397 (exit $ac_status); } &&
7398 { ac_try='test -z "$ac_cxx_werror_flag"
7399 || test ! -s conftest.err'
7400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7401 (eval $ac_try) 2>&5
7402 ac_status=$?
7403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7404 (exit $ac_status); }; } &&
7405 { ac_try='test -s conftest.$ac_objext'
7406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7407 (eval $ac_try) 2>&5
7408 ac_status=$?
7409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7410 (exit $ac_status); }; }; then
7411 groff_cv_decl_needed_strcasecmp=no
7412 else
7413 echo "$as_me: failed program was:" >&5
7414 sed 's/^/| /' conftest.$ac_ext >&5
7416 groff_cv_decl_needed_strcasecmp=yes
7418 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7421 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_strcasecmp" >&5
7422 echo "${ECHO_T}$groff_cv_decl_needed_strcasecmp" >&6
7423 if test $groff_cv_decl_needed_strcasecmp = yes; then
7425 cat >>confdefs.h <<\_ACEOF
7426 #define NEED_DECLARATION_STRCASECMP 1
7427 _ACEOF
7430 ac_ext=c
7431 ac_cpp='$CPP $CPPFLAGS'
7432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7436 echo "$as_me:$LINENO: checking whether strncasecmp must be declared" >&5
7437 echo $ECHO_N "checking whether strncasecmp must be declared... $ECHO_C" >&6
7438 ac_ext=cc
7439 ac_cpp='$CXXCPP $CPPFLAGS'
7440 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7441 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7442 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7444 if test "${groff_cv_decl_needed_strncasecmp+set}" = set; then
7445 echo $ECHO_N "(cached) $ECHO_C" >&6
7446 else
7447 cat >conftest.$ac_ext <<_ACEOF
7449 /* confdefs.h. */
7450 _ACEOF
7451 cat confdefs.h >>conftest.$ac_ext
7452 cat >>conftest.$ac_ext <<_ACEOF
7453 /* end confdefs.h. */
7456 #include <stdio.h>
7457 #ifdef HAVE_STRING_H
7458 #include <string.h>
7459 #endif
7460 #ifdef HAVE_STRINGS_H
7461 #include <strings.h>
7462 #endif
7463 #ifdef HAVE_STDLIB_H
7464 #include <stdlib.h>
7465 #endif
7466 #ifdef HAVE_SYS_TIME_H
7467 #include <sys/time.h>
7468 #endif
7469 #ifdef HAVE_UNISTD_H
7470 #include <unistd.h>
7471 #endif
7472 #ifdef HAVE_MATH_H
7473 #include <math.h>
7474 #endif
7478 main ()
7482 #ifndef strncasecmp
7483 char *p = (char *) strncasecmp;
7484 #endif
7488 return 0;
7491 _ACEOF
7492 rm -f conftest.$ac_objext
7493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7494 (eval $ac_compile) 2>conftest.er1
7495 ac_status=$?
7496 grep -v '^ *+' conftest.er1 >conftest.err
7497 rm -f conftest.er1
7498 cat conftest.err >&5
7499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7500 (exit $ac_status); } &&
7501 { ac_try='test -z "$ac_cxx_werror_flag"
7502 || test ! -s conftest.err'
7503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7504 (eval $ac_try) 2>&5
7505 ac_status=$?
7506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7507 (exit $ac_status); }; } &&
7508 { ac_try='test -s conftest.$ac_objext'
7509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7510 (eval $ac_try) 2>&5
7511 ac_status=$?
7512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7513 (exit $ac_status); }; }; then
7514 groff_cv_decl_needed_strncasecmp=no
7515 else
7516 echo "$as_me: failed program was:" >&5
7517 sed 's/^/| /' conftest.$ac_ext >&5
7519 groff_cv_decl_needed_strncasecmp=yes
7521 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7524 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_strncasecmp" >&5
7525 echo "${ECHO_T}$groff_cv_decl_needed_strncasecmp" >&6
7526 if test $groff_cv_decl_needed_strncasecmp = yes; then
7528 cat >>confdefs.h <<\_ACEOF
7529 #define NEED_DECLARATION_STRNCASECMP 1
7530 _ACEOF
7533 ac_ext=c
7534 ac_cpp='$CPP $CPPFLAGS'
7535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7539 echo "$as_me:$LINENO: checking whether vfprintf must be declared" >&5
7540 echo $ECHO_N "checking whether vfprintf must be declared... $ECHO_C" >&6
7541 ac_ext=cc
7542 ac_cpp='$CXXCPP $CPPFLAGS'
7543 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7544 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7545 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7547 if test "${groff_cv_decl_needed_vfprintf+set}" = set; then
7548 echo $ECHO_N "(cached) $ECHO_C" >&6
7549 else
7550 cat >conftest.$ac_ext <<_ACEOF
7552 /* confdefs.h. */
7553 _ACEOF
7554 cat confdefs.h >>conftest.$ac_ext
7555 cat >>conftest.$ac_ext <<_ACEOF
7556 /* end confdefs.h. */
7559 #include <stdio.h>
7560 #ifdef HAVE_STRING_H
7561 #include <string.h>
7562 #endif
7563 #ifdef HAVE_STRINGS_H
7564 #include <strings.h>
7565 #endif
7566 #ifdef HAVE_STDLIB_H
7567 #include <stdlib.h>
7568 #endif
7569 #ifdef HAVE_SYS_TIME_H
7570 #include <sys/time.h>
7571 #endif
7572 #ifdef HAVE_UNISTD_H
7573 #include <unistd.h>
7574 #endif
7575 #ifdef HAVE_MATH_H
7576 #include <math.h>
7577 #endif
7581 main ()
7585 #ifndef vfprintf
7586 char *p = (char *) vfprintf;
7587 #endif
7591 return 0;
7594 _ACEOF
7595 rm -f conftest.$ac_objext
7596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7597 (eval $ac_compile) 2>conftest.er1
7598 ac_status=$?
7599 grep -v '^ *+' conftest.er1 >conftest.err
7600 rm -f conftest.er1
7601 cat conftest.err >&5
7602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7603 (exit $ac_status); } &&
7604 { ac_try='test -z "$ac_cxx_werror_flag"
7605 || test ! -s conftest.err'
7606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7607 (eval $ac_try) 2>&5
7608 ac_status=$?
7609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7610 (exit $ac_status); }; } &&
7611 { ac_try='test -s conftest.$ac_objext'
7612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7613 (eval $ac_try) 2>&5
7614 ac_status=$?
7615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7616 (exit $ac_status); }; }; then
7617 groff_cv_decl_needed_vfprintf=no
7618 else
7619 echo "$as_me: failed program was:" >&5
7620 sed 's/^/| /' conftest.$ac_ext >&5
7622 groff_cv_decl_needed_vfprintf=yes
7624 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7627 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_vfprintf" >&5
7628 echo "${ECHO_T}$groff_cv_decl_needed_vfprintf" >&6
7629 if test $groff_cv_decl_needed_vfprintf = yes; then
7631 cat >>confdefs.h <<\_ACEOF
7632 #define NEED_DECLARATION_VFPRINTF 1
7633 _ACEOF
7636 ac_ext=c
7637 ac_cpp='$CPP $CPPFLAGS'
7638 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7639 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7640 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7642 echo "$as_me:$LINENO: checking whether vsnprintf must be declared" >&5
7643 echo $ECHO_N "checking whether vsnprintf must be declared... $ECHO_C" >&6
7644 ac_ext=cc
7645 ac_cpp='$CXXCPP $CPPFLAGS'
7646 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7647 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7648 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7650 if test "${groff_cv_decl_needed_vsnprintf+set}" = set; then
7651 echo $ECHO_N "(cached) $ECHO_C" >&6
7652 else
7653 cat >conftest.$ac_ext <<_ACEOF
7655 /* confdefs.h. */
7656 _ACEOF
7657 cat confdefs.h >>conftest.$ac_ext
7658 cat >>conftest.$ac_ext <<_ACEOF
7659 /* end confdefs.h. */
7662 #include <stdio.h>
7663 #ifdef HAVE_STRING_H
7664 #include <string.h>
7665 #endif
7666 #ifdef HAVE_STRINGS_H
7667 #include <strings.h>
7668 #endif
7669 #ifdef HAVE_STDLIB_H
7670 #include <stdlib.h>
7671 #endif
7672 #ifdef HAVE_SYS_TIME_H
7673 #include <sys/time.h>
7674 #endif
7675 #ifdef HAVE_UNISTD_H
7676 #include <unistd.h>
7677 #endif
7678 #ifdef HAVE_MATH_H
7679 #include <math.h>
7680 #endif
7684 main ()
7688 #ifndef vsnprintf
7689 char *p = (char *) vsnprintf;
7690 #endif
7694 return 0;
7697 _ACEOF
7698 rm -f conftest.$ac_objext
7699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7700 (eval $ac_compile) 2>conftest.er1
7701 ac_status=$?
7702 grep -v '^ *+' conftest.er1 >conftest.err
7703 rm -f conftest.er1
7704 cat conftest.err >&5
7705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7706 (exit $ac_status); } &&
7707 { ac_try='test -z "$ac_cxx_werror_flag"
7708 || test ! -s conftest.err'
7709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7710 (eval $ac_try) 2>&5
7711 ac_status=$?
7712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7713 (exit $ac_status); }; } &&
7714 { ac_try='test -s conftest.$ac_objext'
7715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7716 (eval $ac_try) 2>&5
7717 ac_status=$?
7718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7719 (exit $ac_status); }; }; then
7720 groff_cv_decl_needed_vsnprintf=no
7721 else
7722 echo "$as_me: failed program was:" >&5
7723 sed 's/^/| /' conftest.$ac_ext >&5
7725 groff_cv_decl_needed_vsnprintf=yes
7727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7730 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_vsnprintf" >&5
7731 echo "${ECHO_T}$groff_cv_decl_needed_vsnprintf" >&6
7732 if test $groff_cv_decl_needed_vsnprintf = yes; then
7734 cat >>confdefs.h <<\_ACEOF
7735 #define NEED_DECLARATION_VSNPRINTF 1
7736 _ACEOF
7739 ac_ext=c
7740 ac_cpp='$CPP $CPPFLAGS'
7741 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7742 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7743 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7745 ac_ext=cc
7746 ac_cpp='$CXXCPP $CPPFLAGS'
7747 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7748 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7749 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7751 echo "$as_me:$LINENO: checking for sys_nerr in <errno.h>, <stdio.h>, or <stdlib.h>" >&5
7752 echo $ECHO_N "checking for sys_nerr in <errno.h>, <stdio.h>, or <stdlib.h>... $ECHO_C" >&6
7753 cat >conftest.$ac_ext <<_ACEOF
7755 /* confdefs.h. */
7756 _ACEOF
7757 cat confdefs.h >>conftest.$ac_ext
7758 cat >>conftest.$ac_ext <<_ACEOF
7759 /* end confdefs.h. */
7762 #include <errno.h>
7763 #include <stdio.h>
7764 #include <stdlib.h>
7768 main ()
7772 int k;
7773 k = sys_nerr;
7777 return 0;
7780 _ACEOF
7781 rm -f conftest.$ac_objext
7782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7783 (eval $ac_compile) 2>conftest.er1
7784 ac_status=$?
7785 grep -v '^ *+' conftest.er1 >conftest.err
7786 rm -f conftest.er1
7787 cat conftest.err >&5
7788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7789 (exit $ac_status); } &&
7790 { ac_try='test -z "$ac_cxx_werror_flag"
7791 || test ! -s conftest.err'
7792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7793 (eval $ac_try) 2>&5
7794 ac_status=$?
7795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7796 (exit $ac_status); }; } &&
7797 { ac_try='test -s conftest.$ac_objext'
7798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7799 (eval $ac_try) 2>&5
7800 ac_status=$?
7801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7802 (exit $ac_status); }; }; then
7803 echo "$as_me:$LINENO: result: yes" >&5
7804 echo "${ECHO_T}yes" >&6
7806 cat >>confdefs.h <<\_ACEOF
7807 #define HAVE_SYS_NERR 1
7808 _ACEOF
7810 else
7811 echo "$as_me: failed program was:" >&5
7812 sed 's/^/| /' conftest.$ac_ext >&5
7814 echo "$as_me:$LINENO: result: no" >&5
7815 echo "${ECHO_T}no" >&6
7817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7818 ac_ext=c
7819 ac_cpp='$CPP $CPPFLAGS'
7820 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7821 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7822 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7824 echo "$as_me:$LINENO: checking for sys_errlist in <errno.h>, <stdio.h>, or <stdlib.h>" >&5
7825 echo $ECHO_N "checking for sys_errlist in <errno.h>, <stdio.h>, or <stdlib.h>... $ECHO_C" >&6
7826 cat >conftest.$ac_ext <<_ACEOF
7828 /* confdefs.h. */
7829 _ACEOF
7830 cat confdefs.h >>conftest.$ac_ext
7831 cat >>conftest.$ac_ext <<_ACEOF
7832 /* end confdefs.h. */
7835 #include <errno.h>
7836 #include <stdio.h>
7837 #include <stdlib.h>
7841 main ()
7845 int k;
7846 k = (int)sys_errlist[0];
7850 return 0;
7853 _ACEOF
7854 rm -f conftest.$ac_objext
7855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7856 (eval $ac_compile) 2>conftest.er1
7857 ac_status=$?
7858 grep -v '^ *+' conftest.er1 >conftest.err
7859 rm -f conftest.er1
7860 cat conftest.err >&5
7861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7862 (exit $ac_status); } &&
7863 { ac_try='test -z "$ac_c_werror_flag"
7864 || test ! -s conftest.err'
7865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7866 (eval $ac_try) 2>&5
7867 ac_status=$?
7868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7869 (exit $ac_status); }; } &&
7870 { ac_try='test -s conftest.$ac_objext'
7871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7872 (eval $ac_try) 2>&5
7873 ac_status=$?
7874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7875 (exit $ac_status); }; }; then
7876 echo "$as_me:$LINENO: result: yes" >&5
7877 echo "${ECHO_T}yes" >&6
7879 cat >>confdefs.h <<\_ACEOF
7880 #define HAVE_SYS_ERRLIST 1
7881 _ACEOF
7883 else
7884 echo "$as_me: failed program was:" >&5
7885 sed 's/^/| /' conftest.$ac_ext >&5
7887 echo "$as_me:$LINENO: result: no" >&5
7888 echo "${ECHO_T}no" >&6
7890 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7891 ac_ext=cc
7892 ac_cpp='$CXXCPP $CPPFLAGS'
7893 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7894 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7895 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7897 echo "$as_me:$LINENO: checking C++ <osfcn.h>" >&5
7898 echo $ECHO_N "checking C++ <osfcn.h>... $ECHO_C" >&6
7899 cat >conftest.$ac_ext <<_ACEOF
7901 /* confdefs.h. */
7902 _ACEOF
7903 cat confdefs.h >>conftest.$ac_ext
7904 cat >>conftest.$ac_ext <<_ACEOF
7905 /* end confdefs.h. */
7908 #include <osfcn.h>
7912 main ()
7916 read(0, 0, 0);
7917 open(0, 0);
7921 return 0;
7924 _ACEOF
7925 rm -f conftest.$ac_objext
7926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7927 (eval $ac_compile) 2>conftest.er1
7928 ac_status=$?
7929 grep -v '^ *+' conftest.er1 >conftest.err
7930 rm -f conftest.er1
7931 cat conftest.err >&5
7932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7933 (exit $ac_status); } &&
7934 { ac_try='test -z "$ac_cxx_werror_flag"
7935 || test ! -s conftest.err'
7936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7937 (eval $ac_try) 2>&5
7938 ac_status=$?
7939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7940 (exit $ac_status); }; } &&
7941 { ac_try='test -s conftest.$ac_objext'
7942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7943 (eval $ac_try) 2>&5
7944 ac_status=$?
7945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7946 (exit $ac_status); }; }; then
7947 echo "$as_me:$LINENO: result: yes" >&5
7948 echo "${ECHO_T}yes" >&6
7950 cat >>confdefs.h <<\_ACEOF
7951 #define HAVE_CC_OSFCN_H 1
7952 _ACEOF
7954 else
7955 echo "$as_me: failed program was:" >&5
7956 sed 's/^/| /' conftest.$ac_ext >&5
7958 echo "$as_me:$LINENO: result: no" >&5
7959 echo "${ECHO_T}no" >&6
7961 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7962 ac_ext=c
7963 ac_cpp='$CPP $CPPFLAGS'
7964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7968 ac_ext=cc
7969 ac_cpp='$CXXCPP $CPPFLAGS'
7970 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7971 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7972 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7974 echo "$as_me:$LINENO: checking C++ <limits.h>" >&5
7975 echo $ECHO_N "checking C++ <limits.h>... $ECHO_C" >&6
7976 cat >conftest.$ac_ext <<_ACEOF
7978 /* confdefs.h. */
7979 _ACEOF
7980 cat confdefs.h >>conftest.$ac_ext
7981 cat >>conftest.$ac_ext <<_ACEOF
7982 /* end confdefs.h. */
7985 #include <limits.h>
7989 main ()
7993 int x = INT_MIN;
7994 int y = INT_MAX;
7995 int z = UCHAR_MAX;
7999 return 0;
8002 _ACEOF
8003 rm -f conftest.$ac_objext
8004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8005 (eval $ac_compile) 2>conftest.er1
8006 ac_status=$?
8007 grep -v '^ *+' conftest.er1 >conftest.err
8008 rm -f conftest.er1
8009 cat conftest.err >&5
8010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8011 (exit $ac_status); } &&
8012 { ac_try='test -z "$ac_cxx_werror_flag"
8013 || test ! -s conftest.err'
8014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8015 (eval $ac_try) 2>&5
8016 ac_status=$?
8017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8018 (exit $ac_status); }; } &&
8019 { ac_try='test -s conftest.$ac_objext'
8020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8021 (eval $ac_try) 2>&5
8022 ac_status=$?
8023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8024 (exit $ac_status); }; }; then
8025 echo "$as_me:$LINENO: result: yes" >&5
8026 echo "${ECHO_T}yes" >&6
8028 cat >>confdefs.h <<\_ACEOF
8029 #define HAVE_CC_LIMITS_H 1
8030 _ACEOF
8032 else
8033 echo "$as_me: failed program was:" >&5
8034 sed 's/^/| /' conftest.$ac_ext >&5
8036 echo "$as_me:$LINENO: result: no" >&5
8037 echo "${ECHO_T}no" >&6
8039 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8040 ac_ext=c
8041 ac_cpp='$CPP $CPPFLAGS'
8042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8046 ac_ext=cc
8047 ac_cpp='$CXXCPP $CPPFLAGS'
8048 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8049 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8050 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8052 echo "$as_me:$LINENO: checking C++ <inttypes.h>" >&5
8053 echo $ECHO_N "checking C++ <inttypes.h>... $ECHO_C" >&6
8054 cat >conftest.$ac_ext <<_ACEOF
8056 /* confdefs.h. */
8057 _ACEOF
8058 cat confdefs.h >>conftest.$ac_ext
8059 cat >>conftest.$ac_ext <<_ACEOF
8060 /* end confdefs.h. */
8063 #include <sys/types.h>
8064 #include <inttypes.h>
8068 main ()
8072 uintmax_t i = (uintmax_t)-1;
8076 return 0;
8079 _ACEOF
8080 rm -f conftest.$ac_objext
8081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8082 (eval $ac_compile) 2>conftest.er1
8083 ac_status=$?
8084 grep -v '^ *+' conftest.er1 >conftest.err
8085 rm -f conftest.er1
8086 cat conftest.err >&5
8087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8088 (exit $ac_status); } &&
8089 { ac_try='test -z "$ac_cxx_werror_flag"
8090 || test ! -s conftest.err'
8091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8092 (eval $ac_try) 2>&5
8093 ac_status=$?
8094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8095 (exit $ac_status); }; } &&
8096 { ac_try='test -s conftest.$ac_objext'
8097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8098 (eval $ac_try) 2>&5
8099 ac_status=$?
8100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8101 (exit $ac_status); }; }; then
8102 groff_cv_header_inttypes_h=yes
8104 cat >>confdefs.h <<\_ACEOF
8105 #define HAVE_CC_INTTYPES_H 1
8106 _ACEOF
8108 else
8109 echo "$as_me: failed program was:" >&5
8110 sed 's/^/| /' conftest.$ac_ext >&5
8112 groff_cv_header_inttypes_h=no
8114 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8115 echo "$as_me:$LINENO: result: $groff_cv_header_inttypes_h" >&5
8116 echo "${ECHO_T}$groff_cv_header_inttypes_h" >&6
8117 ac_ext=c
8118 ac_cpp='$CPP $CPPFLAGS'
8119 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8120 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8121 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8124 # checks for typedefs
8125 ac_ext=cc
8126 ac_cpp='$CXXCPP $CPPFLAGS'
8127 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8128 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8129 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8131 echo "$as_me:$LINENO: checking for unsigned long long" >&5
8132 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
8133 cat >conftest.$ac_ext <<_ACEOF
8135 /* confdefs.h. */
8136 _ACEOF
8137 cat confdefs.h >>conftest.$ac_ext
8138 cat >>conftest.$ac_ext <<_ACEOF
8139 /* end confdefs.h. */
8142 unsigned long long ull = 1;
8143 int i = 63;
8144 unsigned long long ullmax = (unsigned long long)-1;
8148 main ()
8152 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
8156 return 0;
8159 _ACEOF
8160 rm -f conftest.$ac_objext conftest$ac_exeext
8161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8162 (eval $ac_link) 2>conftest.er1
8163 ac_status=$?
8164 grep -v '^ *+' conftest.er1 >conftest.err
8165 rm -f conftest.er1
8166 cat conftest.err >&5
8167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8168 (exit $ac_status); } &&
8169 { ac_try='test -z "$ac_cxx_werror_flag"
8170 || test ! -s conftest.err'
8171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8172 (eval $ac_try) 2>&5
8173 ac_status=$?
8174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8175 (exit $ac_status); }; } &&
8176 { ac_try='test -s conftest$ac_exeext'
8177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8178 (eval $ac_try) 2>&5
8179 ac_status=$?
8180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8181 (exit $ac_status); }; }; then
8182 groff_cv_type_unsigned_long_long=yes
8183 else
8184 echo "$as_me: failed program was:" >&5
8185 sed 's/^/| /' conftest.$ac_ext >&5
8187 groff_cv_type_unsigned_long_long=no
8189 rm -f conftest.err conftest.$ac_objext \
8190 conftest$ac_exeext conftest.$ac_ext
8191 echo "$as_me:$LINENO: result: $groff_cv_type_unsigned_long_long" >&5
8192 echo "${ECHO_T}$groff_cv_type_unsigned_long_long" >&6
8193 ac_ext=c
8194 ac_cpp='$CPP $CPPFLAGS'
8195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8196 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8197 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8200 if test $groff_cv_header_inttypes_h = no; then
8202 test $groff_cv_type_unsigned_long_long = yes \
8203 && ac_type='unsigned long long' \
8204 || ac_type='unsigned long'
8206 cat >>confdefs.h <<_ACEOF
8207 #define uintmax_t $ac_type
8208 _ACEOF
8211 ac_ext=cc
8212 ac_cpp='$CXXCPP $CPPFLAGS'
8213 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8214 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8215 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8217 echo "$as_me:$LINENO: checking for declaration of time_t" >&5
8218 echo $ECHO_N "checking for declaration of time_t... $ECHO_C" >&6
8219 cat >conftest.$ac_ext <<_ACEOF
8221 /* confdefs.h. */
8222 _ACEOF
8223 cat confdefs.h >>conftest.$ac_ext
8224 cat >>conftest.$ac_ext <<_ACEOF
8225 /* end confdefs.h. */
8228 #include <time.h>
8232 main ()
8236 time_t t = time(0);
8237 struct tm *p = localtime(&t);
8241 return 0;
8244 _ACEOF
8245 rm -f conftest.$ac_objext
8246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8247 (eval $ac_compile) 2>conftest.er1
8248 ac_status=$?
8249 grep -v '^ *+' conftest.er1 >conftest.err
8250 rm -f conftest.er1
8251 cat conftest.err >&5
8252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8253 (exit $ac_status); } &&
8254 { ac_try='test -z "$ac_cxx_werror_flag"
8255 || test ! -s conftest.err'
8256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8257 (eval $ac_try) 2>&5
8258 ac_status=$?
8259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8260 (exit $ac_status); }; } &&
8261 { ac_try='test -s conftest.$ac_objext'
8262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8263 (eval $ac_try) 2>&5
8264 ac_status=$?
8265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8266 (exit $ac_status); }; }; then
8267 echo "$as_me:$LINENO: result: yes" >&5
8268 echo "${ECHO_T}yes" >&6
8269 else
8270 echo "$as_me: failed program was:" >&5
8271 sed 's/^/| /' conftest.$ac_ext >&5
8273 echo "$as_me:$LINENO: result: no" >&5
8274 echo "${ECHO_T}no" >&6
8276 cat >>confdefs.h <<\_ACEOF
8277 #define LONG_FOR_TIME_T 1
8278 _ACEOF
8281 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8282 ac_ext=c
8283 ac_cpp='$CPP $CPPFLAGS'
8284 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8285 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8286 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8288 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
8289 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
8290 if test "${ac_cv_type_signal+set}" = set; then
8291 echo $ECHO_N "(cached) $ECHO_C" >&6
8292 else
8293 cat >conftest.$ac_ext <<_ACEOF
8294 /* confdefs.h. */
8295 _ACEOF
8296 cat confdefs.h >>conftest.$ac_ext
8297 cat >>conftest.$ac_ext <<_ACEOF
8298 /* end confdefs.h. */
8299 #include <sys/types.h>
8300 #include <signal.h>
8301 #ifdef signal
8302 # undef signal
8303 #endif
8304 #ifdef __cplusplus
8305 extern "C" void (*signal (int, void (*)(int)))(int);
8306 #else
8307 void (*signal ()) ();
8308 #endif
8311 main ()
8313 int i;
8315 return 0;
8317 _ACEOF
8318 rm -f conftest.$ac_objext
8319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8320 (eval $ac_compile) 2>conftest.er1
8321 ac_status=$?
8322 grep -v '^ *+' conftest.er1 >conftest.err
8323 rm -f conftest.er1
8324 cat conftest.err >&5
8325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8326 (exit $ac_status); } &&
8327 { ac_try='test -z "$ac_c_werror_flag"
8328 || test ! -s conftest.err'
8329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8330 (eval $ac_try) 2>&5
8331 ac_status=$?
8332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8333 (exit $ac_status); }; } &&
8334 { ac_try='test -s conftest.$ac_objext'
8335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8336 (eval $ac_try) 2>&5
8337 ac_status=$?
8338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8339 (exit $ac_status); }; }; then
8340 ac_cv_type_signal=void
8341 else
8342 echo "$as_me: failed program was:" >&5
8343 sed 's/^/| /' conftest.$ac_ext >&5
8345 ac_cv_type_signal=int
8347 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8349 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
8350 echo "${ECHO_T}$ac_cv_type_signal" >&6
8352 cat >>confdefs.h <<_ACEOF
8353 #define RETSIGTYPE $ac_cv_type_signal
8354 _ACEOF
8357 echo "$as_me:$LINENO: checking struct exception" >&5
8358 echo $ECHO_N "checking struct exception... $ECHO_C" >&6
8359 cat >conftest.$ac_ext <<_ACEOF
8361 /* confdefs.h. */
8362 _ACEOF
8363 cat confdefs.h >>conftest.$ac_ext
8364 cat >>conftest.$ac_ext <<_ACEOF
8365 /* end confdefs.h. */
8368 #include <math.h>
8372 main ()
8376 struct exception e;
8380 return 0;
8383 _ACEOF
8384 rm -f conftest.$ac_objext
8385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8386 (eval $ac_compile) 2>conftest.er1
8387 ac_status=$?
8388 grep -v '^ *+' conftest.er1 >conftest.err
8389 rm -f conftest.er1
8390 cat conftest.err >&5
8391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8392 (exit $ac_status); } &&
8393 { ac_try='test -z "$ac_c_werror_flag"
8394 || test ! -s conftest.err'
8395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8396 (eval $ac_try) 2>&5
8397 ac_status=$?
8398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8399 (exit $ac_status); }; } &&
8400 { ac_try='test -s conftest.$ac_objext'
8401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8402 (eval $ac_try) 2>&5
8403 ac_status=$?
8404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8405 (exit $ac_status); }; }; then
8406 echo "$as_me:$LINENO: result: yes" >&5
8407 echo "${ECHO_T}yes" >&6
8409 cat >>confdefs.h <<\_ACEOF
8410 #define HAVE_STRUCT_EXCEPTION 1
8411 _ACEOF
8413 else
8414 echo "$as_me: failed program was:" >&5
8415 sed 's/^/| /' conftest.$ac_ext >&5
8417 echo "$as_me:$LINENO: result: no" >&5
8418 echo "${ECHO_T}no" >&6
8420 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8422 # checks for libraries
8423 echo "$as_me:$LINENO: checking for main in -lc" >&5
8424 echo $ECHO_N "checking for main in -lc... $ECHO_C" >&6
8425 if test "${ac_cv_lib_c_main+set}" = set; then
8426 echo $ECHO_N "(cached) $ECHO_C" >&6
8427 else
8428 ac_check_lib_save_LIBS=$LIBS
8429 LIBS="-lc $LIBS"
8430 cat >conftest.$ac_ext <<_ACEOF
8431 /* confdefs.h. */
8432 _ACEOF
8433 cat confdefs.h >>conftest.$ac_ext
8434 cat >>conftest.$ac_ext <<_ACEOF
8435 /* end confdefs.h. */
8439 main ()
8441 main ();
8443 return 0;
8445 _ACEOF
8446 rm -f conftest.$ac_objext conftest$ac_exeext
8447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8448 (eval $ac_link) 2>conftest.er1
8449 ac_status=$?
8450 grep -v '^ *+' conftest.er1 >conftest.err
8451 rm -f conftest.er1
8452 cat conftest.err >&5
8453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8454 (exit $ac_status); } &&
8455 { ac_try='test -z "$ac_c_werror_flag"
8456 || test ! -s conftest.err'
8457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8458 (eval $ac_try) 2>&5
8459 ac_status=$?
8460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8461 (exit $ac_status); }; } &&
8462 { ac_try='test -s conftest$ac_exeext'
8463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8464 (eval $ac_try) 2>&5
8465 ac_status=$?
8466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467 (exit $ac_status); }; }; then
8468 ac_cv_lib_c_main=yes
8469 else
8470 echo "$as_me: failed program was:" >&5
8471 sed 's/^/| /' conftest.$ac_ext >&5
8473 ac_cv_lib_c_main=no
8475 rm -f conftest.err conftest.$ac_objext \
8476 conftest$ac_exeext conftest.$ac_ext
8477 LIBS=$ac_check_lib_save_LIBS
8479 echo "$as_me:$LINENO: result: $ac_cv_lib_c_main" >&5
8480 echo "${ECHO_T}$ac_cv_lib_c_main" >&6
8481 if test $ac_cv_lib_c_main = yes; then
8482 LIBC=-lc
8486 echo "$as_me:$LINENO: checking for sin in -lm" >&5
8487 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
8488 if test "${ac_cv_lib_m_sin+set}" = set; then
8489 echo $ECHO_N "(cached) $ECHO_C" >&6
8490 else
8491 ac_check_lib_save_LIBS=$LIBS
8492 LIBS="-lm $LIBS"
8493 cat >conftest.$ac_ext <<_ACEOF
8494 /* confdefs.h. */
8495 _ACEOF
8496 cat confdefs.h >>conftest.$ac_ext
8497 cat >>conftest.$ac_ext <<_ACEOF
8498 /* end confdefs.h. */
8500 /* Override any gcc2 internal prototype to avoid an error. */
8501 #ifdef __cplusplus
8502 extern "C"
8503 #endif
8504 /* We use char because int might match the return type of a gcc2
8505 builtin and then its argument prototype would still apply. */
8506 char sin ();
8508 main ()
8510 sin ();
8512 return 0;
8514 _ACEOF
8515 rm -f conftest.$ac_objext conftest$ac_exeext
8516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8517 (eval $ac_link) 2>conftest.er1
8518 ac_status=$?
8519 grep -v '^ *+' conftest.er1 >conftest.err
8520 rm -f conftest.er1
8521 cat conftest.err >&5
8522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8523 (exit $ac_status); } &&
8524 { ac_try='test -z "$ac_c_werror_flag"
8525 || test ! -s conftest.err'
8526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8527 (eval $ac_try) 2>&5
8528 ac_status=$?
8529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8530 (exit $ac_status); }; } &&
8531 { ac_try='test -s conftest$ac_exeext'
8532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8533 (eval $ac_try) 2>&5
8534 ac_status=$?
8535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8536 (exit $ac_status); }; }; then
8537 ac_cv_lib_m_sin=yes
8538 else
8539 echo "$as_me: failed program was:" >&5
8540 sed 's/^/| /' conftest.$ac_ext >&5
8542 ac_cv_lib_m_sin=no
8544 rm -f conftest.err conftest.$ac_objext \
8545 conftest$ac_exeext conftest.$ac_ext
8546 LIBS=$ac_check_lib_save_LIBS
8548 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
8549 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
8550 if test $ac_cv_lib_m_sin = yes; then
8551 LIBM=-lm
8556 # checks for functions
8559 for ac_header in stdlib.h unistd.h
8561 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8562 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8563 echo "$as_me:$LINENO: checking for $ac_header" >&5
8564 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8565 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8566 echo $ECHO_N "(cached) $ECHO_C" >&6
8568 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8569 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8570 else
8571 # Is the header compilable?
8572 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8573 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8574 cat >conftest.$ac_ext <<_ACEOF
8575 /* confdefs.h. */
8576 _ACEOF
8577 cat confdefs.h >>conftest.$ac_ext
8578 cat >>conftest.$ac_ext <<_ACEOF
8579 /* end confdefs.h. */
8580 $ac_includes_default
8581 #include <$ac_header>
8582 _ACEOF
8583 rm -f conftest.$ac_objext
8584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8585 (eval $ac_compile) 2>conftest.er1
8586 ac_status=$?
8587 grep -v '^ *+' conftest.er1 >conftest.err
8588 rm -f conftest.er1
8589 cat conftest.err >&5
8590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8591 (exit $ac_status); } &&
8592 { ac_try='test -z "$ac_c_werror_flag"
8593 || test ! -s conftest.err'
8594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8595 (eval $ac_try) 2>&5
8596 ac_status=$?
8597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8598 (exit $ac_status); }; } &&
8599 { ac_try='test -s conftest.$ac_objext'
8600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8601 (eval $ac_try) 2>&5
8602 ac_status=$?
8603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8604 (exit $ac_status); }; }; then
8605 ac_header_compiler=yes
8606 else
8607 echo "$as_me: failed program was:" >&5
8608 sed 's/^/| /' conftest.$ac_ext >&5
8610 ac_header_compiler=no
8612 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8613 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8614 echo "${ECHO_T}$ac_header_compiler" >&6
8616 # Is the header present?
8617 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8618 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8619 cat >conftest.$ac_ext <<_ACEOF
8620 /* confdefs.h. */
8621 _ACEOF
8622 cat confdefs.h >>conftest.$ac_ext
8623 cat >>conftest.$ac_ext <<_ACEOF
8624 /* end confdefs.h. */
8625 #include <$ac_header>
8626 _ACEOF
8627 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8628 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8629 ac_status=$?
8630 grep -v '^ *+' conftest.er1 >conftest.err
8631 rm -f conftest.er1
8632 cat conftest.err >&5
8633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8634 (exit $ac_status); } >/dev/null; then
8635 if test -s conftest.err; then
8636 ac_cpp_err=$ac_c_preproc_warn_flag
8637 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8638 else
8639 ac_cpp_err=
8641 else
8642 ac_cpp_err=yes
8644 if test -z "$ac_cpp_err"; then
8645 ac_header_preproc=yes
8646 else
8647 echo "$as_me: failed program was:" >&5
8648 sed 's/^/| /' conftest.$ac_ext >&5
8650 ac_header_preproc=no
8652 rm -f conftest.err conftest.$ac_ext
8653 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8654 echo "${ECHO_T}$ac_header_preproc" >&6
8656 # So? What about this header?
8657 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8658 yes:no: )
8659 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8660 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8661 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8662 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8663 ac_header_preproc=yes
8665 no:yes:* )
8666 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8667 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8668 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8669 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8670 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8671 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8672 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8673 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8674 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8675 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8676 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8677 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8679 cat <<\_ASBOX
8680 ## ------------------------------------------ ##
8681 ## Report this to the AC_PACKAGE_NAME lists. ##
8682 ## ------------------------------------------ ##
8683 _ASBOX
8685 sed "s/^/$as_me: WARNING: /" >&2
8687 esac
8688 echo "$as_me:$LINENO: checking for $ac_header" >&5
8689 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8690 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8691 echo $ECHO_N "(cached) $ECHO_C" >&6
8692 else
8693 eval "$as_ac_Header=\$ac_header_preproc"
8695 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8696 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8699 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8700 cat >>confdefs.h <<_ACEOF
8701 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8702 _ACEOF
8706 done
8709 for ac_func in getpagesize
8711 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8712 echo "$as_me:$LINENO: checking for $ac_func" >&5
8713 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8714 if eval "test \"\${$as_ac_var+set}\" = set"; then
8715 echo $ECHO_N "(cached) $ECHO_C" >&6
8716 else
8717 cat >conftest.$ac_ext <<_ACEOF
8718 /* confdefs.h. */
8719 _ACEOF
8720 cat confdefs.h >>conftest.$ac_ext
8721 cat >>conftest.$ac_ext <<_ACEOF
8722 /* end confdefs.h. */
8723 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8724 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8725 #define $ac_func innocuous_$ac_func
8727 /* System header to define __stub macros and hopefully few prototypes,
8728 which can conflict with char $ac_func (); below.
8729 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8730 <limits.h> exists even on freestanding compilers. */
8732 #ifdef __STDC__
8733 # include <limits.h>
8734 #else
8735 # include <assert.h>
8736 #endif
8738 #undef $ac_func
8740 /* Override any gcc2 internal prototype to avoid an error. */
8741 #ifdef __cplusplus
8742 extern "C"
8744 #endif
8745 /* We use char because int might match the return type of a gcc2
8746 builtin and then its argument prototype would still apply. */
8747 char $ac_func ();
8748 /* The GNU C library defines this for functions which it implements
8749 to always fail with ENOSYS. Some functions are actually named
8750 something starting with __ and the normal name is an alias. */
8751 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8752 choke me
8753 #else
8754 char (*f) () = $ac_func;
8755 #endif
8756 #ifdef __cplusplus
8758 #endif
8761 main ()
8763 return f != $ac_func;
8765 return 0;
8767 _ACEOF
8768 rm -f conftest.$ac_objext conftest$ac_exeext
8769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8770 (eval $ac_link) 2>conftest.er1
8771 ac_status=$?
8772 grep -v '^ *+' conftest.er1 >conftest.err
8773 rm -f conftest.er1
8774 cat conftest.err >&5
8775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8776 (exit $ac_status); } &&
8777 { ac_try='test -z "$ac_c_werror_flag"
8778 || test ! -s conftest.err'
8779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8780 (eval $ac_try) 2>&5
8781 ac_status=$?
8782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8783 (exit $ac_status); }; } &&
8784 { ac_try='test -s conftest$ac_exeext'
8785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8786 (eval $ac_try) 2>&5
8787 ac_status=$?
8788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8789 (exit $ac_status); }; }; then
8790 eval "$as_ac_var=yes"
8791 else
8792 echo "$as_me: failed program was:" >&5
8793 sed 's/^/| /' conftest.$ac_ext >&5
8795 eval "$as_ac_var=no"
8797 rm -f conftest.err conftest.$ac_objext \
8798 conftest$ac_exeext conftest.$ac_ext
8800 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8801 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8802 if test `eval echo '${'$as_ac_var'}'` = yes; then
8803 cat >>confdefs.h <<_ACEOF
8804 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8805 _ACEOF
8808 done
8810 echo "$as_me:$LINENO: checking for working mmap" >&5
8811 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
8812 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8813 echo $ECHO_N "(cached) $ECHO_C" >&6
8814 else
8815 if test "$cross_compiling" = yes; then
8816 ac_cv_func_mmap_fixed_mapped=no
8817 else
8818 cat >conftest.$ac_ext <<_ACEOF
8819 /* confdefs.h. */
8820 _ACEOF
8821 cat confdefs.h >>conftest.$ac_ext
8822 cat >>conftest.$ac_ext <<_ACEOF
8823 /* end confdefs.h. */
8824 $ac_includes_default
8825 /* malloc might have been renamed as rpl_malloc. */
8826 #undef malloc
8828 /* Thanks to Mike Haertel and Jim Avera for this test.
8829 Here is a matrix of mmap possibilities:
8830 mmap private not fixed
8831 mmap private fixed at somewhere currently unmapped
8832 mmap private fixed at somewhere already mapped
8833 mmap shared not fixed
8834 mmap shared fixed at somewhere currently unmapped
8835 mmap shared fixed at somewhere already mapped
8836 For private mappings, we should verify that changes cannot be read()
8837 back from the file, nor mmap's back from the file at a different
8838 address. (There have been systems where private was not correctly
8839 implemented like the infamous i386 svr4.0, and systems where the
8840 VM page cache was not coherent with the file system buffer cache
8841 like early versions of FreeBSD and possibly contemporary NetBSD.)
8842 For shared mappings, we should conversely verify that changes get
8843 propagated back to all the places they're supposed to be.
8845 Grep wants private fixed already mapped.
8846 The main things grep needs to know about mmap are:
8847 * does it exist and is it safe to write into the mmap'd area
8848 * how to use it (BSD variants) */
8850 #include <fcntl.h>
8851 #include <sys/mman.h>
8853 #if !STDC_HEADERS && !HAVE_STDLIB_H
8854 char *malloc ();
8855 #endif
8857 /* This mess was copied from the GNU getpagesize.h. */
8858 #if !HAVE_GETPAGESIZE
8859 /* Assume that all systems that can run configure have sys/param.h. */
8860 # if !HAVE_SYS_PARAM_H
8861 # define HAVE_SYS_PARAM_H 1
8862 # endif
8864 # ifdef _SC_PAGESIZE
8865 # define getpagesize() sysconf(_SC_PAGESIZE)
8866 # else /* no _SC_PAGESIZE */
8867 # if HAVE_SYS_PARAM_H
8868 # include <sys/param.h>
8869 # ifdef EXEC_PAGESIZE
8870 # define getpagesize() EXEC_PAGESIZE
8871 # else /* no EXEC_PAGESIZE */
8872 # ifdef NBPG
8873 # define getpagesize() NBPG * CLSIZE
8874 # ifndef CLSIZE
8875 # define CLSIZE 1
8876 # endif /* no CLSIZE */
8877 # else /* no NBPG */
8878 # ifdef NBPC
8879 # define getpagesize() NBPC
8880 # else /* no NBPC */
8881 # ifdef PAGESIZE
8882 # define getpagesize() PAGESIZE
8883 # endif /* PAGESIZE */
8884 # endif /* no NBPC */
8885 # endif /* no NBPG */
8886 # endif /* no EXEC_PAGESIZE */
8887 # else /* no HAVE_SYS_PARAM_H */
8888 # define getpagesize() 8192 /* punt totally */
8889 # endif /* no HAVE_SYS_PARAM_H */
8890 # endif /* no _SC_PAGESIZE */
8892 #endif /* no HAVE_GETPAGESIZE */
8895 main ()
8897 char *data, *data2, *data3;
8898 int i, pagesize;
8899 int fd;
8901 pagesize = getpagesize ();
8903 /* First, make a file with some known garbage in it. */
8904 data = (char *) malloc (pagesize);
8905 if (!data)
8906 exit (1);
8907 for (i = 0; i < pagesize; ++i)
8908 *(data + i) = rand ();
8909 umask (0);
8910 fd = creat ("conftest.mmap", 0600);
8911 if (fd < 0)
8912 exit (1);
8913 if (write (fd, data, pagesize) != pagesize)
8914 exit (1);
8915 close (fd);
8917 /* Next, try to mmap the file at a fixed address which already has
8918 something else allocated at it. If we can, also make sure that
8919 we see the same garbage. */
8920 fd = open ("conftest.mmap", O_RDWR);
8921 if (fd < 0)
8922 exit (1);
8923 data2 = (char *) malloc (2 * pagesize);
8924 if (!data2)
8925 exit (1);
8926 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
8927 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8928 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8929 exit (1);
8930 for (i = 0; i < pagesize; ++i)
8931 if (*(data + i) != *(data2 + i))
8932 exit (1);
8934 /* Finally, make sure that changes to the mapped area do not
8935 percolate back to the file as seen by read(). (This is a bug on
8936 some variants of i386 svr4.0.) */
8937 for (i = 0; i < pagesize; ++i)
8938 *(data2 + i) = *(data2 + i) + 1;
8939 data3 = (char *) malloc (pagesize);
8940 if (!data3)
8941 exit (1);
8942 if (read (fd, data3, pagesize) != pagesize)
8943 exit (1);
8944 for (i = 0; i < pagesize; ++i)
8945 if (*(data + i) != *(data3 + i))
8946 exit (1);
8947 close (fd);
8948 exit (0);
8950 _ACEOF
8951 rm -f conftest$ac_exeext
8952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8953 (eval $ac_link) 2>&5
8954 ac_status=$?
8955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8956 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8958 (eval $ac_try) 2>&5
8959 ac_status=$?
8960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8961 (exit $ac_status); }; }; then
8962 ac_cv_func_mmap_fixed_mapped=yes
8963 else
8964 echo "$as_me: program exited with status $ac_status" >&5
8965 echo "$as_me: failed program was:" >&5
8966 sed 's/^/| /' conftest.$ac_ext >&5
8968 ( exit $ac_status )
8969 ac_cv_func_mmap_fixed_mapped=no
8971 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8974 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8975 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
8976 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8978 cat >>confdefs.h <<\_ACEOF
8979 #define HAVE_MMAP 1
8980 _ACEOF
8983 rm -f conftest.mmap
8985 saved_libs="$LIBS"
8986 LIBS="$LIBS $LIBC $LIBM"
8995 for ac_func in fmod getcwd putenv snprintf strcasecmp \
8996 strerror strncasecmp strtol
8998 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8999 echo "$as_me:$LINENO: checking for $ac_func" >&5
9000 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9001 if eval "test \"\${$as_ac_var+set}\" = set"; then
9002 echo $ECHO_N "(cached) $ECHO_C" >&6
9003 else
9004 cat >conftest.$ac_ext <<_ACEOF
9005 /* confdefs.h. */
9006 _ACEOF
9007 cat confdefs.h >>conftest.$ac_ext
9008 cat >>conftest.$ac_ext <<_ACEOF
9009 /* end confdefs.h. */
9010 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9011 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9012 #define $ac_func innocuous_$ac_func
9014 /* System header to define __stub macros and hopefully few prototypes,
9015 which can conflict with char $ac_func (); below.
9016 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9017 <limits.h> exists even on freestanding compilers. */
9019 #ifdef __STDC__
9020 # include <limits.h>
9021 #else
9022 # include <assert.h>
9023 #endif
9025 #undef $ac_func
9027 /* Override any gcc2 internal prototype to avoid an error. */
9028 #ifdef __cplusplus
9029 extern "C"
9031 #endif
9032 /* We use char because int might match the return type of a gcc2
9033 builtin and then its argument prototype would still apply. */
9034 char $ac_func ();
9035 /* The GNU C library defines this for functions which it implements
9036 to always fail with ENOSYS. Some functions are actually named
9037 something starting with __ and the normal name is an alias. */
9038 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9039 choke me
9040 #else
9041 char (*f) () = $ac_func;
9042 #endif
9043 #ifdef __cplusplus
9045 #endif
9048 main ()
9050 return f != $ac_func;
9052 return 0;
9054 _ACEOF
9055 rm -f conftest.$ac_objext conftest$ac_exeext
9056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9057 (eval $ac_link) 2>conftest.er1
9058 ac_status=$?
9059 grep -v '^ *+' conftest.er1 >conftest.err
9060 rm -f conftest.er1
9061 cat conftest.err >&5
9062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9063 (exit $ac_status); } &&
9064 { ac_try='test -z "$ac_c_werror_flag"
9065 || test ! -s conftest.err'
9066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9067 (eval $ac_try) 2>&5
9068 ac_status=$?
9069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9070 (exit $ac_status); }; } &&
9071 { ac_try='test -s conftest$ac_exeext'
9072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9073 (eval $ac_try) 2>&5
9074 ac_status=$?
9075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9076 (exit $ac_status); }; }; then
9077 eval "$as_ac_var=yes"
9078 else
9079 echo "$as_me: failed program was:" >&5
9080 sed 's/^/| /' conftest.$ac_ext >&5
9082 eval "$as_ac_var=no"
9084 rm -f conftest.err conftest.$ac_objext \
9085 conftest$ac_exeext conftest.$ac_ext
9087 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9088 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9089 if test `eval echo '${'$as_ac_var'}'` = yes; then
9090 cat >>confdefs.h <<_ACEOF
9091 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9092 _ACEOF
9094 else
9095 case $LIBOBJS in
9096 "$ac_func.$ac_objext" | \
9097 *" $ac_func.$ac_objext" | \
9098 "$ac_func.$ac_objext "* | \
9099 *" $ac_func.$ac_objext "* ) ;;
9100 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
9101 esac
9104 done
9107 # vsnprintf is in the same source file as snprintf
9109 for ac_func in vsnprintf
9111 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9112 echo "$as_me:$LINENO: checking for $ac_func" >&5
9113 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9114 if eval "test \"\${$as_ac_var+set}\" = set"; then
9115 echo $ECHO_N "(cached) $ECHO_C" >&6
9116 else
9117 cat >conftest.$ac_ext <<_ACEOF
9118 /* confdefs.h. */
9119 _ACEOF
9120 cat confdefs.h >>conftest.$ac_ext
9121 cat >>conftest.$ac_ext <<_ACEOF
9122 /* end confdefs.h. */
9123 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9124 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9125 #define $ac_func innocuous_$ac_func
9127 /* System header to define __stub macros and hopefully few prototypes,
9128 which can conflict with char $ac_func (); below.
9129 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9130 <limits.h> exists even on freestanding compilers. */
9132 #ifdef __STDC__
9133 # include <limits.h>
9134 #else
9135 # include <assert.h>
9136 #endif
9138 #undef $ac_func
9140 /* Override any gcc2 internal prototype to avoid an error. */
9141 #ifdef __cplusplus
9142 extern "C"
9144 #endif
9145 /* We use char because int might match the return type of a gcc2
9146 builtin and then its argument prototype would still apply. */
9147 char $ac_func ();
9148 /* The GNU C library defines this for functions which it implements
9149 to always fail with ENOSYS. Some functions are actually named
9150 something starting with __ and the normal name is an alias. */
9151 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9152 choke me
9153 #else
9154 char (*f) () = $ac_func;
9155 #endif
9156 #ifdef __cplusplus
9158 #endif
9161 main ()
9163 return f != $ac_func;
9165 return 0;
9167 _ACEOF
9168 rm -f conftest.$ac_objext conftest$ac_exeext
9169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9170 (eval $ac_link) 2>conftest.er1
9171 ac_status=$?
9172 grep -v '^ *+' conftest.er1 >conftest.err
9173 rm -f conftest.er1
9174 cat conftest.err >&5
9175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9176 (exit $ac_status); } &&
9177 { ac_try='test -z "$ac_c_werror_flag"
9178 || test ! -s conftest.err'
9179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9180 (eval $ac_try) 2>&5
9181 ac_status=$?
9182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9183 (exit $ac_status); }; } &&
9184 { ac_try='test -s conftest$ac_exeext'
9185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9186 (eval $ac_try) 2>&5
9187 ac_status=$?
9188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9189 (exit $ac_status); }; }; then
9190 eval "$as_ac_var=yes"
9191 else
9192 echo "$as_me: failed program was:" >&5
9193 sed 's/^/| /' conftest.$ac_ext >&5
9195 eval "$as_ac_var=no"
9197 rm -f conftest.err conftest.$ac_objext \
9198 conftest$ac_exeext conftest.$ac_ext
9200 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9201 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9202 if test `eval echo '${'$as_ac_var'}'` = yes; then
9203 cat >>confdefs.h <<_ACEOF
9204 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9205 _ACEOF
9207 else
9208 case $LIBOBJS in
9209 "snprintf.$ac_objext" | \
9210 *" snprintf.$ac_objext" | \
9211 "snprintf.$ac_objext "* | \
9212 *" snprintf.$ac_objext "* ) ;;
9213 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" ;;
9214 esac
9217 done
9219 LIBS="$saved_libs"
9226 for ac_func in gettimeofday isatty kill rename setlocale strsep
9228 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9229 echo "$as_me:$LINENO: checking for $ac_func" >&5
9230 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9231 if eval "test \"\${$as_ac_var+set}\" = set"; then
9232 echo $ECHO_N "(cached) $ECHO_C" >&6
9233 else
9234 cat >conftest.$ac_ext <<_ACEOF
9235 /* confdefs.h. */
9236 _ACEOF
9237 cat confdefs.h >>conftest.$ac_ext
9238 cat >>conftest.$ac_ext <<_ACEOF
9239 /* end confdefs.h. */
9240 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9241 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9242 #define $ac_func innocuous_$ac_func
9244 /* System header to define __stub macros and hopefully few prototypes,
9245 which can conflict with char $ac_func (); below.
9246 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9247 <limits.h> exists even on freestanding compilers. */
9249 #ifdef __STDC__
9250 # include <limits.h>
9251 #else
9252 # include <assert.h>
9253 #endif
9255 #undef $ac_func
9257 /* Override any gcc2 internal prototype to avoid an error. */
9258 #ifdef __cplusplus
9259 extern "C"
9261 #endif
9262 /* We use char because int might match the return type of a gcc2
9263 builtin and then its argument prototype would still apply. */
9264 char $ac_func ();
9265 /* The GNU C library defines this for functions which it implements
9266 to always fail with ENOSYS. Some functions are actually named
9267 something starting with __ and the normal name is an alias. */
9268 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9269 choke me
9270 #else
9271 char (*f) () = $ac_func;
9272 #endif
9273 #ifdef __cplusplus
9275 #endif
9278 main ()
9280 return f != $ac_func;
9282 return 0;
9284 _ACEOF
9285 rm -f conftest.$ac_objext conftest$ac_exeext
9286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9287 (eval $ac_link) 2>conftest.er1
9288 ac_status=$?
9289 grep -v '^ *+' conftest.er1 >conftest.err
9290 rm -f conftest.er1
9291 cat conftest.err >&5
9292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9293 (exit $ac_status); } &&
9294 { ac_try='test -z "$ac_c_werror_flag"
9295 || test ! -s conftest.err'
9296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9297 (eval $ac_try) 2>&5
9298 ac_status=$?
9299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9300 (exit $ac_status); }; } &&
9301 { ac_try='test -s conftest$ac_exeext'
9302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9303 (eval $ac_try) 2>&5
9304 ac_status=$?
9305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9306 (exit $ac_status); }; }; then
9307 eval "$as_ac_var=yes"
9308 else
9309 echo "$as_me: failed program was:" >&5
9310 sed 's/^/| /' conftest.$ac_ext >&5
9312 eval "$as_ac_var=no"
9314 rm -f conftest.err conftest.$ac_objext \
9315 conftest$ac_exeext conftest.$ac_ext
9317 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9318 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9319 if test `eval echo '${'$as_ac_var'}'` = yes; then
9320 cat >>confdefs.h <<_ACEOF
9321 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9322 _ACEOF
9325 done
9327 echo "$as_me:$LINENO: checking for mkstemp" >&5
9328 echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
9329 ac_ext=cc
9330 ac_cpp='$CXXCPP $CPPFLAGS'
9331 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9332 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9333 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9336 cat >conftest.$ac_ext <<_ACEOF
9338 /* confdefs.h. */
9339 _ACEOF
9340 cat confdefs.h >>conftest.$ac_ext
9341 cat >>conftest.$ac_ext <<_ACEOF
9342 /* end confdefs.h. */
9345 #include <stdlib.h>
9346 #include <unistd.h>
9347 int (*f) (char *);
9351 main ()
9355 f = mkstemp;
9359 return 0;
9362 _ACEOF
9363 rm -f conftest.$ac_objext conftest$ac_exeext
9364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9365 (eval $ac_link) 2>conftest.er1
9366 ac_status=$?
9367 grep -v '^ *+' conftest.er1 >conftest.err
9368 rm -f conftest.er1
9369 cat conftest.err >&5
9370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9371 (exit $ac_status); } &&
9372 { ac_try='test -z "$ac_cxx_werror_flag"
9373 || test ! -s conftest.err'
9374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9375 (eval $ac_try) 2>&5
9376 ac_status=$?
9377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9378 (exit $ac_status); }; } &&
9379 { ac_try='test -s conftest$ac_exeext'
9380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9381 (eval $ac_try) 2>&5
9382 ac_status=$?
9383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9384 (exit $ac_status); }; }; then
9385 echo "$as_me:$LINENO: result: yes" >&5
9386 echo "${ECHO_T}yes" >&6
9388 cat >>confdefs.h <<\_ACEOF
9389 #define HAVE_MKSTEMP 1
9390 _ACEOF
9392 else
9393 echo "$as_me: failed program was:" >&5
9394 sed 's/^/| /' conftest.$ac_ext >&5
9396 echo "$as_me:$LINENO: result: no" >&5
9397 echo "${ECHO_T}no" >&6
9398 case $LIBOBJS in
9399 "mkstemp.$ac_objext" | \
9400 *" mkstemp.$ac_objext" | \
9401 "mkstemp.$ac_objext "* | \
9402 *" mkstemp.$ac_objext "* ) ;;
9403 *) LIBOBJS="$LIBOBJS mkstemp.$ac_objext" ;;
9404 esac
9407 rm -f conftest.err conftest.$ac_objext \
9408 conftest$ac_exeext conftest.$ac_ext
9409 ac_ext=c
9410 ac_cpp='$CPP $CPPFLAGS'
9411 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9412 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9413 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9415 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
9416 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
9417 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
9418 echo $ECHO_N "(cached) $ECHO_C" >&6
9419 else
9420 cat >conftest.$ac_ext <<_ACEOF
9421 /* confdefs.h. */
9422 _ACEOF
9423 cat confdefs.h >>conftest.$ac_ext
9424 cat >>conftest.$ac_ext <<_ACEOF
9425 /* end confdefs.h. */
9426 $ac_includes_default
9428 main ()
9430 #ifndef sys_siglist
9431 char *p = (char *) sys_siglist;
9432 #endif
9435 return 0;
9437 _ACEOF
9438 rm -f conftest.$ac_objext
9439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9440 (eval $ac_compile) 2>conftest.er1
9441 ac_status=$?
9442 grep -v '^ *+' conftest.er1 >conftest.err
9443 rm -f conftest.er1
9444 cat conftest.err >&5
9445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9446 (exit $ac_status); } &&
9447 { ac_try='test -z "$ac_c_werror_flag"
9448 || test ! -s conftest.err'
9449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9450 (eval $ac_try) 2>&5
9451 ac_status=$?
9452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9453 (exit $ac_status); }; } &&
9454 { ac_try='test -s conftest.$ac_objext'
9455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9456 (eval $ac_try) 2>&5
9457 ac_status=$?
9458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9459 (exit $ac_status); }; }; then
9460 ac_cv_have_decl_sys_siglist=yes
9461 else
9462 echo "$as_me: failed program was:" >&5
9463 sed 's/^/| /' conftest.$ac_ext >&5
9465 ac_cv_have_decl_sys_siglist=no
9467 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9469 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
9470 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
9471 if test $ac_cv_have_decl_sys_siglist = yes; then
9473 cat >>confdefs.h <<_ACEOF
9474 #define HAVE_DECL_SYS_SIGLIST 1
9475 _ACEOF
9478 else
9479 cat >>confdefs.h <<_ACEOF
9480 #define HAVE_DECL_SYS_SIGLIST 0
9481 _ACEOF
9488 # checks for compiler characteristics
9489 ac_ext=cc
9490 ac_cpp='$CXXCPP $CPPFLAGS'
9491 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9492 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9493 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9495 echo "$as_me:$LINENO: checking whether ANSI array delete syntax is supported" >&5
9496 echo $ECHO_N "checking whether ANSI array delete syntax is supported... $ECHO_C" >&6
9497 cat >conftest.$ac_ext <<_ACEOF
9499 /* confdefs.h. */
9500 _ACEOF
9501 cat confdefs.h >>conftest.$ac_ext
9502 cat >>conftest.$ac_ext <<_ACEOF
9503 /* end confdefs.h. */
9506 main ()
9510 char *p = new char[5];
9511 delete [] p;
9515 return 0;
9518 _ACEOF
9519 rm -f conftest.$ac_objext
9520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9521 (eval $ac_compile) 2>conftest.er1
9522 ac_status=$?
9523 grep -v '^ *+' conftest.er1 >conftest.err
9524 rm -f conftest.er1
9525 cat conftest.err >&5
9526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9527 (exit $ac_status); } &&
9528 { ac_try='test -z "$ac_cxx_werror_flag"
9529 || test ! -s conftest.err'
9530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9531 (eval $ac_try) 2>&5
9532 ac_status=$?
9533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9534 (exit $ac_status); }; } &&
9535 { ac_try='test -s conftest.$ac_objext'
9536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9537 (eval $ac_try) 2>&5
9538 ac_status=$?
9539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9540 (exit $ac_status); }; }; then
9541 echo "$as_me:$LINENO: result: yes" >&5
9542 echo "${ECHO_T}yes" >&6
9543 else
9544 echo "$as_me: failed program was:" >&5
9545 sed 's/^/| /' conftest.$ac_ext >&5
9547 echo "$as_me:$LINENO: result: no" >&5
9548 echo "${ECHO_T}no" >&6
9550 cat >>confdefs.h <<\_ACEOF
9551 #define ARRAY_DELETE_NEEDS_SIZE 1
9552 _ACEOF
9555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9556 ac_ext=c
9557 ac_cpp='$CPP $CPPFLAGS'
9558 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9559 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9560 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9562 ac_ext=cc
9563 ac_cpp='$CXXCPP $CPPFLAGS'
9564 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9565 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9566 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9568 echo "$as_me:$LINENO: checking traditional preprocessor" >&5
9569 echo $ECHO_N "checking traditional preprocessor... $ECHO_C" >&6
9570 cat >conftest.$ac_ext <<_ACEOF
9572 /* confdefs.h. */
9573 _ACEOF
9574 cat confdefs.h >>conftest.$ac_ext
9575 cat >>conftest.$ac_ext <<_ACEOF
9576 /* end confdefs.h. */
9579 #define name2(a, b) a/**/b
9583 main ()
9587 int name2(foo, bar);
9591 return 0;
9594 _ACEOF
9595 rm -f conftest.$ac_objext
9596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9597 (eval $ac_compile) 2>conftest.er1
9598 ac_status=$?
9599 grep -v '^ *+' conftest.er1 >conftest.err
9600 rm -f conftest.er1
9601 cat conftest.err >&5
9602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9603 (exit $ac_status); } &&
9604 { ac_try='test -z "$ac_cxx_werror_flag"
9605 || test ! -s conftest.err'
9606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9607 (eval $ac_try) 2>&5
9608 ac_status=$?
9609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9610 (exit $ac_status); }; } &&
9611 { ac_try='test -s conftest.$ac_objext'
9612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9613 (eval $ac_try) 2>&5
9614 ac_status=$?
9615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9616 (exit $ac_status); }; }; then
9617 echo "$as_me:$LINENO: result: yes" >&5
9618 echo "${ECHO_T}yes" >&6
9620 cat >>confdefs.h <<\_ACEOF
9621 #define TRADITIONAL_CPP 1
9622 _ACEOF
9624 else
9625 echo "$as_me: failed program was:" >&5
9626 sed 's/^/| /' conftest.$ac_ext >&5
9628 echo "$as_me:$LINENO: result: no" >&5
9629 echo "${ECHO_T}no" >&6
9631 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9632 ac_ext=c
9633 ac_cpp='$CPP $CPPFLAGS'
9634 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9635 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9636 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9639 # checks for operating system services
9640 echo "$as_me:$LINENO: checking w_coredump" >&5
9641 echo $ECHO_N "checking w_coredump... $ECHO_C" >&6
9642 if test "$cross_compiling" = yes; then
9643 echo "$as_me:$LINENO: result: no" >&5
9644 echo "${ECHO_T}no" >&6
9645 else
9646 cat >conftest.$ac_ext <<_ACEOF
9648 /* confdefs.h. */
9649 _ACEOF
9650 cat confdefs.h >>conftest.$ac_ext
9651 cat >>conftest.$ac_ext <<_ACEOF
9652 /* end confdefs.h. */
9655 #include <sys/types.h>
9656 #include <sys/wait.h>
9660 main ()
9664 main()
9666 #ifdef WCOREFLAG
9667 exit(1);
9668 #else
9669 int i = 0;
9670 ((union wait *)&i)->w_coredump = 1;
9671 exit(i != 0200);
9672 #endif
9677 return 0;
9680 _ACEOF
9681 rm -f conftest$ac_exeext
9682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9683 (eval $ac_link) 2>&5
9684 ac_status=$?
9685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9686 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9688 (eval $ac_try) 2>&5
9689 ac_status=$?
9690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9691 (exit $ac_status); }; }; then
9692 echo "$as_me:$LINENO: result: yes" >&5
9693 echo "${ECHO_T}yes" >&6
9695 cat >>confdefs.h <<\_ACEOF
9696 #define WCOREFLAG 0200
9697 _ACEOF
9699 else
9700 echo "$as_me: program exited with status $ac_status" >&5
9701 echo "$as_me: failed program was:" >&5
9702 sed 's/^/| /' conftest.$ac_ext >&5
9704 ( exit $ac_status )
9705 echo "$as_me:$LINENO: result: no" >&5
9706 echo "${ECHO_T}no" >&6
9708 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9711 # other random stuff
9712 echo "$as_me:$LINENO: checking default value for grops -b option" >&5
9713 echo $ECHO_N "checking default value for grops -b option... $ECHO_C" >&6
9714 test -n "${BROKEN_SPOOLER_FLAGS}" || BROKEN_SPOOLER_FLAGS=0
9715 echo "$as_me:$LINENO: result: $BROKEN_SPOOLER_FLAGS" >&5
9716 echo "${ECHO_T}$BROKEN_SPOOLER_FLAGS" >&6
9718 echo "$as_me:$LINENO: checking default paper size" >&5
9719 echo $ECHO_N "checking default paper size... $ECHO_C" >&6
9720 groff_prefix=$prefix
9721 test "x$prefix" = "xNONE" && groff_prefix=$ac_default_prefix
9722 if test -z "$PAGE"; then
9723 descfile=
9724 if test -r $groff_prefix/share/groff/font/devps/DESC; then
9725 descfile=$groff_prefix/share/groff/font/devps/DESC
9726 elif test -r $groff_prefix/lib/groff/font/devps/DESC; then
9727 descfile=$groff_prefix/lib/groff/font/devps/DESC
9728 else
9729 for f in $groff_prefix/share/groff/*/font/devps/DESC; do
9730 if test -r $f; then
9731 descfile=$f
9732 break
9734 done
9737 if test -n "$descfile"; then
9738 if grep '^paperlength[ ]\+841890' $descfile >/dev/null 2>&1; then
9739 PAGE=A4
9740 elif grep '^papersize[ ]\+[aA]4' $descfile >/dev/null 2>&1; then
9741 PAGE=A4
9746 if test -z "$PAGE"; then
9747 dom=`awk '($1 == "dom" || $1 == "search") { print $2; exit}' \
9748 /etc/resolv.conf 2>/dev/null`
9749 if test -z "$dom"; then
9750 dom=`(domainname) 2>/dev/null | tr -d '+'`
9751 if test -z "$dom" \
9752 || test "$dom" = '(none)'; then
9753 dom=`(hostname) 2>/dev/null | grep '\.'`
9756 # If the top-level domain is two letters and it's not `us' or `ca'
9757 # then they probably use A4 paper.
9758 case "$dom" in
9759 *.[Uu][Ss]|*.[Cc][Aa])
9761 *.[A-Za-z][A-Za-z])
9762 PAGE=A4 ;;
9763 esac
9766 test -n "$PAGE" || PAGE=letter
9767 if test "x$PAGE" = "xA4"; then
9769 cat >>confdefs.h <<\_ACEOF
9770 #define PAGEA4 1
9771 _ACEOF
9774 echo "$as_me:$LINENO: result: $PAGE" >&5
9775 echo "${ECHO_T}$PAGE" >&6
9777 echo "$as_me:$LINENO: checking for existing troff installation" >&5
9778 echo $ECHO_N "checking for existing troff installation... $ECHO_C" >&6
9779 if test "x`(echo .tm '|n(.g' | tr '|' '\\\\' | troff -z -i 2>&1) 2>/dev/null`" = x0; then
9780 echo "$as_me:$LINENO: result: yes" >&5
9781 echo "${ECHO_T}yes" >&6
9783 else
9784 echo "$as_me:$LINENO: result: no" >&5
9785 echo "${ECHO_T}no" >&6
9789 echo "$as_me:$LINENO: checking for prefix of system macro packages" >&5
9790 echo $ECHO_N "checking for prefix of system macro packages... $ECHO_C" >&6
9791 sys_tmac_prefix=
9792 sys_tmac_file_prefix=
9793 for d in /usr/share/lib/tmac /usr/lib/tmac; do
9794 for t in "" tmac.; do
9795 for m in an s m; do
9796 f=$d/$t$m
9797 if test -z "$sys_tmac_prefix" \
9798 && test -f $f \
9799 && grep '^\.if' $f >/dev/null 2>&1; then
9800 sys_tmac_prefix=$d/$t
9801 sys_tmac_file_prefix=$t
9803 done
9804 done
9805 done
9806 echo "$as_me:$LINENO: result: $sys_tmac_prefix" >&5
9807 echo "${ECHO_T}$sys_tmac_prefix" >&6
9810 echo "$as_me:$LINENO: checking which system macro packages should be made available" >&5
9811 echo $ECHO_N "checking which system macro packages should be made available... $ECHO_C" >&6
9812 tmac_wrap=
9813 if test "x$sys_tmac_file_prefix" = "xtmac."; then
9814 for f in $sys_tmac_prefix*; do
9815 suff=`echo $f | sed -e "s;$sys_tmac_prefix;;"`
9816 case "$suff" in
9820 grep "Copyright.*Free Software Foundation" $f >/dev/null \
9821 || tmac_wrap="$tmac_wrap $suff" ;;
9822 esac
9823 done
9824 elif test -n "$sys_tmac_prefix"; then
9825 files=`echo $sys_tmac_prefix*`
9826 grep "\\.so" $files >conftest.sol
9827 for f in $files; do
9828 case "$f" in
9829 ${sys_tmac_prefix}e)
9831 *.me)
9833 */ms.*)
9836 b=`basename $f`
9837 if grep "\\.so.*/$b\$" conftest.sol >/dev/null \
9838 || grep -l "Copyright.*Free Software Foundation" $f >/dev/null; then
9840 else
9841 suff=`echo $f | sed -e "s;$sys_tmac_prefix;;"`
9842 case "$suff" in
9843 tmac.*)
9846 tmac_wrap="$tmac_wrap $suff" ;;
9847 esac
9849 esac
9850 done
9851 rm -f conftest.sol
9853 echo "$as_me:$LINENO: result: $tmac_wrap" >&5
9854 echo "${ECHO_T}$tmac_wrap" >&6
9856 echo "$as_me:$LINENO: checking separator character to use in groff search paths" >&5
9857 echo $ECHO_N "checking separator character to use in groff search paths... $ECHO_C" >&6
9858 cp ${srcdir}/src/include/nonposix.h conftest.h
9859 cat >conftest.$ac_ext <<_ACEOF
9861 /* confdefs.h. */
9862 _ACEOF
9863 cat confdefs.h >>conftest.$ac_ext
9864 cat >>conftest.$ac_ext <<_ACEOF
9865 /* end confdefs.h. */
9868 #include <ctype.h>
9869 #include "conftest.h"
9873 main ()
9877 #if PATH_SEP_CHAR == ';'
9878 make an error "Path separator is ';'"
9879 #endif
9883 return 0;
9886 _ACEOF
9887 rm -f conftest.$ac_objext
9888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9889 (eval $ac_compile) 2>conftest.er1
9890 ac_status=$?
9891 grep -v '^ *+' conftest.er1 >conftest.err
9892 rm -f conftest.er1
9893 cat conftest.err >&5
9894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9895 (exit $ac_status); } &&
9896 { ac_try='test -z "$ac_c_werror_flag"
9897 || test ! -s conftest.err'
9898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9899 (eval $ac_try) 2>&5
9900 ac_status=$?
9901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9902 (exit $ac_status); }; } &&
9903 { ac_try='test -s conftest.$ac_objext'
9904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9905 (eval $ac_try) 2>&5
9906 ac_status=$?
9907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9908 (exit $ac_status); }; }; then
9909 GROFF_PATH_SEPARATOR=":"
9910 else
9911 echo "$as_me: failed program was:" >&5
9912 sed 's/^/| /' conftest.$ac_ext >&5
9914 GROFF_PATH_SEPARATOR=";"
9916 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9917 echo "$as_me:$LINENO: result: $GROFF_PATH_SEPARATOR" >&5
9918 echo "${ECHO_T}$GROFF_PATH_SEPARATOR" >&6
9921 # Check whether --with-alt-gs or --without-alt-gs was given.
9922 if test "${with_alt_gs+set}" = set; then
9923 withval="$with_alt_gs"
9924 ALT_GHOSTSCRIPT_PROGS="$withval"
9925 else
9926 ALT_GHOSTSCRIPT_PROGS="gs gswin32c gsos2"
9931 # Check whether --with-gs or --without-gs was given.
9932 if test "${with_gs+set}" = set; then
9933 withval="$with_gs"
9934 GHOSTSCRIPT=$withval
9935 else
9936 if test -n "$ac_tool_prefix"; then
9937 for ac_prog in $ALT_GHOSTSCRIPT_PROGS
9939 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9940 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9941 echo "$as_me:$LINENO: checking for $ac_word" >&5
9942 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9943 if test "${ac_cv_prog_GHOSTSCRIPT+set}" = set; then
9944 echo $ECHO_N "(cached) $ECHO_C" >&6
9945 else
9946 if test -n "$GHOSTSCRIPT"; then
9947 ac_cv_prog_GHOSTSCRIPT="$GHOSTSCRIPT" # Let the user override the test.
9948 else
9949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9950 for as_dir in $PATH
9952 IFS=$as_save_IFS
9953 test -z "$as_dir" && as_dir=.
9954 for ac_exec_ext in '' $ac_executable_extensions; do
9955 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9956 ac_cv_prog_GHOSTSCRIPT="$ac_tool_prefix$ac_prog"
9957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9958 break 2
9960 done
9961 done
9965 GHOSTSCRIPT=$ac_cv_prog_GHOSTSCRIPT
9966 if test -n "$GHOSTSCRIPT"; then
9967 echo "$as_me:$LINENO: result: $GHOSTSCRIPT" >&5
9968 echo "${ECHO_T}$GHOSTSCRIPT" >&6
9969 else
9970 echo "$as_me:$LINENO: result: no" >&5
9971 echo "${ECHO_T}no" >&6
9974 test -n "$GHOSTSCRIPT" && break
9975 done
9977 if test -z "$GHOSTSCRIPT"; then
9978 ac_ct_GHOSTSCRIPT=$GHOSTSCRIPT
9979 for ac_prog in $ALT_GHOSTSCRIPT_PROGS
9981 # Extract the first word of "$ac_prog", so it can be a program name with args.
9982 set dummy $ac_prog; ac_word=$2
9983 echo "$as_me:$LINENO: checking for $ac_word" >&5
9984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9985 if test "${ac_cv_prog_ac_ct_GHOSTSCRIPT+set}" = set; then
9986 echo $ECHO_N "(cached) $ECHO_C" >&6
9987 else
9988 if test -n "$ac_ct_GHOSTSCRIPT"; then
9989 ac_cv_prog_ac_ct_GHOSTSCRIPT="$ac_ct_GHOSTSCRIPT" # Let the user override the test.
9990 else
9991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9992 for as_dir in $PATH
9994 IFS=$as_save_IFS
9995 test -z "$as_dir" && as_dir=.
9996 for ac_exec_ext in '' $ac_executable_extensions; do
9997 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9998 ac_cv_prog_ac_ct_GHOSTSCRIPT="$ac_prog"
9999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10000 break 2
10002 done
10003 done
10007 ac_ct_GHOSTSCRIPT=$ac_cv_prog_ac_ct_GHOSTSCRIPT
10008 if test -n "$ac_ct_GHOSTSCRIPT"; then
10009 echo "$as_me:$LINENO: result: $ac_ct_GHOSTSCRIPT" >&5
10010 echo "${ECHO_T}$ac_ct_GHOSTSCRIPT" >&6
10011 else
10012 echo "$as_me:$LINENO: result: no" >&5
10013 echo "${ECHO_T}no" >&6
10016 test -n "$ac_ct_GHOSTSCRIPT" && break
10017 done
10019 if test "x$ac_ct_GHOSTSCRIPT" = x; then
10020 GHOSTSCRIPT="missing"
10021 else
10022 if test "$build" != "$host"; then
10023 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
10024 whose name does not start with the host triplet. If you think this
10025 configuration is useful to you, please write to autoconf@gnu.org." >&5
10026 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
10027 whose name does not start with the host triplet. If you think this
10028 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
10030 GHOSTSCRIPT=$ac_ct_GHOSTSCRIPT
10035 test "$GHOSTSCRIPT" = "no" && GHOSTSCRIPT=missing
10037 make_html=html
10038 make_install_html=install_html
10040 missing=
10041 # Extract the first word of "pnmcut", so it can be a program name with args.
10042 set dummy pnmcut; ac_word=$2
10043 echo "$as_me:$LINENO: checking for $ac_word" >&5
10044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10045 if test "${ac_cv_prog_pnmcut+set}" = set; then
10046 echo $ECHO_N "(cached) $ECHO_C" >&6
10047 else
10048 if test -n "$pnmcut"; then
10049 ac_cv_prog_pnmcut="$pnmcut" # Let the user override the test.
10050 else
10051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10052 for as_dir in $PATH
10054 IFS=$as_save_IFS
10055 test -z "$as_dir" && as_dir=.
10056 for ac_exec_ext in '' $ac_executable_extensions; do
10057 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10058 ac_cv_prog_pnmcut="found"
10059 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10060 break 2
10062 done
10063 done
10065 test -z "$ac_cv_prog_pnmcut" && ac_cv_prog_pnmcut="missing"
10068 pnmcut=$ac_cv_prog_pnmcut
10069 if test -n "$pnmcut"; then
10070 echo "$as_me:$LINENO: result: $pnmcut" >&5
10071 echo "${ECHO_T}$pnmcut" >&6
10072 else
10073 echo "$as_me:$LINENO: result: no" >&5
10074 echo "${ECHO_T}no" >&6
10077 if test $pnmcut = missing; then
10078 missing="$missing \`pnmcut'"
10079 fi;# Extract the first word of "pnmcrop", so it can be a program name with args.
10080 set dummy pnmcrop; ac_word=$2
10081 echo "$as_me:$LINENO: checking for $ac_word" >&5
10082 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10083 if test "${ac_cv_prog_pnmcrop+set}" = set; then
10084 echo $ECHO_N "(cached) $ECHO_C" >&6
10085 else
10086 if test -n "$pnmcrop"; then
10087 ac_cv_prog_pnmcrop="$pnmcrop" # Let the user override the test.
10088 else
10089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10090 for as_dir in $PATH
10092 IFS=$as_save_IFS
10093 test -z "$as_dir" && as_dir=.
10094 for ac_exec_ext in '' $ac_executable_extensions; do
10095 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10096 ac_cv_prog_pnmcrop="found"
10097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10098 break 2
10100 done
10101 done
10103 test -z "$ac_cv_prog_pnmcrop" && ac_cv_prog_pnmcrop="missing"
10106 pnmcrop=$ac_cv_prog_pnmcrop
10107 if test -n "$pnmcrop"; then
10108 echo "$as_me:$LINENO: result: $pnmcrop" >&5
10109 echo "${ECHO_T}$pnmcrop" >&6
10110 else
10111 echo "$as_me:$LINENO: result: no" >&5
10112 echo "${ECHO_T}no" >&6
10115 if test $pnmcrop = missing; then
10116 missing="$missing \`pnmcrop'"
10117 fi;# Extract the first word of "pnmtopng", so it can be a program name with args.
10118 set dummy pnmtopng; ac_word=$2
10119 echo "$as_me:$LINENO: checking for $ac_word" >&5
10120 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10121 if test "${ac_cv_prog_pnmtopng+set}" = set; then
10122 echo $ECHO_N "(cached) $ECHO_C" >&6
10123 else
10124 if test -n "$pnmtopng"; then
10125 ac_cv_prog_pnmtopng="$pnmtopng" # Let the user override the test.
10126 else
10127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10128 for as_dir in $PATH
10130 IFS=$as_save_IFS
10131 test -z "$as_dir" && as_dir=.
10132 for ac_exec_ext in '' $ac_executable_extensions; do
10133 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10134 ac_cv_prog_pnmtopng="found"
10135 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10136 break 2
10138 done
10139 done
10141 test -z "$ac_cv_prog_pnmtopng" && ac_cv_prog_pnmtopng="missing"
10144 pnmtopng=$ac_cv_prog_pnmtopng
10145 if test -n "$pnmtopng"; then
10146 echo "$as_me:$LINENO: result: $pnmtopng" >&5
10147 echo "${ECHO_T}$pnmtopng" >&6
10148 else
10149 echo "$as_me:$LINENO: result: no" >&5
10150 echo "${ECHO_T}no" >&6
10153 if test $pnmtopng = missing; then
10154 missing="$missing \`pnmtopng'"
10155 fi;# Extract the first word of "psselect", so it can be a program name with args.
10156 set dummy psselect; ac_word=$2
10157 echo "$as_me:$LINENO: checking for $ac_word" >&5
10158 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10159 if test "${ac_cv_prog_psselect+set}" = set; then
10160 echo $ECHO_N "(cached) $ECHO_C" >&6
10161 else
10162 if test -n "$psselect"; then
10163 ac_cv_prog_psselect="$psselect" # Let the user override the test.
10164 else
10165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10166 for as_dir in $PATH
10168 IFS=$as_save_IFS
10169 test -z "$as_dir" && as_dir=.
10170 for ac_exec_ext in '' $ac_executable_extensions; do
10171 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10172 ac_cv_prog_psselect="found"
10173 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10174 break 2
10176 done
10177 done
10179 test -z "$ac_cv_prog_psselect" && ac_cv_prog_psselect="missing"
10182 psselect=$ac_cv_prog_psselect
10183 if test -n "$psselect"; then
10184 echo "$as_me:$LINENO: result: $psselect" >&5
10185 echo "${ECHO_T}$psselect" >&6
10186 else
10187 echo "$as_me:$LINENO: result: no" >&5
10188 echo "${ECHO_T}no" >&6
10191 if test $psselect = missing; then
10192 missing="$missing \`psselect'"
10193 fi;# Extract the first word of "pnmtops", so it can be a program name with args.
10194 set dummy pnmtops; ac_word=$2
10195 echo "$as_me:$LINENO: checking for $ac_word" >&5
10196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10197 if test "${ac_cv_prog_pnmtops+set}" = set; then
10198 echo $ECHO_N "(cached) $ECHO_C" >&6
10199 else
10200 if test -n "$pnmtops"; then
10201 ac_cv_prog_pnmtops="$pnmtops" # Let the user override the test.
10202 else
10203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10204 for as_dir in $PATH
10206 IFS=$as_save_IFS
10207 test -z "$as_dir" && as_dir=.
10208 for ac_exec_ext in '' $ac_executable_extensions; do
10209 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10210 ac_cv_prog_pnmtops="found"
10211 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10212 break 2
10214 done
10215 done
10217 test -z "$ac_cv_prog_pnmtops" && ac_cv_prog_pnmtops="missing"
10220 pnmtops=$ac_cv_prog_pnmtops
10221 if test -n "$pnmtops"; then
10222 echo "$as_me:$LINENO: result: $pnmtops" >&5
10223 echo "${ECHO_T}$pnmtops" >&6
10224 else
10225 echo "$as_me:$LINENO: result: no" >&5
10226 echo "${ECHO_T}no" >&6
10229 if test $pnmtops = missing; then
10230 missing="$missing \`pnmtops'"
10233 test "$GHOSTSCRIPT" = "missing" && missing="$missing \`gs'"
10235 if test -n "$missing"; then
10236 plural=`set $missing; test $# -gt 1 && echo s`
10237 missing=`set $missing
10238 missing=""
10239 while test $# -gt 0
10241 case $# in
10242 1) missing="$missing$1" ;;
10243 2) missing="$missing$1 and " ;;
10244 *) missing="$missing$1, " ;;
10245 esac
10246 shift
10247 done
10248 echo $missing`
10250 make_html=
10251 make_install_html=
10253 { echo "$as_me:$LINENO: WARNING: missing program$plural:
10255 The program$plural
10256 $missing
10257 cannot be found in the PATH.
10258 Consequently, groff's HTML backend (grohtml) will not work properly;
10259 therefore, it will neither be possible to prepare, nor to install,
10260 documentation in HTML format.
10261 " >&5
10262 echo "$as_me: WARNING: missing program$plural:
10264 The program$plural
10265 $missing
10266 cannot be found in the PATH.
10267 Consequently, groff's HTML backend (grohtml) will not work properly;
10268 therefore, it will neither be possible to prepare, nor to install,
10269 documentation in HTML format.
10270 " >&2;}
10276 # Check whether --with-alt-awk or --without-alt-awk was given.
10277 if test "${with_alt_awk+set}" = set; then
10278 withval="$with_alt_awk"
10279 ALT_AWK_PROGS="$withval"
10280 else
10281 ALT_AWK_PROGS="gawk mawk nawk awk"
10286 # Check whether --with-awk or --without-awk was given.
10287 if test "${with_awk+set}" = set; then
10288 withval="$with_awk"
10289 AWK=$withval
10290 else
10291 if test -n "$ac_tool_prefix"; then
10292 for ac_prog in $ALT_AWK_PROGS
10294 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10295 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10296 echo "$as_me:$LINENO: checking for $ac_word" >&5
10297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10298 if test "${ac_cv_prog_AWK+set}" = set; then
10299 echo $ECHO_N "(cached) $ECHO_C" >&6
10300 else
10301 if test -n "$AWK"; then
10302 ac_cv_prog_AWK="$AWK" # Let the user override the test.
10303 else
10304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10305 for as_dir in $PATH
10307 IFS=$as_save_IFS
10308 test -z "$as_dir" && as_dir=.
10309 for ac_exec_ext in '' $ac_executable_extensions; do
10310 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10311 ac_cv_prog_AWK="$ac_tool_prefix$ac_prog"
10312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10313 break 2
10315 done
10316 done
10320 AWK=$ac_cv_prog_AWK
10321 if test -n "$AWK"; then
10322 echo "$as_me:$LINENO: result: $AWK" >&5
10323 echo "${ECHO_T}$AWK" >&6
10324 else
10325 echo "$as_me:$LINENO: result: no" >&5
10326 echo "${ECHO_T}no" >&6
10329 test -n "$AWK" && break
10330 done
10332 if test -z "$AWK"; then
10333 ac_ct_AWK=$AWK
10334 for ac_prog in $ALT_AWK_PROGS
10336 # Extract the first word of "$ac_prog", so it can be a program name with args.
10337 set dummy $ac_prog; ac_word=$2
10338 echo "$as_me:$LINENO: checking for $ac_word" >&5
10339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10340 if test "${ac_cv_prog_ac_ct_AWK+set}" = set; then
10341 echo $ECHO_N "(cached) $ECHO_C" >&6
10342 else
10343 if test -n "$ac_ct_AWK"; then
10344 ac_cv_prog_ac_ct_AWK="$ac_ct_AWK" # Let the user override the test.
10345 else
10346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10347 for as_dir in $PATH
10349 IFS=$as_save_IFS
10350 test -z "$as_dir" && as_dir=.
10351 for ac_exec_ext in '' $ac_executable_extensions; do
10352 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10353 ac_cv_prog_ac_ct_AWK="$ac_prog"
10354 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10355 break 2
10357 done
10358 done
10362 ac_ct_AWK=$ac_cv_prog_ac_ct_AWK
10363 if test -n "$ac_ct_AWK"; then
10364 echo "$as_me:$LINENO: result: $ac_ct_AWK" >&5
10365 echo "${ECHO_T}$ac_ct_AWK" >&6
10366 else
10367 echo "$as_me:$LINENO: result: no" >&5
10368 echo "${ECHO_T}no" >&6
10371 test -n "$ac_ct_AWK" && break
10372 done
10374 if test "x$ac_ct_AWK" = x; then
10375 AWK="missing"
10376 else
10377 if test "$build" != "$host"; then
10378 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
10379 whose name does not start with the host triplet. If you think this
10380 configuration is useful to you, please write to autoconf@gnu.org." >&5
10381 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
10382 whose name does not start with the host triplet. If you think this
10383 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
10385 AWK=$ac_ct_AWK
10390 test "$AWK" = "no" && AWK=missing
10394 make_pdfdoc=pdfdoc
10395 make_install_pdfdoc=install_pdfdoc
10397 missing=""
10398 test "$AWK" = missing && missing="\`awk'"
10399 test "$GHOSTSCRIPT" = missing && missing="$missing \`gs'"
10400 if test -n "$missing"; then
10401 plural=`set $missing; test $# -eq 2 && echo s`
10402 test x$plural = xs \
10403 && missing=`set $missing; echo "$1 and $2"` \
10404 || missing=`echo $missing`
10406 make_pdfdoc=
10407 make_install_pdfdoc=
10409 { echo "$as_me:$LINENO: WARNING: missing program$plural:
10411 The program$plural $missing cannot be found in the PATH.
10412 Consequently, groff's PDF formatter (pdfroff) will not work properly;
10413 therefore, it will neither be possible to prepare, nor to install,
10414 documentation in PDF format.
10415 " >&5
10416 echo "$as_me: WARNING: missing program$plural:
10418 The program$plural $missing cannot be found in the PATH.
10419 Consequently, groff's PDF formatter (pdfroff) will not work properly;
10420 therefore, it will neither be possible to prepare, nor to install,
10421 documentation in PDF format.
10422 " >&2;}
10427 echo "$as_me:$LINENO: checking whether pnmtops can handle the -nosetpage option" >&5
10428 echo $ECHO_N "checking whether pnmtops can handle the -nosetpage option... $ECHO_C" >&6
10429 if echo P2 2 2 255 0 1 2 0 | pnmtops -nosetpage > /dev/null 2>&1 ; then
10430 echo "$as_me:$LINENO: result: yes" >&5
10431 echo "${ECHO_T}yes" >&6
10432 pnmtops_nosetpage="pnmtops -nosetpage"
10433 else
10434 echo "$as_me:$LINENO: result: no" >&5
10435 echo "${ECHO_T}no" >&6
10436 pnmtops_nosetpage="pnmtops"
10440 ac_config_files="$ac_config_files stamp-h"
10442 ac_config_files="$ac_config_files Makefile doc/Makefile src/utils/xtotroff/Makefile"
10444 ac_config_files="$ac_config_files contrib/gdiffmk/tests/runtests"
10446 ac_config_files="$ac_config_files test-groff"
10448 cat >confcache <<\_ACEOF
10449 # This file is a shell script that caches the results of configure
10450 # tests run on this system so they can be shared between configure
10451 # scripts and configure runs, see configure's option --config-cache.
10452 # It is not useful on other systems. If it contains results you don't
10453 # want to keep, you may remove or edit it.
10455 # config.status only pays attention to the cache file if you give it
10456 # the --recheck option to rerun configure.
10458 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10459 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10460 # following values.
10462 _ACEOF
10464 # The following way of writing the cache mishandles newlines in values,
10465 # but we know of no workaround that is simple, portable, and efficient.
10466 # So, don't put newlines in cache variables' values.
10467 # Ultrix sh set writes to stderr and can't be redirected directly,
10468 # and sets the high bit in the cache file unless we assign to the vars.
10470 (set) 2>&1 |
10471 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10472 *ac_space=\ *)
10473 # `set' does not quote correctly, so add quotes (double-quote
10474 # substitution turns \\\\ into \\, and sed turns \\ into \).
10475 sed -n \
10476 "s/'/'\\\\''/g;
10477 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10480 # `set' quotes correctly as required by POSIX, so do not add quotes.
10481 sed -n \
10482 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10484 esac;
10486 sed '
10487 t clear
10488 : clear
10489 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10490 t end
10491 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10492 : end' >>confcache
10493 if diff $cache_file confcache >/dev/null 2>&1; then :; else
10494 if test -w $cache_file; then
10495 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10496 cat confcache >$cache_file
10497 else
10498 echo "not updating unwritable cache $cache_file"
10501 rm -f confcache
10503 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10504 # Let make expand exec_prefix.
10505 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10507 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10508 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10509 # trailing colons and then remove the whole line if VPATH becomes empty
10510 # (actually we leave an empty line to preserve line numbers).
10511 if test "x$srcdir" = x.; then
10512 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10513 s/:*\$(srcdir):*/:/;
10514 s/:*\${srcdir}:*/:/;
10515 s/:*@srcdir@:*/:/;
10516 s/^\([^=]*=[ ]*\):*/\1/;
10517 s/:*$//;
10518 s/^[^=]*=[ ]*$//;
10522 DEFS=-DHAVE_CONFIG_H
10524 ac_libobjs=
10525 ac_ltlibobjs=
10526 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10527 # 1. Remove the extension, and $U if already installed.
10528 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10529 ac_i=`echo "$ac_i" | sed "$ac_script"`
10530 # 2. Add them.
10531 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10532 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10533 done
10534 LIBOBJS=$ac_libobjs
10536 LTLIBOBJS=$ac_ltlibobjs
10540 : ${CONFIG_STATUS=./config.status}
10541 ac_clean_files_save=$ac_clean_files
10542 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10543 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10544 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10545 cat >$CONFIG_STATUS <<_ACEOF
10546 #! $SHELL
10547 # Generated by $as_me.
10548 # Run this file to recreate the current configuration.
10549 # Compiler output produced by configure, useful for debugging
10550 # configure, is in config.log if it exists.
10552 debug=false
10553 ac_cs_recheck=false
10554 ac_cs_silent=false
10555 SHELL=\${CONFIG_SHELL-$SHELL}
10556 _ACEOF
10558 cat >>$CONFIG_STATUS <<\_ACEOF
10559 ## --------------------- ##
10560 ## M4sh Initialization. ##
10561 ## --------------------- ##
10563 # Be Bourne compatible
10564 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10565 emulate sh
10566 NULLCMD=:
10567 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10568 # is contrary to our usage. Disable this feature.
10569 alias -g '${1+"$@"}'='"$@"'
10570 setopt NO_GLOB_SUBST
10571 elif test -n "${BASH_VERSION+set}${KSH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10572 set -o posix
10574 BIN_SH=xpg4; export BIN_SH # for Tru64
10575 DUALCASE=1; export DUALCASE # for MKS sh
10578 # PATH needs CR
10579 # Avoid depending upon Character Ranges.
10580 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10581 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10582 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10583 as_cr_digits='0123456789'
10584 as_cr_alnum=$as_cr_Letters$as_cr_digits
10586 # The user is always right.
10587 if test "${PATH_SEPARATOR+set}" != set; then
10588 echo "#! /bin/sh" >conf$$.sh
10589 echo "exit 0" >>conf$$.sh
10590 chmod +x conf$$.sh
10591 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10592 PATH_SEPARATOR=';'
10593 else
10594 PATH_SEPARATOR=:
10596 rm -f conf$$.sh
10599 # Support unset when possible.
10600 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10601 as_unset=unset
10602 else
10603 as_unset=false
10607 # Find who we are. Look in the path if we contain no path at all
10608 # relative or not.
10609 case $0 in
10610 *[\\/]* ) as_myself=$0 ;;
10611 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10612 for as_dir in $PATH
10614 IFS=$as_save_IFS
10615 test -z "$as_dir" && as_dir=.
10616 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10617 done
10620 esac
10621 # We did not find ourselves, most probably we were run as `sh COMMAND'
10622 # in which case we are not to be found in the path.
10623 if test "x$as_myself" = x; then
10624 as_myself=$0
10626 if test ! -f "$as_myself"; then
10627 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute file name" >&5
10628 echo "$as_me: error: cannot find myself; rerun with an absolute file name" >&2;}
10629 { (exit 1); exit 1; }; }
10632 # Work around bugs in pre-3.0 UWIN ksh.
10633 for as_var in ENV MAIL MAILPATH
10634 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
10635 done
10636 PS1='$ '
10637 PS2='> '
10638 PS4='+ '
10640 # NLS nuisances.
10641 for as_var in \
10642 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10643 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10644 LC_TELEPHONE LC_TIME
10646 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10647 eval $as_var=C; export $as_var
10648 else
10649 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
10651 done
10653 # Required to use basename.
10654 if expr a : '\(a\)' >/dev/null 2>&1; then
10655 as_expr=expr
10656 else
10657 as_expr=false
10660 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
10661 as_basename=basename
10662 else
10663 as_basename=false
10667 # Name of the executable.
10668 as_me=`$as_basename "$0" ||
10669 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10670 X"$0" : 'X\(//\)$' \| \
10671 X"$0" : 'X\(/\)$' \| \
10672 . : '\(.\)' 2>/dev/null ||
10673 echo X/"$0" |
10674 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
10675 /^X\/\(\/\/\)$/{ s//\1/; q; }
10676 /^X\/\(\/\).*/{ s//\1/; q; }
10677 s/.*/./; q'`
10682 as_lineno_1=$LINENO
10683 as_lineno_2=$LINENO
10684 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10685 test "x$as_lineno_1" != "x$as_lineno_2" &&
10686 test "x$as_lineno_3" = "x$as_lineno_2" || {
10688 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10689 # uniformly replaced by the line number. The first 'sed' inserts a
10690 # line-number line after each line using $LINENO; the second 'sed'
10691 # does the real work. The second script uses 'N' to pair each
10692 # line-number line with the line containing $LINENO, and appends
10693 # trailing '-' during substitution so that $LINENO is not a special
10694 # case at line end.
10695 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10696 # scripts with optimization help from Paolo Bonzini. Blame Lee
10697 # E. McMahon (1931-1989) for sed's syntax. :-)
10698 sed -n '
10700 /[$]LINENO/=
10701 ' <$as_myself |
10702 sed '
10703 s,[$]LINENO.*,&-,
10704 t lineno
10706 : lineno
10708 : loop
10709 s,[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\),\2\1\2,
10710 t loop
10711 s,-\n.*,,
10712 ' >$as_me.lineno &&
10713 chmod +x $as_me.lineno ||
10714 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
10715 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
10716 { (exit 1); exit 1; }; }
10718 # Don't try to exec as it changes $[0], causing all sort of problems
10719 # (the dirname of $[0] is not the place where we might find the
10720 # original and so on. Autoconf is especially sensible to this).
10721 . ./$as_me.lineno
10722 # Exit status is that of the last command.
10723 exit
10727 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
10728 *c*,-n*) ECHO_N= ECHO_C='
10729 ' ECHO_T=' ' ;;
10730 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
10731 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
10732 esac
10734 if expr a : '\(a\)' >/dev/null 2>&1; then
10735 as_expr=expr
10736 else
10737 as_expr=false
10740 rm -f conf$$ conf$$.exe conf$$.file
10741 echo >conf$$.file
10742 if ln -s conf$$.file conf$$ 2>/dev/null; then
10743 # We could just check for DJGPP; but this test a) works b) is more generic
10744 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
10745 if test -f conf$$.exe; then
10746 # Don't use ln at all; we don't have any links
10747 as_ln_s='cp -p'
10748 else
10749 as_ln_s='ln -s'
10751 elif ln conf$$.file conf$$ 2>/dev/null; then
10752 as_ln_s=ln
10753 else
10754 as_ln_s='cp -p'
10756 rm -f conf$$ conf$$.exe conf$$.file
10758 if mkdir -p . 2>/dev/null; then
10759 as_mkdir_p=:
10760 else
10761 test -d ./-p && rmdir ./-p
10762 as_mkdir_p=false
10765 as_executable_p="test -f"
10767 # Sed expression to map a string onto a valid CPP name.
10768 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10770 # Sed expression to map a string onto a valid variable name.
10771 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10774 # IFS
10775 # We need space, tab and new line, in precisely that order.
10776 as_nl='
10778 IFS=" $as_nl"
10780 # CDPATH.
10781 $as_unset CDPATH
10783 exec 6>&1
10785 # Open the log real soon, to keep \$[0] and so on meaningful, and to
10786 # report actual input values of CONFIG_FILES etc. instead of their
10787 # values after options handling. Logging --version etc. is OK.
10788 exec 5>>config.log
10790 echo
10791 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10792 ## Running $as_me. ##
10793 _ASBOX
10794 } >&5
10795 cat >&5 <<_CSEOF
10797 This file was extended by $as_me, which was
10798 generated by GNU Autoconf 2.59b. Invocation command line was
10800 CONFIG_FILES = $CONFIG_FILES
10801 CONFIG_HEADERS = $CONFIG_HEADERS
10802 CONFIG_LINKS = $CONFIG_LINKS
10803 CONFIG_COMMANDS = $CONFIG_COMMANDS
10804 $ $0 $@
10806 _CSEOF
10807 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
10808 echo >&5
10809 _ACEOF
10811 # Files that config.status was made for.
10812 if test -n "$ac_config_files"; then
10813 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
10816 if test -n "$ac_config_headers"; then
10817 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
10820 if test -n "$ac_config_links"; then
10821 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
10824 if test -n "$ac_config_commands"; then
10825 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
10828 cat >>$CONFIG_STATUS <<\_ACEOF
10830 ac_cs_usage="\
10831 \`$as_me' instantiates files from templates according to the
10832 current configuration.
10834 Usage: $0 [OPTIONS] [FILE]...
10836 -h, --help print this help, then exit
10837 -V, --version print version number, then exit
10838 -q, --quiet do not print progress messages
10839 -d, --debug don't remove temporary files
10840 --recheck update $as_me by reconfiguring in the same conditions
10841 --file=FILE[:TEMPLATE]
10842 instantiate the configuration file FILE
10843 --header=FILE[:TEMPLATE]
10844 instantiate the configuration header FILE
10846 Configuration files:
10847 $config_files
10849 Configuration headers:
10850 $config_headers
10852 Report bugs to <bug-autoconf@gnu.org>."
10853 _ACEOF
10855 cat >>$CONFIG_STATUS <<_ACEOF
10856 ac_cs_version="\\
10857 config.status
10858 configured by $0, generated by GNU Autoconf 2.59b,
10859 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
10861 Copyright (C) 2004 Free Software Foundation, Inc.
10862 This config.status script is free software; the Free Software Foundation
10863 gives unlimited permission to copy, distribute and modify it."
10864 srcdir=$srcdir
10865 INSTALL="$INSTALL"
10866 _ACEOF
10868 cat >>$CONFIG_STATUS <<\_ACEOF
10869 # If no file are specified by the user, then we need to provide default
10870 # value. By we need to know if files were specified by the user.
10871 ac_need_defaults=:
10872 while test $# != 0
10874 case $1 in
10875 --*=*)
10876 ac_option=`expr "x$1" : 'x\([^=]*\)='`
10877 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
10878 ac_shift=:
10881 ac_option=$1
10882 ac_optarg=$2
10883 ac_shift=shift
10885 *) # This is not an option, so the user has probably given explicit
10886 # arguments.
10887 ac_option=$1
10888 ac_need_defaults=false;;
10889 esac
10891 case $ac_option in
10892 # Handling of the options.
10893 _ACEOF
10894 cat >>$CONFIG_STATUS <<\_ACEOF
10895 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10896 ac_cs_recheck=: ;;
10897 --version | --vers* | -V )
10898 echo "$ac_cs_version"; exit 0 ;;
10899 --he | --h)
10900 # Conflict between --help and --header
10901 { { echo "$as_me:$LINENO: error: ambiguous option: $1
10902 Try \`$0 --help' for more information." >&5
10903 echo "$as_me: error: ambiguous option: $1
10904 Try \`$0 --help' for more information." >&2;}
10905 { (exit 1); exit 1; }; };;
10906 --help | --hel | -h )
10907 echo "$ac_cs_usage"; exit 0 ;;
10908 --debug | --d* | -d )
10909 debug=: ;;
10910 --file | --fil | --fi | --f )
10911 $ac_shift
10912 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10913 ac_need_defaults=false;;
10914 --header | --heade | --head | --hea )
10915 $ac_shift
10916 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10917 ac_need_defaults=false;;
10918 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10919 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10920 ac_cs_silent=: ;;
10922 # This is an error.
10923 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
10924 Try \`$0 --help' for more information." >&5
10925 echo "$as_me: error: unrecognized option: $1
10926 Try \`$0 --help' for more information." >&2;}
10927 { (exit 1); exit 1; }; } ;;
10929 *) ac_config_targets="$ac_config_targets $1" ;;
10931 esac
10932 shift
10933 done
10935 ac_configure_extra_args=
10937 if $ac_cs_silent; then
10938 exec 6>/dev/null
10939 ac_configure_extra_args="$ac_configure_extra_args --silent"
10942 _ACEOF
10943 cat >>$CONFIG_STATUS <<_ACEOF
10944 if \$ac_cs_recheck; then
10945 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10946 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10949 _ACEOF
10955 cat >>$CONFIG_STATUS <<\_ACEOF
10956 for ac_config_target in $ac_config_targets
10958 case "$ac_config_target" in
10959 # Handling of arguments.
10960 "stamp-h" ) CONFIG_FILES="$CONFIG_FILES stamp-h" ;;
10961 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10962 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
10963 "src/utils/xtotroff/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/xtotroff/Makefile" ;;
10964 "contrib/gdiffmk/tests/runtests" ) CONFIG_FILES="$CONFIG_FILES contrib/gdiffmk/tests/runtests" ;;
10965 "test-groff" ) CONFIG_FILES="$CONFIG_FILES test-groff" ;;
10966 "src/include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/config.h:src/include/config.hin" ;;
10967 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10968 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10969 { (exit 1); exit 1; }; };;
10970 esac
10971 done
10973 # If the user did not use the arguments to specify the items to instantiate,
10974 # then the envvar interface is used. Set only those that are not.
10975 # We use the long form for the default assignment because of an extremely
10976 # bizarre bug on SunOS 4.1.3.
10977 if $ac_need_defaults; then
10978 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10979 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10982 # Have a temporary directory for convenience. Make it in the build tree
10983 # simply because there is no reason to put it here, and in addition,
10984 # creating and moving files from /tmp can sometimes cause problems.
10985 # Create a temporary directory, and hook for its removal unless debugging.
10986 $debug ||
10988 trap 'exit_status=$?; rm -f -r $tmp && exit $exit_status' 0
10989 trap '{ (exit 1); exit 1; }' 1 2 13 15
10992 # Create a (secure) tmp directory for tmp files.
10995 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
10996 test -n "$tmp" && test -d "$tmp"
10997 } ||
10999 tmp=./confstat$$-$RANDOM
11000 (umask 077 && mkdir $tmp)
11001 } ||
11003 echo "$me: cannot create a temporary directory in ." >&2
11004 { (exit 1); exit 1; }
11007 _ACEOF
11009 cat >>$CONFIG_STATUS <<_ACEOF
11012 # CONFIG_FILES section.
11015 # No need to generate the scripts if there are no CONFIG_FILES.
11016 # This happens for instance when ./config.status config.h
11017 if test -n "\$CONFIG_FILES"; then
11018 # Protect against being on the right side of a sed subst in config.status.
11019 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11020 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11021 s,@SHELL@,$SHELL,;t t
11022 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11023 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11024 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11025 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11026 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11027 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11028 s,@exec_prefix@,$exec_prefix,;t t
11029 s,@prefix@,$prefix,;t t
11030 s,@program_transform_name@,$program_transform_name,;t t
11031 s,@bindir@,$bindir,;t t
11032 s,@sbindir@,$sbindir,;t t
11033 s,@libexecdir@,$libexecdir,;t t
11034 s,@datadir@,$datadir,;t t
11035 s,@sysconfdir@,$sysconfdir,;t t
11036 s,@sharedstatedir@,$sharedstatedir,;t t
11037 s,@localstatedir@,$localstatedir,;t t
11038 s,@libdir@,$libdir,;t t
11039 s,@includedir@,$includedir,;t t
11040 s,@oldincludedir@,$oldincludedir,;t t
11041 s,@infodir@,$infodir,;t t
11042 s,@mandir@,$mandir,;t t
11043 s,@build_alias@,$build_alias,;t t
11044 s,@host_alias@,$host_alias,;t t
11045 s,@target_alias@,$target_alias,;t t
11046 s,@DEFS@,$DEFS,;t t
11047 s,@ECHO_C@,$ECHO_C,;t t
11048 s,@ECHO_N@,$ECHO_N,;t t
11049 s,@ECHO_T@,$ECHO_T,;t t
11050 s,@LIBS@,$LIBS,;t t
11051 s,@CC@,$CC,;t t
11052 s,@CFLAGS@,$CFLAGS,;t t
11053 s,@LDFLAGS@,$LDFLAGS,;t t
11054 s,@CPPFLAGS@,$CPPFLAGS,;t t
11055 s,@ac_ct_CC@,$ac_ct_CC,;t t
11056 s,@EXEEXT@,$EXEEXT,;t t
11057 s,@OBJEXT@,$OBJEXT,;t t
11058 s,@CXX@,$CXX,;t t
11059 s,@CXXFLAGS@,$CXXFLAGS,;t t
11060 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
11061 s,@TTYDEVDIRS@,$TTYDEVDIRS,;t t
11062 s,@OTHERDEVDIRS@,$OTHERDEVDIRS,;t t
11063 s,@CPP@,$CPP,;t t
11064 s,@X_CFLAGS@,$X_CFLAGS,;t t
11065 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
11066 s,@X_LIBS@,$X_LIBS,;t t
11067 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
11068 s,@XDEVDIRS@,$XDEVDIRS,;t t
11069 s,@XPROGDIRS@,$XPROGDIRS,;t t
11070 s,@XLIBDIRS@,$XLIBDIRS,;t t
11071 s,@appresdir@,$appresdir,;t t
11072 s,@LPR@,$LPR,;t t
11073 s,@LP@,$LP,;t t
11074 s,@LPQ@,$LPQ,;t t
11075 s,@PSPRINT@,$PSPRINT,;t t
11076 s,@DVIPRINT@,$DVIPRINT,;t t
11077 s,@PERLPATH@,$PERLPATH,;t t
11078 s,@YACC@,$YACC,;t t
11079 s,@RANLIB@,$RANLIB,;t t
11080 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
11081 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
11082 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11083 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11084 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11085 s,@LN_S@,$LN_S,;t t
11086 s,@SH_SCRIPT_SED_CMD@,$SH_SCRIPT_SED_CMD,;t t
11087 s,@GREP@,$GREP,;t t
11088 s,@EGREP@,$EGREP,;t t
11089 s,@LIBC@,$LIBC,;t t
11090 s,@LIBM@,$LIBM,;t t
11091 s,@LIBOBJS@,$LIBOBJS,;t t
11092 s,@BROKEN_SPOOLER_FLAGS@,$BROKEN_SPOOLER_FLAGS,;t t
11093 s,@PAGE@,$PAGE,;t t
11094 s,@g@,$g,;t t
11095 s,@sys_tmac_prefix@,$sys_tmac_prefix,;t t
11096 s,@tmac_wrap@,$tmac_wrap,;t t
11097 s,@GROFF_PATH_SEPARATOR@,$GROFF_PATH_SEPARATOR,;t t
11098 s,@ALT_GHOSTSCRIPT_PROGS@,$ALT_GHOSTSCRIPT_PROGS,;t t
11099 s,@GHOSTSCRIPT@,$GHOSTSCRIPT,;t t
11100 s,@ac_ct_GHOSTSCRIPT@,$ac_ct_GHOSTSCRIPT,;t t
11101 s,@pnmcut@,$pnmcut,;t t
11102 s,@pnmcrop@,$pnmcrop,;t t
11103 s,@pnmtopng@,$pnmtopng,;t t
11104 s,@psselect@,$psselect,;t t
11105 s,@pnmtops@,$pnmtops,;t t
11106 s,@make_html@,$make_html,;t t
11107 s,@make_install_html@,$make_install_html,;t t
11108 s,@ALT_AWK_PROGS@,$ALT_AWK_PROGS,;t t
11109 s,@AWK@,$AWK,;t t
11110 s,@ac_ct_AWK@,$ac_ct_AWK,;t t
11111 s,@make_pdfdoc@,$make_pdfdoc,;t t
11112 s,@make_install_pdfdoc@,$make_install_pdfdoc,;t t
11113 s,@pnmtops_nosetpage@,$pnmtops_nosetpage,;t t
11114 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
11115 CEOF
11117 _ACEOF
11119 cat >>$CONFIG_STATUS <<\_ACEOF
11120 # Split the substitutions into bite-sized pieces for seds with
11121 # small command number limits, like on Digital OSF/1 and HP-UX.
11122 ac_max_sed_lines=48
11123 ac_sed_frag=1 # Number of current file.
11124 ac_beg=1 # First line for current file.
11125 ac_end=$ac_max_sed_lines # Line after last line for current file.
11126 ac_more_lines=:
11127 ac_sed_cmds=
11128 while $ac_more_lines; do
11129 if test $ac_beg -gt 1; then
11130 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11131 else
11132 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11134 if test ! -s $tmp/subs.frag; then
11135 ac_more_lines=false
11136 else
11137 # The purpose of the label and of the branching condition is to
11138 # speed up the sed processing (if there are no `@' at all, there
11139 # is no need to browse any of the substitutions).
11140 # These are the two extra sed commands mentioned above.
11141 (echo ':t
11142 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11143 if test -z "$ac_sed_cmds"; then
11144 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
11145 else
11146 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11148 ac_sed_frag=`expr $ac_sed_frag + 1`
11149 ac_beg=$ac_end
11150 ac_end=`expr $ac_end + $ac_max_sed_lines`
11152 done
11153 if test -z "$ac_sed_cmds"; then
11154 ac_sed_cmds=cat
11156 fi # test -n "$CONFIG_FILES"
11158 _ACEOF
11159 cat >>$CONFIG_STATUS <<\_ACEOF
11160 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
11161 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11162 case $ac_file in
11163 - | *:- | *:-:* ) # input from stdin
11164 cat >$tmp/stdin
11165 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11166 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11167 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11168 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11169 * ) ac_file_in=$ac_file.in ;;
11170 esac
11172 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11173 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11174 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11175 X"$ac_file" : 'X\(//\)[^/]' \| \
11176 X"$ac_file" : 'X\(//\)$' \| \
11177 X"$ac_file" : 'X\(/\)' \| \
11178 . : '\(.\)' 2>/dev/null ||
11179 echo X"$ac_file" |
11180 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11181 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11182 /^X\(\/\/\)$/{ s//\1/; q; }
11183 /^X\(\/\).*/{ s//\1/; q; }
11184 s/.*/./; q'`
11185 { if $as_mkdir_p; then
11186 test -d "$ac_dir" || mkdir -p "$ac_dir"
11187 else
11188 as_dir="$ac_dir"
11189 as_dirs=
11190 while test ! -d "$as_dir"; do
11191 as_dirs="$as_dir $as_dirs"
11192 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11193 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11194 X"$as_dir" : 'X\(//\)[^/]' \| \
11195 X"$as_dir" : 'X\(//\)$' \| \
11196 X"$as_dir" : 'X\(/\)' \| \
11197 . : '\(.\)' 2>/dev/null ||
11198 echo X"$as_dir" |
11199 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11200 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11201 /^X\(\/\/\)$/{ s//\1/; q; }
11202 /^X\(\/\).*/{ s//\1/; q; }
11203 s/.*/./; q'`
11204 done
11205 test ! -n "$as_dirs" || mkdir $as_dirs
11206 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11207 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11208 { (exit 1); exit 1; }; }; }
11210 ac_builddir=.
11212 if test "$ac_dir" != .; then
11213 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11214 # A "../" for each directory in $ac_dir_suffix.
11215 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11216 else
11217 ac_dir_suffix= ac_top_builddir=
11220 case $srcdir in
11221 .) # No --srcdir option. We are building in place.
11222 ac_srcdir=.
11223 if test -z "$ac_top_builddir"; then
11224 ac_top_srcdir=.
11225 else
11226 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11227 fi ;;
11228 [\\/]* | ?:[\\/]* ) # Absolute name.
11229 ac_srcdir=$srcdir$ac_dir_suffix;
11230 ac_top_srcdir=$srcdir ;;
11231 *) # Relative name.
11232 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11233 ac_top_srcdir=$ac_top_builddir$srcdir ;;
11234 esac
11236 # Do not use `cd foo && pwd` to compute absolute names, because
11237 # the directories may not exist.
11238 case `pwd` in
11239 .) ac_abs_builddir="$ac_dir";;
11241 case "$ac_dir" in
11242 .) ac_abs_builddir=`pwd`;;
11243 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11244 *) ac_abs_builddir=`pwd`/"$ac_dir";;
11245 esac;;
11246 esac
11247 case $ac_abs_builddir in
11248 .) ac_abs_top_builddir=${ac_top_builddir}.;;
11250 case ${ac_top_builddir}. in
11251 .) ac_abs_top_builddir=$ac_abs_builddir;;
11252 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11253 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11254 esac;;
11255 esac
11256 case $ac_abs_builddir in
11257 .) ac_abs_srcdir=$ac_srcdir;;
11259 case $ac_srcdir in
11260 .) ac_abs_srcdir=$ac_abs_builddir;;
11261 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11262 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11263 esac;;
11264 esac
11265 case $ac_abs_builddir in
11266 .) ac_abs_top_srcdir=$ac_top_srcdir;;
11268 case $ac_top_srcdir in
11269 .) ac_abs_top_srcdir=$ac_abs_builddir;;
11270 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11271 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11272 esac;;
11273 esac
11276 case $INSTALL in
11277 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11278 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
11279 esac
11281 if test x"$ac_file" != x-; then
11282 { echo "$as_me:$LINENO: creating $ac_file" >&5
11283 echo "$as_me: creating $ac_file" >&6;}
11284 rm -f "$ac_file"
11286 # Let's still pretend it is `configure' which instantiates (i.e., don't
11287 # use $as_me), people would be surprised to read:
11288 # /* config.h. Generated by config.status. */
11289 if test x"$ac_file" = x-; then
11290 configure_input=
11291 else
11292 configure_input="$ac_file. "
11294 configure_input=$configure_input"Generated from `echo $ac_file_in |
11295 sed 's,.*/,,'` by configure."
11297 # First look for the input files in the build tree, otherwise in the
11298 # src tree.
11299 ac_file_inputs=`IFS=:
11300 for f in $ac_file_in; do
11301 case $f in
11302 -) echo $tmp/stdin ;;
11303 [\\/$]*)
11304 # Absolute (can't be DOS-style, as IFS=:)
11305 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11306 echo "$as_me: error: cannot find input file: $f" >&2;}
11307 { (exit 1); exit 1; }; }
11308 echo "$f";;
11309 *) # Relative
11310 if test -f "$f"; then
11311 # Build tree
11312 echo "$f"
11313 elif test -f "$srcdir/$f"; then
11314 # Source tree
11315 echo "$srcdir/$f"
11316 else
11317 # /dev/null tree
11318 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11319 echo "$as_me: error: cannot find input file: $f" >&2;}
11320 { (exit 1); exit 1; }; }
11321 fi;;
11322 esac
11323 done` || { (exit 1); exit 1; }
11324 _ACEOF
11325 cat >>$CONFIG_STATUS <<_ACEOF
11326 sed "$ac_vpsub
11327 $extrasub
11328 _ACEOF
11329 cat >>$CONFIG_STATUS <<\_ACEOF
11331 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11332 s,@configure_input@,$configure_input,;t t
11333 s,@srcdir@,$ac_srcdir,;t t
11334 s,@abs_srcdir@,$ac_abs_srcdir,;t t
11335 s,@top_srcdir@,$ac_top_srcdir,;t t
11336 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11337 s,@builddir@,$ac_builddir,;t t
11338 s,@abs_builddir@,$ac_abs_builddir,;t t
11339 s,@top_builddir@,$ac_top_builddir,;t t
11340 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11341 s,@INSTALL@,$ac_INSTALL,;t t
11342 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11343 rm -f $tmp/stdin
11344 if test x"$ac_file" != x-; then
11345 mv $tmp/out $ac_file
11346 else
11347 cat $tmp/out
11348 rm -f $tmp/out
11351 # Run the commands associated with the file.
11352 case $ac_file in
11353 stamp-h ) echo timestamp > stamp-h ;;
11354 contrib/gdiffmk/tests/runtests ) chmod +x contrib/gdiffmk/tests/runtests ;;
11355 test-groff ) chmod +x test-groff ;;
11356 esac
11357 done
11358 _ACEOF
11359 cat >>$CONFIG_STATUS <<\_ACEOF
11362 # CONFIG_HEADER section.
11365 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11366 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11368 # ac_d sets the value in "#define NAME VALUE" lines.
11369 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11370 ac_dB='[ ].*$,\1#\2'
11371 ac_dC=' '
11372 ac_dD=',;t'
11373 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11374 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11375 ac_uB='$,\1#\2define\3'
11376 ac_uC=' '
11377 ac_uD=',;t'
11379 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
11380 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11381 case $ac_file in
11382 - | *:- | *:-:* ) # input from stdin
11383 cat >$tmp/stdin
11384 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11385 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11386 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11387 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11388 * ) ac_file_in=$ac_file.in ;;
11389 esac
11391 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
11392 echo "$as_me: creating $ac_file" >&6;}
11394 # First look for the input files in the build tree, otherwise in the
11395 # src tree.
11396 ac_file_inputs=`IFS=:
11397 for f in $ac_file_in; do
11398 case $f in
11399 -) echo $tmp/stdin ;;
11400 [\\/$]*)
11401 # Absolute (can't be DOS-style, as IFS=:)
11402 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11403 echo "$as_me: error: cannot find input file: $f" >&2;}
11404 { (exit 1); exit 1; }; }
11405 # Quote $f, to prevent DOS file names from being IFS'd.
11406 echo "$f";;
11407 *) # Relative
11408 if test -f "$f"; then
11409 # Build tree
11410 echo "$f"
11411 elif test -f "$srcdir/$f"; then
11412 # Source tree
11413 echo "$srcdir/$f"
11414 else
11415 # /dev/null tree
11416 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11417 echo "$as_me: error: cannot find input file: $f" >&2;}
11418 { (exit 1); exit 1; }; }
11419 fi;;
11420 esac
11421 done` || { (exit 1); exit 1; }
11422 # Remove the trailing spaces.
11423 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
11425 _ACEOF
11427 # Transform confdefs.h into two sed scripts, `conftest.defines' and
11428 # `conftest.undefs', that substitutes the proper values into
11429 # config.h.in to produce config.h. The first handles `#define'
11430 # templates, and the second `#undef' templates.
11431 # And first: Protect against being on the right side of a sed subst in
11432 # config.status. Protect against being in an unquoted here document
11433 # in config.status.
11434 rm -f conftest.defines conftest.undefs
11435 # Using a here document instead of a string reduces the quoting nightmare.
11436 # Putting comments in sed scripts is not portable.
11438 # `end' is used to avoid that the second main sed command (meant for
11439 # 0-ary CPP macros) applies to n-ary macro definitions.
11440 # See the Autoconf documentation for `clear'.
11441 cat >confdef2sed.sed <<\_ACEOF
11442 s/[\\&,]/\\&/g
11443 s,[\\$`],\\&,g
11444 t clear
11445 : clear
11446 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
11447 t end
11448 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11449 : end
11450 _ACEOF
11451 # If some macros were called several times there might be several times
11452 # the same #defines, which is useless. Nevertheless, we may not want to
11453 # sort them, since we want the *last* AC-DEFINE to be honored.
11454 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
11455 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
11456 rm -f confdef2sed.sed
11458 # This sed command replaces #undef with comments. This is necessary, for
11459 # example, in the case of _POSIX_SOURCE, which is predefined and required
11460 # on some systems where configure will not decide to define it.
11461 cat >>conftest.undefs <<\_ACEOF
11462 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11463 _ACEOF
11465 # Break up conftest.defines because some shells have a limit on the size
11466 # of here documents, and old seds have small limits too (100 cmds).
11467 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
11468 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
11469 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
11470 echo ' :' >>$CONFIG_STATUS
11471 rm -f conftest.tail
11472 while grep . conftest.defines >/dev/null
11474 # Write a limited-size here document to $tmp/defines.sed.
11475 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
11476 # Speed up: don't consider the non `#define' lines.
11477 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
11478 # Work around the forget-to-reset-the-flag bug.
11479 echo 't clr' >>$CONFIG_STATUS
11480 echo ': clr' >>$CONFIG_STATUS
11481 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
11482 echo 'CEOF
11483 sed -f $tmp/defines.sed $tmp/in >$tmp/out
11484 rm -f $tmp/in
11485 mv $tmp/out $tmp/in
11486 ' >>$CONFIG_STATUS
11487 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
11488 rm -f conftest.defines
11489 mv conftest.tail conftest.defines
11490 done
11491 rm -f conftest.defines
11492 echo ' fi # grep' >>$CONFIG_STATUS
11493 echo >>$CONFIG_STATUS
11495 # Break up conftest.undefs because some shells have a limit on the size
11496 # of here documents, and old seds have small limits too (100 cmds).
11497 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
11498 rm -f conftest.tail
11499 while grep . conftest.undefs >/dev/null
11501 # Write a limited-size here document to $tmp/undefs.sed.
11502 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11503 # Speed up: don't consider the non `#undef'
11504 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
11505 # Work around the forget-to-reset-the-flag bug.
11506 echo 't clr' >>$CONFIG_STATUS
11507 echo ': clr' >>$CONFIG_STATUS
11508 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
11509 echo 'CEOF
11510 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
11511 rm -f $tmp/in
11512 mv $tmp/out $tmp/in
11513 ' >>$CONFIG_STATUS
11514 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
11515 rm -f conftest.undefs
11516 mv conftest.tail conftest.undefs
11517 done
11518 rm -f conftest.undefs
11520 cat >>$CONFIG_STATUS <<\_ACEOF
11521 # Let's still pretend it is `configure' which instantiates (i.e., don't
11522 # use $as_me), people would be surprised to read:
11523 # /* config.h. Generated by config.status. */
11524 if test x"$ac_file" = x-; then
11525 echo "/* Generated by configure. */" >$tmp/config.h
11526 else
11527 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
11529 cat $tmp/in >>$tmp/config.h
11530 rm -f $tmp/in
11531 if test x"$ac_file" != x-; then
11532 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
11533 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11534 echo "$as_me: $ac_file is unchanged" >&6;}
11535 else
11536 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11537 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11538 X"$ac_file" : 'X\(//\)[^/]' \| \
11539 X"$ac_file" : 'X\(//\)$' \| \
11540 X"$ac_file" : 'X\(/\)' \| \
11541 . : '\(.\)' 2>/dev/null ||
11542 echo X"$ac_file" |
11543 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11544 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11545 /^X\(\/\/\)$/{ s//\1/; q; }
11546 /^X\(\/\).*/{ s//\1/; q; }
11547 s/.*/./; q'`
11548 { if $as_mkdir_p; then
11549 test -d "$ac_dir" || mkdir -p "$ac_dir"
11550 else
11551 as_dir="$ac_dir"
11552 as_dirs=
11553 while test ! -d "$as_dir"; do
11554 as_dirs="$as_dir $as_dirs"
11555 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11556 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11557 X"$as_dir" : 'X\(//\)[^/]' \| \
11558 X"$as_dir" : 'X\(//\)$' \| \
11559 X"$as_dir" : 'X\(/\)' \| \
11560 . : '\(.\)' 2>/dev/null ||
11561 echo X"$as_dir" |
11562 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11563 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11564 /^X\(\/\/\)$/{ s//\1/; q; }
11565 /^X\(\/\).*/{ s//\1/; q; }
11566 s/.*/./; q'`
11567 done
11568 test ! -n "$as_dirs" || mkdir $as_dirs
11569 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11570 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11571 { (exit 1); exit 1; }; }; }
11573 rm -f $ac_file
11574 mv $tmp/config.h $ac_file
11576 else
11577 cat $tmp/config.h
11578 rm -f $tmp/config.h
11580 done
11581 _ACEOF
11583 cat >>$CONFIG_STATUS <<\_ACEOF
11585 { (exit 0); exit 0; }
11586 _ACEOF
11587 chmod +x $CONFIG_STATUS
11588 ac_clean_files=$ac_clean_files_save
11591 # configure is writing to config.log, and then calls config.status.
11592 # config.status does its own redirection, appending to config.log.
11593 # Unfortunately, on DOS this fails, as config.log is still kept open
11594 # by configure, so config.status won't be able to write to it; its
11595 # output is simply discarded. So we exec the FD to /dev/null,
11596 # effectively closing config.log, so it can be properly (re)opened and
11597 # appended to by config.status. When coming back to configure, we
11598 # need to make the FD available again.
11599 if test "$no_create" != yes; then
11600 ac_cs_success=:
11601 ac_config_status_args=
11602 test "$silent" = yes &&
11603 ac_config_status_args="$ac_config_status_args --quiet"
11604 exec 5>/dev/null
11605 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11606 exec 5>>config.log
11607 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11608 # would make configure fail if this is the last instruction.
11609 $ac_cs_success || { (exit 1); exit 1; }
11613 if test -z "$groff_no_x"; then
11614 if test "x$with_appresdir" = "x"; then
11615 { echo "$as_me:$LINENO:
11617 The application resource file for gxditview will be installed as
11619 $appresdir/GXditview
11621 (an existing file will be saved as \`GXditview.old').
11622 To install it into a different directory, say, \`/etc/gxditview',
11623 add \`--with-appresdir=/etc/gxditview' to the configure script
11624 command line options and rerun it. The environment variable
11625 \`APPLRESDIR' must then be set to \`/etc/' (note the trailing slash),
11626 omitting the \`gxditview' part which is automatically appended by
11627 the X11 searching routines for resource files. More details can be
11628 found in the X(7) manual page.
11629 " >&5
11630 echo "$as_me:
11632 The application resource file for gxditview will be installed as
11634 $appresdir/GXditview
11636 (an existing file will be saved as \`GXditview.old').
11637 To install it into a different directory, say, \`/etc/gxditview',
11638 add \`--with-appresdir=/etc/gxditview' to the configure script
11639 command line options and rerun it. The environment variable
11640 \`APPLRESDIR' must then be set to \`/etc/' (note the trailing slash),
11641 omitting the \`gxditview' part which is automatically appended by
11642 the X11 searching routines for resource files. More details can be
11643 found in the X(7) manual page.
11644 " >&6;}