* src/libs/libgroff/font.cpp (font::load): Reject fonts called
[s-roff.git] / configure
blob655a8003ea81ea5d008c35adf8d8fb1f88009af0
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 GREP EGREP PERLPATH YACC MAKEINFO RANLIB ac_ct_RANLIB INSTALL_INFO INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S SH_SCRIPT_SED_CMD LIBC LIBM build build_cpu build_vendor build_os host host_cpu host_vendor host_os LIBICONV LTLIBICONV LIBOBJS BROKEN_SPOOLER_FLAGS PAGE g sys_tmac_prefix tmac_wrap GROFF_PATH_SEPARATOR ALT_GHOSTSCRIPT_PROGS GHOSTSCRIPT ac_ct_GHOSTSCRIPT pnmcut pnmcrop pnmtopng psselect pnmtops make_html make_install_html ALT_AWK_PROGS AWK ac_ct_AWK make_pdfdoc make_install_pdfdoc pnmtops_nosetpage GLIBC21 LTLIBOBJS'
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
1080 System types:
1081 --build=BUILD configure for building on BUILD [guessed]
1082 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1083 _ACEOF
1086 if test -n "$ac_init_help"; then
1088 cat <<\_ACEOF
1090 Optional Features:
1091 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1092 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1093 --disable-rpath do not hardcode runtime library paths
1095 Optional Packages:
1096 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1097 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1098 --with-x use the X Window System
1099 --with-appresdir=DIR X11 application resource files
1100 --with-gnu-ld assume the C compiler uses GNU ld default=no
1101 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1102 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1103 --with-alt-gs=LIST alternative names for ghostscript executable
1104 --with-gs=PROG actual [/path/]name of ghostscript executable
1105 --with-alt-awk=LIST alternative names for awk executable
1106 --with-awk=PROG actual [/path/]name of awk executable
1108 Some influential environment variables:
1109 CC C compiler command
1110 CFLAGS C compiler flags
1111 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1112 nonstandard directory <lib dir>
1113 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1114 headers in a nonstandard directory <include dir>
1115 CXX C++ compiler command
1116 CXXFLAGS C++ compiler flags
1117 CPP C preprocessor
1119 Use these variables to override the choices made by `configure' or to help
1120 it to find libraries and programs with nonstandard names/locations.
1122 _ACEOF
1125 if test "$ac_init_help" = "recursive"; then
1126 # If there are subdirs, report their specific --help.
1127 ac_popdir=`pwd`
1128 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1129 test -d $ac_dir || continue
1130 ac_builddir=.
1132 if test "$ac_dir" != .; then
1133 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1134 # A "../" for each directory in $ac_dir_suffix.
1135 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1136 else
1137 ac_dir_suffix= ac_top_builddir=
1140 case $srcdir in
1141 .) # No --srcdir option. We are building in place.
1142 ac_srcdir=.
1143 if test -z "$ac_top_builddir"; then
1144 ac_top_srcdir=.
1145 else
1146 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1147 fi ;;
1148 [\\/]* | ?:[\\/]* ) # Absolute name.
1149 ac_srcdir=$srcdir$ac_dir_suffix;
1150 ac_top_srcdir=$srcdir ;;
1151 *) # Relative name.
1152 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1153 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1154 esac
1156 # Do not use `cd foo && pwd` to compute absolute names, because
1157 # the directories may not exist.
1158 case `pwd` in
1159 .) ac_abs_builddir="$ac_dir";;
1161 case "$ac_dir" in
1162 .) ac_abs_builddir=`pwd`;;
1163 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1164 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1165 esac;;
1166 esac
1167 case $ac_abs_builddir in
1168 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1170 case ${ac_top_builddir}. in
1171 .) ac_abs_top_builddir=$ac_abs_builddir;;
1172 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1173 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1174 esac;;
1175 esac
1176 case $ac_abs_builddir in
1177 .) ac_abs_srcdir=$ac_srcdir;;
1179 case $ac_srcdir in
1180 .) ac_abs_srcdir=$ac_abs_builddir;;
1181 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1182 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1183 esac;;
1184 esac
1185 case $ac_abs_builddir in
1186 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1188 case $ac_top_srcdir in
1189 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1190 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1191 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1192 esac;;
1193 esac
1195 cd $ac_dir
1196 # Check for guested configure; otherwise get Cygnus style configure.
1197 if test -f $ac_srcdir/configure.gnu; then
1198 echo
1199 $SHELL $ac_srcdir/configure.gnu --help=recursive
1200 elif test -f $ac_srcdir/configure; then
1201 echo
1202 $SHELL $ac_srcdir/configure --help=recursive
1203 elif test -f $ac_srcdir/configure.ac ||
1204 test -f $ac_srcdir/configure.in; then
1205 echo
1206 $ac_configure --help
1207 else
1208 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1210 cd "$ac_popdir"
1211 done
1214 test -n "$ac_init_help" && exit 0
1215 if $ac_init_version; then
1216 cat <<\_ACEOF
1218 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002,
1219 2003, 2004 Free Software Foundation, Inc.
1220 This configure script is free software; the Free Software Foundation
1221 gives unlimited permission to copy, distribute and modify it.
1222 _ACEOF
1223 exit 0
1225 exec 5>config.log
1226 cat >&5 <<_ACEOF
1227 This file contains any messages produced by compilers while
1228 running configure, to aid debugging if configure makes a mistake.
1230 It was created by $as_me, which was
1231 generated by GNU Autoconf 2.59b. Invocation command line was
1233 $ $0 $@
1235 _ACEOF
1237 cat <<_ASUNAME
1238 ## --------- ##
1239 ## Platform. ##
1240 ## --------- ##
1242 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1243 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1244 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1245 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1246 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1248 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1249 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1251 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1252 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1253 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1254 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1255 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1256 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1257 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1259 _ASUNAME
1261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1262 for as_dir in $PATH
1264 IFS=$as_save_IFS
1265 test -z "$as_dir" && as_dir=.
1266 echo "PATH: $as_dir"
1267 done
1269 } >&5
1271 cat >&5 <<_ACEOF
1274 ## ----------- ##
1275 ## Core tests. ##
1276 ## ----------- ##
1278 _ACEOF
1281 # Keep a trace of the command line.
1282 # Strip out --no-create and --no-recursion so they do not pile up.
1283 # Strip out --silent because we don't want to record it for future runs.
1284 # Also quote any args containing shell meta-characters.
1285 # Make two passes to allow for proper duplicate-argument suppression.
1286 ac_configure_args=
1287 ac_configure_args0=
1288 ac_configure_args1=
1289 ac_sep=
1290 ac_must_keep_next=false
1291 for ac_pass in 1 2
1293 for ac_arg
1295 case $ac_arg in
1296 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1297 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1298 | -silent | --silent | --silen | --sile | --sil)
1299 continue ;;
1300 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1301 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1302 esac
1303 case $ac_pass in
1304 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1306 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1307 if test $ac_must_keep_next = true; then
1308 ac_must_keep_next=false # Got value, back to normal.
1309 else
1310 case $ac_arg in
1311 *=* | --config-cache | -C | -disable-* | --disable-* \
1312 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1313 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1314 | -with-* | --with-* | -without-* | --without-* | --x)
1315 case "$ac_configure_args0 " in
1316 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1317 esac
1319 -* ) ac_must_keep_next=true ;;
1320 esac
1322 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1323 # Get rid of the leading space.
1324 ac_sep=" "
1326 esac
1327 done
1328 done
1329 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1330 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1332 # When interrupted or exit'd, cleanup temporary files, and complete
1333 # config.log. We remove comments because anyway the quotes in there
1334 # would cause problems or look ugly.
1335 # WARNING: Be sure not to use single quotes in there, as some shells,
1336 # such as our DU 5.0 friend, will then `close' the trap.
1337 trap 'exit_status=$?
1338 # Save into config.log some information that might help in debugging.
1340 echo
1342 cat <<\_ASBOX
1343 ## ---------------- ##
1344 ## Cache variables. ##
1345 ## ---------------- ##
1346 _ASBOX
1347 echo
1348 # The following way of writing the cache mishandles newlines in values,
1350 (set) 2>&1 |
1351 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1352 *ac_space=\ *)
1353 sed -n \
1354 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1355 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1358 sed -n \
1359 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1361 esac;
1363 echo
1365 cat <<\_ASBOX
1366 ## ----------------- ##
1367 ## Output variables. ##
1368 ## ----------------- ##
1369 _ASBOX
1370 echo
1371 for ac_var in $ac_subst_vars
1373 eval ac_val=$`echo $ac_var`
1374 echo "$ac_var='"'"'$ac_val'"'"'"
1375 done | sort
1376 echo
1378 if test -n "$ac_subst_files"; then
1379 cat <<\_ASBOX
1380 ## ------------- ##
1381 ## Output files. ##
1382 ## ------------- ##
1383 _ASBOX
1384 echo
1385 for ac_var in $ac_subst_files
1387 eval ac_val=$`echo $ac_var`
1388 echo "$ac_var='"'"'$ac_val'"'"'"
1389 done | sort
1390 echo
1393 if test -s confdefs.h; then
1394 cat <<\_ASBOX
1395 ## ----------- ##
1396 ## confdefs.h. ##
1397 ## ----------- ##
1398 _ASBOX
1399 echo
1400 sed "/^$/d" confdefs.h | sort
1401 echo
1403 test "$ac_signal" != 0 &&
1404 echo "$as_me: caught signal $ac_signal"
1405 echo "$as_me: exit $exit_status"
1406 } >&5
1407 rm -f core *.core &&
1408 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1409 exit $exit_status
1411 for ac_signal in 1 2 13 15; do
1412 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1413 done
1414 ac_signal=0
1416 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1417 rm -f -r conftest* confdefs.h
1418 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1419 # NextStep 3.3 (patch 3) loses unless the first echo outputs at least 14 bytes.
1420 ac_space=' '
1421 echo "$ac_space$ac_space$ac_space$ac_space$ac_space$ac_space$ac_space$ac_space$ac_space$ac_space$ac_space$ac_space$ac_space" >confdefs.h
1423 # Predefined preprocessor variables.
1425 cat >>confdefs.h <<_ACEOF
1426 #define PACKAGE_NAME "$PACKAGE_NAME"
1427 _ACEOF
1430 cat >>confdefs.h <<_ACEOF
1431 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1432 _ACEOF
1435 cat >>confdefs.h <<_ACEOF
1436 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1437 _ACEOF
1440 cat >>confdefs.h <<_ACEOF
1441 #define PACKAGE_STRING "$PACKAGE_STRING"
1442 _ACEOF
1445 cat >>confdefs.h <<_ACEOF
1446 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1447 _ACEOF
1450 # Let the site file select an alternate cache file if it wants to.
1451 # Prefer explicitly selected file to automatically selected ones.
1452 if test -z "$CONFIG_SITE"; then
1453 if test "x$prefix" != xNONE; then
1454 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1455 else
1456 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1459 for ac_site_file in $CONFIG_SITE; do
1460 if test -r "$ac_site_file"; then
1461 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1462 echo "$as_me: loading site script $ac_site_file" >&6;}
1463 sed 's/^/| /' "$ac_site_file" >&5
1464 . "$ac_site_file"
1466 done
1468 if test -r "$cache_file"; then
1469 # Some versions of bash will fail to source /dev/null (special
1470 # files actually), so we avoid doing that.
1471 if test -f "$cache_file"; then
1472 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1473 echo "$as_me: loading cache $cache_file" >&6;}
1474 case $cache_file in
1475 [\\/]* | ?:[\\/]* ) . $cache_file;;
1476 *) . ./$cache_file;;
1477 esac
1479 else
1480 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1481 echo "$as_me: creating cache $cache_file" >&6;}
1482 >$cache_file
1485 # Check that the precious variables saved in the cache have kept the same
1486 # value.
1487 ac_cache_corrupted=false
1488 for ac_var in `(set) 2>&1 |
1489 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1490 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1491 eval ac_new_set=\$ac_env_${ac_var}_set
1492 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1493 eval ac_new_val="\$ac_env_${ac_var}_value"
1494 case $ac_old_set,$ac_new_set in
1495 set,)
1496 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1497 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1498 ac_cache_corrupted=: ;;
1499 ,set)
1500 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1501 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1502 ac_cache_corrupted=: ;;
1503 ,);;
1505 if test "x$ac_old_val" != "x$ac_new_val"; then
1506 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1507 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1508 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1509 echo "$as_me: former value: $ac_old_val" >&2;}
1510 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1511 echo "$as_me: current value: $ac_new_val" >&2;}
1512 ac_cache_corrupted=:
1513 fi;;
1514 esac
1515 # Pass precious variables to config.status.
1516 if test "$ac_new_set" = set; then
1517 case $ac_new_val in
1518 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1519 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1520 *) ac_arg=$ac_var=$ac_new_val ;;
1521 esac
1522 case " $ac_configure_args " in
1523 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1524 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1525 esac
1527 done
1528 if $ac_cache_corrupted; then
1529 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1530 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1531 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1532 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1533 { (exit 1); exit 1; }; }
1536 ac_ext=c
1537 ac_cpp='$CPP $CPPFLAGS'
1538 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1539 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1540 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1562 ac_config_headers="$ac_config_headers src/include/config.h:src/include/config.hin"
1566 # checks for programs
1567 ac_ext=c
1568 ac_cpp='$CPP $CPPFLAGS'
1569 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1570 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1571 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1572 if test -n "$ac_tool_prefix"; then
1573 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1574 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1575 echo "$as_me:$LINENO: checking for $ac_word" >&5
1576 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1577 if test "${ac_cv_prog_CC+set}" = set; then
1578 echo $ECHO_N "(cached) $ECHO_C" >&6
1579 else
1580 if test -n "$CC"; then
1581 ac_cv_prog_CC="$CC" # Let the user override the test.
1582 else
1583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1584 for as_dir in $PATH
1586 IFS=$as_save_IFS
1587 test -z "$as_dir" && as_dir=.
1588 for ac_exec_ext in '' $ac_executable_extensions; do
1589 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1590 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1591 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1592 break 2
1594 done
1595 done
1599 CC=$ac_cv_prog_CC
1600 if test -n "$CC"; then
1601 echo "$as_me:$LINENO: result: $CC" >&5
1602 echo "${ECHO_T}$CC" >&6
1603 else
1604 echo "$as_me:$LINENO: result: no" >&5
1605 echo "${ECHO_T}no" >&6
1609 if test -z "$ac_cv_prog_CC"; then
1610 ac_ct_CC=$CC
1611 # Extract the first word of "gcc", so it can be a program name with args.
1612 set dummy gcc; ac_word=$2
1613 echo "$as_me:$LINENO: checking for $ac_word" >&5
1614 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1615 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1616 echo $ECHO_N "(cached) $ECHO_C" >&6
1617 else
1618 if test -n "$ac_ct_CC"; then
1619 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1620 else
1621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1622 for as_dir in $PATH
1624 IFS=$as_save_IFS
1625 test -z "$as_dir" && as_dir=.
1626 for ac_exec_ext in '' $ac_executable_extensions; do
1627 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1628 ac_cv_prog_ac_ct_CC="gcc"
1629 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1630 break 2
1632 done
1633 done
1637 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1638 if test -n "$ac_ct_CC"; then
1639 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1640 echo "${ECHO_T}$ac_ct_CC" >&6
1641 else
1642 echo "$as_me:$LINENO: result: no" >&5
1643 echo "${ECHO_T}no" >&6
1646 if test "x$ac_ct_CC" = x; then
1647 CC=""
1648 else
1649 if test "$build" != "$host"; then
1650 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1651 whose name does not start with the host triplet. If you think this
1652 configuration is useful to you, please write to autoconf@gnu.org." >&5
1653 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1654 whose name does not start with the host triplet. If you think this
1655 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1657 CC=$ac_ct_CC
1659 else
1660 CC="$ac_cv_prog_CC"
1663 if test -z "$CC"; then
1664 if test -n "$ac_tool_prefix"; then
1665 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1666 set dummy ${ac_tool_prefix}cc; ac_word=$2
1667 echo "$as_me:$LINENO: checking for $ac_word" >&5
1668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1669 if test "${ac_cv_prog_CC+set}" = set; then
1670 echo $ECHO_N "(cached) $ECHO_C" >&6
1671 else
1672 if test -n "$CC"; then
1673 ac_cv_prog_CC="$CC" # Let the user override the test.
1674 else
1675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1676 for as_dir in $PATH
1678 IFS=$as_save_IFS
1679 test -z "$as_dir" && as_dir=.
1680 for ac_exec_ext in '' $ac_executable_extensions; do
1681 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1682 ac_cv_prog_CC="${ac_tool_prefix}cc"
1683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1684 break 2
1686 done
1687 done
1691 CC=$ac_cv_prog_CC
1692 if test -n "$CC"; then
1693 echo "$as_me:$LINENO: result: $CC" >&5
1694 echo "${ECHO_T}$CC" >&6
1695 else
1696 echo "$as_me:$LINENO: result: no" >&5
1697 echo "${ECHO_T}no" >&6
1701 if test -z "$ac_cv_prog_CC"; then
1702 ac_ct_CC=$CC
1703 # Extract the first word of "cc", so it can be a program name with args.
1704 set dummy cc; ac_word=$2
1705 echo "$as_me:$LINENO: checking for $ac_word" >&5
1706 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1707 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1708 echo $ECHO_N "(cached) $ECHO_C" >&6
1709 else
1710 if test -n "$ac_ct_CC"; then
1711 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1712 else
1713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1714 for as_dir in $PATH
1716 IFS=$as_save_IFS
1717 test -z "$as_dir" && as_dir=.
1718 for ac_exec_ext in '' $ac_executable_extensions; do
1719 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1720 ac_cv_prog_ac_ct_CC="cc"
1721 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1722 break 2
1724 done
1725 done
1729 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1730 if test -n "$ac_ct_CC"; then
1731 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1732 echo "${ECHO_T}$ac_ct_CC" >&6
1733 else
1734 echo "$as_me:$LINENO: result: no" >&5
1735 echo "${ECHO_T}no" >&6
1738 if test "x$ac_ct_CC" = x; then
1739 CC=""
1740 else
1741 if test "$build" != "$host"; then
1742 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1743 whose name does not start with the host triplet. If you think this
1744 configuration is useful to you, please write to autoconf@gnu.org." >&5
1745 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1746 whose name does not start with the host triplet. If you think this
1747 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1749 CC=$ac_ct_CC
1751 else
1752 CC="$ac_cv_prog_CC"
1756 if test -z "$CC"; then
1757 # Extract the first word of "cc", so it can be a program name with args.
1758 set dummy cc; ac_word=$2
1759 echo "$as_me:$LINENO: checking for $ac_word" >&5
1760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1761 if test "${ac_cv_prog_CC+set}" = set; then
1762 echo $ECHO_N "(cached) $ECHO_C" >&6
1763 else
1764 if test -n "$CC"; then
1765 ac_cv_prog_CC="$CC" # Let the user override the test.
1766 else
1767 ac_prog_rejected=no
1768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1769 for as_dir in $PATH
1771 IFS=$as_save_IFS
1772 test -z "$as_dir" && as_dir=.
1773 for ac_exec_ext in '' $ac_executable_extensions; do
1774 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1775 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1776 ac_prog_rejected=yes
1777 continue
1779 ac_cv_prog_CC="cc"
1780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1781 break 2
1783 done
1784 done
1786 if test $ac_prog_rejected = yes; then
1787 # We found a bogon in the path, so make sure we never use it.
1788 set dummy $ac_cv_prog_CC
1789 shift
1790 if test $# != 0; then
1791 # We chose a different compiler from the bogus one.
1792 # However, it has the same basename, so the bogon will be chosen
1793 # first if we set CC to just the basename; use the full file name.
1794 shift
1795 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1800 CC=$ac_cv_prog_CC
1801 if test -n "$CC"; then
1802 echo "$as_me:$LINENO: result: $CC" >&5
1803 echo "${ECHO_T}$CC" >&6
1804 else
1805 echo "$as_me:$LINENO: result: no" >&5
1806 echo "${ECHO_T}no" >&6
1810 if test -z "$CC"; then
1811 if test -n "$ac_tool_prefix"; then
1812 for ac_prog in cl
1814 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1815 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1816 echo "$as_me:$LINENO: checking for $ac_word" >&5
1817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1818 if test "${ac_cv_prog_CC+set}" = set; then
1819 echo $ECHO_N "(cached) $ECHO_C" >&6
1820 else
1821 if test -n "$CC"; then
1822 ac_cv_prog_CC="$CC" # Let the user override the test.
1823 else
1824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1825 for as_dir in $PATH
1827 IFS=$as_save_IFS
1828 test -z "$as_dir" && as_dir=.
1829 for ac_exec_ext in '' $ac_executable_extensions; do
1830 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1831 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1833 break 2
1835 done
1836 done
1840 CC=$ac_cv_prog_CC
1841 if test -n "$CC"; then
1842 echo "$as_me:$LINENO: result: $CC" >&5
1843 echo "${ECHO_T}$CC" >&6
1844 else
1845 echo "$as_me:$LINENO: result: no" >&5
1846 echo "${ECHO_T}no" >&6
1849 test -n "$CC" && break
1850 done
1852 if test -z "$CC"; then
1853 ac_ct_CC=$CC
1854 for ac_prog in cl
1856 # Extract the first word of "$ac_prog", so it can be a program name with args.
1857 set dummy $ac_prog; ac_word=$2
1858 echo "$as_me:$LINENO: checking for $ac_word" >&5
1859 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1860 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1861 echo $ECHO_N "(cached) $ECHO_C" >&6
1862 else
1863 if test -n "$ac_ct_CC"; then
1864 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1865 else
1866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1867 for as_dir in $PATH
1869 IFS=$as_save_IFS
1870 test -z "$as_dir" && as_dir=.
1871 for ac_exec_ext in '' $ac_executable_extensions; do
1872 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1873 ac_cv_prog_ac_ct_CC="$ac_prog"
1874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1875 break 2
1877 done
1878 done
1882 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1883 if test -n "$ac_ct_CC"; then
1884 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1885 echo "${ECHO_T}$ac_ct_CC" >&6
1886 else
1887 echo "$as_me:$LINENO: result: no" >&5
1888 echo "${ECHO_T}no" >&6
1891 test -n "$ac_ct_CC" && break
1892 done
1894 if test "x$ac_ct_CC" = x; then
1895 CC=""
1896 else
1897 if test "$build" != "$host"; then
1898 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1899 whose name does not start with the host triplet. If you think this
1900 configuration is useful to you, please write to autoconf@gnu.org." >&5
1901 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1902 whose name does not start with the host triplet. If you think this
1903 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1905 CC=$ac_ct_CC
1912 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1913 See \`config.log' for more details." >&5
1914 echo "$as_me: error: no acceptable C compiler found in \$PATH
1915 See \`config.log' for more details." >&2;}
1916 { (exit 1); exit 1; }; }
1918 # Provide some information about the compiler.
1919 echo "$as_me:$LINENO:" \
1920 "checking for C compiler version" >&5
1921 ac_compiler=`set X $ac_compile; echo $2`
1922 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1923 (eval $ac_compiler --version </dev/null >&5) 2>&5
1924 ac_status=$?
1925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1926 (exit $ac_status); }
1927 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1928 (eval $ac_compiler -v </dev/null >&5) 2>&5
1929 ac_status=$?
1930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1931 (exit $ac_status); }
1932 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1933 (eval $ac_compiler -V </dev/null >&5) 2>&5
1934 ac_status=$?
1935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1936 (exit $ac_status); }
1938 cat >conftest.$ac_ext <<_ACEOF
1939 /* confdefs.h. */
1940 _ACEOF
1941 cat confdefs.h >>conftest.$ac_ext
1942 cat >>conftest.$ac_ext <<_ACEOF
1943 /* end confdefs.h. */
1946 main ()
1950 return 0;
1952 _ACEOF
1953 ac_clean_files_save=$ac_clean_files
1954 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1955 # Try to create an executable without -o first, disregard a.out.
1956 # It will help us diagnose broken compilers, and finding out an intuition
1957 # of exeext.
1958 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1959 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1960 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1962 # List of possible output files, starting from the most likely.
1963 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
1964 # only as a last resort. b.out is created by i960 compilers.
1965 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
1967 # The IRIX 6 linker writes into existing files which may not be
1968 # executable, retaining their permissions. Remove them first so a
1969 # subsequent execution test works.
1970 ac_rmfiles=
1971 for ac_file in $ac_files
1973 case $ac_file in
1974 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1975 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
1976 esac
1977 done
1978 rm -f $ac_rmfiles
1980 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1981 (eval $ac_link_default) 2>&5
1982 ac_status=$?
1983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1984 (exit $ac_status); }; then
1985 # Be careful to initialize this variable, since it used to be cached.
1986 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1987 ac_cv_exeext=
1988 for ac_file in $ac_files
1990 test -f "$ac_file" || continue
1991 case $ac_file in
1992 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1994 [ab].out )
1995 # We found the default executable, but exeext='' is most
1996 # certainly right.
1997 break;;
1998 *.* )
1999 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2000 # FIXME: I believe we export ac_cv_exeext for Libtool,
2001 # but it would be cool to find out if it's true. Does anybody
2002 # maintain Libtool? --akim.
2003 export ac_cv_exeext
2004 break;;
2006 break;;
2007 esac
2008 done
2009 else
2010 echo "$as_me: failed program was:" >&5
2011 sed 's/^/| /' conftest.$ac_ext >&5
2013 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2014 See \`config.log' for more details." >&5
2015 echo "$as_me: error: C compiler cannot create executables
2016 See \`config.log' for more details." >&2;}
2017 { (exit 77); exit 77; }; }
2020 ac_exeext=$ac_cv_exeext
2021 echo "$as_me:$LINENO: result: $ac_file" >&5
2022 echo "${ECHO_T}$ac_file" >&6
2024 # Check the compiler produces executables we can run. If not, either
2025 # the compiler is broken, or we cross compile.
2026 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2027 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2028 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2029 # If not cross compiling, check that we can run a simple program.
2030 if test "$cross_compiling" != yes; then
2031 if { ac_try='./$ac_file'
2032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2033 (eval $ac_try) 2>&5
2034 ac_status=$?
2035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2036 (exit $ac_status); }; }; then
2037 cross_compiling=no
2038 else
2039 if test "$cross_compiling" = maybe; then
2040 cross_compiling=yes
2041 else
2042 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2043 If you meant to cross compile, use \`--host'.
2044 See \`config.log' for more details." >&5
2045 echo "$as_me: error: cannot run C compiled programs.
2046 If you meant to cross compile, use \`--host'.
2047 See \`config.log' for more details." >&2;}
2048 { (exit 1); exit 1; }; }
2052 echo "$as_me:$LINENO: result: yes" >&5
2053 echo "${ECHO_T}yes" >&6
2055 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2056 ac_clean_files=$ac_clean_files_save
2057 # Check the compiler produces executables we can run. If not, either
2058 # the compiler is broken, or we cross compile.
2059 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2060 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2061 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2062 echo "${ECHO_T}$cross_compiling" >&6
2064 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2065 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2067 (eval $ac_link) 2>&5
2068 ac_status=$?
2069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2070 (exit $ac_status); }; then
2071 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2072 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2073 # work properly (i.e., refer to `conftest.exe'), while it won't with
2074 # `rm'.
2075 for ac_file in conftest.exe conftest conftest.*; do
2076 test -f "$ac_file" || continue
2077 case $ac_file in
2078 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2079 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2080 export ac_cv_exeext
2081 break;;
2082 * ) break;;
2083 esac
2084 done
2085 else
2086 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2087 See \`config.log' for more details." >&5
2088 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2089 See \`config.log' for more details." >&2;}
2090 { (exit 1); exit 1; }; }
2093 rm -f conftest$ac_cv_exeext
2094 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2095 echo "${ECHO_T}$ac_cv_exeext" >&6
2097 rm -f conftest.$ac_ext
2098 EXEEXT=$ac_cv_exeext
2099 ac_exeext=$EXEEXT
2100 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2101 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2102 if test "${ac_cv_objext+set}" = set; then
2103 echo $ECHO_N "(cached) $ECHO_C" >&6
2104 else
2105 cat >conftest.$ac_ext <<_ACEOF
2106 /* confdefs.h. */
2107 _ACEOF
2108 cat confdefs.h >>conftest.$ac_ext
2109 cat >>conftest.$ac_ext <<_ACEOF
2110 /* end confdefs.h. */
2113 main ()
2117 return 0;
2119 _ACEOF
2120 rm -f conftest.o conftest.obj
2121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2122 (eval $ac_compile) 2>&5
2123 ac_status=$?
2124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2125 (exit $ac_status); }; then
2126 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2127 case $ac_file in
2128 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2129 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2130 break;;
2131 esac
2132 done
2133 else
2134 echo "$as_me: failed program was:" >&5
2135 sed 's/^/| /' conftest.$ac_ext >&5
2137 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2138 See \`config.log' for more details." >&5
2139 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2140 See \`config.log' for more details." >&2;}
2141 { (exit 1); exit 1; }; }
2144 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2146 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2147 echo "${ECHO_T}$ac_cv_objext" >&6
2148 OBJEXT=$ac_cv_objext
2149 ac_objext=$OBJEXT
2150 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2151 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2152 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2153 echo $ECHO_N "(cached) $ECHO_C" >&6
2154 else
2155 cat >conftest.$ac_ext <<_ACEOF
2156 /* confdefs.h. */
2157 _ACEOF
2158 cat confdefs.h >>conftest.$ac_ext
2159 cat >>conftest.$ac_ext <<_ACEOF
2160 /* end confdefs.h. */
2163 main ()
2165 #ifndef __GNUC__
2166 choke me
2167 #endif
2170 return 0;
2172 _ACEOF
2173 rm -f conftest.$ac_objext
2174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2175 (eval $ac_compile) 2>conftest.er1
2176 ac_status=$?
2177 grep -v '^ *+' conftest.er1 >conftest.err
2178 rm -f conftest.er1
2179 cat conftest.err >&5
2180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2181 (exit $ac_status); } &&
2182 { ac_try='test -z "$ac_c_werror_flag"
2183 || test ! -s conftest.err'
2184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2185 (eval $ac_try) 2>&5
2186 ac_status=$?
2187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2188 (exit $ac_status); }; } &&
2189 { ac_try='test -s conftest.$ac_objext'
2190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2191 (eval $ac_try) 2>&5
2192 ac_status=$?
2193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2194 (exit $ac_status); }; }; then
2195 ac_compiler_gnu=yes
2196 else
2197 echo "$as_me: failed program was:" >&5
2198 sed 's/^/| /' conftest.$ac_ext >&5
2200 ac_compiler_gnu=no
2202 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2203 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2206 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2207 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2208 GCC=`test $ac_compiler_gnu = yes && echo yes`
2209 ac_test_CFLAGS=${CFLAGS+set}
2210 ac_save_CFLAGS=$CFLAGS
2211 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2212 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2213 if test "${ac_cv_prog_cc_g+set}" = set; then
2214 echo $ECHO_N "(cached) $ECHO_C" >&6
2215 else
2216 ac_save_c_werror_flag=$ac_c_werror_flag
2217 ac_c_werror_flag=yes
2218 ac_cv_prog_cc_g=no
2219 CFLAGS="-g"
2220 cat >conftest.$ac_ext <<_ACEOF
2221 /* confdefs.h. */
2222 _ACEOF
2223 cat confdefs.h >>conftest.$ac_ext
2224 cat >>conftest.$ac_ext <<_ACEOF
2225 /* end confdefs.h. */
2228 main ()
2232 return 0;
2234 _ACEOF
2235 rm -f conftest.$ac_objext
2236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2237 (eval $ac_compile) 2>conftest.er1
2238 ac_status=$?
2239 grep -v '^ *+' conftest.er1 >conftest.err
2240 rm -f conftest.er1
2241 cat conftest.err >&5
2242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2243 (exit $ac_status); } &&
2244 { ac_try='test -z "$ac_c_werror_flag"
2245 || test ! -s conftest.err'
2246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2247 (eval $ac_try) 2>&5
2248 ac_status=$?
2249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2250 (exit $ac_status); }; } &&
2251 { ac_try='test -s conftest.$ac_objext'
2252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2253 (eval $ac_try) 2>&5
2254 ac_status=$?
2255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2256 (exit $ac_status); }; }; then
2257 ac_cv_prog_cc_g=yes
2258 else
2259 echo "$as_me: failed program was:" >&5
2260 sed 's/^/| /' conftest.$ac_ext >&5
2262 CFLAGS=""
2263 cat >conftest.$ac_ext <<_ACEOF
2264 /* confdefs.h. */
2265 _ACEOF
2266 cat confdefs.h >>conftest.$ac_ext
2267 cat >>conftest.$ac_ext <<_ACEOF
2268 /* end confdefs.h. */
2271 main ()
2275 return 0;
2277 _ACEOF
2278 rm -f conftest.$ac_objext
2279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2280 (eval $ac_compile) 2>conftest.er1
2281 ac_status=$?
2282 grep -v '^ *+' conftest.er1 >conftest.err
2283 rm -f conftest.er1
2284 cat conftest.err >&5
2285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2286 (exit $ac_status); } &&
2287 { ac_try='test -z "$ac_c_werror_flag"
2288 || test ! -s conftest.err'
2289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2290 (eval $ac_try) 2>&5
2291 ac_status=$?
2292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2293 (exit $ac_status); }; } &&
2294 { ac_try='test -s conftest.$ac_objext'
2295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2296 (eval $ac_try) 2>&5
2297 ac_status=$?
2298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2299 (exit $ac_status); }; }; then
2301 else
2302 echo "$as_me: failed program was:" >&5
2303 sed 's/^/| /' conftest.$ac_ext >&5
2305 ac_c_werror_flag=$ac_save_c_werror_flag
2306 CFLAGS="-g"
2307 cat >conftest.$ac_ext <<_ACEOF
2308 /* confdefs.h. */
2309 _ACEOF
2310 cat confdefs.h >>conftest.$ac_ext
2311 cat >>conftest.$ac_ext <<_ACEOF
2312 /* end confdefs.h. */
2315 main ()
2319 return 0;
2321 _ACEOF
2322 rm -f conftest.$ac_objext
2323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2324 (eval $ac_compile) 2>conftest.er1
2325 ac_status=$?
2326 grep -v '^ *+' conftest.er1 >conftest.err
2327 rm -f conftest.er1
2328 cat conftest.err >&5
2329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330 (exit $ac_status); } &&
2331 { ac_try='test -z "$ac_c_werror_flag"
2332 || test ! -s conftest.err'
2333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2334 (eval $ac_try) 2>&5
2335 ac_status=$?
2336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2337 (exit $ac_status); }; } &&
2338 { ac_try='test -s conftest.$ac_objext'
2339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2340 (eval $ac_try) 2>&5
2341 ac_status=$?
2342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2343 (exit $ac_status); }; }; then
2344 ac_cv_prog_cc_g=yes
2345 else
2346 echo "$as_me: failed program was:" >&5
2347 sed 's/^/| /' conftest.$ac_ext >&5
2350 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2352 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2354 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2355 ac_c_werror_flag=$ac_save_c_werror_flag
2357 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2358 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2359 if test "$ac_test_CFLAGS" = set; then
2360 CFLAGS=$ac_save_CFLAGS
2361 elif test $ac_cv_prog_cc_g = yes; then
2362 if test "$GCC" = yes; then
2363 CFLAGS="-g -O2"
2364 else
2365 CFLAGS="-g"
2367 else
2368 if test "$GCC" = yes; then
2369 CFLAGS="-O2"
2370 else
2371 CFLAGS=
2374 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2375 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2376 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2377 echo $ECHO_N "(cached) $ECHO_C" >&6
2378 else
2379 ac_cv_prog_cc_stdc=no
2380 ac_save_CC=$CC
2381 cat >conftest.$ac_ext <<_ACEOF
2382 /* confdefs.h. */
2383 _ACEOF
2384 cat confdefs.h >>conftest.$ac_ext
2385 cat >>conftest.$ac_ext <<_ACEOF
2386 /* end confdefs.h. */
2387 #include <stdarg.h>
2388 #include <stdio.h>
2389 #include <sys/types.h>
2390 #include <sys/stat.h>
2391 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2392 struct buf { int x; };
2393 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2394 static char *e (p, i)
2395 char **p;
2396 int i;
2398 return p[i];
2400 static char *f (char * (*g) (char **, int), char **p, ...)
2402 char *s;
2403 va_list v;
2404 va_start (v,p);
2405 s = g (p, va_arg (v,int));
2406 va_end (v);
2407 return s;
2410 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2411 function prototypes and stuff, but not '\xHH' hex character constants.
2412 These don't provoke an error unfortunately, instead are silently treated
2413 as 'x'. The following induces an error, until -std is added to get
2414 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2415 array size at least. It's necessary to write '\x00'==0 to get something
2416 that's true only with -std. */
2417 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2419 int test (int i, double x);
2420 struct s1 {int (*f) (int a);};
2421 struct s2 {int (*f) (double a);};
2422 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2423 int argc;
2424 char **argv;
2426 main ()
2428 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2430 return 0;
2432 _ACEOF
2433 # Don't try gcc -ansi; that turns off useful extensions and
2434 # breaks some systems' header files.
2435 # AIX -qlanglvl=ansi
2436 # Ultrix, OSF/1, Tru64 -std
2437 # HP-UX 10.20 and later -Ae
2438 # HP-UX older versions -Aa -D_HPUX_SOURCE
2439 # SVR4 -Xc -D__EXTENSIONS__
2440 for ac_arg in "" -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2442 CC="$ac_save_CC $ac_arg"
2443 rm -f conftest.$ac_objext
2444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2445 (eval $ac_compile) 2>conftest.er1
2446 ac_status=$?
2447 grep -v '^ *+' conftest.er1 >conftest.err
2448 rm -f conftest.er1
2449 cat conftest.err >&5
2450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2451 (exit $ac_status); } &&
2452 { ac_try='test -z "$ac_c_werror_flag"
2453 || test ! -s conftest.err'
2454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2455 (eval $ac_try) 2>&5
2456 ac_status=$?
2457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2458 (exit $ac_status); }; } &&
2459 { ac_try='test -s conftest.$ac_objext'
2460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2461 (eval $ac_try) 2>&5
2462 ac_status=$?
2463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2464 (exit $ac_status); }; }; then
2465 ac_cv_prog_cc_stdc=$ac_arg
2466 break
2467 else
2468 echo "$as_me: failed program was:" >&5
2469 sed 's/^/| /' conftest.$ac_ext >&5
2472 rm -f conftest.err conftest.$ac_objext
2473 done
2474 rm -f conftest.$ac_ext conftest.$ac_objext
2475 CC=$ac_save_CC
2479 case "x$ac_cv_prog_cc_stdc" in
2480 x|xno)
2481 echo "$as_me:$LINENO: result: none needed" >&5
2482 echo "${ECHO_T}none needed" >&6 ;;
2484 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2485 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2486 CC="$CC $ac_cv_prog_cc_stdc" ;;
2487 esac
2489 # Some people use a C++ compiler to compile C. Since we use `exit',
2490 # in C++ we need to declare it. In case someone uses the same compiler
2491 # for both compiling C and C++ we need to have the C++ compiler decide
2492 # the declaration of exit, since it's the most demanding environment.
2493 cat >conftest.$ac_ext <<_ACEOF
2494 #ifndef __cplusplus
2495 choke me
2496 #endif
2497 _ACEOF
2498 rm -f conftest.$ac_objext
2499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2500 (eval $ac_compile) 2>conftest.er1
2501 ac_status=$?
2502 grep -v '^ *+' conftest.er1 >conftest.err
2503 rm -f conftest.er1
2504 cat conftest.err >&5
2505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506 (exit $ac_status); } &&
2507 { ac_try='test -z "$ac_c_werror_flag"
2508 || test ! -s conftest.err'
2509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2510 (eval $ac_try) 2>&5
2511 ac_status=$?
2512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2513 (exit $ac_status); }; } &&
2514 { ac_try='test -s conftest.$ac_objext'
2515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2516 (eval $ac_try) 2>&5
2517 ac_status=$?
2518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2519 (exit $ac_status); }; }; then
2520 for ac_declaration in \
2521 '' \
2522 'extern "C" void std::exit (int) throw (); using std::exit;' \
2523 'extern "C" void std::exit (int); using std::exit;' \
2524 'extern "C" void exit (int) throw ();' \
2525 'extern "C" void exit (int);' \
2526 'void exit (int);'
2528 cat >conftest.$ac_ext <<_ACEOF
2529 /* confdefs.h. */
2530 _ACEOF
2531 cat confdefs.h >>conftest.$ac_ext
2532 cat >>conftest.$ac_ext <<_ACEOF
2533 /* end confdefs.h. */
2534 $ac_declaration
2535 #include <stdlib.h>
2537 main ()
2539 exit (42);
2541 return 0;
2543 _ACEOF
2544 rm -f conftest.$ac_objext
2545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2546 (eval $ac_compile) 2>conftest.er1
2547 ac_status=$?
2548 grep -v '^ *+' conftest.er1 >conftest.err
2549 rm -f conftest.er1
2550 cat conftest.err >&5
2551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552 (exit $ac_status); } &&
2553 { ac_try='test -z "$ac_c_werror_flag"
2554 || test ! -s conftest.err'
2555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2556 (eval $ac_try) 2>&5
2557 ac_status=$?
2558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559 (exit $ac_status); }; } &&
2560 { ac_try='test -s conftest.$ac_objext'
2561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2562 (eval $ac_try) 2>&5
2563 ac_status=$?
2564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565 (exit $ac_status); }; }; then
2567 else
2568 echo "$as_me: failed program was:" >&5
2569 sed 's/^/| /' conftest.$ac_ext >&5
2571 continue
2573 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2574 cat >conftest.$ac_ext <<_ACEOF
2575 /* confdefs.h. */
2576 _ACEOF
2577 cat confdefs.h >>conftest.$ac_ext
2578 cat >>conftest.$ac_ext <<_ACEOF
2579 /* end confdefs.h. */
2580 $ac_declaration
2582 main ()
2584 exit (42);
2586 return 0;
2588 _ACEOF
2589 rm -f conftest.$ac_objext
2590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2591 (eval $ac_compile) 2>conftest.er1
2592 ac_status=$?
2593 grep -v '^ *+' conftest.er1 >conftest.err
2594 rm -f conftest.er1
2595 cat conftest.err >&5
2596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597 (exit $ac_status); } &&
2598 { ac_try='test -z "$ac_c_werror_flag"
2599 || test ! -s conftest.err'
2600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2601 (eval $ac_try) 2>&5
2602 ac_status=$?
2603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604 (exit $ac_status); }; } &&
2605 { ac_try='test -s conftest.$ac_objext'
2606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2607 (eval $ac_try) 2>&5
2608 ac_status=$?
2609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610 (exit $ac_status); }; }; then
2611 break
2612 else
2613 echo "$as_me: failed program was:" >&5
2614 sed 's/^/| /' conftest.$ac_ext >&5
2617 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2618 done
2619 rm -f conftest*
2620 if test -n "$ac_declaration"; then
2621 echo '#ifdef __cplusplus' >>confdefs.h
2622 echo $ac_declaration >>confdefs.h
2623 echo '#endif' >>confdefs.h
2626 else
2627 echo "$as_me: failed program was:" >&5
2628 sed 's/^/| /' conftest.$ac_ext >&5
2631 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2632 ac_ext=c
2633 ac_cpp='$CPP $CPPFLAGS'
2634 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2635 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2636 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2638 ac_ext=cc
2639 ac_cpp='$CXXCPP $CPPFLAGS'
2640 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2641 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2642 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2643 if test -n "$ac_tool_prefix"; then
2644 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2646 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2647 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2648 echo "$as_me:$LINENO: checking for $ac_word" >&5
2649 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2650 if test "${ac_cv_prog_CXX+set}" = set; then
2651 echo $ECHO_N "(cached) $ECHO_C" >&6
2652 else
2653 if test -n "$CXX"; then
2654 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2655 else
2656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2657 for as_dir in $PATH
2659 IFS=$as_save_IFS
2660 test -z "$as_dir" && as_dir=.
2661 for ac_exec_ext in '' $ac_executable_extensions; do
2662 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2663 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2664 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2665 break 2
2667 done
2668 done
2672 CXX=$ac_cv_prog_CXX
2673 if test -n "$CXX"; then
2674 echo "$as_me:$LINENO: result: $CXX" >&5
2675 echo "${ECHO_T}$CXX" >&6
2676 else
2677 echo "$as_me:$LINENO: result: no" >&5
2678 echo "${ECHO_T}no" >&6
2681 test -n "$CXX" && break
2682 done
2684 if test -z "$CXX"; then
2685 ac_ct_CXX=$CXX
2686 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2688 # Extract the first word of "$ac_prog", so it can be a program name with args.
2689 set dummy $ac_prog; ac_word=$2
2690 echo "$as_me:$LINENO: checking for $ac_word" >&5
2691 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2692 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2693 echo $ECHO_N "(cached) $ECHO_C" >&6
2694 else
2695 if test -n "$ac_ct_CXX"; then
2696 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2697 else
2698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2699 for as_dir in $PATH
2701 IFS=$as_save_IFS
2702 test -z "$as_dir" && as_dir=.
2703 for ac_exec_ext in '' $ac_executable_extensions; do
2704 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2705 ac_cv_prog_ac_ct_CXX="$ac_prog"
2706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2707 break 2
2709 done
2710 done
2714 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2715 if test -n "$ac_ct_CXX"; then
2716 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2717 echo "${ECHO_T}$ac_ct_CXX" >&6
2718 else
2719 echo "$as_me:$LINENO: result: no" >&5
2720 echo "${ECHO_T}no" >&6
2723 test -n "$ac_ct_CXX" && break
2724 done
2726 if test "x$ac_ct_CXX" = x; then
2727 CXX="g++"
2728 else
2729 if test "$build" != "$host"; then
2730 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2731 whose name does not start with the host triplet. If you think this
2732 configuration is useful to you, please write to autoconf@gnu.org." >&5
2733 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2734 whose name does not start with the host triplet. If you think this
2735 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2737 CXX=$ac_ct_CXX
2742 # Provide some information about the compiler.
2743 echo "$as_me:$LINENO:" \
2744 "checking for C++ compiler version" >&5
2745 ac_compiler=`set X $ac_compile; echo $2`
2746 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2747 (eval $ac_compiler --version </dev/null >&5) 2>&5
2748 ac_status=$?
2749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750 (exit $ac_status); }
2751 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2752 (eval $ac_compiler -v </dev/null >&5) 2>&5
2753 ac_status=$?
2754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2755 (exit $ac_status); }
2756 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2757 (eval $ac_compiler -V </dev/null >&5) 2>&5
2758 ac_status=$?
2759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760 (exit $ac_status); }
2762 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2763 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2764 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2765 echo $ECHO_N "(cached) $ECHO_C" >&6
2766 else
2767 cat >conftest.$ac_ext <<_ACEOF
2768 /* confdefs.h. */
2769 _ACEOF
2770 cat confdefs.h >>conftest.$ac_ext
2771 cat >>conftest.$ac_ext <<_ACEOF
2772 /* end confdefs.h. */
2775 main ()
2777 #ifndef __GNUC__
2778 choke me
2779 #endif
2782 return 0;
2784 _ACEOF
2785 rm -f conftest.$ac_objext
2786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2787 (eval $ac_compile) 2>conftest.er1
2788 ac_status=$?
2789 grep -v '^ *+' conftest.er1 >conftest.err
2790 rm -f conftest.er1
2791 cat conftest.err >&5
2792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793 (exit $ac_status); } &&
2794 { ac_try='test -z "$ac_cxx_werror_flag"
2795 || test ! -s conftest.err'
2796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2797 (eval $ac_try) 2>&5
2798 ac_status=$?
2799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2800 (exit $ac_status); }; } &&
2801 { ac_try='test -s conftest.$ac_objext'
2802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2803 (eval $ac_try) 2>&5
2804 ac_status=$?
2805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2806 (exit $ac_status); }; }; then
2807 ac_compiler_gnu=yes
2808 else
2809 echo "$as_me: failed program was:" >&5
2810 sed 's/^/| /' conftest.$ac_ext >&5
2812 ac_compiler_gnu=no
2814 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2815 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2818 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2819 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2820 GXX=`test $ac_compiler_gnu = yes && echo yes`
2821 ac_test_CXXFLAGS=${CXXFLAGS+set}
2822 ac_save_CXXFLAGS=$CXXFLAGS
2823 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2824 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2825 if test "${ac_cv_prog_cxx_g+set}" = set; then
2826 echo $ECHO_N "(cached) $ECHO_C" >&6
2827 else
2828 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2829 ac_cxx_werror_flag=yes
2830 ac_cv_prog_cxx_g=no
2831 CXXFLAGS="-g"
2832 cat >conftest.$ac_ext <<_ACEOF
2833 /* confdefs.h. */
2834 _ACEOF
2835 cat confdefs.h >>conftest.$ac_ext
2836 cat >>conftest.$ac_ext <<_ACEOF
2837 /* end confdefs.h. */
2840 main ()
2844 return 0;
2846 _ACEOF
2847 rm -f conftest.$ac_objext
2848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2849 (eval $ac_compile) 2>conftest.er1
2850 ac_status=$?
2851 grep -v '^ *+' conftest.er1 >conftest.err
2852 rm -f conftest.er1
2853 cat conftest.err >&5
2854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2855 (exit $ac_status); } &&
2856 { ac_try='test -z "$ac_cxx_werror_flag"
2857 || test ! -s conftest.err'
2858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2859 (eval $ac_try) 2>&5
2860 ac_status=$?
2861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2862 (exit $ac_status); }; } &&
2863 { ac_try='test -s conftest.$ac_objext'
2864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2865 (eval $ac_try) 2>&5
2866 ac_status=$?
2867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2868 (exit $ac_status); }; }; then
2869 ac_cv_prog_cxx_g=yes
2870 else
2871 echo "$as_me: failed program was:" >&5
2872 sed 's/^/| /' conftest.$ac_ext >&5
2874 CXXFLAGS=""
2875 cat >conftest.$ac_ext <<_ACEOF
2876 /* confdefs.h. */
2877 _ACEOF
2878 cat confdefs.h >>conftest.$ac_ext
2879 cat >>conftest.$ac_ext <<_ACEOF
2880 /* end confdefs.h. */
2883 main ()
2887 return 0;
2889 _ACEOF
2890 rm -f conftest.$ac_objext
2891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2892 (eval $ac_compile) 2>conftest.er1
2893 ac_status=$?
2894 grep -v '^ *+' conftest.er1 >conftest.err
2895 rm -f conftest.er1
2896 cat conftest.err >&5
2897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898 (exit $ac_status); } &&
2899 { ac_try='test -z "$ac_cxx_werror_flag"
2900 || test ! -s conftest.err'
2901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2902 (eval $ac_try) 2>&5
2903 ac_status=$?
2904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905 (exit $ac_status); }; } &&
2906 { ac_try='test -s conftest.$ac_objext'
2907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2908 (eval $ac_try) 2>&5
2909 ac_status=$?
2910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911 (exit $ac_status); }; }; then
2913 else
2914 echo "$as_me: failed program was:" >&5
2915 sed 's/^/| /' conftest.$ac_ext >&5
2917 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2918 CXXFLAGS="-g"
2919 cat >conftest.$ac_ext <<_ACEOF
2920 /* confdefs.h. */
2921 _ACEOF
2922 cat confdefs.h >>conftest.$ac_ext
2923 cat >>conftest.$ac_ext <<_ACEOF
2924 /* end confdefs.h. */
2927 main ()
2931 return 0;
2933 _ACEOF
2934 rm -f conftest.$ac_objext
2935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2936 (eval $ac_compile) 2>conftest.er1
2937 ac_status=$?
2938 grep -v '^ *+' conftest.er1 >conftest.err
2939 rm -f conftest.er1
2940 cat conftest.err >&5
2941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2942 (exit $ac_status); } &&
2943 { ac_try='test -z "$ac_cxx_werror_flag"
2944 || test ! -s conftest.err'
2945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2946 (eval $ac_try) 2>&5
2947 ac_status=$?
2948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2949 (exit $ac_status); }; } &&
2950 { ac_try='test -s conftest.$ac_objext'
2951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2952 (eval $ac_try) 2>&5
2953 ac_status=$?
2954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955 (exit $ac_status); }; }; then
2956 ac_cv_prog_cxx_g=yes
2957 else
2958 echo "$as_me: failed program was:" >&5
2959 sed 's/^/| /' conftest.$ac_ext >&5
2962 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2964 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2966 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2967 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2969 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2970 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2971 if test "$ac_test_CXXFLAGS" = set; then
2972 CXXFLAGS=$ac_save_CXXFLAGS
2973 elif test $ac_cv_prog_cxx_g = yes; then
2974 if test "$GXX" = yes; then
2975 CXXFLAGS="-g -O2"
2976 else
2977 CXXFLAGS="-g"
2979 else
2980 if test "$GXX" = yes; then
2981 CXXFLAGS="-O2"
2982 else
2983 CXXFLAGS=
2986 for ac_declaration in \
2987 '' \
2988 'extern "C" void std::exit (int) throw (); using std::exit;' \
2989 'extern "C" void std::exit (int); using std::exit;' \
2990 'extern "C" void exit (int) throw ();' \
2991 'extern "C" void exit (int);' \
2992 'void exit (int);'
2994 cat >conftest.$ac_ext <<_ACEOF
2995 /* confdefs.h. */
2996 _ACEOF
2997 cat confdefs.h >>conftest.$ac_ext
2998 cat >>conftest.$ac_ext <<_ACEOF
2999 /* end confdefs.h. */
3000 $ac_declaration
3001 #include <stdlib.h>
3003 main ()
3005 exit (42);
3007 return 0;
3009 _ACEOF
3010 rm -f conftest.$ac_objext
3011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3012 (eval $ac_compile) 2>conftest.er1
3013 ac_status=$?
3014 grep -v '^ *+' conftest.er1 >conftest.err
3015 rm -f conftest.er1
3016 cat conftest.err >&5
3017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018 (exit $ac_status); } &&
3019 { ac_try='test -z "$ac_cxx_werror_flag"
3020 || test ! -s conftest.err'
3021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3022 (eval $ac_try) 2>&5
3023 ac_status=$?
3024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3025 (exit $ac_status); }; } &&
3026 { ac_try='test -s conftest.$ac_objext'
3027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3028 (eval $ac_try) 2>&5
3029 ac_status=$?
3030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031 (exit $ac_status); }; }; then
3033 else
3034 echo "$as_me: failed program was:" >&5
3035 sed 's/^/| /' conftest.$ac_ext >&5
3037 continue
3039 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3040 cat >conftest.$ac_ext <<_ACEOF
3041 /* confdefs.h. */
3042 _ACEOF
3043 cat confdefs.h >>conftest.$ac_ext
3044 cat >>conftest.$ac_ext <<_ACEOF
3045 /* end confdefs.h. */
3046 $ac_declaration
3048 main ()
3050 exit (42);
3052 return 0;
3054 _ACEOF
3055 rm -f conftest.$ac_objext
3056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3057 (eval $ac_compile) 2>conftest.er1
3058 ac_status=$?
3059 grep -v '^ *+' conftest.er1 >conftest.err
3060 rm -f conftest.er1
3061 cat conftest.err >&5
3062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3063 (exit $ac_status); } &&
3064 { ac_try='test -z "$ac_cxx_werror_flag"
3065 || test ! -s conftest.err'
3066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3067 (eval $ac_try) 2>&5
3068 ac_status=$?
3069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070 (exit $ac_status); }; } &&
3071 { ac_try='test -s conftest.$ac_objext'
3072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3073 (eval $ac_try) 2>&5
3074 ac_status=$?
3075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3076 (exit $ac_status); }; }; then
3077 break
3078 else
3079 echo "$as_me: failed program was:" >&5
3080 sed 's/^/| /' conftest.$ac_ext >&5
3083 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3084 done
3085 rm -f conftest*
3086 if test -n "$ac_declaration"; then
3087 echo '#ifdef __cplusplus' >>confdefs.h
3088 echo $ac_declaration >>confdefs.h
3089 echo '#endif' >>confdefs.h
3092 ac_ext=c
3093 ac_cpp='$CPP $CPPFLAGS'
3094 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3095 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3096 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3100 ac_ext=cc
3101 ac_cpp='$CXXCPP $CPPFLAGS'
3102 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3103 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3104 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3106 if test "$cross_compiling" = no; then
3107 echo "$as_me:$LINENO: checking that C++ compiler can compile simple program" >&5
3108 echo $ECHO_N "checking that C++ compiler can compile simple program... $ECHO_C" >&6
3110 if test "$cross_compiling" = yes; then
3112 else
3113 cat >conftest.$ac_ext <<_ACEOF
3115 /* confdefs.h. */
3116 _ACEOF
3117 cat confdefs.h >>conftest.$ac_ext
3118 cat >>conftest.$ac_ext <<_ACEOF
3119 /* end confdefs.h. */
3122 int main() {
3123 return 0;
3128 _ACEOF
3129 rm -f conftest$ac_exeext
3130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3131 (eval $ac_link) 2>&5
3132 ac_status=$?
3133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3136 (eval $ac_try) 2>&5
3137 ac_status=$?
3138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139 (exit $ac_status); }; }; then
3140 echo "$as_me:$LINENO: result: yes" >&5
3141 echo "${ECHO_T}yes" >&6
3142 else
3143 echo "$as_me: program exited with status $ac_status" >&5
3144 echo "$as_me: failed program was:" >&5
3145 sed 's/^/| /' conftest.$ac_ext >&5
3147 ( exit $ac_status )
3148 echo "$as_me:$LINENO: result: no" >&5
3149 echo "${ECHO_T}no" >&6
3150 { { echo "$as_me:$LINENO: error: a working C++ compiler is required" >&5
3151 echo "$as_me: error: a working C++ compiler is required" >&2;}
3152 { (exit 1); exit 1; }; }
3154 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3157 if test "$cross_compiling" = no; then
3158 echo "$as_me:$LINENO: checking that C++ static constructors and destructors are called" >&5
3159 echo $ECHO_N "checking that C++ static constructors and destructors are called... $ECHO_C" >&6
3161 if test "$cross_compiling" = yes; then
3163 else
3164 cat >conftest.$ac_ext <<_ACEOF
3166 /* confdefs.h. */
3167 _ACEOF
3168 cat confdefs.h >>conftest.$ac_ext
3169 cat >>conftest.$ac_ext <<_ACEOF
3170 /* end confdefs.h. */
3173 extern "C" {
3174 void _exit(int);
3177 int i;
3178 struct A {
3179 char dummy;
3180 A() { i = 1; }
3181 ~A() { if (i == 1) _exit(0); }
3184 A a;
3186 int main()
3188 return 1;
3193 _ACEOF
3194 rm -f conftest$ac_exeext
3195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3196 (eval $ac_link) 2>&5
3197 ac_status=$?
3198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3199 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3201 (eval $ac_try) 2>&5
3202 ac_status=$?
3203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3204 (exit $ac_status); }; }; then
3205 echo "$as_me:$LINENO: result: yes" >&5
3206 echo "${ECHO_T}yes" >&6
3207 else
3208 echo "$as_me: program exited with status $ac_status" >&5
3209 echo "$as_me: failed program was:" >&5
3210 sed 's/^/| /' conftest.$ac_ext >&5
3212 ( exit $ac_status )
3213 echo "$as_me:$LINENO: result: no" >&5
3214 echo "${ECHO_T}no" >&6
3215 { { echo "$as_me:$LINENO: error: a working C++ compiler is required" >&5
3216 echo "$as_me: error: a working C++ compiler is required" >&2;}
3217 { (exit 1); exit 1; }; }
3219 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3222 echo "$as_me:$LINENO: checking that header files support C++" >&5
3223 echo $ECHO_N "checking that header files support C++... $ECHO_C" >&6
3224 cat >conftest.$ac_ext <<_ACEOF
3226 /* confdefs.h. */
3227 _ACEOF
3228 cat confdefs.h >>conftest.$ac_ext
3229 cat >>conftest.$ac_ext <<_ACEOF
3230 /* end confdefs.h. */
3233 #include <stdio.h>
3237 main ()
3241 fopen(0, 0);
3245 return 0;
3248 _ACEOF
3249 rm -f conftest.$ac_objext conftest$ac_exeext
3250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3251 (eval $ac_link) 2>conftest.er1
3252 ac_status=$?
3253 grep -v '^ *+' conftest.er1 >conftest.err
3254 rm -f conftest.er1
3255 cat conftest.err >&5
3256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3257 (exit $ac_status); } &&
3258 { ac_try='test -z "$ac_cxx_werror_flag"
3259 || test ! -s conftest.err'
3260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3261 (eval $ac_try) 2>&5
3262 ac_status=$?
3263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3264 (exit $ac_status); }; } &&
3265 { ac_try='test -s conftest$ac_exeext'
3266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3267 (eval $ac_try) 2>&5
3268 ac_status=$?
3269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3270 (exit $ac_status); }; }; then
3271 echo "$as_me:$LINENO: result: yes" >&5
3272 echo "${ECHO_T}yes" >&6
3273 else
3274 echo "$as_me: failed program was:" >&5
3275 sed 's/^/| /' conftest.$ac_ext >&5
3277 echo "$as_me:$LINENO: result: no" >&5
3278 echo "${ECHO_T}no" >&6
3279 { { echo "$as_me:$LINENO: error: header files do not support C++
3280 (if you are using a version of gcc/g++ earlier than 2.5,
3281 you should install libg++)" >&5
3282 echo "$as_me: error: header files do not support C++
3283 (if you are using a version of gcc/g++ earlier than 2.5,
3284 you should install libg++)" >&2;}
3285 { (exit 1); exit 1; }; }
3287 rm -f conftest.err conftest.$ac_objext \
3288 conftest$ac_exeext conftest.$ac_ext
3289 ac_ext=c
3290 ac_cpp='$CPP $CPPFLAGS'
3291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3292 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3296 echo "$as_me:$LINENO: checking whether character set is EBCDIC" >&5
3297 echo $ECHO_N "checking whether character set is EBCDIC... $ECHO_C" >&6
3298 cat >conftest.$ac_ext <<_ACEOF
3300 /* confdefs.h. */
3301 _ACEOF
3302 cat confdefs.h >>conftest.$ac_ext
3303 cat >>conftest.$ac_ext <<_ACEOF
3304 /* end confdefs.h. */
3307 /* Treat any failure as ASCII for compatibility with existing art.
3308 Use compile-time rather than run-time tests for cross-compiler
3309 tolerance. */
3310 #if '0' != 240
3311 make an error "Character set is not EBCDIC"
3312 #endif
3316 main ()
3320 return 0;
3323 _ACEOF
3324 rm -f conftest.$ac_objext
3325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3326 (eval $ac_compile) 2>conftest.er1
3327 ac_status=$?
3328 grep -v '^ *+' conftest.er1 >conftest.err
3329 rm -f conftest.er1
3330 cat conftest.err >&5
3331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3332 (exit $ac_status); } &&
3333 { ac_try='test -z "$ac_c_werror_flag"
3334 || test ! -s conftest.err'
3335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3336 (eval $ac_try) 2>&5
3337 ac_status=$?
3338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3339 (exit $ac_status); }; } &&
3340 { ac_try='test -s conftest.$ac_objext'
3341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3342 (eval $ac_try) 2>&5
3343 ac_status=$?
3344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3345 (exit $ac_status); }; }; then
3346 groff_cv_ebcdic="yes"
3347 TTYDEVDIRS="font/devcp1047"
3348 echo "$as_me:$LINENO: result: yes" >&5
3349 echo "${ECHO_T}yes" >&6
3351 cat >>confdefs.h <<\_ACEOF
3352 #define IS_EBCDIC_HOST 1
3353 _ACEOF
3355 else
3356 echo "$as_me: failed program was:" >&5
3357 sed 's/^/| /' conftest.$ac_ext >&5
3359 groff_cv_ebcdic="no"
3360 TTYDEVDIRS="font/devascii font/devlatin1"
3361 OTHERDEVDIRS="font/devlj4 font/devlbp"
3362 echo "$as_me:$LINENO: result: no" >&5
3363 echo "${ECHO_T}no" >&6
3365 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3368 if test "$groff_cv_ebcdic" = "yes"; then
3369 echo "$as_me:$LINENO: checking for OS/390 Unix" >&5
3370 echo $ECHO_N "checking for OS/390 Unix... $ECHO_C" >&6
3371 case `uname` in
3372 OS/390)
3373 CFLAGS="$CFLAGS -D_ALL_SOURCE"
3374 echo "$as_me:$LINENO: result: yes" >&5
3375 echo "${ECHO_T}yes" >&6 ;;
3377 echo "$as_me:$LINENO: result: no" >&5
3378 echo "${ECHO_T}no" >&6 ;;
3379 esac
3381 ac_ext=c
3382 ac_cpp='$CPP $CPPFLAGS'
3383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3386 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3387 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3388 # On Suns, sometimes $CPP names a directory.
3389 if test -n "$CPP" && test -d "$CPP"; then
3390 CPP=
3392 if test -z "$CPP"; then
3393 if test "${ac_cv_prog_CPP+set}" = set; then
3394 echo $ECHO_N "(cached) $ECHO_C" >&6
3395 else
3396 # Double quotes because CPP needs to be expanded
3397 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3399 ac_preproc_ok=false
3400 for ac_c_preproc_warn_flag in '' yes
3402 # Use a header file that comes with gcc, so configuring glibc
3403 # with a fresh cross-compiler works.
3404 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3405 # <limits.h> exists even on freestanding compilers.
3406 # On the NeXT, cc -E runs the code through the compiler's parser,
3407 # not just through cpp. "Syntax error" is here to catch this case.
3408 cat >conftest.$ac_ext <<_ACEOF
3409 /* confdefs.h. */
3410 _ACEOF
3411 cat confdefs.h >>conftest.$ac_ext
3412 cat >>conftest.$ac_ext <<_ACEOF
3413 /* end confdefs.h. */
3414 #ifdef __STDC__
3415 # include <limits.h>
3416 #else
3417 # include <assert.h>
3418 #endif
3419 Syntax error
3420 _ACEOF
3421 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3422 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3423 ac_status=$?
3424 grep -v '^ *+' conftest.er1 >conftest.err
3425 rm -f conftest.er1
3426 cat conftest.err >&5
3427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3428 (exit $ac_status); } >/dev/null; then
3429 if test -s conftest.err; then
3430 ac_cpp_err=$ac_c_preproc_warn_flag
3431 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3432 else
3433 ac_cpp_err=
3435 else
3436 ac_cpp_err=yes
3438 if test -z "$ac_cpp_err"; then
3440 else
3441 echo "$as_me: failed program was:" >&5
3442 sed 's/^/| /' conftest.$ac_ext >&5
3444 # Broken: fails on valid input.
3445 continue
3447 rm -f conftest.err conftest.$ac_ext
3449 # OK, works on sane cases. Now check whether non-existent headers
3450 # can be detected and how.
3451 cat >conftest.$ac_ext <<_ACEOF
3452 /* confdefs.h. */
3453 _ACEOF
3454 cat confdefs.h >>conftest.$ac_ext
3455 cat >>conftest.$ac_ext <<_ACEOF
3456 /* end confdefs.h. */
3457 #include <ac_nonexistent.h>
3458 _ACEOF
3459 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3460 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3461 ac_status=$?
3462 grep -v '^ *+' conftest.er1 >conftest.err
3463 rm -f conftest.er1
3464 cat conftest.err >&5
3465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3466 (exit $ac_status); } >/dev/null; then
3467 if test -s conftest.err; then
3468 ac_cpp_err=$ac_c_preproc_warn_flag
3469 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3470 else
3471 ac_cpp_err=
3473 else
3474 ac_cpp_err=yes
3476 if test -z "$ac_cpp_err"; then
3477 # Broken: success on invalid input.
3478 continue
3479 else
3480 echo "$as_me: failed program was:" >&5
3481 sed 's/^/| /' conftest.$ac_ext >&5
3483 # Passes both tests.
3484 ac_preproc_ok=:
3485 break
3487 rm -f conftest.err conftest.$ac_ext
3489 done
3490 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3491 rm -f conftest.err conftest.$ac_ext
3492 if $ac_preproc_ok; then
3493 break
3496 done
3497 ac_cv_prog_CPP=$CPP
3500 CPP=$ac_cv_prog_CPP
3501 else
3502 ac_cv_prog_CPP=$CPP
3504 echo "$as_me:$LINENO: result: $CPP" >&5
3505 echo "${ECHO_T}$CPP" >&6
3506 ac_preproc_ok=false
3507 for ac_c_preproc_warn_flag in '' yes
3509 # Use a header file that comes with gcc, so configuring glibc
3510 # with a fresh cross-compiler works.
3511 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3512 # <limits.h> exists even on freestanding compilers.
3513 # On the NeXT, cc -E runs the code through the compiler's parser,
3514 # not just through cpp. "Syntax error" is here to catch this case.
3515 cat >conftest.$ac_ext <<_ACEOF
3516 /* confdefs.h. */
3517 _ACEOF
3518 cat confdefs.h >>conftest.$ac_ext
3519 cat >>conftest.$ac_ext <<_ACEOF
3520 /* end confdefs.h. */
3521 #ifdef __STDC__
3522 # include <limits.h>
3523 #else
3524 # include <assert.h>
3525 #endif
3526 Syntax error
3527 _ACEOF
3528 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3529 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3530 ac_status=$?
3531 grep -v '^ *+' conftest.er1 >conftest.err
3532 rm -f conftest.er1
3533 cat conftest.err >&5
3534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3535 (exit $ac_status); } >/dev/null; then
3536 if test -s conftest.err; then
3537 ac_cpp_err=$ac_c_preproc_warn_flag
3538 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3539 else
3540 ac_cpp_err=
3542 else
3543 ac_cpp_err=yes
3545 if test -z "$ac_cpp_err"; then
3547 else
3548 echo "$as_me: failed program was:" >&5
3549 sed 's/^/| /' conftest.$ac_ext >&5
3551 # Broken: fails on valid input.
3552 continue
3554 rm -f conftest.err conftest.$ac_ext
3556 # OK, works on sane cases. Now check whether non-existent headers
3557 # can be detected and how.
3558 cat >conftest.$ac_ext <<_ACEOF
3559 /* confdefs.h. */
3560 _ACEOF
3561 cat confdefs.h >>conftest.$ac_ext
3562 cat >>conftest.$ac_ext <<_ACEOF
3563 /* end confdefs.h. */
3564 #include <ac_nonexistent.h>
3565 _ACEOF
3566 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3567 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3568 ac_status=$?
3569 grep -v '^ *+' conftest.er1 >conftest.err
3570 rm -f conftest.er1
3571 cat conftest.err >&5
3572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3573 (exit $ac_status); } >/dev/null; then
3574 if test -s conftest.err; then
3575 ac_cpp_err=$ac_c_preproc_warn_flag
3576 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3577 else
3578 ac_cpp_err=
3580 else
3581 ac_cpp_err=yes
3583 if test -z "$ac_cpp_err"; then
3584 # Broken: success on invalid input.
3585 continue
3586 else
3587 echo "$as_me: failed program was:" >&5
3588 sed 's/^/| /' conftest.$ac_ext >&5
3590 # Passes both tests.
3591 ac_preproc_ok=:
3592 break
3594 rm -f conftest.err conftest.$ac_ext
3596 done
3597 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3598 rm -f conftest.err conftest.$ac_ext
3599 if $ac_preproc_ok; then
3601 else
3602 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3603 See \`config.log' for more details." >&5
3604 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3605 See \`config.log' for more details." >&2;}
3606 { (exit 1); exit 1; }; }
3609 ac_ext=c
3610 ac_cpp='$CPP $CPPFLAGS'
3611 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3612 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3613 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3616 echo "$as_me:$LINENO: checking for X" >&5
3617 echo $ECHO_N "checking for X... $ECHO_C" >&6
3620 # Check whether --with-x or --without-x was given.
3621 if test "${with_x+set}" = set; then
3622 withval="$with_x"
3625 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3626 if test "x$with_x" = xno; then
3627 # The user explicitly disabled X.
3628 have_x=disabled
3629 else
3630 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
3631 # Both variables are already set.
3632 have_x=yes
3633 else
3634 if test "${ac_cv_have_x+set}" = set; then
3635 echo $ECHO_N "(cached) $ECHO_C" >&6
3636 else
3637 # One or both of the vars are not set, and there is no cached value.
3638 ac_x_includes=no ac_x_libraries=no
3639 rm -f -r conftest.dir
3640 if mkdir conftest.dir; then
3641 cd conftest.dir
3642 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
3643 cat >Imakefile <<'_ACEOF'
3644 acfindx:
3645 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
3646 _ACEOF
3647 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
3648 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3649 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
3650 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3651 for ac_extension in a so sl; do
3652 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
3653 test -f $ac_im_libdir/libX11.$ac_extension; then
3654 ac_im_usrlibdir=$ac_im_libdir; break
3656 done
3657 # Screen out bogus values from the imake configuration. They are
3658 # bogus both because they are the default anyway, and because
3659 # using them would break gcc on systems where it needs fixed includes.
3660 case $ac_im_incroot in
3661 /usr/include) ;;
3662 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
3663 esac
3664 case $ac_im_usrlibdir in
3665 /usr/lib | /lib) ;;
3666 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
3667 esac
3669 cd ..
3670 rm -f -r conftest.dir
3673 # Standard set of common directories for X headers.
3674 # Check X11 before X11Rn because it is often a symlink to the current release.
3675 ac_x_header_dirs='
3676 /usr/X11/include
3677 /usr/X11R6/include
3678 /usr/X11R5/include
3679 /usr/X11R4/include
3681 /usr/include/X11
3682 /usr/include/X11R6
3683 /usr/include/X11R5
3684 /usr/include/X11R4
3686 /usr/local/X11/include
3687 /usr/local/X11R6/include
3688 /usr/local/X11R5/include
3689 /usr/local/X11R4/include
3691 /usr/local/include/X11
3692 /usr/local/include/X11R6
3693 /usr/local/include/X11R5
3694 /usr/local/include/X11R4
3696 /usr/X386/include
3697 /usr/x386/include
3698 /usr/XFree86/include/X11
3700 /usr/include
3701 /usr/local/include
3702 /usr/unsupported/include
3703 /usr/athena/include
3704 /usr/local/x11r5/include
3705 /usr/lpp/Xamples/include
3707 /usr/openwin/include
3708 /usr/openwin/share/include'
3710 if test "$ac_x_includes" = no; then
3711 # Guess where to find include files, by looking for Intrinsic.h.
3712 # First, try using that file with no special directory specified.
3713 cat >conftest.$ac_ext <<_ACEOF
3714 /* confdefs.h. */
3715 _ACEOF
3716 cat confdefs.h >>conftest.$ac_ext
3717 cat >>conftest.$ac_ext <<_ACEOF
3718 /* end confdefs.h. */
3719 #include <X11/Intrinsic.h>
3720 _ACEOF
3721 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3722 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3723 ac_status=$?
3724 grep -v '^ *+' conftest.er1 >conftest.err
3725 rm -f conftest.er1
3726 cat conftest.err >&5
3727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3728 (exit $ac_status); } >/dev/null; then
3729 if test -s conftest.err; then
3730 ac_cpp_err=$ac_c_preproc_warn_flag
3731 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3732 else
3733 ac_cpp_err=
3735 else
3736 ac_cpp_err=yes
3738 if test -z "$ac_cpp_err"; then
3739 # We can compile using X headers with no special include directory.
3740 ac_x_includes=
3741 else
3742 echo "$as_me: failed program was:" >&5
3743 sed 's/^/| /' conftest.$ac_ext >&5
3745 for ac_dir in $ac_x_header_dirs; do
3746 if test -r "$ac_dir/X11/Intrinsic.h"; then
3747 ac_x_includes=$ac_dir
3748 break
3750 done
3752 rm -f conftest.err conftest.$ac_ext
3753 fi # $ac_x_includes = no
3755 if test "$ac_x_libraries" = no; then
3756 # Check for the libraries.
3757 # See if we find them without any special options.
3758 # Don't add to $LIBS permanently.
3759 ac_save_LIBS=$LIBS
3760 LIBS="-lXt $LIBS"
3761 cat >conftest.$ac_ext <<_ACEOF
3762 /* confdefs.h. */
3763 _ACEOF
3764 cat confdefs.h >>conftest.$ac_ext
3765 cat >>conftest.$ac_ext <<_ACEOF
3766 /* end confdefs.h. */
3767 #include <X11/Intrinsic.h>
3769 main ()
3771 XtMalloc (0)
3773 return 0;
3775 _ACEOF
3776 rm -f conftest.$ac_objext conftest$ac_exeext
3777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3778 (eval $ac_link) 2>conftest.er1
3779 ac_status=$?
3780 grep -v '^ *+' conftest.er1 >conftest.err
3781 rm -f conftest.er1
3782 cat conftest.err >&5
3783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3784 (exit $ac_status); } &&
3785 { ac_try='test -z "$ac_c_werror_flag"
3786 || test ! -s conftest.err'
3787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3788 (eval $ac_try) 2>&5
3789 ac_status=$?
3790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3791 (exit $ac_status); }; } &&
3792 { ac_try='test -s conftest$ac_exeext'
3793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3794 (eval $ac_try) 2>&5
3795 ac_status=$?
3796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3797 (exit $ac_status); }; }; then
3798 LIBS=$ac_save_LIBS
3799 # We can link X programs with no special library path.
3800 ac_x_libraries=
3801 else
3802 echo "$as_me: failed program was:" >&5
3803 sed 's/^/| /' conftest.$ac_ext >&5
3805 LIBS=$ac_save_LIBS
3806 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
3808 # Don't even attempt the hair of trying to link an X program!
3809 for ac_extension in a so sl; do
3810 if test -r $ac_dir/libXt.$ac_extension; then
3811 ac_x_libraries=$ac_dir
3812 break 2
3814 done
3815 done
3817 rm -f conftest.err conftest.$ac_objext \
3818 conftest$ac_exeext conftest.$ac_ext
3819 fi # $ac_x_libraries = no
3821 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
3822 # Didn't find X anywhere. Cache the known absence of X.
3823 ac_cv_have_x="have_x=no"
3824 else
3825 # Record where we found X for the cache.
3826 ac_cv_have_x="have_x=yes \
3827 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
3832 eval "$ac_cv_have_x"
3833 fi # $with_x != no
3835 if test "$have_x" != yes; then
3836 echo "$as_me:$LINENO: result: $have_x" >&5
3837 echo "${ECHO_T}$have_x" >&6
3838 no_x=yes
3839 else
3840 # If each of the values was on the command line, it overrides each guess.
3841 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
3842 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
3843 # Update the cache value to reflect the command line values.
3844 ac_cv_have_x="have_x=yes \
3845 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
3846 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
3847 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
3850 if test "$no_x" = yes; then
3851 # Not all programs may use this symbol, but it does not hurt to define it.
3853 cat >>confdefs.h <<\_ACEOF
3854 #define X_DISPLAY_MISSING 1
3855 _ACEOF
3857 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
3858 else
3859 if test -n "$x_includes"; then
3860 X_CFLAGS="$X_CFLAGS -I$x_includes"
3863 # It would also be nice to do this for all -L options, not just this one.
3864 if test -n "$x_libraries"; then
3865 X_LIBS="$X_LIBS -L$x_libraries"
3866 # For Solaris; some versions of Sun CC require a space after -R and
3867 # others require no space. Words are not sufficient . . . .
3868 case `(uname -sr) 2>/dev/null` in
3869 "SunOS 5"*)
3870 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
3871 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
3872 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
3873 cat >conftest.$ac_ext <<_ACEOF
3874 /* confdefs.h. */
3875 _ACEOF
3876 cat confdefs.h >>conftest.$ac_ext
3877 cat >>conftest.$ac_ext <<_ACEOF
3878 /* end confdefs.h. */
3881 main ()
3885 return 0;
3887 _ACEOF
3888 rm -f conftest.$ac_objext conftest$ac_exeext
3889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3890 (eval $ac_link) 2>conftest.er1
3891 ac_status=$?
3892 grep -v '^ *+' conftest.er1 >conftest.err
3893 rm -f conftest.er1
3894 cat conftest.err >&5
3895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3896 (exit $ac_status); } &&
3897 { ac_try='test -z "$ac_c_werror_flag"
3898 || test ! -s conftest.err'
3899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3900 (eval $ac_try) 2>&5
3901 ac_status=$?
3902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3903 (exit $ac_status); }; } &&
3904 { ac_try='test -s conftest$ac_exeext'
3905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3906 (eval $ac_try) 2>&5
3907 ac_status=$?
3908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3909 (exit $ac_status); }; }; then
3910 ac_R_nospace=yes
3911 else
3912 echo "$as_me: failed program was:" >&5
3913 sed 's/^/| /' conftest.$ac_ext >&5
3915 ac_R_nospace=no
3917 rm -f conftest.err conftest.$ac_objext \
3918 conftest$ac_exeext conftest.$ac_ext
3919 if test $ac_R_nospace = yes; then
3920 echo "$as_me:$LINENO: result: no" >&5
3921 echo "${ECHO_T}no" >&6
3922 X_LIBS="$X_LIBS -R$x_libraries"
3923 else
3924 LIBS="$ac_xsave_LIBS -R $x_libraries"
3925 cat >conftest.$ac_ext <<_ACEOF
3926 /* confdefs.h. */
3927 _ACEOF
3928 cat confdefs.h >>conftest.$ac_ext
3929 cat >>conftest.$ac_ext <<_ACEOF
3930 /* end confdefs.h. */
3933 main ()
3937 return 0;
3939 _ACEOF
3940 rm -f conftest.$ac_objext conftest$ac_exeext
3941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3942 (eval $ac_link) 2>conftest.er1
3943 ac_status=$?
3944 grep -v '^ *+' conftest.er1 >conftest.err
3945 rm -f conftest.er1
3946 cat conftest.err >&5
3947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3948 (exit $ac_status); } &&
3949 { ac_try='test -z "$ac_c_werror_flag"
3950 || test ! -s conftest.err'
3951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3952 (eval $ac_try) 2>&5
3953 ac_status=$?
3954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3955 (exit $ac_status); }; } &&
3956 { ac_try='test -s conftest$ac_exeext'
3957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3958 (eval $ac_try) 2>&5
3959 ac_status=$?
3960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3961 (exit $ac_status); }; }; then
3962 ac_R_space=yes
3963 else
3964 echo "$as_me: failed program was:" >&5
3965 sed 's/^/| /' conftest.$ac_ext >&5
3967 ac_R_space=no
3969 rm -f conftest.err conftest.$ac_objext \
3970 conftest$ac_exeext conftest.$ac_ext
3971 if test $ac_R_space = yes; then
3972 echo "$as_me:$LINENO: result: yes" >&5
3973 echo "${ECHO_T}yes" >&6
3974 X_LIBS="$X_LIBS -R $x_libraries"
3975 else
3976 echo "$as_me:$LINENO: result: neither works" >&5
3977 echo "${ECHO_T}neither works" >&6
3980 LIBS=$ac_xsave_LIBS
3981 esac
3984 # Check for system-dependent libraries X programs must link with.
3985 # Do this before checking for the system-independent R6 libraries
3986 # (-lICE), since we may need -lsocket or whatever for X linking.
3988 if test "$ISC" = yes; then
3989 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
3990 else
3991 # Martyn Johnson says this is needed for Ultrix, if the X
3992 # libraries were built with DECnet support. And Karl Berry says
3993 # the Alpha needs dnet_stub (dnet does not exist).
3994 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
3995 cat >conftest.$ac_ext <<_ACEOF
3996 /* confdefs.h. */
3997 _ACEOF
3998 cat confdefs.h >>conftest.$ac_ext
3999 cat >>conftest.$ac_ext <<_ACEOF
4000 /* end confdefs.h. */
4002 /* Override any gcc2 internal prototype to avoid an error. */
4003 #ifdef __cplusplus
4004 extern "C"
4005 #endif
4006 /* We use char because int might match the return type of a gcc2
4007 builtin and then its argument prototype would still apply. */
4008 char XOpenDisplay ();
4010 main ()
4012 XOpenDisplay ();
4014 return 0;
4016 _ACEOF
4017 rm -f conftest.$ac_objext conftest$ac_exeext
4018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4019 (eval $ac_link) 2>conftest.er1
4020 ac_status=$?
4021 grep -v '^ *+' conftest.er1 >conftest.err
4022 rm -f conftest.er1
4023 cat conftest.err >&5
4024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025 (exit $ac_status); } &&
4026 { ac_try='test -z "$ac_c_werror_flag"
4027 || test ! -s conftest.err'
4028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4029 (eval $ac_try) 2>&5
4030 ac_status=$?
4031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4032 (exit $ac_status); }; } &&
4033 { ac_try='test -s conftest$ac_exeext'
4034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4035 (eval $ac_try) 2>&5
4036 ac_status=$?
4037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4038 (exit $ac_status); }; }; then
4040 else
4041 echo "$as_me: failed program was:" >&5
4042 sed 's/^/| /' conftest.$ac_ext >&5
4044 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
4045 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
4046 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
4047 echo $ECHO_N "(cached) $ECHO_C" >&6
4048 else
4049 ac_check_lib_save_LIBS=$LIBS
4050 LIBS="-ldnet $LIBS"
4051 cat >conftest.$ac_ext <<_ACEOF
4052 /* confdefs.h. */
4053 _ACEOF
4054 cat confdefs.h >>conftest.$ac_ext
4055 cat >>conftest.$ac_ext <<_ACEOF
4056 /* end confdefs.h. */
4058 /* Override any gcc2 internal prototype to avoid an error. */
4059 #ifdef __cplusplus
4060 extern "C"
4061 #endif
4062 /* We use char because int might match the return type of a gcc2
4063 builtin and then its argument prototype would still apply. */
4064 char dnet_ntoa ();
4066 main ()
4068 dnet_ntoa ();
4070 return 0;
4072 _ACEOF
4073 rm -f conftest.$ac_objext conftest$ac_exeext
4074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4075 (eval $ac_link) 2>conftest.er1
4076 ac_status=$?
4077 grep -v '^ *+' conftest.er1 >conftest.err
4078 rm -f conftest.er1
4079 cat conftest.err >&5
4080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4081 (exit $ac_status); } &&
4082 { ac_try='test -z "$ac_c_werror_flag"
4083 || test ! -s conftest.err'
4084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4085 (eval $ac_try) 2>&5
4086 ac_status=$?
4087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4088 (exit $ac_status); }; } &&
4089 { ac_try='test -s conftest$ac_exeext'
4090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4091 (eval $ac_try) 2>&5
4092 ac_status=$?
4093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4094 (exit $ac_status); }; }; then
4095 ac_cv_lib_dnet_dnet_ntoa=yes
4096 else
4097 echo "$as_me: failed program was:" >&5
4098 sed 's/^/| /' conftest.$ac_ext >&5
4100 ac_cv_lib_dnet_dnet_ntoa=no
4102 rm -f conftest.err conftest.$ac_objext \
4103 conftest$ac_exeext conftest.$ac_ext
4104 LIBS=$ac_check_lib_save_LIBS
4106 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
4107 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
4108 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
4109 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
4112 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4113 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
4114 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
4115 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
4116 echo $ECHO_N "(cached) $ECHO_C" >&6
4117 else
4118 ac_check_lib_save_LIBS=$LIBS
4119 LIBS="-ldnet_stub $LIBS"
4120 cat >conftest.$ac_ext <<_ACEOF
4121 /* confdefs.h. */
4122 _ACEOF
4123 cat confdefs.h >>conftest.$ac_ext
4124 cat >>conftest.$ac_ext <<_ACEOF
4125 /* end confdefs.h. */
4127 /* Override any gcc2 internal prototype to avoid an error. */
4128 #ifdef __cplusplus
4129 extern "C"
4130 #endif
4131 /* We use char because int might match the return type of a gcc2
4132 builtin and then its argument prototype would still apply. */
4133 char dnet_ntoa ();
4135 main ()
4137 dnet_ntoa ();
4139 return 0;
4141 _ACEOF
4142 rm -f conftest.$ac_objext conftest$ac_exeext
4143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4144 (eval $ac_link) 2>conftest.er1
4145 ac_status=$?
4146 grep -v '^ *+' conftest.er1 >conftest.err
4147 rm -f conftest.er1
4148 cat conftest.err >&5
4149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4150 (exit $ac_status); } &&
4151 { ac_try='test -z "$ac_c_werror_flag"
4152 || test ! -s conftest.err'
4153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4154 (eval $ac_try) 2>&5
4155 ac_status=$?
4156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4157 (exit $ac_status); }; } &&
4158 { ac_try='test -s conftest$ac_exeext'
4159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4160 (eval $ac_try) 2>&5
4161 ac_status=$?
4162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4163 (exit $ac_status); }; }; then
4164 ac_cv_lib_dnet_stub_dnet_ntoa=yes
4165 else
4166 echo "$as_me: failed program was:" >&5
4167 sed 's/^/| /' conftest.$ac_ext >&5
4169 ac_cv_lib_dnet_stub_dnet_ntoa=no
4171 rm -f conftest.err conftest.$ac_objext \
4172 conftest$ac_exeext conftest.$ac_ext
4173 LIBS=$ac_check_lib_save_LIBS
4175 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
4176 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
4177 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
4178 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
4183 rm -f conftest.err conftest.$ac_objext \
4184 conftest$ac_exeext conftest.$ac_ext
4185 LIBS="$ac_xsave_LIBS"
4187 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
4188 # to get the SysV transport functions.
4189 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
4190 # needs -lnsl.
4191 # The nsl library prevents programs from opening the X display
4192 # on Irix 5.2, according to T.E. Dickey.
4193 # The functions gethostbyname, getservbyname, and inet_addr are
4194 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
4195 echo "$as_me:$LINENO: checking for gethostbyname" >&5
4196 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
4197 if test "${ac_cv_func_gethostbyname+set}" = set; then
4198 echo $ECHO_N "(cached) $ECHO_C" >&6
4199 else
4200 cat >conftest.$ac_ext <<_ACEOF
4201 /* confdefs.h. */
4202 _ACEOF
4203 cat confdefs.h >>conftest.$ac_ext
4204 cat >>conftest.$ac_ext <<_ACEOF
4205 /* end confdefs.h. */
4206 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
4207 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4208 #define gethostbyname innocuous_gethostbyname
4210 /* System header to define __stub macros and hopefully few prototypes,
4211 which can conflict with char gethostbyname (); below.
4212 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4213 <limits.h> exists even on freestanding compilers. */
4215 #ifdef __STDC__
4216 # include <limits.h>
4217 #else
4218 # include <assert.h>
4219 #endif
4221 #undef gethostbyname
4223 /* Override any gcc2 internal prototype to avoid an error. */
4224 #ifdef __cplusplus
4225 extern "C"
4227 #endif
4228 /* We use char because int might match the return type of a gcc2
4229 builtin and then its argument prototype would still apply. */
4230 char gethostbyname ();
4231 /* The GNU C library defines this for functions which it implements
4232 to always fail with ENOSYS. Some functions are actually named
4233 something starting with __ and the normal name is an alias. */
4234 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
4235 choke me
4236 #else
4237 char (*f) () = gethostbyname;
4238 #endif
4239 #ifdef __cplusplus
4241 #endif
4244 main ()
4246 return f != gethostbyname;
4248 return 0;
4250 _ACEOF
4251 rm -f conftest.$ac_objext conftest$ac_exeext
4252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4253 (eval $ac_link) 2>conftest.er1
4254 ac_status=$?
4255 grep -v '^ *+' conftest.er1 >conftest.err
4256 rm -f conftest.er1
4257 cat conftest.err >&5
4258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4259 (exit $ac_status); } &&
4260 { ac_try='test -z "$ac_c_werror_flag"
4261 || test ! -s conftest.err'
4262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4263 (eval $ac_try) 2>&5
4264 ac_status=$?
4265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4266 (exit $ac_status); }; } &&
4267 { ac_try='test -s conftest$ac_exeext'
4268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4269 (eval $ac_try) 2>&5
4270 ac_status=$?
4271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4272 (exit $ac_status); }; }; then
4273 ac_cv_func_gethostbyname=yes
4274 else
4275 echo "$as_me: failed program was:" >&5
4276 sed 's/^/| /' conftest.$ac_ext >&5
4278 ac_cv_func_gethostbyname=no
4280 rm -f conftest.err conftest.$ac_objext \
4281 conftest$ac_exeext conftest.$ac_ext
4283 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
4284 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
4286 if test $ac_cv_func_gethostbyname = no; then
4287 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4288 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4289 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4290 echo $ECHO_N "(cached) $ECHO_C" >&6
4291 else
4292 ac_check_lib_save_LIBS=$LIBS
4293 LIBS="-lnsl $LIBS"
4294 cat >conftest.$ac_ext <<_ACEOF
4295 /* confdefs.h. */
4296 _ACEOF
4297 cat confdefs.h >>conftest.$ac_ext
4298 cat >>conftest.$ac_ext <<_ACEOF
4299 /* end confdefs.h. */
4301 /* Override any gcc2 internal prototype to avoid an error. */
4302 #ifdef __cplusplus
4303 extern "C"
4304 #endif
4305 /* We use char because int might match the return type of a gcc2
4306 builtin and then its argument prototype would still apply. */
4307 char gethostbyname ();
4309 main ()
4311 gethostbyname ();
4313 return 0;
4315 _ACEOF
4316 rm -f conftest.$ac_objext conftest$ac_exeext
4317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4318 (eval $ac_link) 2>conftest.er1
4319 ac_status=$?
4320 grep -v '^ *+' conftest.er1 >conftest.err
4321 rm -f conftest.er1
4322 cat conftest.err >&5
4323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4324 (exit $ac_status); } &&
4325 { ac_try='test -z "$ac_c_werror_flag"
4326 || test ! -s conftest.err'
4327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4328 (eval $ac_try) 2>&5
4329 ac_status=$?
4330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4331 (exit $ac_status); }; } &&
4332 { ac_try='test -s conftest$ac_exeext'
4333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4334 (eval $ac_try) 2>&5
4335 ac_status=$?
4336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4337 (exit $ac_status); }; }; then
4338 ac_cv_lib_nsl_gethostbyname=yes
4339 else
4340 echo "$as_me: failed program was:" >&5
4341 sed 's/^/| /' conftest.$ac_ext >&5
4343 ac_cv_lib_nsl_gethostbyname=no
4345 rm -f conftest.err conftest.$ac_objext \
4346 conftest$ac_exeext conftest.$ac_ext
4347 LIBS=$ac_check_lib_save_LIBS
4349 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4350 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
4351 if test $ac_cv_lib_nsl_gethostbyname = yes; then
4352 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
4355 if test $ac_cv_lib_nsl_gethostbyname = no; then
4356 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
4357 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
4358 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
4359 echo $ECHO_N "(cached) $ECHO_C" >&6
4360 else
4361 ac_check_lib_save_LIBS=$LIBS
4362 LIBS="-lbsd $LIBS"
4363 cat >conftest.$ac_ext <<_ACEOF
4364 /* confdefs.h. */
4365 _ACEOF
4366 cat confdefs.h >>conftest.$ac_ext
4367 cat >>conftest.$ac_ext <<_ACEOF
4368 /* end confdefs.h. */
4370 /* Override any gcc2 internal prototype to avoid an error. */
4371 #ifdef __cplusplus
4372 extern "C"
4373 #endif
4374 /* We use char because int might match the return type of a gcc2
4375 builtin and then its argument prototype would still apply. */
4376 char gethostbyname ();
4378 main ()
4380 gethostbyname ();
4382 return 0;
4384 _ACEOF
4385 rm -f conftest.$ac_objext conftest$ac_exeext
4386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4387 (eval $ac_link) 2>conftest.er1
4388 ac_status=$?
4389 grep -v '^ *+' conftest.er1 >conftest.err
4390 rm -f conftest.er1
4391 cat conftest.err >&5
4392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4393 (exit $ac_status); } &&
4394 { ac_try='test -z "$ac_c_werror_flag"
4395 || test ! -s conftest.err'
4396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4397 (eval $ac_try) 2>&5
4398 ac_status=$?
4399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4400 (exit $ac_status); }; } &&
4401 { ac_try='test -s conftest$ac_exeext'
4402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4403 (eval $ac_try) 2>&5
4404 ac_status=$?
4405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4406 (exit $ac_status); }; }; then
4407 ac_cv_lib_bsd_gethostbyname=yes
4408 else
4409 echo "$as_me: failed program was:" >&5
4410 sed 's/^/| /' conftest.$ac_ext >&5
4412 ac_cv_lib_bsd_gethostbyname=no
4414 rm -f conftest.err conftest.$ac_objext \
4415 conftest$ac_exeext conftest.$ac_ext
4416 LIBS=$ac_check_lib_save_LIBS
4418 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
4419 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
4420 if test $ac_cv_lib_bsd_gethostbyname = yes; then
4421 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
4427 # lieder@skyler.mavd.honeywell.com says without -lsocket,
4428 # socket/setsockopt and other routines are undefined under SCO ODT
4429 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
4430 # on later versions), says Simon Leinen: it contains gethostby*
4431 # variants that don't use the name server (or something). -lsocket
4432 # must be given before -lnsl if both are needed. We assume that
4433 # if connect needs -lnsl, so does gethostbyname.
4434 echo "$as_me:$LINENO: checking for connect" >&5
4435 echo $ECHO_N "checking for connect... $ECHO_C" >&6
4436 if test "${ac_cv_func_connect+set}" = set; then
4437 echo $ECHO_N "(cached) $ECHO_C" >&6
4438 else
4439 cat >conftest.$ac_ext <<_ACEOF
4440 /* confdefs.h. */
4441 _ACEOF
4442 cat confdefs.h >>conftest.$ac_ext
4443 cat >>conftest.$ac_ext <<_ACEOF
4444 /* end confdefs.h. */
4445 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
4446 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4447 #define connect innocuous_connect
4449 /* System header to define __stub macros and hopefully few prototypes,
4450 which can conflict with char connect (); below.
4451 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4452 <limits.h> exists even on freestanding compilers. */
4454 #ifdef __STDC__
4455 # include <limits.h>
4456 #else
4457 # include <assert.h>
4458 #endif
4460 #undef connect
4462 /* Override any gcc2 internal prototype to avoid an error. */
4463 #ifdef __cplusplus
4464 extern "C"
4466 #endif
4467 /* We use char because int might match the return type of a gcc2
4468 builtin and then its argument prototype would still apply. */
4469 char connect ();
4470 /* The GNU C library defines this for functions which it implements
4471 to always fail with ENOSYS. Some functions are actually named
4472 something starting with __ and the normal name is an alias. */
4473 #if defined (__stub_connect) || defined (__stub___connect)
4474 choke me
4475 #else
4476 char (*f) () = connect;
4477 #endif
4478 #ifdef __cplusplus
4480 #endif
4483 main ()
4485 return f != connect;
4487 return 0;
4489 _ACEOF
4490 rm -f conftest.$ac_objext conftest$ac_exeext
4491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4492 (eval $ac_link) 2>conftest.er1
4493 ac_status=$?
4494 grep -v '^ *+' conftest.er1 >conftest.err
4495 rm -f conftest.er1
4496 cat conftest.err >&5
4497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4498 (exit $ac_status); } &&
4499 { ac_try='test -z "$ac_c_werror_flag"
4500 || test ! -s conftest.err'
4501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4502 (eval $ac_try) 2>&5
4503 ac_status=$?
4504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4505 (exit $ac_status); }; } &&
4506 { ac_try='test -s conftest$ac_exeext'
4507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4508 (eval $ac_try) 2>&5
4509 ac_status=$?
4510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4511 (exit $ac_status); }; }; then
4512 ac_cv_func_connect=yes
4513 else
4514 echo "$as_me: failed program was:" >&5
4515 sed 's/^/| /' conftest.$ac_ext >&5
4517 ac_cv_func_connect=no
4519 rm -f conftest.err conftest.$ac_objext \
4520 conftest$ac_exeext conftest.$ac_ext
4522 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
4523 echo "${ECHO_T}$ac_cv_func_connect" >&6
4525 if test $ac_cv_func_connect = no; then
4526 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
4527 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
4528 if test "${ac_cv_lib_socket_connect+set}" = set; then
4529 echo $ECHO_N "(cached) $ECHO_C" >&6
4530 else
4531 ac_check_lib_save_LIBS=$LIBS
4532 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
4533 cat >conftest.$ac_ext <<_ACEOF
4534 /* confdefs.h. */
4535 _ACEOF
4536 cat confdefs.h >>conftest.$ac_ext
4537 cat >>conftest.$ac_ext <<_ACEOF
4538 /* end confdefs.h. */
4540 /* Override any gcc2 internal prototype to avoid an error. */
4541 #ifdef __cplusplus
4542 extern "C"
4543 #endif
4544 /* We use char because int might match the return type of a gcc2
4545 builtin and then its argument prototype would still apply. */
4546 char connect ();
4548 main ()
4550 connect ();
4552 return 0;
4554 _ACEOF
4555 rm -f conftest.$ac_objext conftest$ac_exeext
4556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4557 (eval $ac_link) 2>conftest.er1
4558 ac_status=$?
4559 grep -v '^ *+' conftest.er1 >conftest.err
4560 rm -f conftest.er1
4561 cat conftest.err >&5
4562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563 (exit $ac_status); } &&
4564 { ac_try='test -z "$ac_c_werror_flag"
4565 || test ! -s conftest.err'
4566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4567 (eval $ac_try) 2>&5
4568 ac_status=$?
4569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4570 (exit $ac_status); }; } &&
4571 { ac_try='test -s conftest$ac_exeext'
4572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4573 (eval $ac_try) 2>&5
4574 ac_status=$?
4575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4576 (exit $ac_status); }; }; then
4577 ac_cv_lib_socket_connect=yes
4578 else
4579 echo "$as_me: failed program was:" >&5
4580 sed 's/^/| /' conftest.$ac_ext >&5
4582 ac_cv_lib_socket_connect=no
4584 rm -f conftest.err conftest.$ac_objext \
4585 conftest$ac_exeext conftest.$ac_ext
4586 LIBS=$ac_check_lib_save_LIBS
4588 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
4589 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
4590 if test $ac_cv_lib_socket_connect = yes; then
4591 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
4596 # Guillermo Gomez says -lposix is necessary on A/UX.
4597 echo "$as_me:$LINENO: checking for remove" >&5
4598 echo $ECHO_N "checking for remove... $ECHO_C" >&6
4599 if test "${ac_cv_func_remove+set}" = set; then
4600 echo $ECHO_N "(cached) $ECHO_C" >&6
4601 else
4602 cat >conftest.$ac_ext <<_ACEOF
4603 /* confdefs.h. */
4604 _ACEOF
4605 cat confdefs.h >>conftest.$ac_ext
4606 cat >>conftest.$ac_ext <<_ACEOF
4607 /* end confdefs.h. */
4608 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
4609 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4610 #define remove innocuous_remove
4612 /* System header to define __stub macros and hopefully few prototypes,
4613 which can conflict with char remove (); below.
4614 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4615 <limits.h> exists even on freestanding compilers. */
4617 #ifdef __STDC__
4618 # include <limits.h>
4619 #else
4620 # include <assert.h>
4621 #endif
4623 #undef remove
4625 /* Override any gcc2 internal prototype to avoid an error. */
4626 #ifdef __cplusplus
4627 extern "C"
4629 #endif
4630 /* We use char because int might match the return type of a gcc2
4631 builtin and then its argument prototype would still apply. */
4632 char remove ();
4633 /* The GNU C library defines this for functions which it implements
4634 to always fail with ENOSYS. Some functions are actually named
4635 something starting with __ and the normal name is an alias. */
4636 #if defined (__stub_remove) || defined (__stub___remove)
4637 choke me
4638 #else
4639 char (*f) () = remove;
4640 #endif
4641 #ifdef __cplusplus
4643 #endif
4646 main ()
4648 return f != remove;
4650 return 0;
4652 _ACEOF
4653 rm -f conftest.$ac_objext conftest$ac_exeext
4654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4655 (eval $ac_link) 2>conftest.er1
4656 ac_status=$?
4657 grep -v '^ *+' conftest.er1 >conftest.err
4658 rm -f conftest.er1
4659 cat conftest.err >&5
4660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4661 (exit $ac_status); } &&
4662 { ac_try='test -z "$ac_c_werror_flag"
4663 || test ! -s conftest.err'
4664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4665 (eval $ac_try) 2>&5
4666 ac_status=$?
4667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4668 (exit $ac_status); }; } &&
4669 { ac_try='test -s conftest$ac_exeext'
4670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4671 (eval $ac_try) 2>&5
4672 ac_status=$?
4673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4674 (exit $ac_status); }; }; then
4675 ac_cv_func_remove=yes
4676 else
4677 echo "$as_me: failed program was:" >&5
4678 sed 's/^/| /' conftest.$ac_ext >&5
4680 ac_cv_func_remove=no
4682 rm -f conftest.err conftest.$ac_objext \
4683 conftest$ac_exeext conftest.$ac_ext
4685 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
4686 echo "${ECHO_T}$ac_cv_func_remove" >&6
4688 if test $ac_cv_func_remove = no; then
4689 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
4690 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
4691 if test "${ac_cv_lib_posix_remove+set}" = set; then
4692 echo $ECHO_N "(cached) $ECHO_C" >&6
4693 else
4694 ac_check_lib_save_LIBS=$LIBS
4695 LIBS="-lposix $LIBS"
4696 cat >conftest.$ac_ext <<_ACEOF
4697 /* confdefs.h. */
4698 _ACEOF
4699 cat confdefs.h >>conftest.$ac_ext
4700 cat >>conftest.$ac_ext <<_ACEOF
4701 /* end confdefs.h. */
4703 /* Override any gcc2 internal prototype to avoid an error. */
4704 #ifdef __cplusplus
4705 extern "C"
4706 #endif
4707 /* We use char because int might match the return type of a gcc2
4708 builtin and then its argument prototype would still apply. */
4709 char remove ();
4711 main ()
4713 remove ();
4715 return 0;
4717 _ACEOF
4718 rm -f conftest.$ac_objext conftest$ac_exeext
4719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4720 (eval $ac_link) 2>conftest.er1
4721 ac_status=$?
4722 grep -v '^ *+' conftest.er1 >conftest.err
4723 rm -f conftest.er1
4724 cat conftest.err >&5
4725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4726 (exit $ac_status); } &&
4727 { ac_try='test -z "$ac_c_werror_flag"
4728 || test ! -s conftest.err'
4729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4730 (eval $ac_try) 2>&5
4731 ac_status=$?
4732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4733 (exit $ac_status); }; } &&
4734 { ac_try='test -s conftest$ac_exeext'
4735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4736 (eval $ac_try) 2>&5
4737 ac_status=$?
4738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4739 (exit $ac_status); }; }; then
4740 ac_cv_lib_posix_remove=yes
4741 else
4742 echo "$as_me: failed program was:" >&5
4743 sed 's/^/| /' conftest.$ac_ext >&5
4745 ac_cv_lib_posix_remove=no
4747 rm -f conftest.err conftest.$ac_objext \
4748 conftest$ac_exeext conftest.$ac_ext
4749 LIBS=$ac_check_lib_save_LIBS
4751 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
4752 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
4753 if test $ac_cv_lib_posix_remove = yes; then
4754 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
4759 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4760 echo "$as_me:$LINENO: checking for shmat" >&5
4761 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
4762 if test "${ac_cv_func_shmat+set}" = set; then
4763 echo $ECHO_N "(cached) $ECHO_C" >&6
4764 else
4765 cat >conftest.$ac_ext <<_ACEOF
4766 /* confdefs.h. */
4767 _ACEOF
4768 cat confdefs.h >>conftest.$ac_ext
4769 cat >>conftest.$ac_ext <<_ACEOF
4770 /* end confdefs.h. */
4771 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
4772 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4773 #define shmat innocuous_shmat
4775 /* System header to define __stub macros and hopefully few prototypes,
4776 which can conflict with char shmat (); below.
4777 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4778 <limits.h> exists even on freestanding compilers. */
4780 #ifdef __STDC__
4781 # include <limits.h>
4782 #else
4783 # include <assert.h>
4784 #endif
4786 #undef shmat
4788 /* Override any gcc2 internal prototype to avoid an error. */
4789 #ifdef __cplusplus
4790 extern "C"
4792 #endif
4793 /* We use char because int might match the return type of a gcc2
4794 builtin and then its argument prototype would still apply. */
4795 char shmat ();
4796 /* The GNU C library defines this for functions which it implements
4797 to always fail with ENOSYS. Some functions are actually named
4798 something starting with __ and the normal name is an alias. */
4799 #if defined (__stub_shmat) || defined (__stub___shmat)
4800 choke me
4801 #else
4802 char (*f) () = shmat;
4803 #endif
4804 #ifdef __cplusplus
4806 #endif
4809 main ()
4811 return f != shmat;
4813 return 0;
4815 _ACEOF
4816 rm -f conftest.$ac_objext conftest$ac_exeext
4817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4818 (eval $ac_link) 2>conftest.er1
4819 ac_status=$?
4820 grep -v '^ *+' conftest.er1 >conftest.err
4821 rm -f conftest.er1
4822 cat conftest.err >&5
4823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4824 (exit $ac_status); } &&
4825 { ac_try='test -z "$ac_c_werror_flag"
4826 || test ! -s conftest.err'
4827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4828 (eval $ac_try) 2>&5
4829 ac_status=$?
4830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4831 (exit $ac_status); }; } &&
4832 { ac_try='test -s conftest$ac_exeext'
4833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4834 (eval $ac_try) 2>&5
4835 ac_status=$?
4836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4837 (exit $ac_status); }; }; then
4838 ac_cv_func_shmat=yes
4839 else
4840 echo "$as_me: failed program was:" >&5
4841 sed 's/^/| /' conftest.$ac_ext >&5
4843 ac_cv_func_shmat=no
4845 rm -f conftest.err conftest.$ac_objext \
4846 conftest$ac_exeext conftest.$ac_ext
4848 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
4849 echo "${ECHO_T}$ac_cv_func_shmat" >&6
4851 if test $ac_cv_func_shmat = no; then
4852 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
4853 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
4854 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
4855 echo $ECHO_N "(cached) $ECHO_C" >&6
4856 else
4857 ac_check_lib_save_LIBS=$LIBS
4858 LIBS="-lipc $LIBS"
4859 cat >conftest.$ac_ext <<_ACEOF
4860 /* confdefs.h. */
4861 _ACEOF
4862 cat confdefs.h >>conftest.$ac_ext
4863 cat >>conftest.$ac_ext <<_ACEOF
4864 /* end confdefs.h. */
4866 /* Override any gcc2 internal prototype to avoid an error. */
4867 #ifdef __cplusplus
4868 extern "C"
4869 #endif
4870 /* We use char because int might match the return type of a gcc2
4871 builtin and then its argument prototype would still apply. */
4872 char shmat ();
4874 main ()
4876 shmat ();
4878 return 0;
4880 _ACEOF
4881 rm -f conftest.$ac_objext conftest$ac_exeext
4882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4883 (eval $ac_link) 2>conftest.er1
4884 ac_status=$?
4885 grep -v '^ *+' conftest.er1 >conftest.err
4886 rm -f conftest.er1
4887 cat conftest.err >&5
4888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4889 (exit $ac_status); } &&
4890 { ac_try='test -z "$ac_c_werror_flag"
4891 || test ! -s conftest.err'
4892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4893 (eval $ac_try) 2>&5
4894 ac_status=$?
4895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896 (exit $ac_status); }; } &&
4897 { ac_try='test -s conftest$ac_exeext'
4898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4899 (eval $ac_try) 2>&5
4900 ac_status=$?
4901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4902 (exit $ac_status); }; }; then
4903 ac_cv_lib_ipc_shmat=yes
4904 else
4905 echo "$as_me: failed program was:" >&5
4906 sed 's/^/| /' conftest.$ac_ext >&5
4908 ac_cv_lib_ipc_shmat=no
4910 rm -f conftest.err conftest.$ac_objext \
4911 conftest$ac_exeext conftest.$ac_ext
4912 LIBS=$ac_check_lib_save_LIBS
4914 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
4915 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
4916 if test $ac_cv_lib_ipc_shmat = yes; then
4917 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
4923 # Check for libraries that X11R6 Xt/Xaw programs need.
4924 ac_save_LDFLAGS=$LDFLAGS
4925 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
4926 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4927 # check for ICE first), but we must link in the order -lSM -lICE or
4928 # we get undefined symbols. So assume we have SM if we have ICE.
4929 # These have to be linked with before -lX11, unlike the other
4930 # libraries we check for below, so use a different variable.
4931 # John Interrante, Karl Berry
4932 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
4933 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
4934 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
4935 echo $ECHO_N "(cached) $ECHO_C" >&6
4936 else
4937 ac_check_lib_save_LIBS=$LIBS
4938 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
4939 cat >conftest.$ac_ext <<_ACEOF
4940 /* confdefs.h. */
4941 _ACEOF
4942 cat confdefs.h >>conftest.$ac_ext
4943 cat >>conftest.$ac_ext <<_ACEOF
4944 /* end confdefs.h. */
4946 /* Override any gcc2 internal prototype to avoid an error. */
4947 #ifdef __cplusplus
4948 extern "C"
4949 #endif
4950 /* We use char because int might match the return type of a gcc2
4951 builtin and then its argument prototype would still apply. */
4952 char IceConnectionNumber ();
4954 main ()
4956 IceConnectionNumber ();
4958 return 0;
4960 _ACEOF
4961 rm -f conftest.$ac_objext conftest$ac_exeext
4962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4963 (eval $ac_link) 2>conftest.er1
4964 ac_status=$?
4965 grep -v '^ *+' conftest.er1 >conftest.err
4966 rm -f conftest.er1
4967 cat conftest.err >&5
4968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4969 (exit $ac_status); } &&
4970 { ac_try='test -z "$ac_c_werror_flag"
4971 || test ! -s conftest.err'
4972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4973 (eval $ac_try) 2>&5
4974 ac_status=$?
4975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4976 (exit $ac_status); }; } &&
4977 { ac_try='test -s conftest$ac_exeext'
4978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4979 (eval $ac_try) 2>&5
4980 ac_status=$?
4981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4982 (exit $ac_status); }; }; then
4983 ac_cv_lib_ICE_IceConnectionNumber=yes
4984 else
4985 echo "$as_me: failed program was:" >&5
4986 sed 's/^/| /' conftest.$ac_ext >&5
4988 ac_cv_lib_ICE_IceConnectionNumber=no
4990 rm -f conftest.err conftest.$ac_objext \
4991 conftest$ac_exeext conftest.$ac_ext
4992 LIBS=$ac_check_lib_save_LIBS
4994 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
4995 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
4996 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
4997 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5000 LDFLAGS=$ac_save_LDFLAGS
5005 groff_no_x=$no_x
5006 if test -z "$groff_no_x"; then
5007 OLDCFLAGS=$CFLAGS
5008 OLDLDFLAGS=$LDFLAGS
5009 OLDLIBS=$LIBS
5010 CFLAGS="$CFLAGS $X_CFLAGS"
5011 LDFLAGS="$LDFLAGS $X_LIBS"
5012 LIBS="$LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
5014 LIBS="$LIBS -lXaw"
5015 echo "$as_me:$LINENO: checking for Xaw library and header files" >&5
5016 echo $ECHO_N "checking for Xaw library and header files... $ECHO_C" >&6
5017 cat >conftest.$ac_ext <<_ACEOF
5019 /* confdefs.h. */
5020 _ACEOF
5021 cat confdefs.h >>conftest.$ac_ext
5022 cat >>conftest.$ac_ext <<_ACEOF
5023 /* end confdefs.h. */
5026 #include <X11/Intrinsic.h>
5027 #include <X11/Xaw/Simple.h>
5031 main ()
5035 return 0;
5038 _ACEOF
5039 rm -f conftest.$ac_objext conftest$ac_exeext
5040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5041 (eval $ac_link) 2>conftest.er1
5042 ac_status=$?
5043 grep -v '^ *+' conftest.er1 >conftest.err
5044 rm -f conftest.er1
5045 cat conftest.err >&5
5046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5047 (exit $ac_status); } &&
5048 { ac_try='test -z "$ac_c_werror_flag"
5049 || test ! -s conftest.err'
5050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5051 (eval $ac_try) 2>&5
5052 ac_status=$?
5053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5054 (exit $ac_status); }; } &&
5055 { ac_try='test -s conftest$ac_exeext'
5056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5057 (eval $ac_try) 2>&5
5058 ac_status=$?
5059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5060 (exit $ac_status); }; }; then
5061 echo "$as_me:$LINENO: result: yes" >&5
5062 echo "${ECHO_T}yes" >&6
5063 else
5064 echo "$as_me: failed program was:" >&5
5065 sed 's/^/| /' conftest.$ac_ext >&5
5067 echo "$as_me:$LINENO: result: no" >&5
5068 echo "${ECHO_T}no" >&6
5069 groff_no_x="yes"
5071 rm -f conftest.err conftest.$ac_objext \
5072 conftest$ac_exeext conftest.$ac_ext
5074 LIBS="$LIBS -lXmu"
5075 echo "$as_me:$LINENO: checking for Xmu library and header files" >&5
5076 echo $ECHO_N "checking for Xmu library and header files... $ECHO_C" >&6
5077 cat >conftest.$ac_ext <<_ACEOF
5079 /* confdefs.h. */
5080 _ACEOF
5081 cat confdefs.h >>conftest.$ac_ext
5082 cat >>conftest.$ac_ext <<_ACEOF
5083 /* end confdefs.h. */
5086 #include <X11/Intrinsic.h>
5087 #include <X11/Xmu/Converters.h>
5091 main ()
5095 return 0;
5098 _ACEOF
5099 rm -f conftest.$ac_objext conftest$ac_exeext
5100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5101 (eval $ac_link) 2>conftest.er1
5102 ac_status=$?
5103 grep -v '^ *+' conftest.er1 >conftest.err
5104 rm -f conftest.er1
5105 cat conftest.err >&5
5106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5107 (exit $ac_status); } &&
5108 { ac_try='test -z "$ac_c_werror_flag"
5109 || test ! -s conftest.err'
5110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5111 (eval $ac_try) 2>&5
5112 ac_status=$?
5113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5114 (exit $ac_status); }; } &&
5115 { ac_try='test -s conftest$ac_exeext'
5116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5117 (eval $ac_try) 2>&5
5118 ac_status=$?
5119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5120 (exit $ac_status); }; }; then
5121 echo "$as_me:$LINENO: result: yes" >&5
5122 echo "${ECHO_T}yes" >&6
5123 else
5124 echo "$as_me: failed program was:" >&5
5125 sed 's/^/| /' conftest.$ac_ext >&5
5127 echo "$as_me:$LINENO: result: no" >&5
5128 echo "${ECHO_T}no" >&6
5129 groff_no_x="yes"
5131 rm -f conftest.err conftest.$ac_objext \
5132 conftest$ac_exeext conftest.$ac_ext
5134 CFLAGS=$OLDCFLAGS
5135 LDFLAGS=$OLDLDFLAGS
5136 LIBS=$OLDLIBS
5139 if test "x$groff_no_x" = "xyes"; then
5140 { echo "$as_me:$LINENO: gxditview and xtotroff won't be built" >&5
5141 echo "$as_me: gxditview and xtotroff won't be built" >&6;}
5142 else
5143 XDEVDIRS="font/devX75 font/devX75-12 font/devX100 font/devX100-12"
5144 XPROGDIRS="src/devices/xditview src/utils/xtotroff"
5145 XLIBDIRS="src/libs/libxutil"
5152 # Check whether --with-appresdir or --without-appresdir was given.
5153 if test "${with_appresdir+set}" = set; then
5154 withval="$with_appresdir"
5157 if test -z "$groff_no_x"; then
5158 # Create an Imakefile, run `xmkmf', then `make'.
5159 rm -f -r conftest.dir
5160 if mkdir conftest.dir; then
5161 cd conftest.dir
5162 # Make sure to not put `make' in the Imakefile rules,
5163 # since we grep it out.
5164 cat >Imakefile <<'EOF'
5166 xlibdirs:
5167 @echo 'groff_x_usrlibdir="${USRLIBDIR}"; groff_x_libdir="${LIBDIR}"'
5170 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5171 # GNU make sometimes prints "make[1]: Entering...",
5172 # which would confuse us.
5173 eval `${MAKE-make} xlibdirs 2>/dev/null | grep -v make`
5175 # Open Windows `xmkmf' reportedly sets LIBDIR instead of USRLIBDIR.
5176 for groff_extension in a so sl; do
5177 if test ! -f $groff_x_usrlibdir/libX11.$groff_extension &&
5178 test -f $groff_x_libdir/libX11.$groff_extension; then
5179 groff_x_usrlibdir=$groff_x_libdir
5180 break
5182 done
5185 cd ..
5186 rm -f -r conftest.dir
5189 # In case the test with `xmkmf' wasn't successful, try a suite of
5190 # standard directories. Check `X11' before `X11Rn' because it is often
5191 # a symlink to the current release.
5192 groff_x_libdirs='
5193 /usr/X11/lib
5194 /usr/X11R6/lib
5195 /usr/X11R5/lib
5196 /usr/X11R4/lib
5198 /usr/lib/X11
5199 /usr/lib/X11R6
5200 /usr/lib/X11R5
5201 /usr/lib/X11R4
5203 /usr/local/X11/lib
5204 /usr/local/X11R6/lib
5205 /usr/local/X11R5/lib
5206 /usr/local/X11R4/lib
5208 /usr/local/lib/X11
5209 /usr/local/lib/X11R6
5210 /usr/local/lib/X11R5
5211 /usr/local/lib/X11R4
5213 /usr/X386/lib
5214 /usr/x386/lib
5215 /usr/XFree86/lib/X11
5217 /usr/lib
5218 /usr/local/lib
5219 /usr/unsupported/lib
5220 /usr/athena/lib
5221 /usr/local/x11r5/lib
5222 /usr/lpp/Xamples/lib
5224 /usr/openwin/lib
5225 /usr/openwin/share/lib'
5227 if test -z "$groff_x_usrlibdir"; then
5228 # We only test whether libX11 exists.
5229 for groff_dir in $groff_x_libdirs; do
5230 for groff_extension in a so sl; do
5231 if test ! -r $groff_dir/libX11.$groff_extension; then
5232 groff_x_usrlibdir=$groff_dir
5233 break 2
5235 done
5236 done
5239 if test "x$with_appresdir" = "x"; then
5240 appresdir=$groff_x_usrlibdir/X11/app-defaults
5241 else
5242 appresdir=$with_appresdir
5246 if test -z "$PSPRINT"; then
5247 for ac_prog in lpr
5249 # Extract the first word of "$ac_prog", so it can be a program name with args.
5250 set dummy $ac_prog; ac_word=$2
5251 echo "$as_me:$LINENO: checking for $ac_word" >&5
5252 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5253 if test "${ac_cv_prog_LPR+set}" = set; then
5254 echo $ECHO_N "(cached) $ECHO_C" >&6
5255 else
5256 if test -n "$LPR"; then
5257 ac_cv_prog_LPR="$LPR" # Let the user override the test.
5258 else
5259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5260 for as_dir in $PATH
5262 IFS=$as_save_IFS
5263 test -z "$as_dir" && as_dir=.
5264 for ac_exec_ext in '' $ac_executable_extensions; do
5265 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5266 ac_cv_prog_LPR="$ac_prog"
5267 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5268 break 2
5270 done
5271 done
5275 LPR=$ac_cv_prog_LPR
5276 if test -n "$LPR"; then
5277 echo "$as_me:$LINENO: result: $LPR" >&5
5278 echo "${ECHO_T}$LPR" >&6
5279 else
5280 echo "$as_me:$LINENO: result: no" >&5
5281 echo "${ECHO_T}no" >&6
5284 test -n "$LPR" && break
5285 done
5287 for ac_prog in lp
5289 # Extract the first word of "$ac_prog", so it can be a program name with args.
5290 set dummy $ac_prog; ac_word=$2
5291 echo "$as_me:$LINENO: checking for $ac_word" >&5
5292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5293 if test "${ac_cv_prog_LP+set}" = set; then
5294 echo $ECHO_N "(cached) $ECHO_C" >&6
5295 else
5296 if test -n "$LP"; then
5297 ac_cv_prog_LP="$LP" # Let the user override the test.
5298 else
5299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5300 for as_dir in $PATH
5302 IFS=$as_save_IFS
5303 test -z "$as_dir" && as_dir=.
5304 for ac_exec_ext in '' $ac_executable_extensions; do
5305 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5306 ac_cv_prog_LP="$ac_prog"
5307 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5308 break 2
5310 done
5311 done
5315 LP=$ac_cv_prog_LP
5316 if test -n "$LP"; then
5317 echo "$as_me:$LINENO: result: $LP" >&5
5318 echo "${ECHO_T}$LP" >&6
5319 else
5320 echo "$as_me:$LINENO: result: no" >&5
5321 echo "${ECHO_T}no" >&6
5324 test -n "$LP" && break
5325 done
5327 if test -n "$LPR" && test -n "$LP"; then
5328 # HP-UX provides an lpr command that emulates lpr using lp,
5329 # but it doesn't have lpq; in this case we want to use lp
5330 # rather than lpr.
5331 for ac_prog in lpq
5333 # Extract the first word of "$ac_prog", so it can be a program name with args.
5334 set dummy $ac_prog; ac_word=$2
5335 echo "$as_me:$LINENO: checking for $ac_word" >&5
5336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5337 if test "${ac_cv_prog_LPQ+set}" = set; then
5338 echo $ECHO_N "(cached) $ECHO_C" >&6
5339 else
5340 if test -n "$LPQ"; then
5341 ac_cv_prog_LPQ="$LPQ" # Let the user override the test.
5342 else
5343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5344 for as_dir in $PATH
5346 IFS=$as_save_IFS
5347 test -z "$as_dir" && as_dir=.
5348 for ac_exec_ext in '' $ac_executable_extensions; do
5349 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5350 ac_cv_prog_LPQ="$ac_prog"
5351 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5352 break 2
5354 done
5355 done
5359 LPQ=$ac_cv_prog_LPQ
5360 if test -n "$LPQ"; then
5361 echo "$as_me:$LINENO: result: $LPQ" >&5
5362 echo "${ECHO_T}$LPQ" >&6
5363 else
5364 echo "$as_me:$LINENO: result: no" >&5
5365 echo "${ECHO_T}no" >&6
5368 test -n "$LPQ" && break
5369 done
5371 test -n "$LPQ" || LPR=
5373 if test -n "$LPR"; then
5374 PSPRINT="$LPR"
5375 elif test -n "$LP"; then
5376 PSPRINT="$LP"
5380 echo "$as_me:$LINENO: checking for command to use for printing PostScript files" >&5
5381 echo $ECHO_N "checking for command to use for printing PostScript files... $ECHO_C" >&6
5382 echo "$as_me:$LINENO: result: $PSPRINT" >&5
5383 echo "${ECHO_T}$PSPRINT" >&6
5385 # Figure out DVIPRINT from PSPRINT.
5386 echo "$as_me:$LINENO: checking for command to use for printing dvi files" >&5
5387 echo $ECHO_N "checking for command to use for printing dvi files... $ECHO_C" >&6
5388 if test -n "$PSPRINT" && test -z "$DVIPRINT"; then
5389 if test "x$PSPRINT" = "xlpr"; then
5390 DVIPRINT="lpr -d"
5391 else
5392 DVIPRINT="$PSPRINT"
5396 echo "$as_me:$LINENO: result: $DVIPRINT" >&5
5397 echo "${ECHO_T}$DVIPRINT" >&6
5398 echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5399 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6
5400 if test "${ac_cv_path_GREP+set}" = set; then
5401 echo $ECHO_N "(cached) $ECHO_C" >&6
5402 else
5403 # Extract the first word of "grep ggrep" to use in msg output
5404 if test -z "$GREP"; then
5405 set dummy grep ggrep; ac_prog_name=$2
5406 if test "${ac_cv_path_GREP+set}" = set; then
5407 echo $ECHO_N "(cached) $ECHO_C" >&6
5408 else
5409 # Create a temporary directory, and hook for its removal unless debugging.
5410 $debug ||
5412 trap 'exit_status=$?; rm -f -r $tmp && exit $exit_status' 0
5413 trap '{ (exit 1); exit 1; }' 1 2 13 15
5416 # Create a (secure) tmp directory for tmp files.
5417 : ${TMPDIR=/tmp}
5419 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/GREPXXXXXX") 2>/dev/null` &&
5420 test -n "$tmp" && test -d "$tmp"
5421 } ||
5423 tmp=$TMPDIR/GREP$$-$RANDOM
5424 (umask 077 && mkdir $tmp)
5425 } ||
5427 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
5428 { (exit 1); exit 1; }
5430 ac_path_GREP_found=false
5431 # Loop through the user's path and test for each of PROGNAME-LIST
5432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5433 as_dummy="$PATH:/usr/xpg4/bin"
5434 for as_dir in $as_dummy
5436 IFS=$as_save_IFS
5437 test -z "$as_dir" && as_dir=.
5438 for ac_prog in grep ggrep; do
5439 for ac_exec_ext in '' $ac_executable_extensions; do
5440 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5441 test -f "$ac_path_GREP" || continue
5442 $ac_path_GREP_found || if $as_executable_p "$ac_path_GREP"; then
5443 # Check for GNU ac_path_GREP and select it if it is found.
5444 # Check for GNU $ac_path_GREP
5445 if "$ac_path_GREP" --version 2>&1 < /dev/null | grep 'GNU' >/dev/null; then
5446 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:
5447 else
5448 ac_count=0
5449 echo $ECHO_N "0123456789$ECHO_C" >"$tmp/conftest.in"
5450 while :
5452 cat "$tmp/conftest.in" "$tmp/conftest.in" >"$tmp/conftest.tmp"
5453 mv "$tmp/conftest.tmp" "$tmp/conftest.in"
5454 cp "$tmp/conftest.in" "$tmp/conftest.nl"
5455 echo 'GREP' >> "$tmp/conftest.nl"
5456 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "$tmp/conftest.nl" >"$tmp/conftest.out" 2>/dev/null || break
5457 diff "$tmp/conftest.out" "$tmp/conftest.nl" >/dev/null 2>&1 || break
5458 ac_count=`expr $ac_count + 1`
5459 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5460 # Best one so far, save it but keep looking for a better one
5461 ac_cv_path_GREP="$ac_path_GREP"
5462 ac_path_GREP_max=$ac_count
5464 # 10*(2^10) chars as input seems more than enough
5465 test $ac_count -gt 10 && break
5466 done
5471 $ac_path_GREP_found && break 3
5472 done
5473 done
5475 done
5477 rm -rf "$tmp"
5481 GREP="$ac_cv_path_GREP"
5482 if test -z "$GREP"; then
5483 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH:/usr/xpg4/bin" >&5
5484 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH:/usr/xpg4/bin" >&2;}
5485 { (exit 1); exit 1; }; }
5492 echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5493 echo "${ECHO_T}$ac_cv_path_GREP" >&6
5494 GREP="$ac_cv_path_GREP"
5497 echo "$as_me:$LINENO: checking for egrep" >&5
5498 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5499 if test "${ac_cv_path_EGREP+set}" = set; then
5500 echo $ECHO_N "(cached) $ECHO_C" >&6
5501 else
5502 if echo a | ($GREP -E '(a|b)') >/dev/null 2>&1
5503 then ac_cv_path_EGREP="$GREP -E"
5504 else
5505 # Extract the first word of "egrep" to use in msg output
5506 if test -z "$EGREP"; then
5507 set dummy egrep; ac_prog_name=$2
5508 if test "${ac_cv_path_EGREP+set}" = set; then
5509 echo $ECHO_N "(cached) $ECHO_C" >&6
5510 else
5511 # Create a temporary directory, and hook for its removal unless debugging.
5512 $debug ||
5514 trap 'exit_status=$?; rm -f -r $tmp && exit $exit_status' 0
5515 trap '{ (exit 1); exit 1; }' 1 2 13 15
5518 # Create a (secure) tmp directory for tmp files.
5519 : ${TMPDIR=/tmp}
5521 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/EGREPXXXXXX") 2>/dev/null` &&
5522 test -n "$tmp" && test -d "$tmp"
5523 } ||
5525 tmp=$TMPDIR/EGREP$$-$RANDOM
5526 (umask 077 && mkdir $tmp)
5527 } ||
5529 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
5530 { (exit 1); exit 1; }
5532 ac_path_EGREP_found=false
5533 # Loop through the user's path and test for each of PROGNAME-LIST
5534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5535 as_dummy="$PATH:/usr/xpg4/bin"
5536 for as_dir in $as_dummy
5538 IFS=$as_save_IFS
5539 test -z "$as_dir" && as_dir=.
5540 for ac_prog in egrep; do
5541 for ac_exec_ext in '' $ac_executable_extensions; do
5542 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5543 test -f "$ac_path_EGREP" || continue
5544 $ac_path_EGREP_found || if $as_executable_p "$ac_path_EGREP"; then
5545 # Check for GNU ac_path_EGREP and select it if it is found.
5546 # Check for GNU $ac_path_EGREP
5547 if "$ac_path_EGREP" --version 2>&1 < /dev/null | grep 'GNU' >/dev/null; then
5548 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:
5549 else
5550 ac_count=0
5551 echo $ECHO_N "0123456789$ECHO_C" >"$tmp/conftest.in"
5552 while :
5554 cat "$tmp/conftest.in" "$tmp/conftest.in" >"$tmp/conftest.tmp"
5555 mv "$tmp/conftest.tmp" "$tmp/conftest.in"
5556 cp "$tmp/conftest.in" "$tmp/conftest.nl"
5557 echo 'EGREP' >> "$tmp/conftest.nl"
5558 "$ac_path_EGREP" 'EGREP$' < "$tmp/conftest.nl" >"$tmp/conftest.out" 2>/dev/null || break
5559 diff "$tmp/conftest.out" "$tmp/conftest.nl" >/dev/null 2>&1 || break
5560 ac_count=`expr $ac_count + 1`
5561 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5562 # Best one so far, save it but keep looking for a better one
5563 ac_cv_path_EGREP="$ac_path_EGREP"
5564 ac_path_EGREP_max=$ac_count
5566 # 10*(2^10) chars as input seems more than enough
5567 test $ac_count -gt 10 && break
5568 done
5573 $ac_path_EGREP_found && break 3
5574 done
5575 done
5577 done
5579 rm -rf "$tmp"
5583 EGREP="$ac_cv_path_EGREP"
5584 if test -z "$EGREP"; then
5585 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH:/usr/xpg4/bin" >&5
5586 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH:/usr/xpg4/bin" >&2;}
5587 { (exit 1); exit 1; }; }
5595 echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5596 echo "${ECHO_T}$ac_cv_path_EGREP" >&6
5597 EGREP="$ac_cv_path_EGREP"
5600 # Extract the first word of "perl", so it can be a program name with args.
5601 set dummy perl; ac_word=$2
5602 echo "$as_me:$LINENO: checking for $ac_word" >&5
5603 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5604 if test "${ac_cv_path_PERLPATH+set}" = set; then
5605 echo $ECHO_N "(cached) $ECHO_C" >&6
5606 else
5607 case $PERLPATH in
5608 [\\/]* | ?:[\\/]*)
5609 ac_cv_path_PERLPATH="$PERLPATH" # Let the user override the test with a path.
5612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5613 for as_dir in $PATH
5615 IFS=$as_save_IFS
5616 test -z "$as_dir" && as_dir=.
5617 for ac_exec_ext in '' $ac_executable_extensions; do
5618 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5619 ac_cv_path_PERLPATH="$as_dir/$ac_word$ac_exec_ext"
5620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5621 break 2
5623 done
5624 done
5626 test -z "$ac_cv_path_PERLPATH" && ac_cv_path_PERLPATH="/usr/bin/perl"
5628 esac
5630 PERLPATH=$ac_cv_path_PERLPATH
5632 if test -n "$PERLPATH"; then
5633 echo "$as_me:$LINENO: result: $PERLPATH" >&5
5634 echo "${ECHO_T}$PERLPATH" >&6
5635 else
5636 echo "$as_me:$LINENO: result: no" >&5
5637 echo "${ECHO_T}no" >&6
5640 for ac_prog in byacc 'bison -y'
5642 # Extract the first word of "$ac_prog", so it can be a program name with args.
5643 set dummy $ac_prog; ac_word=$2
5644 echo "$as_me:$LINENO: checking for $ac_word" >&5
5645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5646 if test "${ac_cv_prog_YACC+set}" = set; then
5647 echo $ECHO_N "(cached) $ECHO_C" >&6
5648 else
5649 if test -n "$YACC"; then
5650 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5651 else
5652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5653 for as_dir in $PATH
5655 IFS=$as_save_IFS
5656 test -z "$as_dir" && as_dir=.
5657 for ac_exec_ext in '' $ac_executable_extensions; do
5658 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5659 ac_cv_prog_YACC="$ac_prog"
5660 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5661 break 2
5663 done
5664 done
5668 YACC=$ac_cv_prog_YACC
5669 if test -n "$YACC"; then
5670 echo "$as_me:$LINENO: result: $YACC" >&5
5671 echo "${ECHO_T}$YACC" >&6
5672 else
5673 echo "$as_me:$LINENO: result: no" >&5
5674 echo "${ECHO_T}no" >&6
5677 test -n "$YACC" && break
5678 done
5679 test -n "$YACC" || YACC="yacc"
5681 missing=
5682 # Extract the first word of "makeinfo", so it can be a program name with args.
5683 set dummy makeinfo; ac_word=$2
5684 echo "$as_me:$LINENO: checking for $ac_word" >&5
5685 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5686 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
5687 echo $ECHO_N "(cached) $ECHO_C" >&6
5688 else
5689 if test -n "$MAKEINFO"; then
5690 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
5691 else
5692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5693 for as_dir in $PATH
5695 IFS=$as_save_IFS
5696 test -z "$as_dir" && as_dir=.
5697 for ac_exec_ext in '' $ac_executable_extensions; do
5698 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5699 ac_cv_prog_MAKEINFO="makeinfo"
5700 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5701 break 2
5703 done
5704 done
5708 MAKEINFO=$ac_cv_prog_MAKEINFO
5709 if test -n "$MAKEINFO"; then
5710 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5711 echo "${ECHO_T}$MAKEINFO" >&6
5712 else
5713 echo "$as_me:$LINENO: result: no" >&5
5714 echo "${ECHO_T}no" >&6
5717 if test -z "$MAKEINFO"; then
5718 missing="\`makeinfo' is missing."
5719 else
5720 echo "$as_me:$LINENO: checking for makeinfo version" >&5
5721 echo $ECHO_N "checking for makeinfo version... $ECHO_C" >&6
5722 # We need an additional level of quoting to make sed's regexps work.
5723 makeinfo_version=`$MAKEINFO --version 2>&1 \
5724 | sed -e 's/^.* \([^ ][^ ]*\)$/\1/' -e '1q'`
5725 echo "$as_me:$LINENO: result: $makeinfo_version" >&5
5726 echo "${ECHO_T}$makeinfo_version" >&6
5727 # Consider only the first two numbers in version number string.
5728 makeinfo_version_major=`echo $makeinfo_version \
5729 | sed 's/^\([0-9]*\).*$/\1/'`
5730 if test -z "$makeinfo_version_major"; then
5731 makeinfo_version_major=0
5732 makeinfo_version_minor=0
5733 else
5734 makeinfo_version_minor=`echo $makeinfo_version \
5735 | sed 's/^[^.][^.]*\(.*\)$/\1/'`
5736 # No minor version number at all?
5737 if test -z "$makeinfo_version_minor"; then
5738 makeinfo_version_minor=0
5739 else
5740 makeinfo_version_minor=`echo $makeinfo_version_minor \
5741 | sed 's/\.\([0-9]*\).*$/\1/'`
5742 if test -z "$makeinfo_version_minor"; then
5743 makeinfo_version_minor=0
5748 makeinfo_version_numeric=`expr $makeinfo_version_major '*' 1000 \
5749 '+' $makeinfo_version_minor`
5750 if test $makeinfo_version_numeric -lt 4008; then
5751 missing="\`makeinfo' is too old."
5754 if test -n "$missing"; then
5755 if test ! -f doc/groff.info \
5756 || test ${srcdir}/doc/groff.texinfo -nt doc/groff.info; then
5757 { { echo "$as_me:$LINENO: error: $missing
5758 Get the \`texinfo' package version 4.8 or newer." >&5
5759 echo "$as_me: error: $missing
5760 Get the \`texinfo' package version 4.8 or newer." >&2;}
5761 { (exit 1); exit 1; }; }
5762 else
5763 { echo "$as_me:$LINENO: WARNING: $missing
5764 Get the \`texinfo' package version 4.8 or newer if you want to convert
5765 \`groff.texinfo' into a PDF or HTML document." >&5
5766 echo "$as_me: WARNING: $missing
5767 Get the \`texinfo' package version 4.8 or newer if you want to convert
5768 \`groff.texinfo' into a PDF or HTML document." >&2;}
5772 if test -n "$ac_tool_prefix"; then
5773 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5774 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5775 echo "$as_me:$LINENO: checking for $ac_word" >&5
5776 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5777 if test "${ac_cv_prog_RANLIB+set}" = set; then
5778 echo $ECHO_N "(cached) $ECHO_C" >&6
5779 else
5780 if test -n "$RANLIB"; then
5781 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5782 else
5783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5784 for as_dir in $PATH
5786 IFS=$as_save_IFS
5787 test -z "$as_dir" && as_dir=.
5788 for ac_exec_ext in '' $ac_executable_extensions; do
5789 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5790 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5791 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5792 break 2
5794 done
5795 done
5799 RANLIB=$ac_cv_prog_RANLIB
5800 if test -n "$RANLIB"; then
5801 echo "$as_me:$LINENO: result: $RANLIB" >&5
5802 echo "${ECHO_T}$RANLIB" >&6
5803 else
5804 echo "$as_me:$LINENO: result: no" >&5
5805 echo "${ECHO_T}no" >&6
5809 if test -z "$ac_cv_prog_RANLIB"; then
5810 ac_ct_RANLIB=$RANLIB
5811 # Extract the first word of "ranlib", so it can be a program name with args.
5812 set dummy ranlib; ac_word=$2
5813 echo "$as_me:$LINENO: checking for $ac_word" >&5
5814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5815 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5816 echo $ECHO_N "(cached) $ECHO_C" >&6
5817 else
5818 if test -n "$ac_ct_RANLIB"; then
5819 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5820 else
5821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5822 for as_dir in $PATH
5824 IFS=$as_save_IFS
5825 test -z "$as_dir" && as_dir=.
5826 for ac_exec_ext in '' $ac_executable_extensions; do
5827 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5828 ac_cv_prog_ac_ct_RANLIB="ranlib"
5829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5830 break 2
5832 done
5833 done
5837 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5838 if test -n "$ac_ct_RANLIB"; then
5839 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5840 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5841 else
5842 echo "$as_me:$LINENO: result: no" >&5
5843 echo "${ECHO_T}no" >&6
5846 if test "x$ac_ct_RANLIB" = x; then
5847 RANLIB=":"
5848 else
5849 if test "$build" != "$host"; then
5850 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5851 whose name does not start with the host triplet. If you think this
5852 configuration is useful to you, please write to autoconf@gnu.org." >&5
5853 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5854 whose name does not start with the host triplet. If you think this
5855 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5857 RANLIB=$ac_ct_RANLIB
5859 else
5860 RANLIB="$ac_cv_prog_RANLIB"
5863 ac_aux_dir=
5864 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
5865 if test -f $ac_dir/install-sh; then
5866 ac_aux_dir=$ac_dir
5867 ac_install_sh="$ac_aux_dir/install-sh -c"
5868 break
5869 elif test -f $ac_dir/install.sh; then
5870 ac_aux_dir=$ac_dir
5871 ac_install_sh="$ac_aux_dir/install.sh -c"
5872 break
5873 elif test -f $ac_dir/shtool; then
5874 ac_aux_dir=$ac_dir
5875 ac_install_sh="$ac_aux_dir/shtool install -c"
5876 break
5878 done
5879 if test -z "$ac_aux_dir"; then
5880 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
5881 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
5882 { (exit 1); exit 1; }; }
5884 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
5885 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
5886 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
5889 ac_dir=`cd $ac_aux_dir; pwd`
5890 ac_install_sh="$ac_dir/install-sh -c"
5891 for ac_prog in install-info
5893 # Extract the first word of "$ac_prog", so it can be a program name with args.
5894 set dummy $ac_prog; ac_word=$2
5895 echo "$as_me:$LINENO: checking for $ac_word" >&5
5896 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5897 if test "${ac_cv_prog_INSTALL_INFO+set}" = set; then
5898 echo $ECHO_N "(cached) $ECHO_C" >&6
5899 else
5900 if test -n "$INSTALL_INFO"; then
5901 ac_cv_prog_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test.
5902 else
5903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5904 for as_dir in $PATH
5906 IFS=$as_save_IFS
5907 test -z "$as_dir" && as_dir=.
5908 for ac_exec_ext in '' $ac_executable_extensions; do
5909 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5910 ac_cv_prog_INSTALL_INFO="$ac_prog"
5911 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5912 break 2
5914 done
5915 done
5919 INSTALL_INFO=$ac_cv_prog_INSTALL_INFO
5920 if test -n "$INSTALL_INFO"; then
5921 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5922 echo "${ECHO_T}$INSTALL_INFO" >&6
5923 else
5924 echo "$as_me:$LINENO: result: no" >&5
5925 echo "${ECHO_T}no" >&6
5928 test -n "$INSTALL_INFO" && break
5929 done
5930 test -n "$INSTALL_INFO" || INSTALL_INFO=":"
5932 # Find a good install program. We prefer a C program (faster),
5933 # so one script is as good as another. But avoid the broken or
5934 # incompatible versions:
5935 # SysV /etc/install, /usr/sbin/install
5936 # SunOS /usr/etc/install
5937 # IRIX /sbin/install
5938 # AIX /bin/install
5939 # AmigaOS /C/install, which installs bootblocks on floppy discs
5940 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5941 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5942 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5943 # OS/2's system install, which has a completely different semantic
5944 # ./install, which can be erroneously created by make from ./install.sh.
5945 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5946 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5947 if test -z "$INSTALL"; then
5948 if test "${ac_cv_path_install+set}" = set; then
5949 echo $ECHO_N "(cached) $ECHO_C" >&6
5950 else
5951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5952 for as_dir in $PATH
5954 IFS=$as_save_IFS
5955 test -z "$as_dir" && as_dir=.
5956 # Account for people who put trailing slashes in PATH elements.
5957 case $as_dir/ in
5958 ./ | .// | /cC/* | \
5959 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5960 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5961 /usr/ucb/* ) ;;
5963 # OSF1 and SCO ODT 3.0 have their own names for install.
5964 # Don't use installbsd from OSF since it installs stuff as root
5965 # by default.
5966 for ac_prog in ginstall scoinst install; do
5967 for ac_exec_ext in '' $ac_executable_extensions; do
5968 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5969 if test $ac_prog = install &&
5970 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5971 # AIX install. It has an incompatible calling convention.
5973 elif test $ac_prog = install &&
5974 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5975 # program-specific install script used by HP pwplus--don't use.
5977 else
5978 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5979 break 3
5982 done
5983 done
5985 esac
5986 done
5990 if test "${ac_cv_path_install+set}" = set; then
5991 INSTALL=$ac_cv_path_install
5992 else
5993 # As a last resort, use the slow shell script. Don't cache a
5994 # value for INSTALL within a source directory, because that will
5995 # break other packages using the cache if that directory is
5996 # removed, or if the value is a relative name.
5997 INSTALL=$ac_install_sh
6000 echo "$as_me:$LINENO: result: $INSTALL" >&5
6001 echo "${ECHO_T}$INSTALL" >&6
6003 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6004 # It thinks the first close brace ends the variable substitution.
6005 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6007 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6009 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6011 echo "$as_me:$LINENO: checking whether ln -s works" >&5
6012 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
6013 LN_S=$as_ln_s
6014 if test "$LN_S" = "ln -s"; then
6015 echo "$as_me:$LINENO: result: yes" >&5
6016 echo "${ECHO_T}yes" >&6
6017 else
6018 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6019 echo "${ECHO_T}no, using $LN_S" >&6
6023 # use a dummy substitution if no csh hack is necessary to avoid errors
6024 # with non-GNU sed programs
6025 echo "$as_me:$LINENO: checking for csh hash hack" >&5
6026 echo $ECHO_N "checking for csh hash hack... $ECHO_C" >&6
6028 cat <<EOF >conftest.sh
6029 #! /bin/sh
6030 true || exit 0
6031 export PATH || exit 0
6032 exit 1
6035 chmod +x conftest.sh
6036 if echo ./conftest.sh | (csh >/dev/null 2>&1) >/dev/null 2>&1; then
6037 echo "$as_me:$LINENO: result: yes" >&5
6038 echo "${ECHO_T}yes" >&6
6039 SH_SCRIPT_SED_CMD='1s/.*/:/'
6040 else
6041 echo "$as_me:$LINENO: result: no" >&5
6042 echo "${ECHO_T}no" >&6
6043 SH_SCRIPT_SED_CMD='1s/a/a/'
6045 rm -f conftest.sh
6048 # checks for headers
6049 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6050 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6051 if test "${ac_cv_header_stdc+set}" = set; then
6052 echo $ECHO_N "(cached) $ECHO_C" >&6
6053 else
6054 cat >conftest.$ac_ext <<_ACEOF
6055 /* confdefs.h. */
6056 _ACEOF
6057 cat confdefs.h >>conftest.$ac_ext
6058 cat >>conftest.$ac_ext <<_ACEOF
6059 /* end confdefs.h. */
6060 #include <stdlib.h>
6061 #include <stdarg.h>
6062 #include <string.h>
6063 #include <float.h>
6066 main ()
6070 return 0;
6072 _ACEOF
6073 rm -f conftest.$ac_objext
6074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6075 (eval $ac_compile) 2>conftest.er1
6076 ac_status=$?
6077 grep -v '^ *+' conftest.er1 >conftest.err
6078 rm -f conftest.er1
6079 cat conftest.err >&5
6080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6081 (exit $ac_status); } &&
6082 { ac_try='test -z "$ac_c_werror_flag"
6083 || test ! -s conftest.err'
6084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6085 (eval $ac_try) 2>&5
6086 ac_status=$?
6087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6088 (exit $ac_status); }; } &&
6089 { ac_try='test -s conftest.$ac_objext'
6090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6091 (eval $ac_try) 2>&5
6092 ac_status=$?
6093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6094 (exit $ac_status); }; }; then
6095 ac_cv_header_stdc=yes
6096 else
6097 echo "$as_me: failed program was:" >&5
6098 sed 's/^/| /' conftest.$ac_ext >&5
6100 ac_cv_header_stdc=no
6102 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6104 if test $ac_cv_header_stdc = yes; then
6105 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6106 cat >conftest.$ac_ext <<_ACEOF
6107 /* confdefs.h. */
6108 _ACEOF
6109 cat confdefs.h >>conftest.$ac_ext
6110 cat >>conftest.$ac_ext <<_ACEOF
6111 /* end confdefs.h. */
6112 #include <string.h>
6114 _ACEOF
6115 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6116 $EGREP "memchr" >/dev/null 2>&1; then
6118 else
6119 ac_cv_header_stdc=no
6121 rm -f conftest*
6125 if test $ac_cv_header_stdc = yes; then
6126 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6127 cat >conftest.$ac_ext <<_ACEOF
6128 /* confdefs.h. */
6129 _ACEOF
6130 cat confdefs.h >>conftest.$ac_ext
6131 cat >>conftest.$ac_ext <<_ACEOF
6132 /* end confdefs.h. */
6133 #include <stdlib.h>
6135 _ACEOF
6136 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6137 $EGREP "free" >/dev/null 2>&1; then
6139 else
6140 ac_cv_header_stdc=no
6142 rm -f conftest*
6146 if test $ac_cv_header_stdc = yes; then
6147 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6148 if test "$cross_compiling" = yes; then
6150 else
6151 cat >conftest.$ac_ext <<_ACEOF
6152 /* confdefs.h. */
6153 _ACEOF
6154 cat confdefs.h >>conftest.$ac_ext
6155 cat >>conftest.$ac_ext <<_ACEOF
6156 /* end confdefs.h. */
6157 #include <ctype.h>
6158 #include <stdlib.h>
6159 #if ((' ' & 0x0FF) == 0x020)
6160 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6161 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6162 #else
6163 # define ISLOWER(c) \
6164 (('a' <= (c) && (c) <= 'i') \
6165 || ('j' <= (c) && (c) <= 'r') \
6166 || ('s' <= (c) && (c) <= 'z'))
6167 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6168 #endif
6170 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6172 main ()
6174 int i;
6175 for (i = 0; i < 256; i++)
6176 if (XOR (islower (i), ISLOWER (i))
6177 || toupper (i) != TOUPPER (i))
6178 exit (2);
6179 exit (0);
6181 _ACEOF
6182 rm -f conftest$ac_exeext
6183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6184 (eval $ac_link) 2>&5
6185 ac_status=$?
6186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6187 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6189 (eval $ac_try) 2>&5
6190 ac_status=$?
6191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6192 (exit $ac_status); }; }; then
6194 else
6195 echo "$as_me: program exited with status $ac_status" >&5
6196 echo "$as_me: failed program was:" >&5
6197 sed 's/^/| /' conftest.$ac_ext >&5
6199 ( exit $ac_status )
6200 ac_cv_header_stdc=no
6202 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6206 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6207 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6208 if test $ac_cv_header_stdc = yes; then
6210 cat >>confdefs.h <<\_ACEOF
6211 #define STDC_HEADERS 1
6212 _ACEOF
6216 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6226 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6227 inttypes.h stdint.h unistd.h
6229 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6230 echo "$as_me:$LINENO: checking for $ac_header" >&5
6231 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6232 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6233 echo $ECHO_N "(cached) $ECHO_C" >&6
6234 else
6235 cat >conftest.$ac_ext <<_ACEOF
6236 /* confdefs.h. */
6237 _ACEOF
6238 cat confdefs.h >>conftest.$ac_ext
6239 cat >>conftest.$ac_ext <<_ACEOF
6240 /* end confdefs.h. */
6241 $ac_includes_default
6243 #include <$ac_header>
6244 _ACEOF
6245 rm -f conftest.$ac_objext
6246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6247 (eval $ac_compile) 2>conftest.er1
6248 ac_status=$?
6249 grep -v '^ *+' conftest.er1 >conftest.err
6250 rm -f conftest.er1
6251 cat conftest.err >&5
6252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6253 (exit $ac_status); } &&
6254 { ac_try='test -z "$ac_c_werror_flag"
6255 || test ! -s conftest.err'
6256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6257 (eval $ac_try) 2>&5
6258 ac_status=$?
6259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6260 (exit $ac_status); }; } &&
6261 { ac_try='test -s conftest.$ac_objext'
6262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6263 (eval $ac_try) 2>&5
6264 ac_status=$?
6265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6266 (exit $ac_status); }; }; then
6267 eval "$as_ac_Header=yes"
6268 else
6269 echo "$as_me: failed program was:" >&5
6270 sed 's/^/| /' conftest.$ac_ext >&5
6272 eval "$as_ac_Header=no"
6274 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6276 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6277 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6278 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6279 cat >>confdefs.h <<_ACEOF
6280 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6281 _ACEOF
6285 done
6300 for ac_header in stddef.h stdlib.h unistd.h dirent.h limits.h sys/dir.h \
6301 string.h strings.h math.h sys/time.h direct.h process.h
6303 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6304 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6305 echo "$as_me:$LINENO: checking for $ac_header" >&5
6306 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6307 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6308 echo $ECHO_N "(cached) $ECHO_C" >&6
6310 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6311 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6312 else
6313 # Is the header compilable?
6314 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6315 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6316 cat >conftest.$ac_ext <<_ACEOF
6317 /* confdefs.h. */
6318 _ACEOF
6319 cat confdefs.h >>conftest.$ac_ext
6320 cat >>conftest.$ac_ext <<_ACEOF
6321 /* end confdefs.h. */
6322 $ac_includes_default
6323 #include <$ac_header>
6324 _ACEOF
6325 rm -f conftest.$ac_objext
6326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6327 (eval $ac_compile) 2>conftest.er1
6328 ac_status=$?
6329 grep -v '^ *+' conftest.er1 >conftest.err
6330 rm -f conftest.er1
6331 cat conftest.err >&5
6332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6333 (exit $ac_status); } &&
6334 { ac_try='test -z "$ac_c_werror_flag"
6335 || test ! -s conftest.err'
6336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6337 (eval $ac_try) 2>&5
6338 ac_status=$?
6339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6340 (exit $ac_status); }; } &&
6341 { ac_try='test -s conftest.$ac_objext'
6342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6343 (eval $ac_try) 2>&5
6344 ac_status=$?
6345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6346 (exit $ac_status); }; }; then
6347 ac_header_compiler=yes
6348 else
6349 echo "$as_me: failed program was:" >&5
6350 sed 's/^/| /' conftest.$ac_ext >&5
6352 ac_header_compiler=no
6354 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6355 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6356 echo "${ECHO_T}$ac_header_compiler" >&6
6358 # Is the header present?
6359 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6360 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6361 cat >conftest.$ac_ext <<_ACEOF
6362 /* confdefs.h. */
6363 _ACEOF
6364 cat confdefs.h >>conftest.$ac_ext
6365 cat >>conftest.$ac_ext <<_ACEOF
6366 /* end confdefs.h. */
6367 #include <$ac_header>
6368 _ACEOF
6369 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6370 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6371 ac_status=$?
6372 grep -v '^ *+' conftest.er1 >conftest.err
6373 rm -f conftest.er1
6374 cat conftest.err >&5
6375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6376 (exit $ac_status); } >/dev/null; then
6377 if test -s conftest.err; then
6378 ac_cpp_err=$ac_c_preproc_warn_flag
6379 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6380 else
6381 ac_cpp_err=
6383 else
6384 ac_cpp_err=yes
6386 if test -z "$ac_cpp_err"; then
6387 ac_header_preproc=yes
6388 else
6389 echo "$as_me: failed program was:" >&5
6390 sed 's/^/| /' conftest.$ac_ext >&5
6392 ac_header_preproc=no
6394 rm -f conftest.err conftest.$ac_ext
6395 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6396 echo "${ECHO_T}$ac_header_preproc" >&6
6398 # So? What about this header?
6399 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6400 yes:no: )
6401 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6402 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6403 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6404 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6405 ac_header_preproc=yes
6407 no:yes:* )
6408 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6409 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6410 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6411 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6412 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6413 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6414 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6415 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6416 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6417 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6418 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6419 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6421 cat <<\_ASBOX
6422 ## ------------------------------------------ ##
6423 ## Report this to the AC_PACKAGE_NAME lists. ##
6424 ## ------------------------------------------ ##
6425 _ASBOX
6427 sed "s/^/$as_me: WARNING: /" >&2
6429 esac
6430 echo "$as_me:$LINENO: checking for $ac_header" >&5
6431 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6432 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6433 echo $ECHO_N "(cached) $ECHO_C" >&6
6434 else
6435 eval "$as_ac_Header=\$ac_header_preproc"
6437 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6438 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6441 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6442 cat >>confdefs.h <<_ACEOF
6443 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6444 _ACEOF
6448 done
6450 echo "$as_me:$LINENO: checking for ISC 3.x or 4.x" >&5
6451 echo $ECHO_N "checking for ISC 3.x or 4.x... $ECHO_C" >&6
6452 if grep '[34]\.' /usr/options/cb.name >/dev/null 2>&1
6453 then
6454 echo "$as_me:$LINENO: result: yes" >&5
6455 echo "${ECHO_T}yes" >&6
6457 cat >>confdefs.h <<\_ACEOF
6458 #define _SYSV3 1
6459 _ACEOF
6461 else
6462 echo "$as_me:$LINENO: result: no" >&5
6463 echo "${ECHO_T}no" >&6
6465 echo "$as_me:$LINENO: checking whether -D_POSIX_SOURCE is necessary" >&5
6466 echo $ECHO_N "checking whether -D_POSIX_SOURCE is necessary... $ECHO_C" >&6
6467 ac_ext=cc
6468 ac_cpp='$CXXCPP $CPPFLAGS'
6469 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6470 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6471 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6473 cat >conftest.$ac_ext <<_ACEOF
6475 /* confdefs.h. */
6476 _ACEOF
6477 cat confdefs.h >>conftest.$ac_ext
6478 cat >>conftest.$ac_ext <<_ACEOF
6479 /* end confdefs.h. */
6482 #include <stdio.h>
6483 extern "C" { void fileno(int); }
6487 main ()
6491 return 0;
6494 _ACEOF
6495 rm -f conftest.$ac_objext
6496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6497 (eval $ac_compile) 2>conftest.er1
6498 ac_status=$?
6499 grep -v '^ *+' conftest.er1 >conftest.err
6500 rm -f conftest.er1
6501 cat conftest.err >&5
6502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6503 (exit $ac_status); } &&
6504 { ac_try='test -z "$ac_cxx_werror_flag"
6505 || test ! -s conftest.err'
6506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6507 (eval $ac_try) 2>&5
6508 ac_status=$?
6509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6510 (exit $ac_status); }; } &&
6511 { ac_try='test -s conftest.$ac_objext'
6512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6513 (eval $ac_try) 2>&5
6514 ac_status=$?
6515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6516 (exit $ac_status); }; }; then
6517 echo "$as_me:$LINENO: result: yes" >&5
6518 echo "${ECHO_T}yes" >&6
6520 cat >>confdefs.h <<\_ACEOF
6521 #define _POSIX_SOURCE 1
6522 _ACEOF
6524 else
6525 echo "$as_me: failed program was:" >&5
6526 sed 's/^/| /' conftest.$ac_ext >&5
6528 echo "$as_me:$LINENO: result: no" >&5
6529 echo "${ECHO_T}no" >&6
6531 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6532 ac_ext=c
6533 ac_cpp='$CPP $CPPFLAGS'
6534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6539 # checks for header stuff
6540 ac_ext=cc
6541 ac_cpp='$CXXCPP $CPPFLAGS'
6542 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6543 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6544 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6546 echo "$as_me:$LINENO: checking for return type of srand" >&5
6547 echo $ECHO_N "checking for return type of srand... $ECHO_C" >&6
6548 cat >conftest.$ac_ext <<_ACEOF
6550 /* confdefs.h. */
6551 _ACEOF
6552 cat confdefs.h >>conftest.$ac_ext
6553 cat >>conftest.$ac_ext <<_ACEOF
6554 /* end confdefs.h. */
6557 #include <stdlib.h>
6558 extern "C" { void srand(unsigned int); }
6562 main ()
6566 return 0;
6569 _ACEOF
6570 rm -f conftest.$ac_objext
6571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6572 (eval $ac_compile) 2>conftest.er1
6573 ac_status=$?
6574 grep -v '^ *+' conftest.er1 >conftest.err
6575 rm -f conftest.er1
6576 cat conftest.err >&5
6577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6578 (exit $ac_status); } &&
6579 { ac_try='test -z "$ac_cxx_werror_flag"
6580 || test ! -s conftest.err'
6581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6582 (eval $ac_try) 2>&5
6583 ac_status=$?
6584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6585 (exit $ac_status); }; } &&
6586 { ac_try='test -s conftest.$ac_objext'
6587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6588 (eval $ac_try) 2>&5
6589 ac_status=$?
6590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6591 (exit $ac_status); }; }; then
6592 echo "$as_me:$LINENO: result: void" >&5
6593 echo "${ECHO_T}void" >&6
6595 cat >>confdefs.h <<\_ACEOF
6596 #define RET_TYPE_SRAND_IS_VOID 1
6597 _ACEOF
6599 else
6600 echo "$as_me: failed program was:" >&5
6601 sed 's/^/| /' conftest.$ac_ext >&5
6603 echo "$as_me:$LINENO: result: int" >&5
6604 echo "${ECHO_T}int" >&6
6606 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6607 ac_ext=c
6608 ac_cpp='$CPP $CPPFLAGS'
6609 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6610 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6611 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6613 echo "$as_me:$LINENO: checking whether gettimeofday must be declared" >&5
6614 echo $ECHO_N "checking whether gettimeofday must be declared... $ECHO_C" >&6
6615 ac_ext=cc
6616 ac_cpp='$CXXCPP $CPPFLAGS'
6617 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6618 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6619 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6621 if test "${groff_cv_decl_needed_gettimeofday+set}" = set; then
6622 echo $ECHO_N "(cached) $ECHO_C" >&6
6623 else
6624 cat >conftest.$ac_ext <<_ACEOF
6626 /* confdefs.h. */
6627 _ACEOF
6628 cat confdefs.h >>conftest.$ac_ext
6629 cat >>conftest.$ac_ext <<_ACEOF
6630 /* end confdefs.h. */
6633 #include <stdio.h>
6634 #ifdef HAVE_STRING_H
6635 #include <string.h>
6636 #endif
6637 #ifdef HAVE_STRINGS_H
6638 #include <strings.h>
6639 #endif
6640 #ifdef HAVE_STDLIB_H
6641 #include <stdlib.h>
6642 #endif
6643 #ifdef HAVE_SYS_TIME_H
6644 #include <sys/time.h>
6645 #endif
6646 #ifdef HAVE_UNISTD_H
6647 #include <unistd.h>
6648 #endif
6649 #ifdef HAVE_MATH_H
6650 #include <math.h>
6651 #endif
6655 main ()
6659 #ifndef gettimeofday
6660 char *p = (char *) gettimeofday;
6661 #endif
6665 return 0;
6668 _ACEOF
6669 rm -f conftest.$ac_objext
6670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6671 (eval $ac_compile) 2>conftest.er1
6672 ac_status=$?
6673 grep -v '^ *+' conftest.er1 >conftest.err
6674 rm -f conftest.er1
6675 cat conftest.err >&5
6676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6677 (exit $ac_status); } &&
6678 { ac_try='test -z "$ac_cxx_werror_flag"
6679 || test ! -s conftest.err'
6680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6681 (eval $ac_try) 2>&5
6682 ac_status=$?
6683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6684 (exit $ac_status); }; } &&
6685 { ac_try='test -s conftest.$ac_objext'
6686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6687 (eval $ac_try) 2>&5
6688 ac_status=$?
6689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6690 (exit $ac_status); }; }; then
6691 groff_cv_decl_needed_gettimeofday=no
6692 else
6693 echo "$as_me: failed program was:" >&5
6694 sed 's/^/| /' conftest.$ac_ext >&5
6696 groff_cv_decl_needed_gettimeofday=yes
6698 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6701 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_gettimeofday" >&5
6702 echo "${ECHO_T}$groff_cv_decl_needed_gettimeofday" >&6
6703 if test $groff_cv_decl_needed_gettimeofday = yes; then
6705 cat >>confdefs.h <<\_ACEOF
6706 #define NEED_DECLARATION_GETTIMEOFDAY 1
6707 _ACEOF
6710 ac_ext=c
6711 ac_cpp='$CPP $CPPFLAGS'
6712 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6713 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6714 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6716 echo "$as_me:$LINENO: checking whether hypot must be declared" >&5
6717 echo $ECHO_N "checking whether hypot must be declared... $ECHO_C" >&6
6718 ac_ext=cc
6719 ac_cpp='$CXXCPP $CPPFLAGS'
6720 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6721 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6722 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6724 if test "${groff_cv_decl_needed_hypot+set}" = set; then
6725 echo $ECHO_N "(cached) $ECHO_C" >&6
6726 else
6727 cat >conftest.$ac_ext <<_ACEOF
6729 /* confdefs.h. */
6730 _ACEOF
6731 cat confdefs.h >>conftest.$ac_ext
6732 cat >>conftest.$ac_ext <<_ACEOF
6733 /* end confdefs.h. */
6736 #include <stdio.h>
6737 #ifdef HAVE_STRING_H
6738 #include <string.h>
6739 #endif
6740 #ifdef HAVE_STRINGS_H
6741 #include <strings.h>
6742 #endif
6743 #ifdef HAVE_STDLIB_H
6744 #include <stdlib.h>
6745 #endif
6746 #ifdef HAVE_SYS_TIME_H
6747 #include <sys/time.h>
6748 #endif
6749 #ifdef HAVE_UNISTD_H
6750 #include <unistd.h>
6751 #endif
6752 #ifdef HAVE_MATH_H
6753 #include <math.h>
6754 #endif
6758 main ()
6762 #ifndef hypot
6763 char *p = (char *) hypot;
6764 #endif
6768 return 0;
6771 _ACEOF
6772 rm -f conftest.$ac_objext
6773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6774 (eval $ac_compile) 2>conftest.er1
6775 ac_status=$?
6776 grep -v '^ *+' conftest.er1 >conftest.err
6777 rm -f conftest.er1
6778 cat conftest.err >&5
6779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6780 (exit $ac_status); } &&
6781 { ac_try='test -z "$ac_cxx_werror_flag"
6782 || test ! -s conftest.err'
6783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6784 (eval $ac_try) 2>&5
6785 ac_status=$?
6786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6787 (exit $ac_status); }; } &&
6788 { ac_try='test -s conftest.$ac_objext'
6789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6790 (eval $ac_try) 2>&5
6791 ac_status=$?
6792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6793 (exit $ac_status); }; }; then
6794 groff_cv_decl_needed_hypot=no
6795 else
6796 echo "$as_me: failed program was:" >&5
6797 sed 's/^/| /' conftest.$ac_ext >&5
6799 groff_cv_decl_needed_hypot=yes
6801 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6804 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_hypot" >&5
6805 echo "${ECHO_T}$groff_cv_decl_needed_hypot" >&6
6806 if test $groff_cv_decl_needed_hypot = yes; then
6808 cat >>confdefs.h <<\_ACEOF
6809 #define NEED_DECLARATION_HYPOT 1
6810 _ACEOF
6813 ac_ext=c
6814 ac_cpp='$CPP $CPPFLAGS'
6815 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6816 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6817 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6819 echo "$as_me:$LINENO: checking whether popen must be declared" >&5
6820 echo $ECHO_N "checking whether popen must be declared... $ECHO_C" >&6
6821 ac_ext=cc
6822 ac_cpp='$CXXCPP $CPPFLAGS'
6823 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6824 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6825 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6827 if test "${groff_cv_decl_needed_popen+set}" = set; then
6828 echo $ECHO_N "(cached) $ECHO_C" >&6
6829 else
6830 cat >conftest.$ac_ext <<_ACEOF
6832 /* confdefs.h. */
6833 _ACEOF
6834 cat confdefs.h >>conftest.$ac_ext
6835 cat >>conftest.$ac_ext <<_ACEOF
6836 /* end confdefs.h. */
6839 #include <stdio.h>
6840 #ifdef HAVE_STRING_H
6841 #include <string.h>
6842 #endif
6843 #ifdef HAVE_STRINGS_H
6844 #include <strings.h>
6845 #endif
6846 #ifdef HAVE_STDLIB_H
6847 #include <stdlib.h>
6848 #endif
6849 #ifdef HAVE_SYS_TIME_H
6850 #include <sys/time.h>
6851 #endif
6852 #ifdef HAVE_UNISTD_H
6853 #include <unistd.h>
6854 #endif
6855 #ifdef HAVE_MATH_H
6856 #include <math.h>
6857 #endif
6861 main ()
6865 #ifndef popen
6866 char *p = (char *) popen;
6867 #endif
6871 return 0;
6874 _ACEOF
6875 rm -f conftest.$ac_objext
6876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6877 (eval $ac_compile) 2>conftest.er1
6878 ac_status=$?
6879 grep -v '^ *+' conftest.er1 >conftest.err
6880 rm -f conftest.er1
6881 cat conftest.err >&5
6882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6883 (exit $ac_status); } &&
6884 { ac_try='test -z "$ac_cxx_werror_flag"
6885 || test ! -s conftest.err'
6886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6887 (eval $ac_try) 2>&5
6888 ac_status=$?
6889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6890 (exit $ac_status); }; } &&
6891 { ac_try='test -s conftest.$ac_objext'
6892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6893 (eval $ac_try) 2>&5
6894 ac_status=$?
6895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6896 (exit $ac_status); }; }; then
6897 groff_cv_decl_needed_popen=no
6898 else
6899 echo "$as_me: failed program was:" >&5
6900 sed 's/^/| /' conftest.$ac_ext >&5
6902 groff_cv_decl_needed_popen=yes
6904 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6907 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_popen" >&5
6908 echo "${ECHO_T}$groff_cv_decl_needed_popen" >&6
6909 if test $groff_cv_decl_needed_popen = yes; then
6911 cat >>confdefs.h <<\_ACEOF
6912 #define NEED_DECLARATION_POPEN 1
6913 _ACEOF
6916 ac_ext=c
6917 ac_cpp='$CPP $CPPFLAGS'
6918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6922 echo "$as_me:$LINENO: checking whether pclose must be declared" >&5
6923 echo $ECHO_N "checking whether pclose must be declared... $ECHO_C" >&6
6924 ac_ext=cc
6925 ac_cpp='$CXXCPP $CPPFLAGS'
6926 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6927 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6928 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6930 if test "${groff_cv_decl_needed_pclose+set}" = set; then
6931 echo $ECHO_N "(cached) $ECHO_C" >&6
6932 else
6933 cat >conftest.$ac_ext <<_ACEOF
6935 /* confdefs.h. */
6936 _ACEOF
6937 cat confdefs.h >>conftest.$ac_ext
6938 cat >>conftest.$ac_ext <<_ACEOF
6939 /* end confdefs.h. */
6942 #include <stdio.h>
6943 #ifdef HAVE_STRING_H
6944 #include <string.h>
6945 #endif
6946 #ifdef HAVE_STRINGS_H
6947 #include <strings.h>
6948 #endif
6949 #ifdef HAVE_STDLIB_H
6950 #include <stdlib.h>
6951 #endif
6952 #ifdef HAVE_SYS_TIME_H
6953 #include <sys/time.h>
6954 #endif
6955 #ifdef HAVE_UNISTD_H
6956 #include <unistd.h>
6957 #endif
6958 #ifdef HAVE_MATH_H
6959 #include <math.h>
6960 #endif
6964 main ()
6968 #ifndef pclose
6969 char *p = (char *) pclose;
6970 #endif
6974 return 0;
6977 _ACEOF
6978 rm -f conftest.$ac_objext
6979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6980 (eval $ac_compile) 2>conftest.er1
6981 ac_status=$?
6982 grep -v '^ *+' conftest.er1 >conftest.err
6983 rm -f conftest.er1
6984 cat conftest.err >&5
6985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6986 (exit $ac_status); } &&
6987 { ac_try='test -z "$ac_cxx_werror_flag"
6988 || test ! -s conftest.err'
6989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6990 (eval $ac_try) 2>&5
6991 ac_status=$?
6992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6993 (exit $ac_status); }; } &&
6994 { ac_try='test -s conftest.$ac_objext'
6995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6996 (eval $ac_try) 2>&5
6997 ac_status=$?
6998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6999 (exit $ac_status); }; }; then
7000 groff_cv_decl_needed_pclose=no
7001 else
7002 echo "$as_me: failed program was:" >&5
7003 sed 's/^/| /' conftest.$ac_ext >&5
7005 groff_cv_decl_needed_pclose=yes
7007 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7010 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_pclose" >&5
7011 echo "${ECHO_T}$groff_cv_decl_needed_pclose" >&6
7012 if test $groff_cv_decl_needed_pclose = yes; then
7014 cat >>confdefs.h <<\_ACEOF
7015 #define NEED_DECLARATION_PCLOSE 1
7016 _ACEOF
7019 ac_ext=c
7020 ac_cpp='$CPP $CPPFLAGS'
7021 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7022 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7023 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7025 echo "$as_me:$LINENO: checking whether putenv must be declared" >&5
7026 echo $ECHO_N "checking whether putenv must be declared... $ECHO_C" >&6
7027 ac_ext=cc
7028 ac_cpp='$CXXCPP $CPPFLAGS'
7029 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7030 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7031 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7033 if test "${groff_cv_decl_needed_putenv+set}" = set; then
7034 echo $ECHO_N "(cached) $ECHO_C" >&6
7035 else
7036 cat >conftest.$ac_ext <<_ACEOF
7038 /* confdefs.h. */
7039 _ACEOF
7040 cat confdefs.h >>conftest.$ac_ext
7041 cat >>conftest.$ac_ext <<_ACEOF
7042 /* end confdefs.h. */
7045 #include <stdio.h>
7046 #ifdef HAVE_STRING_H
7047 #include <string.h>
7048 #endif
7049 #ifdef HAVE_STRINGS_H
7050 #include <strings.h>
7051 #endif
7052 #ifdef HAVE_STDLIB_H
7053 #include <stdlib.h>
7054 #endif
7055 #ifdef HAVE_SYS_TIME_H
7056 #include <sys/time.h>
7057 #endif
7058 #ifdef HAVE_UNISTD_H
7059 #include <unistd.h>
7060 #endif
7061 #ifdef HAVE_MATH_H
7062 #include <math.h>
7063 #endif
7067 main ()
7071 #ifndef putenv
7072 char *p = (char *) putenv;
7073 #endif
7077 return 0;
7080 _ACEOF
7081 rm -f conftest.$ac_objext
7082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7083 (eval $ac_compile) 2>conftest.er1
7084 ac_status=$?
7085 grep -v '^ *+' conftest.er1 >conftest.err
7086 rm -f conftest.er1
7087 cat conftest.err >&5
7088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7089 (exit $ac_status); } &&
7090 { ac_try='test -z "$ac_cxx_werror_flag"
7091 || test ! -s conftest.err'
7092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7093 (eval $ac_try) 2>&5
7094 ac_status=$?
7095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7096 (exit $ac_status); }; } &&
7097 { ac_try='test -s conftest.$ac_objext'
7098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7099 (eval $ac_try) 2>&5
7100 ac_status=$?
7101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7102 (exit $ac_status); }; }; then
7103 groff_cv_decl_needed_putenv=no
7104 else
7105 echo "$as_me: failed program was:" >&5
7106 sed 's/^/| /' conftest.$ac_ext >&5
7108 groff_cv_decl_needed_putenv=yes
7110 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7113 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_putenv" >&5
7114 echo "${ECHO_T}$groff_cv_decl_needed_putenv" >&6
7115 if test $groff_cv_decl_needed_putenv = yes; then
7117 cat >>confdefs.h <<\_ACEOF
7118 #define NEED_DECLARATION_PUTENV 1
7119 _ACEOF
7122 ac_ext=c
7123 ac_cpp='$CPP $CPPFLAGS'
7124 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7125 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7126 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7128 echo "$as_me:$LINENO: checking whether rand must be declared" >&5
7129 echo $ECHO_N "checking whether rand must be declared... $ECHO_C" >&6
7130 ac_ext=cc
7131 ac_cpp='$CXXCPP $CPPFLAGS'
7132 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7133 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7134 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7136 if test "${groff_cv_decl_needed_rand+set}" = set; then
7137 echo $ECHO_N "(cached) $ECHO_C" >&6
7138 else
7139 cat >conftest.$ac_ext <<_ACEOF
7141 /* confdefs.h. */
7142 _ACEOF
7143 cat confdefs.h >>conftest.$ac_ext
7144 cat >>conftest.$ac_ext <<_ACEOF
7145 /* end confdefs.h. */
7148 #include <stdio.h>
7149 #ifdef HAVE_STRING_H
7150 #include <string.h>
7151 #endif
7152 #ifdef HAVE_STRINGS_H
7153 #include <strings.h>
7154 #endif
7155 #ifdef HAVE_STDLIB_H
7156 #include <stdlib.h>
7157 #endif
7158 #ifdef HAVE_SYS_TIME_H
7159 #include <sys/time.h>
7160 #endif
7161 #ifdef HAVE_UNISTD_H
7162 #include <unistd.h>
7163 #endif
7164 #ifdef HAVE_MATH_H
7165 #include <math.h>
7166 #endif
7170 main ()
7174 #ifndef rand
7175 char *p = (char *) rand;
7176 #endif
7180 return 0;
7183 _ACEOF
7184 rm -f conftest.$ac_objext
7185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7186 (eval $ac_compile) 2>conftest.er1
7187 ac_status=$?
7188 grep -v '^ *+' conftest.er1 >conftest.err
7189 rm -f conftest.er1
7190 cat conftest.err >&5
7191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7192 (exit $ac_status); } &&
7193 { ac_try='test -z "$ac_cxx_werror_flag"
7194 || test ! -s conftest.err'
7195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7196 (eval $ac_try) 2>&5
7197 ac_status=$?
7198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7199 (exit $ac_status); }; } &&
7200 { ac_try='test -s conftest.$ac_objext'
7201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7202 (eval $ac_try) 2>&5
7203 ac_status=$?
7204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7205 (exit $ac_status); }; }; then
7206 groff_cv_decl_needed_rand=no
7207 else
7208 echo "$as_me: failed program was:" >&5
7209 sed 's/^/| /' conftest.$ac_ext >&5
7211 groff_cv_decl_needed_rand=yes
7213 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7216 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_rand" >&5
7217 echo "${ECHO_T}$groff_cv_decl_needed_rand" >&6
7218 if test $groff_cv_decl_needed_rand = yes; then
7220 cat >>confdefs.h <<\_ACEOF
7221 #define NEED_DECLARATION_RAND 1
7222 _ACEOF
7225 ac_ext=c
7226 ac_cpp='$CPP $CPPFLAGS'
7227 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7228 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7229 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7231 echo "$as_me:$LINENO: checking whether snprintf must be declared" >&5
7232 echo $ECHO_N "checking whether snprintf must be declared... $ECHO_C" >&6
7233 ac_ext=cc
7234 ac_cpp='$CXXCPP $CPPFLAGS'
7235 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7236 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7237 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7239 if test "${groff_cv_decl_needed_snprintf+set}" = set; then
7240 echo $ECHO_N "(cached) $ECHO_C" >&6
7241 else
7242 cat >conftest.$ac_ext <<_ACEOF
7244 /* confdefs.h. */
7245 _ACEOF
7246 cat confdefs.h >>conftest.$ac_ext
7247 cat >>conftest.$ac_ext <<_ACEOF
7248 /* end confdefs.h. */
7251 #include <stdio.h>
7252 #ifdef HAVE_STRING_H
7253 #include <string.h>
7254 #endif
7255 #ifdef HAVE_STRINGS_H
7256 #include <strings.h>
7257 #endif
7258 #ifdef HAVE_STDLIB_H
7259 #include <stdlib.h>
7260 #endif
7261 #ifdef HAVE_SYS_TIME_H
7262 #include <sys/time.h>
7263 #endif
7264 #ifdef HAVE_UNISTD_H
7265 #include <unistd.h>
7266 #endif
7267 #ifdef HAVE_MATH_H
7268 #include <math.h>
7269 #endif
7273 main ()
7277 #ifndef snprintf
7278 char *p = (char *) snprintf;
7279 #endif
7283 return 0;
7286 _ACEOF
7287 rm -f conftest.$ac_objext
7288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7289 (eval $ac_compile) 2>conftest.er1
7290 ac_status=$?
7291 grep -v '^ *+' conftest.er1 >conftest.err
7292 rm -f conftest.er1
7293 cat conftest.err >&5
7294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7295 (exit $ac_status); } &&
7296 { ac_try='test -z "$ac_cxx_werror_flag"
7297 || test ! -s conftest.err'
7298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7299 (eval $ac_try) 2>&5
7300 ac_status=$?
7301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7302 (exit $ac_status); }; } &&
7303 { ac_try='test -s conftest.$ac_objext'
7304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7305 (eval $ac_try) 2>&5
7306 ac_status=$?
7307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7308 (exit $ac_status); }; }; then
7309 groff_cv_decl_needed_snprintf=no
7310 else
7311 echo "$as_me: failed program was:" >&5
7312 sed 's/^/| /' conftest.$ac_ext >&5
7314 groff_cv_decl_needed_snprintf=yes
7316 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7319 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_snprintf" >&5
7320 echo "${ECHO_T}$groff_cv_decl_needed_snprintf" >&6
7321 if test $groff_cv_decl_needed_snprintf = yes; then
7323 cat >>confdefs.h <<\_ACEOF
7324 #define NEED_DECLARATION_SNPRINTF 1
7325 _ACEOF
7328 ac_ext=c
7329 ac_cpp='$CPP $CPPFLAGS'
7330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7334 echo "$as_me:$LINENO: checking whether srand must be declared" >&5
7335 echo $ECHO_N "checking whether srand must be declared... $ECHO_C" >&6
7336 ac_ext=cc
7337 ac_cpp='$CXXCPP $CPPFLAGS'
7338 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7339 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7340 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7342 if test "${groff_cv_decl_needed_srand+set}" = set; then
7343 echo $ECHO_N "(cached) $ECHO_C" >&6
7344 else
7345 cat >conftest.$ac_ext <<_ACEOF
7347 /* confdefs.h. */
7348 _ACEOF
7349 cat confdefs.h >>conftest.$ac_ext
7350 cat >>conftest.$ac_ext <<_ACEOF
7351 /* end confdefs.h. */
7354 #include <stdio.h>
7355 #ifdef HAVE_STRING_H
7356 #include <string.h>
7357 #endif
7358 #ifdef HAVE_STRINGS_H
7359 #include <strings.h>
7360 #endif
7361 #ifdef HAVE_STDLIB_H
7362 #include <stdlib.h>
7363 #endif
7364 #ifdef HAVE_SYS_TIME_H
7365 #include <sys/time.h>
7366 #endif
7367 #ifdef HAVE_UNISTD_H
7368 #include <unistd.h>
7369 #endif
7370 #ifdef HAVE_MATH_H
7371 #include <math.h>
7372 #endif
7376 main ()
7380 #ifndef srand
7381 char *p = (char *) srand;
7382 #endif
7386 return 0;
7389 _ACEOF
7390 rm -f conftest.$ac_objext
7391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7392 (eval $ac_compile) 2>conftest.er1
7393 ac_status=$?
7394 grep -v '^ *+' conftest.er1 >conftest.err
7395 rm -f conftest.er1
7396 cat conftest.err >&5
7397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7398 (exit $ac_status); } &&
7399 { ac_try='test -z "$ac_cxx_werror_flag"
7400 || test ! -s conftest.err'
7401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7402 (eval $ac_try) 2>&5
7403 ac_status=$?
7404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7405 (exit $ac_status); }; } &&
7406 { ac_try='test -s conftest.$ac_objext'
7407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7408 (eval $ac_try) 2>&5
7409 ac_status=$?
7410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7411 (exit $ac_status); }; }; then
7412 groff_cv_decl_needed_srand=no
7413 else
7414 echo "$as_me: failed program was:" >&5
7415 sed 's/^/| /' conftest.$ac_ext >&5
7417 groff_cv_decl_needed_srand=yes
7419 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7422 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_srand" >&5
7423 echo "${ECHO_T}$groff_cv_decl_needed_srand" >&6
7424 if test $groff_cv_decl_needed_srand = yes; then
7426 cat >>confdefs.h <<\_ACEOF
7427 #define NEED_DECLARATION_SRAND 1
7428 _ACEOF
7431 ac_ext=c
7432 ac_cpp='$CPP $CPPFLAGS'
7433 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7434 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7435 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7437 echo "$as_me:$LINENO: checking whether strcasecmp must be declared" >&5
7438 echo $ECHO_N "checking whether strcasecmp must be declared... $ECHO_C" >&6
7439 ac_ext=cc
7440 ac_cpp='$CXXCPP $CPPFLAGS'
7441 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7442 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7443 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7445 if test "${groff_cv_decl_needed_strcasecmp+set}" = set; then
7446 echo $ECHO_N "(cached) $ECHO_C" >&6
7447 else
7448 cat >conftest.$ac_ext <<_ACEOF
7450 /* confdefs.h. */
7451 _ACEOF
7452 cat confdefs.h >>conftest.$ac_ext
7453 cat >>conftest.$ac_ext <<_ACEOF
7454 /* end confdefs.h. */
7457 #include <stdio.h>
7458 #ifdef HAVE_STRING_H
7459 #include <string.h>
7460 #endif
7461 #ifdef HAVE_STRINGS_H
7462 #include <strings.h>
7463 #endif
7464 #ifdef HAVE_STDLIB_H
7465 #include <stdlib.h>
7466 #endif
7467 #ifdef HAVE_SYS_TIME_H
7468 #include <sys/time.h>
7469 #endif
7470 #ifdef HAVE_UNISTD_H
7471 #include <unistd.h>
7472 #endif
7473 #ifdef HAVE_MATH_H
7474 #include <math.h>
7475 #endif
7479 main ()
7483 #ifndef strcasecmp
7484 char *p = (char *) strcasecmp;
7485 #endif
7489 return 0;
7492 _ACEOF
7493 rm -f conftest.$ac_objext
7494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7495 (eval $ac_compile) 2>conftest.er1
7496 ac_status=$?
7497 grep -v '^ *+' conftest.er1 >conftest.err
7498 rm -f conftest.er1
7499 cat conftest.err >&5
7500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7501 (exit $ac_status); } &&
7502 { ac_try='test -z "$ac_cxx_werror_flag"
7503 || test ! -s conftest.err'
7504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7505 (eval $ac_try) 2>&5
7506 ac_status=$?
7507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7508 (exit $ac_status); }; } &&
7509 { ac_try='test -s conftest.$ac_objext'
7510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7511 (eval $ac_try) 2>&5
7512 ac_status=$?
7513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7514 (exit $ac_status); }; }; then
7515 groff_cv_decl_needed_strcasecmp=no
7516 else
7517 echo "$as_me: failed program was:" >&5
7518 sed 's/^/| /' conftest.$ac_ext >&5
7520 groff_cv_decl_needed_strcasecmp=yes
7522 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7525 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_strcasecmp" >&5
7526 echo "${ECHO_T}$groff_cv_decl_needed_strcasecmp" >&6
7527 if test $groff_cv_decl_needed_strcasecmp = yes; then
7529 cat >>confdefs.h <<\_ACEOF
7530 #define NEED_DECLARATION_STRCASECMP 1
7531 _ACEOF
7534 ac_ext=c
7535 ac_cpp='$CPP $CPPFLAGS'
7536 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7537 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7538 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7540 echo "$as_me:$LINENO: checking whether strncasecmp must be declared" >&5
7541 echo $ECHO_N "checking whether strncasecmp must be declared... $ECHO_C" >&6
7542 ac_ext=cc
7543 ac_cpp='$CXXCPP $CPPFLAGS'
7544 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7545 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7546 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7548 if test "${groff_cv_decl_needed_strncasecmp+set}" = set; then
7549 echo $ECHO_N "(cached) $ECHO_C" >&6
7550 else
7551 cat >conftest.$ac_ext <<_ACEOF
7553 /* confdefs.h. */
7554 _ACEOF
7555 cat confdefs.h >>conftest.$ac_ext
7556 cat >>conftest.$ac_ext <<_ACEOF
7557 /* end confdefs.h. */
7560 #include <stdio.h>
7561 #ifdef HAVE_STRING_H
7562 #include <string.h>
7563 #endif
7564 #ifdef HAVE_STRINGS_H
7565 #include <strings.h>
7566 #endif
7567 #ifdef HAVE_STDLIB_H
7568 #include <stdlib.h>
7569 #endif
7570 #ifdef HAVE_SYS_TIME_H
7571 #include <sys/time.h>
7572 #endif
7573 #ifdef HAVE_UNISTD_H
7574 #include <unistd.h>
7575 #endif
7576 #ifdef HAVE_MATH_H
7577 #include <math.h>
7578 #endif
7582 main ()
7586 #ifndef strncasecmp
7587 char *p = (char *) strncasecmp;
7588 #endif
7592 return 0;
7595 _ACEOF
7596 rm -f conftest.$ac_objext
7597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7598 (eval $ac_compile) 2>conftest.er1
7599 ac_status=$?
7600 grep -v '^ *+' conftest.er1 >conftest.err
7601 rm -f conftest.er1
7602 cat conftest.err >&5
7603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7604 (exit $ac_status); } &&
7605 { ac_try='test -z "$ac_cxx_werror_flag"
7606 || test ! -s conftest.err'
7607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7608 (eval $ac_try) 2>&5
7609 ac_status=$?
7610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7611 (exit $ac_status); }; } &&
7612 { ac_try='test -s conftest.$ac_objext'
7613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7614 (eval $ac_try) 2>&5
7615 ac_status=$?
7616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7617 (exit $ac_status); }; }; then
7618 groff_cv_decl_needed_strncasecmp=no
7619 else
7620 echo "$as_me: failed program was:" >&5
7621 sed 's/^/| /' conftest.$ac_ext >&5
7623 groff_cv_decl_needed_strncasecmp=yes
7625 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7628 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_strncasecmp" >&5
7629 echo "${ECHO_T}$groff_cv_decl_needed_strncasecmp" >&6
7630 if test $groff_cv_decl_needed_strncasecmp = yes; then
7632 cat >>confdefs.h <<\_ACEOF
7633 #define NEED_DECLARATION_STRNCASECMP 1
7634 _ACEOF
7637 ac_ext=c
7638 ac_cpp='$CPP $CPPFLAGS'
7639 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7640 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7641 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7643 echo "$as_me:$LINENO: checking whether vfprintf must be declared" >&5
7644 echo $ECHO_N "checking whether vfprintf must be declared... $ECHO_C" >&6
7645 ac_ext=cc
7646 ac_cpp='$CXXCPP $CPPFLAGS'
7647 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7648 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7649 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7651 if test "${groff_cv_decl_needed_vfprintf+set}" = set; then
7652 echo $ECHO_N "(cached) $ECHO_C" >&6
7653 else
7654 cat >conftest.$ac_ext <<_ACEOF
7656 /* confdefs.h. */
7657 _ACEOF
7658 cat confdefs.h >>conftest.$ac_ext
7659 cat >>conftest.$ac_ext <<_ACEOF
7660 /* end confdefs.h. */
7663 #include <stdio.h>
7664 #ifdef HAVE_STRING_H
7665 #include <string.h>
7666 #endif
7667 #ifdef HAVE_STRINGS_H
7668 #include <strings.h>
7669 #endif
7670 #ifdef HAVE_STDLIB_H
7671 #include <stdlib.h>
7672 #endif
7673 #ifdef HAVE_SYS_TIME_H
7674 #include <sys/time.h>
7675 #endif
7676 #ifdef HAVE_UNISTD_H
7677 #include <unistd.h>
7678 #endif
7679 #ifdef HAVE_MATH_H
7680 #include <math.h>
7681 #endif
7685 main ()
7689 #ifndef vfprintf
7690 char *p = (char *) vfprintf;
7691 #endif
7695 return 0;
7698 _ACEOF
7699 rm -f conftest.$ac_objext
7700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7701 (eval $ac_compile) 2>conftest.er1
7702 ac_status=$?
7703 grep -v '^ *+' conftest.er1 >conftest.err
7704 rm -f conftest.er1
7705 cat conftest.err >&5
7706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7707 (exit $ac_status); } &&
7708 { ac_try='test -z "$ac_cxx_werror_flag"
7709 || test ! -s conftest.err'
7710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7711 (eval $ac_try) 2>&5
7712 ac_status=$?
7713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7714 (exit $ac_status); }; } &&
7715 { ac_try='test -s conftest.$ac_objext'
7716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7717 (eval $ac_try) 2>&5
7718 ac_status=$?
7719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7720 (exit $ac_status); }; }; then
7721 groff_cv_decl_needed_vfprintf=no
7722 else
7723 echo "$as_me: failed program was:" >&5
7724 sed 's/^/| /' conftest.$ac_ext >&5
7726 groff_cv_decl_needed_vfprintf=yes
7728 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7731 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_vfprintf" >&5
7732 echo "${ECHO_T}$groff_cv_decl_needed_vfprintf" >&6
7733 if test $groff_cv_decl_needed_vfprintf = yes; then
7735 cat >>confdefs.h <<\_ACEOF
7736 #define NEED_DECLARATION_VFPRINTF 1
7737 _ACEOF
7740 ac_ext=c
7741 ac_cpp='$CPP $CPPFLAGS'
7742 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7743 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7744 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7746 echo "$as_me:$LINENO: checking whether vsnprintf must be declared" >&5
7747 echo $ECHO_N "checking whether vsnprintf must be declared... $ECHO_C" >&6
7748 ac_ext=cc
7749 ac_cpp='$CXXCPP $CPPFLAGS'
7750 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7751 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7752 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7754 if test "${groff_cv_decl_needed_vsnprintf+set}" = set; then
7755 echo $ECHO_N "(cached) $ECHO_C" >&6
7756 else
7757 cat >conftest.$ac_ext <<_ACEOF
7759 /* confdefs.h. */
7760 _ACEOF
7761 cat confdefs.h >>conftest.$ac_ext
7762 cat >>conftest.$ac_ext <<_ACEOF
7763 /* end confdefs.h. */
7766 #include <stdio.h>
7767 #ifdef HAVE_STRING_H
7768 #include <string.h>
7769 #endif
7770 #ifdef HAVE_STRINGS_H
7771 #include <strings.h>
7772 #endif
7773 #ifdef HAVE_STDLIB_H
7774 #include <stdlib.h>
7775 #endif
7776 #ifdef HAVE_SYS_TIME_H
7777 #include <sys/time.h>
7778 #endif
7779 #ifdef HAVE_UNISTD_H
7780 #include <unistd.h>
7781 #endif
7782 #ifdef HAVE_MATH_H
7783 #include <math.h>
7784 #endif
7788 main ()
7792 #ifndef vsnprintf
7793 char *p = (char *) vsnprintf;
7794 #endif
7798 return 0;
7801 _ACEOF
7802 rm -f conftest.$ac_objext
7803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7804 (eval $ac_compile) 2>conftest.er1
7805 ac_status=$?
7806 grep -v '^ *+' conftest.er1 >conftest.err
7807 rm -f conftest.er1
7808 cat conftest.err >&5
7809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7810 (exit $ac_status); } &&
7811 { ac_try='test -z "$ac_cxx_werror_flag"
7812 || test ! -s conftest.err'
7813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7814 (eval $ac_try) 2>&5
7815 ac_status=$?
7816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7817 (exit $ac_status); }; } &&
7818 { ac_try='test -s conftest.$ac_objext'
7819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7820 (eval $ac_try) 2>&5
7821 ac_status=$?
7822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7823 (exit $ac_status); }; }; then
7824 groff_cv_decl_needed_vsnprintf=no
7825 else
7826 echo "$as_me: failed program was:" >&5
7827 sed 's/^/| /' conftest.$ac_ext >&5
7829 groff_cv_decl_needed_vsnprintf=yes
7831 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7834 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_vsnprintf" >&5
7835 echo "${ECHO_T}$groff_cv_decl_needed_vsnprintf" >&6
7836 if test $groff_cv_decl_needed_vsnprintf = yes; then
7838 cat >>confdefs.h <<\_ACEOF
7839 #define NEED_DECLARATION_VSNPRINTF 1
7840 _ACEOF
7843 ac_ext=c
7844 ac_cpp='$CPP $CPPFLAGS'
7845 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7846 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7847 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7849 ac_ext=cc
7850 ac_cpp='$CXXCPP $CPPFLAGS'
7851 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7852 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7853 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7855 echo "$as_me:$LINENO: checking for sys_nerr in <errno.h>, <stdio.h>, or <stdlib.h>" >&5
7856 echo $ECHO_N "checking for sys_nerr in <errno.h>, <stdio.h>, or <stdlib.h>... $ECHO_C" >&6
7857 cat >conftest.$ac_ext <<_ACEOF
7859 /* confdefs.h. */
7860 _ACEOF
7861 cat confdefs.h >>conftest.$ac_ext
7862 cat >>conftest.$ac_ext <<_ACEOF
7863 /* end confdefs.h. */
7866 #include <errno.h>
7867 #include <stdio.h>
7868 #include <stdlib.h>
7872 main ()
7876 int k;
7877 k = sys_nerr;
7881 return 0;
7884 _ACEOF
7885 rm -f conftest.$ac_objext
7886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7887 (eval $ac_compile) 2>conftest.er1
7888 ac_status=$?
7889 grep -v '^ *+' conftest.er1 >conftest.err
7890 rm -f conftest.er1
7891 cat conftest.err >&5
7892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7893 (exit $ac_status); } &&
7894 { ac_try='test -z "$ac_cxx_werror_flag"
7895 || test ! -s conftest.err'
7896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7897 (eval $ac_try) 2>&5
7898 ac_status=$?
7899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7900 (exit $ac_status); }; } &&
7901 { ac_try='test -s conftest.$ac_objext'
7902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7903 (eval $ac_try) 2>&5
7904 ac_status=$?
7905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7906 (exit $ac_status); }; }; then
7907 echo "$as_me:$LINENO: result: yes" >&5
7908 echo "${ECHO_T}yes" >&6
7910 cat >>confdefs.h <<\_ACEOF
7911 #define HAVE_SYS_NERR 1
7912 _ACEOF
7914 else
7915 echo "$as_me: failed program was:" >&5
7916 sed 's/^/| /' conftest.$ac_ext >&5
7918 echo "$as_me:$LINENO: result: no" >&5
7919 echo "${ECHO_T}no" >&6
7921 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7922 ac_ext=c
7923 ac_cpp='$CPP $CPPFLAGS'
7924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7928 echo "$as_me:$LINENO: checking for sys_errlist in <errno.h>, <stdio.h>, or <stdlib.h>" >&5
7929 echo $ECHO_N "checking for sys_errlist in <errno.h>, <stdio.h>, or <stdlib.h>... $ECHO_C" >&6
7930 cat >conftest.$ac_ext <<_ACEOF
7932 /* confdefs.h. */
7933 _ACEOF
7934 cat confdefs.h >>conftest.$ac_ext
7935 cat >>conftest.$ac_ext <<_ACEOF
7936 /* end confdefs.h. */
7939 #include <errno.h>
7940 #include <stdio.h>
7941 #include <stdlib.h>
7945 main ()
7949 int k;
7950 k = (int)sys_errlist[0];
7954 return 0;
7957 _ACEOF
7958 rm -f conftest.$ac_objext
7959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7960 (eval $ac_compile) 2>conftest.er1
7961 ac_status=$?
7962 grep -v '^ *+' conftest.er1 >conftest.err
7963 rm -f conftest.er1
7964 cat conftest.err >&5
7965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7966 (exit $ac_status); } &&
7967 { ac_try='test -z "$ac_c_werror_flag"
7968 || test ! -s conftest.err'
7969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7970 (eval $ac_try) 2>&5
7971 ac_status=$?
7972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7973 (exit $ac_status); }; } &&
7974 { ac_try='test -s conftest.$ac_objext'
7975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7976 (eval $ac_try) 2>&5
7977 ac_status=$?
7978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7979 (exit $ac_status); }; }; then
7980 echo "$as_me:$LINENO: result: yes" >&5
7981 echo "${ECHO_T}yes" >&6
7983 cat >>confdefs.h <<\_ACEOF
7984 #define HAVE_SYS_ERRLIST 1
7985 _ACEOF
7987 else
7988 echo "$as_me: failed program was:" >&5
7989 sed 's/^/| /' conftest.$ac_ext >&5
7991 echo "$as_me:$LINENO: result: no" >&5
7992 echo "${ECHO_T}no" >&6
7994 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7995 ac_ext=cc
7996 ac_cpp='$CXXCPP $CPPFLAGS'
7997 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7998 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7999 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8001 echo "$as_me:$LINENO: checking C++ <osfcn.h>" >&5
8002 echo $ECHO_N "checking C++ <osfcn.h>... $ECHO_C" >&6
8003 cat >conftest.$ac_ext <<_ACEOF
8005 /* confdefs.h. */
8006 _ACEOF
8007 cat confdefs.h >>conftest.$ac_ext
8008 cat >>conftest.$ac_ext <<_ACEOF
8009 /* end confdefs.h. */
8012 #include <osfcn.h>
8016 main ()
8020 read(0, 0, 0);
8021 open(0, 0);
8025 return 0;
8028 _ACEOF
8029 rm -f conftest.$ac_objext
8030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8031 (eval $ac_compile) 2>conftest.er1
8032 ac_status=$?
8033 grep -v '^ *+' conftest.er1 >conftest.err
8034 rm -f conftest.er1
8035 cat conftest.err >&5
8036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8037 (exit $ac_status); } &&
8038 { ac_try='test -z "$ac_cxx_werror_flag"
8039 || test ! -s conftest.err'
8040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8041 (eval $ac_try) 2>&5
8042 ac_status=$?
8043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8044 (exit $ac_status); }; } &&
8045 { ac_try='test -s conftest.$ac_objext'
8046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8047 (eval $ac_try) 2>&5
8048 ac_status=$?
8049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8050 (exit $ac_status); }; }; then
8051 echo "$as_me:$LINENO: result: yes" >&5
8052 echo "${ECHO_T}yes" >&6
8054 cat >>confdefs.h <<\_ACEOF
8055 #define HAVE_CC_OSFCN_H 1
8056 _ACEOF
8058 else
8059 echo "$as_me: failed program was:" >&5
8060 sed 's/^/| /' conftest.$ac_ext >&5
8062 echo "$as_me:$LINENO: result: no" >&5
8063 echo "${ECHO_T}no" >&6
8065 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8066 ac_ext=c
8067 ac_cpp='$CPP $CPPFLAGS'
8068 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8069 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8070 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8072 ac_ext=cc
8073 ac_cpp='$CXXCPP $CPPFLAGS'
8074 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8075 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8076 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8078 echo "$as_me:$LINENO: checking C++ <limits.h>" >&5
8079 echo $ECHO_N "checking C++ <limits.h>... $ECHO_C" >&6
8080 cat >conftest.$ac_ext <<_ACEOF
8082 /* confdefs.h. */
8083 _ACEOF
8084 cat confdefs.h >>conftest.$ac_ext
8085 cat >>conftest.$ac_ext <<_ACEOF
8086 /* end confdefs.h. */
8089 #include <limits.h>
8093 main ()
8097 int x = INT_MIN;
8098 int y = INT_MAX;
8099 int z = UCHAR_MAX;
8103 return 0;
8106 _ACEOF
8107 rm -f conftest.$ac_objext
8108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8109 (eval $ac_compile) 2>conftest.er1
8110 ac_status=$?
8111 grep -v '^ *+' conftest.er1 >conftest.err
8112 rm -f conftest.er1
8113 cat conftest.err >&5
8114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8115 (exit $ac_status); } &&
8116 { ac_try='test -z "$ac_cxx_werror_flag"
8117 || test ! -s conftest.err'
8118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8119 (eval $ac_try) 2>&5
8120 ac_status=$?
8121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8122 (exit $ac_status); }; } &&
8123 { ac_try='test -s conftest.$ac_objext'
8124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8125 (eval $ac_try) 2>&5
8126 ac_status=$?
8127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8128 (exit $ac_status); }; }; then
8129 echo "$as_me:$LINENO: result: yes" >&5
8130 echo "${ECHO_T}yes" >&6
8132 cat >>confdefs.h <<\_ACEOF
8133 #define HAVE_CC_LIMITS_H 1
8134 _ACEOF
8136 else
8137 echo "$as_me: failed program was:" >&5
8138 sed 's/^/| /' conftest.$ac_ext >&5
8140 echo "$as_me:$LINENO: result: no" >&5
8141 echo "${ECHO_T}no" >&6
8143 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8144 ac_ext=c
8145 ac_cpp='$CPP $CPPFLAGS'
8146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8150 ac_ext=cc
8151 ac_cpp='$CXXCPP $CPPFLAGS'
8152 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8153 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8154 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8156 echo "$as_me:$LINENO: checking C++ <inttypes.h>" >&5
8157 echo $ECHO_N "checking C++ <inttypes.h>... $ECHO_C" >&6
8158 cat >conftest.$ac_ext <<_ACEOF
8160 /* confdefs.h. */
8161 _ACEOF
8162 cat confdefs.h >>conftest.$ac_ext
8163 cat >>conftest.$ac_ext <<_ACEOF
8164 /* end confdefs.h. */
8167 #include <sys/types.h>
8168 #include <inttypes.h>
8172 main ()
8176 uintmax_t i = (uintmax_t)-1;
8180 return 0;
8183 _ACEOF
8184 rm -f conftest.$ac_objext
8185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8186 (eval $ac_compile) 2>conftest.er1
8187 ac_status=$?
8188 grep -v '^ *+' conftest.er1 >conftest.err
8189 rm -f conftest.er1
8190 cat conftest.err >&5
8191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8192 (exit $ac_status); } &&
8193 { ac_try='test -z "$ac_cxx_werror_flag"
8194 || test ! -s conftest.err'
8195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8196 (eval $ac_try) 2>&5
8197 ac_status=$?
8198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8199 (exit $ac_status); }; } &&
8200 { ac_try='test -s conftest.$ac_objext'
8201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8202 (eval $ac_try) 2>&5
8203 ac_status=$?
8204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8205 (exit $ac_status); }; }; then
8206 groff_cv_header_inttypes_h=yes
8208 cat >>confdefs.h <<\_ACEOF
8209 #define HAVE_CC_INTTYPES_H 1
8210 _ACEOF
8212 else
8213 echo "$as_me: failed program was:" >&5
8214 sed 's/^/| /' conftest.$ac_ext >&5
8216 groff_cv_header_inttypes_h=no
8218 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8219 echo "$as_me:$LINENO: result: $groff_cv_header_inttypes_h" >&5
8220 echo "${ECHO_T}$groff_cv_header_inttypes_h" >&6
8221 ac_ext=c
8222 ac_cpp='$CPP $CPPFLAGS'
8223 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8224 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8225 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8228 # checks for typedefs
8229 ac_ext=cc
8230 ac_cpp='$CXXCPP $CPPFLAGS'
8231 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8232 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8233 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8235 echo "$as_me:$LINENO: checking for unsigned long long" >&5
8236 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
8237 cat >conftest.$ac_ext <<_ACEOF
8239 /* confdefs.h. */
8240 _ACEOF
8241 cat confdefs.h >>conftest.$ac_ext
8242 cat >>conftest.$ac_ext <<_ACEOF
8243 /* end confdefs.h. */
8246 unsigned long long ull = 1;
8247 int i = 63;
8248 unsigned long long ullmax = (unsigned long long)-1;
8252 main ()
8256 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
8260 return 0;
8263 _ACEOF
8264 rm -f conftest.$ac_objext conftest$ac_exeext
8265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8266 (eval $ac_link) 2>conftest.er1
8267 ac_status=$?
8268 grep -v '^ *+' conftest.er1 >conftest.err
8269 rm -f conftest.er1
8270 cat conftest.err >&5
8271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8272 (exit $ac_status); } &&
8273 { ac_try='test -z "$ac_cxx_werror_flag"
8274 || test ! -s conftest.err'
8275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8276 (eval $ac_try) 2>&5
8277 ac_status=$?
8278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8279 (exit $ac_status); }; } &&
8280 { ac_try='test -s conftest$ac_exeext'
8281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8282 (eval $ac_try) 2>&5
8283 ac_status=$?
8284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8285 (exit $ac_status); }; }; then
8286 groff_cv_type_unsigned_long_long=yes
8287 else
8288 echo "$as_me: failed program was:" >&5
8289 sed 's/^/| /' conftest.$ac_ext >&5
8291 groff_cv_type_unsigned_long_long=no
8293 rm -f conftest.err conftest.$ac_objext \
8294 conftest$ac_exeext conftest.$ac_ext
8295 echo "$as_me:$LINENO: result: $groff_cv_type_unsigned_long_long" >&5
8296 echo "${ECHO_T}$groff_cv_type_unsigned_long_long" >&6
8297 ac_ext=c
8298 ac_cpp='$CPP $CPPFLAGS'
8299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8304 if test $groff_cv_header_inttypes_h = no; then
8306 test $groff_cv_type_unsigned_long_long = yes \
8307 && ac_type='unsigned long long' \
8308 || ac_type='unsigned long'
8310 cat >>confdefs.h <<_ACEOF
8311 #define uintmax_t $ac_type
8312 _ACEOF
8315 ac_ext=cc
8316 ac_cpp='$CXXCPP $CPPFLAGS'
8317 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8318 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8319 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8321 echo "$as_me:$LINENO: checking for declaration of time_t" >&5
8322 echo $ECHO_N "checking for declaration of time_t... $ECHO_C" >&6
8323 cat >conftest.$ac_ext <<_ACEOF
8325 /* confdefs.h. */
8326 _ACEOF
8327 cat confdefs.h >>conftest.$ac_ext
8328 cat >>conftest.$ac_ext <<_ACEOF
8329 /* end confdefs.h. */
8332 #include <time.h>
8336 main ()
8340 time_t t = time(0);
8341 struct tm *p = localtime(&t);
8345 return 0;
8348 _ACEOF
8349 rm -f conftest.$ac_objext
8350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8351 (eval $ac_compile) 2>conftest.er1
8352 ac_status=$?
8353 grep -v '^ *+' conftest.er1 >conftest.err
8354 rm -f conftest.er1
8355 cat conftest.err >&5
8356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8357 (exit $ac_status); } &&
8358 { ac_try='test -z "$ac_cxx_werror_flag"
8359 || test ! -s conftest.err'
8360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8361 (eval $ac_try) 2>&5
8362 ac_status=$?
8363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8364 (exit $ac_status); }; } &&
8365 { ac_try='test -s conftest.$ac_objext'
8366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8367 (eval $ac_try) 2>&5
8368 ac_status=$?
8369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8370 (exit $ac_status); }; }; then
8371 echo "$as_me:$LINENO: result: yes" >&5
8372 echo "${ECHO_T}yes" >&6
8373 else
8374 echo "$as_me: failed program was:" >&5
8375 sed 's/^/| /' conftest.$ac_ext >&5
8377 echo "$as_me:$LINENO: result: no" >&5
8378 echo "${ECHO_T}no" >&6
8380 cat >>confdefs.h <<\_ACEOF
8381 #define LONG_FOR_TIME_T 1
8382 _ACEOF
8385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8386 ac_ext=c
8387 ac_cpp='$CPP $CPPFLAGS'
8388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8392 echo "$as_me:$LINENO: checking for return type of signal handlers" >&5
8393 echo $ECHO_N "checking for return type of signal handlers... $ECHO_C" >&6
8394 for groff_declaration in \
8395 'extern "C" void (*signal (int, void (*)(int)))(int);' \
8396 'extern "C" void (*signal (int, void (*)(int)) throw ())(int);' \
8397 'void (*signal ()) ();'
8399 cat >conftest.$ac_ext <<_ACEOF
8401 /* confdefs.h. */
8402 _ACEOF
8403 cat confdefs.h >>conftest.$ac_ext
8404 cat >>conftest.$ac_ext <<_ACEOF
8405 /* end confdefs.h. */
8408 #include <sys/types.h>
8409 #include <signal.h>
8410 #ifdef signal
8411 # undef signal
8412 #endif
8413 $groff_declaration
8417 main ()
8421 int i;
8425 return 0;
8428 _ACEOF
8429 rm -f conftest.$ac_objext
8430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8431 (eval $ac_compile) 2>conftest.er1
8432 ac_status=$?
8433 grep -v '^ *+' conftest.er1 >conftest.err
8434 rm -f conftest.er1
8435 cat conftest.err >&5
8436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8437 (exit $ac_status); } &&
8438 { ac_try='test -z "$ac_c_werror_flag"
8439 || test ! -s conftest.err'
8440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8441 (eval $ac_try) 2>&5
8442 ac_status=$?
8443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8444 (exit $ac_status); }; } &&
8445 { ac_try='test -s conftest.$ac_objext'
8446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8447 (eval $ac_try) 2>&5
8448 ac_status=$?
8449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8450 (exit $ac_status); }; }; then
8451 break
8452 else
8453 echo "$as_me: failed program was:" >&5
8454 sed 's/^/| /' conftest.$ac_ext >&5
8456 continue
8458 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8459 done
8461 if test -n "$groff_declaration"; then
8462 echo "$as_me:$LINENO: result: void" >&5
8463 echo "${ECHO_T}void" >&6
8465 cat >>confdefs.h <<\_ACEOF
8466 #define RETSIGTYPE void
8467 _ACEOF
8469 else
8470 echo "$as_me:$LINENO: result: int" >&5
8471 echo "${ECHO_T}int" >&6
8473 cat >>confdefs.h <<\_ACEOF
8474 #define RETSIGTYPE int
8475 _ACEOF
8478 echo "$as_me:$LINENO: checking struct exception" >&5
8479 echo $ECHO_N "checking struct exception... $ECHO_C" >&6
8480 cat >conftest.$ac_ext <<_ACEOF
8482 /* confdefs.h. */
8483 _ACEOF
8484 cat confdefs.h >>conftest.$ac_ext
8485 cat >>conftest.$ac_ext <<_ACEOF
8486 /* end confdefs.h. */
8489 #include <math.h>
8493 main ()
8497 struct exception e;
8501 return 0;
8504 _ACEOF
8505 rm -f conftest.$ac_objext
8506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8507 (eval $ac_compile) 2>conftest.er1
8508 ac_status=$?
8509 grep -v '^ *+' conftest.er1 >conftest.err
8510 rm -f conftest.er1
8511 cat conftest.err >&5
8512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8513 (exit $ac_status); } &&
8514 { ac_try='test -z "$ac_c_werror_flag"
8515 || test ! -s conftest.err'
8516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8517 (eval $ac_try) 2>&5
8518 ac_status=$?
8519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8520 (exit $ac_status); }; } &&
8521 { ac_try='test -s conftest.$ac_objext'
8522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8523 (eval $ac_try) 2>&5
8524 ac_status=$?
8525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8526 (exit $ac_status); }; }; then
8527 echo "$as_me:$LINENO: result: yes" >&5
8528 echo "${ECHO_T}yes" >&6
8530 cat >>confdefs.h <<\_ACEOF
8531 #define HAVE_STRUCT_EXCEPTION 1
8532 _ACEOF
8534 else
8535 echo "$as_me: failed program was:" >&5
8536 sed 's/^/| /' conftest.$ac_ext >&5
8538 echo "$as_me:$LINENO: result: no" >&5
8539 echo "${ECHO_T}no" >&6
8541 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8543 # check endianness
8544 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
8545 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
8546 if test "${ac_cv_c_bigendian+set}" = set; then
8547 echo $ECHO_N "(cached) $ECHO_C" >&6
8548 else
8549 # See if sys/param.h defines the BYTE_ORDER macro.
8550 cat >conftest.$ac_ext <<_ACEOF
8551 /* confdefs.h. */
8552 _ACEOF
8553 cat confdefs.h >>conftest.$ac_ext
8554 cat >>conftest.$ac_ext <<_ACEOF
8555 /* end confdefs.h. */
8556 #include <sys/types.h>
8557 #include <sys/param.h>
8560 main ()
8562 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8563 bogus endian macros
8564 #endif
8567 return 0;
8569 _ACEOF
8570 rm -f conftest.$ac_objext
8571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8572 (eval $ac_compile) 2>conftest.er1
8573 ac_status=$?
8574 grep -v '^ *+' conftest.er1 >conftest.err
8575 rm -f conftest.er1
8576 cat conftest.err >&5
8577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8578 (exit $ac_status); } &&
8579 { ac_try='test -z "$ac_c_werror_flag"
8580 || test ! -s conftest.err'
8581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8582 (eval $ac_try) 2>&5
8583 ac_status=$?
8584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8585 (exit $ac_status); }; } &&
8586 { ac_try='test -s conftest.$ac_objext'
8587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8588 (eval $ac_try) 2>&5
8589 ac_status=$?
8590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8591 (exit $ac_status); }; }; then
8592 # It does; now see whether it defined to BIG_ENDIAN or not.
8593 cat >conftest.$ac_ext <<_ACEOF
8594 /* confdefs.h. */
8595 _ACEOF
8596 cat confdefs.h >>conftest.$ac_ext
8597 cat >>conftest.$ac_ext <<_ACEOF
8598 /* end confdefs.h. */
8599 #include <sys/types.h>
8600 #include <sys/param.h>
8603 main ()
8605 #if BYTE_ORDER != BIG_ENDIAN
8606 not big endian
8607 #endif
8610 return 0;
8612 _ACEOF
8613 rm -f conftest.$ac_objext
8614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8615 (eval $ac_compile) 2>conftest.er1
8616 ac_status=$?
8617 grep -v '^ *+' conftest.er1 >conftest.err
8618 rm -f conftest.er1
8619 cat conftest.err >&5
8620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8621 (exit $ac_status); } &&
8622 { ac_try='test -z "$ac_c_werror_flag"
8623 || test ! -s conftest.err'
8624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8625 (eval $ac_try) 2>&5
8626 ac_status=$?
8627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8628 (exit $ac_status); }; } &&
8629 { ac_try='test -s conftest.$ac_objext'
8630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8631 (eval $ac_try) 2>&5
8632 ac_status=$?
8633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8634 (exit $ac_status); }; }; then
8635 ac_cv_c_bigendian=yes
8636 else
8637 echo "$as_me: failed program was:" >&5
8638 sed 's/^/| /' conftest.$ac_ext >&5
8640 ac_cv_c_bigendian=no
8642 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8643 else
8644 echo "$as_me: failed program was:" >&5
8645 sed 's/^/| /' conftest.$ac_ext >&5
8647 # It does not; compile a test program.
8648 if test "$cross_compiling" = yes; then
8649 # try to guess the endianness by grepping values into an object file
8650 ac_cv_c_bigendian=unknown
8651 cat >conftest.$ac_ext <<_ACEOF
8652 /* confdefs.h. */
8653 _ACEOF
8654 cat confdefs.h >>conftest.$ac_ext
8655 cat >>conftest.$ac_ext <<_ACEOF
8656 /* end confdefs.h. */
8657 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8658 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8659 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
8660 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8661 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8662 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
8664 main ()
8666 _ascii (); _ebcdic ();
8668 return 0;
8670 _ACEOF
8671 rm -f conftest.$ac_objext
8672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8673 (eval $ac_compile) 2>conftest.er1
8674 ac_status=$?
8675 grep -v '^ *+' conftest.er1 >conftest.err
8676 rm -f conftest.er1
8677 cat conftest.err >&5
8678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8679 (exit $ac_status); } &&
8680 { ac_try='test -z "$ac_c_werror_flag"
8681 || test ! -s conftest.err'
8682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8683 (eval $ac_try) 2>&5
8684 ac_status=$?
8685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8686 (exit $ac_status); }; } &&
8687 { ac_try='test -s conftest.$ac_objext'
8688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8689 (eval $ac_try) 2>&5
8690 ac_status=$?
8691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8692 (exit $ac_status); }; }; then
8693 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
8694 ac_cv_c_bigendian=yes
8696 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8697 if test "$ac_cv_c_bigendian" = unknown; then
8698 ac_cv_c_bigendian=no
8699 else
8700 # finding both strings is unlikely to happen, but who knows?
8701 ac_cv_c_bigendian=unknown
8704 else
8705 echo "$as_me: failed program was:" >&5
8706 sed 's/^/| /' conftest.$ac_ext >&5
8709 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8710 else
8711 cat >conftest.$ac_ext <<_ACEOF
8712 /* confdefs.h. */
8713 _ACEOF
8714 cat confdefs.h >>conftest.$ac_ext
8715 cat >>conftest.$ac_ext <<_ACEOF
8716 /* end confdefs.h. */
8717 $ac_includes_default
8719 main ()
8722 /* Are we little or big endian? From Harbison&Steele. */
8723 union
8725 long int l;
8726 char c[sizeof (long int)];
8727 } u;
8728 u.l = 1;
8729 exit (u.c[sizeof (long int) - 1] == 1);
8732 return 0;
8734 _ACEOF
8735 rm -f conftest$ac_exeext
8736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8737 (eval $ac_link) 2>&5
8738 ac_status=$?
8739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8740 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8742 (eval $ac_try) 2>&5
8743 ac_status=$?
8744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8745 (exit $ac_status); }; }; then
8746 ac_cv_c_bigendian=no
8747 else
8748 echo "$as_me: program exited with status $ac_status" >&5
8749 echo "$as_me: failed program was:" >&5
8750 sed 's/^/| /' conftest.$ac_ext >&5
8752 ( exit $ac_status )
8753 ac_cv_c_bigendian=yes
8755 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8758 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8760 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8761 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8762 case $ac_cv_c_bigendian in
8763 yes)
8765 cat >>confdefs.h <<\_ACEOF
8766 #define WORDS_BIGENDIAN 1
8767 _ACEOF
8772 { { echo "$as_me:$LINENO: error: unknown endianness
8773 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
8774 echo "$as_me: error: unknown endianness
8775 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
8776 { (exit 1); exit 1; }; } ;;
8777 esac
8780 # checks for libraries
8781 echo "$as_me:$LINENO: checking for main in -lc" >&5
8782 echo $ECHO_N "checking for main in -lc... $ECHO_C" >&6
8783 if test "${ac_cv_lib_c_main+set}" = set; then
8784 echo $ECHO_N "(cached) $ECHO_C" >&6
8785 else
8786 ac_check_lib_save_LIBS=$LIBS
8787 LIBS="-lc $LIBS"
8788 cat >conftest.$ac_ext <<_ACEOF
8789 /* confdefs.h. */
8790 _ACEOF
8791 cat confdefs.h >>conftest.$ac_ext
8792 cat >>conftest.$ac_ext <<_ACEOF
8793 /* end confdefs.h. */
8797 main ()
8799 main ();
8801 return 0;
8803 _ACEOF
8804 rm -f conftest.$ac_objext conftest$ac_exeext
8805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8806 (eval $ac_link) 2>conftest.er1
8807 ac_status=$?
8808 grep -v '^ *+' conftest.er1 >conftest.err
8809 rm -f conftest.er1
8810 cat conftest.err >&5
8811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8812 (exit $ac_status); } &&
8813 { ac_try='test -z "$ac_c_werror_flag"
8814 || test ! -s conftest.err'
8815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8816 (eval $ac_try) 2>&5
8817 ac_status=$?
8818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8819 (exit $ac_status); }; } &&
8820 { ac_try='test -s conftest$ac_exeext'
8821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8822 (eval $ac_try) 2>&5
8823 ac_status=$?
8824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8825 (exit $ac_status); }; }; then
8826 ac_cv_lib_c_main=yes
8827 else
8828 echo "$as_me: failed program was:" >&5
8829 sed 's/^/| /' conftest.$ac_ext >&5
8831 ac_cv_lib_c_main=no
8833 rm -f conftest.err conftest.$ac_objext \
8834 conftest$ac_exeext conftest.$ac_ext
8835 LIBS=$ac_check_lib_save_LIBS
8837 echo "$as_me:$LINENO: result: $ac_cv_lib_c_main" >&5
8838 echo "${ECHO_T}$ac_cv_lib_c_main" >&6
8839 if test $ac_cv_lib_c_main = yes; then
8840 LIBC=-lc
8844 echo "$as_me:$LINENO: checking for sin in -lm" >&5
8845 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
8846 if test "${ac_cv_lib_m_sin+set}" = set; then
8847 echo $ECHO_N "(cached) $ECHO_C" >&6
8848 else
8849 ac_check_lib_save_LIBS=$LIBS
8850 LIBS="-lm $LIBS"
8851 cat >conftest.$ac_ext <<_ACEOF
8852 /* confdefs.h. */
8853 _ACEOF
8854 cat confdefs.h >>conftest.$ac_ext
8855 cat >>conftest.$ac_ext <<_ACEOF
8856 /* end confdefs.h. */
8858 /* Override any gcc2 internal prototype to avoid an error. */
8859 #ifdef __cplusplus
8860 extern "C"
8861 #endif
8862 /* We use char because int might match the return type of a gcc2
8863 builtin and then its argument prototype would still apply. */
8864 char sin ();
8866 main ()
8868 sin ();
8870 return 0;
8872 _ACEOF
8873 rm -f conftest.$ac_objext conftest$ac_exeext
8874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8875 (eval $ac_link) 2>conftest.er1
8876 ac_status=$?
8877 grep -v '^ *+' conftest.er1 >conftest.err
8878 rm -f conftest.er1
8879 cat conftest.err >&5
8880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8881 (exit $ac_status); } &&
8882 { ac_try='test -z "$ac_c_werror_flag"
8883 || test ! -s conftest.err'
8884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8885 (eval $ac_try) 2>&5
8886 ac_status=$?
8887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8888 (exit $ac_status); }; } &&
8889 { ac_try='test -s conftest$ac_exeext'
8890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8891 (eval $ac_try) 2>&5
8892 ac_status=$?
8893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8894 (exit $ac_status); }; }; then
8895 ac_cv_lib_m_sin=yes
8896 else
8897 echo "$as_me: failed program was:" >&5
8898 sed 's/^/| /' conftest.$ac_ext >&5
8900 ac_cv_lib_m_sin=no
8902 rm -f conftest.err conftest.$ac_objext \
8903 conftest$ac_exeext conftest.$ac_ext
8904 LIBS=$ac_check_lib_save_LIBS
8906 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
8907 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
8908 if test $ac_cv_lib_m_sin = yes; then
8909 LIBM=-lm
8914 if test "X$prefix" = "XNONE"; then
8915 acl_final_prefix="$ac_default_prefix"
8916 else
8917 acl_final_prefix="$prefix"
8919 if test "X$exec_prefix" = "XNONE"; then
8920 acl_final_exec_prefix='${prefix}'
8921 else
8922 acl_final_exec_prefix="$exec_prefix"
8924 acl_save_prefix="$prefix"
8925 prefix="$acl_final_prefix"
8926 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8927 prefix="$acl_save_prefix"
8929 # Make sure we can run config.sub.
8930 $ac_config_sub sun4 >/dev/null 2>&1 ||
8931 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
8932 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
8933 { (exit 1); exit 1; }; }
8935 echo "$as_me:$LINENO: checking build system type" >&5
8936 echo $ECHO_N "checking build system type... $ECHO_C" >&6
8937 if test "${ac_cv_build+set}" = set; then
8938 echo $ECHO_N "(cached) $ECHO_C" >&6
8939 else
8940 ac_cv_build_alias=$build_alias
8941 test -z "$ac_cv_build_alias" &&
8942 ac_cv_build_alias=`$ac_config_guess`
8943 test -z "$ac_cv_build_alias" &&
8944 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
8945 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
8946 { (exit 1); exit 1; }; }
8947 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
8948 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
8949 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
8950 { (exit 1); exit 1; }; }
8953 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
8954 echo "${ECHO_T}$ac_cv_build" >&6
8955 build=$ac_cv_build
8956 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
8957 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
8958 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
8961 echo "$as_me:$LINENO: checking host system type" >&5
8962 echo $ECHO_N "checking host system type... $ECHO_C" >&6
8963 if test "${ac_cv_host+set}" = set; then
8964 echo $ECHO_N "(cached) $ECHO_C" >&6
8965 else
8966 ac_cv_host_alias=$host_alias
8967 test -z "$ac_cv_host_alias" &&
8968 ac_cv_host_alias=$ac_cv_build_alias
8969 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
8970 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
8971 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
8972 { (exit 1); exit 1; }; }
8975 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
8976 echo "${ECHO_T}$ac_cv_host" >&6
8977 host=$ac_cv_host
8978 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
8979 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
8980 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
8984 # Check whether --with-gnu-ld or --without-gnu-ld was given.
8985 if test "${with_gnu_ld+set}" = set; then
8986 withval="$with_gnu_ld"
8987 test "$withval" = no || with_gnu_ld=yes
8988 else
8989 with_gnu_ld=no
8991 # Prepare PATH_SEPARATOR.
8992 # The user is always right.
8993 if test "${PATH_SEPARATOR+set}" != set; then
8994 echo "#! /bin/sh" >conf$$.sh
8995 echo "exit 0" >>conf$$.sh
8996 chmod +x conf$$.sh
8997 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8998 PATH_SEPARATOR=';'
8999 else
9000 PATH_SEPARATOR=:
9002 rm -f conf$$.sh
9004 ac_prog=ld
9005 if test "$GCC" = yes; then
9006 # Check if gcc -print-prog-name=ld gives a path.
9007 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
9008 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
9009 case $host in
9010 *-*-mingw*)
9011 # gcc leaves a trailing carriage return which upsets mingw
9012 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9014 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9015 esac
9016 case $ac_prog in
9017 # Accept absolute paths.
9018 [\\/]* | [A-Za-z]:[\\/]*)
9019 re_direlt='/[^/][^/]*/\.\./'
9020 # Canonicalize the path of ld
9021 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9022 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9023 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9024 done
9025 test -z "$LD" && LD="$ac_prog"
9028 # If it fails, then pretend we aren't using GCC.
9029 ac_prog=ld
9032 # If it is relative, then search for the first ld in PATH.
9033 with_gnu_ld=unknown
9035 esac
9036 elif test "$with_gnu_ld" = yes; then
9037 echo "$as_me:$LINENO: checking for GNU ld" >&5
9038 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9039 else
9040 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9041 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9043 if test "${acl_cv_path_LD+set}" = set; then
9044 echo $ECHO_N "(cached) $ECHO_C" >&6
9045 else
9046 if test -z "$LD"; then
9047 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9048 for ac_dir in $PATH; do
9049 test -z "$ac_dir" && ac_dir=.
9050 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9051 acl_cv_path_LD="$ac_dir/$ac_prog"
9052 # Check to see if the program is GNU ld. I'd rather use --version,
9053 # but apparently some GNU ld's only accept -v.
9054 # Break only if it was the GNU/non-GNU ld that we prefer.
9055 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
9056 *GNU* | *'with BFD'*)
9057 test "$with_gnu_ld" != no && break ;;
9059 test "$with_gnu_ld" != yes && break ;;
9060 esac
9062 done
9063 IFS="$ac_save_ifs"
9064 else
9065 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9069 LD="$acl_cv_path_LD"
9070 if test -n "$LD"; then
9071 echo "$as_me:$LINENO: result: $LD" >&5
9072 echo "${ECHO_T}$LD" >&6
9073 else
9074 echo "$as_me:$LINENO: result: no" >&5
9075 echo "${ECHO_T}no" >&6
9077 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9078 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9079 { (exit 1); exit 1; }; }
9080 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9081 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9082 if test "${acl_cv_prog_gnu_ld+set}" = set; then
9083 echo $ECHO_N "(cached) $ECHO_C" >&6
9084 else
9085 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9086 case `$LD -v 2>&1 </dev/null` in
9087 *GNU* | *'with BFD'*)
9088 acl_cv_prog_gnu_ld=yes ;;
9090 acl_cv_prog_gnu_ld=no ;;
9091 esac
9093 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
9094 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
9095 with_gnu_ld=$acl_cv_prog_gnu_ld
9100 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
9101 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
9102 if test "${acl_cv_rpath+set}" = set; then
9103 echo $ECHO_N "(cached) $ECHO_C" >&6
9104 else
9106 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9107 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9108 . ./conftest.sh
9109 rm -f ./conftest.sh
9110 acl_cv_rpath=done
9113 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
9114 echo "${ECHO_T}$acl_cv_rpath" >&6
9115 wl="$acl_cv_wl"
9116 libext="$acl_cv_libext"
9117 shlibext="$acl_cv_shlibext"
9118 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9119 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9120 hardcode_direct="$acl_cv_hardcode_direct"
9121 hardcode_minus_L="$acl_cv_hardcode_minus_L"
9122 # Check whether --enable-rpath or --disable-rpath was given.
9123 if test "${enable_rpath+set}" = set; then
9124 enableval="$enable_rpath"
9126 else
9127 enable_rpath=yes
9131 acl_libdirstem=lib
9132 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
9133 if test -n "$searchpath"; then
9134 acl_save_IFS="${IFS= }"; IFS=":"
9135 for searchdir in $searchpath; do
9136 if test -d "$searchdir"; then
9137 case "$searchdir" in
9138 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
9139 *) searchdir=`cd "$searchdir" && pwd`
9140 case "$searchdir" in
9141 */lib64 ) acl_libdirstem=lib64 ;;
9142 esac ;;
9143 esac
9145 done
9146 IFS="$acl_save_IFS"
9156 use_additional=yes
9158 acl_save_prefix="$prefix"
9159 prefix="$acl_final_prefix"
9160 acl_save_exec_prefix="$exec_prefix"
9161 exec_prefix="$acl_final_exec_prefix"
9163 eval additional_includedir=\"$includedir\"
9164 eval additional_libdir=\"$libdir\"
9166 exec_prefix="$acl_save_exec_prefix"
9167 prefix="$acl_save_prefix"
9170 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
9171 if test "${with_libiconv_prefix+set}" = set; then
9172 withval="$with_libiconv_prefix"
9174 if test "X$withval" = "Xno"; then
9175 use_additional=no
9176 else
9177 if test "X$withval" = "X"; then
9179 acl_save_prefix="$prefix"
9180 prefix="$acl_final_prefix"
9181 acl_save_exec_prefix="$exec_prefix"
9182 exec_prefix="$acl_final_exec_prefix"
9184 eval additional_includedir=\"$includedir\"
9185 eval additional_libdir=\"$libdir\"
9187 exec_prefix="$acl_save_exec_prefix"
9188 prefix="$acl_save_prefix"
9190 else
9191 additional_includedir="$withval/include"
9192 additional_libdir="$withval/$acl_libdirstem"
9197 LIBICONV=
9198 LTLIBICONV=
9199 INCICONV=
9200 rpathdirs=
9201 ltrpathdirs=
9202 names_already_handled=
9203 names_next_round='iconv '
9204 while test -n "$names_next_round"; do
9205 names_this_round="$names_next_round"
9206 names_next_round=
9207 for name in $names_this_round; do
9208 already_handled=
9209 for n in $names_already_handled; do
9210 if test "$n" = "$name"; then
9211 already_handled=yes
9212 break
9214 done
9215 if test -z "$already_handled"; then
9216 names_already_handled="$names_already_handled $name"
9217 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9218 eval value=\"\$HAVE_LIB$uppername\"
9219 if test -n "$value"; then
9220 if test "$value" = yes; then
9221 eval value=\"\$LIB$uppername\"
9222 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9223 eval value=\"\$LTLIB$uppername\"
9224 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9225 else
9228 else
9229 found_dir=
9230 found_la=
9231 found_so=
9232 found_a=
9233 if test $use_additional = yes; then
9234 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9235 found_dir="$additional_libdir"
9236 found_so="$additional_libdir/lib$name.$shlibext"
9237 if test -f "$additional_libdir/lib$name.la"; then
9238 found_la="$additional_libdir/lib$name.la"
9240 else
9241 if test -f "$additional_libdir/lib$name.$libext"; then
9242 found_dir="$additional_libdir"
9243 found_a="$additional_libdir/lib$name.$libext"
9244 if test -f "$additional_libdir/lib$name.la"; then
9245 found_la="$additional_libdir/lib$name.la"
9250 if test "X$found_dir" = "X"; then
9251 for x in $LDFLAGS $LTLIBICONV; do
9253 acl_save_prefix="$prefix"
9254 prefix="$acl_final_prefix"
9255 acl_save_exec_prefix="$exec_prefix"
9256 exec_prefix="$acl_final_exec_prefix"
9257 eval x=\"$x\"
9258 exec_prefix="$acl_save_exec_prefix"
9259 prefix="$acl_save_prefix"
9261 case "$x" in
9262 -L*)
9263 dir=`echo "X$x" | sed -e 's/^X-L//'`
9264 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9265 found_dir="$dir"
9266 found_so="$dir/lib$name.$shlibext"
9267 if test -f "$dir/lib$name.la"; then
9268 found_la="$dir/lib$name.la"
9270 else
9271 if test -f "$dir/lib$name.$libext"; then
9272 found_dir="$dir"
9273 found_a="$dir/lib$name.$libext"
9274 if test -f "$dir/lib$name.la"; then
9275 found_la="$dir/lib$name.la"
9280 esac
9281 if test "X$found_dir" != "X"; then
9282 break
9284 done
9286 if test "X$found_dir" != "X"; then
9287 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9288 if test "X$found_so" != "X"; then
9289 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
9290 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9291 else
9292 haveit=
9293 for x in $ltrpathdirs; do
9294 if test "X$x" = "X$found_dir"; then
9295 haveit=yes
9296 break
9298 done
9299 if test -z "$haveit"; then
9300 ltrpathdirs="$ltrpathdirs $found_dir"
9302 if test "$hardcode_direct" = yes; then
9303 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9304 else
9305 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9306 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9307 haveit=
9308 for x in $rpathdirs; do
9309 if test "X$x" = "X$found_dir"; then
9310 haveit=yes
9311 break
9313 done
9314 if test -z "$haveit"; then
9315 rpathdirs="$rpathdirs $found_dir"
9317 else
9318 haveit=
9319 for x in $LDFLAGS $LIBICONV; do
9321 acl_save_prefix="$prefix"
9322 prefix="$acl_final_prefix"
9323 acl_save_exec_prefix="$exec_prefix"
9324 exec_prefix="$acl_final_exec_prefix"
9325 eval x=\"$x\"
9326 exec_prefix="$acl_save_exec_prefix"
9327 prefix="$acl_save_prefix"
9329 if test "X$x" = "X-L$found_dir"; then
9330 haveit=yes
9331 break
9333 done
9334 if test -z "$haveit"; then
9335 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9337 if test "$hardcode_minus_L" != no; then
9338 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9339 else
9340 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9345 else
9346 if test "X$found_a" != "X"; then
9347 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9348 else
9349 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9352 additional_includedir=
9353 case "$found_dir" in
9354 */$acl_libdirstem | */$acl_libdirstem/)
9355 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
9356 additional_includedir="$basedir/include"
9358 esac
9359 if test "X$additional_includedir" != "X"; then
9360 if test "X$additional_includedir" != "X/usr/include"; then
9361 haveit=
9362 if test "X$additional_includedir" = "X/usr/local/include"; then
9363 if test -n "$GCC"; then
9364 case $host_os in
9365 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9366 esac
9369 if test -z "$haveit"; then
9370 for x in $CPPFLAGS $INCICONV; do
9372 acl_save_prefix="$prefix"
9373 prefix="$acl_final_prefix"
9374 acl_save_exec_prefix="$exec_prefix"
9375 exec_prefix="$acl_final_exec_prefix"
9376 eval x=\"$x\"
9377 exec_prefix="$acl_save_exec_prefix"
9378 prefix="$acl_save_prefix"
9380 if test "X$x" = "X-I$additional_includedir"; then
9381 haveit=yes
9382 break
9384 done
9385 if test -z "$haveit"; then
9386 if test -d "$additional_includedir"; then
9387 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9393 if test -n "$found_la"; then
9394 save_libdir="$libdir"
9395 case "$found_la" in
9396 */* | *\\*) . "$found_la" ;;
9397 *) . "./$found_la" ;;
9398 esac
9399 libdir="$save_libdir"
9400 for dep in $dependency_libs; do
9401 case "$dep" in
9402 -L*)
9403 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9404 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
9405 haveit=
9406 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
9407 if test -n "$GCC"; then
9408 case $host_os in
9409 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9410 esac
9413 if test -z "$haveit"; then
9414 haveit=
9415 for x in $LDFLAGS $LIBICONV; do
9417 acl_save_prefix="$prefix"
9418 prefix="$acl_final_prefix"
9419 acl_save_exec_prefix="$exec_prefix"
9420 exec_prefix="$acl_final_exec_prefix"
9421 eval x=\"$x\"
9422 exec_prefix="$acl_save_exec_prefix"
9423 prefix="$acl_save_prefix"
9425 if test "X$x" = "X-L$additional_libdir"; then
9426 haveit=yes
9427 break
9429 done
9430 if test -z "$haveit"; then
9431 if test -d "$additional_libdir"; then
9432 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9435 haveit=
9436 for x in $LDFLAGS $LTLIBICONV; do
9438 acl_save_prefix="$prefix"
9439 prefix="$acl_final_prefix"
9440 acl_save_exec_prefix="$exec_prefix"
9441 exec_prefix="$acl_final_exec_prefix"
9442 eval x=\"$x\"
9443 exec_prefix="$acl_save_exec_prefix"
9444 prefix="$acl_save_prefix"
9446 if test "X$x" = "X-L$additional_libdir"; then
9447 haveit=yes
9448 break
9450 done
9451 if test -z "$haveit"; then
9452 if test -d "$additional_libdir"; then
9453 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9459 -R*)
9460 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9461 if test "$enable_rpath" != no; then
9462 haveit=
9463 for x in $rpathdirs; do
9464 if test "X$x" = "X$dir"; then
9465 haveit=yes
9466 break
9468 done
9469 if test -z "$haveit"; then
9470 rpathdirs="$rpathdirs $dir"
9472 haveit=
9473 for x in $ltrpathdirs; do
9474 if test "X$x" = "X$dir"; then
9475 haveit=yes
9476 break
9478 done
9479 if test -z "$haveit"; then
9480 ltrpathdirs="$ltrpathdirs $dir"
9484 -l*)
9485 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9487 *.la)
9488 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9491 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9492 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9494 esac
9495 done
9497 else
9498 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9499 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9503 done
9504 done
9505 if test "X$rpathdirs" != "X"; then
9506 if test -n "$hardcode_libdir_separator"; then
9507 alldirs=
9508 for found_dir in $rpathdirs; do
9509 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9510 done
9511 acl_save_libdir="$libdir"
9512 libdir="$alldirs"
9513 eval flag=\"$hardcode_libdir_flag_spec\"
9514 libdir="$acl_save_libdir"
9515 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9516 else
9517 for found_dir in $rpathdirs; do
9518 acl_save_libdir="$libdir"
9519 libdir="$found_dir"
9520 eval flag=\"$hardcode_libdir_flag_spec\"
9521 libdir="$acl_save_libdir"
9522 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9523 done
9526 if test "X$ltrpathdirs" != "X"; then
9527 for found_dir in $ltrpathdirs; do
9528 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9529 done
9538 am_save_CPPFLAGS="$CPPFLAGS"
9540 for element in $INCICONV; do
9541 haveit=
9542 for x in $CPPFLAGS; do
9544 acl_save_prefix="$prefix"
9545 prefix="$acl_final_prefix"
9546 acl_save_exec_prefix="$exec_prefix"
9547 exec_prefix="$acl_final_exec_prefix"
9548 eval x=\"$x\"
9549 exec_prefix="$acl_save_exec_prefix"
9550 prefix="$acl_save_prefix"
9552 if test "X$x" = "X$element"; then
9553 haveit=yes
9554 break
9556 done
9557 if test -z "$haveit"; then
9558 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9560 done
9563 echo "$as_me:$LINENO: checking for iconv" >&5
9564 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
9565 if test "${am_cv_func_iconv+set}" = set; then
9566 echo $ECHO_N "(cached) $ECHO_C" >&6
9567 else
9569 am_cv_func_iconv="no, consider installing GNU libiconv"
9570 am_cv_lib_iconv=no
9571 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. */
9577 #include <stdlib.h>
9578 #include <iconv.h>
9580 main ()
9582 iconv_t cd = iconv_open("","");
9583 iconv(cd,NULL,NULL,NULL,NULL);
9584 iconv_close(cd);
9586 return 0;
9588 _ACEOF
9589 rm -f conftest.$ac_objext conftest$ac_exeext
9590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9591 (eval $ac_link) 2>conftest.er1
9592 ac_status=$?
9593 grep -v '^ *+' conftest.er1 >conftest.err
9594 rm -f conftest.er1
9595 cat conftest.err >&5
9596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9597 (exit $ac_status); } &&
9598 { ac_try='test -z "$ac_c_werror_flag"
9599 || test ! -s conftest.err'
9600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9601 (eval $ac_try) 2>&5
9602 ac_status=$?
9603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9604 (exit $ac_status); }; } &&
9605 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
9611 am_cv_func_iconv=yes
9612 else
9613 echo "$as_me: failed program was:" >&5
9614 sed 's/^/| /' conftest.$ac_ext >&5
9617 rm -f conftest.err conftest.$ac_objext \
9618 conftest$ac_exeext conftest.$ac_ext
9619 if test "$am_cv_func_iconv" != yes; then
9620 am_save_LIBS="$LIBS"
9621 LIBS="$LIBS $LIBICONV"
9622 cat >conftest.$ac_ext <<_ACEOF
9623 /* confdefs.h. */
9624 _ACEOF
9625 cat confdefs.h >>conftest.$ac_ext
9626 cat >>conftest.$ac_ext <<_ACEOF
9627 /* end confdefs.h. */
9628 #include <stdlib.h>
9629 #include <iconv.h>
9631 main ()
9633 iconv_t cd = iconv_open("","");
9634 iconv(cd,NULL,NULL,NULL,NULL);
9635 iconv_close(cd);
9637 return 0;
9639 _ACEOF
9640 rm -f conftest.$ac_objext conftest$ac_exeext
9641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9642 (eval $ac_link) 2>conftest.er1
9643 ac_status=$?
9644 grep -v '^ *+' conftest.er1 >conftest.err
9645 rm -f conftest.er1
9646 cat conftest.err >&5
9647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9648 (exit $ac_status); } &&
9649 { ac_try='test -z "$ac_c_werror_flag"
9650 || test ! -s conftest.err'
9651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9652 (eval $ac_try) 2>&5
9653 ac_status=$?
9654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9655 (exit $ac_status); }; } &&
9656 { ac_try='test -s conftest$ac_exeext'
9657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9658 (eval $ac_try) 2>&5
9659 ac_status=$?
9660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9661 (exit $ac_status); }; }; then
9662 am_cv_lib_iconv=yes
9663 am_cv_func_iconv=yes
9664 else
9665 echo "$as_me: failed program was:" >&5
9666 sed 's/^/| /' conftest.$ac_ext >&5
9669 rm -f conftest.err conftest.$ac_objext \
9670 conftest$ac_exeext conftest.$ac_ext
9671 LIBS="$am_save_LIBS"
9675 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
9676 echo "${ECHO_T}$am_cv_func_iconv" >&6
9677 if test "$am_cv_func_iconv" = yes; then
9679 cat >>confdefs.h <<\_ACEOF
9680 #define HAVE_ICONV 1
9681 _ACEOF
9684 if test "$am_cv_lib_iconv" = yes; then
9685 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
9686 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
9687 echo "$as_me:$LINENO: result: $LIBICONV" >&5
9688 echo "${ECHO_T}$LIBICONV" >&6
9689 else
9690 CPPFLAGS="$am_save_CPPFLAGS"
9691 LIBICONV=
9692 LTLIBICONV=
9697 if test "$am_cv_func_iconv" = yes; then
9698 echo "$as_me:$LINENO: checking for iconv declaration" >&5
9699 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
9700 if test "${am_cv_proto_iconv+set}" = set; then
9701 echo $ECHO_N "(cached) $ECHO_C" >&6
9702 else
9704 cat >conftest.$ac_ext <<_ACEOF
9705 /* confdefs.h. */
9706 _ACEOF
9707 cat confdefs.h >>conftest.$ac_ext
9708 cat >>conftest.$ac_ext <<_ACEOF
9709 /* end confdefs.h. */
9711 #include <stdlib.h>
9712 #include <iconv.h>
9713 extern
9714 #ifdef __cplusplus
9716 #endif
9717 #if defined(__STDC__) || defined(__cplusplus)
9718 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9719 #else
9720 size_t iconv();
9721 #endif
9724 main ()
9728 return 0;
9730 _ACEOF
9731 rm -f conftest.$ac_objext
9732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9733 (eval $ac_compile) 2>conftest.er1
9734 ac_status=$?
9735 grep -v '^ *+' conftest.er1 >conftest.err
9736 rm -f conftest.er1
9737 cat conftest.err >&5
9738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9739 (exit $ac_status); } &&
9740 { ac_try='test -z "$ac_c_werror_flag"
9741 || test ! -s conftest.err'
9742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9743 (eval $ac_try) 2>&5
9744 ac_status=$?
9745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9746 (exit $ac_status); }; } &&
9747 { ac_try='test -s conftest.$ac_objext'
9748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9749 (eval $ac_try) 2>&5
9750 ac_status=$?
9751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9752 (exit $ac_status); }; }; then
9753 am_cv_proto_iconv_arg1=""
9754 else
9755 echo "$as_me: failed program was:" >&5
9756 sed 's/^/| /' conftest.$ac_ext >&5
9758 am_cv_proto_iconv_arg1="const"
9760 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9761 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
9764 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9765 echo "$as_me:$LINENO: result: ${ac_t:-
9766 }$am_cv_proto_iconv" >&5
9767 echo "${ECHO_T}${ac_t:-
9768 }$am_cv_proto_iconv" >&6
9770 cat >>confdefs.h <<_ACEOF
9771 #define ICONV_CONST $am_cv_proto_iconv_arg1
9772 _ACEOF
9777 # checks for functions
9780 for ac_header in stdlib.h unistd.h
9782 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9783 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9784 echo "$as_me:$LINENO: checking for $ac_header" >&5
9785 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9786 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9787 echo $ECHO_N "(cached) $ECHO_C" >&6
9789 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9790 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9791 else
9792 # Is the header compilable?
9793 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9794 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9795 cat >conftest.$ac_ext <<_ACEOF
9796 /* confdefs.h. */
9797 _ACEOF
9798 cat confdefs.h >>conftest.$ac_ext
9799 cat >>conftest.$ac_ext <<_ACEOF
9800 /* end confdefs.h. */
9801 $ac_includes_default
9802 #include <$ac_header>
9803 _ACEOF
9804 rm -f conftest.$ac_objext
9805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9806 (eval $ac_compile) 2>conftest.er1
9807 ac_status=$?
9808 grep -v '^ *+' conftest.er1 >conftest.err
9809 rm -f conftest.er1
9810 cat conftest.err >&5
9811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9812 (exit $ac_status); } &&
9813 { ac_try='test -z "$ac_c_werror_flag"
9814 || test ! -s conftest.err'
9815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9816 (eval $ac_try) 2>&5
9817 ac_status=$?
9818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9819 (exit $ac_status); }; } &&
9820 { ac_try='test -s conftest.$ac_objext'
9821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9822 (eval $ac_try) 2>&5
9823 ac_status=$?
9824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9825 (exit $ac_status); }; }; then
9826 ac_header_compiler=yes
9827 else
9828 echo "$as_me: failed program was:" >&5
9829 sed 's/^/| /' conftest.$ac_ext >&5
9831 ac_header_compiler=no
9833 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9834 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9835 echo "${ECHO_T}$ac_header_compiler" >&6
9837 # Is the header present?
9838 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9839 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9840 cat >conftest.$ac_ext <<_ACEOF
9841 /* confdefs.h. */
9842 _ACEOF
9843 cat confdefs.h >>conftest.$ac_ext
9844 cat >>conftest.$ac_ext <<_ACEOF
9845 /* end confdefs.h. */
9846 #include <$ac_header>
9847 _ACEOF
9848 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9849 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9850 ac_status=$?
9851 grep -v '^ *+' conftest.er1 >conftest.err
9852 rm -f conftest.er1
9853 cat conftest.err >&5
9854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9855 (exit $ac_status); } >/dev/null; then
9856 if test -s conftest.err; then
9857 ac_cpp_err=$ac_c_preproc_warn_flag
9858 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9859 else
9860 ac_cpp_err=
9862 else
9863 ac_cpp_err=yes
9865 if test -z "$ac_cpp_err"; then
9866 ac_header_preproc=yes
9867 else
9868 echo "$as_me: failed program was:" >&5
9869 sed 's/^/| /' conftest.$ac_ext >&5
9871 ac_header_preproc=no
9873 rm -f conftest.err conftest.$ac_ext
9874 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9875 echo "${ECHO_T}$ac_header_preproc" >&6
9877 # So? What about this header?
9878 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9879 yes:no: )
9880 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9881 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9882 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9883 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9884 ac_header_preproc=yes
9886 no:yes:* )
9887 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9888 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9889 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9890 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9891 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9892 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9893 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9894 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9895 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9896 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9897 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9898 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9900 cat <<\_ASBOX
9901 ## ------------------------------------------ ##
9902 ## Report this to the AC_PACKAGE_NAME lists. ##
9903 ## ------------------------------------------ ##
9904 _ASBOX
9906 sed "s/^/$as_me: WARNING: /" >&2
9908 esac
9909 echo "$as_me:$LINENO: checking for $ac_header" >&5
9910 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9911 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9912 echo $ECHO_N "(cached) $ECHO_C" >&6
9913 else
9914 eval "$as_ac_Header=\$ac_header_preproc"
9916 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9917 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9920 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9921 cat >>confdefs.h <<_ACEOF
9922 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9923 _ACEOF
9927 done
9930 for ac_func in getpagesize
9932 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9933 echo "$as_me:$LINENO: checking for $ac_func" >&5
9934 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9935 if eval "test \"\${$as_ac_var+set}\" = set"; then
9936 echo $ECHO_N "(cached) $ECHO_C" >&6
9937 else
9938 cat >conftest.$ac_ext <<_ACEOF
9939 /* confdefs.h. */
9940 _ACEOF
9941 cat confdefs.h >>conftest.$ac_ext
9942 cat >>conftest.$ac_ext <<_ACEOF
9943 /* end confdefs.h. */
9944 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9945 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9946 #define $ac_func innocuous_$ac_func
9948 /* System header to define __stub macros and hopefully few prototypes,
9949 which can conflict with char $ac_func (); below.
9950 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9951 <limits.h> exists even on freestanding compilers. */
9953 #ifdef __STDC__
9954 # include <limits.h>
9955 #else
9956 # include <assert.h>
9957 #endif
9959 #undef $ac_func
9961 /* Override any gcc2 internal prototype to avoid an error. */
9962 #ifdef __cplusplus
9963 extern "C"
9965 #endif
9966 /* We use char because int might match the return type of a gcc2
9967 builtin and then its argument prototype would still apply. */
9968 char $ac_func ();
9969 /* The GNU C library defines this for functions which it implements
9970 to always fail with ENOSYS. Some functions are actually named
9971 something starting with __ and the normal name is an alias. */
9972 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9973 choke me
9974 #else
9975 char (*f) () = $ac_func;
9976 #endif
9977 #ifdef __cplusplus
9979 #endif
9982 main ()
9984 return f != $ac_func;
9986 return 0;
9988 _ACEOF
9989 rm -f conftest.$ac_objext conftest$ac_exeext
9990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9991 (eval $ac_link) 2>conftest.er1
9992 ac_status=$?
9993 grep -v '^ *+' conftest.er1 >conftest.err
9994 rm -f conftest.er1
9995 cat conftest.err >&5
9996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9997 (exit $ac_status); } &&
9998 { ac_try='test -z "$ac_c_werror_flag"
9999 || test ! -s conftest.err'
10000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10001 (eval $ac_try) 2>&5
10002 ac_status=$?
10003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10004 (exit $ac_status); }; } &&
10005 { ac_try='test -s conftest$ac_exeext'
10006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10007 (eval $ac_try) 2>&5
10008 ac_status=$?
10009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10010 (exit $ac_status); }; }; then
10011 eval "$as_ac_var=yes"
10012 else
10013 echo "$as_me: failed program was:" >&5
10014 sed 's/^/| /' conftest.$ac_ext >&5
10016 eval "$as_ac_var=no"
10018 rm -f conftest.err conftest.$ac_objext \
10019 conftest$ac_exeext conftest.$ac_ext
10021 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10022 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10023 if test `eval echo '${'$as_ac_var'}'` = yes; then
10024 cat >>confdefs.h <<_ACEOF
10025 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10026 _ACEOF
10029 done
10031 echo "$as_me:$LINENO: checking for working mmap" >&5
10032 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
10033 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10034 echo $ECHO_N "(cached) $ECHO_C" >&6
10035 else
10036 if test "$cross_compiling" = yes; then
10037 ac_cv_func_mmap_fixed_mapped=no
10038 else
10039 cat >conftest.$ac_ext <<_ACEOF
10040 /* confdefs.h. */
10041 _ACEOF
10042 cat confdefs.h >>conftest.$ac_ext
10043 cat >>conftest.$ac_ext <<_ACEOF
10044 /* end confdefs.h. */
10045 $ac_includes_default
10046 /* malloc might have been renamed as rpl_malloc. */
10047 #undef malloc
10049 /* Thanks to Mike Haertel and Jim Avera for this test.
10050 Here is a matrix of mmap possibilities:
10051 mmap private not fixed
10052 mmap private fixed at somewhere currently unmapped
10053 mmap private fixed at somewhere already mapped
10054 mmap shared not fixed
10055 mmap shared fixed at somewhere currently unmapped
10056 mmap shared fixed at somewhere already mapped
10057 For private mappings, we should verify that changes cannot be read()
10058 back from the file, nor mmap's back from the file at a different
10059 address. (There have been systems where private was not correctly
10060 implemented like the infamous i386 svr4.0, and systems where the
10061 VM page cache was not coherent with the file system buffer cache
10062 like early versions of FreeBSD and possibly contemporary NetBSD.)
10063 For shared mappings, we should conversely verify that changes get
10064 propagated back to all the places they're supposed to be.
10066 Grep wants private fixed already mapped.
10067 The main things grep needs to know about mmap are:
10068 * does it exist and is it safe to write into the mmap'd area
10069 * how to use it (BSD variants) */
10071 #include <fcntl.h>
10072 #include <sys/mman.h>
10074 #if !STDC_HEADERS && !HAVE_STDLIB_H
10075 char *malloc ();
10076 #endif
10078 /* This mess was copied from the GNU getpagesize.h. */
10079 #if !HAVE_GETPAGESIZE
10080 /* Assume that all systems that can run configure have sys/param.h. */
10081 # if !HAVE_SYS_PARAM_H
10082 # define HAVE_SYS_PARAM_H 1
10083 # endif
10085 # ifdef _SC_PAGESIZE
10086 # define getpagesize() sysconf(_SC_PAGESIZE)
10087 # else /* no _SC_PAGESIZE */
10088 # if HAVE_SYS_PARAM_H
10089 # include <sys/param.h>
10090 # ifdef EXEC_PAGESIZE
10091 # define getpagesize() EXEC_PAGESIZE
10092 # else /* no EXEC_PAGESIZE */
10093 # ifdef NBPG
10094 # define getpagesize() NBPG * CLSIZE
10095 # ifndef CLSIZE
10096 # define CLSIZE 1
10097 # endif /* no CLSIZE */
10098 # else /* no NBPG */
10099 # ifdef NBPC
10100 # define getpagesize() NBPC
10101 # else /* no NBPC */
10102 # ifdef PAGESIZE
10103 # define getpagesize() PAGESIZE
10104 # endif /* PAGESIZE */
10105 # endif /* no NBPC */
10106 # endif /* no NBPG */
10107 # endif /* no EXEC_PAGESIZE */
10108 # else /* no HAVE_SYS_PARAM_H */
10109 # define getpagesize() 8192 /* punt totally */
10110 # endif /* no HAVE_SYS_PARAM_H */
10111 # endif /* no _SC_PAGESIZE */
10113 #endif /* no HAVE_GETPAGESIZE */
10116 main ()
10118 char *data, *data2, *data3;
10119 int i, pagesize;
10120 int fd;
10122 pagesize = getpagesize ();
10124 /* First, make a file with some known garbage in it. */
10125 data = (char *) malloc (pagesize);
10126 if (!data)
10127 exit (1);
10128 for (i = 0; i < pagesize; ++i)
10129 *(data + i) = rand ();
10130 umask (0);
10131 fd = creat ("conftest.mmap", 0600);
10132 if (fd < 0)
10133 exit (1);
10134 if (write (fd, data, pagesize) != pagesize)
10135 exit (1);
10136 close (fd);
10138 /* Next, try to mmap the file at a fixed address which already has
10139 something else allocated at it. If we can, also make sure that
10140 we see the same garbage. */
10141 fd = open ("conftest.mmap", O_RDWR);
10142 if (fd < 0)
10143 exit (1);
10144 data2 = (char *) malloc (2 * pagesize);
10145 if (!data2)
10146 exit (1);
10147 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10148 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10149 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10150 exit (1);
10151 for (i = 0; i < pagesize; ++i)
10152 if (*(data + i) != *(data2 + i))
10153 exit (1);
10155 /* Finally, make sure that changes to the mapped area do not
10156 percolate back to the file as seen by read(). (This is a bug on
10157 some variants of i386 svr4.0.) */
10158 for (i = 0; i < pagesize; ++i)
10159 *(data2 + i) = *(data2 + i) + 1;
10160 data3 = (char *) malloc (pagesize);
10161 if (!data3)
10162 exit (1);
10163 if (read (fd, data3, pagesize) != pagesize)
10164 exit (1);
10165 for (i = 0; i < pagesize; ++i)
10166 if (*(data + i) != *(data3 + i))
10167 exit (1);
10168 close (fd);
10169 exit (0);
10171 _ACEOF
10172 rm -f conftest$ac_exeext
10173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10174 (eval $ac_link) 2>&5
10175 ac_status=$?
10176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10177 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10179 (eval $ac_try) 2>&5
10180 ac_status=$?
10181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10182 (exit $ac_status); }; }; then
10183 ac_cv_func_mmap_fixed_mapped=yes
10184 else
10185 echo "$as_me: program exited with status $ac_status" >&5
10186 echo "$as_me: failed program was:" >&5
10187 sed 's/^/| /' conftest.$ac_ext >&5
10189 ( exit $ac_status )
10190 ac_cv_func_mmap_fixed_mapped=no
10192 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10195 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10196 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
10197 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10199 cat >>confdefs.h <<\_ACEOF
10200 #define HAVE_MMAP 1
10201 _ACEOF
10204 rm -f conftest.mmap
10206 saved_libs="$LIBS"
10207 LIBS="$LIBS $LIBC $LIBM"
10216 for ac_func in fmod getcwd putenv snprintf strcasecmp \
10217 strerror strncasecmp strtol
10219 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10220 echo "$as_me:$LINENO: checking for $ac_func" >&5
10221 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10222 if eval "test \"\${$as_ac_var+set}\" = set"; then
10223 echo $ECHO_N "(cached) $ECHO_C" >&6
10224 else
10225 cat >conftest.$ac_ext <<_ACEOF
10226 /* confdefs.h. */
10227 _ACEOF
10228 cat confdefs.h >>conftest.$ac_ext
10229 cat >>conftest.$ac_ext <<_ACEOF
10230 /* end confdefs.h. */
10231 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10232 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10233 #define $ac_func innocuous_$ac_func
10235 /* System header to define __stub macros and hopefully few prototypes,
10236 which can conflict with char $ac_func (); below.
10237 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10238 <limits.h> exists even on freestanding compilers. */
10240 #ifdef __STDC__
10241 # include <limits.h>
10242 #else
10243 # include <assert.h>
10244 #endif
10246 #undef $ac_func
10248 /* Override any gcc2 internal prototype to avoid an error. */
10249 #ifdef __cplusplus
10250 extern "C"
10252 #endif
10253 /* We use char because int might match the return type of a gcc2
10254 builtin and then its argument prototype would still apply. */
10255 char $ac_func ();
10256 /* The GNU C library defines this for functions which it implements
10257 to always fail with ENOSYS. Some functions are actually named
10258 something starting with __ and the normal name is an alias. */
10259 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10260 choke me
10261 #else
10262 char (*f) () = $ac_func;
10263 #endif
10264 #ifdef __cplusplus
10266 #endif
10269 main ()
10271 return f != $ac_func;
10273 return 0;
10275 _ACEOF
10276 rm -f conftest.$ac_objext conftest$ac_exeext
10277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10278 (eval $ac_link) 2>conftest.er1
10279 ac_status=$?
10280 grep -v '^ *+' conftest.er1 >conftest.err
10281 rm -f conftest.er1
10282 cat conftest.err >&5
10283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10284 (exit $ac_status); } &&
10285 { ac_try='test -z "$ac_c_werror_flag"
10286 || test ! -s conftest.err'
10287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10288 (eval $ac_try) 2>&5
10289 ac_status=$?
10290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10291 (exit $ac_status); }; } &&
10292 { ac_try='test -s conftest$ac_exeext'
10293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10294 (eval $ac_try) 2>&5
10295 ac_status=$?
10296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10297 (exit $ac_status); }; }; then
10298 eval "$as_ac_var=yes"
10299 else
10300 echo "$as_me: failed program was:" >&5
10301 sed 's/^/| /' conftest.$ac_ext >&5
10303 eval "$as_ac_var=no"
10305 rm -f conftest.err conftest.$ac_objext \
10306 conftest$ac_exeext conftest.$ac_ext
10308 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10309 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10310 if test `eval echo '${'$as_ac_var'}'` = yes; then
10311 cat >>confdefs.h <<_ACEOF
10312 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10313 _ACEOF
10315 else
10316 case $LIBOBJS in
10317 "$ac_func.$ac_objext" | \
10318 *" $ac_func.$ac_objext" | \
10319 "$ac_func.$ac_objext "* | \
10320 *" $ac_func.$ac_objext "* ) ;;
10321 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
10322 esac
10325 done
10328 # vsnprintf is in the same source file as snprintf
10330 for ac_func in vsnprintf
10332 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10333 echo "$as_me:$LINENO: checking for $ac_func" >&5
10334 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10335 if eval "test \"\${$as_ac_var+set}\" = set"; then
10336 echo $ECHO_N "(cached) $ECHO_C" >&6
10337 else
10338 cat >conftest.$ac_ext <<_ACEOF
10339 /* confdefs.h. */
10340 _ACEOF
10341 cat confdefs.h >>conftest.$ac_ext
10342 cat >>conftest.$ac_ext <<_ACEOF
10343 /* end confdefs.h. */
10344 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10345 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10346 #define $ac_func innocuous_$ac_func
10348 /* System header to define __stub macros and hopefully few prototypes,
10349 which can conflict with char $ac_func (); below.
10350 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10351 <limits.h> exists even on freestanding compilers. */
10353 #ifdef __STDC__
10354 # include <limits.h>
10355 #else
10356 # include <assert.h>
10357 #endif
10359 #undef $ac_func
10361 /* Override any gcc2 internal prototype to avoid an error. */
10362 #ifdef __cplusplus
10363 extern "C"
10365 #endif
10366 /* We use char because int might match the return type of a gcc2
10367 builtin and then its argument prototype would still apply. */
10368 char $ac_func ();
10369 /* The GNU C library defines this for functions which it implements
10370 to always fail with ENOSYS. Some functions are actually named
10371 something starting with __ and the normal name is an alias. */
10372 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10373 choke me
10374 #else
10375 char (*f) () = $ac_func;
10376 #endif
10377 #ifdef __cplusplus
10379 #endif
10382 main ()
10384 return f != $ac_func;
10386 return 0;
10388 _ACEOF
10389 rm -f conftest.$ac_objext conftest$ac_exeext
10390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10391 (eval $ac_link) 2>conftest.er1
10392 ac_status=$?
10393 grep -v '^ *+' conftest.er1 >conftest.err
10394 rm -f conftest.er1
10395 cat conftest.err >&5
10396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10397 (exit $ac_status); } &&
10398 { ac_try='test -z "$ac_c_werror_flag"
10399 || test ! -s conftest.err'
10400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10401 (eval $ac_try) 2>&5
10402 ac_status=$?
10403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10404 (exit $ac_status); }; } &&
10405 { ac_try='test -s conftest$ac_exeext'
10406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10407 (eval $ac_try) 2>&5
10408 ac_status=$?
10409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10410 (exit $ac_status); }; }; then
10411 eval "$as_ac_var=yes"
10412 else
10413 echo "$as_me: failed program was:" >&5
10414 sed 's/^/| /' conftest.$ac_ext >&5
10416 eval "$as_ac_var=no"
10418 rm -f conftest.err conftest.$ac_objext \
10419 conftest$ac_exeext conftest.$ac_ext
10421 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10422 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10423 if test `eval echo '${'$as_ac_var'}'` = yes; then
10424 cat >>confdefs.h <<_ACEOF
10425 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10426 _ACEOF
10428 else
10429 case $LIBOBJS in
10430 "snprintf.$ac_objext" | \
10431 *" snprintf.$ac_objext" | \
10432 "snprintf.$ac_objext "* | \
10433 *" snprintf.$ac_objext "* ) ;;
10434 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" ;;
10435 esac
10438 done
10440 LIBS="$saved_libs"
10447 for ac_func in gettimeofday isatty kill rename setlocale strsep
10449 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10450 echo "$as_me:$LINENO: checking for $ac_func" >&5
10451 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10452 if eval "test \"\${$as_ac_var+set}\" = set"; then
10453 echo $ECHO_N "(cached) $ECHO_C" >&6
10454 else
10455 cat >conftest.$ac_ext <<_ACEOF
10456 /* confdefs.h. */
10457 _ACEOF
10458 cat confdefs.h >>conftest.$ac_ext
10459 cat >>conftest.$ac_ext <<_ACEOF
10460 /* end confdefs.h. */
10461 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10462 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10463 #define $ac_func innocuous_$ac_func
10465 /* System header to define __stub macros and hopefully few prototypes,
10466 which can conflict with char $ac_func (); below.
10467 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10468 <limits.h> exists even on freestanding compilers. */
10470 #ifdef __STDC__
10471 # include <limits.h>
10472 #else
10473 # include <assert.h>
10474 #endif
10476 #undef $ac_func
10478 /* Override any gcc2 internal prototype to avoid an error. */
10479 #ifdef __cplusplus
10480 extern "C"
10482 #endif
10483 /* We use char because int might match the return type of a gcc2
10484 builtin and then its argument prototype would still apply. */
10485 char $ac_func ();
10486 /* The GNU C library defines this for functions which it implements
10487 to always fail with ENOSYS. Some functions are actually named
10488 something starting with __ and the normal name is an alias. */
10489 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10490 choke me
10491 #else
10492 char (*f) () = $ac_func;
10493 #endif
10494 #ifdef __cplusplus
10496 #endif
10499 main ()
10501 return f != $ac_func;
10503 return 0;
10505 _ACEOF
10506 rm -f conftest.$ac_objext conftest$ac_exeext
10507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10508 (eval $ac_link) 2>conftest.er1
10509 ac_status=$?
10510 grep -v '^ *+' conftest.er1 >conftest.err
10511 rm -f conftest.er1
10512 cat conftest.err >&5
10513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10514 (exit $ac_status); } &&
10515 { ac_try='test -z "$ac_c_werror_flag"
10516 || test ! -s conftest.err'
10517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10518 (eval $ac_try) 2>&5
10519 ac_status=$?
10520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10521 (exit $ac_status); }; } &&
10522 { ac_try='test -s conftest$ac_exeext'
10523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10524 (eval $ac_try) 2>&5
10525 ac_status=$?
10526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10527 (exit $ac_status); }; }; then
10528 eval "$as_ac_var=yes"
10529 else
10530 echo "$as_me: failed program was:" >&5
10531 sed 's/^/| /' conftest.$ac_ext >&5
10533 eval "$as_ac_var=no"
10535 rm -f conftest.err conftest.$ac_objext \
10536 conftest$ac_exeext conftest.$ac_ext
10538 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10539 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10540 if test `eval echo '${'$as_ac_var'}'` = yes; then
10541 cat >>confdefs.h <<_ACEOF
10542 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10543 _ACEOF
10546 done
10548 echo "$as_me:$LINENO: checking for mkstemp" >&5
10549 echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
10550 ac_ext=cc
10551 ac_cpp='$CXXCPP $CPPFLAGS'
10552 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10553 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10554 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10557 cat >conftest.$ac_ext <<_ACEOF
10559 /* confdefs.h. */
10560 _ACEOF
10561 cat confdefs.h >>conftest.$ac_ext
10562 cat >>conftest.$ac_ext <<_ACEOF
10563 /* end confdefs.h. */
10566 #include <stdlib.h>
10567 #include <unistd.h>
10568 int (*f) (char *);
10572 main ()
10576 f = mkstemp;
10580 return 0;
10583 _ACEOF
10584 rm -f conftest.$ac_objext conftest$ac_exeext
10585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10586 (eval $ac_link) 2>conftest.er1
10587 ac_status=$?
10588 grep -v '^ *+' conftest.er1 >conftest.err
10589 rm -f conftest.er1
10590 cat conftest.err >&5
10591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10592 (exit $ac_status); } &&
10593 { ac_try='test -z "$ac_cxx_werror_flag"
10594 || test ! -s conftest.err'
10595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10596 (eval $ac_try) 2>&5
10597 ac_status=$?
10598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10599 (exit $ac_status); }; } &&
10600 { ac_try='test -s conftest$ac_exeext'
10601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10602 (eval $ac_try) 2>&5
10603 ac_status=$?
10604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10605 (exit $ac_status); }; }; then
10606 echo "$as_me:$LINENO: result: yes" >&5
10607 echo "${ECHO_T}yes" >&6
10609 cat >>confdefs.h <<\_ACEOF
10610 #define HAVE_MKSTEMP 1
10611 _ACEOF
10613 else
10614 echo "$as_me: failed program was:" >&5
10615 sed 's/^/| /' conftest.$ac_ext >&5
10617 echo "$as_me:$LINENO: result: no" >&5
10618 echo "${ECHO_T}no" >&6
10619 case $LIBOBJS in
10620 "mkstemp.$ac_objext" | \
10621 *" mkstemp.$ac_objext" | \
10622 "mkstemp.$ac_objext "* | \
10623 *" mkstemp.$ac_objext "* ) ;;
10624 *) LIBOBJS="$LIBOBJS mkstemp.$ac_objext" ;;
10625 esac
10628 rm -f conftest.err conftest.$ac_objext \
10629 conftest$ac_exeext conftest.$ac_ext
10630 ac_ext=c
10631 ac_cpp='$CPP $CPPFLAGS'
10632 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10633 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10634 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10636 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
10637 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
10638 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
10639 echo $ECHO_N "(cached) $ECHO_C" >&6
10640 else
10641 cat >conftest.$ac_ext <<_ACEOF
10642 /* confdefs.h. */
10643 _ACEOF
10644 cat confdefs.h >>conftest.$ac_ext
10645 cat >>conftest.$ac_ext <<_ACEOF
10646 /* end confdefs.h. */
10647 $ac_includes_default
10649 main ()
10651 #ifndef sys_siglist
10652 char *p = (char *) sys_siglist;
10653 #endif
10656 return 0;
10658 _ACEOF
10659 rm -f conftest.$ac_objext
10660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10661 (eval $ac_compile) 2>conftest.er1
10662 ac_status=$?
10663 grep -v '^ *+' conftest.er1 >conftest.err
10664 rm -f conftest.er1
10665 cat conftest.err >&5
10666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10667 (exit $ac_status); } &&
10668 { ac_try='test -z "$ac_c_werror_flag"
10669 || test ! -s conftest.err'
10670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10671 (eval $ac_try) 2>&5
10672 ac_status=$?
10673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10674 (exit $ac_status); }; } &&
10675 { ac_try='test -s conftest.$ac_objext'
10676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10677 (eval $ac_try) 2>&5
10678 ac_status=$?
10679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10680 (exit $ac_status); }; }; then
10681 ac_cv_have_decl_sys_siglist=yes
10682 else
10683 echo "$as_me: failed program was:" >&5
10684 sed 's/^/| /' conftest.$ac_ext >&5
10686 ac_cv_have_decl_sys_siglist=no
10688 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10690 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
10691 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
10692 if test $ac_cv_have_decl_sys_siglist = yes; then
10694 cat >>confdefs.h <<_ACEOF
10695 #define HAVE_DECL_SYS_SIGLIST 1
10696 _ACEOF
10699 else
10700 cat >>confdefs.h <<_ACEOF
10701 #define HAVE_DECL_SYS_SIGLIST 0
10702 _ACEOF
10706 echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
10707 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
10708 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
10709 echo $ECHO_N "(cached) $ECHO_C" >&6
10710 else
10711 cat >conftest.$ac_ext <<_ACEOF
10712 /* confdefs.h. */
10713 _ACEOF
10714 cat confdefs.h >>conftest.$ac_ext
10715 cat >>conftest.$ac_ext <<_ACEOF
10716 /* end confdefs.h. */
10717 $ac_includes_default
10719 main ()
10721 #ifndef getc_unlocked
10722 char *p = (char *) getc_unlocked;
10723 #endif
10726 return 0;
10728 _ACEOF
10729 rm -f conftest.$ac_objext
10730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10731 (eval $ac_compile) 2>conftest.er1
10732 ac_status=$?
10733 grep -v '^ *+' conftest.er1 >conftest.err
10734 rm -f conftest.er1
10735 cat conftest.err >&5
10736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10737 (exit $ac_status); } &&
10738 { ac_try='test -z "$ac_c_werror_flag"
10739 || test ! -s conftest.err'
10740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10741 (eval $ac_try) 2>&5
10742 ac_status=$?
10743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10744 (exit $ac_status); }; } &&
10745 { ac_try='test -s conftest.$ac_objext'
10746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10747 (eval $ac_try) 2>&5
10748 ac_status=$?
10749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10750 (exit $ac_status); }; }; then
10751 ac_cv_have_decl_getc_unlocked=yes
10752 else
10753 echo "$as_me: failed program was:" >&5
10754 sed 's/^/| /' conftest.$ac_ext >&5
10756 ac_cv_have_decl_getc_unlocked=no
10758 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10760 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
10761 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
10762 if test $ac_cv_have_decl_getc_unlocked = yes; then
10764 cat >>confdefs.h <<_ACEOF
10765 #define HAVE_DECL_GETC_UNLOCKED 1
10766 _ACEOF
10769 else
10770 cat >>confdefs.h <<_ACEOF
10771 #define HAVE_DECL_GETC_UNLOCKED 0
10772 _ACEOF
10779 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
10780 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
10781 if test "${am_cv_langinfo_codeset+set}" = set; then
10782 echo $ECHO_N "(cached) $ECHO_C" >&6
10783 else
10784 cat >conftest.$ac_ext <<_ACEOF
10785 /* confdefs.h. */
10786 _ACEOF
10787 cat confdefs.h >>conftest.$ac_ext
10788 cat >>conftest.$ac_ext <<_ACEOF
10789 /* end confdefs.h. */
10790 #include <langinfo.h>
10792 main ()
10794 char* cs = nl_langinfo(CODESET);
10796 return 0;
10798 _ACEOF
10799 rm -f conftest.$ac_objext conftest$ac_exeext
10800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10801 (eval $ac_link) 2>conftest.er1
10802 ac_status=$?
10803 grep -v '^ *+' conftest.er1 >conftest.err
10804 rm -f conftest.er1
10805 cat conftest.err >&5
10806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10807 (exit $ac_status); } &&
10808 { ac_try='test -z "$ac_c_werror_flag"
10809 || test ! -s conftest.err'
10810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10811 (eval $ac_try) 2>&5
10812 ac_status=$?
10813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10814 (exit $ac_status); }; } &&
10815 { ac_try='test -s conftest$ac_exeext'
10816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10817 (eval $ac_try) 2>&5
10818 ac_status=$?
10819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10820 (exit $ac_status); }; }; then
10821 am_cv_langinfo_codeset=yes
10822 else
10823 echo "$as_me: failed program was:" >&5
10824 sed 's/^/| /' conftest.$ac_ext >&5
10826 am_cv_langinfo_codeset=no
10828 rm -f conftest.err conftest.$ac_objext \
10829 conftest$ac_exeext conftest.$ac_ext
10832 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
10833 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
10834 if test $am_cv_langinfo_codeset = yes; then
10836 cat >>confdefs.h <<\_ACEOF
10837 #define HAVE_LANGINFO_CODESET 1
10838 _ACEOF
10843 # checks for compiler characteristics
10844 ac_ext=cc
10845 ac_cpp='$CXXCPP $CPPFLAGS'
10846 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10847 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10848 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10850 echo "$as_me:$LINENO: checking whether ANSI array delete syntax is supported" >&5
10851 echo $ECHO_N "checking whether ANSI array delete syntax is supported... $ECHO_C" >&6
10852 cat >conftest.$ac_ext <<_ACEOF
10854 /* confdefs.h. */
10855 _ACEOF
10856 cat confdefs.h >>conftest.$ac_ext
10857 cat >>conftest.$ac_ext <<_ACEOF
10858 /* end confdefs.h. */
10861 main ()
10865 char *p = new char[5];
10866 delete [] p;
10870 return 0;
10873 _ACEOF
10874 rm -f conftest.$ac_objext
10875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10876 (eval $ac_compile) 2>conftest.er1
10877 ac_status=$?
10878 grep -v '^ *+' conftest.er1 >conftest.err
10879 rm -f conftest.er1
10880 cat conftest.err >&5
10881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10882 (exit $ac_status); } &&
10883 { ac_try='test -z "$ac_cxx_werror_flag"
10884 || test ! -s conftest.err'
10885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10886 (eval $ac_try) 2>&5
10887 ac_status=$?
10888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10889 (exit $ac_status); }; } &&
10890 { ac_try='test -s conftest.$ac_objext'
10891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10892 (eval $ac_try) 2>&5
10893 ac_status=$?
10894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10895 (exit $ac_status); }; }; then
10896 echo "$as_me:$LINENO: result: yes" >&5
10897 echo "${ECHO_T}yes" >&6
10898 else
10899 echo "$as_me: failed program was:" >&5
10900 sed 's/^/| /' conftest.$ac_ext >&5
10902 echo "$as_me:$LINENO: result: no" >&5
10903 echo "${ECHO_T}no" >&6
10905 cat >>confdefs.h <<\_ACEOF
10906 #define ARRAY_DELETE_NEEDS_SIZE 1
10907 _ACEOF
10910 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10911 ac_ext=c
10912 ac_cpp='$CPP $CPPFLAGS'
10913 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10914 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10915 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10917 ac_ext=cc
10918 ac_cpp='$CXXCPP $CPPFLAGS'
10919 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10920 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10921 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10923 echo "$as_me:$LINENO: checking traditional preprocessor" >&5
10924 echo $ECHO_N "checking traditional preprocessor... $ECHO_C" >&6
10925 cat >conftest.$ac_ext <<_ACEOF
10927 /* confdefs.h. */
10928 _ACEOF
10929 cat confdefs.h >>conftest.$ac_ext
10930 cat >>conftest.$ac_ext <<_ACEOF
10931 /* end confdefs.h. */
10934 #define name2(a, b) a/**/b
10938 main ()
10942 int name2(foo, bar);
10946 return 0;
10949 _ACEOF
10950 rm -f conftest.$ac_objext
10951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10952 (eval $ac_compile) 2>conftest.er1
10953 ac_status=$?
10954 grep -v '^ *+' conftest.er1 >conftest.err
10955 rm -f conftest.er1
10956 cat conftest.err >&5
10957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10958 (exit $ac_status); } &&
10959 { ac_try='test -z "$ac_cxx_werror_flag"
10960 || test ! -s conftest.err'
10961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10962 (eval $ac_try) 2>&5
10963 ac_status=$?
10964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10965 (exit $ac_status); }; } &&
10966 { ac_try='test -s conftest.$ac_objext'
10967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10968 (eval $ac_try) 2>&5
10969 ac_status=$?
10970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10971 (exit $ac_status); }; }; then
10972 echo "$as_me:$LINENO: result: yes" >&5
10973 echo "${ECHO_T}yes" >&6
10975 cat >>confdefs.h <<\_ACEOF
10976 #define TRADITIONAL_CPP 1
10977 _ACEOF
10979 else
10980 echo "$as_me: failed program was:" >&5
10981 sed 's/^/| /' conftest.$ac_ext >&5
10983 echo "$as_me:$LINENO: result: no" >&5
10984 echo "${ECHO_T}no" >&6
10986 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10987 ac_ext=c
10988 ac_cpp='$CPP $CPPFLAGS'
10989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10994 # checks for operating system services
10995 echo "$as_me:$LINENO: checking w_coredump" >&5
10996 echo $ECHO_N "checking w_coredump... $ECHO_C" >&6
10997 if test "$cross_compiling" = yes; then
10998 echo "$as_me:$LINENO: result: no" >&5
10999 echo "${ECHO_T}no" >&6
11000 else
11001 cat >conftest.$ac_ext <<_ACEOF
11003 /* confdefs.h. */
11004 _ACEOF
11005 cat confdefs.h >>conftest.$ac_ext
11006 cat >>conftest.$ac_ext <<_ACEOF
11007 /* end confdefs.h. */
11010 #include <sys/types.h>
11011 #include <sys/wait.h>
11015 main ()
11019 main()
11021 #ifdef WCOREFLAG
11022 exit(1);
11023 #else
11024 int i = 0;
11025 ((union wait *)&i)->w_coredump = 1;
11026 exit(i != 0200);
11027 #endif
11032 return 0;
11035 _ACEOF
11036 rm -f conftest$ac_exeext
11037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11038 (eval $ac_link) 2>&5
11039 ac_status=$?
11040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11041 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11043 (eval $ac_try) 2>&5
11044 ac_status=$?
11045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11046 (exit $ac_status); }; }; then
11047 echo "$as_me:$LINENO: result: yes" >&5
11048 echo "${ECHO_T}yes" >&6
11050 cat >>confdefs.h <<\_ACEOF
11051 #define WCOREFLAG 0200
11052 _ACEOF
11054 else
11055 echo "$as_me: program exited with status $ac_status" >&5
11056 echo "$as_me: failed program was:" >&5
11057 sed 's/^/| /' conftest.$ac_ext >&5
11059 ( exit $ac_status )
11060 echo "$as_me:$LINENO: result: no" >&5
11061 echo "${ECHO_T}no" >&6
11063 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11066 # other random stuff
11067 echo "$as_me:$LINENO: checking default value for grops -b option" >&5
11068 echo $ECHO_N "checking default value for grops -b option... $ECHO_C" >&6
11069 test -n "${BROKEN_SPOOLER_FLAGS}" || BROKEN_SPOOLER_FLAGS=0
11070 echo "$as_me:$LINENO: result: $BROKEN_SPOOLER_FLAGS" >&5
11071 echo "${ECHO_T}$BROKEN_SPOOLER_FLAGS" >&6
11073 echo "$as_me:$LINENO: checking default paper size" >&5
11074 echo $ECHO_N "checking default paper size... $ECHO_C" >&6
11075 groff_prefix=$prefix
11076 test "x$prefix" = "xNONE" && groff_prefix=$ac_default_prefix
11077 if test -z "$PAGE"; then
11078 descfile=
11079 if test -r $groff_prefix/share/groff/font/devps/DESC; then
11080 descfile=$groff_prefix/share/groff/font/devps/DESC
11081 elif test -r $groff_prefix/lib/groff/font/devps/DESC; then
11082 descfile=$groff_prefix/lib/groff/font/devps/DESC
11083 else
11084 for f in $groff_prefix/share/groff/*/font/devps/DESC; do
11085 if test -r $f; then
11086 descfile=$f
11087 break
11089 done
11092 if test -n "$descfile"; then
11093 if grep '^paperlength[ ]\+841890' $descfile >/dev/null 2>&1; then
11094 PAGE=A4
11095 elif grep '^papersize[ ]\+[aA]4' $descfile >/dev/null 2>&1; then
11096 PAGE=A4
11101 if test -z "$PAGE"; then
11102 dom=`awk '($1 == "dom" || $1 == "search") { print $2; exit}' \
11103 /etc/resolv.conf 2>/dev/null`
11104 if test -z "$dom"; then
11105 dom=`(domainname) 2>/dev/null | tr -d '+'`
11106 if test -z "$dom" \
11107 || test "$dom" = '(none)'; then
11108 dom=`(hostname) 2>/dev/null | grep '\.'`
11111 # If the top-level domain is two letters and it's not `us' or `ca'
11112 # then they probably use A4 paper.
11113 case "$dom" in
11114 *.[Uu][Ss]|*.[Cc][Aa])
11116 *.[A-Za-z][A-Za-z])
11117 PAGE=A4 ;;
11118 esac
11121 test -n "$PAGE" || PAGE=letter
11122 if test "x$PAGE" = "xA4"; then
11124 cat >>confdefs.h <<\_ACEOF
11125 #define PAGEA4 1
11126 _ACEOF
11129 echo "$as_me:$LINENO: result: $PAGE" >&5
11130 echo "${ECHO_T}$PAGE" >&6
11132 echo "$as_me:$LINENO: checking for existing troff installation" >&5
11133 echo $ECHO_N "checking for existing troff installation... $ECHO_C" >&6
11134 if test "x`(echo .tm '|n(.g' | tr '|' '\\\\' | troff -z -i 2>&1) 2>/dev/null`" = x0; then
11135 echo "$as_me:$LINENO: result: yes" >&5
11136 echo "${ECHO_T}yes" >&6
11138 else
11139 echo "$as_me:$LINENO: result: no" >&5
11140 echo "${ECHO_T}no" >&6
11144 echo "$as_me:$LINENO: checking for prefix of system macro packages" >&5
11145 echo $ECHO_N "checking for prefix of system macro packages... $ECHO_C" >&6
11146 sys_tmac_prefix=
11147 sys_tmac_file_prefix=
11148 for d in /usr/share/lib/tmac /usr/lib/tmac; do
11149 for t in "" tmac.; do
11150 for m in an s m; do
11151 f=$d/$t$m
11152 if test -z "$sys_tmac_prefix" \
11153 && test -f $f \
11154 && grep '^\.if' $f >/dev/null 2>&1; then
11155 sys_tmac_prefix=$d/$t
11156 sys_tmac_file_prefix=$t
11158 done
11159 done
11160 done
11161 echo "$as_me:$LINENO: result: $sys_tmac_prefix" >&5
11162 echo "${ECHO_T}$sys_tmac_prefix" >&6
11165 echo "$as_me:$LINENO: checking which system macro packages should be made available" >&5
11166 echo $ECHO_N "checking which system macro packages should be made available... $ECHO_C" >&6
11167 tmac_wrap=
11168 if test "x$sys_tmac_file_prefix" = "xtmac."; then
11169 for f in $sys_tmac_prefix*; do
11170 suff=`echo $f | sed -e "s;$sys_tmac_prefix;;"`
11171 case "$suff" in
11175 grep "Copyright.*Free Software Foundation" $f >/dev/null \
11176 || tmac_wrap="$tmac_wrap $suff" ;;
11177 esac
11178 done
11179 elif test -n "$sys_tmac_prefix"; then
11180 files=`echo $sys_tmac_prefix*`
11181 grep "\\.so" $files >conftest.sol
11182 for f in $files; do
11183 case "$f" in
11184 ${sys_tmac_prefix}e)
11186 *.me)
11188 */ms.*)
11191 b=`basename $f`
11192 if grep "\\.so.*/$b\$" conftest.sol >/dev/null \
11193 || grep -l "Copyright.*Free Software Foundation" $f >/dev/null; then
11195 else
11196 suff=`echo $f | sed -e "s;$sys_tmac_prefix;;"`
11197 case "$suff" in
11198 tmac.*)
11201 tmac_wrap="$tmac_wrap $suff" ;;
11202 esac
11204 esac
11205 done
11206 rm -f conftest.sol
11208 echo "$as_me:$LINENO: result: $tmac_wrap" >&5
11209 echo "${ECHO_T}$tmac_wrap" >&6
11211 echo "$as_me:$LINENO: checking separator character to use in groff search paths" >&5
11212 echo $ECHO_N "checking separator character to use in groff search paths... $ECHO_C" >&6
11213 cp ${srcdir}/src/include/nonposix.h conftest.h
11214 cat >conftest.$ac_ext <<_ACEOF
11216 /* confdefs.h. */
11217 _ACEOF
11218 cat confdefs.h >>conftest.$ac_ext
11219 cat >>conftest.$ac_ext <<_ACEOF
11220 /* end confdefs.h. */
11223 #include <ctype.h>
11224 #include "conftest.h"
11228 main ()
11232 #if PATH_SEP_CHAR == ';'
11233 make an error "Path separator is ';'"
11234 #endif
11238 return 0;
11241 _ACEOF
11242 rm -f conftest.$ac_objext
11243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11244 (eval $ac_compile) 2>conftest.er1
11245 ac_status=$?
11246 grep -v '^ *+' conftest.er1 >conftest.err
11247 rm -f conftest.er1
11248 cat conftest.err >&5
11249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11250 (exit $ac_status); } &&
11251 { ac_try='test -z "$ac_c_werror_flag"
11252 || test ! -s conftest.err'
11253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11254 (eval $ac_try) 2>&5
11255 ac_status=$?
11256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11257 (exit $ac_status); }; } &&
11258 { ac_try='test -s conftest.$ac_objext'
11259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11260 (eval $ac_try) 2>&5
11261 ac_status=$?
11262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11263 (exit $ac_status); }; }; then
11264 GROFF_PATH_SEPARATOR=":"
11265 else
11266 echo "$as_me: failed program was:" >&5
11267 sed 's/^/| /' conftest.$ac_ext >&5
11269 GROFF_PATH_SEPARATOR=";"
11271 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11272 echo "$as_me:$LINENO: result: $GROFF_PATH_SEPARATOR" >&5
11273 echo "${ECHO_T}$GROFF_PATH_SEPARATOR" >&6
11276 # Check whether --with-alt-gs or --without-alt-gs was given.
11277 if test "${with_alt_gs+set}" = set; then
11278 withval="$with_alt_gs"
11279 ALT_GHOSTSCRIPT_PROGS="$withval"
11280 else
11281 ALT_GHOSTSCRIPT_PROGS="gs gswin32c gsos2"
11286 # Check whether --with-gs or --without-gs was given.
11287 if test "${with_gs+set}" = set; then
11288 withval="$with_gs"
11289 GHOSTSCRIPT=$withval
11290 else
11291 if test -n "$ac_tool_prefix"; then
11292 for ac_prog in $ALT_GHOSTSCRIPT_PROGS
11294 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11295 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11296 echo "$as_me:$LINENO: checking for $ac_word" >&5
11297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11298 if test "${ac_cv_prog_GHOSTSCRIPT+set}" = set; then
11299 echo $ECHO_N "(cached) $ECHO_C" >&6
11300 else
11301 if test -n "$GHOSTSCRIPT"; then
11302 ac_cv_prog_GHOSTSCRIPT="$GHOSTSCRIPT" # Let the user override the test.
11303 else
11304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11305 for as_dir in $PATH
11307 IFS=$as_save_IFS
11308 test -z "$as_dir" && as_dir=.
11309 for ac_exec_ext in '' $ac_executable_extensions; do
11310 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11311 ac_cv_prog_GHOSTSCRIPT="$ac_tool_prefix$ac_prog"
11312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11313 break 2
11315 done
11316 done
11320 GHOSTSCRIPT=$ac_cv_prog_GHOSTSCRIPT
11321 if test -n "$GHOSTSCRIPT"; then
11322 echo "$as_me:$LINENO: result: $GHOSTSCRIPT" >&5
11323 echo "${ECHO_T}$GHOSTSCRIPT" >&6
11324 else
11325 echo "$as_me:$LINENO: result: no" >&5
11326 echo "${ECHO_T}no" >&6
11329 test -n "$GHOSTSCRIPT" && break
11330 done
11332 if test -z "$GHOSTSCRIPT"; then
11333 ac_ct_GHOSTSCRIPT=$GHOSTSCRIPT
11334 for ac_prog in $ALT_GHOSTSCRIPT_PROGS
11336 # Extract the first word of "$ac_prog", so it can be a program name with args.
11337 set dummy $ac_prog; ac_word=$2
11338 echo "$as_me:$LINENO: checking for $ac_word" >&5
11339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11340 if test "${ac_cv_prog_ac_ct_GHOSTSCRIPT+set}" = set; then
11341 echo $ECHO_N "(cached) $ECHO_C" >&6
11342 else
11343 if test -n "$ac_ct_GHOSTSCRIPT"; then
11344 ac_cv_prog_ac_ct_GHOSTSCRIPT="$ac_ct_GHOSTSCRIPT" # Let the user override the test.
11345 else
11346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11347 for as_dir in $PATH
11349 IFS=$as_save_IFS
11350 test -z "$as_dir" && as_dir=.
11351 for ac_exec_ext in '' $ac_executable_extensions; do
11352 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11353 ac_cv_prog_ac_ct_GHOSTSCRIPT="$ac_prog"
11354 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11355 break 2
11357 done
11358 done
11362 ac_ct_GHOSTSCRIPT=$ac_cv_prog_ac_ct_GHOSTSCRIPT
11363 if test -n "$ac_ct_GHOSTSCRIPT"; then
11364 echo "$as_me:$LINENO: result: $ac_ct_GHOSTSCRIPT" >&5
11365 echo "${ECHO_T}$ac_ct_GHOSTSCRIPT" >&6
11366 else
11367 echo "$as_me:$LINENO: result: no" >&5
11368 echo "${ECHO_T}no" >&6
11371 test -n "$ac_ct_GHOSTSCRIPT" && break
11372 done
11374 if test "x$ac_ct_GHOSTSCRIPT" = x; then
11375 GHOSTSCRIPT="missing"
11376 else
11377 if test "$build" != "$host"; then
11378 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11379 whose name does not start with the host triplet. If you think this
11380 configuration is useful to you, please write to autoconf@gnu.org." >&5
11381 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11382 whose name does not start with the host triplet. If you think this
11383 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11385 GHOSTSCRIPT=$ac_ct_GHOSTSCRIPT
11390 test "$GHOSTSCRIPT" = "no" && GHOSTSCRIPT=missing
11392 make_html=html
11393 make_install_html=install_html
11395 missing=
11396 # Extract the first word of "pnmcut", so it can be a program name with args.
11397 set dummy pnmcut; ac_word=$2
11398 echo "$as_me:$LINENO: checking for $ac_word" >&5
11399 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11400 if test "${ac_cv_prog_pnmcut+set}" = set; then
11401 echo $ECHO_N "(cached) $ECHO_C" >&6
11402 else
11403 if test -n "$pnmcut"; then
11404 ac_cv_prog_pnmcut="$pnmcut" # Let the user override the test.
11405 else
11406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11407 for as_dir in $PATH
11409 IFS=$as_save_IFS
11410 test -z "$as_dir" && as_dir=.
11411 for ac_exec_ext in '' $ac_executable_extensions; do
11412 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11413 ac_cv_prog_pnmcut="found"
11414 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11415 break 2
11417 done
11418 done
11420 test -z "$ac_cv_prog_pnmcut" && ac_cv_prog_pnmcut="missing"
11423 pnmcut=$ac_cv_prog_pnmcut
11424 if test -n "$pnmcut"; then
11425 echo "$as_me:$LINENO: result: $pnmcut" >&5
11426 echo "${ECHO_T}$pnmcut" >&6
11427 else
11428 echo "$as_me:$LINENO: result: no" >&5
11429 echo "${ECHO_T}no" >&6
11432 if test $pnmcut = missing; then
11433 missing="$missing \`pnmcut'"
11434 fi;# Extract the first word of "pnmcrop", so it can be a program name with args.
11435 set dummy pnmcrop; ac_word=$2
11436 echo "$as_me:$LINENO: checking for $ac_word" >&5
11437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11438 if test "${ac_cv_prog_pnmcrop+set}" = set; then
11439 echo $ECHO_N "(cached) $ECHO_C" >&6
11440 else
11441 if test -n "$pnmcrop"; then
11442 ac_cv_prog_pnmcrop="$pnmcrop" # Let the user override the test.
11443 else
11444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11445 for as_dir in $PATH
11447 IFS=$as_save_IFS
11448 test -z "$as_dir" && as_dir=.
11449 for ac_exec_ext in '' $ac_executable_extensions; do
11450 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11451 ac_cv_prog_pnmcrop="found"
11452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11453 break 2
11455 done
11456 done
11458 test -z "$ac_cv_prog_pnmcrop" && ac_cv_prog_pnmcrop="missing"
11461 pnmcrop=$ac_cv_prog_pnmcrop
11462 if test -n "$pnmcrop"; then
11463 echo "$as_me:$LINENO: result: $pnmcrop" >&5
11464 echo "${ECHO_T}$pnmcrop" >&6
11465 else
11466 echo "$as_me:$LINENO: result: no" >&5
11467 echo "${ECHO_T}no" >&6
11470 if test $pnmcrop = missing; then
11471 missing="$missing \`pnmcrop'"
11472 fi;# Extract the first word of "pnmtopng", so it can be a program name with args.
11473 set dummy pnmtopng; ac_word=$2
11474 echo "$as_me:$LINENO: checking for $ac_word" >&5
11475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11476 if test "${ac_cv_prog_pnmtopng+set}" = set; then
11477 echo $ECHO_N "(cached) $ECHO_C" >&6
11478 else
11479 if test -n "$pnmtopng"; then
11480 ac_cv_prog_pnmtopng="$pnmtopng" # Let the user override the test.
11481 else
11482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11483 for as_dir in $PATH
11485 IFS=$as_save_IFS
11486 test -z "$as_dir" && as_dir=.
11487 for ac_exec_ext in '' $ac_executable_extensions; do
11488 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11489 ac_cv_prog_pnmtopng="found"
11490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11491 break 2
11493 done
11494 done
11496 test -z "$ac_cv_prog_pnmtopng" && ac_cv_prog_pnmtopng="missing"
11499 pnmtopng=$ac_cv_prog_pnmtopng
11500 if test -n "$pnmtopng"; then
11501 echo "$as_me:$LINENO: result: $pnmtopng" >&5
11502 echo "${ECHO_T}$pnmtopng" >&6
11503 else
11504 echo "$as_me:$LINENO: result: no" >&5
11505 echo "${ECHO_T}no" >&6
11508 if test $pnmtopng = missing; then
11509 missing="$missing \`pnmtopng'"
11510 fi;# Extract the first word of "psselect", so it can be a program name with args.
11511 set dummy psselect; ac_word=$2
11512 echo "$as_me:$LINENO: checking for $ac_word" >&5
11513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11514 if test "${ac_cv_prog_psselect+set}" = set; then
11515 echo $ECHO_N "(cached) $ECHO_C" >&6
11516 else
11517 if test -n "$psselect"; then
11518 ac_cv_prog_psselect="$psselect" # Let the user override the test.
11519 else
11520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11521 for as_dir in $PATH
11523 IFS=$as_save_IFS
11524 test -z "$as_dir" && as_dir=.
11525 for ac_exec_ext in '' $ac_executable_extensions; do
11526 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11527 ac_cv_prog_psselect="found"
11528 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11529 break 2
11531 done
11532 done
11534 test -z "$ac_cv_prog_psselect" && ac_cv_prog_psselect="missing"
11537 psselect=$ac_cv_prog_psselect
11538 if test -n "$psselect"; then
11539 echo "$as_me:$LINENO: result: $psselect" >&5
11540 echo "${ECHO_T}$psselect" >&6
11541 else
11542 echo "$as_me:$LINENO: result: no" >&5
11543 echo "${ECHO_T}no" >&6
11546 if test $psselect = missing; then
11547 missing="$missing \`psselect'"
11548 fi;# Extract the first word of "pnmtops", so it can be a program name with args.
11549 set dummy pnmtops; ac_word=$2
11550 echo "$as_me:$LINENO: checking for $ac_word" >&5
11551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11552 if test "${ac_cv_prog_pnmtops+set}" = set; then
11553 echo $ECHO_N "(cached) $ECHO_C" >&6
11554 else
11555 if test -n "$pnmtops"; then
11556 ac_cv_prog_pnmtops="$pnmtops" # Let the user override the test.
11557 else
11558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11559 for as_dir in $PATH
11561 IFS=$as_save_IFS
11562 test -z "$as_dir" && as_dir=.
11563 for ac_exec_ext in '' $ac_executable_extensions; do
11564 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11565 ac_cv_prog_pnmtops="found"
11566 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11567 break 2
11569 done
11570 done
11572 test -z "$ac_cv_prog_pnmtops" && ac_cv_prog_pnmtops="missing"
11575 pnmtops=$ac_cv_prog_pnmtops
11576 if test -n "$pnmtops"; then
11577 echo "$as_me:$LINENO: result: $pnmtops" >&5
11578 echo "${ECHO_T}$pnmtops" >&6
11579 else
11580 echo "$as_me:$LINENO: result: no" >&5
11581 echo "${ECHO_T}no" >&6
11584 if test $pnmtops = missing; then
11585 missing="$missing \`pnmtops'"
11588 test "$GHOSTSCRIPT" = "missing" && missing="$missing \`gs'"
11590 if test -n "$missing"; then
11591 plural=`set $missing; test $# -gt 1 && echo s`
11592 missing=`set $missing
11593 missing=""
11594 while test $# -gt 0
11596 case $# in
11597 1) missing="$missing$1" ;;
11598 2) missing="$missing$1 and " ;;
11599 *) missing="$missing$1, " ;;
11600 esac
11601 shift
11602 done
11603 echo $missing`
11605 make_html=
11606 make_install_html=
11608 { echo "$as_me:$LINENO: WARNING: missing program$plural:
11610 The program$plural
11611 $missing
11612 cannot be found in the PATH.
11613 Consequently, groff's HTML backend (grohtml) will not work properly;
11614 therefore, it will neither be possible to prepare, nor to install,
11615 documentation in HTML format.
11616 " >&5
11617 echo "$as_me: WARNING: missing program$plural:
11619 The program$plural
11620 $missing
11621 cannot be found in the PATH.
11622 Consequently, groff's HTML backend (grohtml) will not work properly;
11623 therefore, it will neither be possible to prepare, nor to install,
11624 documentation in HTML format.
11625 " >&2;}
11631 # Check whether --with-alt-awk or --without-alt-awk was given.
11632 if test "${with_alt_awk+set}" = set; then
11633 withval="$with_alt_awk"
11634 ALT_AWK_PROGS="$withval"
11635 else
11636 ALT_AWK_PROGS="gawk mawk nawk awk"
11641 # Check whether --with-awk or --without-awk was given.
11642 if test "${with_awk+set}" = set; then
11643 withval="$with_awk"
11644 AWK=$withval
11645 else
11646 if test -n "$ac_tool_prefix"; then
11647 for ac_prog in $ALT_AWK_PROGS
11649 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11650 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11651 echo "$as_me:$LINENO: checking for $ac_word" >&5
11652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11653 if test "${ac_cv_prog_AWK+set}" = set; then
11654 echo $ECHO_N "(cached) $ECHO_C" >&6
11655 else
11656 if test -n "$AWK"; then
11657 ac_cv_prog_AWK="$AWK" # Let the user override the test.
11658 else
11659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11660 for as_dir in $PATH
11662 IFS=$as_save_IFS
11663 test -z "$as_dir" && as_dir=.
11664 for ac_exec_ext in '' $ac_executable_extensions; do
11665 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11666 ac_cv_prog_AWK="$ac_tool_prefix$ac_prog"
11667 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11668 break 2
11670 done
11671 done
11675 AWK=$ac_cv_prog_AWK
11676 if test -n "$AWK"; then
11677 echo "$as_me:$LINENO: result: $AWK" >&5
11678 echo "${ECHO_T}$AWK" >&6
11679 else
11680 echo "$as_me:$LINENO: result: no" >&5
11681 echo "${ECHO_T}no" >&6
11684 test -n "$AWK" && break
11685 done
11687 if test -z "$AWK"; then
11688 ac_ct_AWK=$AWK
11689 for ac_prog in $ALT_AWK_PROGS
11691 # Extract the first word of "$ac_prog", so it can be a program name with args.
11692 set dummy $ac_prog; ac_word=$2
11693 echo "$as_me:$LINENO: checking for $ac_word" >&5
11694 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11695 if test "${ac_cv_prog_ac_ct_AWK+set}" = set; then
11696 echo $ECHO_N "(cached) $ECHO_C" >&6
11697 else
11698 if test -n "$ac_ct_AWK"; then
11699 ac_cv_prog_ac_ct_AWK="$ac_ct_AWK" # Let the user override the test.
11700 else
11701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11702 for as_dir in $PATH
11704 IFS=$as_save_IFS
11705 test -z "$as_dir" && as_dir=.
11706 for ac_exec_ext in '' $ac_executable_extensions; do
11707 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11708 ac_cv_prog_ac_ct_AWK="$ac_prog"
11709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11710 break 2
11712 done
11713 done
11717 ac_ct_AWK=$ac_cv_prog_ac_ct_AWK
11718 if test -n "$ac_ct_AWK"; then
11719 echo "$as_me:$LINENO: result: $ac_ct_AWK" >&5
11720 echo "${ECHO_T}$ac_ct_AWK" >&6
11721 else
11722 echo "$as_me:$LINENO: result: no" >&5
11723 echo "${ECHO_T}no" >&6
11726 test -n "$ac_ct_AWK" && break
11727 done
11729 if test "x$ac_ct_AWK" = x; then
11730 AWK="missing"
11731 else
11732 if test "$build" != "$host"; then
11733 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11734 whose name does not start with the host triplet. If you think this
11735 configuration is useful to you, please write to autoconf@gnu.org." >&5
11736 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11737 whose name does not start with the host triplet. If you think this
11738 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11740 AWK=$ac_ct_AWK
11745 test "$AWK" = "no" && AWK=missing
11749 make_pdfdoc=pdfdoc
11750 make_install_pdfdoc=install_pdfdoc
11752 missing=""
11753 test "$AWK" = missing && missing="\`awk'"
11754 test "$GHOSTSCRIPT" = missing && missing="$missing \`gs'"
11755 if test -n "$missing"; then
11756 plural=`set $missing; test $# -eq 2 && echo s`
11757 test x$plural = xs \
11758 && missing=`set $missing; echo "$1 and $2"` \
11759 || missing=`echo $missing`
11761 make_pdfdoc=
11762 make_install_pdfdoc=
11764 { echo "$as_me:$LINENO: WARNING: missing program$plural:
11766 The program$plural $missing cannot be found in the PATH.
11767 Consequently, groff's PDF formatter (pdfroff) will not work properly;
11768 therefore, it will neither be possible to prepare, nor to install,
11769 documentation in PDF format.
11770 " >&5
11771 echo "$as_me: WARNING: missing program$plural:
11773 The program$plural $missing cannot be found in the PATH.
11774 Consequently, groff's PDF formatter (pdfroff) will not work properly;
11775 therefore, it will neither be possible to prepare, nor to install,
11776 documentation in PDF format.
11777 " >&2;}
11782 echo "$as_me:$LINENO: checking whether pnmtops can handle the -nosetpage option" >&5
11783 echo $ECHO_N "checking whether pnmtops can handle the -nosetpage option... $ECHO_C" >&6
11784 if echo P2 2 2 255 0 1 2 0 | pnmtops -nosetpage > /dev/null 2>&1 ; then
11785 echo "$as_me:$LINENO: result: yes" >&5
11786 echo "${ECHO_T}yes" >&6
11787 pnmtops_nosetpage="pnmtops -nosetpage"
11788 else
11789 echo "$as_me:$LINENO: result: no" >&5
11790 echo "${ECHO_T}no" >&6
11791 pnmtops_nosetpage="pnmtops"
11795 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
11796 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
11797 if test "${ac_cv_gnu_library_2_1+set}" = set; then
11798 echo $ECHO_N "(cached) $ECHO_C" >&6
11799 else
11800 cat >conftest.$ac_ext <<_ACEOF
11801 /* confdefs.h. */
11802 _ACEOF
11803 cat confdefs.h >>conftest.$ac_ext
11804 cat >>conftest.$ac_ext <<_ACEOF
11805 /* end confdefs.h. */
11807 #include <features.h>
11808 #ifdef __GNU_LIBRARY__
11809 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
11810 Lucky GNU user
11811 #endif
11812 #endif
11814 _ACEOF
11815 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11816 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
11817 ac_cv_gnu_library_2_1=yes
11818 else
11819 ac_cv_gnu_library_2_1=no
11821 rm -f conftest*
11826 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
11827 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
11829 GLIBC21="$ac_cv_gnu_library_2_1"
11833 ac_config_files="$ac_config_files stamp-h"
11835 ac_config_files="$ac_config_files Makefile doc/Makefile src/utils/xtotroff/Makefile"
11837 ac_config_files="$ac_config_files contrib/gdiffmk/tests/runtests"
11839 ac_config_files="$ac_config_files test-groff"
11841 cat >confcache <<\_ACEOF
11842 # This file is a shell script that caches the results of configure
11843 # tests run on this system so they can be shared between configure
11844 # scripts and configure runs, see configure's option --config-cache.
11845 # It is not useful on other systems. If it contains results you don't
11846 # want to keep, you may remove or edit it.
11848 # config.status only pays attention to the cache file if you give it
11849 # the --recheck option to rerun configure.
11851 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11852 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11853 # following values.
11855 _ACEOF
11857 # The following way of writing the cache mishandles newlines in values,
11858 # but we know of no workaround that is simple, portable, and efficient.
11859 # So, don't put newlines in cache variables' values.
11860 # Ultrix sh set writes to stderr and can't be redirected directly,
11861 # and sets the high bit in the cache file unless we assign to the vars.
11863 (set) 2>&1 |
11864 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11865 *ac_space=\ *)
11866 # `set' does not quote correctly, so add quotes (double-quote
11867 # substitution turns \\\\ into \\, and sed turns \\ into \).
11868 sed -n \
11869 "s/'/'\\\\''/g;
11870 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11873 # `set' quotes correctly as required by POSIX, so do not add quotes.
11874 sed -n \
11875 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11877 esac;
11879 sed '
11880 t clear
11881 : clear
11882 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11883 t end
11884 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11885 : end' >>confcache
11886 if diff $cache_file confcache >/dev/null 2>&1; then :; else
11887 if test -w $cache_file; then
11888 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11889 cat confcache >$cache_file
11890 else
11891 echo "not updating unwritable cache $cache_file"
11894 rm -f confcache
11896 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11897 # Let make expand exec_prefix.
11898 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11900 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11901 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11902 # trailing colons and then remove the whole line if VPATH becomes empty
11903 # (actually we leave an empty line to preserve line numbers).
11904 if test "x$srcdir" = x.; then
11905 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11906 s/:*\$(srcdir):*/:/;
11907 s/:*\${srcdir}:*/:/;
11908 s/:*@srcdir@:*/:/;
11909 s/^\([^=]*=[ ]*\):*/\1/;
11910 s/:*$//;
11911 s/^[^=]*=[ ]*$//;
11915 DEFS=-DHAVE_CONFIG_H
11917 ac_libobjs=
11918 ac_ltlibobjs=
11919 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11920 # 1. Remove the extension, and $U if already installed.
11921 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11922 ac_i=`echo "$ac_i" | sed "$ac_script"`
11923 # 2. Add them.
11924 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11925 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11926 done
11927 LIBOBJS=$ac_libobjs
11929 LTLIBOBJS=$ac_ltlibobjs
11933 : ${CONFIG_STATUS=./config.status}
11934 ac_clean_files_save=$ac_clean_files
11935 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11936 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11937 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11938 cat >$CONFIG_STATUS <<_ACEOF
11939 #! $SHELL
11940 # Generated by $as_me.
11941 # Run this file to recreate the current configuration.
11942 # Compiler output produced by configure, useful for debugging
11943 # configure, is in config.log if it exists.
11945 debug=false
11946 ac_cs_recheck=false
11947 ac_cs_silent=false
11948 SHELL=\${CONFIG_SHELL-$SHELL}
11949 _ACEOF
11951 cat >>$CONFIG_STATUS <<\_ACEOF
11952 ## --------------------- ##
11953 ## M4sh Initialization. ##
11954 ## --------------------- ##
11956 # Be Bourne compatible
11957 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11958 emulate sh
11959 NULLCMD=:
11960 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11961 # is contrary to our usage. Disable this feature.
11962 alias -g '${1+"$@"}'='"$@"'
11963 setopt NO_GLOB_SUBST
11964 elif test -n "${BASH_VERSION+set}${KSH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11965 set -o posix
11967 BIN_SH=xpg4; export BIN_SH # for Tru64
11968 DUALCASE=1; export DUALCASE # for MKS sh
11971 # PATH needs CR
11972 # Avoid depending upon Character Ranges.
11973 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11974 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11975 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11976 as_cr_digits='0123456789'
11977 as_cr_alnum=$as_cr_Letters$as_cr_digits
11979 # The user is always right.
11980 if test "${PATH_SEPARATOR+set}" != set; then
11981 echo "#! /bin/sh" >conf$$.sh
11982 echo "exit 0" >>conf$$.sh
11983 chmod +x conf$$.sh
11984 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11985 PATH_SEPARATOR=';'
11986 else
11987 PATH_SEPARATOR=:
11989 rm -f conf$$.sh
11992 # Support unset when possible.
11993 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11994 as_unset=unset
11995 else
11996 as_unset=false
12000 # Find who we are. Look in the path if we contain no path at all
12001 # relative or not.
12002 case $0 in
12003 *[\\/]* ) as_myself=$0 ;;
12004 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12005 for as_dir in $PATH
12007 IFS=$as_save_IFS
12008 test -z "$as_dir" && as_dir=.
12009 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12010 done
12013 esac
12014 # We did not find ourselves, most probably we were run as `sh COMMAND'
12015 # in which case we are not to be found in the path.
12016 if test "x$as_myself" = x; then
12017 as_myself=$0
12019 if test ! -f "$as_myself"; then
12020 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute file name" >&5
12021 echo "$as_me: error: cannot find myself; rerun with an absolute file name" >&2;}
12022 { (exit 1); exit 1; }; }
12025 # Work around bugs in pre-3.0 UWIN ksh.
12026 for as_var in ENV MAIL MAILPATH
12027 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12028 done
12029 PS1='$ '
12030 PS2='> '
12031 PS4='+ '
12033 # NLS nuisances.
12034 for as_var in \
12035 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12036 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12037 LC_TELEPHONE LC_TIME
12039 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12040 eval $as_var=C; export $as_var
12041 else
12042 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12044 done
12046 # Required to use basename.
12047 if expr a : '\(a\)' >/dev/null 2>&1; then
12048 as_expr=expr
12049 else
12050 as_expr=false
12053 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12054 as_basename=basename
12055 else
12056 as_basename=false
12060 # Name of the executable.
12061 as_me=`$as_basename "$0" ||
12062 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12063 X"$0" : 'X\(//\)$' \| \
12064 X"$0" : 'X\(/\)$' \| \
12065 . : '\(.\)' 2>/dev/null ||
12066 echo X/"$0" |
12067 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12068 /^X\/\(\/\/\)$/{ s//\1/; q; }
12069 /^X\/\(\/\).*/{ s//\1/; q; }
12070 s/.*/./; q'`
12075 as_lineno_1=$LINENO
12076 as_lineno_2=$LINENO
12077 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12078 test "x$as_lineno_1" != "x$as_lineno_2" &&
12079 test "x$as_lineno_3" = "x$as_lineno_2" || {
12081 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12082 # uniformly replaced by the line number. The first 'sed' inserts a
12083 # line-number line after each line using $LINENO; the second 'sed'
12084 # does the real work. The second script uses 'N' to pair each
12085 # line-number line with the line containing $LINENO, and appends
12086 # trailing '-' during substitution so that $LINENO is not a special
12087 # case at line end.
12088 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12089 # scripts with optimization help from Paolo Bonzini. Blame Lee
12090 # E. McMahon (1931-1989) for sed's syntax. :-)
12091 sed -n '
12093 /[$]LINENO/=
12094 ' <$as_myself |
12095 sed '
12096 s,[$]LINENO.*,&-,
12097 t lineno
12099 : lineno
12101 : loop
12102 s,[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\),\2\1\2,
12103 t loop
12104 s,-\n.*,,
12105 ' >$as_me.lineno &&
12106 chmod +x $as_me.lineno ||
12107 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12108 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12109 { (exit 1); exit 1; }; }
12111 # Don't try to exec as it changes $[0], causing all sort of problems
12112 # (the dirname of $[0] is not the place where we might find the
12113 # original and so on. Autoconf is especially sensible to this).
12114 . ./$as_me.lineno
12115 # Exit status is that of the last command.
12116 exit
12120 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12121 *c*,-n*) ECHO_N= ECHO_C='
12122 ' ECHO_T=' ' ;;
12123 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12124 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
12125 esac
12127 if expr a : '\(a\)' >/dev/null 2>&1; then
12128 as_expr=expr
12129 else
12130 as_expr=false
12133 rm -f conf$$ conf$$.exe conf$$.file
12134 echo >conf$$.file
12135 if ln -s conf$$.file conf$$ 2>/dev/null; then
12136 # We could just check for DJGPP; but this test a) works b) is more generic
12137 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12138 if test -f conf$$.exe; then
12139 # Don't use ln at all; we don't have any links
12140 as_ln_s='cp -p'
12141 else
12142 as_ln_s='ln -s'
12144 elif ln conf$$.file conf$$ 2>/dev/null; then
12145 as_ln_s=ln
12146 else
12147 as_ln_s='cp -p'
12149 rm -f conf$$ conf$$.exe conf$$.file
12151 if mkdir -p . 2>/dev/null; then
12152 as_mkdir_p=:
12153 else
12154 test -d ./-p && rmdir ./-p
12155 as_mkdir_p=false
12158 as_executable_p="test -f"
12160 # Sed expression to map a string onto a valid CPP name.
12161 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12163 # Sed expression to map a string onto a valid variable name.
12164 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12167 # IFS
12168 # We need space, tab and new line, in precisely that order.
12169 as_nl='
12171 IFS=" $as_nl"
12173 # CDPATH.
12174 $as_unset CDPATH
12176 exec 6>&1
12178 # Open the log real soon, to keep \$[0] and so on meaningful, and to
12179 # report actual input values of CONFIG_FILES etc. instead of their
12180 # values after options handling. Logging --version etc. is OK.
12181 exec 5>>config.log
12183 echo
12184 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12185 ## Running $as_me. ##
12186 _ASBOX
12187 } >&5
12188 cat >&5 <<_CSEOF
12190 This file was extended by $as_me, which was
12191 generated by GNU Autoconf 2.59b. Invocation command line was
12193 CONFIG_FILES = $CONFIG_FILES
12194 CONFIG_HEADERS = $CONFIG_HEADERS
12195 CONFIG_LINKS = $CONFIG_LINKS
12196 CONFIG_COMMANDS = $CONFIG_COMMANDS
12197 $ $0 $@
12199 _CSEOF
12200 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12201 echo >&5
12202 _ACEOF
12204 # Files that config.status was made for.
12205 if test -n "$ac_config_files"; then
12206 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12209 if test -n "$ac_config_headers"; then
12210 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12213 if test -n "$ac_config_links"; then
12214 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12217 if test -n "$ac_config_commands"; then
12218 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12221 cat >>$CONFIG_STATUS <<\_ACEOF
12223 ac_cs_usage="\
12224 \`$as_me' instantiates files from templates according to the
12225 current configuration.
12227 Usage: $0 [OPTIONS] [FILE]...
12229 -h, --help print this help, then exit
12230 -V, --version print version number, then exit
12231 -q, --quiet do not print progress messages
12232 -d, --debug don't remove temporary files
12233 --recheck update $as_me by reconfiguring in the same conditions
12234 --file=FILE[:TEMPLATE]
12235 instantiate the configuration file FILE
12236 --header=FILE[:TEMPLATE]
12237 instantiate the configuration header FILE
12239 Configuration files:
12240 $config_files
12242 Configuration headers:
12243 $config_headers
12245 Report bugs to <bug-autoconf@gnu.org>."
12246 _ACEOF
12248 cat >>$CONFIG_STATUS <<_ACEOF
12249 ac_cs_version="\\
12250 config.status
12251 configured by $0, generated by GNU Autoconf 2.59b,
12252 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12254 Copyright (C) 2004 Free Software Foundation, Inc.
12255 This config.status script is free software; the Free Software Foundation
12256 gives unlimited permission to copy, distribute and modify it."
12257 srcdir=$srcdir
12258 INSTALL="$INSTALL"
12259 _ACEOF
12261 cat >>$CONFIG_STATUS <<\_ACEOF
12262 # If no file are specified by the user, then we need to provide default
12263 # value. By we need to know if files were specified by the user.
12264 ac_need_defaults=:
12265 while test $# != 0
12267 case $1 in
12268 --*=*)
12269 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12270 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12271 ac_shift=:
12274 ac_option=$1
12275 ac_optarg=$2
12276 ac_shift=shift
12278 *) # This is not an option, so the user has probably given explicit
12279 # arguments.
12280 ac_option=$1
12281 ac_need_defaults=false;;
12282 esac
12284 case $ac_option in
12285 # Handling of the options.
12286 _ACEOF
12287 cat >>$CONFIG_STATUS <<\_ACEOF
12288 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12289 ac_cs_recheck=: ;;
12290 --version | --vers* | -V )
12291 echo "$ac_cs_version"; exit 0 ;;
12292 --he | --h)
12293 # Conflict between --help and --header
12294 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12295 Try \`$0 --help' for more information." >&5
12296 echo "$as_me: error: ambiguous option: $1
12297 Try \`$0 --help' for more information." >&2;}
12298 { (exit 1); exit 1; }; };;
12299 --help | --hel | -h )
12300 echo "$ac_cs_usage"; exit 0 ;;
12301 --debug | --d* | -d )
12302 debug=: ;;
12303 --file | --fil | --fi | --f )
12304 $ac_shift
12305 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12306 ac_need_defaults=false;;
12307 --header | --heade | --head | --hea )
12308 $ac_shift
12309 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12310 ac_need_defaults=false;;
12311 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12312 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12313 ac_cs_silent=: ;;
12315 # This is an error.
12316 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12317 Try \`$0 --help' for more information." >&5
12318 echo "$as_me: error: unrecognized option: $1
12319 Try \`$0 --help' for more information." >&2;}
12320 { (exit 1); exit 1; }; } ;;
12322 *) ac_config_targets="$ac_config_targets $1" ;;
12324 esac
12325 shift
12326 done
12328 ac_configure_extra_args=
12330 if $ac_cs_silent; then
12331 exec 6>/dev/null
12332 ac_configure_extra_args="$ac_configure_extra_args --silent"
12335 _ACEOF
12336 cat >>$CONFIG_STATUS <<_ACEOF
12337 if \$ac_cs_recheck; then
12338 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12339 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12342 _ACEOF
12348 cat >>$CONFIG_STATUS <<\_ACEOF
12349 for ac_config_target in $ac_config_targets
12351 case "$ac_config_target" in
12352 # Handling of arguments.
12353 "stamp-h" ) CONFIG_FILES="$CONFIG_FILES stamp-h" ;;
12354 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12355 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
12356 "src/utils/xtotroff/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/xtotroff/Makefile" ;;
12357 "contrib/gdiffmk/tests/runtests" ) CONFIG_FILES="$CONFIG_FILES contrib/gdiffmk/tests/runtests" ;;
12358 "test-groff" ) CONFIG_FILES="$CONFIG_FILES test-groff" ;;
12359 "src/include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/config.h:src/include/config.hin" ;;
12360 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12361 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12362 { (exit 1); exit 1; }; };;
12363 esac
12364 done
12366 # If the user did not use the arguments to specify the items to instantiate,
12367 # then the envvar interface is used. Set only those that are not.
12368 # We use the long form for the default assignment because of an extremely
12369 # bizarre bug on SunOS 4.1.3.
12370 if $ac_need_defaults; then
12371 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12372 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12375 # Have a temporary directory for convenience. Make it in the build tree
12376 # simply because there is no reason to put it here, and in addition,
12377 # creating and moving files from /tmp can sometimes cause problems.
12378 # Create a temporary directory, and hook for its removal unless debugging.
12379 $debug ||
12381 trap 'exit_status=$?; rm -f -r $tmp && exit $exit_status' 0
12382 trap '{ (exit 1); exit 1; }' 1 2 13 15
12385 # Create a (secure) tmp directory for tmp files.
12388 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12389 test -n "$tmp" && test -d "$tmp"
12390 } ||
12392 tmp=./confstat$$-$RANDOM
12393 (umask 077 && mkdir $tmp)
12394 } ||
12396 echo "$me: cannot create a temporary directory in ." >&2
12397 { (exit 1); exit 1; }
12400 _ACEOF
12402 cat >>$CONFIG_STATUS <<_ACEOF
12405 # CONFIG_FILES section.
12408 # No need to generate the scripts if there are no CONFIG_FILES.
12409 # This happens for instance when ./config.status config.h
12410 if test -n "\$CONFIG_FILES"; then
12411 # Protect against being on the right side of a sed subst in config.status.
12412 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12413 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12414 s,@SHELL@,$SHELL,;t t
12415 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12416 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12417 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12418 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12419 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12420 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12421 s,@exec_prefix@,$exec_prefix,;t t
12422 s,@prefix@,$prefix,;t t
12423 s,@program_transform_name@,$program_transform_name,;t t
12424 s,@bindir@,$bindir,;t t
12425 s,@sbindir@,$sbindir,;t t
12426 s,@libexecdir@,$libexecdir,;t t
12427 s,@datadir@,$datadir,;t t
12428 s,@sysconfdir@,$sysconfdir,;t t
12429 s,@sharedstatedir@,$sharedstatedir,;t t
12430 s,@localstatedir@,$localstatedir,;t t
12431 s,@libdir@,$libdir,;t t
12432 s,@includedir@,$includedir,;t t
12433 s,@oldincludedir@,$oldincludedir,;t t
12434 s,@infodir@,$infodir,;t t
12435 s,@mandir@,$mandir,;t t
12436 s,@build_alias@,$build_alias,;t t
12437 s,@host_alias@,$host_alias,;t t
12438 s,@target_alias@,$target_alias,;t t
12439 s,@DEFS@,$DEFS,;t t
12440 s,@ECHO_C@,$ECHO_C,;t t
12441 s,@ECHO_N@,$ECHO_N,;t t
12442 s,@ECHO_T@,$ECHO_T,;t t
12443 s,@LIBS@,$LIBS,;t t
12444 s,@CC@,$CC,;t t
12445 s,@CFLAGS@,$CFLAGS,;t t
12446 s,@LDFLAGS@,$LDFLAGS,;t t
12447 s,@CPPFLAGS@,$CPPFLAGS,;t t
12448 s,@ac_ct_CC@,$ac_ct_CC,;t t
12449 s,@EXEEXT@,$EXEEXT,;t t
12450 s,@OBJEXT@,$OBJEXT,;t t
12451 s,@CXX@,$CXX,;t t
12452 s,@CXXFLAGS@,$CXXFLAGS,;t t
12453 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
12454 s,@TTYDEVDIRS@,$TTYDEVDIRS,;t t
12455 s,@OTHERDEVDIRS@,$OTHERDEVDIRS,;t t
12456 s,@CPP@,$CPP,;t t
12457 s,@X_CFLAGS@,$X_CFLAGS,;t t
12458 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
12459 s,@X_LIBS@,$X_LIBS,;t t
12460 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
12461 s,@XDEVDIRS@,$XDEVDIRS,;t t
12462 s,@XPROGDIRS@,$XPROGDIRS,;t t
12463 s,@XLIBDIRS@,$XLIBDIRS,;t t
12464 s,@appresdir@,$appresdir,;t t
12465 s,@LPR@,$LPR,;t t
12466 s,@LP@,$LP,;t t
12467 s,@LPQ@,$LPQ,;t t
12468 s,@PSPRINT@,$PSPRINT,;t t
12469 s,@DVIPRINT@,$DVIPRINT,;t t
12470 s,@GREP@,$GREP,;t t
12471 s,@EGREP@,$EGREP,;t t
12472 s,@PERLPATH@,$PERLPATH,;t t
12473 s,@YACC@,$YACC,;t t
12474 s,@MAKEINFO@,$MAKEINFO,;t t
12475 s,@RANLIB@,$RANLIB,;t t
12476 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12477 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
12478 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12479 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12480 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12481 s,@LN_S@,$LN_S,;t t
12482 s,@SH_SCRIPT_SED_CMD@,$SH_SCRIPT_SED_CMD,;t t
12483 s,@LIBC@,$LIBC,;t t
12484 s,@LIBM@,$LIBM,;t t
12485 s,@build@,$build,;t t
12486 s,@build_cpu@,$build_cpu,;t t
12487 s,@build_vendor@,$build_vendor,;t t
12488 s,@build_os@,$build_os,;t t
12489 s,@host@,$host,;t t
12490 s,@host_cpu@,$host_cpu,;t t
12491 s,@host_vendor@,$host_vendor,;t t
12492 s,@host_os@,$host_os,;t t
12493 s,@LIBICONV@,$LIBICONV,;t t
12494 s,@LTLIBICONV@,$LTLIBICONV,;t t
12495 s,@LIBOBJS@,$LIBOBJS,;t t
12496 s,@BROKEN_SPOOLER_FLAGS@,$BROKEN_SPOOLER_FLAGS,;t t
12497 s,@PAGE@,$PAGE,;t t
12498 s,@g@,$g,;t t
12499 s,@sys_tmac_prefix@,$sys_tmac_prefix,;t t
12500 s,@tmac_wrap@,$tmac_wrap,;t t
12501 s,@GROFF_PATH_SEPARATOR@,$GROFF_PATH_SEPARATOR,;t t
12502 s,@ALT_GHOSTSCRIPT_PROGS@,$ALT_GHOSTSCRIPT_PROGS,;t t
12503 s,@GHOSTSCRIPT@,$GHOSTSCRIPT,;t t
12504 s,@ac_ct_GHOSTSCRIPT@,$ac_ct_GHOSTSCRIPT,;t t
12505 s,@pnmcut@,$pnmcut,;t t
12506 s,@pnmcrop@,$pnmcrop,;t t
12507 s,@pnmtopng@,$pnmtopng,;t t
12508 s,@psselect@,$psselect,;t t
12509 s,@pnmtops@,$pnmtops,;t t
12510 s,@make_html@,$make_html,;t t
12511 s,@make_install_html@,$make_install_html,;t t
12512 s,@ALT_AWK_PROGS@,$ALT_AWK_PROGS,;t t
12513 s,@AWK@,$AWK,;t t
12514 s,@ac_ct_AWK@,$ac_ct_AWK,;t t
12515 s,@make_pdfdoc@,$make_pdfdoc,;t t
12516 s,@make_install_pdfdoc@,$make_install_pdfdoc,;t t
12517 s,@pnmtops_nosetpage@,$pnmtops_nosetpage,;t t
12518 s,@GLIBC21@,$GLIBC21,;t t
12519 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12520 CEOF
12522 _ACEOF
12524 cat >>$CONFIG_STATUS <<\_ACEOF
12525 # Split the substitutions into bite-sized pieces for seds with
12526 # small command number limits, like on Digital OSF/1 and HP-UX.
12527 ac_max_sed_lines=48
12528 ac_sed_frag=1 # Number of current file.
12529 ac_beg=1 # First line for current file.
12530 ac_end=$ac_max_sed_lines # Line after last line for current file.
12531 ac_more_lines=:
12532 ac_sed_cmds=
12533 while $ac_more_lines; do
12534 if test $ac_beg -gt 1; then
12535 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12536 else
12537 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12539 if test ! -s $tmp/subs.frag; then
12540 ac_more_lines=false
12541 else
12542 # The purpose of the label and of the branching condition is to
12543 # speed up the sed processing (if there are no `@' at all, there
12544 # is no need to browse any of the substitutions).
12545 # These are the two extra sed commands mentioned above.
12546 (echo ':t
12547 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12548 if test -z "$ac_sed_cmds"; then
12549 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12550 else
12551 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12553 ac_sed_frag=`expr $ac_sed_frag + 1`
12554 ac_beg=$ac_end
12555 ac_end=`expr $ac_end + $ac_max_sed_lines`
12557 done
12558 if test -z "$ac_sed_cmds"; then
12559 ac_sed_cmds=cat
12561 fi # test -n "$CONFIG_FILES"
12563 _ACEOF
12564 cat >>$CONFIG_STATUS <<\_ACEOF
12565 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12566 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12567 case $ac_file in
12568 - | *:- | *:-:* ) # input from stdin
12569 cat >$tmp/stdin
12570 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12571 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12572 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12573 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12574 * ) ac_file_in=$ac_file.in ;;
12575 esac
12577 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12578 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12579 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12580 X"$ac_file" : 'X\(//\)[^/]' \| \
12581 X"$ac_file" : 'X\(//\)$' \| \
12582 X"$ac_file" : 'X\(/\)' \| \
12583 . : '\(.\)' 2>/dev/null ||
12584 echo X"$ac_file" |
12585 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12586 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12587 /^X\(\/\/\)$/{ s//\1/; q; }
12588 /^X\(\/\).*/{ s//\1/; q; }
12589 s/.*/./; q'`
12590 { if $as_mkdir_p; then
12591 test -d "$ac_dir" || mkdir -p "$ac_dir"
12592 else
12593 as_dir="$ac_dir"
12594 as_dirs=
12595 while test ! -d "$as_dir"; do
12596 as_dirs="$as_dir $as_dirs"
12597 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12598 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12599 X"$as_dir" : 'X\(//\)[^/]' \| \
12600 X"$as_dir" : 'X\(//\)$' \| \
12601 X"$as_dir" : 'X\(/\)' \| \
12602 . : '\(.\)' 2>/dev/null ||
12603 echo X"$as_dir" |
12604 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12605 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12606 /^X\(\/\/\)$/{ s//\1/; q; }
12607 /^X\(\/\).*/{ s//\1/; q; }
12608 s/.*/./; q'`
12609 done
12610 test ! -n "$as_dirs" || mkdir $as_dirs
12611 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12612 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12613 { (exit 1); exit 1; }; }; }
12615 ac_builddir=.
12617 if test "$ac_dir" != .; then
12618 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12619 # A "../" for each directory in $ac_dir_suffix.
12620 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12621 else
12622 ac_dir_suffix= ac_top_builddir=
12625 case $srcdir in
12626 .) # No --srcdir option. We are building in place.
12627 ac_srcdir=.
12628 if test -z "$ac_top_builddir"; then
12629 ac_top_srcdir=.
12630 else
12631 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12632 fi ;;
12633 [\\/]* | ?:[\\/]* ) # Absolute name.
12634 ac_srcdir=$srcdir$ac_dir_suffix;
12635 ac_top_srcdir=$srcdir ;;
12636 *) # Relative name.
12637 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12638 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12639 esac
12641 # Do not use `cd foo && pwd` to compute absolute names, because
12642 # the directories may not exist.
12643 case `pwd` in
12644 .) ac_abs_builddir="$ac_dir";;
12646 case "$ac_dir" in
12647 .) ac_abs_builddir=`pwd`;;
12648 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12649 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12650 esac;;
12651 esac
12652 case $ac_abs_builddir in
12653 .) ac_abs_top_builddir=${ac_top_builddir}.;;
12655 case ${ac_top_builddir}. in
12656 .) ac_abs_top_builddir=$ac_abs_builddir;;
12657 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12658 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12659 esac;;
12660 esac
12661 case $ac_abs_builddir in
12662 .) ac_abs_srcdir=$ac_srcdir;;
12664 case $ac_srcdir in
12665 .) ac_abs_srcdir=$ac_abs_builddir;;
12666 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12667 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12668 esac;;
12669 esac
12670 case $ac_abs_builddir in
12671 .) ac_abs_top_srcdir=$ac_top_srcdir;;
12673 case $ac_top_srcdir in
12674 .) ac_abs_top_srcdir=$ac_abs_builddir;;
12675 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12676 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12677 esac;;
12678 esac
12681 case $INSTALL in
12682 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12683 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
12684 esac
12686 if test x"$ac_file" != x-; then
12687 { echo "$as_me:$LINENO: creating $ac_file" >&5
12688 echo "$as_me: creating $ac_file" >&6;}
12689 rm -f "$ac_file"
12691 # Let's still pretend it is `configure' which instantiates (i.e., don't
12692 # use $as_me), people would be surprised to read:
12693 # /* config.h. Generated by config.status. */
12694 if test x"$ac_file" = x-; then
12695 configure_input=
12696 else
12697 configure_input="$ac_file. "
12699 configure_input=$configure_input"Generated from `echo $ac_file_in |
12700 sed 's,.*/,,'` by configure."
12702 # First look for the input files in the build tree, otherwise in the
12703 # src tree.
12704 ac_file_inputs=`IFS=:
12705 for f in $ac_file_in; do
12706 case $f in
12707 -) echo $tmp/stdin ;;
12708 [\\/$]*)
12709 # Absolute (can't be DOS-style, as IFS=:)
12710 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12711 echo "$as_me: error: cannot find input file: $f" >&2;}
12712 { (exit 1); exit 1; }; }
12713 echo "$f";;
12714 *) # Relative
12715 if test -f "$f"; then
12716 # Build tree
12717 echo "$f"
12718 elif test -f "$srcdir/$f"; then
12719 # Source tree
12720 echo "$srcdir/$f"
12721 else
12722 # /dev/null tree
12723 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12724 echo "$as_me: error: cannot find input file: $f" >&2;}
12725 { (exit 1); exit 1; }; }
12726 fi;;
12727 esac
12728 done` || { (exit 1); exit 1; }
12729 _ACEOF
12730 cat >>$CONFIG_STATUS <<_ACEOF
12731 sed "$ac_vpsub
12732 $extrasub
12733 _ACEOF
12734 cat >>$CONFIG_STATUS <<\_ACEOF
12736 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12737 s,@configure_input@,$configure_input,;t t
12738 s,@srcdir@,$ac_srcdir,;t t
12739 s,@abs_srcdir@,$ac_abs_srcdir,;t t
12740 s,@top_srcdir@,$ac_top_srcdir,;t t
12741 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12742 s,@builddir@,$ac_builddir,;t t
12743 s,@abs_builddir@,$ac_abs_builddir,;t t
12744 s,@top_builddir@,$ac_top_builddir,;t t
12745 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12746 s,@INSTALL@,$ac_INSTALL,;t t
12747 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12748 rm -f $tmp/stdin
12749 if test x"$ac_file" != x-; then
12750 mv $tmp/out $ac_file
12751 else
12752 cat $tmp/out
12753 rm -f $tmp/out
12756 # Run the commands associated with the file.
12757 case $ac_file in
12758 stamp-h ) echo timestamp > stamp-h ;;
12759 contrib/gdiffmk/tests/runtests ) chmod +x contrib/gdiffmk/tests/runtests ;;
12760 test-groff ) chmod +x test-groff ;;
12761 esac
12762 done
12763 _ACEOF
12764 cat >>$CONFIG_STATUS <<\_ACEOF
12767 # CONFIG_HEADER section.
12770 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12771 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12773 # ac_d sets the value in "#define NAME VALUE" lines.
12774 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12775 ac_dB='[ ].*$,\1#\2'
12776 ac_dC=' '
12777 ac_dD=',;t'
12778 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12779 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12780 ac_uB='$,\1#\2define\3'
12781 ac_uC=' '
12782 ac_uD=',;t'
12784 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
12785 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12786 case $ac_file in
12787 - | *:- | *:-:* ) # input from stdin
12788 cat >$tmp/stdin
12789 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12790 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12791 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12792 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12793 * ) ac_file_in=$ac_file.in ;;
12794 esac
12796 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
12797 echo "$as_me: creating $ac_file" >&6;}
12799 # First look for the input files in the build tree, otherwise in the
12800 # src tree.
12801 ac_file_inputs=`IFS=:
12802 for f in $ac_file_in; do
12803 case $f in
12804 -) echo $tmp/stdin ;;
12805 [\\/$]*)
12806 # Absolute (can't be DOS-style, as IFS=:)
12807 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12808 echo "$as_me: error: cannot find input file: $f" >&2;}
12809 { (exit 1); exit 1; }; }
12810 # Quote $f, to prevent DOS file names from being IFS'd.
12811 echo "$f";;
12812 *) # Relative
12813 if test -f "$f"; then
12814 # Build tree
12815 echo "$f"
12816 elif test -f "$srcdir/$f"; then
12817 # Source tree
12818 echo "$srcdir/$f"
12819 else
12820 # /dev/null tree
12821 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12822 echo "$as_me: error: cannot find input file: $f" >&2;}
12823 { (exit 1); exit 1; }; }
12824 fi;;
12825 esac
12826 done` || { (exit 1); exit 1; }
12827 # Remove the trailing spaces.
12828 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
12830 _ACEOF
12832 # Transform confdefs.h into two sed scripts, `conftest.defines' and
12833 # `conftest.undefs', that substitutes the proper values into
12834 # config.h.in to produce config.h. The first handles `#define'
12835 # templates, and the second `#undef' templates.
12836 # And first: Protect against being on the right side of a sed subst in
12837 # config.status. Protect against being in an unquoted here document
12838 # in config.status.
12839 rm -f conftest.defines conftest.undefs
12840 # Using a here document instead of a string reduces the quoting nightmare.
12841 # Putting comments in sed scripts is not portable.
12843 # `end' is used to avoid that the second main sed command (meant for
12844 # 0-ary CPP macros) applies to n-ary macro definitions.
12845 # See the Autoconf documentation for `clear'.
12846 cat >confdef2sed.sed <<\_ACEOF
12847 s/[\\&,]/\\&/g
12848 s,[\\$`],\\&,g
12849 t clear
12850 : clear
12851 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
12852 t end
12853 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
12854 : end
12855 _ACEOF
12856 # If some macros were called several times there might be several times
12857 # the same #defines, which is useless. Nevertheless, we may not want to
12858 # sort them, since we want the *last* AC-DEFINE to be honored.
12859 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
12860 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
12861 rm -f confdef2sed.sed
12863 # This sed command replaces #undef with comments. This is necessary, for
12864 # example, in the case of _POSIX_SOURCE, which is predefined and required
12865 # on some systems where configure will not decide to define it.
12866 cat >>conftest.undefs <<\_ACEOF
12867 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
12868 _ACEOF
12870 # Break up conftest.defines because some shells have a limit on the size
12871 # of here documents, and old seds have small limits too (100 cmds).
12872 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
12873 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
12874 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12875 echo ' :' >>$CONFIG_STATUS
12876 rm -f conftest.tail
12877 while grep . conftest.defines >/dev/null
12879 # Write a limited-size here document to $tmp/defines.sed.
12880 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12881 # Speed up: don't consider the non `#define' lines.
12882 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
12883 # Work around the forget-to-reset-the-flag bug.
12884 echo 't clr' >>$CONFIG_STATUS
12885 echo ': clr' >>$CONFIG_STATUS
12886 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
12887 echo 'CEOF
12888 sed -f $tmp/defines.sed $tmp/in >$tmp/out
12889 rm -f $tmp/in
12890 mv $tmp/out $tmp/in
12891 ' >>$CONFIG_STATUS
12892 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
12893 rm -f conftest.defines
12894 mv conftest.tail conftest.defines
12895 done
12896 rm -f conftest.defines
12897 echo ' fi # grep' >>$CONFIG_STATUS
12898 echo >>$CONFIG_STATUS
12900 # Break up conftest.undefs because some shells have a limit on the size
12901 # of here documents, and old seds have small limits too (100 cmds).
12902 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
12903 rm -f conftest.tail
12904 while grep . conftest.undefs >/dev/null
12906 # Write a limited-size here document to $tmp/undefs.sed.
12907 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
12908 # Speed up: don't consider the non `#undef'
12909 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
12910 # Work around the forget-to-reset-the-flag bug.
12911 echo 't clr' >>$CONFIG_STATUS
12912 echo ': clr' >>$CONFIG_STATUS
12913 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
12914 echo 'CEOF
12915 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12916 rm -f $tmp/in
12917 mv $tmp/out $tmp/in
12918 ' >>$CONFIG_STATUS
12919 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12920 rm -f conftest.undefs
12921 mv conftest.tail conftest.undefs
12922 done
12923 rm -f conftest.undefs
12925 cat >>$CONFIG_STATUS <<\_ACEOF
12926 # Let's still pretend it is `configure' which instantiates (i.e., don't
12927 # use $as_me), people would be surprised to read:
12928 # /* config.h. Generated by config.status. */
12929 if test x"$ac_file" = x-; then
12930 echo "/* Generated by configure. */" >$tmp/config.h
12931 else
12932 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
12934 cat $tmp/in >>$tmp/config.h
12935 rm -f $tmp/in
12936 if test x"$ac_file" != x-; then
12937 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
12938 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12939 echo "$as_me: $ac_file is unchanged" >&6;}
12940 else
12941 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12942 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12943 X"$ac_file" : 'X\(//\)[^/]' \| \
12944 X"$ac_file" : 'X\(//\)$' \| \
12945 X"$ac_file" : 'X\(/\)' \| \
12946 . : '\(.\)' 2>/dev/null ||
12947 echo X"$ac_file" |
12948 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12949 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12950 /^X\(\/\/\)$/{ s//\1/; q; }
12951 /^X\(\/\).*/{ s//\1/; q; }
12952 s/.*/./; q'`
12953 { if $as_mkdir_p; then
12954 test -d "$ac_dir" || mkdir -p "$ac_dir"
12955 else
12956 as_dir="$ac_dir"
12957 as_dirs=
12958 while test ! -d "$as_dir"; do
12959 as_dirs="$as_dir $as_dirs"
12960 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12961 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12962 X"$as_dir" : 'X\(//\)[^/]' \| \
12963 X"$as_dir" : 'X\(//\)$' \| \
12964 X"$as_dir" : 'X\(/\)' \| \
12965 . : '\(.\)' 2>/dev/null ||
12966 echo X"$as_dir" |
12967 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12968 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12969 /^X\(\/\/\)$/{ s//\1/; q; }
12970 /^X\(\/\).*/{ s//\1/; q; }
12971 s/.*/./; q'`
12972 done
12973 test ! -n "$as_dirs" || mkdir $as_dirs
12974 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12975 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12976 { (exit 1); exit 1; }; }; }
12978 rm -f $ac_file
12979 mv $tmp/config.h $ac_file
12981 else
12982 cat $tmp/config.h
12983 rm -f $tmp/config.h
12985 done
12986 _ACEOF
12988 cat >>$CONFIG_STATUS <<\_ACEOF
12990 { (exit 0); exit 0; }
12991 _ACEOF
12992 chmod +x $CONFIG_STATUS
12993 ac_clean_files=$ac_clean_files_save
12996 # configure is writing to config.log, and then calls config.status.
12997 # config.status does its own redirection, appending to config.log.
12998 # Unfortunately, on DOS this fails, as config.log is still kept open
12999 # by configure, so config.status won't be able to write to it; its
13000 # output is simply discarded. So we exec the FD to /dev/null,
13001 # effectively closing config.log, so it can be properly (re)opened and
13002 # appended to by config.status. When coming back to configure, we
13003 # need to make the FD available again.
13004 if test "$no_create" != yes; then
13005 ac_cs_success=:
13006 ac_config_status_args=
13007 test "$silent" = yes &&
13008 ac_config_status_args="$ac_config_status_args --quiet"
13009 exec 5>/dev/null
13010 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13011 exec 5>>config.log
13012 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13013 # would make configure fail if this is the last instruction.
13014 $ac_cs_success || { (exit 1); exit 1; }
13018 if test -z "$groff_no_x"; then
13019 if test "x$with_appresdir" = "x"; then
13020 { echo "$as_me:$LINENO:
13022 The application resource file for gxditview will be installed as
13024 $appresdir/GXditview
13026 (an existing file will be saved as \`GXditview.old').
13027 To install it into a different directory, say, \`/etc/gxditview',
13028 add \`--with-appresdir=/etc/gxditview' to the configure script
13029 command line options and rerun it. The environment variable
13030 \`APPLRESDIR' must then be set to \`/etc/' (note the trailing slash),
13031 omitting the \`gxditview' part which is automatically appended by
13032 the X11 searching routines for resource files. More details can be
13033 found in the X(7) manual page.
13034 " >&5
13035 echo "$as_me:
13037 The application resource file for gxditview will be installed as
13039 $appresdir/GXditview
13041 (an existing file will be saved as \`GXditview.old').
13042 To install it into a different directory, say, \`/etc/gxditview',
13043 add \`--with-appresdir=/etc/gxditview' to the configure script
13044 command line options and rerun it. The environment variable
13045 \`APPLRESDIR' must then be set to \`/etc/' (note the trailing slash),
13046 omitting the \`gxditview' part which is automatically appended by
13047 the X11 searching routines for resource files. More details can be
13048 found in the X(7) manual page.
13049 " >&6;}