* Makefile.in (dist): Don't use soft links but copy files to
[s-roff.git] / configure
blob244e6f9b54f06a97d1f0e3097cb106eafcbe0dc6
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 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 more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 as_nl='
42 export as_nl
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83 as_unset=unset
84 else
85 as_unset=false
89 # IFS
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
94 IFS=" "" $as_nl"
96 # Find who we are. Look in the path if we contain no directory separator.
97 case $0 in
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 for as_dir in $PATH
102 IFS=$as_save_IFS
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 done
106 IFS=$as_save_IFS
109 esac
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
113 as_myself=$0
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
137 as_expr=expr
138 else
139 as_expr=false
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143 as_basename=basename
144 else
145 as_basename=false
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154 $as_echo X/"$0" |
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 s//\1/
159 /^X\/\(\/\/\)$/{
160 s//\1/
163 /^X\/\(\/\).*/{
164 s//\1/
167 s/.*/./; q'`
169 # CDPATH.
170 $as_unset CDPATH
173 if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
175 as_have_required=yes
176 else
177 as_have_required=no
180 if test $as_have_required = yes && (eval ":
181 (as_func_return () {
182 (exit \$1)
184 as_func_success () {
185 as_func_return 0
187 as_func_failure () {
188 as_func_return 1
190 as_func_ret_success () {
191 return 0
193 as_func_ret_failure () {
194 return 1
197 exitcode=0
198 if as_func_success; then
200 else
201 exitcode=1
202 echo as_func_success failed.
205 if as_func_failure; then
206 exitcode=1
207 echo as_func_failure succeeded.
210 if as_func_ret_success; then
212 else
213 exitcode=1
214 echo as_func_ret_success failed.
217 if as_func_ret_failure; then
218 exitcode=1
219 echo as_func_ret_failure succeeded.
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
224 else
225 exitcode=1
226 echo positional parameters were not saved.
229 test \$exitcode = 0) || { (exit 1); exit 1; }
232 as_lineno_1=\$LINENO
233 as_lineno_2=\$LINENO
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
238 else
239 as_candidate_shells=
240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
243 IFS=$as_save_IFS
244 test -z "$as_dir" && as_dir=.
245 case $as_dir in
247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249 done;;
250 esac
251 done
252 IFS=$as_save_IFS
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 emulate sh
261 NULLCMD=:
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
265 setopt NO_GLOB_SUBST
266 else
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
269 esac
275 _ASEOF
276 }; then
277 CONFIG_SHELL=$as_shell
278 as_have_required=yes
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281 emulate sh
282 NULLCMD=:
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
286 setopt NO_GLOB_SUBST
287 else
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
290 esac
296 (as_func_return () {
297 (exit $1)
299 as_func_success () {
300 as_func_return 0
302 as_func_failure () {
303 as_func_return 1
305 as_func_ret_success () {
306 return 0
308 as_func_ret_failure () {
309 return 1
312 exitcode=0
313 if as_func_success; then
315 else
316 exitcode=1
317 echo as_func_success failed.
320 if as_func_failure; then
321 exitcode=1
322 echo as_func_failure succeeded.
325 if as_func_ret_success; then
327 else
328 exitcode=1
329 echo as_func_ret_success failed.
332 if as_func_ret_failure; then
333 exitcode=1
334 echo as_func_ret_failure succeeded.
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
339 else
340 exitcode=1
341 echo positional parameters were not saved.
344 test $exitcode = 0) || { (exit 1); exit 1; }
347 as_lineno_1=$LINENO
348 as_lineno_2=$LINENO
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
352 _ASEOF
353 }; then
354 break
359 done
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364 done
365 export CONFIG_SHELL
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
385 (eval "as_func_return () {
386 (exit \$1)
388 as_func_success () {
389 as_func_return 0
391 as_func_failure () {
392 as_func_return 1
394 as_func_ret_success () {
395 return 0
397 as_func_ret_failure () {
398 return 1
401 exitcode=0
402 if as_func_success; then
404 else
405 exitcode=1
406 echo as_func_success failed.
409 if as_func_failure; then
410 exitcode=1
411 echo as_func_failure succeeded.
414 if as_func_ret_success; then
416 else
417 exitcode=1
418 echo as_func_ret_success failed.
421 if as_func_ret_failure; then
422 exitcode=1
423 echo as_func_ret_failure succeeded.
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
428 else
429 exitcode=1
430 echo positional parameters were not saved.
433 test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
443 as_lineno_1=$LINENO
444 as_lineno_2=$LINENO
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
454 # case at line end.
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
458 sed -n '
460 /[$]LINENO/=
461 ' <$as_myself |
462 sed '
463 s/[$]LINENO.*/&-/
464 t lineno
466 :lineno
468 :loop
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470 t loop
471 s/-\n.*//
472 ' >$as_me.lineno &&
473 chmod +x "$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
480 . "./$as_me.lineno"
481 # Exit status is that of the last command.
482 exit
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487 as_dirname=dirname
488 else
489 as_dirname=false
492 ECHO_C= ECHO_N= ECHO_T=
493 case `echo -n x` in
494 -n*)
495 case `echo 'x\c'` in
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
497 *) ECHO_C='\c';;
498 esac;;
500 ECHO_N='-n';;
501 esac
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
504 as_expr=expr
505 else
506 as_expr=false
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
512 else
513 rm -f conf$$.dir
514 mkdir conf$$.dir 2>/dev/null
516 if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
518 as_ln_s='ln -s'
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524 as_ln_s='cp -p'
525 elif ln conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s=ln
527 else
528 as_ln_s='cp -p'
530 else
531 as_ln_s='cp -p'
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
536 if mkdir -p . 2>/dev/null; then
537 as_mkdir_p=:
538 else
539 test -d ./-p && rmdir ./-p
540 as_mkdir_p=false
543 if test -x / >/dev/null 2>&1; then
544 as_test_x='test -x'
545 else
546 if ls -dL / >/dev/null 2>&1; then
547 as_ls_L_option=L
548 else
549 as_ls_L_option=
551 as_test_x='
552 eval sh -c '\''
553 if test -d "$1"; then
554 test -d "$1/.";
555 else
556 case $1 in
557 -*)set "./$1";;
558 esac;
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
561 '\'' sh
564 as_executable_p=$as_test_x
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
574 exec 7<&0 </dev/null 6>&1
576 # Name of the host.
577 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578 # so uname gets run too.
579 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
582 # Initializations.
584 ac_default_prefix=/usr/local
585 ac_clean_files=
586 ac_config_libobj_dir=.
587 LIBOBJS=
588 cross_compiling=no
589 subdirs=
590 MFLAGS=
591 MAKEFLAGS=
592 SHELL=${CONFIG_SHELL-/bin/sh}
594 # Identity of this package.
595 PACKAGE_NAME=
596 PACKAGE_TARNAME=
597 PACKAGE_VERSION=
598 PACKAGE_STRING=
599 PACKAGE_BUGREPORT=
601 ac_unique_file="src/roff/groff/groff.cpp"
602 # Factoring default headers for most tests.
603 ac_includes_default="\
604 #include <stdio.h>
605 #ifdef HAVE_SYS_TYPES_H
606 # include <sys/types.h>
607 #endif
608 #ifdef HAVE_SYS_STAT_H
609 # include <sys/stat.h>
610 #endif
611 #ifdef STDC_HEADERS
612 # include <stdlib.h>
613 # include <stddef.h>
614 #else
615 # ifdef HAVE_STDLIB_H
616 # include <stdlib.h>
617 # endif
618 #endif
619 #ifdef HAVE_STRING_H
620 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
621 # include <memory.h>
622 # endif
623 # include <string.h>
624 #endif
625 #ifdef HAVE_STRINGS_H
626 # include <strings.h>
627 #endif
628 #ifdef HAVE_INTTYPES_H
629 # include <inttypes.h>
630 #endif
631 #ifdef HAVE_STDINT_H
632 # include <stdint.h>
633 #endif
634 #ifdef HAVE_UNISTD_H
635 # include <unistd.h>
636 #endif"
638 ac_subst_vars='LTLIBOBJS
639 GLIBC21
640 pnmtops_nosetpage
641 make_install_pdfdoc
642 make_pdfdoc
643 ac_ct_AWK
645 ALT_AWK_PROGS
646 make_install_html
647 make_html
648 pnmtops
649 psselect
650 pnmtopng
651 pnmcrop
652 pnmcut
653 ac_ct_GHOSTSCRIPT
654 GHOSTSCRIPT
655 ALT_GHOSTSCRIPT_PROGS
656 GROFF_PATH_SEPARATOR
657 tmac_wrap
658 sys_tmac_prefix
660 PAGE
661 BROKEN_SPOOLER_FLAGS
662 LIBOBJS
663 LTLIBICONV
664 LIBICONV
665 host_os
666 host_vendor
667 host_cpu
668 host
669 build_os
670 build_vendor
671 build_cpu
672 build
673 LIBM
674 LIBC
675 SH_SCRIPT_SED_CMD
676 LN_S
677 INSTALL_DATA
678 INSTALL_SCRIPT
679 INSTALL_PROGRAM
680 INSTALL_INFO
681 RANLIB
682 MAKEINFO
683 YACC
684 PERLPATH
685 EGREP
686 GREP
687 DVIPRINT
688 PSPRINT
692 appresdir
693 XLIBDIRS
694 XPROGDIRS
695 XDEVDIRS
696 X_EXTRA_LIBS
697 X_LIBS
698 X_PRE_LIBS
699 X_CFLAGS
701 XMKMF
702 OTHERDEVDIRS
703 TTYDEVDIRS
704 ac_ct_CXX
705 CXXFLAGS
707 OBJEXT
708 EXEEXT
709 ac_ct_CC
710 CPPFLAGS
711 LDFLAGS
712 CFLAGS
714 target_alias
715 host_alias
716 build_alias
717 LIBS
718 ECHO_T
719 ECHO_N
720 ECHO_C
721 DEFS
722 mandir
723 localedir
724 libdir
725 psdir
726 pdfdir
727 dvidir
728 htmldir
729 infodir
730 docdir
731 oldincludedir
732 includedir
733 localstatedir
734 sharedstatedir
735 sysconfdir
736 datadir
737 datarootdir
738 libexecdir
739 sbindir
740 bindir
741 program_transform_name
742 prefix
743 exec_prefix
744 PACKAGE_BUGREPORT
745 PACKAGE_STRING
746 PACKAGE_VERSION
747 PACKAGE_TARNAME
748 PACKAGE_NAME
749 PATH_SEPARATOR
750 SHELL'
751 ac_subst_files=''
752 ac_user_opts='
753 enable_option_checking
754 with_x
755 with_appresdir
756 with_gnu_ld
757 enable_rpath
758 with_libiconv_prefix
759 with_alt_gs
760 with_gs
761 with_alt_awk
762 with_awk
764 ac_precious_vars='build_alias
765 host_alias
766 target_alias
768 CFLAGS
769 LDFLAGS
770 LIBS
771 CPPFLAGS
773 CXXFLAGS
775 XMKMF
776 CPP'
779 # Initialize some variables set by options.
780 ac_init_help=
781 ac_init_version=false
782 ac_unrecognized_opts=
783 ac_unrecognized_sep=
784 # The variables have the same names as the options, with
785 # dashes changed to underlines.
786 cache_file=/dev/null
787 exec_prefix=NONE
788 no_create=
789 no_recursion=
790 prefix=NONE
791 program_prefix=NONE
792 program_suffix=NONE
793 program_transform_name=s,x,x,
794 silent=
795 site=
796 srcdir=
797 verbose=
798 x_includes=NONE
799 x_libraries=NONE
801 # Installation directory options.
802 # These are left unexpanded so users can "make install exec_prefix=/foo"
803 # and all the variables that are supposed to be based on exec_prefix
804 # by default will actually change.
805 # Use braces instead of parens because sh, perl, etc. also accept them.
806 # (The list follows the same order as the GNU Coding Standards.)
807 bindir='${exec_prefix}/bin'
808 sbindir='${exec_prefix}/sbin'
809 libexecdir='${exec_prefix}/libexec'
810 datarootdir='${prefix}/share'
811 datadir='${datarootdir}'
812 sysconfdir='${prefix}/etc'
813 sharedstatedir='${prefix}/com'
814 localstatedir='${prefix}/var'
815 includedir='${prefix}/include'
816 oldincludedir='/usr/include'
817 docdir='${datarootdir}/doc/${PACKAGE}'
818 infodir='${datarootdir}/info'
819 htmldir='${docdir}'
820 dvidir='${docdir}'
821 pdfdir='${docdir}'
822 psdir='${docdir}'
823 libdir='${exec_prefix}/lib'
824 localedir='${datarootdir}/locale'
825 mandir='${datarootdir}/man'
827 ac_prev=
828 ac_dashdash=
829 for ac_option
831 # If the previous option needs an argument, assign it.
832 if test -n "$ac_prev"; then
833 eval $ac_prev=\$ac_option
834 ac_prev=
835 continue
838 case $ac_option in
839 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
840 *) ac_optarg=yes ;;
841 esac
843 # Accept the important Cygnus configure options, so we can diagnose typos.
845 case $ac_dashdash$ac_option in
847 ac_dashdash=yes ;;
849 -bindir | --bindir | --bindi | --bind | --bin | --bi)
850 ac_prev=bindir ;;
851 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
852 bindir=$ac_optarg ;;
854 -build | --build | --buil | --bui | --bu)
855 ac_prev=build_alias ;;
856 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
857 build_alias=$ac_optarg ;;
859 -cache-file | --cache-file | --cache-fil | --cache-fi \
860 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
861 ac_prev=cache_file ;;
862 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
863 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
864 cache_file=$ac_optarg ;;
866 --config-cache | -C)
867 cache_file=config.cache ;;
869 -datadir | --datadir | --datadi | --datad)
870 ac_prev=datadir ;;
871 -datadir=* | --datadir=* | --datadi=* | --datad=*)
872 datadir=$ac_optarg ;;
874 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
875 | --dataroo | --dataro | --datar)
876 ac_prev=datarootdir ;;
877 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
878 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
879 datarootdir=$ac_optarg ;;
881 -disable-* | --disable-*)
882 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
883 # Reject names that are not valid shell variable names.
884 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
885 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
886 { (exit 1); exit 1; }; }
887 ac_useropt_orig=$ac_useropt
888 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
889 case $ac_user_opts in
891 "enable_$ac_useropt"
892 "*) ;;
893 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
894 ac_unrecognized_sep=', ';;
895 esac
896 eval enable_$ac_useropt=no ;;
898 -docdir | --docdir | --docdi | --doc | --do)
899 ac_prev=docdir ;;
900 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
901 docdir=$ac_optarg ;;
903 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
904 ac_prev=dvidir ;;
905 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
906 dvidir=$ac_optarg ;;
908 -enable-* | --enable-*)
909 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
910 # Reject names that are not valid shell variable names.
911 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
912 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
913 { (exit 1); exit 1; }; }
914 ac_useropt_orig=$ac_useropt
915 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
916 case $ac_user_opts in
918 "enable_$ac_useropt"
919 "*) ;;
920 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
921 ac_unrecognized_sep=', ';;
922 esac
923 eval enable_$ac_useropt=\$ac_optarg ;;
925 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
926 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
927 | --exec | --exe | --ex)
928 ac_prev=exec_prefix ;;
929 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
930 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
931 | --exec=* | --exe=* | --ex=*)
932 exec_prefix=$ac_optarg ;;
934 -gas | --gas | --ga | --g)
935 # Obsolete; use --with-gas.
936 with_gas=yes ;;
938 -help | --help | --hel | --he | -h)
939 ac_init_help=long ;;
940 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
941 ac_init_help=recursive ;;
942 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
943 ac_init_help=short ;;
945 -host | --host | --hos | --ho)
946 ac_prev=host_alias ;;
947 -host=* | --host=* | --hos=* | --ho=*)
948 host_alias=$ac_optarg ;;
950 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
951 ac_prev=htmldir ;;
952 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
953 | --ht=*)
954 htmldir=$ac_optarg ;;
956 -includedir | --includedir | --includedi | --included | --include \
957 | --includ | --inclu | --incl | --inc)
958 ac_prev=includedir ;;
959 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
960 | --includ=* | --inclu=* | --incl=* | --inc=*)
961 includedir=$ac_optarg ;;
963 -infodir | --infodir | --infodi | --infod | --info | --inf)
964 ac_prev=infodir ;;
965 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
966 infodir=$ac_optarg ;;
968 -libdir | --libdir | --libdi | --libd)
969 ac_prev=libdir ;;
970 -libdir=* | --libdir=* | --libdi=* | --libd=*)
971 libdir=$ac_optarg ;;
973 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
974 | --libexe | --libex | --libe)
975 ac_prev=libexecdir ;;
976 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
977 | --libexe=* | --libex=* | --libe=*)
978 libexecdir=$ac_optarg ;;
980 -localedir | --localedir | --localedi | --localed | --locale)
981 ac_prev=localedir ;;
982 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
983 localedir=$ac_optarg ;;
985 -localstatedir | --localstatedir | --localstatedi | --localstated \
986 | --localstate | --localstat | --localsta | --localst | --locals)
987 ac_prev=localstatedir ;;
988 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
989 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
990 localstatedir=$ac_optarg ;;
992 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
993 ac_prev=mandir ;;
994 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
995 mandir=$ac_optarg ;;
997 -nfp | --nfp | --nf)
998 # Obsolete; use --without-fp.
999 with_fp=no ;;
1001 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1002 | --no-cr | --no-c | -n)
1003 no_create=yes ;;
1005 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1006 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1007 no_recursion=yes ;;
1009 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1010 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1011 | --oldin | --oldi | --old | --ol | --o)
1012 ac_prev=oldincludedir ;;
1013 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1014 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1015 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1016 oldincludedir=$ac_optarg ;;
1018 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1019 ac_prev=prefix ;;
1020 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1021 prefix=$ac_optarg ;;
1023 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1024 | --program-pre | --program-pr | --program-p)
1025 ac_prev=program_prefix ;;
1026 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1027 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1028 program_prefix=$ac_optarg ;;
1030 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1031 | --program-suf | --program-su | --program-s)
1032 ac_prev=program_suffix ;;
1033 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1034 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1035 program_suffix=$ac_optarg ;;
1037 -program-transform-name | --program-transform-name \
1038 | --program-transform-nam | --program-transform-na \
1039 | --program-transform-n | --program-transform- \
1040 | --program-transform | --program-transfor \
1041 | --program-transfo | --program-transf \
1042 | --program-trans | --program-tran \
1043 | --progr-tra | --program-tr | --program-t)
1044 ac_prev=program_transform_name ;;
1045 -program-transform-name=* | --program-transform-name=* \
1046 | --program-transform-nam=* | --program-transform-na=* \
1047 | --program-transform-n=* | --program-transform-=* \
1048 | --program-transform=* | --program-transfor=* \
1049 | --program-transfo=* | --program-transf=* \
1050 | --program-trans=* | --program-tran=* \
1051 | --progr-tra=* | --program-tr=* | --program-t=*)
1052 program_transform_name=$ac_optarg ;;
1054 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1055 ac_prev=pdfdir ;;
1056 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1057 pdfdir=$ac_optarg ;;
1059 -psdir | --psdir | --psdi | --psd | --ps)
1060 ac_prev=psdir ;;
1061 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1062 psdir=$ac_optarg ;;
1064 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1065 | -silent | --silent | --silen | --sile | --sil)
1066 silent=yes ;;
1068 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1069 ac_prev=sbindir ;;
1070 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1071 | --sbi=* | --sb=*)
1072 sbindir=$ac_optarg ;;
1074 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1075 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1076 | --sharedst | --shareds | --shared | --share | --shar \
1077 | --sha | --sh)
1078 ac_prev=sharedstatedir ;;
1079 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1080 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1081 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1082 | --sha=* | --sh=*)
1083 sharedstatedir=$ac_optarg ;;
1085 -site | --site | --sit)
1086 ac_prev=site ;;
1087 -site=* | --site=* | --sit=*)
1088 site=$ac_optarg ;;
1090 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1091 ac_prev=srcdir ;;
1092 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1093 srcdir=$ac_optarg ;;
1095 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1096 | --syscon | --sysco | --sysc | --sys | --sy)
1097 ac_prev=sysconfdir ;;
1098 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1099 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1100 sysconfdir=$ac_optarg ;;
1102 -target | --target | --targe | --targ | --tar | --ta | --t)
1103 ac_prev=target_alias ;;
1104 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1105 target_alias=$ac_optarg ;;
1107 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1108 verbose=yes ;;
1110 -version | --version | --versio | --versi | --vers | -V)
1111 ac_init_version=: ;;
1113 -with-* | --with-*)
1114 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1115 # Reject names that are not valid shell variable names.
1116 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1117 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1118 { (exit 1); exit 1; }; }
1119 ac_useropt_orig=$ac_useropt
1120 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1121 case $ac_user_opts in
1123 "with_$ac_useropt"
1124 "*) ;;
1125 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1126 ac_unrecognized_sep=', ';;
1127 esac
1128 eval with_$ac_useropt=\$ac_optarg ;;
1130 -without-* | --without-*)
1131 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1132 # Reject names that are not valid shell variable names.
1133 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1134 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1135 { (exit 1); exit 1; }; }
1136 ac_useropt_orig=$ac_useropt
1137 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1138 case $ac_user_opts in
1140 "with_$ac_useropt"
1141 "*) ;;
1142 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1143 ac_unrecognized_sep=', ';;
1144 esac
1145 eval with_$ac_useropt=no ;;
1147 --x)
1148 # Obsolete; use --with-x.
1149 with_x=yes ;;
1151 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1152 | --x-incl | --x-inc | --x-in | --x-i)
1153 ac_prev=x_includes ;;
1154 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1155 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1156 x_includes=$ac_optarg ;;
1158 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1159 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1160 ac_prev=x_libraries ;;
1161 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1162 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1163 x_libraries=$ac_optarg ;;
1165 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1166 Try \`$0 --help' for more information." >&2
1167 { (exit 1); exit 1; }; }
1170 *=*)
1171 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1172 # Reject names that are not valid shell variable names.
1173 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1174 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1175 { (exit 1); exit 1; }; }
1176 eval $ac_envvar=\$ac_optarg
1177 export $ac_envvar ;;
1180 # FIXME: should be removed in autoconf 3.0.
1181 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1182 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1183 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1184 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1187 esac
1188 done
1190 if test -n "$ac_prev"; then
1191 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1192 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1193 { (exit 1); exit 1; }; }
1196 if test -n "$ac_unrecognized_opts"; then
1197 case $enable_option_checking in
1198 no) ;;
1199 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1200 { (exit 1); exit 1; }; } ;;
1201 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1202 esac
1205 # Check all directory arguments for consistency.
1206 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1207 datadir sysconfdir sharedstatedir localstatedir includedir \
1208 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1209 libdir localedir mandir
1211 eval ac_val=\$$ac_var
1212 # Remove trailing slashes.
1213 case $ac_val in
1214 */ )
1215 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1216 eval $ac_var=\$ac_val;;
1217 esac
1218 # Be sure to have absolute directory names.
1219 case $ac_val in
1220 [\\/$]* | ?:[\\/]* ) continue;;
1221 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1222 esac
1223 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1224 { (exit 1); exit 1; }; }
1225 done
1227 # There might be people who depend on the old broken behavior: `$host'
1228 # used to hold the argument of --host etc.
1229 # FIXME: To remove some day.
1230 build=$build_alias
1231 host=$host_alias
1232 target=$target_alias
1234 # FIXME: To remove some day.
1235 if test "x$host_alias" != x; then
1236 if test "x$build_alias" = x; then
1237 cross_compiling=maybe
1238 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1239 If a cross compiler is detected then cross compile mode will be used." >&2
1240 elif test "x$build_alias" != "x$host_alias"; then
1241 cross_compiling=yes
1245 ac_tool_prefix=
1246 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1248 test "$silent" = yes && exec 6>/dev/null
1251 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1252 ac_ls_di=`ls -di .` &&
1253 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1254 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1255 { (exit 1); exit 1; }; }
1256 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1257 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1258 { (exit 1); exit 1; }; }
1261 # Find the source files, if location was not specified.
1262 if test -z "$srcdir"; then
1263 ac_srcdir_defaulted=yes
1264 # Try the directory containing this script, then the parent directory.
1265 ac_confdir=`$as_dirname -- "$as_myself" ||
1266 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1267 X"$as_myself" : 'X\(//\)[^/]' \| \
1268 X"$as_myself" : 'X\(//\)$' \| \
1269 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1270 $as_echo X"$as_myself" |
1271 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1272 s//\1/
1275 /^X\(\/\/\)[^/].*/{
1276 s//\1/
1279 /^X\(\/\/\)$/{
1280 s//\1/
1283 /^X\(\/\).*/{
1284 s//\1/
1287 s/.*/./; q'`
1288 srcdir=$ac_confdir
1289 if test ! -r "$srcdir/$ac_unique_file"; then
1290 srcdir=..
1292 else
1293 ac_srcdir_defaulted=no
1295 if test ! -r "$srcdir/$ac_unique_file"; then
1296 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1297 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1298 { (exit 1); exit 1; }; }
1300 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1301 ac_abs_confdir=`(
1302 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1303 { (exit 1); exit 1; }; }
1304 pwd)`
1305 # When building in place, set srcdir=.
1306 if test "$ac_abs_confdir" = "$ac_pwd"; then
1307 srcdir=.
1309 # Remove unnecessary trailing slashes from srcdir.
1310 # Double slashes in file names in object file debugging info
1311 # mess up M-x gdb in Emacs.
1312 case $srcdir in
1313 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1314 esac
1315 for ac_var in $ac_precious_vars; do
1316 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1317 eval ac_env_${ac_var}_value=\$${ac_var}
1318 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1319 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1320 done
1323 # Report the --help message.
1325 if test "$ac_init_help" = "long"; then
1326 # Omit some internal or obsolete options to make the list less imposing.
1327 # This message is too long to be a string in the A/UX 3.1 sh.
1328 cat <<_ACEOF
1329 \`configure' configures this package to adapt to many kinds of systems.
1331 Usage: $0 [OPTION]... [VAR=VALUE]...
1333 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1334 VAR=VALUE. See below for descriptions of some of the useful variables.
1336 Defaults for the options are specified in brackets.
1338 Configuration:
1339 -h, --help display this help and exit
1340 --help=short display options specific to this package
1341 --help=recursive display the short help of all the included packages
1342 -V, --version display version information and exit
1343 -q, --quiet, --silent do not print \`checking...' messages
1344 --cache-file=FILE cache test results in FILE [disabled]
1345 -C, --config-cache alias for \`--cache-file=config.cache'
1346 -n, --no-create do not create output files
1347 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1349 Installation directories:
1350 --prefix=PREFIX install architecture-independent files in PREFIX
1351 [$ac_default_prefix]
1352 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1353 [PREFIX]
1355 By default, \`make install' will install all the files in
1356 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1357 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1358 for instance \`--prefix=\$HOME'.
1360 For better control, use the options below.
1362 Fine tuning of the installation directories:
1363 --bindir=DIR user executables [EPREFIX/bin]
1364 --sbindir=DIR system admin executables [EPREFIX/sbin]
1365 --libexecdir=DIR program executables [EPREFIX/libexec]
1366 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1367 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1368 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1369 --libdir=DIR object code libraries [EPREFIX/lib]
1370 --includedir=DIR C header files [PREFIX/include]
1371 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1372 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1373 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1374 --infodir=DIR info documentation [DATAROOTDIR/info]
1375 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1376 --mandir=DIR man documentation [DATAROOTDIR/man]
1377 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1378 --htmldir=DIR html documentation [DOCDIR]
1379 --dvidir=DIR dvi documentation [DOCDIR]
1380 --pdfdir=DIR pdf documentation [DOCDIR]
1381 --psdir=DIR ps documentation [DOCDIR]
1382 _ACEOF
1384 cat <<\_ACEOF
1386 X features:
1387 --x-includes=DIR X include files are in DIR
1388 --x-libraries=DIR X library files are in DIR
1390 System types:
1391 --build=BUILD configure for building on BUILD [guessed]
1392 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1393 _ACEOF
1396 if test -n "$ac_init_help"; then
1398 cat <<\_ACEOF
1400 Optional Features:
1401 --disable-option-checking ignore unrecognized --enable/--with options
1402 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1403 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1404 --disable-rpath do not hardcode runtime library paths
1406 Optional Packages:
1407 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1408 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1409 --with-x use the X Window System
1410 --with-appresdir=DIR X11 application resource files
1411 --with-gnu-ld assume the C compiler uses GNU ld default=no
1412 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1413 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1414 --with-alt-gs=LIST alternative names for ghostscript executable
1415 --with-gs=PROG actual [/path/]name of ghostscript executable
1416 --with-alt-awk=LIST alternative names for awk executable
1417 --with-awk=PROG actual [/path/]name of awk executable
1419 Some influential environment variables:
1420 CC C compiler command
1421 CFLAGS C compiler flags
1422 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1423 nonstandard directory <lib dir>
1424 LIBS libraries to pass to the linker, e.g. -l<library>
1425 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1426 you have headers in a nonstandard directory <include dir>
1427 CXX C++ compiler command
1428 CXXFLAGS C++ compiler flags
1429 XMKMF Path to xmkmf, Makefile generator for X Window System
1430 CPP C preprocessor
1432 Use these variables to override the choices made by `configure' or to help
1433 it to find libraries and programs with nonstandard names/locations.
1435 _ACEOF
1436 ac_status=$?
1439 if test "$ac_init_help" = "recursive"; then
1440 # If there are subdirs, report their specific --help.
1441 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1442 test -d "$ac_dir" ||
1443 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1444 continue
1445 ac_builddir=.
1447 case "$ac_dir" in
1448 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1450 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1451 # A ".." for each directory in $ac_dir_suffix.
1452 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1453 case $ac_top_builddir_sub in
1454 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1455 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1456 esac ;;
1457 esac
1458 ac_abs_top_builddir=$ac_pwd
1459 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1460 # for backward compatibility:
1461 ac_top_builddir=$ac_top_build_prefix
1463 case $srcdir in
1464 .) # We are building in place.
1465 ac_srcdir=.
1466 ac_top_srcdir=$ac_top_builddir_sub
1467 ac_abs_top_srcdir=$ac_pwd ;;
1468 [\\/]* | ?:[\\/]* ) # Absolute name.
1469 ac_srcdir=$srcdir$ac_dir_suffix;
1470 ac_top_srcdir=$srcdir
1471 ac_abs_top_srcdir=$srcdir ;;
1472 *) # Relative name.
1473 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1474 ac_top_srcdir=$ac_top_build_prefix$srcdir
1475 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1476 esac
1477 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1479 cd "$ac_dir" || { ac_status=$?; continue; }
1480 # Check for guested configure.
1481 if test -f "$ac_srcdir/configure.gnu"; then
1482 echo &&
1483 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1484 elif test -f "$ac_srcdir/configure"; then
1485 echo &&
1486 $SHELL "$ac_srcdir/configure" --help=recursive
1487 else
1488 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1489 fi || ac_status=$?
1490 cd "$ac_pwd" || { ac_status=$?; break; }
1491 done
1494 test -n "$ac_init_help" && exit $ac_status
1495 if $ac_init_version; then
1496 cat <<\_ACEOF
1497 configure
1498 generated by GNU Autoconf 2.63
1500 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1501 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1502 This configure script is free software; the Free Software Foundation
1503 gives unlimited permission to copy, distribute and modify it.
1504 _ACEOF
1505 exit
1507 cat >config.log <<_ACEOF
1508 This file contains any messages produced by compilers while
1509 running configure, to aid debugging if configure makes a mistake.
1511 It was created by $as_me, which was
1512 generated by GNU Autoconf 2.63. Invocation command line was
1514 $ $0 $@
1516 _ACEOF
1517 exec 5>>config.log
1519 cat <<_ASUNAME
1520 ## --------- ##
1521 ## Platform. ##
1522 ## --------- ##
1524 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1525 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1526 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1527 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1528 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1530 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1531 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1533 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1534 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1535 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1536 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1537 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1538 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1539 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1541 _ASUNAME
1543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1544 for as_dir in $PATH
1546 IFS=$as_save_IFS
1547 test -z "$as_dir" && as_dir=.
1548 $as_echo "PATH: $as_dir"
1549 done
1550 IFS=$as_save_IFS
1552 } >&5
1554 cat >&5 <<_ACEOF
1557 ## ----------- ##
1558 ## Core tests. ##
1559 ## ----------- ##
1561 _ACEOF
1564 # Keep a trace of the command line.
1565 # Strip out --no-create and --no-recursion so they do not pile up.
1566 # Strip out --silent because we don't want to record it for future runs.
1567 # Also quote any args containing shell meta-characters.
1568 # Make two passes to allow for proper duplicate-argument suppression.
1569 ac_configure_args=
1570 ac_configure_args0=
1571 ac_configure_args1=
1572 ac_must_keep_next=false
1573 for ac_pass in 1 2
1575 for ac_arg
1577 case $ac_arg in
1578 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1579 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1580 | -silent | --silent | --silen | --sile | --sil)
1581 continue ;;
1582 *\'*)
1583 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1584 esac
1585 case $ac_pass in
1586 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1588 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1589 if test $ac_must_keep_next = true; then
1590 ac_must_keep_next=false # Got value, back to normal.
1591 else
1592 case $ac_arg in
1593 *=* | --config-cache | -C | -disable-* | --disable-* \
1594 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1595 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1596 | -with-* | --with-* | -without-* | --without-* | --x)
1597 case "$ac_configure_args0 " in
1598 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1599 esac
1601 -* ) ac_must_keep_next=true ;;
1602 esac
1604 ac_configure_args="$ac_configure_args '$ac_arg'"
1606 esac
1607 done
1608 done
1609 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1610 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1612 # When interrupted or exit'd, cleanup temporary files, and complete
1613 # config.log. We remove comments because anyway the quotes in there
1614 # would cause problems or look ugly.
1615 # WARNING: Use '\'' to represent an apostrophe within the trap.
1616 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1617 trap 'exit_status=$?
1618 # Save into config.log some information that might help in debugging.
1620 echo
1622 cat <<\_ASBOX
1623 ## ---------------- ##
1624 ## Cache variables. ##
1625 ## ---------------- ##
1626 _ASBOX
1627 echo
1628 # The following way of writing the cache mishandles newlines in values,
1630 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1631 eval ac_val=\$$ac_var
1632 case $ac_val in #(
1633 *${as_nl}*)
1634 case $ac_var in #(
1635 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1636 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1637 esac
1638 case $ac_var in #(
1639 _ | IFS | as_nl) ;; #(
1640 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1641 *) $as_unset $ac_var ;;
1642 esac ;;
1643 esac
1644 done
1645 (set) 2>&1 |
1646 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1647 *${as_nl}ac_space=\ *)
1648 sed -n \
1649 "s/'\''/'\''\\\\'\'''\''/g;
1650 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1651 ;; #(
1653 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1655 esac |
1656 sort
1658 echo
1660 cat <<\_ASBOX
1661 ## ----------------- ##
1662 ## Output variables. ##
1663 ## ----------------- ##
1664 _ASBOX
1665 echo
1666 for ac_var in $ac_subst_vars
1668 eval ac_val=\$$ac_var
1669 case $ac_val in
1670 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1671 esac
1672 $as_echo "$ac_var='\''$ac_val'\''"
1673 done | sort
1674 echo
1676 if test -n "$ac_subst_files"; then
1677 cat <<\_ASBOX
1678 ## ------------------- ##
1679 ## File substitutions. ##
1680 ## ------------------- ##
1681 _ASBOX
1682 echo
1683 for ac_var in $ac_subst_files
1685 eval ac_val=\$$ac_var
1686 case $ac_val in
1687 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1688 esac
1689 $as_echo "$ac_var='\''$ac_val'\''"
1690 done | sort
1691 echo
1694 if test -s confdefs.h; then
1695 cat <<\_ASBOX
1696 ## ----------- ##
1697 ## confdefs.h. ##
1698 ## ----------- ##
1699 _ASBOX
1700 echo
1701 cat confdefs.h
1702 echo
1704 test "$ac_signal" != 0 &&
1705 $as_echo "$as_me: caught signal $ac_signal"
1706 $as_echo "$as_me: exit $exit_status"
1707 } >&5
1708 rm -f core *.core core.conftest.* &&
1709 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1710 exit $exit_status
1712 for ac_signal in 1 2 13 15; do
1713 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1714 done
1715 ac_signal=0
1717 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1718 rm -f -r conftest* confdefs.h
1720 # Predefined preprocessor variables.
1722 cat >>confdefs.h <<_ACEOF
1723 #define PACKAGE_NAME "$PACKAGE_NAME"
1724 _ACEOF
1727 cat >>confdefs.h <<_ACEOF
1728 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1729 _ACEOF
1732 cat >>confdefs.h <<_ACEOF
1733 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1734 _ACEOF
1737 cat >>confdefs.h <<_ACEOF
1738 #define PACKAGE_STRING "$PACKAGE_STRING"
1739 _ACEOF
1742 cat >>confdefs.h <<_ACEOF
1743 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1744 _ACEOF
1747 # Let the site file select an alternate cache file if it wants to.
1748 # Prefer an explicitly selected file to automatically selected ones.
1749 ac_site_file1=NONE
1750 ac_site_file2=NONE
1751 if test -n "$CONFIG_SITE"; then
1752 ac_site_file1=$CONFIG_SITE
1753 elif test "x$prefix" != xNONE; then
1754 ac_site_file1=$prefix/share/config.site
1755 ac_site_file2=$prefix/etc/config.site
1756 else
1757 ac_site_file1=$ac_default_prefix/share/config.site
1758 ac_site_file2=$ac_default_prefix/etc/config.site
1760 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1762 test "x$ac_site_file" = xNONE && continue
1763 if test -r "$ac_site_file"; then
1764 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1765 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1766 sed 's/^/| /' "$ac_site_file" >&5
1767 . "$ac_site_file"
1769 done
1771 if test -r "$cache_file"; then
1772 # Some versions of bash will fail to source /dev/null (special
1773 # files actually), so we avoid doing that.
1774 if test -f "$cache_file"; then
1775 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1776 $as_echo "$as_me: loading cache $cache_file" >&6;}
1777 case $cache_file in
1778 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1779 *) . "./$cache_file";;
1780 esac
1782 else
1783 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1784 $as_echo "$as_me: creating cache $cache_file" >&6;}
1785 >$cache_file
1788 # Check that the precious variables saved in the cache have kept the same
1789 # value.
1790 ac_cache_corrupted=false
1791 for ac_var in $ac_precious_vars; do
1792 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1793 eval ac_new_set=\$ac_env_${ac_var}_set
1794 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1795 eval ac_new_val=\$ac_env_${ac_var}_value
1796 case $ac_old_set,$ac_new_set in
1797 set,)
1798 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1799 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1800 ac_cache_corrupted=: ;;
1801 ,set)
1802 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1803 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1804 ac_cache_corrupted=: ;;
1805 ,);;
1807 if test "x$ac_old_val" != "x$ac_new_val"; then
1808 # differences in whitespace do not lead to failure.
1809 ac_old_val_w=`echo x $ac_old_val`
1810 ac_new_val_w=`echo x $ac_new_val`
1811 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1812 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1813 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1814 ac_cache_corrupted=:
1815 else
1816 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1817 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1818 eval $ac_var=\$ac_old_val
1820 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1821 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1822 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1823 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1824 fi;;
1825 esac
1826 # Pass precious variables to config.status.
1827 if test "$ac_new_set" = set; then
1828 case $ac_new_val in
1829 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1830 *) ac_arg=$ac_var=$ac_new_val ;;
1831 esac
1832 case " $ac_configure_args " in
1833 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1834 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1835 esac
1837 done
1838 if $ac_cache_corrupted; then
1839 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1840 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1841 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1842 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1843 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1844 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1845 { (exit 1); exit 1; }; }
1864 ac_ext=c
1865 ac_cpp='$CPP $CPPFLAGS'
1866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1873 ac_config_headers="$ac_config_headers src/include/config.h:src/include/config.hin"
1877 # checks for programs
1878 ac_ext=c
1879 ac_cpp='$CPP $CPPFLAGS'
1880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1882 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1883 if test -n "$ac_tool_prefix"; then
1884 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1885 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1886 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
1887 $as_echo_n "checking for $ac_word... " >&6; }
1888 if test "${ac_cv_prog_CC+set}" = set; then
1889 $as_echo_n "(cached) " >&6
1890 else
1891 if test -n "$CC"; then
1892 ac_cv_prog_CC="$CC" # Let the user override the test.
1893 else
1894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1895 for as_dir in $PATH
1897 IFS=$as_save_IFS
1898 test -z "$as_dir" && as_dir=.
1899 for ac_exec_ext in '' $ac_executable_extensions; do
1900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1901 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1902 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1903 break 2
1905 done
1906 done
1907 IFS=$as_save_IFS
1911 CC=$ac_cv_prog_CC
1912 if test -n "$CC"; then
1913 { $as_echo "$as_me:$LINENO: result: $CC" >&5
1914 $as_echo "$CC" >&6; }
1915 else
1916 { $as_echo "$as_me:$LINENO: result: no" >&5
1917 $as_echo "no" >&6; }
1922 if test -z "$ac_cv_prog_CC"; then
1923 ac_ct_CC=$CC
1924 # Extract the first word of "gcc", so it can be a program name with args.
1925 set dummy gcc; ac_word=$2
1926 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
1927 $as_echo_n "checking for $ac_word... " >&6; }
1928 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1929 $as_echo_n "(cached) " >&6
1930 else
1931 if test -n "$ac_ct_CC"; then
1932 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1933 else
1934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1935 for as_dir in $PATH
1937 IFS=$as_save_IFS
1938 test -z "$as_dir" && as_dir=.
1939 for ac_exec_ext in '' $ac_executable_extensions; do
1940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1941 ac_cv_prog_ac_ct_CC="gcc"
1942 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1943 break 2
1945 done
1946 done
1947 IFS=$as_save_IFS
1951 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1952 if test -n "$ac_ct_CC"; then
1953 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1954 $as_echo "$ac_ct_CC" >&6; }
1955 else
1956 { $as_echo "$as_me:$LINENO: result: no" >&5
1957 $as_echo "no" >&6; }
1960 if test "x$ac_ct_CC" = x; then
1961 CC=""
1962 else
1963 case $cross_compiling:$ac_tool_warned in
1964 yes:)
1965 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
1966 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1967 ac_tool_warned=yes ;;
1968 esac
1969 CC=$ac_ct_CC
1971 else
1972 CC="$ac_cv_prog_CC"
1975 if test -z "$CC"; then
1976 if test -n "$ac_tool_prefix"; then
1977 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1978 set dummy ${ac_tool_prefix}cc; ac_word=$2
1979 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
1980 $as_echo_n "checking for $ac_word... " >&6; }
1981 if test "${ac_cv_prog_CC+set}" = set; then
1982 $as_echo_n "(cached) " >&6
1983 else
1984 if test -n "$CC"; then
1985 ac_cv_prog_CC="$CC" # Let the user override the test.
1986 else
1987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1988 for as_dir in $PATH
1990 IFS=$as_save_IFS
1991 test -z "$as_dir" && as_dir=.
1992 for ac_exec_ext in '' $ac_executable_extensions; do
1993 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1994 ac_cv_prog_CC="${ac_tool_prefix}cc"
1995 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1996 break 2
1998 done
1999 done
2000 IFS=$as_save_IFS
2004 CC=$ac_cv_prog_CC
2005 if test -n "$CC"; then
2006 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2007 $as_echo "$CC" >&6; }
2008 else
2009 { $as_echo "$as_me:$LINENO: result: no" >&5
2010 $as_echo "no" >&6; }
2016 if test -z "$CC"; then
2017 # Extract the first word of "cc", so it can be a program name with args.
2018 set dummy cc; ac_word=$2
2019 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2020 $as_echo_n "checking for $ac_word... " >&6; }
2021 if test "${ac_cv_prog_CC+set}" = set; then
2022 $as_echo_n "(cached) " >&6
2023 else
2024 if test -n "$CC"; then
2025 ac_cv_prog_CC="$CC" # Let the user override the test.
2026 else
2027 ac_prog_rejected=no
2028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2029 for as_dir in $PATH
2031 IFS=$as_save_IFS
2032 test -z "$as_dir" && as_dir=.
2033 for ac_exec_ext in '' $ac_executable_extensions; do
2034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2035 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2036 ac_prog_rejected=yes
2037 continue
2039 ac_cv_prog_CC="cc"
2040 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2041 break 2
2043 done
2044 done
2045 IFS=$as_save_IFS
2047 if test $ac_prog_rejected = yes; then
2048 # We found a bogon in the path, so make sure we never use it.
2049 set dummy $ac_cv_prog_CC
2050 shift
2051 if test $# != 0; then
2052 # We chose a different compiler from the bogus one.
2053 # However, it has the same basename, so the bogon will be chosen
2054 # first if we set CC to just the basename; use the full file name.
2055 shift
2056 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2061 CC=$ac_cv_prog_CC
2062 if test -n "$CC"; then
2063 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2064 $as_echo "$CC" >&6; }
2065 else
2066 { $as_echo "$as_me:$LINENO: result: no" >&5
2067 $as_echo "no" >&6; }
2072 if test -z "$CC"; then
2073 if test -n "$ac_tool_prefix"; then
2074 for ac_prog in cl.exe
2076 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2077 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2078 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2079 $as_echo_n "checking for $ac_word... " >&6; }
2080 if test "${ac_cv_prog_CC+set}" = set; then
2081 $as_echo_n "(cached) " >&6
2082 else
2083 if test -n "$CC"; then
2084 ac_cv_prog_CC="$CC" # Let the user override the test.
2085 else
2086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2087 for as_dir in $PATH
2089 IFS=$as_save_IFS
2090 test -z "$as_dir" && as_dir=.
2091 for ac_exec_ext in '' $ac_executable_extensions; do
2092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2093 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2094 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2095 break 2
2097 done
2098 done
2099 IFS=$as_save_IFS
2103 CC=$ac_cv_prog_CC
2104 if test -n "$CC"; then
2105 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2106 $as_echo "$CC" >&6; }
2107 else
2108 { $as_echo "$as_me:$LINENO: result: no" >&5
2109 $as_echo "no" >&6; }
2113 test -n "$CC" && break
2114 done
2116 if test -z "$CC"; then
2117 ac_ct_CC=$CC
2118 for ac_prog in cl.exe
2120 # Extract the first word of "$ac_prog", so it can be a program name with args.
2121 set dummy $ac_prog; ac_word=$2
2122 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2123 $as_echo_n "checking for $ac_word... " >&6; }
2124 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2125 $as_echo_n "(cached) " >&6
2126 else
2127 if test -n "$ac_ct_CC"; then
2128 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2129 else
2130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2131 for as_dir in $PATH
2133 IFS=$as_save_IFS
2134 test -z "$as_dir" && as_dir=.
2135 for ac_exec_ext in '' $ac_executable_extensions; do
2136 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2137 ac_cv_prog_ac_ct_CC="$ac_prog"
2138 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2139 break 2
2141 done
2142 done
2143 IFS=$as_save_IFS
2147 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2148 if test -n "$ac_ct_CC"; then
2149 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2150 $as_echo "$ac_ct_CC" >&6; }
2151 else
2152 { $as_echo "$as_me:$LINENO: result: no" >&5
2153 $as_echo "no" >&6; }
2157 test -n "$ac_ct_CC" && break
2158 done
2160 if test "x$ac_ct_CC" = x; then
2161 CC=""
2162 else
2163 case $cross_compiling:$ac_tool_warned in
2164 yes:)
2165 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2166 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2167 ac_tool_warned=yes ;;
2168 esac
2169 CC=$ac_ct_CC
2176 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2177 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2178 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2179 See \`config.log' for more details." >&5
2180 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2181 See \`config.log' for more details." >&2;}
2182 { (exit 1); exit 1; }; }; }
2184 # Provide some information about the compiler.
2185 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2186 set X $ac_compile
2187 ac_compiler=$2
2188 { (ac_try="$ac_compiler --version >&5"
2189 case "(($ac_try" in
2190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2191 *) ac_try_echo=$ac_try;;
2192 esac
2193 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2194 $as_echo "$ac_try_echo") >&5
2195 (eval "$ac_compiler --version >&5") 2>&5
2196 ac_status=$?
2197 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2198 (exit $ac_status); }
2199 { (ac_try="$ac_compiler -v >&5"
2200 case "(($ac_try" in
2201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2202 *) ac_try_echo=$ac_try;;
2203 esac
2204 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2205 $as_echo "$ac_try_echo") >&5
2206 (eval "$ac_compiler -v >&5") 2>&5
2207 ac_status=$?
2208 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2209 (exit $ac_status); }
2210 { (ac_try="$ac_compiler -V >&5"
2211 case "(($ac_try" in
2212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2213 *) ac_try_echo=$ac_try;;
2214 esac
2215 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2216 $as_echo "$ac_try_echo") >&5
2217 (eval "$ac_compiler -V >&5") 2>&5
2218 ac_status=$?
2219 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2220 (exit $ac_status); }
2222 cat >conftest.$ac_ext <<_ACEOF
2223 /* confdefs.h. */
2224 _ACEOF
2225 cat confdefs.h >>conftest.$ac_ext
2226 cat >>conftest.$ac_ext <<_ACEOF
2227 /* end confdefs.h. */
2230 main ()
2234 return 0;
2236 _ACEOF
2237 ac_clean_files_save=$ac_clean_files
2238 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2239 # Try to create an executable without -o first, disregard a.out.
2240 # It will help us diagnose broken compilers, and finding out an intuition
2241 # of exeext.
2242 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2243 $as_echo_n "checking for C compiler default output file name... " >&6; }
2244 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2246 # The possible output files:
2247 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2249 ac_rmfiles=
2250 for ac_file in $ac_files
2252 case $ac_file in
2253 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2254 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2255 esac
2256 done
2257 rm -f $ac_rmfiles
2259 if { (ac_try="$ac_link_default"
2260 case "(($ac_try" in
2261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2262 *) ac_try_echo=$ac_try;;
2263 esac
2264 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2265 $as_echo "$ac_try_echo") >&5
2266 (eval "$ac_link_default") 2>&5
2267 ac_status=$?
2268 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2269 (exit $ac_status); }; then
2270 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2271 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2272 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2273 # so that the user can short-circuit this test for compilers unknown to
2274 # Autoconf.
2275 for ac_file in $ac_files ''
2277 test -f "$ac_file" || continue
2278 case $ac_file in
2279 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2281 [ab].out )
2282 # We found the default executable, but exeext='' is most
2283 # certainly right.
2284 break;;
2285 *.* )
2286 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2287 then :; else
2288 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2290 # We set ac_cv_exeext here because the later test for it is not
2291 # safe: cross compilers may not add the suffix if given an `-o'
2292 # argument, so we may need to know it at that point already.
2293 # Even if this section looks crufty: it has the advantage of
2294 # actually working.
2295 break;;
2297 break;;
2298 esac
2299 done
2300 test "$ac_cv_exeext" = no && ac_cv_exeext=
2302 else
2303 ac_file=''
2306 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2307 $as_echo "$ac_file" >&6; }
2308 if test -z "$ac_file"; then
2309 $as_echo "$as_me: failed program was:" >&5
2310 sed 's/^/| /' conftest.$ac_ext >&5
2312 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2313 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2314 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2315 See \`config.log' for more details." >&5
2316 $as_echo "$as_me: error: C compiler cannot create executables
2317 See \`config.log' for more details." >&2;}
2318 { (exit 77); exit 77; }; }; }
2321 ac_exeext=$ac_cv_exeext
2323 # Check that the compiler produces executables we can run. If not, either
2324 # the compiler is broken, or we cross compile.
2325 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2326 $as_echo_n "checking whether the C compiler works... " >&6; }
2327 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2328 # If not cross compiling, check that we can run a simple program.
2329 if test "$cross_compiling" != yes; then
2330 if { ac_try='./$ac_file'
2331 { (case "(($ac_try" in
2332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2333 *) ac_try_echo=$ac_try;;
2334 esac
2335 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2336 $as_echo "$ac_try_echo") >&5
2337 (eval "$ac_try") 2>&5
2338 ac_status=$?
2339 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2340 (exit $ac_status); }; }; then
2341 cross_compiling=no
2342 else
2343 if test "$cross_compiling" = maybe; then
2344 cross_compiling=yes
2345 else
2346 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2347 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2348 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2349 If you meant to cross compile, use \`--host'.
2350 See \`config.log' for more details." >&5
2351 $as_echo "$as_me: error: cannot run C compiled programs.
2352 If you meant to cross compile, use \`--host'.
2353 See \`config.log' for more details." >&2;}
2354 { (exit 1); exit 1; }; }; }
2358 { $as_echo "$as_me:$LINENO: result: yes" >&5
2359 $as_echo "yes" >&6; }
2361 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2362 ac_clean_files=$ac_clean_files_save
2363 # Check that the compiler produces executables we can run. If not, either
2364 # the compiler is broken, or we cross compile.
2365 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2366 $as_echo_n "checking whether we are cross compiling... " >&6; }
2367 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2368 $as_echo "$cross_compiling" >&6; }
2370 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2371 $as_echo_n "checking for suffix of executables... " >&6; }
2372 if { (ac_try="$ac_link"
2373 case "(($ac_try" in
2374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2375 *) ac_try_echo=$ac_try;;
2376 esac
2377 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2378 $as_echo "$ac_try_echo") >&5
2379 (eval "$ac_link") 2>&5
2380 ac_status=$?
2381 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2382 (exit $ac_status); }; then
2383 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2384 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2385 # work properly (i.e., refer to `conftest.exe'), while it won't with
2386 # `rm'.
2387 for ac_file in conftest.exe conftest conftest.*; do
2388 test -f "$ac_file" || continue
2389 case $ac_file in
2390 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2391 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2392 break;;
2393 * ) break;;
2394 esac
2395 done
2396 else
2397 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2398 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2399 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2400 See \`config.log' for more details." >&5
2401 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2402 See \`config.log' for more details." >&2;}
2403 { (exit 1); exit 1; }; }; }
2406 rm -f conftest$ac_cv_exeext
2407 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2408 $as_echo "$ac_cv_exeext" >&6; }
2410 rm -f conftest.$ac_ext
2411 EXEEXT=$ac_cv_exeext
2412 ac_exeext=$EXEEXT
2413 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2414 $as_echo_n "checking for suffix of object files... " >&6; }
2415 if test "${ac_cv_objext+set}" = set; then
2416 $as_echo_n "(cached) " >&6
2417 else
2418 cat >conftest.$ac_ext <<_ACEOF
2419 /* confdefs.h. */
2420 _ACEOF
2421 cat confdefs.h >>conftest.$ac_ext
2422 cat >>conftest.$ac_ext <<_ACEOF
2423 /* end confdefs.h. */
2426 main ()
2430 return 0;
2432 _ACEOF
2433 rm -f conftest.o conftest.obj
2434 if { (ac_try="$ac_compile"
2435 case "(($ac_try" in
2436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2437 *) ac_try_echo=$ac_try;;
2438 esac
2439 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2440 $as_echo "$ac_try_echo") >&5
2441 (eval "$ac_compile") 2>&5
2442 ac_status=$?
2443 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2444 (exit $ac_status); }; then
2445 for ac_file in conftest.o conftest.obj conftest.*; do
2446 test -f "$ac_file" || continue;
2447 case $ac_file in
2448 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2449 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2450 break;;
2451 esac
2452 done
2453 else
2454 $as_echo "$as_me: failed program was:" >&5
2455 sed 's/^/| /' conftest.$ac_ext >&5
2457 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2458 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2459 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2460 See \`config.log' for more details." >&5
2461 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2462 See \`config.log' for more details." >&2;}
2463 { (exit 1); exit 1; }; }; }
2466 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2468 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2469 $as_echo "$ac_cv_objext" >&6; }
2470 OBJEXT=$ac_cv_objext
2471 ac_objext=$OBJEXT
2472 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2473 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2474 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2475 $as_echo_n "(cached) " >&6
2476 else
2477 cat >conftest.$ac_ext <<_ACEOF
2478 /* confdefs.h. */
2479 _ACEOF
2480 cat confdefs.h >>conftest.$ac_ext
2481 cat >>conftest.$ac_ext <<_ACEOF
2482 /* end confdefs.h. */
2485 main ()
2487 #ifndef __GNUC__
2488 choke me
2489 #endif
2492 return 0;
2494 _ACEOF
2495 rm -f conftest.$ac_objext
2496 if { (ac_try="$ac_compile"
2497 case "(($ac_try" in
2498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2499 *) ac_try_echo=$ac_try;;
2500 esac
2501 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2502 $as_echo "$ac_try_echo") >&5
2503 (eval "$ac_compile") 2>conftest.er1
2504 ac_status=$?
2505 grep -v '^ *+' conftest.er1 >conftest.err
2506 rm -f conftest.er1
2507 cat conftest.err >&5
2508 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509 (exit $ac_status); } && {
2510 test -z "$ac_c_werror_flag" ||
2511 test ! -s conftest.err
2512 } && test -s conftest.$ac_objext; then
2513 ac_compiler_gnu=yes
2514 else
2515 $as_echo "$as_me: failed program was:" >&5
2516 sed 's/^/| /' conftest.$ac_ext >&5
2518 ac_compiler_gnu=no
2521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2522 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2525 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2526 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2527 if test $ac_compiler_gnu = yes; then
2528 GCC=yes
2529 else
2530 GCC=
2532 ac_test_CFLAGS=${CFLAGS+set}
2533 ac_save_CFLAGS=$CFLAGS
2534 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2535 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2536 if test "${ac_cv_prog_cc_g+set}" = set; then
2537 $as_echo_n "(cached) " >&6
2538 else
2539 ac_save_c_werror_flag=$ac_c_werror_flag
2540 ac_c_werror_flag=yes
2541 ac_cv_prog_cc_g=no
2542 CFLAGS="-g"
2543 cat >conftest.$ac_ext <<_ACEOF
2544 /* confdefs.h. */
2545 _ACEOF
2546 cat confdefs.h >>conftest.$ac_ext
2547 cat >>conftest.$ac_ext <<_ACEOF
2548 /* end confdefs.h. */
2551 main ()
2555 return 0;
2557 _ACEOF
2558 rm -f conftest.$ac_objext
2559 if { (ac_try="$ac_compile"
2560 case "(($ac_try" in
2561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2562 *) ac_try_echo=$ac_try;;
2563 esac
2564 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2565 $as_echo "$ac_try_echo") >&5
2566 (eval "$ac_compile") 2>conftest.er1
2567 ac_status=$?
2568 grep -v '^ *+' conftest.er1 >conftest.err
2569 rm -f conftest.er1
2570 cat conftest.err >&5
2571 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572 (exit $ac_status); } && {
2573 test -z "$ac_c_werror_flag" ||
2574 test ! -s conftest.err
2575 } && test -s conftest.$ac_objext; then
2576 ac_cv_prog_cc_g=yes
2577 else
2578 $as_echo "$as_me: failed program was:" >&5
2579 sed 's/^/| /' conftest.$ac_ext >&5
2581 CFLAGS=""
2582 cat >conftest.$ac_ext <<_ACEOF
2583 /* confdefs.h. */
2584 _ACEOF
2585 cat confdefs.h >>conftest.$ac_ext
2586 cat >>conftest.$ac_ext <<_ACEOF
2587 /* end confdefs.h. */
2590 main ()
2594 return 0;
2596 _ACEOF
2597 rm -f conftest.$ac_objext
2598 if { (ac_try="$ac_compile"
2599 case "(($ac_try" in
2600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2601 *) ac_try_echo=$ac_try;;
2602 esac
2603 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2604 $as_echo "$ac_try_echo") >&5
2605 (eval "$ac_compile") 2>conftest.er1
2606 ac_status=$?
2607 grep -v '^ *+' conftest.er1 >conftest.err
2608 rm -f conftest.er1
2609 cat conftest.err >&5
2610 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2611 (exit $ac_status); } && {
2612 test -z "$ac_c_werror_flag" ||
2613 test ! -s conftest.err
2614 } && test -s conftest.$ac_objext; then
2616 else
2617 $as_echo "$as_me: failed program was:" >&5
2618 sed 's/^/| /' conftest.$ac_ext >&5
2620 ac_c_werror_flag=$ac_save_c_werror_flag
2621 CFLAGS="-g"
2622 cat >conftest.$ac_ext <<_ACEOF
2623 /* confdefs.h. */
2624 _ACEOF
2625 cat confdefs.h >>conftest.$ac_ext
2626 cat >>conftest.$ac_ext <<_ACEOF
2627 /* end confdefs.h. */
2630 main ()
2634 return 0;
2636 _ACEOF
2637 rm -f conftest.$ac_objext
2638 if { (ac_try="$ac_compile"
2639 case "(($ac_try" in
2640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2641 *) ac_try_echo=$ac_try;;
2642 esac
2643 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2644 $as_echo "$ac_try_echo") >&5
2645 (eval "$ac_compile") 2>conftest.er1
2646 ac_status=$?
2647 grep -v '^ *+' conftest.er1 >conftest.err
2648 rm -f conftest.er1
2649 cat conftest.err >&5
2650 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2651 (exit $ac_status); } && {
2652 test -z "$ac_c_werror_flag" ||
2653 test ! -s conftest.err
2654 } && test -s conftest.$ac_objext; then
2655 ac_cv_prog_cc_g=yes
2656 else
2657 $as_echo "$as_me: failed program was:" >&5
2658 sed 's/^/| /' conftest.$ac_ext >&5
2663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2670 ac_c_werror_flag=$ac_save_c_werror_flag
2672 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2673 $as_echo "$ac_cv_prog_cc_g" >&6; }
2674 if test "$ac_test_CFLAGS" = set; then
2675 CFLAGS=$ac_save_CFLAGS
2676 elif test $ac_cv_prog_cc_g = yes; then
2677 if test "$GCC" = yes; then
2678 CFLAGS="-g -O2"
2679 else
2680 CFLAGS="-g"
2682 else
2683 if test "$GCC" = yes; then
2684 CFLAGS="-O2"
2685 else
2686 CFLAGS=
2689 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2690 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2691 if test "${ac_cv_prog_cc_c89+set}" = set; then
2692 $as_echo_n "(cached) " >&6
2693 else
2694 ac_cv_prog_cc_c89=no
2695 ac_save_CC=$CC
2696 cat >conftest.$ac_ext <<_ACEOF
2697 /* confdefs.h. */
2698 _ACEOF
2699 cat confdefs.h >>conftest.$ac_ext
2700 cat >>conftest.$ac_ext <<_ACEOF
2701 /* end confdefs.h. */
2702 #include <stdarg.h>
2703 #include <stdio.h>
2704 #include <sys/types.h>
2705 #include <sys/stat.h>
2706 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2707 struct buf { int x; };
2708 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2709 static char *e (p, i)
2710 char **p;
2711 int i;
2713 return p[i];
2715 static char *f (char * (*g) (char **, int), char **p, ...)
2717 char *s;
2718 va_list v;
2719 va_start (v,p);
2720 s = g (p, va_arg (v,int));
2721 va_end (v);
2722 return s;
2725 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2726 function prototypes and stuff, but not '\xHH' hex character constants.
2727 These don't provoke an error unfortunately, instead are silently treated
2728 as 'x'. The following induces an error, until -std is added to get
2729 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2730 array size at least. It's necessary to write '\x00'==0 to get something
2731 that's true only with -std. */
2732 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2734 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2735 inside strings and character constants. */
2736 #define FOO(x) 'x'
2737 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2739 int test (int i, double x);
2740 struct s1 {int (*f) (int a);};
2741 struct s2 {int (*f) (double a);};
2742 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2743 int argc;
2744 char **argv;
2746 main ()
2748 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2750 return 0;
2752 _ACEOF
2753 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2754 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2756 CC="$ac_save_CC $ac_arg"
2757 rm -f conftest.$ac_objext
2758 if { (ac_try="$ac_compile"
2759 case "(($ac_try" in
2760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2761 *) ac_try_echo=$ac_try;;
2762 esac
2763 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2764 $as_echo "$ac_try_echo") >&5
2765 (eval "$ac_compile") 2>conftest.er1
2766 ac_status=$?
2767 grep -v '^ *+' conftest.er1 >conftest.err
2768 rm -f conftest.er1
2769 cat conftest.err >&5
2770 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771 (exit $ac_status); } && {
2772 test -z "$ac_c_werror_flag" ||
2773 test ! -s conftest.err
2774 } && test -s conftest.$ac_objext; then
2775 ac_cv_prog_cc_c89=$ac_arg
2776 else
2777 $as_echo "$as_me: failed program was:" >&5
2778 sed 's/^/| /' conftest.$ac_ext >&5
2783 rm -f core conftest.err conftest.$ac_objext
2784 test "x$ac_cv_prog_cc_c89" != "xno" && break
2785 done
2786 rm -f conftest.$ac_ext
2787 CC=$ac_save_CC
2790 # AC_CACHE_VAL
2791 case "x$ac_cv_prog_cc_c89" in
2793 { $as_echo "$as_me:$LINENO: result: none needed" >&5
2794 $as_echo "none needed" >&6; } ;;
2795 xno)
2796 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
2797 $as_echo "unsupported" >&6; } ;;
2799 CC="$CC $ac_cv_prog_cc_c89"
2800 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2801 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2802 esac
2805 ac_ext=c
2806 ac_cpp='$CPP $CPPFLAGS'
2807 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2808 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2809 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2811 ac_ext=cpp
2812 ac_cpp='$CXXCPP $CPPFLAGS'
2813 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2814 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2815 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2816 if test -z "$CXX"; then
2817 if test -n "$CCC"; then
2818 CXX=$CCC
2819 else
2820 if test -n "$ac_tool_prefix"; then
2821 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2823 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2824 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2825 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2826 $as_echo_n "checking for $ac_word... " >&6; }
2827 if test "${ac_cv_prog_CXX+set}" = set; then
2828 $as_echo_n "(cached) " >&6
2829 else
2830 if test -n "$CXX"; then
2831 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2832 else
2833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2834 for as_dir in $PATH
2836 IFS=$as_save_IFS
2837 test -z "$as_dir" && as_dir=.
2838 for ac_exec_ext in '' $ac_executable_extensions; do
2839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2840 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2841 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2842 break 2
2844 done
2845 done
2846 IFS=$as_save_IFS
2850 CXX=$ac_cv_prog_CXX
2851 if test -n "$CXX"; then
2852 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
2853 $as_echo "$CXX" >&6; }
2854 else
2855 { $as_echo "$as_me:$LINENO: result: no" >&5
2856 $as_echo "no" >&6; }
2860 test -n "$CXX" && break
2861 done
2863 if test -z "$CXX"; then
2864 ac_ct_CXX=$CXX
2865 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2867 # Extract the first word of "$ac_prog", so it can be a program name with args.
2868 set dummy $ac_prog; ac_word=$2
2869 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2870 $as_echo_n "checking for $ac_word... " >&6; }
2871 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2872 $as_echo_n "(cached) " >&6
2873 else
2874 if test -n "$ac_ct_CXX"; then
2875 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2876 else
2877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2878 for as_dir in $PATH
2880 IFS=$as_save_IFS
2881 test -z "$as_dir" && as_dir=.
2882 for ac_exec_ext in '' $ac_executable_extensions; do
2883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2884 ac_cv_prog_ac_ct_CXX="$ac_prog"
2885 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2886 break 2
2888 done
2889 done
2890 IFS=$as_save_IFS
2894 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2895 if test -n "$ac_ct_CXX"; then
2896 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2897 $as_echo "$ac_ct_CXX" >&6; }
2898 else
2899 { $as_echo "$as_me:$LINENO: result: no" >&5
2900 $as_echo "no" >&6; }
2904 test -n "$ac_ct_CXX" && break
2905 done
2907 if test "x$ac_ct_CXX" = x; then
2908 CXX="g++"
2909 else
2910 case $cross_compiling:$ac_tool_warned in
2911 yes:)
2912 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2913 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2914 ac_tool_warned=yes ;;
2915 esac
2916 CXX=$ac_ct_CXX
2922 # Provide some information about the compiler.
2923 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2924 set X $ac_compile
2925 ac_compiler=$2
2926 { (ac_try="$ac_compiler --version >&5"
2927 case "(($ac_try" in
2928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2929 *) ac_try_echo=$ac_try;;
2930 esac
2931 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2932 $as_echo "$ac_try_echo") >&5
2933 (eval "$ac_compiler --version >&5") 2>&5
2934 ac_status=$?
2935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936 (exit $ac_status); }
2937 { (ac_try="$ac_compiler -v >&5"
2938 case "(($ac_try" in
2939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2940 *) ac_try_echo=$ac_try;;
2941 esac
2942 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2943 $as_echo "$ac_try_echo") >&5
2944 (eval "$ac_compiler -v >&5") 2>&5
2945 ac_status=$?
2946 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947 (exit $ac_status); }
2948 { (ac_try="$ac_compiler -V >&5"
2949 case "(($ac_try" in
2950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2951 *) ac_try_echo=$ac_try;;
2952 esac
2953 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2954 $as_echo "$ac_try_echo") >&5
2955 (eval "$ac_compiler -V >&5") 2>&5
2956 ac_status=$?
2957 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958 (exit $ac_status); }
2960 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2961 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
2962 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2963 $as_echo_n "(cached) " >&6
2964 else
2965 cat >conftest.$ac_ext <<_ACEOF
2966 /* confdefs.h. */
2967 _ACEOF
2968 cat confdefs.h >>conftest.$ac_ext
2969 cat >>conftest.$ac_ext <<_ACEOF
2970 /* end confdefs.h. */
2973 main ()
2975 #ifndef __GNUC__
2976 choke me
2977 #endif
2980 return 0;
2982 _ACEOF
2983 rm -f conftest.$ac_objext
2984 if { (ac_try="$ac_compile"
2985 case "(($ac_try" in
2986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2987 *) ac_try_echo=$ac_try;;
2988 esac
2989 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2990 $as_echo "$ac_try_echo") >&5
2991 (eval "$ac_compile") 2>conftest.er1
2992 ac_status=$?
2993 grep -v '^ *+' conftest.er1 >conftest.err
2994 rm -f conftest.er1
2995 cat conftest.err >&5
2996 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2997 (exit $ac_status); } && {
2998 test -z "$ac_cxx_werror_flag" ||
2999 test ! -s conftest.err
3000 } && test -s conftest.$ac_objext; then
3001 ac_compiler_gnu=yes
3002 else
3003 $as_echo "$as_me: failed program was:" >&5
3004 sed 's/^/| /' conftest.$ac_ext >&5
3006 ac_compiler_gnu=no
3009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3010 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3013 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3014 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3015 if test $ac_compiler_gnu = yes; then
3016 GXX=yes
3017 else
3018 GXX=
3020 ac_test_CXXFLAGS=${CXXFLAGS+set}
3021 ac_save_CXXFLAGS=$CXXFLAGS
3022 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3023 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3024 if test "${ac_cv_prog_cxx_g+set}" = set; then
3025 $as_echo_n "(cached) " >&6
3026 else
3027 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3028 ac_cxx_werror_flag=yes
3029 ac_cv_prog_cxx_g=no
3030 CXXFLAGS="-g"
3031 cat >conftest.$ac_ext <<_ACEOF
3032 /* confdefs.h. */
3033 _ACEOF
3034 cat confdefs.h >>conftest.$ac_ext
3035 cat >>conftest.$ac_ext <<_ACEOF
3036 /* end confdefs.h. */
3039 main ()
3043 return 0;
3045 _ACEOF
3046 rm -f conftest.$ac_objext
3047 if { (ac_try="$ac_compile"
3048 case "(($ac_try" in
3049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3050 *) ac_try_echo=$ac_try;;
3051 esac
3052 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3053 $as_echo "$ac_try_echo") >&5
3054 (eval "$ac_compile") 2>conftest.er1
3055 ac_status=$?
3056 grep -v '^ *+' conftest.er1 >conftest.err
3057 rm -f conftest.er1
3058 cat conftest.err >&5
3059 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3060 (exit $ac_status); } && {
3061 test -z "$ac_cxx_werror_flag" ||
3062 test ! -s conftest.err
3063 } && test -s conftest.$ac_objext; then
3064 ac_cv_prog_cxx_g=yes
3065 else
3066 $as_echo "$as_me: failed program was:" >&5
3067 sed 's/^/| /' conftest.$ac_ext >&5
3069 CXXFLAGS=""
3070 cat >conftest.$ac_ext <<_ACEOF
3071 /* confdefs.h. */
3072 _ACEOF
3073 cat confdefs.h >>conftest.$ac_ext
3074 cat >>conftest.$ac_ext <<_ACEOF
3075 /* end confdefs.h. */
3078 main ()
3082 return 0;
3084 _ACEOF
3085 rm -f conftest.$ac_objext
3086 if { (ac_try="$ac_compile"
3087 case "(($ac_try" in
3088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3089 *) ac_try_echo=$ac_try;;
3090 esac
3091 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3092 $as_echo "$ac_try_echo") >&5
3093 (eval "$ac_compile") 2>conftest.er1
3094 ac_status=$?
3095 grep -v '^ *+' conftest.er1 >conftest.err
3096 rm -f conftest.er1
3097 cat conftest.err >&5
3098 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099 (exit $ac_status); } && {
3100 test -z "$ac_cxx_werror_flag" ||
3101 test ! -s conftest.err
3102 } && test -s conftest.$ac_objext; then
3104 else
3105 $as_echo "$as_me: failed program was:" >&5
3106 sed 's/^/| /' conftest.$ac_ext >&5
3108 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3109 CXXFLAGS="-g"
3110 cat >conftest.$ac_ext <<_ACEOF
3111 /* confdefs.h. */
3112 _ACEOF
3113 cat confdefs.h >>conftest.$ac_ext
3114 cat >>conftest.$ac_ext <<_ACEOF
3115 /* end confdefs.h. */
3118 main ()
3122 return 0;
3124 _ACEOF
3125 rm -f conftest.$ac_objext
3126 if { (ac_try="$ac_compile"
3127 case "(($ac_try" in
3128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3129 *) ac_try_echo=$ac_try;;
3130 esac
3131 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3132 $as_echo "$ac_try_echo") >&5
3133 (eval "$ac_compile") 2>conftest.er1
3134 ac_status=$?
3135 grep -v '^ *+' conftest.er1 >conftest.err
3136 rm -f conftest.er1
3137 cat conftest.err >&5
3138 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139 (exit $ac_status); } && {
3140 test -z "$ac_cxx_werror_flag" ||
3141 test ! -s conftest.err
3142 } && test -s conftest.$ac_objext; then
3143 ac_cv_prog_cxx_g=yes
3144 else
3145 $as_echo "$as_me: failed program was:" >&5
3146 sed 's/^/| /' conftest.$ac_ext >&5
3151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3158 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3160 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3161 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3162 if test "$ac_test_CXXFLAGS" = set; then
3163 CXXFLAGS=$ac_save_CXXFLAGS
3164 elif test $ac_cv_prog_cxx_g = yes; then
3165 if test "$GXX" = yes; then
3166 CXXFLAGS="-g -O2"
3167 else
3168 CXXFLAGS="-g"
3170 else
3171 if test "$GXX" = yes; then
3172 CXXFLAGS="-O2"
3173 else
3174 CXXFLAGS=
3177 ac_ext=c
3178 ac_cpp='$CPP $CPPFLAGS'
3179 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3180 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3181 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3185 ac_ext=cpp
3186 ac_cpp='$CXXCPP $CPPFLAGS'
3187 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3188 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3189 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3191 if test "$cross_compiling" = no; then
3192 { $as_echo "$as_me:$LINENO: checking that C++ compiler can compile simple program" >&5
3193 $as_echo_n "checking that C++ compiler can compile simple program... " >&6; }
3195 if test "$cross_compiling" = yes; then
3197 else
3198 cat >conftest.$ac_ext <<_ACEOF
3200 /* confdefs.h. */
3201 _ACEOF
3202 cat confdefs.h >>conftest.$ac_ext
3203 cat >>conftest.$ac_ext <<_ACEOF
3204 /* end confdefs.h. */
3207 int main() {
3208 return 0;
3213 _ACEOF
3214 rm -f conftest$ac_exeext
3215 if { (ac_try="$ac_link"
3216 case "(($ac_try" in
3217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3218 *) ac_try_echo=$ac_try;;
3219 esac
3220 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3221 $as_echo "$ac_try_echo") >&5
3222 (eval "$ac_link") 2>&5
3223 ac_status=$?
3224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3225 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3226 { (case "(($ac_try" in
3227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3228 *) ac_try_echo=$ac_try;;
3229 esac
3230 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3231 $as_echo "$ac_try_echo") >&5
3232 (eval "$ac_try") 2>&5
3233 ac_status=$?
3234 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3235 (exit $ac_status); }; }; then
3236 { $as_echo "$as_me:$LINENO: result: yes" >&5
3237 $as_echo "yes" >&6; }
3238 else
3239 $as_echo "$as_me: program exited with status $ac_status" >&5
3240 $as_echo "$as_me: failed program was:" >&5
3241 sed 's/^/| /' conftest.$ac_ext >&5
3243 ( exit $ac_status )
3244 { $as_echo "$as_me:$LINENO: result: no" >&5
3245 $as_echo "no" >&6; }
3246 { { $as_echo "$as_me:$LINENO: error: a working C++ compiler is required" >&5
3247 $as_echo "$as_me: error: a working C++ compiler is required" >&2;}
3248 { (exit 1); exit 1; }; }
3250 rm -rf conftest.dSYM
3251 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3256 if test "$cross_compiling" = no; then
3257 { $as_echo "$as_me:$LINENO: checking that C++ static constructors and destructors are called" >&5
3258 $as_echo_n "checking that C++ static constructors and destructors are called... " >&6; }
3260 if test "$cross_compiling" = yes; then
3262 else
3263 cat >conftest.$ac_ext <<_ACEOF
3265 /* confdefs.h. */
3266 _ACEOF
3267 cat confdefs.h >>conftest.$ac_ext
3268 cat >>conftest.$ac_ext <<_ACEOF
3269 /* end confdefs.h. */
3272 extern "C" {
3273 void _exit(int);
3276 int i;
3277 struct A {
3278 char dummy;
3279 A() { i = 1; }
3280 ~A() { if (i == 1) _exit(0); }
3283 A a;
3285 int main()
3287 return 1;
3292 _ACEOF
3293 rm -f conftest$ac_exeext
3294 if { (ac_try="$ac_link"
3295 case "(($ac_try" in
3296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3297 *) ac_try_echo=$ac_try;;
3298 esac
3299 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3300 $as_echo "$ac_try_echo") >&5
3301 (eval "$ac_link") 2>&5
3302 ac_status=$?
3303 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3304 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3305 { (case "(($ac_try" in
3306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3307 *) ac_try_echo=$ac_try;;
3308 esac
3309 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3310 $as_echo "$ac_try_echo") >&5
3311 (eval "$ac_try") 2>&5
3312 ac_status=$?
3313 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3314 (exit $ac_status); }; }; then
3315 { $as_echo "$as_me:$LINENO: result: yes" >&5
3316 $as_echo "yes" >&6; }
3317 else
3318 $as_echo "$as_me: program exited with status $ac_status" >&5
3319 $as_echo "$as_me: failed program was:" >&5
3320 sed 's/^/| /' conftest.$ac_ext >&5
3322 ( exit $ac_status )
3323 { $as_echo "$as_me:$LINENO: result: no" >&5
3324 $as_echo "no" >&6; }
3325 { { $as_echo "$as_me:$LINENO: error: a working C++ compiler is required" >&5
3326 $as_echo "$as_me: error: a working C++ compiler is required" >&2;}
3327 { (exit 1); exit 1; }; }
3329 rm -rf conftest.dSYM
3330 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3335 { $as_echo "$as_me:$LINENO: checking that header files support C++" >&5
3336 $as_echo_n "checking that header files support C++... " >&6; }
3337 cat >conftest.$ac_ext <<_ACEOF
3339 /* confdefs.h. */
3340 _ACEOF
3341 cat confdefs.h >>conftest.$ac_ext
3342 cat >>conftest.$ac_ext <<_ACEOF
3343 /* end confdefs.h. */
3346 #include <stdio.h>
3350 main ()
3354 fopen(0, 0);
3358 return 0;
3361 _ACEOF
3362 rm -f conftest.$ac_objext conftest$ac_exeext
3363 if { (ac_try="$ac_link"
3364 case "(($ac_try" in
3365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3366 *) ac_try_echo=$ac_try;;
3367 esac
3368 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3369 $as_echo "$ac_try_echo") >&5
3370 (eval "$ac_link") 2>conftest.er1
3371 ac_status=$?
3372 grep -v '^ *+' conftest.er1 >conftest.err
3373 rm -f conftest.er1
3374 cat conftest.err >&5
3375 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376 (exit $ac_status); } && {
3377 test -z "$ac_cxx_werror_flag" ||
3378 test ! -s conftest.err
3379 } && test -s conftest$ac_exeext && {
3380 test "$cross_compiling" = yes ||
3381 $as_test_x conftest$ac_exeext
3382 }; then
3383 { $as_echo "$as_me:$LINENO: result: yes" >&5
3384 $as_echo "yes" >&6; }
3385 else
3386 $as_echo "$as_me: failed program was:" >&5
3387 sed 's/^/| /' conftest.$ac_ext >&5
3389 { $as_echo "$as_me:$LINENO: result: no" >&5
3390 $as_echo "no" >&6; }
3391 { { $as_echo "$as_me:$LINENO: error: header files do not support C++
3392 (if you are using a version of gcc/g++ earlier than 2.5,
3393 you should install libg++)" >&5
3394 $as_echo "$as_me: error: header files do not support C++
3395 (if you are using a version of gcc/g++ earlier than 2.5,
3396 you should install libg++)" >&2;}
3397 { (exit 1); exit 1; }; }
3400 rm -rf conftest.dSYM
3401 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3402 conftest$ac_exeext conftest.$ac_ext
3403 ac_ext=c
3404 ac_cpp='$CPP $CPPFLAGS'
3405 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3406 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3407 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3410 { $as_echo "$as_me:$LINENO: checking whether character set is EBCDIC" >&5
3411 $as_echo_n "checking whether character set is EBCDIC... " >&6; }
3412 cat >conftest.$ac_ext <<_ACEOF
3414 /* confdefs.h. */
3415 _ACEOF
3416 cat confdefs.h >>conftest.$ac_ext
3417 cat >>conftest.$ac_ext <<_ACEOF
3418 /* end confdefs.h. */
3421 /* Treat any failure as ASCII for compatibility with existing art.
3422 Use compile-time rather than run-time tests for cross-compiler
3423 tolerance. */
3424 #if '0' != 240
3425 make an error "Character set is not EBCDIC"
3426 #endif
3430 main ()
3434 return 0;
3437 _ACEOF
3438 rm -f conftest.$ac_objext
3439 if { (ac_try="$ac_compile"
3440 case "(($ac_try" in
3441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3442 *) ac_try_echo=$ac_try;;
3443 esac
3444 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3445 $as_echo "$ac_try_echo") >&5
3446 (eval "$ac_compile") 2>conftest.er1
3447 ac_status=$?
3448 grep -v '^ *+' conftest.er1 >conftest.err
3449 rm -f conftest.er1
3450 cat conftest.err >&5
3451 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3452 (exit $ac_status); } && {
3453 test -z "$ac_c_werror_flag" ||
3454 test ! -s conftest.err
3455 } && test -s conftest.$ac_objext; then
3456 groff_cv_ebcdic="yes"
3457 TTYDEVDIRS="font/devcp1047"
3458 { $as_echo "$as_me:$LINENO: result: yes" >&5
3459 $as_echo "yes" >&6; }
3461 cat >>confdefs.h <<\_ACEOF
3462 #define IS_EBCDIC_HOST 1
3463 _ACEOF
3465 else
3466 $as_echo "$as_me: failed program was:" >&5
3467 sed 's/^/| /' conftest.$ac_ext >&5
3469 groff_cv_ebcdic="no"
3470 TTYDEVDIRS="font/devascii font/devlatin1"
3471 OTHERDEVDIRS="font/devlj4 font/devlbp"
3472 { $as_echo "$as_me:$LINENO: result: no" >&5
3473 $as_echo "no" >&6; }
3476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3479 if test "$groff_cv_ebcdic" = "yes"; then
3480 { $as_echo "$as_me:$LINENO: checking for OS/390 Unix" >&5
3481 $as_echo_n "checking for OS/390 Unix... " >&6; }
3482 case `uname` in
3483 OS/390)
3484 CFLAGS="$CFLAGS -D_ALL_SOURCE"
3485 { $as_echo "$as_me:$LINENO: result: yes" >&5
3486 $as_echo "yes" >&6; } ;;
3488 { $as_echo "$as_me:$LINENO: result: no" >&5
3489 $as_echo "no" >&6; } ;;
3490 esac
3492 ac_ext=c
3493 ac_cpp='$CPP $CPPFLAGS'
3494 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3495 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3496 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3497 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3498 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3499 # On Suns, sometimes $CPP names a directory.
3500 if test -n "$CPP" && test -d "$CPP"; then
3501 CPP=
3503 if test -z "$CPP"; then
3504 if test "${ac_cv_prog_CPP+set}" = set; then
3505 $as_echo_n "(cached) " >&6
3506 else
3507 # Double quotes because CPP needs to be expanded
3508 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3510 ac_preproc_ok=false
3511 for ac_c_preproc_warn_flag in '' yes
3513 # Use a header file that comes with gcc, so configuring glibc
3514 # with a fresh cross-compiler works.
3515 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3516 # <limits.h> exists even on freestanding compilers.
3517 # On the NeXT, cc -E runs the code through the compiler's parser,
3518 # not just through cpp. "Syntax error" is here to catch this case.
3519 cat >conftest.$ac_ext <<_ACEOF
3520 /* confdefs.h. */
3521 _ACEOF
3522 cat confdefs.h >>conftest.$ac_ext
3523 cat >>conftest.$ac_ext <<_ACEOF
3524 /* end confdefs.h. */
3525 #ifdef __STDC__
3526 # include <limits.h>
3527 #else
3528 # include <assert.h>
3529 #endif
3530 Syntax error
3531 _ACEOF
3532 if { (ac_try="$ac_cpp conftest.$ac_ext"
3533 case "(($ac_try" in
3534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3535 *) ac_try_echo=$ac_try;;
3536 esac
3537 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3538 $as_echo "$ac_try_echo") >&5
3539 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3540 ac_status=$?
3541 grep -v '^ *+' conftest.er1 >conftest.err
3542 rm -f conftest.er1
3543 cat conftest.err >&5
3544 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3545 (exit $ac_status); } >/dev/null && {
3546 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3547 test ! -s conftest.err
3548 }; then
3550 else
3551 $as_echo "$as_me: failed program was:" >&5
3552 sed 's/^/| /' conftest.$ac_ext >&5
3554 # Broken: fails on valid input.
3555 continue
3558 rm -f conftest.err conftest.$ac_ext
3560 # OK, works on sane cases. Now check whether nonexistent headers
3561 # can be detected and how.
3562 cat >conftest.$ac_ext <<_ACEOF
3563 /* confdefs.h. */
3564 _ACEOF
3565 cat confdefs.h >>conftest.$ac_ext
3566 cat >>conftest.$ac_ext <<_ACEOF
3567 /* end confdefs.h. */
3568 #include <ac_nonexistent.h>
3569 _ACEOF
3570 if { (ac_try="$ac_cpp conftest.$ac_ext"
3571 case "(($ac_try" in
3572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3573 *) ac_try_echo=$ac_try;;
3574 esac
3575 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3576 $as_echo "$ac_try_echo") >&5
3577 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3578 ac_status=$?
3579 grep -v '^ *+' conftest.er1 >conftest.err
3580 rm -f conftest.er1
3581 cat conftest.err >&5
3582 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3583 (exit $ac_status); } >/dev/null && {
3584 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3585 test ! -s conftest.err
3586 }; then
3587 # Broken: success on invalid input.
3588 continue
3589 else
3590 $as_echo "$as_me: failed program was:" >&5
3591 sed 's/^/| /' conftest.$ac_ext >&5
3593 # Passes both tests.
3594 ac_preproc_ok=:
3595 break
3598 rm -f conftest.err conftest.$ac_ext
3600 done
3601 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3602 rm -f conftest.err conftest.$ac_ext
3603 if $ac_preproc_ok; then
3604 break
3607 done
3608 ac_cv_prog_CPP=$CPP
3611 CPP=$ac_cv_prog_CPP
3612 else
3613 ac_cv_prog_CPP=$CPP
3615 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3616 $as_echo "$CPP" >&6; }
3617 ac_preproc_ok=false
3618 for ac_c_preproc_warn_flag in '' yes
3620 # Use a header file that comes with gcc, so configuring glibc
3621 # with a fresh cross-compiler works.
3622 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3623 # <limits.h> exists even on freestanding compilers.
3624 # On the NeXT, cc -E runs the code through the compiler's parser,
3625 # not just through cpp. "Syntax error" is here to catch this case.
3626 cat >conftest.$ac_ext <<_ACEOF
3627 /* confdefs.h. */
3628 _ACEOF
3629 cat confdefs.h >>conftest.$ac_ext
3630 cat >>conftest.$ac_ext <<_ACEOF
3631 /* end confdefs.h. */
3632 #ifdef __STDC__
3633 # include <limits.h>
3634 #else
3635 # include <assert.h>
3636 #endif
3637 Syntax error
3638 _ACEOF
3639 if { (ac_try="$ac_cpp conftest.$ac_ext"
3640 case "(($ac_try" in
3641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3642 *) ac_try_echo=$ac_try;;
3643 esac
3644 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3645 $as_echo "$ac_try_echo") >&5
3646 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3647 ac_status=$?
3648 grep -v '^ *+' conftest.er1 >conftest.err
3649 rm -f conftest.er1
3650 cat conftest.err >&5
3651 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3652 (exit $ac_status); } >/dev/null && {
3653 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3654 test ! -s conftest.err
3655 }; then
3657 else
3658 $as_echo "$as_me: failed program was:" >&5
3659 sed 's/^/| /' conftest.$ac_ext >&5
3661 # Broken: fails on valid input.
3662 continue
3665 rm -f conftest.err conftest.$ac_ext
3667 # OK, works on sane cases. Now check whether nonexistent headers
3668 # can be detected and how.
3669 cat >conftest.$ac_ext <<_ACEOF
3670 /* confdefs.h. */
3671 _ACEOF
3672 cat confdefs.h >>conftest.$ac_ext
3673 cat >>conftest.$ac_ext <<_ACEOF
3674 /* end confdefs.h. */
3675 #include <ac_nonexistent.h>
3676 _ACEOF
3677 if { (ac_try="$ac_cpp conftest.$ac_ext"
3678 case "(($ac_try" in
3679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3680 *) ac_try_echo=$ac_try;;
3681 esac
3682 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3683 $as_echo "$ac_try_echo") >&5
3684 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3685 ac_status=$?
3686 grep -v '^ *+' conftest.er1 >conftest.err
3687 rm -f conftest.er1
3688 cat conftest.err >&5
3689 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3690 (exit $ac_status); } >/dev/null && {
3691 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3692 test ! -s conftest.err
3693 }; then
3694 # Broken: success on invalid input.
3695 continue
3696 else
3697 $as_echo "$as_me: failed program was:" >&5
3698 sed 's/^/| /' conftest.$ac_ext >&5
3700 # Passes both tests.
3701 ac_preproc_ok=:
3702 break
3705 rm -f conftest.err conftest.$ac_ext
3707 done
3708 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3709 rm -f conftest.err conftest.$ac_ext
3710 if $ac_preproc_ok; then
3712 else
3713 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3714 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3715 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3716 See \`config.log' for more details." >&5
3717 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3718 See \`config.log' for more details." >&2;}
3719 { (exit 1); exit 1; }; }; }
3722 ac_ext=c
3723 ac_cpp='$CPP $CPPFLAGS'
3724 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3725 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3726 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3729 { $as_echo "$as_me:$LINENO: checking for X" >&5
3730 $as_echo_n "checking for X... " >&6; }
3733 # Check whether --with-x was given.
3734 if test "${with_x+set}" = set; then
3735 withval=$with_x;
3738 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3739 if test "x$with_x" = xno; then
3740 # The user explicitly disabled X.
3741 have_x=disabled
3742 else
3743 case $x_includes,$x_libraries in #(
3744 *\'*) { { $as_echo "$as_me:$LINENO: error: cannot use X directory names containing '" >&5
3745 $as_echo "$as_me: error: cannot use X directory names containing '" >&2;}
3746 { (exit 1); exit 1; }; };; #(
3747 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
3748 $as_echo_n "(cached) " >&6
3749 else
3750 # One or both of the vars are not set, and there is no cached value.
3751 ac_x_includes=no ac_x_libraries=no
3752 rm -f -r conftest.dir
3753 if mkdir conftest.dir; then
3754 cd conftest.dir
3755 cat >Imakefile <<'_ACEOF'
3756 incroot:
3757 @echo incroot='${INCROOT}'
3758 usrlibdir:
3759 @echo usrlibdir='${USRLIBDIR}'
3760 libdir:
3761 @echo libdir='${LIBDIR}'
3762 _ACEOF
3763 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
3764 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3765 for ac_var in incroot usrlibdir libdir; do
3766 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
3767 done
3768 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3769 for ac_extension in a so sl dylib la dll; do
3770 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
3771 test -f "$ac_im_libdir/libX11.$ac_extension"; then
3772 ac_im_usrlibdir=$ac_im_libdir; break
3774 done
3775 # Screen out bogus values from the imake configuration. They are
3776 # bogus both because they are the default anyway, and because
3777 # using them would break gcc on systems where it needs fixed includes.
3778 case $ac_im_incroot in
3779 /usr/include) ac_x_includes= ;;
3780 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
3781 esac
3782 case $ac_im_usrlibdir in
3783 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
3784 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
3785 esac
3787 cd ..
3788 rm -f -r conftest.dir
3791 # Standard set of common directories for X headers.
3792 # Check X11 before X11Rn because it is often a symlink to the current release.
3793 ac_x_header_dirs='
3794 /usr/X11/include
3795 /usr/X11R6/include
3796 /usr/X11R5/include
3797 /usr/X11R4/include
3799 /usr/include/X11
3800 /usr/include/X11R6
3801 /usr/include/X11R5
3802 /usr/include/X11R4
3804 /usr/local/X11/include
3805 /usr/local/X11R6/include
3806 /usr/local/X11R5/include
3807 /usr/local/X11R4/include
3809 /usr/local/include/X11
3810 /usr/local/include/X11R6
3811 /usr/local/include/X11R5
3812 /usr/local/include/X11R4
3814 /usr/X386/include
3815 /usr/x386/include
3816 /usr/XFree86/include/X11
3818 /usr/include
3819 /usr/local/include
3820 /usr/unsupported/include
3821 /usr/athena/include
3822 /usr/local/x11r5/include
3823 /usr/lpp/Xamples/include
3825 /usr/openwin/include
3826 /usr/openwin/share/include'
3828 if test "$ac_x_includes" = no; then
3829 # Guess where to find include files, by looking for Xlib.h.
3830 # First, try using that file with no special directory specified.
3831 cat >conftest.$ac_ext <<_ACEOF
3832 /* confdefs.h. */
3833 _ACEOF
3834 cat confdefs.h >>conftest.$ac_ext
3835 cat >>conftest.$ac_ext <<_ACEOF
3836 /* end confdefs.h. */
3837 #include <X11/Xlib.h>
3838 _ACEOF
3839 if { (ac_try="$ac_cpp conftest.$ac_ext"
3840 case "(($ac_try" in
3841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3842 *) ac_try_echo=$ac_try;;
3843 esac
3844 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3845 $as_echo "$ac_try_echo") >&5
3846 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3847 ac_status=$?
3848 grep -v '^ *+' conftest.er1 >conftest.err
3849 rm -f conftest.er1
3850 cat conftest.err >&5
3851 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3852 (exit $ac_status); } >/dev/null && {
3853 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3854 test ! -s conftest.err
3855 }; then
3856 # We can compile using X headers with no special include directory.
3857 ac_x_includes=
3858 else
3859 $as_echo "$as_me: failed program was:" >&5
3860 sed 's/^/| /' conftest.$ac_ext >&5
3862 for ac_dir in $ac_x_header_dirs; do
3863 if test -r "$ac_dir/X11/Xlib.h"; then
3864 ac_x_includes=$ac_dir
3865 break
3867 done
3870 rm -f conftest.err conftest.$ac_ext
3871 fi # $ac_x_includes = no
3873 if test "$ac_x_libraries" = no; then
3874 # Check for the libraries.
3875 # See if we find them without any special options.
3876 # Don't add to $LIBS permanently.
3877 ac_save_LIBS=$LIBS
3878 LIBS="-lX11 $LIBS"
3879 cat >conftest.$ac_ext <<_ACEOF
3880 /* confdefs.h. */
3881 _ACEOF
3882 cat confdefs.h >>conftest.$ac_ext
3883 cat >>conftest.$ac_ext <<_ACEOF
3884 /* end confdefs.h. */
3885 #include <X11/Xlib.h>
3887 main ()
3889 XrmInitialize ()
3891 return 0;
3893 _ACEOF
3894 rm -f conftest.$ac_objext conftest$ac_exeext
3895 if { (ac_try="$ac_link"
3896 case "(($ac_try" in
3897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3898 *) ac_try_echo=$ac_try;;
3899 esac
3900 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3901 $as_echo "$ac_try_echo") >&5
3902 (eval "$ac_link") 2>conftest.er1
3903 ac_status=$?
3904 grep -v '^ *+' conftest.er1 >conftest.err
3905 rm -f conftest.er1
3906 cat conftest.err >&5
3907 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3908 (exit $ac_status); } && {
3909 test -z "$ac_c_werror_flag" ||
3910 test ! -s conftest.err
3911 } && test -s conftest$ac_exeext && {
3912 test "$cross_compiling" = yes ||
3913 $as_test_x conftest$ac_exeext
3914 }; then
3915 LIBS=$ac_save_LIBS
3916 # We can link X programs with no special library path.
3917 ac_x_libraries=
3918 else
3919 $as_echo "$as_me: failed program was:" >&5
3920 sed 's/^/| /' conftest.$ac_ext >&5
3922 LIBS=$ac_save_LIBS
3923 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
3925 # Don't even attempt the hair of trying to link an X program!
3926 for ac_extension in a so sl dylib la dll; do
3927 if test -r "$ac_dir/libX11.$ac_extension"; then
3928 ac_x_libraries=$ac_dir
3929 break 2
3931 done
3932 done
3935 rm -rf conftest.dSYM
3936 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3937 conftest$ac_exeext conftest.$ac_ext
3938 fi # $ac_x_libraries = no
3940 case $ac_x_includes,$ac_x_libraries in #(
3941 no,* | *,no | *\'*)
3942 # Didn't find X, or a directory has "'" in its name.
3943 ac_cv_have_x="have_x=no";; #(
3945 # Record where we found X for the cache.
3946 ac_cv_have_x="have_x=yes\
3947 ac_x_includes='$ac_x_includes'\
3948 ac_x_libraries='$ac_x_libraries'"
3949 esac
3951 ;; #(
3952 *) have_x=yes;;
3953 esac
3954 eval "$ac_cv_have_x"
3955 fi # $with_x != no
3957 if test "$have_x" != yes; then
3958 { $as_echo "$as_me:$LINENO: result: $have_x" >&5
3959 $as_echo "$have_x" >&6; }
3960 no_x=yes
3961 else
3962 # If each of the values was on the command line, it overrides each guess.
3963 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
3964 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
3965 # Update the cache value to reflect the command line values.
3966 ac_cv_have_x="have_x=yes\
3967 ac_x_includes='$x_includes'\
3968 ac_x_libraries='$x_libraries'"
3969 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
3970 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
3973 if test "$no_x" = yes; then
3974 # Not all programs may use this symbol, but it does not hurt to define it.
3976 cat >>confdefs.h <<\_ACEOF
3977 #define X_DISPLAY_MISSING 1
3978 _ACEOF
3980 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
3981 else
3982 if test -n "$x_includes"; then
3983 X_CFLAGS="$X_CFLAGS -I$x_includes"
3986 # It would also be nice to do this for all -L options, not just this one.
3987 if test -n "$x_libraries"; then
3988 X_LIBS="$X_LIBS -L$x_libraries"
3989 # For Solaris; some versions of Sun CC require a space after -R and
3990 # others require no space. Words are not sufficient . . . .
3991 { $as_echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
3992 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
3993 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
3994 ac_xsave_c_werror_flag=$ac_c_werror_flag
3995 ac_c_werror_flag=yes
3996 cat >conftest.$ac_ext <<_ACEOF
3997 /* confdefs.h. */
3998 _ACEOF
3999 cat confdefs.h >>conftest.$ac_ext
4000 cat >>conftest.$ac_ext <<_ACEOF
4001 /* end confdefs.h. */
4004 main ()
4008 return 0;
4010 _ACEOF
4011 rm -f conftest.$ac_objext conftest$ac_exeext
4012 if { (ac_try="$ac_link"
4013 case "(($ac_try" in
4014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4015 *) ac_try_echo=$ac_try;;
4016 esac
4017 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4018 $as_echo "$ac_try_echo") >&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 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025 (exit $ac_status); } && {
4026 test -z "$ac_c_werror_flag" ||
4027 test ! -s conftest.err
4028 } && test -s conftest$ac_exeext && {
4029 test "$cross_compiling" = yes ||
4030 $as_test_x conftest$ac_exeext
4031 }; then
4032 { $as_echo "$as_me:$LINENO: result: no" >&5
4033 $as_echo "no" >&6; }
4034 X_LIBS="$X_LIBS -R$x_libraries"
4035 else
4036 $as_echo "$as_me: failed program was:" >&5
4037 sed 's/^/| /' conftest.$ac_ext >&5
4039 LIBS="$ac_xsave_LIBS -R $x_libraries"
4040 cat >conftest.$ac_ext <<_ACEOF
4041 /* confdefs.h. */
4042 _ACEOF
4043 cat confdefs.h >>conftest.$ac_ext
4044 cat >>conftest.$ac_ext <<_ACEOF
4045 /* end confdefs.h. */
4048 main ()
4052 return 0;
4054 _ACEOF
4055 rm -f conftest.$ac_objext conftest$ac_exeext
4056 if { (ac_try="$ac_link"
4057 case "(($ac_try" in
4058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4059 *) ac_try_echo=$ac_try;;
4060 esac
4061 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4062 $as_echo "$ac_try_echo") >&5
4063 (eval "$ac_link") 2>conftest.er1
4064 ac_status=$?
4065 grep -v '^ *+' conftest.er1 >conftest.err
4066 rm -f conftest.er1
4067 cat conftest.err >&5
4068 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4069 (exit $ac_status); } && {
4070 test -z "$ac_c_werror_flag" ||
4071 test ! -s conftest.err
4072 } && test -s conftest$ac_exeext && {
4073 test "$cross_compiling" = yes ||
4074 $as_test_x conftest$ac_exeext
4075 }; then
4076 { $as_echo "$as_me:$LINENO: result: yes" >&5
4077 $as_echo "yes" >&6; }
4078 X_LIBS="$X_LIBS -R $x_libraries"
4079 else
4080 $as_echo "$as_me: failed program was:" >&5
4081 sed 's/^/| /' conftest.$ac_ext >&5
4083 { $as_echo "$as_me:$LINENO: result: neither works" >&5
4084 $as_echo "neither works" >&6; }
4087 rm -rf conftest.dSYM
4088 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4089 conftest$ac_exeext conftest.$ac_ext
4092 rm -rf conftest.dSYM
4093 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4094 conftest$ac_exeext conftest.$ac_ext
4095 ac_c_werror_flag=$ac_xsave_c_werror_flag
4096 LIBS=$ac_xsave_LIBS
4099 # Check for system-dependent libraries X programs must link with.
4100 # Do this before checking for the system-independent R6 libraries
4101 # (-lICE), since we may need -lsocket or whatever for X linking.
4103 if test "$ISC" = yes; then
4104 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4105 else
4106 # Martyn Johnson says this is needed for Ultrix, if the X
4107 # libraries were built with DECnet support. And Karl Berry says
4108 # the Alpha needs dnet_stub (dnet does not exist).
4109 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
4110 cat >conftest.$ac_ext <<_ACEOF
4111 /* confdefs.h. */
4112 _ACEOF
4113 cat confdefs.h >>conftest.$ac_ext
4114 cat >>conftest.$ac_ext <<_ACEOF
4115 /* end confdefs.h. */
4117 /* Override any GCC internal prototype to avoid an error.
4118 Use char because int might match the return type of a GCC
4119 builtin and then its argument prototype would still apply. */
4120 #ifdef __cplusplus
4121 extern "C"
4122 #endif
4123 char XOpenDisplay ();
4125 main ()
4127 return XOpenDisplay ();
4129 return 0;
4131 _ACEOF
4132 rm -f conftest.$ac_objext conftest$ac_exeext
4133 if { (ac_try="$ac_link"
4134 case "(($ac_try" in
4135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4136 *) ac_try_echo=$ac_try;;
4137 esac
4138 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4139 $as_echo "$ac_try_echo") >&5
4140 (eval "$ac_link") 2>conftest.er1
4141 ac_status=$?
4142 grep -v '^ *+' conftest.er1 >conftest.err
4143 rm -f conftest.er1
4144 cat conftest.err >&5
4145 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4146 (exit $ac_status); } && {
4147 test -z "$ac_c_werror_flag" ||
4148 test ! -s conftest.err
4149 } && test -s conftest$ac_exeext && {
4150 test "$cross_compiling" = yes ||
4151 $as_test_x conftest$ac_exeext
4152 }; then
4154 else
4155 $as_echo "$as_me: failed program was:" >&5
4156 sed 's/^/| /' conftest.$ac_ext >&5
4158 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
4159 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
4160 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
4161 $as_echo_n "(cached) " >&6
4162 else
4163 ac_check_lib_save_LIBS=$LIBS
4164 LIBS="-ldnet $LIBS"
4165 cat >conftest.$ac_ext <<_ACEOF
4166 /* confdefs.h. */
4167 _ACEOF
4168 cat confdefs.h >>conftest.$ac_ext
4169 cat >>conftest.$ac_ext <<_ACEOF
4170 /* end confdefs.h. */
4172 /* Override any GCC internal prototype to avoid an error.
4173 Use char because int might match the return type of a GCC
4174 builtin and then its argument prototype would still apply. */
4175 #ifdef __cplusplus
4176 extern "C"
4177 #endif
4178 char dnet_ntoa ();
4180 main ()
4182 return dnet_ntoa ();
4184 return 0;
4186 _ACEOF
4187 rm -f conftest.$ac_objext conftest$ac_exeext
4188 if { (ac_try="$ac_link"
4189 case "(($ac_try" in
4190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4191 *) ac_try_echo=$ac_try;;
4192 esac
4193 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4194 $as_echo "$ac_try_echo") >&5
4195 (eval "$ac_link") 2>conftest.er1
4196 ac_status=$?
4197 grep -v '^ *+' conftest.er1 >conftest.err
4198 rm -f conftest.er1
4199 cat conftest.err >&5
4200 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4201 (exit $ac_status); } && {
4202 test -z "$ac_c_werror_flag" ||
4203 test ! -s conftest.err
4204 } && test -s conftest$ac_exeext && {
4205 test "$cross_compiling" = yes ||
4206 $as_test_x conftest$ac_exeext
4207 }; then
4208 ac_cv_lib_dnet_dnet_ntoa=yes
4209 else
4210 $as_echo "$as_me: failed program was:" >&5
4211 sed 's/^/| /' conftest.$ac_ext >&5
4213 ac_cv_lib_dnet_dnet_ntoa=no
4216 rm -rf conftest.dSYM
4217 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4218 conftest$ac_exeext conftest.$ac_ext
4219 LIBS=$ac_check_lib_save_LIBS
4221 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
4222 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
4223 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then
4224 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
4227 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4228 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
4229 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
4230 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
4231 $as_echo_n "(cached) " >&6
4232 else
4233 ac_check_lib_save_LIBS=$LIBS
4234 LIBS="-ldnet_stub $LIBS"
4235 cat >conftest.$ac_ext <<_ACEOF
4236 /* confdefs.h. */
4237 _ACEOF
4238 cat confdefs.h >>conftest.$ac_ext
4239 cat >>conftest.$ac_ext <<_ACEOF
4240 /* end confdefs.h. */
4242 /* Override any GCC internal prototype to avoid an error.
4243 Use char because int might match the return type of a GCC
4244 builtin and then its argument prototype would still apply. */
4245 #ifdef __cplusplus
4246 extern "C"
4247 #endif
4248 char dnet_ntoa ();
4250 main ()
4252 return dnet_ntoa ();
4254 return 0;
4256 _ACEOF
4257 rm -f conftest.$ac_objext conftest$ac_exeext
4258 if { (ac_try="$ac_link"
4259 case "(($ac_try" in
4260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4261 *) ac_try_echo=$ac_try;;
4262 esac
4263 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4264 $as_echo "$ac_try_echo") >&5
4265 (eval "$ac_link") 2>conftest.er1
4266 ac_status=$?
4267 grep -v '^ *+' conftest.er1 >conftest.err
4268 rm -f conftest.er1
4269 cat conftest.err >&5
4270 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4271 (exit $ac_status); } && {
4272 test -z "$ac_c_werror_flag" ||
4273 test ! -s conftest.err
4274 } && test -s conftest$ac_exeext && {
4275 test "$cross_compiling" = yes ||
4276 $as_test_x conftest$ac_exeext
4277 }; then
4278 ac_cv_lib_dnet_stub_dnet_ntoa=yes
4279 else
4280 $as_echo "$as_me: failed program was:" >&5
4281 sed 's/^/| /' conftest.$ac_ext >&5
4283 ac_cv_lib_dnet_stub_dnet_ntoa=no
4286 rm -rf conftest.dSYM
4287 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4288 conftest$ac_exeext conftest.$ac_ext
4289 LIBS=$ac_check_lib_save_LIBS
4291 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
4292 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
4293 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then
4294 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
4300 rm -rf conftest.dSYM
4301 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4302 conftest$ac_exeext conftest.$ac_ext
4303 LIBS="$ac_xsave_LIBS"
4305 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
4306 # to get the SysV transport functions.
4307 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
4308 # needs -lnsl.
4309 # The nsl library prevents programs from opening the X display
4310 # on Irix 5.2, according to T.E. Dickey.
4311 # The functions gethostbyname, getservbyname, and inet_addr are
4312 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
4313 { $as_echo "$as_me:$LINENO: checking for gethostbyname" >&5
4314 $as_echo_n "checking for gethostbyname... " >&6; }
4315 if test "${ac_cv_func_gethostbyname+set}" = set; then
4316 $as_echo_n "(cached) " >&6
4317 else
4318 cat >conftest.$ac_ext <<_ACEOF
4319 /* confdefs.h. */
4320 _ACEOF
4321 cat confdefs.h >>conftest.$ac_ext
4322 cat >>conftest.$ac_ext <<_ACEOF
4323 /* end confdefs.h. */
4324 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
4325 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4326 #define gethostbyname innocuous_gethostbyname
4328 /* System header to define __stub macros and hopefully few prototypes,
4329 which can conflict with char gethostbyname (); below.
4330 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4331 <limits.h> exists even on freestanding compilers. */
4333 #ifdef __STDC__
4334 # include <limits.h>
4335 #else
4336 # include <assert.h>
4337 #endif
4339 #undef gethostbyname
4341 /* Override any GCC internal prototype to avoid an error.
4342 Use char because int might match the return type of a GCC
4343 builtin and then its argument prototype would still apply. */
4344 #ifdef __cplusplus
4345 extern "C"
4346 #endif
4347 char gethostbyname ();
4348 /* The GNU C library defines this for functions which it implements
4349 to always fail with ENOSYS. Some functions are actually named
4350 something starting with __ and the normal name is an alias. */
4351 #if defined __stub_gethostbyname || defined __stub___gethostbyname
4352 choke me
4353 #endif
4356 main ()
4358 return gethostbyname ();
4360 return 0;
4362 _ACEOF
4363 rm -f conftest.$ac_objext conftest$ac_exeext
4364 if { (ac_try="$ac_link"
4365 case "(($ac_try" in
4366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4367 *) ac_try_echo=$ac_try;;
4368 esac
4369 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4370 $as_echo "$ac_try_echo") >&5
4371 (eval "$ac_link") 2>conftest.er1
4372 ac_status=$?
4373 grep -v '^ *+' conftest.er1 >conftest.err
4374 rm -f conftest.er1
4375 cat conftest.err >&5
4376 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377 (exit $ac_status); } && {
4378 test -z "$ac_c_werror_flag" ||
4379 test ! -s conftest.err
4380 } && test -s conftest$ac_exeext && {
4381 test "$cross_compiling" = yes ||
4382 $as_test_x conftest$ac_exeext
4383 }; then
4384 ac_cv_func_gethostbyname=yes
4385 else
4386 $as_echo "$as_me: failed program was:" >&5
4387 sed 's/^/| /' conftest.$ac_ext >&5
4389 ac_cv_func_gethostbyname=no
4392 rm -rf conftest.dSYM
4393 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4394 conftest$ac_exeext conftest.$ac_ext
4396 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
4397 $as_echo "$ac_cv_func_gethostbyname" >&6; }
4399 if test $ac_cv_func_gethostbyname = no; then
4400 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4401 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
4402 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4403 $as_echo_n "(cached) " >&6
4404 else
4405 ac_check_lib_save_LIBS=$LIBS
4406 LIBS="-lnsl $LIBS"
4407 cat >conftest.$ac_ext <<_ACEOF
4408 /* confdefs.h. */
4409 _ACEOF
4410 cat confdefs.h >>conftest.$ac_ext
4411 cat >>conftest.$ac_ext <<_ACEOF
4412 /* end confdefs.h. */
4414 /* Override any GCC internal prototype to avoid an error.
4415 Use char because int might match the return type of a GCC
4416 builtin and then its argument prototype would still apply. */
4417 #ifdef __cplusplus
4418 extern "C"
4419 #endif
4420 char gethostbyname ();
4422 main ()
4424 return gethostbyname ();
4426 return 0;
4428 _ACEOF
4429 rm -f conftest.$ac_objext conftest$ac_exeext
4430 if { (ac_try="$ac_link"
4431 case "(($ac_try" in
4432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4433 *) ac_try_echo=$ac_try;;
4434 esac
4435 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4436 $as_echo "$ac_try_echo") >&5
4437 (eval "$ac_link") 2>conftest.er1
4438 ac_status=$?
4439 grep -v '^ *+' conftest.er1 >conftest.err
4440 rm -f conftest.er1
4441 cat conftest.err >&5
4442 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4443 (exit $ac_status); } && {
4444 test -z "$ac_c_werror_flag" ||
4445 test ! -s conftest.err
4446 } && test -s conftest$ac_exeext && {
4447 test "$cross_compiling" = yes ||
4448 $as_test_x conftest$ac_exeext
4449 }; then
4450 ac_cv_lib_nsl_gethostbyname=yes
4451 else
4452 $as_echo "$as_me: failed program was:" >&5
4453 sed 's/^/| /' conftest.$ac_ext >&5
4455 ac_cv_lib_nsl_gethostbyname=no
4458 rm -rf conftest.dSYM
4459 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4460 conftest$ac_exeext conftest.$ac_ext
4461 LIBS=$ac_check_lib_save_LIBS
4463 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4464 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
4465 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then
4466 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
4469 if test $ac_cv_lib_nsl_gethostbyname = no; then
4470 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
4471 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
4472 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
4473 $as_echo_n "(cached) " >&6
4474 else
4475 ac_check_lib_save_LIBS=$LIBS
4476 LIBS="-lbsd $LIBS"
4477 cat >conftest.$ac_ext <<_ACEOF
4478 /* confdefs.h. */
4479 _ACEOF
4480 cat confdefs.h >>conftest.$ac_ext
4481 cat >>conftest.$ac_ext <<_ACEOF
4482 /* end confdefs.h. */
4484 /* Override any GCC internal prototype to avoid an error.
4485 Use char because int might match the return type of a GCC
4486 builtin and then its argument prototype would still apply. */
4487 #ifdef __cplusplus
4488 extern "C"
4489 #endif
4490 char gethostbyname ();
4492 main ()
4494 return gethostbyname ();
4496 return 0;
4498 _ACEOF
4499 rm -f conftest.$ac_objext conftest$ac_exeext
4500 if { (ac_try="$ac_link"
4501 case "(($ac_try" in
4502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4503 *) ac_try_echo=$ac_try;;
4504 esac
4505 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4506 $as_echo "$ac_try_echo") >&5
4507 (eval "$ac_link") 2>conftest.er1
4508 ac_status=$?
4509 grep -v '^ *+' conftest.er1 >conftest.err
4510 rm -f conftest.er1
4511 cat conftest.err >&5
4512 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4513 (exit $ac_status); } && {
4514 test -z "$ac_c_werror_flag" ||
4515 test ! -s conftest.err
4516 } && test -s conftest$ac_exeext && {
4517 test "$cross_compiling" = yes ||
4518 $as_test_x conftest$ac_exeext
4519 }; then
4520 ac_cv_lib_bsd_gethostbyname=yes
4521 else
4522 $as_echo "$as_me: failed program was:" >&5
4523 sed 's/^/| /' conftest.$ac_ext >&5
4525 ac_cv_lib_bsd_gethostbyname=no
4528 rm -rf conftest.dSYM
4529 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4530 conftest$ac_exeext conftest.$ac_ext
4531 LIBS=$ac_check_lib_save_LIBS
4533 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
4534 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
4535 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then
4536 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
4542 # lieder@skyler.mavd.honeywell.com says without -lsocket,
4543 # socket/setsockopt and other routines are undefined under SCO ODT
4544 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
4545 # on later versions), says Simon Leinen: it contains gethostby*
4546 # variants that don't use the name server (or something). -lsocket
4547 # must be given before -lnsl if both are needed. We assume that
4548 # if connect needs -lnsl, so does gethostbyname.
4549 { $as_echo "$as_me:$LINENO: checking for connect" >&5
4550 $as_echo_n "checking for connect... " >&6; }
4551 if test "${ac_cv_func_connect+set}" = set; then
4552 $as_echo_n "(cached) " >&6
4553 else
4554 cat >conftest.$ac_ext <<_ACEOF
4555 /* confdefs.h. */
4556 _ACEOF
4557 cat confdefs.h >>conftest.$ac_ext
4558 cat >>conftest.$ac_ext <<_ACEOF
4559 /* end confdefs.h. */
4560 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
4561 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4562 #define connect innocuous_connect
4564 /* System header to define __stub macros and hopefully few prototypes,
4565 which can conflict with char connect (); below.
4566 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4567 <limits.h> exists even on freestanding compilers. */
4569 #ifdef __STDC__
4570 # include <limits.h>
4571 #else
4572 # include <assert.h>
4573 #endif
4575 #undef connect
4577 /* Override any GCC internal prototype to avoid an error.
4578 Use char because int might match the return type of a GCC
4579 builtin and then its argument prototype would still apply. */
4580 #ifdef __cplusplus
4581 extern "C"
4582 #endif
4583 char connect ();
4584 /* The GNU C library defines this for functions which it implements
4585 to always fail with ENOSYS. Some functions are actually named
4586 something starting with __ and the normal name is an alias. */
4587 #if defined __stub_connect || defined __stub___connect
4588 choke me
4589 #endif
4592 main ()
4594 return connect ();
4596 return 0;
4598 _ACEOF
4599 rm -f conftest.$ac_objext conftest$ac_exeext
4600 if { (ac_try="$ac_link"
4601 case "(($ac_try" in
4602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4603 *) ac_try_echo=$ac_try;;
4604 esac
4605 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4606 $as_echo "$ac_try_echo") >&5
4607 (eval "$ac_link") 2>conftest.er1
4608 ac_status=$?
4609 grep -v '^ *+' conftest.er1 >conftest.err
4610 rm -f conftest.er1
4611 cat conftest.err >&5
4612 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4613 (exit $ac_status); } && {
4614 test -z "$ac_c_werror_flag" ||
4615 test ! -s conftest.err
4616 } && test -s conftest$ac_exeext && {
4617 test "$cross_compiling" = yes ||
4618 $as_test_x conftest$ac_exeext
4619 }; then
4620 ac_cv_func_connect=yes
4621 else
4622 $as_echo "$as_me: failed program was:" >&5
4623 sed 's/^/| /' conftest.$ac_ext >&5
4625 ac_cv_func_connect=no
4628 rm -rf conftest.dSYM
4629 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4630 conftest$ac_exeext conftest.$ac_ext
4632 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
4633 $as_echo "$ac_cv_func_connect" >&6; }
4635 if test $ac_cv_func_connect = no; then
4636 { $as_echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
4637 $as_echo_n "checking for connect in -lsocket... " >&6; }
4638 if test "${ac_cv_lib_socket_connect+set}" = set; then
4639 $as_echo_n "(cached) " >&6
4640 else
4641 ac_check_lib_save_LIBS=$LIBS
4642 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
4643 cat >conftest.$ac_ext <<_ACEOF
4644 /* confdefs.h. */
4645 _ACEOF
4646 cat confdefs.h >>conftest.$ac_ext
4647 cat >>conftest.$ac_ext <<_ACEOF
4648 /* end confdefs.h. */
4650 /* Override any GCC internal prototype to avoid an error.
4651 Use char because int might match the return type of a GCC
4652 builtin and then its argument prototype would still apply. */
4653 #ifdef __cplusplus
4654 extern "C"
4655 #endif
4656 char connect ();
4658 main ()
4660 return connect ();
4662 return 0;
4664 _ACEOF
4665 rm -f conftest.$ac_objext conftest$ac_exeext
4666 if { (ac_try="$ac_link"
4667 case "(($ac_try" in
4668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4669 *) ac_try_echo=$ac_try;;
4670 esac
4671 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4672 $as_echo "$ac_try_echo") >&5
4673 (eval "$ac_link") 2>conftest.er1
4674 ac_status=$?
4675 grep -v '^ *+' conftest.er1 >conftest.err
4676 rm -f conftest.er1
4677 cat conftest.err >&5
4678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4679 (exit $ac_status); } && {
4680 test -z "$ac_c_werror_flag" ||
4681 test ! -s conftest.err
4682 } && test -s conftest$ac_exeext && {
4683 test "$cross_compiling" = yes ||
4684 $as_test_x conftest$ac_exeext
4685 }; then
4686 ac_cv_lib_socket_connect=yes
4687 else
4688 $as_echo "$as_me: failed program was:" >&5
4689 sed 's/^/| /' conftest.$ac_ext >&5
4691 ac_cv_lib_socket_connect=no
4694 rm -rf conftest.dSYM
4695 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4696 conftest$ac_exeext conftest.$ac_ext
4697 LIBS=$ac_check_lib_save_LIBS
4699 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
4700 $as_echo "$ac_cv_lib_socket_connect" >&6; }
4701 if test "x$ac_cv_lib_socket_connect" = x""yes; then
4702 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
4707 # Guillermo Gomez says -lposix is necessary on A/UX.
4708 { $as_echo "$as_me:$LINENO: checking for remove" >&5
4709 $as_echo_n "checking for remove... " >&6; }
4710 if test "${ac_cv_func_remove+set}" = set; then
4711 $as_echo_n "(cached) " >&6
4712 else
4713 cat >conftest.$ac_ext <<_ACEOF
4714 /* confdefs.h. */
4715 _ACEOF
4716 cat confdefs.h >>conftest.$ac_ext
4717 cat >>conftest.$ac_ext <<_ACEOF
4718 /* end confdefs.h. */
4719 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
4720 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4721 #define remove innocuous_remove
4723 /* System header to define __stub macros and hopefully few prototypes,
4724 which can conflict with char remove (); below.
4725 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4726 <limits.h> exists even on freestanding compilers. */
4728 #ifdef __STDC__
4729 # include <limits.h>
4730 #else
4731 # include <assert.h>
4732 #endif
4734 #undef remove
4736 /* Override any GCC internal prototype to avoid an error.
4737 Use char because int might match the return type of a GCC
4738 builtin and then its argument prototype would still apply. */
4739 #ifdef __cplusplus
4740 extern "C"
4741 #endif
4742 char remove ();
4743 /* The GNU C library defines this for functions which it implements
4744 to always fail with ENOSYS. Some functions are actually named
4745 something starting with __ and the normal name is an alias. */
4746 #if defined __stub_remove || defined __stub___remove
4747 choke me
4748 #endif
4751 main ()
4753 return remove ();
4755 return 0;
4757 _ACEOF
4758 rm -f conftest.$ac_objext conftest$ac_exeext
4759 if { (ac_try="$ac_link"
4760 case "(($ac_try" in
4761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4762 *) ac_try_echo=$ac_try;;
4763 esac
4764 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4765 $as_echo "$ac_try_echo") >&5
4766 (eval "$ac_link") 2>conftest.er1
4767 ac_status=$?
4768 grep -v '^ *+' conftest.er1 >conftest.err
4769 rm -f conftest.er1
4770 cat conftest.err >&5
4771 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4772 (exit $ac_status); } && {
4773 test -z "$ac_c_werror_flag" ||
4774 test ! -s conftest.err
4775 } && test -s conftest$ac_exeext && {
4776 test "$cross_compiling" = yes ||
4777 $as_test_x conftest$ac_exeext
4778 }; then
4779 ac_cv_func_remove=yes
4780 else
4781 $as_echo "$as_me: failed program was:" >&5
4782 sed 's/^/| /' conftest.$ac_ext >&5
4784 ac_cv_func_remove=no
4787 rm -rf conftest.dSYM
4788 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4789 conftest$ac_exeext conftest.$ac_ext
4791 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
4792 $as_echo "$ac_cv_func_remove" >&6; }
4794 if test $ac_cv_func_remove = no; then
4795 { $as_echo "$as_me:$LINENO: checking for remove in -lposix" >&5
4796 $as_echo_n "checking for remove in -lposix... " >&6; }
4797 if test "${ac_cv_lib_posix_remove+set}" = set; then
4798 $as_echo_n "(cached) " >&6
4799 else
4800 ac_check_lib_save_LIBS=$LIBS
4801 LIBS="-lposix $LIBS"
4802 cat >conftest.$ac_ext <<_ACEOF
4803 /* confdefs.h. */
4804 _ACEOF
4805 cat confdefs.h >>conftest.$ac_ext
4806 cat >>conftest.$ac_ext <<_ACEOF
4807 /* end confdefs.h. */
4809 /* Override any GCC internal prototype to avoid an error.
4810 Use char because int might match the return type of a GCC
4811 builtin and then its argument prototype would still apply. */
4812 #ifdef __cplusplus
4813 extern "C"
4814 #endif
4815 char remove ();
4817 main ()
4819 return remove ();
4821 return 0;
4823 _ACEOF
4824 rm -f conftest.$ac_objext conftest$ac_exeext
4825 if { (ac_try="$ac_link"
4826 case "(($ac_try" in
4827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4828 *) ac_try_echo=$ac_try;;
4829 esac
4830 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4831 $as_echo "$ac_try_echo") >&5
4832 (eval "$ac_link") 2>conftest.er1
4833 ac_status=$?
4834 grep -v '^ *+' conftest.er1 >conftest.err
4835 rm -f conftest.er1
4836 cat conftest.err >&5
4837 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4838 (exit $ac_status); } && {
4839 test -z "$ac_c_werror_flag" ||
4840 test ! -s conftest.err
4841 } && test -s conftest$ac_exeext && {
4842 test "$cross_compiling" = yes ||
4843 $as_test_x conftest$ac_exeext
4844 }; then
4845 ac_cv_lib_posix_remove=yes
4846 else
4847 $as_echo "$as_me: failed program was:" >&5
4848 sed 's/^/| /' conftest.$ac_ext >&5
4850 ac_cv_lib_posix_remove=no
4853 rm -rf conftest.dSYM
4854 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4855 conftest$ac_exeext conftest.$ac_ext
4856 LIBS=$ac_check_lib_save_LIBS
4858 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
4859 $as_echo "$ac_cv_lib_posix_remove" >&6; }
4860 if test "x$ac_cv_lib_posix_remove" = x""yes; then
4861 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
4866 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4867 { $as_echo "$as_me:$LINENO: checking for shmat" >&5
4868 $as_echo_n "checking for shmat... " >&6; }
4869 if test "${ac_cv_func_shmat+set}" = set; then
4870 $as_echo_n "(cached) " >&6
4871 else
4872 cat >conftest.$ac_ext <<_ACEOF
4873 /* confdefs.h. */
4874 _ACEOF
4875 cat confdefs.h >>conftest.$ac_ext
4876 cat >>conftest.$ac_ext <<_ACEOF
4877 /* end confdefs.h. */
4878 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
4879 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4880 #define shmat innocuous_shmat
4882 /* System header to define __stub macros and hopefully few prototypes,
4883 which can conflict with char shmat (); below.
4884 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4885 <limits.h> exists even on freestanding compilers. */
4887 #ifdef __STDC__
4888 # include <limits.h>
4889 #else
4890 # include <assert.h>
4891 #endif
4893 #undef shmat
4895 /* Override any GCC internal prototype to avoid an error.
4896 Use char because int might match the return type of a GCC
4897 builtin and then its argument prototype would still apply. */
4898 #ifdef __cplusplus
4899 extern "C"
4900 #endif
4901 char shmat ();
4902 /* The GNU C library defines this for functions which it implements
4903 to always fail with ENOSYS. Some functions are actually named
4904 something starting with __ and the normal name is an alias. */
4905 #if defined __stub_shmat || defined __stub___shmat
4906 choke me
4907 #endif
4910 main ()
4912 return shmat ();
4914 return 0;
4916 _ACEOF
4917 rm -f conftest.$ac_objext conftest$ac_exeext
4918 if { (ac_try="$ac_link"
4919 case "(($ac_try" in
4920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4921 *) ac_try_echo=$ac_try;;
4922 esac
4923 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4924 $as_echo "$ac_try_echo") >&5
4925 (eval "$ac_link") 2>conftest.er1
4926 ac_status=$?
4927 grep -v '^ *+' conftest.er1 >conftest.err
4928 rm -f conftest.er1
4929 cat conftest.err >&5
4930 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4931 (exit $ac_status); } && {
4932 test -z "$ac_c_werror_flag" ||
4933 test ! -s conftest.err
4934 } && test -s conftest$ac_exeext && {
4935 test "$cross_compiling" = yes ||
4936 $as_test_x conftest$ac_exeext
4937 }; then
4938 ac_cv_func_shmat=yes
4939 else
4940 $as_echo "$as_me: failed program was:" >&5
4941 sed 's/^/| /' conftest.$ac_ext >&5
4943 ac_cv_func_shmat=no
4946 rm -rf conftest.dSYM
4947 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4948 conftest$ac_exeext conftest.$ac_ext
4950 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
4951 $as_echo "$ac_cv_func_shmat" >&6; }
4953 if test $ac_cv_func_shmat = no; then
4954 { $as_echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
4955 $as_echo_n "checking for shmat in -lipc... " >&6; }
4956 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
4957 $as_echo_n "(cached) " >&6
4958 else
4959 ac_check_lib_save_LIBS=$LIBS
4960 LIBS="-lipc $LIBS"
4961 cat >conftest.$ac_ext <<_ACEOF
4962 /* confdefs.h. */
4963 _ACEOF
4964 cat confdefs.h >>conftest.$ac_ext
4965 cat >>conftest.$ac_ext <<_ACEOF
4966 /* end confdefs.h. */
4968 /* Override any GCC internal prototype to avoid an error.
4969 Use char because int might match the return type of a GCC
4970 builtin and then its argument prototype would still apply. */
4971 #ifdef __cplusplus
4972 extern "C"
4973 #endif
4974 char shmat ();
4976 main ()
4978 return shmat ();
4980 return 0;
4982 _ACEOF
4983 rm -f conftest.$ac_objext conftest$ac_exeext
4984 if { (ac_try="$ac_link"
4985 case "(($ac_try" in
4986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4987 *) ac_try_echo=$ac_try;;
4988 esac
4989 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4990 $as_echo "$ac_try_echo") >&5
4991 (eval "$ac_link") 2>conftest.er1
4992 ac_status=$?
4993 grep -v '^ *+' conftest.er1 >conftest.err
4994 rm -f conftest.er1
4995 cat conftest.err >&5
4996 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4997 (exit $ac_status); } && {
4998 test -z "$ac_c_werror_flag" ||
4999 test ! -s conftest.err
5000 } && test -s conftest$ac_exeext && {
5001 test "$cross_compiling" = yes ||
5002 $as_test_x conftest$ac_exeext
5003 }; then
5004 ac_cv_lib_ipc_shmat=yes
5005 else
5006 $as_echo "$as_me: failed program was:" >&5
5007 sed 's/^/| /' conftest.$ac_ext >&5
5009 ac_cv_lib_ipc_shmat=no
5012 rm -rf conftest.dSYM
5013 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5014 conftest$ac_exeext conftest.$ac_ext
5015 LIBS=$ac_check_lib_save_LIBS
5017 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
5018 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
5019 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then
5020 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5026 # Check for libraries that X11R6 Xt/Xaw programs need.
5027 ac_save_LDFLAGS=$LDFLAGS
5028 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5029 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5030 # check for ICE first), but we must link in the order -lSM -lICE or
5031 # we get undefined symbols. So assume we have SM if we have ICE.
5032 # These have to be linked with before -lX11, unlike the other
5033 # libraries we check for below, so use a different variable.
5034 # John Interrante, Karl Berry
5035 { $as_echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
5036 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
5037 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
5038 $as_echo_n "(cached) " >&6
5039 else
5040 ac_check_lib_save_LIBS=$LIBS
5041 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
5042 cat >conftest.$ac_ext <<_ACEOF
5043 /* confdefs.h. */
5044 _ACEOF
5045 cat confdefs.h >>conftest.$ac_ext
5046 cat >>conftest.$ac_ext <<_ACEOF
5047 /* end confdefs.h. */
5049 /* Override any GCC internal prototype to avoid an error.
5050 Use char because int might match the return type of a GCC
5051 builtin and then its argument prototype would still apply. */
5052 #ifdef __cplusplus
5053 extern "C"
5054 #endif
5055 char IceConnectionNumber ();
5057 main ()
5059 return IceConnectionNumber ();
5061 return 0;
5063 _ACEOF
5064 rm -f conftest.$ac_objext conftest$ac_exeext
5065 if { (ac_try="$ac_link"
5066 case "(($ac_try" in
5067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5068 *) ac_try_echo=$ac_try;;
5069 esac
5070 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5071 $as_echo "$ac_try_echo") >&5
5072 (eval "$ac_link") 2>conftest.er1
5073 ac_status=$?
5074 grep -v '^ *+' conftest.er1 >conftest.err
5075 rm -f conftest.er1
5076 cat conftest.err >&5
5077 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5078 (exit $ac_status); } && {
5079 test -z "$ac_c_werror_flag" ||
5080 test ! -s conftest.err
5081 } && test -s conftest$ac_exeext && {
5082 test "$cross_compiling" = yes ||
5083 $as_test_x conftest$ac_exeext
5084 }; then
5085 ac_cv_lib_ICE_IceConnectionNumber=yes
5086 else
5087 $as_echo "$as_me: failed program was:" >&5
5088 sed 's/^/| /' conftest.$ac_ext >&5
5090 ac_cv_lib_ICE_IceConnectionNumber=no
5093 rm -rf conftest.dSYM
5094 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5095 conftest$ac_exeext conftest.$ac_ext
5096 LIBS=$ac_check_lib_save_LIBS
5098 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
5099 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
5100 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then
5101 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5104 LDFLAGS=$ac_save_LDFLAGS
5109 groff_no_x=$no_x
5110 if test -z "$groff_no_x"; then
5111 OLDCFLAGS=$CFLAGS
5112 OLDLDFLAGS=$LDFLAGS
5113 OLDLIBS=$LIBS
5114 CFLAGS="$CFLAGS $X_CFLAGS"
5115 LDFLAGS="$LDFLAGS $X_LIBS"
5116 LIBS="$LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
5118 LIBS="$LIBS -lXaw"
5119 { $as_echo "$as_me:$LINENO: checking for Xaw library and header files" >&5
5120 $as_echo_n "checking for Xaw library and header files... " >&6; }
5121 cat >conftest.$ac_ext <<_ACEOF
5123 /* confdefs.h. */
5124 _ACEOF
5125 cat confdefs.h >>conftest.$ac_ext
5126 cat >>conftest.$ac_ext <<_ACEOF
5127 /* end confdefs.h. */
5130 #include <X11/Intrinsic.h>
5131 #include <X11/Xaw/Simple.h>
5135 main ()
5139 return 0;
5142 _ACEOF
5143 rm -f conftest.$ac_objext conftest$ac_exeext
5144 if { (ac_try="$ac_link"
5145 case "(($ac_try" in
5146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5147 *) ac_try_echo=$ac_try;;
5148 esac
5149 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5150 $as_echo "$ac_try_echo") >&5
5151 (eval "$ac_link") 2>conftest.er1
5152 ac_status=$?
5153 grep -v '^ *+' conftest.er1 >conftest.err
5154 rm -f conftest.er1
5155 cat conftest.err >&5
5156 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5157 (exit $ac_status); } && {
5158 test -z "$ac_c_werror_flag" ||
5159 test ! -s conftest.err
5160 } && test -s conftest$ac_exeext && {
5161 test "$cross_compiling" = yes ||
5162 $as_test_x conftest$ac_exeext
5163 }; then
5164 { $as_echo "$as_me:$LINENO: result: yes" >&5
5165 $as_echo "yes" >&6; }
5166 else
5167 $as_echo "$as_me: failed program was:" >&5
5168 sed 's/^/| /' conftest.$ac_ext >&5
5170 { $as_echo "$as_me:$LINENO: result: no" >&5
5171 $as_echo "no" >&6; }
5172 groff_no_x="yes"
5175 rm -rf conftest.dSYM
5176 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5177 conftest$ac_exeext conftest.$ac_ext
5179 LIBS="$LIBS -lXmu"
5180 { $as_echo "$as_me:$LINENO: checking for Xmu library and header files" >&5
5181 $as_echo_n "checking for Xmu library and header files... " >&6; }
5182 cat >conftest.$ac_ext <<_ACEOF
5184 /* confdefs.h. */
5185 _ACEOF
5186 cat confdefs.h >>conftest.$ac_ext
5187 cat >>conftest.$ac_ext <<_ACEOF
5188 /* end confdefs.h. */
5191 #include <X11/Intrinsic.h>
5192 #include <X11/Xmu/Converters.h>
5196 main ()
5200 return 0;
5203 _ACEOF
5204 rm -f conftest.$ac_objext conftest$ac_exeext
5205 if { (ac_try="$ac_link"
5206 case "(($ac_try" in
5207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5208 *) ac_try_echo=$ac_try;;
5209 esac
5210 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5211 $as_echo "$ac_try_echo") >&5
5212 (eval "$ac_link") 2>conftest.er1
5213 ac_status=$?
5214 grep -v '^ *+' conftest.er1 >conftest.err
5215 rm -f conftest.er1
5216 cat conftest.err >&5
5217 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5218 (exit $ac_status); } && {
5219 test -z "$ac_c_werror_flag" ||
5220 test ! -s conftest.err
5221 } && test -s conftest$ac_exeext && {
5222 test "$cross_compiling" = yes ||
5223 $as_test_x conftest$ac_exeext
5224 }; then
5225 { $as_echo "$as_me:$LINENO: result: yes" >&5
5226 $as_echo "yes" >&6; }
5227 else
5228 $as_echo "$as_me: failed program was:" >&5
5229 sed 's/^/| /' conftest.$ac_ext >&5
5231 { $as_echo "$as_me:$LINENO: result: no" >&5
5232 $as_echo "no" >&6; }
5233 groff_no_x="yes"
5236 rm -rf conftest.dSYM
5237 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5238 conftest$ac_exeext conftest.$ac_ext
5240 CFLAGS=$OLDCFLAGS
5241 LDFLAGS=$OLDLDFLAGS
5242 LIBS=$OLDLIBS
5245 if test "x$groff_no_x" = "xyes"; then
5246 { $as_echo "$as_me:$LINENO: gxditview and xtotroff won't be built" >&5
5247 $as_echo "$as_me: gxditview and xtotroff won't be built" >&6;}
5248 else
5249 XDEVDIRS="font/devX75 font/devX75-12 font/devX100 font/devX100-12"
5250 XPROGDIRS="src/devices/xditview src/utils/xtotroff"
5251 XLIBDIRS="src/libs/libxutil"
5258 # Check whether --with-appresdir was given.
5259 if test "${with_appresdir+set}" = set; then
5260 withval=$with_appresdir;
5263 if test -z "$groff_no_x"; then
5264 # Create an Imakefile, run `xmkmf', then `make'.
5265 rm -f -r conftest.dir
5266 if mkdir conftest.dir; then
5267 cd conftest.dir
5268 # Make sure to not put `make' in the Imakefile rules,
5269 # since we grep it out.
5270 cat >Imakefile <<'EOF'
5272 xlibdirs:
5273 @echo 'groff_x_usrlibdir="${USRLIBDIR}"; groff_x_libdir="${LIBDIR}"'
5276 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5277 # GNU make sometimes prints "make[1]: Entering...",
5278 # which would confuse us.
5279 eval `${MAKE-make} xlibdirs 2>/dev/null | grep -v make`
5281 # Open Windows `xmkmf' reportedly sets LIBDIR instead of USRLIBDIR.
5282 for groff_extension in a so sl; do
5283 if test ! -f $groff_x_usrlibdir/libX11.$groff_extension &&
5284 test -f $groff_x_libdir/libX11.$groff_extension; then
5285 groff_x_usrlibdir=$groff_x_libdir
5286 break
5288 done
5291 cd ..
5292 rm -f -r conftest.dir
5295 # In case the test with `xmkmf' wasn't successful, try a suite of
5296 # standard directories. Check `X11' before `X11Rn' because it is often
5297 # a symlink to the current release.
5298 groff_x_libdirs='
5299 /usr/X11/lib
5300 /usr/X11R6/lib
5301 /usr/X11R5/lib
5302 /usr/X11R4/lib
5304 /usr/lib/X11
5305 /usr/lib/X11R6
5306 /usr/lib/X11R5
5307 /usr/lib/X11R4
5309 /usr/local/X11/lib
5310 /usr/local/X11R6/lib
5311 /usr/local/X11R5/lib
5312 /usr/local/X11R4/lib
5314 /usr/local/lib/X11
5315 /usr/local/lib/X11R6
5316 /usr/local/lib/X11R5
5317 /usr/local/lib/X11R4
5319 /usr/X386/lib
5320 /usr/x386/lib
5321 /usr/XFree86/lib/X11
5323 /usr/lib
5324 /usr/local/lib
5325 /usr/unsupported/lib
5326 /usr/athena/lib
5327 /usr/local/x11r5/lib
5328 /usr/lpp/Xamples/lib
5330 /usr/openwin/lib
5331 /usr/openwin/share/lib'
5333 if test -z "$groff_x_usrlibdir"; then
5334 # We only test whether libX11 exists.
5335 for groff_dir in $groff_x_libdirs; do
5336 for groff_extension in a so sl; do
5337 if test ! -r $groff_dir/libX11.$groff_extension; then
5338 groff_x_usrlibdir=$groff_dir
5339 break 2
5341 done
5342 done
5345 if test "x$with_appresdir" = "x"; then
5346 appresdir=$groff_x_usrlibdir/X11/app-defaults
5347 else
5348 appresdir=$with_appresdir
5352 if test -z "$PSPRINT"; then
5353 for ac_prog in lpr
5355 # Extract the first word of "$ac_prog", so it can be a program name with args.
5356 set dummy $ac_prog; ac_word=$2
5357 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5358 $as_echo_n "checking for $ac_word... " >&6; }
5359 if test "${ac_cv_prog_LPR+set}" = set; then
5360 $as_echo_n "(cached) " >&6
5361 else
5362 if test -n "$LPR"; then
5363 ac_cv_prog_LPR="$LPR" # Let the user override the test.
5364 else
5365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5366 for as_dir in $PATH
5368 IFS=$as_save_IFS
5369 test -z "$as_dir" && as_dir=.
5370 for ac_exec_ext in '' $ac_executable_extensions; do
5371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5372 ac_cv_prog_LPR="$ac_prog"
5373 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5374 break 2
5376 done
5377 done
5378 IFS=$as_save_IFS
5382 LPR=$ac_cv_prog_LPR
5383 if test -n "$LPR"; then
5384 { $as_echo "$as_me:$LINENO: result: $LPR" >&5
5385 $as_echo "$LPR" >&6; }
5386 else
5387 { $as_echo "$as_me:$LINENO: result: no" >&5
5388 $as_echo "no" >&6; }
5392 test -n "$LPR" && break
5393 done
5395 for ac_prog in lp
5397 # Extract the first word of "$ac_prog", so it can be a program name with args.
5398 set dummy $ac_prog; ac_word=$2
5399 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5400 $as_echo_n "checking for $ac_word... " >&6; }
5401 if test "${ac_cv_prog_LP+set}" = set; then
5402 $as_echo_n "(cached) " >&6
5403 else
5404 if test -n "$LP"; then
5405 ac_cv_prog_LP="$LP" # Let the user override the test.
5406 else
5407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5408 for as_dir in $PATH
5410 IFS=$as_save_IFS
5411 test -z "$as_dir" && as_dir=.
5412 for ac_exec_ext in '' $ac_executable_extensions; do
5413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5414 ac_cv_prog_LP="$ac_prog"
5415 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5416 break 2
5418 done
5419 done
5420 IFS=$as_save_IFS
5424 LP=$ac_cv_prog_LP
5425 if test -n "$LP"; then
5426 { $as_echo "$as_me:$LINENO: result: $LP" >&5
5427 $as_echo "$LP" >&6; }
5428 else
5429 { $as_echo "$as_me:$LINENO: result: no" >&5
5430 $as_echo "no" >&6; }
5434 test -n "$LP" && break
5435 done
5437 if test -n "$LPR" && test -n "$LP"; then
5438 # HP-UX provides an lpr command that emulates lpr using lp,
5439 # but it doesn't have lpq; in this case we want to use lp
5440 # rather than lpr.
5441 for ac_prog in lpq
5443 # Extract the first word of "$ac_prog", so it can be a program name with args.
5444 set dummy $ac_prog; ac_word=$2
5445 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5446 $as_echo_n "checking for $ac_word... " >&6; }
5447 if test "${ac_cv_prog_LPQ+set}" = set; then
5448 $as_echo_n "(cached) " >&6
5449 else
5450 if test -n "$LPQ"; then
5451 ac_cv_prog_LPQ="$LPQ" # Let the user override the test.
5452 else
5453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5454 for as_dir in $PATH
5456 IFS=$as_save_IFS
5457 test -z "$as_dir" && as_dir=.
5458 for ac_exec_ext in '' $ac_executable_extensions; do
5459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5460 ac_cv_prog_LPQ="$ac_prog"
5461 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5462 break 2
5464 done
5465 done
5466 IFS=$as_save_IFS
5470 LPQ=$ac_cv_prog_LPQ
5471 if test -n "$LPQ"; then
5472 { $as_echo "$as_me:$LINENO: result: $LPQ" >&5
5473 $as_echo "$LPQ" >&6; }
5474 else
5475 { $as_echo "$as_me:$LINENO: result: no" >&5
5476 $as_echo "no" >&6; }
5480 test -n "$LPQ" && break
5481 done
5483 test -n "$LPQ" || LPR=
5485 if test -n "$LPR"; then
5486 PSPRINT="$LPR"
5487 elif test -n "$LP"; then
5488 PSPRINT="$LP"
5492 { $as_echo "$as_me:$LINENO: checking for command to use for printing PostScript files" >&5
5493 $as_echo_n "checking for command to use for printing PostScript files... " >&6; }
5494 { $as_echo "$as_me:$LINENO: result: $PSPRINT" >&5
5495 $as_echo "$PSPRINT" >&6; }
5497 # Figure out DVIPRINT from PSPRINT.
5498 { $as_echo "$as_me:$LINENO: checking for command to use for printing dvi files" >&5
5499 $as_echo_n "checking for command to use for printing dvi files... " >&6; }
5500 if test -n "$PSPRINT" && test -z "$DVIPRINT"; then
5501 if test "x$PSPRINT" = "xlpr"; then
5502 DVIPRINT="lpr -d"
5503 else
5504 DVIPRINT="$PSPRINT"
5508 { $as_echo "$as_me:$LINENO: result: $DVIPRINT" >&5
5509 $as_echo "$DVIPRINT" >&6; }
5510 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5511 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5512 if test "${ac_cv_path_GREP+set}" = set; then
5513 $as_echo_n "(cached) " >&6
5514 else
5515 if test -z "$GREP"; then
5516 ac_path_GREP_found=false
5517 # Loop through the user's path and test for each of PROGNAME-LIST
5518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5519 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5521 IFS=$as_save_IFS
5522 test -z "$as_dir" && as_dir=.
5523 for ac_prog in grep ggrep; do
5524 for ac_exec_ext in '' $ac_executable_extensions; do
5525 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5526 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5527 # Check for GNU ac_path_GREP and select it if it is found.
5528 # Check for GNU $ac_path_GREP
5529 case `"$ac_path_GREP" --version 2>&1` in
5530 *GNU*)
5531 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5533 ac_count=0
5534 $as_echo_n 0123456789 >"conftest.in"
5535 while :
5537 cat "conftest.in" "conftest.in" >"conftest.tmp"
5538 mv "conftest.tmp" "conftest.in"
5539 cp "conftest.in" "conftest.nl"
5540 $as_echo 'GREP' >> "conftest.nl"
5541 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5542 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5543 ac_count=`expr $ac_count + 1`
5544 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5545 # Best one so far, save it but keep looking for a better one
5546 ac_cv_path_GREP="$ac_path_GREP"
5547 ac_path_GREP_max=$ac_count
5549 # 10*(2^10) chars as input seems more than enough
5550 test $ac_count -gt 10 && break
5551 done
5552 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5553 esac
5555 $ac_path_GREP_found && break 3
5556 done
5557 done
5558 done
5559 IFS=$as_save_IFS
5560 if test -z "$ac_cv_path_GREP"; then
5561 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5562 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5563 { (exit 1); exit 1; }; }
5565 else
5566 ac_cv_path_GREP=$GREP
5570 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5571 $as_echo "$ac_cv_path_GREP" >&6; }
5572 GREP="$ac_cv_path_GREP"
5575 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
5576 $as_echo_n "checking for egrep... " >&6; }
5577 if test "${ac_cv_path_EGREP+set}" = set; then
5578 $as_echo_n "(cached) " >&6
5579 else
5580 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5581 then ac_cv_path_EGREP="$GREP -E"
5582 else
5583 if test -z "$EGREP"; then
5584 ac_path_EGREP_found=false
5585 # Loop through the user's path and test for each of PROGNAME-LIST
5586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5587 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5589 IFS=$as_save_IFS
5590 test -z "$as_dir" && as_dir=.
5591 for ac_prog in egrep; do
5592 for ac_exec_ext in '' $ac_executable_extensions; do
5593 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5594 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5595 # Check for GNU ac_path_EGREP and select it if it is found.
5596 # Check for GNU $ac_path_EGREP
5597 case `"$ac_path_EGREP" --version 2>&1` in
5598 *GNU*)
5599 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5601 ac_count=0
5602 $as_echo_n 0123456789 >"conftest.in"
5603 while :
5605 cat "conftest.in" "conftest.in" >"conftest.tmp"
5606 mv "conftest.tmp" "conftest.in"
5607 cp "conftest.in" "conftest.nl"
5608 $as_echo 'EGREP' >> "conftest.nl"
5609 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5610 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5611 ac_count=`expr $ac_count + 1`
5612 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5613 # Best one so far, save it but keep looking for a better one
5614 ac_cv_path_EGREP="$ac_path_EGREP"
5615 ac_path_EGREP_max=$ac_count
5617 # 10*(2^10) chars as input seems more than enough
5618 test $ac_count -gt 10 && break
5619 done
5620 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5621 esac
5623 $ac_path_EGREP_found && break 3
5624 done
5625 done
5626 done
5627 IFS=$as_save_IFS
5628 if test -z "$ac_cv_path_EGREP"; then
5629 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5630 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5631 { (exit 1); exit 1; }; }
5633 else
5634 ac_cv_path_EGREP=$EGREP
5639 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5640 $as_echo "$ac_cv_path_EGREP" >&6; }
5641 EGREP="$ac_cv_path_EGREP"
5644 # Extract the first word of "perl", so it can be a program name with args.
5645 set dummy perl; ac_word=$2
5646 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5647 $as_echo_n "checking for $ac_word... " >&6; }
5648 if test "${ac_cv_path_PERLPATH+set}" = set; then
5649 $as_echo_n "(cached) " >&6
5650 else
5651 case $PERLPATH in
5652 [\\/]* | ?:[\\/]*)
5653 ac_cv_path_PERLPATH="$PERLPATH" # Let the user override the test with a path.
5656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5657 for as_dir in $PATH
5659 IFS=$as_save_IFS
5660 test -z "$as_dir" && as_dir=.
5661 for ac_exec_ext in '' $ac_executable_extensions; do
5662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5663 ac_cv_path_PERLPATH="$as_dir/$ac_word$ac_exec_ext"
5664 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5665 break 2
5667 done
5668 done
5669 IFS=$as_save_IFS
5671 test -z "$ac_cv_path_PERLPATH" && ac_cv_path_PERLPATH="/usr/bin/perl"
5673 esac
5675 PERLPATH=$ac_cv_path_PERLPATH
5676 if test -n "$PERLPATH"; then
5677 { $as_echo "$as_me:$LINENO: result: $PERLPATH" >&5
5678 $as_echo "$PERLPATH" >&6; }
5679 else
5680 { $as_echo "$as_me:$LINENO: result: no" >&5
5681 $as_echo "no" >&6; }
5685 for ac_prog in byacc 'bison -y'
5687 # Extract the first word of "$ac_prog", so it can be a program name with args.
5688 set dummy $ac_prog; ac_word=$2
5689 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5690 $as_echo_n "checking for $ac_word... " >&6; }
5691 if test "${ac_cv_prog_YACC+set}" = set; then
5692 $as_echo_n "(cached) " >&6
5693 else
5694 if test -n "$YACC"; then
5695 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5696 else
5697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5698 for as_dir in $PATH
5700 IFS=$as_save_IFS
5701 test -z "$as_dir" && as_dir=.
5702 for ac_exec_ext in '' $ac_executable_extensions; do
5703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5704 ac_cv_prog_YACC="$ac_prog"
5705 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5706 break 2
5708 done
5709 done
5710 IFS=$as_save_IFS
5714 YACC=$ac_cv_prog_YACC
5715 if test -n "$YACC"; then
5716 { $as_echo "$as_me:$LINENO: result: $YACC" >&5
5717 $as_echo "$YACC" >&6; }
5718 else
5719 { $as_echo "$as_me:$LINENO: result: no" >&5
5720 $as_echo "no" >&6; }
5724 test -n "$YACC" && break
5725 done
5726 test -n "$YACC" || YACC="yacc"
5728 missing=
5729 # Extract the first word of "makeinfo", so it can be a program name with args.
5730 set dummy makeinfo; ac_word=$2
5731 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5732 $as_echo_n "checking for $ac_word... " >&6; }
5733 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
5734 $as_echo_n "(cached) " >&6
5735 else
5736 if test -n "$MAKEINFO"; then
5737 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
5738 else
5739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5740 for as_dir in $PATH
5742 IFS=$as_save_IFS
5743 test -z "$as_dir" && as_dir=.
5744 for ac_exec_ext in '' $ac_executable_extensions; do
5745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5746 ac_cv_prog_MAKEINFO="makeinfo"
5747 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5748 break 2
5750 done
5751 done
5752 IFS=$as_save_IFS
5756 MAKEINFO=$ac_cv_prog_MAKEINFO
5757 if test -n "$MAKEINFO"; then
5758 { $as_echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5759 $as_echo "$MAKEINFO" >&6; }
5760 else
5761 { $as_echo "$as_me:$LINENO: result: no" >&5
5762 $as_echo "no" >&6; }
5766 if test -z "$MAKEINFO"; then
5767 missing="\`makeinfo' is missing."
5768 else
5769 { $as_echo "$as_me:$LINENO: checking for makeinfo version" >&5
5770 $as_echo_n "checking for makeinfo version... " >&6; }
5771 # We need an additional level of quoting to make sed's regexps work.
5772 makeinfo_version=`$MAKEINFO --version 2>&1 \
5773 | sed -e 's/^.* \([^ ][^ ]*\)$/\1/' -e '1q'`
5774 { $as_echo "$as_me:$LINENO: result: $makeinfo_version" >&5
5775 $as_echo "$makeinfo_version" >&6; }
5776 # Consider only the first two numbers in version number string.
5777 makeinfo_version_major=`IFS=.; set x $makeinfo_version; echo 0${2}`
5778 makeinfo_version_minor=`IFS=.; set x $makeinfo_version; echo 0${3}`
5779 makeinfo_version_numeric=`
5780 expr ${makeinfo_version_major}000 \+ ${makeinfo_version_minor}`
5781 if test $makeinfo_version_numeric -lt 4008; then
5782 missing="\`makeinfo' is too old."
5786 if test -n "$missing"; then
5787 infofile=doc/groff.info
5788 test -f ${infofile} || infofile=${srcdir}/${infofile}
5789 if test ! -f ${infofile} \
5790 || test ${srcdir}/doc/groff.texinfo -nt ${infofile}; then
5791 { { $as_echo "$as_me:$LINENO: error: $missing
5792 Get the \`texinfo' package version 4.8 or newer." >&5
5793 $as_echo "$as_me: error: $missing
5794 Get the \`texinfo' package version 4.8 or newer." >&2;}
5795 { (exit 1); exit 1; }; }
5796 else
5797 { $as_echo "$as_me:$LINENO: WARNING: $missing
5798 Get the \`texinfo' package version 4.8 or newer if you want to convert
5799 \`groff.texinfo' into a PDF or HTML document." >&5
5800 $as_echo "$as_me: WARNING: $missing
5801 Get the \`texinfo' package version 4.8 or newer if you want to convert
5802 \`groff.texinfo' into a PDF or HTML document." >&2;}
5806 if test -n "$ac_tool_prefix"; then
5807 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5808 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5809 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5810 $as_echo_n "checking for $ac_word... " >&6; }
5811 if test "${ac_cv_prog_RANLIB+set}" = set; then
5812 $as_echo_n "(cached) " >&6
5813 else
5814 if test -n "$RANLIB"; then
5815 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5816 else
5817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5818 for as_dir in $PATH
5820 IFS=$as_save_IFS
5821 test -z "$as_dir" && as_dir=.
5822 for ac_exec_ext in '' $ac_executable_extensions; do
5823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5824 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5825 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5826 break 2
5828 done
5829 done
5830 IFS=$as_save_IFS
5834 RANLIB=$ac_cv_prog_RANLIB
5835 if test -n "$RANLIB"; then
5836 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5837 $as_echo "$RANLIB" >&6; }
5838 else
5839 { $as_echo "$as_me:$LINENO: result: no" >&5
5840 $as_echo "no" >&6; }
5845 if test -z "$ac_cv_prog_RANLIB"; then
5846 ac_ct_RANLIB=$RANLIB
5847 # Extract the first word of "ranlib", so it can be a program name with args.
5848 set dummy ranlib; ac_word=$2
5849 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5850 $as_echo_n "checking for $ac_word... " >&6; }
5851 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5852 $as_echo_n "(cached) " >&6
5853 else
5854 if test -n "$ac_ct_RANLIB"; then
5855 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5856 else
5857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5858 for as_dir in $PATH
5860 IFS=$as_save_IFS
5861 test -z "$as_dir" && as_dir=.
5862 for ac_exec_ext in '' $ac_executable_extensions; do
5863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5864 ac_cv_prog_ac_ct_RANLIB="ranlib"
5865 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5866 break 2
5868 done
5869 done
5870 IFS=$as_save_IFS
5874 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5875 if test -n "$ac_ct_RANLIB"; then
5876 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5877 $as_echo "$ac_ct_RANLIB" >&6; }
5878 else
5879 { $as_echo "$as_me:$LINENO: result: no" >&5
5880 $as_echo "no" >&6; }
5883 if test "x$ac_ct_RANLIB" = x; then
5884 RANLIB=":"
5885 else
5886 case $cross_compiling:$ac_tool_warned in
5887 yes:)
5888 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5889 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5890 ac_tool_warned=yes ;;
5891 esac
5892 RANLIB=$ac_ct_RANLIB
5894 else
5895 RANLIB="$ac_cv_prog_RANLIB"
5898 ac_aux_dir=
5899 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
5900 if test -f "$ac_dir/install-sh"; then
5901 ac_aux_dir=$ac_dir
5902 ac_install_sh="$ac_aux_dir/install-sh -c"
5903 break
5904 elif test -f "$ac_dir/install.sh"; then
5905 ac_aux_dir=$ac_dir
5906 ac_install_sh="$ac_aux_dir/install.sh -c"
5907 break
5908 elif test -f "$ac_dir/shtool"; then
5909 ac_aux_dir=$ac_dir
5910 ac_install_sh="$ac_aux_dir/shtool install -c"
5911 break
5913 done
5914 if test -z "$ac_aux_dir"; then
5915 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
5916 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
5917 { (exit 1); exit 1; }; }
5920 # These three variables are undocumented and unsupported,
5921 # and are intended to be withdrawn in a future Autoconf release.
5922 # They can cause serious problems if a builder's source tree is in a directory
5923 # whose full name contains unusual characters.
5924 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
5925 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
5926 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
5930 ac_dir=`cd $ac_aux_dir; pwd`
5931 ac_install_sh="$ac_dir/install-sh -c"
5932 for ac_prog in install-info
5934 # Extract the first word of "$ac_prog", so it can be a program name with args.
5935 set dummy $ac_prog; ac_word=$2
5936 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5937 $as_echo_n "checking for $ac_word... " >&6; }
5938 if test "${ac_cv_prog_INSTALL_INFO+set}" = set; then
5939 $as_echo_n "(cached) " >&6
5940 else
5941 if test -n "$INSTALL_INFO"; then
5942 ac_cv_prog_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test.
5943 else
5944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5945 for as_dir in $PATH
5947 IFS=$as_save_IFS
5948 test -z "$as_dir" && as_dir=.
5949 for ac_exec_ext in '' $ac_executable_extensions; do
5950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5951 ac_cv_prog_INSTALL_INFO="$ac_prog"
5952 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5953 break 2
5955 done
5956 done
5957 IFS=$as_save_IFS
5961 INSTALL_INFO=$ac_cv_prog_INSTALL_INFO
5962 if test -n "$INSTALL_INFO"; then
5963 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5964 $as_echo "$INSTALL_INFO" >&6; }
5965 else
5966 { $as_echo "$as_me:$LINENO: result: no" >&5
5967 $as_echo "no" >&6; }
5971 test -n "$INSTALL_INFO" && break
5972 done
5973 test -n "$INSTALL_INFO" || INSTALL_INFO=":"
5975 # Find a good install program. We prefer a C program (faster),
5976 # so one script is as good as another. But avoid the broken or
5977 # incompatible versions:
5978 # SysV /etc/install, /usr/sbin/install
5979 # SunOS /usr/etc/install
5980 # IRIX /sbin/install
5981 # AIX /bin/install
5982 # AmigaOS /C/install, which installs bootblocks on floppy discs
5983 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5984 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5985 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5986 # OS/2's system install, which has a completely different semantic
5987 # ./install, which can be erroneously created by make from ./install.sh.
5988 # Reject install programs that cannot install multiple files.
5989 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5990 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5991 if test -z "$INSTALL"; then
5992 if test "${ac_cv_path_install+set}" = set; then
5993 $as_echo_n "(cached) " >&6
5994 else
5995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5996 for as_dir in $PATH
5998 IFS=$as_save_IFS
5999 test -z "$as_dir" && as_dir=.
6000 # Account for people who put trailing slashes in PATH elements.
6001 case $as_dir/ in
6002 ./ | .// | /cC/* | \
6003 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6004 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6005 /usr/ucb/* ) ;;
6007 # OSF1 and SCO ODT 3.0 have their own names for install.
6008 # Don't use installbsd from OSF since it installs stuff as root
6009 # by default.
6010 for ac_prog in ginstall scoinst install; do
6011 for ac_exec_ext in '' $ac_executable_extensions; do
6012 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
6013 if test $ac_prog = install &&
6014 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6015 # AIX install. It has an incompatible calling convention.
6017 elif test $ac_prog = install &&
6018 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6019 # program-specific install script used by HP pwplus--don't use.
6021 else
6022 rm -rf conftest.one conftest.two conftest.dir
6023 echo one > conftest.one
6024 echo two > conftest.two
6025 mkdir conftest.dir
6026 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
6027 test -s conftest.one && test -s conftest.two &&
6028 test -s conftest.dir/conftest.one &&
6029 test -s conftest.dir/conftest.two
6030 then
6031 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6032 break 3
6036 done
6037 done
6039 esac
6041 done
6042 IFS=$as_save_IFS
6044 rm -rf conftest.one conftest.two conftest.dir
6047 if test "${ac_cv_path_install+set}" = set; then
6048 INSTALL=$ac_cv_path_install
6049 else
6050 # As a last resort, use the slow shell script. Don't cache a
6051 # value for INSTALL within a source directory, because that will
6052 # break other packages using the cache if that directory is
6053 # removed, or if the value is a relative name.
6054 INSTALL=$ac_install_sh
6057 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
6058 $as_echo "$INSTALL" >&6; }
6060 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6061 # It thinks the first close brace ends the variable substitution.
6062 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6064 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6066 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6068 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
6069 $as_echo_n "checking whether ln -s works... " >&6; }
6070 LN_S=$as_ln_s
6071 if test "$LN_S" = "ln -s"; then
6072 { $as_echo "$as_me:$LINENO: result: yes" >&5
6073 $as_echo "yes" >&6; }
6074 else
6075 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6076 $as_echo "no, using $LN_S" >&6; }
6080 # use a dummy substitution if no csh hack is necessary to avoid errors
6081 # with non-GNU sed programs
6082 { $as_echo "$as_me:$LINENO: checking for csh hash hack" >&5
6083 $as_echo_n "checking for csh hash hack... " >&6; }
6085 cat <<EOF >conftest.sh
6086 #! /bin/sh
6087 true || exit 0
6088 export PATH || exit 0
6089 exit 1
6092 chmod +x conftest.sh
6093 if echo ./conftest.sh | (csh >/dev/null 2>&1) >/dev/null 2>&1; then
6094 { $as_echo "$as_me:$LINENO: result: yes" >&5
6095 $as_echo "yes" >&6; }
6096 SH_SCRIPT_SED_CMD='1s/.*/:/'
6097 else
6098 { $as_echo "$as_me:$LINENO: result: no" >&5
6099 $as_echo "no" >&6; }
6100 SH_SCRIPT_SED_CMD='1s/a/a/'
6102 rm -f conftest.sh
6105 # checks for headers
6106 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6107 $as_echo_n "checking for ANSI C header files... " >&6; }
6108 if test "${ac_cv_header_stdc+set}" = set; then
6109 $as_echo_n "(cached) " >&6
6110 else
6111 cat >conftest.$ac_ext <<_ACEOF
6112 /* confdefs.h. */
6113 _ACEOF
6114 cat confdefs.h >>conftest.$ac_ext
6115 cat >>conftest.$ac_ext <<_ACEOF
6116 /* end confdefs.h. */
6117 #include <stdlib.h>
6118 #include <stdarg.h>
6119 #include <string.h>
6120 #include <float.h>
6123 main ()
6127 return 0;
6129 _ACEOF
6130 rm -f conftest.$ac_objext
6131 if { (ac_try="$ac_compile"
6132 case "(($ac_try" in
6133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6134 *) ac_try_echo=$ac_try;;
6135 esac
6136 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6137 $as_echo "$ac_try_echo") >&5
6138 (eval "$ac_compile") 2>conftest.er1
6139 ac_status=$?
6140 grep -v '^ *+' conftest.er1 >conftest.err
6141 rm -f conftest.er1
6142 cat conftest.err >&5
6143 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6144 (exit $ac_status); } && {
6145 test -z "$ac_c_werror_flag" ||
6146 test ! -s conftest.err
6147 } && test -s conftest.$ac_objext; then
6148 ac_cv_header_stdc=yes
6149 else
6150 $as_echo "$as_me: failed program was:" >&5
6151 sed 's/^/| /' conftest.$ac_ext >&5
6153 ac_cv_header_stdc=no
6156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6158 if test $ac_cv_header_stdc = yes; then
6159 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6160 cat >conftest.$ac_ext <<_ACEOF
6161 /* confdefs.h. */
6162 _ACEOF
6163 cat confdefs.h >>conftest.$ac_ext
6164 cat >>conftest.$ac_ext <<_ACEOF
6165 /* end confdefs.h. */
6166 #include <string.h>
6168 _ACEOF
6169 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6170 $EGREP "memchr" >/dev/null 2>&1; then
6172 else
6173 ac_cv_header_stdc=no
6175 rm -f conftest*
6179 if test $ac_cv_header_stdc = yes; then
6180 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6181 cat >conftest.$ac_ext <<_ACEOF
6182 /* confdefs.h. */
6183 _ACEOF
6184 cat confdefs.h >>conftest.$ac_ext
6185 cat >>conftest.$ac_ext <<_ACEOF
6186 /* end confdefs.h. */
6187 #include <stdlib.h>
6189 _ACEOF
6190 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6191 $EGREP "free" >/dev/null 2>&1; then
6193 else
6194 ac_cv_header_stdc=no
6196 rm -f conftest*
6200 if test $ac_cv_header_stdc = yes; then
6201 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6202 if test "$cross_compiling" = yes; then
6204 else
6205 cat >conftest.$ac_ext <<_ACEOF
6206 /* confdefs.h. */
6207 _ACEOF
6208 cat confdefs.h >>conftest.$ac_ext
6209 cat >>conftest.$ac_ext <<_ACEOF
6210 /* end confdefs.h. */
6211 #include <ctype.h>
6212 #include <stdlib.h>
6213 #if ((' ' & 0x0FF) == 0x020)
6214 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6215 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6216 #else
6217 # define ISLOWER(c) \
6218 (('a' <= (c) && (c) <= 'i') \
6219 || ('j' <= (c) && (c) <= 'r') \
6220 || ('s' <= (c) && (c) <= 'z'))
6221 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6222 #endif
6224 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6226 main ()
6228 int i;
6229 for (i = 0; i < 256; i++)
6230 if (XOR (islower (i), ISLOWER (i))
6231 || toupper (i) != TOUPPER (i))
6232 return 2;
6233 return 0;
6235 _ACEOF
6236 rm -f conftest$ac_exeext
6237 if { (ac_try="$ac_link"
6238 case "(($ac_try" in
6239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6240 *) ac_try_echo=$ac_try;;
6241 esac
6242 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6243 $as_echo "$ac_try_echo") >&5
6244 (eval "$ac_link") 2>&5
6245 ac_status=$?
6246 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6247 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6248 { (case "(($ac_try" in
6249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6250 *) ac_try_echo=$ac_try;;
6251 esac
6252 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6253 $as_echo "$ac_try_echo") >&5
6254 (eval "$ac_try") 2>&5
6255 ac_status=$?
6256 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257 (exit $ac_status); }; }; then
6259 else
6260 $as_echo "$as_me: program exited with status $ac_status" >&5
6261 $as_echo "$as_me: failed program was:" >&5
6262 sed 's/^/| /' conftest.$ac_ext >&5
6264 ( exit $ac_status )
6265 ac_cv_header_stdc=no
6267 rm -rf conftest.dSYM
6268 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6274 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6275 $as_echo "$ac_cv_header_stdc" >&6; }
6276 if test $ac_cv_header_stdc = yes; then
6278 cat >>confdefs.h <<\_ACEOF
6279 #define STDC_HEADERS 1
6280 _ACEOF
6284 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6294 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6295 inttypes.h stdint.h unistd.h
6297 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6298 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6299 $as_echo_n "checking for $ac_header... " >&6; }
6300 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6301 $as_echo_n "(cached) " >&6
6302 else
6303 cat >conftest.$ac_ext <<_ACEOF
6304 /* confdefs.h. */
6305 _ACEOF
6306 cat confdefs.h >>conftest.$ac_ext
6307 cat >>conftest.$ac_ext <<_ACEOF
6308 /* end confdefs.h. */
6309 $ac_includes_default
6311 #include <$ac_header>
6312 _ACEOF
6313 rm -f conftest.$ac_objext
6314 if { (ac_try="$ac_compile"
6315 case "(($ac_try" in
6316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6317 *) ac_try_echo=$ac_try;;
6318 esac
6319 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6320 $as_echo "$ac_try_echo") >&5
6321 (eval "$ac_compile") 2>conftest.er1
6322 ac_status=$?
6323 grep -v '^ *+' conftest.er1 >conftest.err
6324 rm -f conftest.er1
6325 cat conftest.err >&5
6326 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6327 (exit $ac_status); } && {
6328 test -z "$ac_c_werror_flag" ||
6329 test ! -s conftest.err
6330 } && test -s conftest.$ac_objext; then
6331 eval "$as_ac_Header=yes"
6332 else
6333 $as_echo "$as_me: failed program was:" >&5
6334 sed 's/^/| /' conftest.$ac_ext >&5
6336 eval "$as_ac_Header=no"
6339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6341 ac_res=`eval 'as_val=${'$as_ac_Header'}
6342 $as_echo "$as_val"'`
6343 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6344 $as_echo "$ac_res" >&6; }
6345 as_val=`eval 'as_val=${'$as_ac_Header'}
6346 $as_echo "$as_val"'`
6347 if test "x$as_val" = x""yes; then
6348 cat >>confdefs.h <<_ACEOF
6349 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6350 _ACEOF
6354 done
6369 for ac_header in stddef.h stdlib.h unistd.h dirent.h limits.h sys/dir.h \
6370 string.h strings.h math.h sys/time.h direct.h process.h
6372 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6373 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6374 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6375 $as_echo_n "checking for $ac_header... " >&6; }
6376 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6377 $as_echo_n "(cached) " >&6
6379 ac_res=`eval 'as_val=${'$as_ac_Header'}
6380 $as_echo "$as_val"'`
6381 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6382 $as_echo "$ac_res" >&6; }
6383 else
6384 # Is the header compilable?
6385 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6386 $as_echo_n "checking $ac_header usability... " >&6; }
6387 cat >conftest.$ac_ext <<_ACEOF
6388 /* confdefs.h. */
6389 _ACEOF
6390 cat confdefs.h >>conftest.$ac_ext
6391 cat >>conftest.$ac_ext <<_ACEOF
6392 /* end confdefs.h. */
6393 $ac_includes_default
6394 #include <$ac_header>
6395 _ACEOF
6396 rm -f conftest.$ac_objext
6397 if { (ac_try="$ac_compile"
6398 case "(($ac_try" in
6399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6400 *) ac_try_echo=$ac_try;;
6401 esac
6402 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6403 $as_echo "$ac_try_echo") >&5
6404 (eval "$ac_compile") 2>conftest.er1
6405 ac_status=$?
6406 grep -v '^ *+' conftest.er1 >conftest.err
6407 rm -f conftest.er1
6408 cat conftest.err >&5
6409 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6410 (exit $ac_status); } && {
6411 test -z "$ac_c_werror_flag" ||
6412 test ! -s conftest.err
6413 } && test -s conftest.$ac_objext; then
6414 ac_header_compiler=yes
6415 else
6416 $as_echo "$as_me: failed program was:" >&5
6417 sed 's/^/| /' conftest.$ac_ext >&5
6419 ac_header_compiler=no
6422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6423 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6424 $as_echo "$ac_header_compiler" >&6; }
6426 # Is the header present?
6427 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6428 $as_echo_n "checking $ac_header presence... " >&6; }
6429 cat >conftest.$ac_ext <<_ACEOF
6430 /* confdefs.h. */
6431 _ACEOF
6432 cat confdefs.h >>conftest.$ac_ext
6433 cat >>conftest.$ac_ext <<_ACEOF
6434 /* end confdefs.h. */
6435 #include <$ac_header>
6436 _ACEOF
6437 if { (ac_try="$ac_cpp conftest.$ac_ext"
6438 case "(($ac_try" in
6439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6440 *) ac_try_echo=$ac_try;;
6441 esac
6442 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6443 $as_echo "$ac_try_echo") >&5
6444 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6445 ac_status=$?
6446 grep -v '^ *+' conftest.er1 >conftest.err
6447 rm -f conftest.er1
6448 cat conftest.err >&5
6449 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6450 (exit $ac_status); } >/dev/null && {
6451 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6452 test ! -s conftest.err
6453 }; then
6454 ac_header_preproc=yes
6455 else
6456 $as_echo "$as_me: failed program was:" >&5
6457 sed 's/^/| /' conftest.$ac_ext >&5
6459 ac_header_preproc=no
6462 rm -f conftest.err conftest.$ac_ext
6463 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6464 $as_echo "$ac_header_preproc" >&6; }
6466 # So? What about this header?
6467 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6468 yes:no: )
6469 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6470 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6471 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6472 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6473 ac_header_preproc=yes
6475 no:yes:* )
6476 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6477 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6478 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6479 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6480 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6481 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6482 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6483 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6484 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6485 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6486 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6487 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6490 esac
6491 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6492 $as_echo_n "checking for $ac_header... " >&6; }
6493 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6494 $as_echo_n "(cached) " >&6
6495 else
6496 eval "$as_ac_Header=\$ac_header_preproc"
6498 ac_res=`eval 'as_val=${'$as_ac_Header'}
6499 $as_echo "$as_val"'`
6500 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6501 $as_echo "$ac_res" >&6; }
6504 as_val=`eval 'as_val=${'$as_ac_Header'}
6505 $as_echo "$as_val"'`
6506 if test "x$as_val" = x""yes; then
6507 cat >>confdefs.h <<_ACEOF
6508 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6509 _ACEOF
6513 done
6515 { $as_echo "$as_me:$LINENO: checking for ISC 3.x or 4.x" >&5
6516 $as_echo_n "checking for ISC 3.x or 4.x... " >&6; }
6517 if grep '[34]\.' /usr/options/cb.name >/dev/null 2>&1
6518 then
6519 { $as_echo "$as_me:$LINENO: result: yes" >&5
6520 $as_echo "yes" >&6; }
6522 cat >>confdefs.h <<\_ACEOF
6523 #define _SYSV3 1
6524 _ACEOF
6526 else
6527 { $as_echo "$as_me:$LINENO: result: no" >&5
6528 $as_echo "no" >&6; }
6530 { $as_echo "$as_me:$LINENO: checking whether -D_POSIX_SOURCE is necessary" >&5
6531 $as_echo_n "checking whether -D_POSIX_SOURCE is necessary... " >&6; }
6532 ac_ext=cpp
6533 ac_cpp='$CXXCPP $CPPFLAGS'
6534 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6535 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6536 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6538 cat >conftest.$ac_ext <<_ACEOF
6540 /* confdefs.h. */
6541 _ACEOF
6542 cat confdefs.h >>conftest.$ac_ext
6543 cat >>conftest.$ac_ext <<_ACEOF
6544 /* end confdefs.h. */
6547 #include <stdio.h>
6548 extern "C" { void fileno(int); }
6552 main ()
6556 return 0;
6559 _ACEOF
6560 rm -f conftest.$ac_objext
6561 if { (ac_try="$ac_compile"
6562 case "(($ac_try" in
6563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6564 *) ac_try_echo=$ac_try;;
6565 esac
6566 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6567 $as_echo "$ac_try_echo") >&5
6568 (eval "$ac_compile") 2>conftest.er1
6569 ac_status=$?
6570 grep -v '^ *+' conftest.er1 >conftest.err
6571 rm -f conftest.er1
6572 cat conftest.err >&5
6573 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6574 (exit $ac_status); } && {
6575 test -z "$ac_cxx_werror_flag" ||
6576 test ! -s conftest.err
6577 } && test -s conftest.$ac_objext; then
6578 { $as_echo "$as_me:$LINENO: result: yes" >&5
6579 $as_echo "yes" >&6; }
6581 cat >>confdefs.h <<\_ACEOF
6582 #define _POSIX_SOURCE 1
6583 _ACEOF
6585 else
6586 $as_echo "$as_me: failed program was:" >&5
6587 sed 's/^/| /' conftest.$ac_ext >&5
6589 { $as_echo "$as_me:$LINENO: result: no" >&5
6590 $as_echo "no" >&6; }
6593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6594 ac_ext=c
6595 ac_cpp='$CPP $CPPFLAGS'
6596 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6597 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6598 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6601 # checks for header stuff
6602 ac_ext=cpp
6603 ac_cpp='$CXXCPP $CPPFLAGS'
6604 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6605 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6606 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6608 { $as_echo "$as_me:$LINENO: checking for return type of srand" >&5
6609 $as_echo_n "checking for return type of srand... " >&6; }
6610 cat >conftest.$ac_ext <<_ACEOF
6612 /* confdefs.h. */
6613 _ACEOF
6614 cat confdefs.h >>conftest.$ac_ext
6615 cat >>conftest.$ac_ext <<_ACEOF
6616 /* end confdefs.h. */
6619 #include <stdlib.h>
6620 extern "C" { void srand(unsigned int); }
6624 main ()
6628 return 0;
6631 _ACEOF
6632 rm -f conftest.$ac_objext
6633 if { (ac_try="$ac_compile"
6634 case "(($ac_try" in
6635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6636 *) ac_try_echo=$ac_try;;
6637 esac
6638 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6639 $as_echo "$ac_try_echo") >&5
6640 (eval "$ac_compile") 2>conftest.er1
6641 ac_status=$?
6642 grep -v '^ *+' conftest.er1 >conftest.err
6643 rm -f conftest.er1
6644 cat conftest.err >&5
6645 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6646 (exit $ac_status); } && {
6647 test -z "$ac_cxx_werror_flag" ||
6648 test ! -s conftest.err
6649 } && test -s conftest.$ac_objext; then
6650 { $as_echo "$as_me:$LINENO: result: void" >&5
6651 $as_echo "void" >&6; }
6653 cat >>confdefs.h <<\_ACEOF
6654 #define RET_TYPE_SRAND_IS_VOID 1
6655 _ACEOF
6657 else
6658 $as_echo "$as_me: failed program was:" >&5
6659 sed 's/^/| /' conftest.$ac_ext >&5
6661 { $as_echo "$as_me:$LINENO: result: int" >&5
6662 $as_echo "int" >&6; }
6665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6666 ac_ext=c
6667 ac_cpp='$CPP $CPPFLAGS'
6668 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6669 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6670 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6672 { $as_echo "$as_me:$LINENO: checking whether gettimeofday must be declared" >&5
6673 $as_echo_n "checking whether gettimeofday must be declared... " >&6; }
6674 ac_ext=cpp
6675 ac_cpp='$CXXCPP $CPPFLAGS'
6676 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6677 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6678 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6680 if test "${groff_cv_decl_needed_gettimeofday+set}" = set; then
6681 $as_echo_n "(cached) " >&6
6682 else
6683 cat >conftest.$ac_ext <<_ACEOF
6685 /* confdefs.h. */
6686 _ACEOF
6687 cat confdefs.h >>conftest.$ac_ext
6688 cat >>conftest.$ac_ext <<_ACEOF
6689 /* end confdefs.h. */
6692 #include <stdio.h>
6693 #ifdef HAVE_STRING_H
6694 #include <string.h>
6695 #endif
6696 #ifdef HAVE_STRINGS_H
6697 #include <strings.h>
6698 #endif
6699 #ifdef HAVE_STDLIB_H
6700 #include <stdlib.h>
6701 #endif
6702 #ifdef HAVE_SYS_TIME_H
6703 #include <sys/time.h>
6704 #endif
6705 #ifdef HAVE_UNISTD_H
6706 #include <unistd.h>
6707 #endif
6708 #ifdef HAVE_MATH_H
6709 #include <math.h>
6710 #endif
6714 main ()
6718 #ifndef gettimeofday
6719 char *p = (char *) gettimeofday;
6720 #endif
6724 return 0;
6727 _ACEOF
6728 rm -f conftest.$ac_objext
6729 if { (ac_try="$ac_compile"
6730 case "(($ac_try" in
6731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6732 *) ac_try_echo=$ac_try;;
6733 esac
6734 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6735 $as_echo "$ac_try_echo") >&5
6736 (eval "$ac_compile") 2>conftest.er1
6737 ac_status=$?
6738 grep -v '^ *+' conftest.er1 >conftest.err
6739 rm -f conftest.er1
6740 cat conftest.err >&5
6741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6742 (exit $ac_status); } && {
6743 test -z "$ac_cxx_werror_flag" ||
6744 test ! -s conftest.err
6745 } && test -s conftest.$ac_objext; then
6746 groff_cv_decl_needed_gettimeofday=no
6747 else
6748 $as_echo "$as_me: failed program was:" >&5
6749 sed 's/^/| /' conftest.$ac_ext >&5
6751 groff_cv_decl_needed_gettimeofday=yes
6754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6757 { $as_echo "$as_me:$LINENO: result: $groff_cv_decl_needed_gettimeofday" >&5
6758 $as_echo "$groff_cv_decl_needed_gettimeofday" >&6; }
6759 if test $groff_cv_decl_needed_gettimeofday = yes; then
6761 cat >>confdefs.h <<\_ACEOF
6762 #define NEED_DECLARATION_GETTIMEOFDAY 1
6763 _ACEOF
6766 ac_ext=c
6767 ac_cpp='$CPP $CPPFLAGS'
6768 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6769 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6770 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6772 { $as_echo "$as_me:$LINENO: checking whether hypot must be declared" >&5
6773 $as_echo_n "checking whether hypot must be declared... " >&6; }
6774 ac_ext=cpp
6775 ac_cpp='$CXXCPP $CPPFLAGS'
6776 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6777 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6778 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6780 if test "${groff_cv_decl_needed_hypot+set}" = set; then
6781 $as_echo_n "(cached) " >&6
6782 else
6783 cat >conftest.$ac_ext <<_ACEOF
6785 /* confdefs.h. */
6786 _ACEOF
6787 cat confdefs.h >>conftest.$ac_ext
6788 cat >>conftest.$ac_ext <<_ACEOF
6789 /* end confdefs.h. */
6792 #include <stdio.h>
6793 #ifdef HAVE_STRING_H
6794 #include <string.h>
6795 #endif
6796 #ifdef HAVE_STRINGS_H
6797 #include <strings.h>
6798 #endif
6799 #ifdef HAVE_STDLIB_H
6800 #include <stdlib.h>
6801 #endif
6802 #ifdef HAVE_SYS_TIME_H
6803 #include <sys/time.h>
6804 #endif
6805 #ifdef HAVE_UNISTD_H
6806 #include <unistd.h>
6807 #endif
6808 #ifdef HAVE_MATH_H
6809 #include <math.h>
6810 #endif
6814 main ()
6818 #ifndef hypot
6819 char *p = (char *) hypot;
6820 #endif
6824 return 0;
6827 _ACEOF
6828 rm -f conftest.$ac_objext
6829 if { (ac_try="$ac_compile"
6830 case "(($ac_try" in
6831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6832 *) ac_try_echo=$ac_try;;
6833 esac
6834 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6835 $as_echo "$ac_try_echo") >&5
6836 (eval "$ac_compile") 2>conftest.er1
6837 ac_status=$?
6838 grep -v '^ *+' conftest.er1 >conftest.err
6839 rm -f conftest.er1
6840 cat conftest.err >&5
6841 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6842 (exit $ac_status); } && {
6843 test -z "$ac_cxx_werror_flag" ||
6844 test ! -s conftest.err
6845 } && test -s conftest.$ac_objext; then
6846 groff_cv_decl_needed_hypot=no
6847 else
6848 $as_echo "$as_me: failed program was:" >&5
6849 sed 's/^/| /' conftest.$ac_ext >&5
6851 groff_cv_decl_needed_hypot=yes
6854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6857 { $as_echo "$as_me:$LINENO: result: $groff_cv_decl_needed_hypot" >&5
6858 $as_echo "$groff_cv_decl_needed_hypot" >&6; }
6859 if test $groff_cv_decl_needed_hypot = yes; then
6861 cat >>confdefs.h <<\_ACEOF
6862 #define NEED_DECLARATION_HYPOT 1
6863 _ACEOF
6866 ac_ext=c
6867 ac_cpp='$CPP $CPPFLAGS'
6868 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6869 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6870 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6872 { $as_echo "$as_me:$LINENO: checking whether popen must be declared" >&5
6873 $as_echo_n "checking whether popen must be declared... " >&6; }
6874 ac_ext=cpp
6875 ac_cpp='$CXXCPP $CPPFLAGS'
6876 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6877 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6878 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6880 if test "${groff_cv_decl_needed_popen+set}" = set; then
6881 $as_echo_n "(cached) " >&6
6882 else
6883 cat >conftest.$ac_ext <<_ACEOF
6885 /* confdefs.h. */
6886 _ACEOF
6887 cat confdefs.h >>conftest.$ac_ext
6888 cat >>conftest.$ac_ext <<_ACEOF
6889 /* end confdefs.h. */
6892 #include <stdio.h>
6893 #ifdef HAVE_STRING_H
6894 #include <string.h>
6895 #endif
6896 #ifdef HAVE_STRINGS_H
6897 #include <strings.h>
6898 #endif
6899 #ifdef HAVE_STDLIB_H
6900 #include <stdlib.h>
6901 #endif
6902 #ifdef HAVE_SYS_TIME_H
6903 #include <sys/time.h>
6904 #endif
6905 #ifdef HAVE_UNISTD_H
6906 #include <unistd.h>
6907 #endif
6908 #ifdef HAVE_MATH_H
6909 #include <math.h>
6910 #endif
6914 main ()
6918 #ifndef popen
6919 char *p = (char *) popen;
6920 #endif
6924 return 0;
6927 _ACEOF
6928 rm -f conftest.$ac_objext
6929 if { (ac_try="$ac_compile"
6930 case "(($ac_try" in
6931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6932 *) ac_try_echo=$ac_try;;
6933 esac
6934 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6935 $as_echo "$ac_try_echo") >&5
6936 (eval "$ac_compile") 2>conftest.er1
6937 ac_status=$?
6938 grep -v '^ *+' conftest.er1 >conftest.err
6939 rm -f conftest.er1
6940 cat conftest.err >&5
6941 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6942 (exit $ac_status); } && {
6943 test -z "$ac_cxx_werror_flag" ||
6944 test ! -s conftest.err
6945 } && test -s conftest.$ac_objext; then
6946 groff_cv_decl_needed_popen=no
6947 else
6948 $as_echo "$as_me: failed program was:" >&5
6949 sed 's/^/| /' conftest.$ac_ext >&5
6951 groff_cv_decl_needed_popen=yes
6954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6957 { $as_echo "$as_me:$LINENO: result: $groff_cv_decl_needed_popen" >&5
6958 $as_echo "$groff_cv_decl_needed_popen" >&6; }
6959 if test $groff_cv_decl_needed_popen = yes; then
6961 cat >>confdefs.h <<\_ACEOF
6962 #define NEED_DECLARATION_POPEN 1
6963 _ACEOF
6966 ac_ext=c
6967 ac_cpp='$CPP $CPPFLAGS'
6968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6972 { $as_echo "$as_me:$LINENO: checking whether pclose must be declared" >&5
6973 $as_echo_n "checking whether pclose must be declared... " >&6; }
6974 ac_ext=cpp
6975 ac_cpp='$CXXCPP $CPPFLAGS'
6976 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6977 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6978 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6980 if test "${groff_cv_decl_needed_pclose+set}" = set; then
6981 $as_echo_n "(cached) " >&6
6982 else
6983 cat >conftest.$ac_ext <<_ACEOF
6985 /* confdefs.h. */
6986 _ACEOF
6987 cat confdefs.h >>conftest.$ac_ext
6988 cat >>conftest.$ac_ext <<_ACEOF
6989 /* end confdefs.h. */
6992 #include <stdio.h>
6993 #ifdef HAVE_STRING_H
6994 #include <string.h>
6995 #endif
6996 #ifdef HAVE_STRINGS_H
6997 #include <strings.h>
6998 #endif
6999 #ifdef HAVE_STDLIB_H
7000 #include <stdlib.h>
7001 #endif
7002 #ifdef HAVE_SYS_TIME_H
7003 #include <sys/time.h>
7004 #endif
7005 #ifdef HAVE_UNISTD_H
7006 #include <unistd.h>
7007 #endif
7008 #ifdef HAVE_MATH_H
7009 #include <math.h>
7010 #endif
7014 main ()
7018 #ifndef pclose
7019 char *p = (char *) pclose;
7020 #endif
7024 return 0;
7027 _ACEOF
7028 rm -f conftest.$ac_objext
7029 if { (ac_try="$ac_compile"
7030 case "(($ac_try" in
7031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7032 *) ac_try_echo=$ac_try;;
7033 esac
7034 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7035 $as_echo "$ac_try_echo") >&5
7036 (eval "$ac_compile") 2>conftest.er1
7037 ac_status=$?
7038 grep -v '^ *+' conftest.er1 >conftest.err
7039 rm -f conftest.er1
7040 cat conftest.err >&5
7041 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7042 (exit $ac_status); } && {
7043 test -z "$ac_cxx_werror_flag" ||
7044 test ! -s conftest.err
7045 } && test -s conftest.$ac_objext; then
7046 groff_cv_decl_needed_pclose=no
7047 else
7048 $as_echo "$as_me: failed program was:" >&5
7049 sed 's/^/| /' conftest.$ac_ext >&5
7051 groff_cv_decl_needed_pclose=yes
7054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7057 { $as_echo "$as_me:$LINENO: result: $groff_cv_decl_needed_pclose" >&5
7058 $as_echo "$groff_cv_decl_needed_pclose" >&6; }
7059 if test $groff_cv_decl_needed_pclose = yes; then
7061 cat >>confdefs.h <<\_ACEOF
7062 #define NEED_DECLARATION_PCLOSE 1
7063 _ACEOF
7066 ac_ext=c
7067 ac_cpp='$CPP $CPPFLAGS'
7068 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7069 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7070 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7072 { $as_echo "$as_me:$LINENO: checking whether putenv must be declared" >&5
7073 $as_echo_n "checking whether putenv must be declared... " >&6; }
7074 ac_ext=cpp
7075 ac_cpp='$CXXCPP $CPPFLAGS'
7076 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7077 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7078 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7080 if test "${groff_cv_decl_needed_putenv+set}" = set; then
7081 $as_echo_n "(cached) " >&6
7082 else
7083 cat >conftest.$ac_ext <<_ACEOF
7085 /* confdefs.h. */
7086 _ACEOF
7087 cat confdefs.h >>conftest.$ac_ext
7088 cat >>conftest.$ac_ext <<_ACEOF
7089 /* end confdefs.h. */
7092 #include <stdio.h>
7093 #ifdef HAVE_STRING_H
7094 #include <string.h>
7095 #endif
7096 #ifdef HAVE_STRINGS_H
7097 #include <strings.h>
7098 #endif
7099 #ifdef HAVE_STDLIB_H
7100 #include <stdlib.h>
7101 #endif
7102 #ifdef HAVE_SYS_TIME_H
7103 #include <sys/time.h>
7104 #endif
7105 #ifdef HAVE_UNISTD_H
7106 #include <unistd.h>
7107 #endif
7108 #ifdef HAVE_MATH_H
7109 #include <math.h>
7110 #endif
7114 main ()
7118 #ifndef putenv
7119 char *p = (char *) putenv;
7120 #endif
7124 return 0;
7127 _ACEOF
7128 rm -f conftest.$ac_objext
7129 if { (ac_try="$ac_compile"
7130 case "(($ac_try" in
7131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7132 *) ac_try_echo=$ac_try;;
7133 esac
7134 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7135 $as_echo "$ac_try_echo") >&5
7136 (eval "$ac_compile") 2>conftest.er1
7137 ac_status=$?
7138 grep -v '^ *+' conftest.er1 >conftest.err
7139 rm -f conftest.er1
7140 cat conftest.err >&5
7141 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7142 (exit $ac_status); } && {
7143 test -z "$ac_cxx_werror_flag" ||
7144 test ! -s conftest.err
7145 } && test -s conftest.$ac_objext; then
7146 groff_cv_decl_needed_putenv=no
7147 else
7148 $as_echo "$as_me: failed program was:" >&5
7149 sed 's/^/| /' conftest.$ac_ext >&5
7151 groff_cv_decl_needed_putenv=yes
7154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7157 { $as_echo "$as_me:$LINENO: result: $groff_cv_decl_needed_putenv" >&5
7158 $as_echo "$groff_cv_decl_needed_putenv" >&6; }
7159 if test $groff_cv_decl_needed_putenv = yes; then
7161 cat >>confdefs.h <<\_ACEOF
7162 #define NEED_DECLARATION_PUTENV 1
7163 _ACEOF
7166 ac_ext=c
7167 ac_cpp='$CPP $CPPFLAGS'
7168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7172 { $as_echo "$as_me:$LINENO: checking whether rand must be declared" >&5
7173 $as_echo_n "checking whether rand must be declared... " >&6; }
7174 ac_ext=cpp
7175 ac_cpp='$CXXCPP $CPPFLAGS'
7176 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7177 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7178 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7180 if test "${groff_cv_decl_needed_rand+set}" = set; then
7181 $as_echo_n "(cached) " >&6
7182 else
7183 cat >conftest.$ac_ext <<_ACEOF
7185 /* confdefs.h. */
7186 _ACEOF
7187 cat confdefs.h >>conftest.$ac_ext
7188 cat >>conftest.$ac_ext <<_ACEOF
7189 /* end confdefs.h. */
7192 #include <stdio.h>
7193 #ifdef HAVE_STRING_H
7194 #include <string.h>
7195 #endif
7196 #ifdef HAVE_STRINGS_H
7197 #include <strings.h>
7198 #endif
7199 #ifdef HAVE_STDLIB_H
7200 #include <stdlib.h>
7201 #endif
7202 #ifdef HAVE_SYS_TIME_H
7203 #include <sys/time.h>
7204 #endif
7205 #ifdef HAVE_UNISTD_H
7206 #include <unistd.h>
7207 #endif
7208 #ifdef HAVE_MATH_H
7209 #include <math.h>
7210 #endif
7214 main ()
7218 #ifndef rand
7219 char *p = (char *) rand;
7220 #endif
7224 return 0;
7227 _ACEOF
7228 rm -f conftest.$ac_objext
7229 if { (ac_try="$ac_compile"
7230 case "(($ac_try" in
7231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7232 *) ac_try_echo=$ac_try;;
7233 esac
7234 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7235 $as_echo "$ac_try_echo") >&5
7236 (eval "$ac_compile") 2>conftest.er1
7237 ac_status=$?
7238 grep -v '^ *+' conftest.er1 >conftest.err
7239 rm -f conftest.er1
7240 cat conftest.err >&5
7241 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7242 (exit $ac_status); } && {
7243 test -z "$ac_cxx_werror_flag" ||
7244 test ! -s conftest.err
7245 } && test -s conftest.$ac_objext; then
7246 groff_cv_decl_needed_rand=no
7247 else
7248 $as_echo "$as_me: failed program was:" >&5
7249 sed 's/^/| /' conftest.$ac_ext >&5
7251 groff_cv_decl_needed_rand=yes
7254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7257 { $as_echo "$as_me:$LINENO: result: $groff_cv_decl_needed_rand" >&5
7258 $as_echo "$groff_cv_decl_needed_rand" >&6; }
7259 if test $groff_cv_decl_needed_rand = yes; then
7261 cat >>confdefs.h <<\_ACEOF
7262 #define NEED_DECLARATION_RAND 1
7263 _ACEOF
7266 ac_ext=c
7267 ac_cpp='$CPP $CPPFLAGS'
7268 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7269 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7270 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7272 { $as_echo "$as_me:$LINENO: checking whether snprintf must be declared" >&5
7273 $as_echo_n "checking whether snprintf must be declared... " >&6; }
7274 ac_ext=cpp
7275 ac_cpp='$CXXCPP $CPPFLAGS'
7276 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7277 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7278 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7280 if test "${groff_cv_decl_needed_snprintf+set}" = set; then
7281 $as_echo_n "(cached) " >&6
7282 else
7283 cat >conftest.$ac_ext <<_ACEOF
7285 /* confdefs.h. */
7286 _ACEOF
7287 cat confdefs.h >>conftest.$ac_ext
7288 cat >>conftest.$ac_ext <<_ACEOF
7289 /* end confdefs.h. */
7292 #include <stdio.h>
7293 #ifdef HAVE_STRING_H
7294 #include <string.h>
7295 #endif
7296 #ifdef HAVE_STRINGS_H
7297 #include <strings.h>
7298 #endif
7299 #ifdef HAVE_STDLIB_H
7300 #include <stdlib.h>
7301 #endif
7302 #ifdef HAVE_SYS_TIME_H
7303 #include <sys/time.h>
7304 #endif
7305 #ifdef HAVE_UNISTD_H
7306 #include <unistd.h>
7307 #endif
7308 #ifdef HAVE_MATH_H
7309 #include <math.h>
7310 #endif
7314 main ()
7318 #ifndef snprintf
7319 char *p = (char *) snprintf;
7320 #endif
7324 return 0;
7327 _ACEOF
7328 rm -f conftest.$ac_objext
7329 if { (ac_try="$ac_compile"
7330 case "(($ac_try" in
7331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7332 *) ac_try_echo=$ac_try;;
7333 esac
7334 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7335 $as_echo "$ac_try_echo") >&5
7336 (eval "$ac_compile") 2>conftest.er1
7337 ac_status=$?
7338 grep -v '^ *+' conftest.er1 >conftest.err
7339 rm -f conftest.er1
7340 cat conftest.err >&5
7341 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7342 (exit $ac_status); } && {
7343 test -z "$ac_cxx_werror_flag" ||
7344 test ! -s conftest.err
7345 } && test -s conftest.$ac_objext; then
7346 groff_cv_decl_needed_snprintf=no
7347 else
7348 $as_echo "$as_me: failed program was:" >&5
7349 sed 's/^/| /' conftest.$ac_ext >&5
7351 groff_cv_decl_needed_snprintf=yes
7354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7357 { $as_echo "$as_me:$LINENO: result: $groff_cv_decl_needed_snprintf" >&5
7358 $as_echo "$groff_cv_decl_needed_snprintf" >&6; }
7359 if test $groff_cv_decl_needed_snprintf = yes; then
7361 cat >>confdefs.h <<\_ACEOF
7362 #define NEED_DECLARATION_SNPRINTF 1
7363 _ACEOF
7366 ac_ext=c
7367 ac_cpp='$CPP $CPPFLAGS'
7368 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7369 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7370 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7372 { $as_echo "$as_me:$LINENO: checking whether srand must be declared" >&5
7373 $as_echo_n "checking whether srand must be declared... " >&6; }
7374 ac_ext=cpp
7375 ac_cpp='$CXXCPP $CPPFLAGS'
7376 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7377 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7378 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7380 if test "${groff_cv_decl_needed_srand+set}" = set; then
7381 $as_echo_n "(cached) " >&6
7382 else
7383 cat >conftest.$ac_ext <<_ACEOF
7385 /* confdefs.h. */
7386 _ACEOF
7387 cat confdefs.h >>conftest.$ac_ext
7388 cat >>conftest.$ac_ext <<_ACEOF
7389 /* end confdefs.h. */
7392 #include <stdio.h>
7393 #ifdef HAVE_STRING_H
7394 #include <string.h>
7395 #endif
7396 #ifdef HAVE_STRINGS_H
7397 #include <strings.h>
7398 #endif
7399 #ifdef HAVE_STDLIB_H
7400 #include <stdlib.h>
7401 #endif
7402 #ifdef HAVE_SYS_TIME_H
7403 #include <sys/time.h>
7404 #endif
7405 #ifdef HAVE_UNISTD_H
7406 #include <unistd.h>
7407 #endif
7408 #ifdef HAVE_MATH_H
7409 #include <math.h>
7410 #endif
7414 main ()
7418 #ifndef srand
7419 char *p = (char *) srand;
7420 #endif
7424 return 0;
7427 _ACEOF
7428 rm -f conftest.$ac_objext
7429 if { (ac_try="$ac_compile"
7430 case "(($ac_try" in
7431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7432 *) ac_try_echo=$ac_try;;
7433 esac
7434 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7435 $as_echo "$ac_try_echo") >&5
7436 (eval "$ac_compile") 2>conftest.er1
7437 ac_status=$?
7438 grep -v '^ *+' conftest.er1 >conftest.err
7439 rm -f conftest.er1
7440 cat conftest.err >&5
7441 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7442 (exit $ac_status); } && {
7443 test -z "$ac_cxx_werror_flag" ||
7444 test ! -s conftest.err
7445 } && test -s conftest.$ac_objext; then
7446 groff_cv_decl_needed_srand=no
7447 else
7448 $as_echo "$as_me: failed program was:" >&5
7449 sed 's/^/| /' conftest.$ac_ext >&5
7451 groff_cv_decl_needed_srand=yes
7454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7457 { $as_echo "$as_me:$LINENO: result: $groff_cv_decl_needed_srand" >&5
7458 $as_echo "$groff_cv_decl_needed_srand" >&6; }
7459 if test $groff_cv_decl_needed_srand = yes; then
7461 cat >>confdefs.h <<\_ACEOF
7462 #define NEED_DECLARATION_SRAND 1
7463 _ACEOF
7466 ac_ext=c
7467 ac_cpp='$CPP $CPPFLAGS'
7468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7472 { $as_echo "$as_me:$LINENO: checking whether strcasecmp must be declared" >&5
7473 $as_echo_n "checking whether strcasecmp must be declared... " >&6; }
7474 ac_ext=cpp
7475 ac_cpp='$CXXCPP $CPPFLAGS'
7476 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7477 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7478 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7480 if test "${groff_cv_decl_needed_strcasecmp+set}" = set; then
7481 $as_echo_n "(cached) " >&6
7482 else
7483 cat >conftest.$ac_ext <<_ACEOF
7485 /* confdefs.h. */
7486 _ACEOF
7487 cat confdefs.h >>conftest.$ac_ext
7488 cat >>conftest.$ac_ext <<_ACEOF
7489 /* end confdefs.h. */
7492 #include <stdio.h>
7493 #ifdef HAVE_STRING_H
7494 #include <string.h>
7495 #endif
7496 #ifdef HAVE_STRINGS_H
7497 #include <strings.h>
7498 #endif
7499 #ifdef HAVE_STDLIB_H
7500 #include <stdlib.h>
7501 #endif
7502 #ifdef HAVE_SYS_TIME_H
7503 #include <sys/time.h>
7504 #endif
7505 #ifdef HAVE_UNISTD_H
7506 #include <unistd.h>
7507 #endif
7508 #ifdef HAVE_MATH_H
7509 #include <math.h>
7510 #endif
7514 main ()
7518 #ifndef strcasecmp
7519 char *p = (char *) strcasecmp;
7520 #endif
7524 return 0;
7527 _ACEOF
7528 rm -f conftest.$ac_objext
7529 if { (ac_try="$ac_compile"
7530 case "(($ac_try" in
7531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7532 *) ac_try_echo=$ac_try;;
7533 esac
7534 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7535 $as_echo "$ac_try_echo") >&5
7536 (eval "$ac_compile") 2>conftest.er1
7537 ac_status=$?
7538 grep -v '^ *+' conftest.er1 >conftest.err
7539 rm -f conftest.er1
7540 cat conftest.err >&5
7541 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7542 (exit $ac_status); } && {
7543 test -z "$ac_cxx_werror_flag" ||
7544 test ! -s conftest.err
7545 } && test -s conftest.$ac_objext; then
7546 groff_cv_decl_needed_strcasecmp=no
7547 else
7548 $as_echo "$as_me: failed program was:" >&5
7549 sed 's/^/| /' conftest.$ac_ext >&5
7551 groff_cv_decl_needed_strcasecmp=yes
7554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7557 { $as_echo "$as_me:$LINENO: result: $groff_cv_decl_needed_strcasecmp" >&5
7558 $as_echo "$groff_cv_decl_needed_strcasecmp" >&6; }
7559 if test $groff_cv_decl_needed_strcasecmp = yes; then
7561 cat >>confdefs.h <<\_ACEOF
7562 #define NEED_DECLARATION_STRCASECMP 1
7563 _ACEOF
7566 ac_ext=c
7567 ac_cpp='$CPP $CPPFLAGS'
7568 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7569 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7570 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7572 { $as_echo "$as_me:$LINENO: checking whether strncasecmp must be declared" >&5
7573 $as_echo_n "checking whether strncasecmp must be declared... " >&6; }
7574 ac_ext=cpp
7575 ac_cpp='$CXXCPP $CPPFLAGS'
7576 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7577 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7578 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7580 if test "${groff_cv_decl_needed_strncasecmp+set}" = set; then
7581 $as_echo_n "(cached) " >&6
7582 else
7583 cat >conftest.$ac_ext <<_ACEOF
7585 /* confdefs.h. */
7586 _ACEOF
7587 cat confdefs.h >>conftest.$ac_ext
7588 cat >>conftest.$ac_ext <<_ACEOF
7589 /* end confdefs.h. */
7592 #include <stdio.h>
7593 #ifdef HAVE_STRING_H
7594 #include <string.h>
7595 #endif
7596 #ifdef HAVE_STRINGS_H
7597 #include <strings.h>
7598 #endif
7599 #ifdef HAVE_STDLIB_H
7600 #include <stdlib.h>
7601 #endif
7602 #ifdef HAVE_SYS_TIME_H
7603 #include <sys/time.h>
7604 #endif
7605 #ifdef HAVE_UNISTD_H
7606 #include <unistd.h>
7607 #endif
7608 #ifdef HAVE_MATH_H
7609 #include <math.h>
7610 #endif
7614 main ()
7618 #ifndef strncasecmp
7619 char *p = (char *) strncasecmp;
7620 #endif
7624 return 0;
7627 _ACEOF
7628 rm -f conftest.$ac_objext
7629 if { (ac_try="$ac_compile"
7630 case "(($ac_try" in
7631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7632 *) ac_try_echo=$ac_try;;
7633 esac
7634 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7635 $as_echo "$ac_try_echo") >&5
7636 (eval "$ac_compile") 2>conftest.er1
7637 ac_status=$?
7638 grep -v '^ *+' conftest.er1 >conftest.err
7639 rm -f conftest.er1
7640 cat conftest.err >&5
7641 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7642 (exit $ac_status); } && {
7643 test -z "$ac_cxx_werror_flag" ||
7644 test ! -s conftest.err
7645 } && test -s conftest.$ac_objext; then
7646 groff_cv_decl_needed_strncasecmp=no
7647 else
7648 $as_echo "$as_me: failed program was:" >&5
7649 sed 's/^/| /' conftest.$ac_ext >&5
7651 groff_cv_decl_needed_strncasecmp=yes
7654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7657 { $as_echo "$as_me:$LINENO: result: $groff_cv_decl_needed_strncasecmp" >&5
7658 $as_echo "$groff_cv_decl_needed_strncasecmp" >&6; }
7659 if test $groff_cv_decl_needed_strncasecmp = yes; then
7661 cat >>confdefs.h <<\_ACEOF
7662 #define NEED_DECLARATION_STRNCASECMP 1
7663 _ACEOF
7666 ac_ext=c
7667 ac_cpp='$CPP $CPPFLAGS'
7668 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7669 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7670 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7672 { $as_echo "$as_me:$LINENO: checking whether vfprintf must be declared" >&5
7673 $as_echo_n "checking whether vfprintf must be declared... " >&6; }
7674 ac_ext=cpp
7675 ac_cpp='$CXXCPP $CPPFLAGS'
7676 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7677 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7678 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7680 if test "${groff_cv_decl_needed_vfprintf+set}" = set; then
7681 $as_echo_n "(cached) " >&6
7682 else
7683 cat >conftest.$ac_ext <<_ACEOF
7685 /* confdefs.h. */
7686 _ACEOF
7687 cat confdefs.h >>conftest.$ac_ext
7688 cat >>conftest.$ac_ext <<_ACEOF
7689 /* end confdefs.h. */
7692 #include <stdio.h>
7693 #ifdef HAVE_STRING_H
7694 #include <string.h>
7695 #endif
7696 #ifdef HAVE_STRINGS_H
7697 #include <strings.h>
7698 #endif
7699 #ifdef HAVE_STDLIB_H
7700 #include <stdlib.h>
7701 #endif
7702 #ifdef HAVE_SYS_TIME_H
7703 #include <sys/time.h>
7704 #endif
7705 #ifdef HAVE_UNISTD_H
7706 #include <unistd.h>
7707 #endif
7708 #ifdef HAVE_MATH_H
7709 #include <math.h>
7710 #endif
7714 main ()
7718 #ifndef vfprintf
7719 char *p = (char *) vfprintf;
7720 #endif
7724 return 0;
7727 _ACEOF
7728 rm -f conftest.$ac_objext
7729 if { (ac_try="$ac_compile"
7730 case "(($ac_try" in
7731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7732 *) ac_try_echo=$ac_try;;
7733 esac
7734 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7735 $as_echo "$ac_try_echo") >&5
7736 (eval "$ac_compile") 2>conftest.er1
7737 ac_status=$?
7738 grep -v '^ *+' conftest.er1 >conftest.err
7739 rm -f conftest.er1
7740 cat conftest.err >&5
7741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7742 (exit $ac_status); } && {
7743 test -z "$ac_cxx_werror_flag" ||
7744 test ! -s conftest.err
7745 } && test -s conftest.$ac_objext; then
7746 groff_cv_decl_needed_vfprintf=no
7747 else
7748 $as_echo "$as_me: failed program was:" >&5
7749 sed 's/^/| /' conftest.$ac_ext >&5
7751 groff_cv_decl_needed_vfprintf=yes
7754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7757 { $as_echo "$as_me:$LINENO: result: $groff_cv_decl_needed_vfprintf" >&5
7758 $as_echo "$groff_cv_decl_needed_vfprintf" >&6; }
7759 if test $groff_cv_decl_needed_vfprintf = yes; then
7761 cat >>confdefs.h <<\_ACEOF
7762 #define NEED_DECLARATION_VFPRINTF 1
7763 _ACEOF
7766 ac_ext=c
7767 ac_cpp='$CPP $CPPFLAGS'
7768 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7769 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7770 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7772 { $as_echo "$as_me:$LINENO: checking whether vsnprintf must be declared" >&5
7773 $as_echo_n "checking whether vsnprintf must be declared... " >&6; }
7774 ac_ext=cpp
7775 ac_cpp='$CXXCPP $CPPFLAGS'
7776 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7777 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7778 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7780 if test "${groff_cv_decl_needed_vsnprintf+set}" = set; then
7781 $as_echo_n "(cached) " >&6
7782 else
7783 cat >conftest.$ac_ext <<_ACEOF
7785 /* confdefs.h. */
7786 _ACEOF
7787 cat confdefs.h >>conftest.$ac_ext
7788 cat >>conftest.$ac_ext <<_ACEOF
7789 /* end confdefs.h. */
7792 #include <stdio.h>
7793 #ifdef HAVE_STRING_H
7794 #include <string.h>
7795 #endif
7796 #ifdef HAVE_STRINGS_H
7797 #include <strings.h>
7798 #endif
7799 #ifdef HAVE_STDLIB_H
7800 #include <stdlib.h>
7801 #endif
7802 #ifdef HAVE_SYS_TIME_H
7803 #include <sys/time.h>
7804 #endif
7805 #ifdef HAVE_UNISTD_H
7806 #include <unistd.h>
7807 #endif
7808 #ifdef HAVE_MATH_H
7809 #include <math.h>
7810 #endif
7814 main ()
7818 #ifndef vsnprintf
7819 char *p = (char *) vsnprintf;
7820 #endif
7824 return 0;
7827 _ACEOF
7828 rm -f conftest.$ac_objext
7829 if { (ac_try="$ac_compile"
7830 case "(($ac_try" in
7831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7832 *) ac_try_echo=$ac_try;;
7833 esac
7834 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7835 $as_echo "$ac_try_echo") >&5
7836 (eval "$ac_compile") 2>conftest.er1
7837 ac_status=$?
7838 grep -v '^ *+' conftest.er1 >conftest.err
7839 rm -f conftest.er1
7840 cat conftest.err >&5
7841 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7842 (exit $ac_status); } && {
7843 test -z "$ac_cxx_werror_flag" ||
7844 test ! -s conftest.err
7845 } && test -s conftest.$ac_objext; then
7846 groff_cv_decl_needed_vsnprintf=no
7847 else
7848 $as_echo "$as_me: failed program was:" >&5
7849 sed 's/^/| /' conftest.$ac_ext >&5
7851 groff_cv_decl_needed_vsnprintf=yes
7854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7857 { $as_echo "$as_me:$LINENO: result: $groff_cv_decl_needed_vsnprintf" >&5
7858 $as_echo "$groff_cv_decl_needed_vsnprintf" >&6; }
7859 if test $groff_cv_decl_needed_vsnprintf = yes; then
7861 cat >>confdefs.h <<\_ACEOF
7862 #define NEED_DECLARATION_VSNPRINTF 1
7863 _ACEOF
7866 ac_ext=c
7867 ac_cpp='$CPP $CPPFLAGS'
7868 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7869 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7870 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7872 ac_ext=cpp
7873 ac_cpp='$CXXCPP $CPPFLAGS'
7874 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7875 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7876 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7878 { $as_echo "$as_me:$LINENO: checking for sys_nerr in <errno.h>, <stdio.h>, or <stdlib.h>" >&5
7879 $as_echo_n "checking for sys_nerr in <errno.h>, <stdio.h>, or <stdlib.h>... " >&6; }
7880 cat >conftest.$ac_ext <<_ACEOF
7882 /* confdefs.h. */
7883 _ACEOF
7884 cat confdefs.h >>conftest.$ac_ext
7885 cat >>conftest.$ac_ext <<_ACEOF
7886 /* end confdefs.h. */
7889 #include <errno.h>
7890 #include <stdio.h>
7891 #include <stdlib.h>
7895 main ()
7899 int k;
7900 k = sys_nerr;
7904 return 0;
7907 _ACEOF
7908 rm -f conftest.$ac_objext
7909 if { (ac_try="$ac_compile"
7910 case "(($ac_try" in
7911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7912 *) ac_try_echo=$ac_try;;
7913 esac
7914 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7915 $as_echo "$ac_try_echo") >&5
7916 (eval "$ac_compile") 2>conftest.er1
7917 ac_status=$?
7918 grep -v '^ *+' conftest.er1 >conftest.err
7919 rm -f conftest.er1
7920 cat conftest.err >&5
7921 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7922 (exit $ac_status); } && {
7923 test -z "$ac_cxx_werror_flag" ||
7924 test ! -s conftest.err
7925 } && test -s conftest.$ac_objext; then
7926 { $as_echo "$as_me:$LINENO: result: yes" >&5
7927 $as_echo "yes" >&6; }
7929 cat >>confdefs.h <<\_ACEOF
7930 #define HAVE_SYS_NERR 1
7931 _ACEOF
7933 else
7934 $as_echo "$as_me: failed program was:" >&5
7935 sed 's/^/| /' conftest.$ac_ext >&5
7937 { $as_echo "$as_me:$LINENO: result: no" >&5
7938 $as_echo "no" >&6; }
7941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7942 ac_ext=c
7943 ac_cpp='$CPP $CPPFLAGS'
7944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7945 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7948 { $as_echo "$as_me:$LINENO: checking for sys_errlist in <errno.h>, <stdio.h>, or <stdlib.h>" >&5
7949 $as_echo_n "checking for sys_errlist in <errno.h>, <stdio.h>, or <stdlib.h>... " >&6; }
7950 cat >conftest.$ac_ext <<_ACEOF
7952 /* confdefs.h. */
7953 _ACEOF
7954 cat confdefs.h >>conftest.$ac_ext
7955 cat >>conftest.$ac_ext <<_ACEOF
7956 /* end confdefs.h. */
7959 #include <errno.h>
7960 #include <stdio.h>
7961 #include <stdlib.h>
7965 main ()
7969 int k;
7970 k = (int)sys_errlist[0];
7974 return 0;
7977 _ACEOF
7978 rm -f conftest.$ac_objext
7979 if { (ac_try="$ac_compile"
7980 case "(($ac_try" in
7981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7982 *) ac_try_echo=$ac_try;;
7983 esac
7984 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7985 $as_echo "$ac_try_echo") >&5
7986 (eval "$ac_compile") 2>conftest.er1
7987 ac_status=$?
7988 grep -v '^ *+' conftest.er1 >conftest.err
7989 rm -f conftest.er1
7990 cat conftest.err >&5
7991 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7992 (exit $ac_status); } && {
7993 test -z "$ac_c_werror_flag" ||
7994 test ! -s conftest.err
7995 } && test -s conftest.$ac_objext; then
7996 { $as_echo "$as_me:$LINENO: result: yes" >&5
7997 $as_echo "yes" >&6; }
7999 cat >>confdefs.h <<\_ACEOF
8000 #define HAVE_SYS_ERRLIST 1
8001 _ACEOF
8003 else
8004 $as_echo "$as_me: failed program was:" >&5
8005 sed 's/^/| /' conftest.$ac_ext >&5
8007 { $as_echo "$as_me:$LINENO: result: no" >&5
8008 $as_echo "no" >&6; }
8011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8012 ac_ext=cpp
8013 ac_cpp='$CXXCPP $CPPFLAGS'
8014 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8015 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8016 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8018 { $as_echo "$as_me:$LINENO: checking C++ <osfcn.h>" >&5
8019 $as_echo_n "checking C++ <osfcn.h>... " >&6; }
8020 cat >conftest.$ac_ext <<_ACEOF
8022 /* confdefs.h. */
8023 _ACEOF
8024 cat confdefs.h >>conftest.$ac_ext
8025 cat >>conftest.$ac_ext <<_ACEOF
8026 /* end confdefs.h. */
8029 #include <osfcn.h>
8033 main ()
8037 read(0, 0, 0);
8038 open(0, 0);
8042 return 0;
8045 _ACEOF
8046 rm -f conftest.$ac_objext
8047 if { (ac_try="$ac_compile"
8048 case "(($ac_try" in
8049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8050 *) ac_try_echo=$ac_try;;
8051 esac
8052 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8053 $as_echo "$ac_try_echo") >&5
8054 (eval "$ac_compile") 2>conftest.er1
8055 ac_status=$?
8056 grep -v '^ *+' conftest.er1 >conftest.err
8057 rm -f conftest.er1
8058 cat conftest.err >&5
8059 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8060 (exit $ac_status); } && {
8061 test -z "$ac_cxx_werror_flag" ||
8062 test ! -s conftest.err
8063 } && test -s conftest.$ac_objext; then
8064 { $as_echo "$as_me:$LINENO: result: yes" >&5
8065 $as_echo "yes" >&6; }
8067 cat >>confdefs.h <<\_ACEOF
8068 #define HAVE_CC_OSFCN_H 1
8069 _ACEOF
8071 else
8072 $as_echo "$as_me: failed program was:" >&5
8073 sed 's/^/| /' conftest.$ac_ext >&5
8075 { $as_echo "$as_me:$LINENO: result: no" >&5
8076 $as_echo "no" >&6; }
8079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8080 ac_ext=c
8081 ac_cpp='$CPP $CPPFLAGS'
8082 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8083 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8084 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8086 ac_ext=cpp
8087 ac_cpp='$CXXCPP $CPPFLAGS'
8088 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8089 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8090 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8092 { $as_echo "$as_me:$LINENO: checking C++ <limits.h>" >&5
8093 $as_echo_n "checking C++ <limits.h>... " >&6; }
8094 cat >conftest.$ac_ext <<_ACEOF
8096 /* confdefs.h. */
8097 _ACEOF
8098 cat confdefs.h >>conftest.$ac_ext
8099 cat >>conftest.$ac_ext <<_ACEOF
8100 /* end confdefs.h. */
8103 #include <limits.h>
8107 main ()
8111 int x = INT_MIN;
8112 int y = INT_MAX;
8113 int z = UCHAR_MAX;
8117 return 0;
8120 _ACEOF
8121 rm -f conftest.$ac_objext
8122 if { (ac_try="$ac_compile"
8123 case "(($ac_try" in
8124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8125 *) ac_try_echo=$ac_try;;
8126 esac
8127 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8128 $as_echo "$ac_try_echo") >&5
8129 (eval "$ac_compile") 2>conftest.er1
8130 ac_status=$?
8131 grep -v '^ *+' conftest.er1 >conftest.err
8132 rm -f conftest.er1
8133 cat conftest.err >&5
8134 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8135 (exit $ac_status); } && {
8136 test -z "$ac_cxx_werror_flag" ||
8137 test ! -s conftest.err
8138 } && test -s conftest.$ac_objext; then
8139 { $as_echo "$as_me:$LINENO: result: yes" >&5
8140 $as_echo "yes" >&6; }
8142 cat >>confdefs.h <<\_ACEOF
8143 #define HAVE_CC_LIMITS_H 1
8144 _ACEOF
8146 else
8147 $as_echo "$as_me: failed program was:" >&5
8148 sed 's/^/| /' conftest.$ac_ext >&5
8150 { $as_echo "$as_me:$LINENO: result: no" >&5
8151 $as_echo "no" >&6; }
8154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8155 ac_ext=c
8156 ac_cpp='$CPP $CPPFLAGS'
8157 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8158 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8159 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8161 ac_ext=cpp
8162 ac_cpp='$CXXCPP $CPPFLAGS'
8163 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8164 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8165 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8167 { $as_echo "$as_me:$LINENO: checking C++ <inttypes.h>" >&5
8168 $as_echo_n "checking C++ <inttypes.h>... " >&6; }
8169 cat >conftest.$ac_ext <<_ACEOF
8171 /* confdefs.h. */
8172 _ACEOF
8173 cat confdefs.h >>conftest.$ac_ext
8174 cat >>conftest.$ac_ext <<_ACEOF
8175 /* end confdefs.h. */
8178 #include <sys/types.h>
8179 #include <inttypes.h>
8183 main ()
8187 uintmax_t i = (uintmax_t)-1;
8191 return 0;
8194 _ACEOF
8195 rm -f conftest.$ac_objext
8196 if { (ac_try="$ac_compile"
8197 case "(($ac_try" in
8198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8199 *) ac_try_echo=$ac_try;;
8200 esac
8201 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8202 $as_echo "$ac_try_echo") >&5
8203 (eval "$ac_compile") 2>conftest.er1
8204 ac_status=$?
8205 grep -v '^ *+' conftest.er1 >conftest.err
8206 rm -f conftest.er1
8207 cat conftest.err >&5
8208 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8209 (exit $ac_status); } && {
8210 test -z "$ac_cxx_werror_flag" ||
8211 test ! -s conftest.err
8212 } && test -s conftest.$ac_objext; then
8213 groff_cv_header_inttypes_h=yes
8215 cat >>confdefs.h <<\_ACEOF
8216 #define HAVE_CC_INTTYPES_H 1
8217 _ACEOF
8219 else
8220 $as_echo "$as_me: failed program was:" >&5
8221 sed 's/^/| /' conftest.$ac_ext >&5
8223 groff_cv_header_inttypes_h=no
8226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8227 { $as_echo "$as_me:$LINENO: result: $groff_cv_header_inttypes_h" >&5
8228 $as_echo "$groff_cv_header_inttypes_h" >&6; }
8229 ac_ext=c
8230 ac_cpp='$CPP $CPPFLAGS'
8231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8236 # checks for typedefs
8237 ac_ext=cpp
8238 ac_cpp='$CXXCPP $CPPFLAGS'
8239 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8240 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8241 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8243 { $as_echo "$as_me:$LINENO: checking for unsigned long long" >&5
8244 $as_echo_n "checking for unsigned long long... " >&6; }
8245 cat >conftest.$ac_ext <<_ACEOF
8247 /* confdefs.h. */
8248 _ACEOF
8249 cat confdefs.h >>conftest.$ac_ext
8250 cat >>conftest.$ac_ext <<_ACEOF
8251 /* end confdefs.h. */
8254 unsigned long long ull = 1;
8255 int i = 63;
8256 unsigned long long ullmax = (unsigned long long)-1;
8260 main ()
8264 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
8268 return 0;
8271 _ACEOF
8272 rm -f conftest.$ac_objext conftest$ac_exeext
8273 if { (ac_try="$ac_link"
8274 case "(($ac_try" in
8275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8276 *) ac_try_echo=$ac_try;;
8277 esac
8278 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8279 $as_echo "$ac_try_echo") >&5
8280 (eval "$ac_link") 2>conftest.er1
8281 ac_status=$?
8282 grep -v '^ *+' conftest.er1 >conftest.err
8283 rm -f conftest.er1
8284 cat conftest.err >&5
8285 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8286 (exit $ac_status); } && {
8287 test -z "$ac_cxx_werror_flag" ||
8288 test ! -s conftest.err
8289 } && test -s conftest$ac_exeext && {
8290 test "$cross_compiling" = yes ||
8291 $as_test_x conftest$ac_exeext
8292 }; then
8293 groff_cv_type_unsigned_long_long=yes
8294 else
8295 $as_echo "$as_me: failed program was:" >&5
8296 sed 's/^/| /' conftest.$ac_ext >&5
8298 groff_cv_type_unsigned_long_long=no
8301 rm -rf conftest.dSYM
8302 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8303 conftest$ac_exeext conftest.$ac_ext
8304 { $as_echo "$as_me:$LINENO: result: $groff_cv_type_unsigned_long_long" >&5
8305 $as_echo "$groff_cv_type_unsigned_long_long" >&6; }
8306 ac_ext=c
8307 ac_cpp='$CPP $CPPFLAGS'
8308 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8309 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8310 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8313 if test $groff_cv_header_inttypes_h = no; then
8315 test $groff_cv_type_unsigned_long_long = yes \
8316 && ac_type='unsigned long long' \
8317 || ac_type='unsigned long'
8319 cat >>confdefs.h <<_ACEOF
8320 #define uintmax_t $ac_type
8321 _ACEOF
8324 ac_ext=cpp
8325 ac_cpp='$CXXCPP $CPPFLAGS'
8326 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8327 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8328 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8330 { $as_echo "$as_me:$LINENO: checking for declaration of time_t" >&5
8331 $as_echo_n "checking for declaration of time_t... " >&6; }
8332 cat >conftest.$ac_ext <<_ACEOF
8334 /* confdefs.h. */
8335 _ACEOF
8336 cat confdefs.h >>conftest.$ac_ext
8337 cat >>conftest.$ac_ext <<_ACEOF
8338 /* end confdefs.h. */
8341 #include <time.h>
8345 main ()
8349 time_t t = time(0);
8350 struct tm *p = localtime(&t);
8354 return 0;
8357 _ACEOF
8358 rm -f conftest.$ac_objext
8359 if { (ac_try="$ac_compile"
8360 case "(($ac_try" in
8361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8362 *) ac_try_echo=$ac_try;;
8363 esac
8364 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8365 $as_echo "$ac_try_echo") >&5
8366 (eval "$ac_compile") 2>conftest.er1
8367 ac_status=$?
8368 grep -v '^ *+' conftest.er1 >conftest.err
8369 rm -f conftest.er1
8370 cat conftest.err >&5
8371 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8372 (exit $ac_status); } && {
8373 test -z "$ac_cxx_werror_flag" ||
8374 test ! -s conftest.err
8375 } && test -s conftest.$ac_objext; then
8376 { $as_echo "$as_me:$LINENO: result: yes" >&5
8377 $as_echo "yes" >&6; }
8378 else
8379 $as_echo "$as_me: failed program was:" >&5
8380 sed 's/^/| /' conftest.$ac_ext >&5
8382 { $as_echo "$as_me:$LINENO: result: no" >&5
8383 $as_echo "no" >&6; }
8385 cat >>confdefs.h <<\_ACEOF
8386 #define LONG_FOR_TIME_T 1
8387 _ACEOF
8391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8392 ac_ext=c
8393 ac_cpp='$CPP $CPPFLAGS'
8394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8396 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8398 { $as_echo "$as_me:$LINENO: checking for return type of signal handlers" >&5
8399 $as_echo_n "checking for return type of signal handlers... " >&6; }
8400 for groff_declaration in \
8401 'extern "C" void (*signal (int, void (*)(int)))(int);' \
8402 'extern "C" void (*signal (int, void (*)(int)) throw ())(int);' \
8403 'void (*signal ()) ();'
8405 cat >conftest.$ac_ext <<_ACEOF
8407 /* confdefs.h. */
8408 _ACEOF
8409 cat confdefs.h >>conftest.$ac_ext
8410 cat >>conftest.$ac_ext <<_ACEOF
8411 /* end confdefs.h. */
8414 #include <sys/types.h>
8415 #include <signal.h>
8416 #ifdef signal
8417 # undef signal
8418 #endif
8419 $groff_declaration
8423 main ()
8427 int i;
8431 return 0;
8434 _ACEOF
8435 rm -f conftest.$ac_objext
8436 if { (ac_try="$ac_compile"
8437 case "(($ac_try" in
8438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8439 *) ac_try_echo=$ac_try;;
8440 esac
8441 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8442 $as_echo "$ac_try_echo") >&5
8443 (eval "$ac_compile") 2>conftest.er1
8444 ac_status=$?
8445 grep -v '^ *+' conftest.er1 >conftest.err
8446 rm -f conftest.er1
8447 cat conftest.err >&5
8448 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8449 (exit $ac_status); } && {
8450 test -z "$ac_c_werror_flag" ||
8451 test ! -s conftest.err
8452 } && test -s conftest.$ac_objext; then
8453 break
8454 else
8455 $as_echo "$as_me: failed program was:" >&5
8456 sed 's/^/| /' conftest.$ac_ext >&5
8458 continue
8461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8462 done
8464 if test -n "$groff_declaration"; then
8465 { $as_echo "$as_me:$LINENO: result: void" >&5
8466 $as_echo "void" >&6; }
8468 cat >>confdefs.h <<\_ACEOF
8469 #define RETSIGTYPE void
8470 _ACEOF
8472 else
8473 { $as_echo "$as_me:$LINENO: result: int" >&5
8474 $as_echo "int" >&6; }
8476 cat >>confdefs.h <<\_ACEOF
8477 #define RETSIGTYPE int
8478 _ACEOF
8481 { $as_echo "$as_me:$LINENO: checking struct exception" >&5
8482 $as_echo_n "checking struct exception... " >&6; }
8483 cat >conftest.$ac_ext <<_ACEOF
8485 /* confdefs.h. */
8486 _ACEOF
8487 cat confdefs.h >>conftest.$ac_ext
8488 cat >>conftest.$ac_ext <<_ACEOF
8489 /* end confdefs.h. */
8492 #include <math.h>
8496 main ()
8500 struct exception e;
8504 return 0;
8507 _ACEOF
8508 rm -f conftest.$ac_objext
8509 if { (ac_try="$ac_compile"
8510 case "(($ac_try" in
8511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8512 *) ac_try_echo=$ac_try;;
8513 esac
8514 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8515 $as_echo "$ac_try_echo") >&5
8516 (eval "$ac_compile") 2>conftest.er1
8517 ac_status=$?
8518 grep -v '^ *+' conftest.er1 >conftest.err
8519 rm -f conftest.er1
8520 cat conftest.err >&5
8521 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8522 (exit $ac_status); } && {
8523 test -z "$ac_c_werror_flag" ||
8524 test ! -s conftest.err
8525 } && test -s conftest.$ac_objext; then
8526 { $as_echo "$as_me:$LINENO: result: yes" >&5
8527 $as_echo "yes" >&6; }
8529 cat >>confdefs.h <<\_ACEOF
8530 #define HAVE_STRUCT_EXCEPTION 1
8531 _ACEOF
8533 else
8534 $as_echo "$as_me: failed program was:" >&5
8535 sed 's/^/| /' conftest.$ac_ext >&5
8537 { $as_echo "$as_me:$LINENO: result: no" >&5
8538 $as_echo "no" >&6; }
8541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8543 # check endianness
8545 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
8546 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8547 if test "${ac_cv_c_bigendian+set}" = set; then
8548 $as_echo_n "(cached) " >&6
8549 else
8550 ac_cv_c_bigendian=unknown
8551 # See if we're dealing with a universal compiler.
8552 cat >conftest.$ac_ext <<_ACEOF
8553 /* confdefs.h. */
8554 _ACEOF
8555 cat confdefs.h >>conftest.$ac_ext
8556 cat >>conftest.$ac_ext <<_ACEOF
8557 /* end confdefs.h. */
8558 #ifndef __APPLE_CC__
8559 not a universal capable compiler
8560 #endif
8561 typedef int dummy;
8563 _ACEOF
8564 rm -f conftest.$ac_objext
8565 if { (ac_try="$ac_compile"
8566 case "(($ac_try" in
8567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8568 *) ac_try_echo=$ac_try;;
8569 esac
8570 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8571 $as_echo "$ac_try_echo") >&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 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8578 (exit $ac_status); } && {
8579 test -z "$ac_c_werror_flag" ||
8580 test ! -s conftest.err
8581 } && test -s conftest.$ac_objext; then
8583 # Check for potential -arch flags. It is not universal unless
8584 # there are some -arch flags. Note that *ppc* also matches
8585 # ppc64. This check is also rather less than ideal.
8586 case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #(
8587 *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
8588 esac
8589 else
8590 $as_echo "$as_me: failed program was:" >&5
8591 sed 's/^/| /' conftest.$ac_ext >&5
8596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8597 if test $ac_cv_c_bigendian = unknown; then
8598 # See if sys/param.h defines the BYTE_ORDER macro.
8599 cat >conftest.$ac_ext <<_ACEOF
8600 /* confdefs.h. */
8601 _ACEOF
8602 cat confdefs.h >>conftest.$ac_ext
8603 cat >>conftest.$ac_ext <<_ACEOF
8604 /* end confdefs.h. */
8605 #include <sys/types.h>
8606 #include <sys/param.h>
8609 main ()
8611 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8612 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8613 && LITTLE_ENDIAN)
8614 bogus endian macros
8615 #endif
8618 return 0;
8620 _ACEOF
8621 rm -f conftest.$ac_objext
8622 if { (ac_try="$ac_compile"
8623 case "(($ac_try" in
8624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8625 *) ac_try_echo=$ac_try;;
8626 esac
8627 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8628 $as_echo "$ac_try_echo") >&5
8629 (eval "$ac_compile") 2>conftest.er1
8630 ac_status=$?
8631 grep -v '^ *+' conftest.er1 >conftest.err
8632 rm -f conftest.er1
8633 cat conftest.err >&5
8634 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8635 (exit $ac_status); } && {
8636 test -z "$ac_c_werror_flag" ||
8637 test ! -s conftest.err
8638 } && test -s conftest.$ac_objext; then
8639 # It does; now see whether it defined to BIG_ENDIAN or not.
8640 cat >conftest.$ac_ext <<_ACEOF
8641 /* confdefs.h. */
8642 _ACEOF
8643 cat confdefs.h >>conftest.$ac_ext
8644 cat >>conftest.$ac_ext <<_ACEOF
8645 /* end confdefs.h. */
8646 #include <sys/types.h>
8647 #include <sys/param.h>
8650 main ()
8652 #if BYTE_ORDER != BIG_ENDIAN
8653 not big endian
8654 #endif
8657 return 0;
8659 _ACEOF
8660 rm -f conftest.$ac_objext
8661 if { (ac_try="$ac_compile"
8662 case "(($ac_try" in
8663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8664 *) ac_try_echo=$ac_try;;
8665 esac
8666 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8667 $as_echo "$ac_try_echo") >&5
8668 (eval "$ac_compile") 2>conftest.er1
8669 ac_status=$?
8670 grep -v '^ *+' conftest.er1 >conftest.err
8671 rm -f conftest.er1
8672 cat conftest.err >&5
8673 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8674 (exit $ac_status); } && {
8675 test -z "$ac_c_werror_flag" ||
8676 test ! -s conftest.err
8677 } && test -s conftest.$ac_objext; then
8678 ac_cv_c_bigendian=yes
8679 else
8680 $as_echo "$as_me: failed program was:" >&5
8681 sed 's/^/| /' conftest.$ac_ext >&5
8683 ac_cv_c_bigendian=no
8686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8687 else
8688 $as_echo "$as_me: failed program was:" >&5
8689 sed 's/^/| /' conftest.$ac_ext >&5
8694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8696 if test $ac_cv_c_bigendian = unknown; then
8697 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8698 cat >conftest.$ac_ext <<_ACEOF
8699 /* confdefs.h. */
8700 _ACEOF
8701 cat confdefs.h >>conftest.$ac_ext
8702 cat >>conftest.$ac_ext <<_ACEOF
8703 /* end confdefs.h. */
8704 #include <limits.h>
8707 main ()
8709 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8710 bogus endian macros
8711 #endif
8714 return 0;
8716 _ACEOF
8717 rm -f conftest.$ac_objext
8718 if { (ac_try="$ac_compile"
8719 case "(($ac_try" in
8720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8721 *) ac_try_echo=$ac_try;;
8722 esac
8723 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8724 $as_echo "$ac_try_echo") >&5
8725 (eval "$ac_compile") 2>conftest.er1
8726 ac_status=$?
8727 grep -v '^ *+' conftest.er1 >conftest.err
8728 rm -f conftest.er1
8729 cat conftest.err >&5
8730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8731 (exit $ac_status); } && {
8732 test -z "$ac_c_werror_flag" ||
8733 test ! -s conftest.err
8734 } && test -s conftest.$ac_objext; then
8735 # It does; now see whether it defined to _BIG_ENDIAN or not.
8736 cat >conftest.$ac_ext <<_ACEOF
8737 /* confdefs.h. */
8738 _ACEOF
8739 cat confdefs.h >>conftest.$ac_ext
8740 cat >>conftest.$ac_ext <<_ACEOF
8741 /* end confdefs.h. */
8742 #include <limits.h>
8745 main ()
8747 #ifndef _BIG_ENDIAN
8748 not big endian
8749 #endif
8752 return 0;
8754 _ACEOF
8755 rm -f conftest.$ac_objext
8756 if { (ac_try="$ac_compile"
8757 case "(($ac_try" in
8758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8759 *) ac_try_echo=$ac_try;;
8760 esac
8761 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8762 $as_echo "$ac_try_echo") >&5
8763 (eval "$ac_compile") 2>conftest.er1
8764 ac_status=$?
8765 grep -v '^ *+' conftest.er1 >conftest.err
8766 rm -f conftest.er1
8767 cat conftest.err >&5
8768 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8769 (exit $ac_status); } && {
8770 test -z "$ac_c_werror_flag" ||
8771 test ! -s conftest.err
8772 } && test -s conftest.$ac_objext; then
8773 ac_cv_c_bigendian=yes
8774 else
8775 $as_echo "$as_me: failed program was:" >&5
8776 sed 's/^/| /' conftest.$ac_ext >&5
8778 ac_cv_c_bigendian=no
8781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8782 else
8783 $as_echo "$as_me: failed program was:" >&5
8784 sed 's/^/| /' conftest.$ac_ext >&5
8789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8791 if test $ac_cv_c_bigendian = unknown; then
8792 # Compile a test program.
8793 if test "$cross_compiling" = yes; then
8794 # Try to guess by grepping values from an object file.
8795 cat >conftest.$ac_ext <<_ACEOF
8796 /* confdefs.h. */
8797 _ACEOF
8798 cat confdefs.h >>conftest.$ac_ext
8799 cat >>conftest.$ac_ext <<_ACEOF
8800 /* end confdefs.h. */
8801 short int ascii_mm[] =
8802 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8803 short int ascii_ii[] =
8804 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8805 int use_ascii (int i) {
8806 return ascii_mm[i] + ascii_ii[i];
8808 short int ebcdic_ii[] =
8809 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8810 short int ebcdic_mm[] =
8811 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8812 int use_ebcdic (int i) {
8813 return ebcdic_mm[i] + ebcdic_ii[i];
8815 extern int foo;
8818 main ()
8820 return use_ascii (foo) == use_ebcdic (foo);
8822 return 0;
8824 _ACEOF
8825 rm -f conftest.$ac_objext
8826 if { (ac_try="$ac_compile"
8827 case "(($ac_try" in
8828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8829 *) ac_try_echo=$ac_try;;
8830 esac
8831 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8832 $as_echo "$ac_try_echo") >&5
8833 (eval "$ac_compile") 2>conftest.er1
8834 ac_status=$?
8835 grep -v '^ *+' conftest.er1 >conftest.err
8836 rm -f conftest.er1
8837 cat conftest.err >&5
8838 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8839 (exit $ac_status); } && {
8840 test -z "$ac_c_werror_flag" ||
8841 test ! -s conftest.err
8842 } && test -s conftest.$ac_objext; then
8843 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8844 ac_cv_c_bigendian=yes
8846 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8847 if test "$ac_cv_c_bigendian" = unknown; then
8848 ac_cv_c_bigendian=no
8849 else
8850 # finding both strings is unlikely to happen, but who knows?
8851 ac_cv_c_bigendian=unknown
8854 else
8855 $as_echo "$as_me: failed program was:" >&5
8856 sed 's/^/| /' conftest.$ac_ext >&5
8861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8862 else
8863 cat >conftest.$ac_ext <<_ACEOF
8864 /* confdefs.h. */
8865 _ACEOF
8866 cat confdefs.h >>conftest.$ac_ext
8867 cat >>conftest.$ac_ext <<_ACEOF
8868 /* end confdefs.h. */
8869 $ac_includes_default
8871 main ()
8874 /* Are we little or big endian? From Harbison&Steele. */
8875 union
8877 long int l;
8878 char c[sizeof (long int)];
8879 } u;
8880 u.l = 1;
8881 return u.c[sizeof (long int) - 1] == 1;
8884 return 0;
8886 _ACEOF
8887 rm -f conftest$ac_exeext
8888 if { (ac_try="$ac_link"
8889 case "(($ac_try" in
8890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8891 *) ac_try_echo=$ac_try;;
8892 esac
8893 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8894 $as_echo "$ac_try_echo") >&5
8895 (eval "$ac_link") 2>&5
8896 ac_status=$?
8897 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8898 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8899 { (case "(($ac_try" in
8900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8901 *) ac_try_echo=$ac_try;;
8902 esac
8903 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8904 $as_echo "$ac_try_echo") >&5
8905 (eval "$ac_try") 2>&5
8906 ac_status=$?
8907 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8908 (exit $ac_status); }; }; then
8909 ac_cv_c_bigendian=no
8910 else
8911 $as_echo "$as_me: program exited with status $ac_status" >&5
8912 $as_echo "$as_me: failed program was:" >&5
8913 sed 's/^/| /' conftest.$ac_ext >&5
8915 ( exit $ac_status )
8916 ac_cv_c_bigendian=yes
8918 rm -rf conftest.dSYM
8919 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8925 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8926 $as_echo "$ac_cv_c_bigendian" >&6; }
8927 case $ac_cv_c_bigendian in #(
8928 yes)
8929 cat >>confdefs.h <<\_ACEOF
8930 #define WORDS_BIGENDIAN 1
8931 _ACEOF
8932 ;; #(
8934 ;; #(
8935 universal)
8937 cat >>confdefs.h <<\_ACEOF
8938 #define AC_APPLE_UNIVERSAL_BUILD 1
8939 _ACEOF
8941 ;; #(
8943 { { $as_echo "$as_me:$LINENO: error: unknown endianness
8944 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
8945 $as_echo "$as_me: error: unknown endianness
8946 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
8947 { (exit 1); exit 1; }; } ;;
8948 esac
8951 # checks for libraries
8952 { $as_echo "$as_me:$LINENO: checking for main in -lc" >&5
8953 $as_echo_n "checking for main in -lc... " >&6; }
8954 if test "${ac_cv_lib_c_main+set}" = set; then
8955 $as_echo_n "(cached) " >&6
8956 else
8957 ac_check_lib_save_LIBS=$LIBS
8958 LIBS="-lc $LIBS"
8959 cat >conftest.$ac_ext <<_ACEOF
8960 /* confdefs.h. */
8961 _ACEOF
8962 cat confdefs.h >>conftest.$ac_ext
8963 cat >>conftest.$ac_ext <<_ACEOF
8964 /* end confdefs.h. */
8968 main ()
8970 return main ();
8972 return 0;
8974 _ACEOF
8975 rm -f conftest.$ac_objext conftest$ac_exeext
8976 if { (ac_try="$ac_link"
8977 case "(($ac_try" in
8978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8979 *) ac_try_echo=$ac_try;;
8980 esac
8981 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8982 $as_echo "$ac_try_echo") >&5
8983 (eval "$ac_link") 2>conftest.er1
8984 ac_status=$?
8985 grep -v '^ *+' conftest.er1 >conftest.err
8986 rm -f conftest.er1
8987 cat conftest.err >&5
8988 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8989 (exit $ac_status); } && {
8990 test -z "$ac_c_werror_flag" ||
8991 test ! -s conftest.err
8992 } && test -s conftest$ac_exeext && {
8993 test "$cross_compiling" = yes ||
8994 $as_test_x conftest$ac_exeext
8995 }; then
8996 ac_cv_lib_c_main=yes
8997 else
8998 $as_echo "$as_me: failed program was:" >&5
8999 sed 's/^/| /' conftest.$ac_ext >&5
9001 ac_cv_lib_c_main=no
9004 rm -rf conftest.dSYM
9005 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9006 conftest$ac_exeext conftest.$ac_ext
9007 LIBS=$ac_check_lib_save_LIBS
9009 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_main" >&5
9010 $as_echo "$ac_cv_lib_c_main" >&6; }
9011 if test "x$ac_cv_lib_c_main" = x""yes; then
9012 LIBC=-lc
9016 { $as_echo "$as_me:$LINENO: checking for sin in -lm" >&5
9017 $as_echo_n "checking for sin in -lm... " >&6; }
9018 if test "${ac_cv_lib_m_sin+set}" = set; then
9019 $as_echo_n "(cached) " >&6
9020 else
9021 ac_check_lib_save_LIBS=$LIBS
9022 LIBS="-lm $LIBS"
9023 cat >conftest.$ac_ext <<_ACEOF
9024 /* confdefs.h. */
9025 _ACEOF
9026 cat confdefs.h >>conftest.$ac_ext
9027 cat >>conftest.$ac_ext <<_ACEOF
9028 /* end confdefs.h. */
9030 /* Override any GCC internal prototype to avoid an error.
9031 Use char because int might match the return type of a GCC
9032 builtin and then its argument prototype would still apply. */
9033 #ifdef __cplusplus
9034 extern "C"
9035 #endif
9036 char sin ();
9038 main ()
9040 return sin ();
9042 return 0;
9044 _ACEOF
9045 rm -f conftest.$ac_objext conftest$ac_exeext
9046 if { (ac_try="$ac_link"
9047 case "(($ac_try" in
9048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9049 *) ac_try_echo=$ac_try;;
9050 esac
9051 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9052 $as_echo "$ac_try_echo") >&5
9053 (eval "$ac_link") 2>conftest.er1
9054 ac_status=$?
9055 grep -v '^ *+' conftest.er1 >conftest.err
9056 rm -f conftest.er1
9057 cat conftest.err >&5
9058 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9059 (exit $ac_status); } && {
9060 test -z "$ac_c_werror_flag" ||
9061 test ! -s conftest.err
9062 } && test -s conftest$ac_exeext && {
9063 test "$cross_compiling" = yes ||
9064 $as_test_x conftest$ac_exeext
9065 }; then
9066 ac_cv_lib_m_sin=yes
9067 else
9068 $as_echo "$as_me: failed program was:" >&5
9069 sed 's/^/| /' conftest.$ac_ext >&5
9071 ac_cv_lib_m_sin=no
9074 rm -rf conftest.dSYM
9075 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9076 conftest$ac_exeext conftest.$ac_ext
9077 LIBS=$ac_check_lib_save_LIBS
9079 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
9080 $as_echo "$ac_cv_lib_m_sin" >&6; }
9081 if test "x$ac_cv_lib_m_sin" = x""yes; then
9082 LIBM=-lm
9086 # Make sure we can run config.sub.
9087 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
9088 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
9089 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
9090 { (exit 1); exit 1; }; }
9092 { $as_echo "$as_me:$LINENO: checking build system type" >&5
9093 $as_echo_n "checking build system type... " >&6; }
9094 if test "${ac_cv_build+set}" = set; then
9095 $as_echo_n "(cached) " >&6
9096 else
9097 ac_build_alias=$build_alias
9098 test "x$ac_build_alias" = x &&
9099 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
9100 test "x$ac_build_alias" = x &&
9101 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
9102 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
9103 { (exit 1); exit 1; }; }
9104 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
9105 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
9106 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
9107 { (exit 1); exit 1; }; }
9110 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
9111 $as_echo "$ac_cv_build" >&6; }
9112 case $ac_cv_build in
9113 *-*-*) ;;
9114 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
9115 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
9116 { (exit 1); exit 1; }; };;
9117 esac
9118 build=$ac_cv_build
9119 ac_save_IFS=$IFS; IFS='-'
9120 set x $ac_cv_build
9121 shift
9122 build_cpu=$1
9123 build_vendor=$2
9124 shift; shift
9125 # Remember, the first character of IFS is used to create $*,
9126 # except with old shells:
9127 build_os=$*
9128 IFS=$ac_save_IFS
9129 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
9132 { $as_echo "$as_me:$LINENO: checking host system type" >&5
9133 $as_echo_n "checking host system type... " >&6; }
9134 if test "${ac_cv_host+set}" = set; then
9135 $as_echo_n "(cached) " >&6
9136 else
9137 if test "x$host_alias" = x; then
9138 ac_cv_host=$ac_cv_build
9139 else
9140 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
9141 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
9142 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
9143 { (exit 1); exit 1; }; }
9147 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
9148 $as_echo "$ac_cv_host" >&6; }
9149 case $ac_cv_host in
9150 *-*-*) ;;
9151 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
9152 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
9153 { (exit 1); exit 1; }; };;
9154 esac
9155 host=$ac_cv_host
9156 ac_save_IFS=$IFS; IFS='-'
9157 set x $ac_cv_host
9158 shift
9159 host_cpu=$1
9160 host_vendor=$2
9161 shift; shift
9162 # Remember, the first character of IFS is used to create $*,
9163 # except with old shells:
9164 host_os=$*
9165 IFS=$ac_save_IFS
9166 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
9170 if test "X$prefix" = "XNONE"; then
9171 acl_final_prefix="$ac_default_prefix"
9172 else
9173 acl_final_prefix="$prefix"
9175 if test "X$exec_prefix" = "XNONE"; then
9176 acl_final_exec_prefix='${prefix}'
9177 else
9178 acl_final_exec_prefix="$exec_prefix"
9180 acl_save_prefix="$prefix"
9181 prefix="$acl_final_prefix"
9182 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9183 prefix="$acl_save_prefix"
9186 # Check whether --with-gnu-ld was given.
9187 if test "${with_gnu_ld+set}" = set; then
9188 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9189 else
9190 with_gnu_ld=no
9193 # Prepare PATH_SEPARATOR.
9194 # The user is always right.
9195 if test "${PATH_SEPARATOR+set}" != set; then
9196 echo "#! /bin/sh" >conf$$.sh
9197 echo "exit 0" >>conf$$.sh
9198 chmod +x conf$$.sh
9199 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9200 PATH_SEPARATOR=';'
9201 else
9202 PATH_SEPARATOR=:
9204 rm -f conf$$.sh
9206 ac_prog=ld
9207 if test "$GCC" = yes; then
9208 # Check if gcc -print-prog-name=ld gives a path.
9209 { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
9210 $as_echo_n "checking for ld used by GCC... " >&6; }
9211 case $host in
9212 *-*-mingw*)
9213 # gcc leaves a trailing carriage return which upsets mingw
9214 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9216 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9217 esac
9218 case $ac_prog in
9219 # Accept absolute paths.
9220 [\\/]* | [A-Za-z]:[\\/]*)
9221 re_direlt='/[^/][^/]*/\.\./'
9222 # Canonicalize the path of ld
9223 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9224 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9225 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9226 done
9227 test -z "$LD" && LD="$ac_prog"
9230 # If it fails, then pretend we aren't using GCC.
9231 ac_prog=ld
9234 # If it is relative, then search for the first ld in PATH.
9235 with_gnu_ld=unknown
9237 esac
9238 elif test "$with_gnu_ld" = yes; then
9239 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
9240 $as_echo_n "checking for GNU ld... " >&6; }
9241 else
9242 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9243 $as_echo_n "checking for non-GNU ld... " >&6; }
9245 if test "${acl_cv_path_LD+set}" = set; then
9246 $as_echo_n "(cached) " >&6
9247 else
9248 if test -z "$LD"; then
9249 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9250 for ac_dir in $PATH; do
9251 test -z "$ac_dir" && ac_dir=.
9252 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9253 acl_cv_path_LD="$ac_dir/$ac_prog"
9254 # Check to see if the program is GNU ld. I'd rather use --version,
9255 # but apparently some GNU ld's only accept -v.
9256 # Break only if it was the GNU/non-GNU ld that we prefer.
9257 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
9258 *GNU* | *'with BFD'*)
9259 test "$with_gnu_ld" != no && break ;;
9261 test "$with_gnu_ld" != yes && break ;;
9262 esac
9264 done
9265 IFS="$ac_save_ifs"
9266 else
9267 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9271 LD="$acl_cv_path_LD"
9272 if test -n "$LD"; then
9273 { $as_echo "$as_me:$LINENO: result: $LD" >&5
9274 $as_echo "$LD" >&6; }
9275 else
9276 { $as_echo "$as_me:$LINENO: result: no" >&5
9277 $as_echo "no" >&6; }
9279 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9280 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9281 { (exit 1); exit 1; }; }
9282 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9283 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9284 if test "${acl_cv_prog_gnu_ld+set}" = set; then
9285 $as_echo_n "(cached) " >&6
9286 else
9287 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9288 case `$LD -v 2>&1 </dev/null` in
9289 *GNU* | *'with BFD'*)
9290 acl_cv_prog_gnu_ld=yes ;;
9292 acl_cv_prog_gnu_ld=no ;;
9293 esac
9295 { $as_echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
9296 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9297 with_gnu_ld=$acl_cv_prog_gnu_ld
9302 { $as_echo "$as_me:$LINENO: checking for shared library run path origin" >&5
9303 $as_echo_n "checking for shared library run path origin... " >&6; }
9304 if test "${acl_cv_rpath+set}" = set; then
9305 $as_echo_n "(cached) " >&6
9306 else
9308 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9309 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9310 . ./conftest.sh
9311 rm -f ./conftest.sh
9312 acl_cv_rpath=done
9315 { $as_echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
9316 $as_echo "$acl_cv_rpath" >&6; }
9317 wl="$acl_cv_wl"
9318 acl_libext="$acl_cv_libext"
9319 acl_shlibext="$acl_cv_shlibext"
9320 acl_libname_spec="$acl_cv_libname_spec"
9321 acl_library_names_spec="$acl_cv_library_names_spec"
9322 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9323 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9324 acl_hardcode_direct="$acl_cv_hardcode_direct"
9325 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
9326 # Check whether --enable-rpath was given.
9327 if test "${enable_rpath+set}" = set; then
9328 enableval=$enable_rpath; :
9329 else
9330 enable_rpath=yes
9336 acl_libdirstem=lib
9337 acl_libdirstem2=
9338 case "$host_os" in
9339 solaris*)
9340 { $as_echo "$as_me:$LINENO: checking for 64-bit host" >&5
9341 $as_echo_n "checking for 64-bit host... " >&6; }
9342 if test "${gl_cv_solaris_64bit+set}" = set; then
9343 $as_echo_n "(cached) " >&6
9344 else
9345 cat >conftest.$ac_ext <<_ACEOF
9346 /* confdefs.h. */
9347 _ACEOF
9348 cat confdefs.h >>conftest.$ac_ext
9349 cat >>conftest.$ac_ext <<_ACEOF
9350 /* end confdefs.h. */
9352 #ifdef _LP64
9353 sixtyfour bits
9354 #endif
9356 _ACEOF
9357 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9358 $EGREP "sixtyfour bits" >/dev/null 2>&1; then
9359 gl_cv_solaris_64bit=yes
9360 else
9361 gl_cv_solaris_64bit=no
9363 rm -f conftest*
9367 { $as_echo "$as_me:$LINENO: result: $gl_cv_solaris_64bit" >&5
9368 $as_echo "$gl_cv_solaris_64bit" >&6; }
9369 if test $gl_cv_solaris_64bit = yes; then
9370 acl_libdirstem=lib/64
9371 case "$host_cpu" in
9372 sparc*) acl_libdirstem2=lib/sparcv9 ;;
9373 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
9374 esac
9378 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
9379 if test -n "$searchpath"; then
9380 acl_save_IFS="${IFS= }"; IFS=":"
9381 for searchdir in $searchpath; do
9382 if test -d "$searchdir"; then
9383 case "$searchdir" in
9384 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
9385 *) searchdir=`cd "$searchdir" && pwd`
9386 case "$searchdir" in
9387 */lib64 ) acl_libdirstem=lib64 ;;
9388 esac ;;
9389 esac
9391 done
9392 IFS="$acl_save_IFS"
9395 esac
9396 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
9409 use_additional=yes
9411 acl_save_prefix="$prefix"
9412 prefix="$acl_final_prefix"
9413 acl_save_exec_prefix="$exec_prefix"
9414 exec_prefix="$acl_final_exec_prefix"
9416 eval additional_includedir=\"$includedir\"
9417 eval additional_libdir=\"$libdir\"
9419 exec_prefix="$acl_save_exec_prefix"
9420 prefix="$acl_save_prefix"
9423 # Check whether --with-libiconv-prefix was given.
9424 if test "${with_libiconv_prefix+set}" = set; then
9425 withval=$with_libiconv_prefix;
9426 if test "X$withval" = "Xno"; then
9427 use_additional=no
9428 else
9429 if test "X$withval" = "X"; then
9431 acl_save_prefix="$prefix"
9432 prefix="$acl_final_prefix"
9433 acl_save_exec_prefix="$exec_prefix"
9434 exec_prefix="$acl_final_exec_prefix"
9436 eval additional_includedir=\"$includedir\"
9437 eval additional_libdir=\"$libdir\"
9439 exec_prefix="$acl_save_exec_prefix"
9440 prefix="$acl_save_prefix"
9442 else
9443 additional_includedir="$withval/include"
9444 additional_libdir="$withval/$acl_libdirstem"
9445 if test "$acl_libdirstem2" != "$acl_libdirstem" \
9446 && ! test -d "$withval/$acl_libdirstem"; then
9447 additional_libdir="$withval/$acl_libdirstem2"
9454 LIBICONV=
9455 LTLIBICONV=
9456 INCICONV=
9457 LIBICONV_PREFIX=
9458 rpathdirs=
9459 ltrpathdirs=
9460 names_already_handled=
9461 names_next_round='iconv '
9462 while test -n "$names_next_round"; do
9463 names_this_round="$names_next_round"
9464 names_next_round=
9465 for name in $names_this_round; do
9466 already_handled=
9467 for n in $names_already_handled; do
9468 if test "$n" = "$name"; then
9469 already_handled=yes
9470 break
9472 done
9473 if test -z "$already_handled"; then
9474 names_already_handled="$names_already_handled $name"
9475 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9476 eval value=\"\$HAVE_LIB$uppername\"
9477 if test -n "$value"; then
9478 if test "$value" = yes; then
9479 eval value=\"\$LIB$uppername\"
9480 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9481 eval value=\"\$LTLIB$uppername\"
9482 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9483 else
9486 else
9487 found_dir=
9488 found_la=
9489 found_so=
9490 found_a=
9491 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
9492 if test -n "$acl_shlibext"; then
9493 shrext=".$acl_shlibext" # typically: shrext=.so
9494 else
9495 shrext=
9497 if test $use_additional = yes; then
9498 dir="$additional_libdir"
9499 if test -n "$acl_shlibext"; then
9500 if test -f "$dir/$libname$shrext"; then
9501 found_dir="$dir"
9502 found_so="$dir/$libname$shrext"
9503 else
9504 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
9505 ver=`(cd "$dir" && \
9506 for f in "$libname$shrext".*; do echo "$f"; done \
9507 | sed -e "s,^$libname$shrext\\\\.,," \
9508 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
9509 | sed 1q ) 2>/dev/null`
9510 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
9511 found_dir="$dir"
9512 found_so="$dir/$libname$shrext.$ver"
9514 else
9515 eval library_names=\"$acl_library_names_spec\"
9516 for f in $library_names; do
9517 if test -f "$dir/$f"; then
9518 found_dir="$dir"
9519 found_so="$dir/$f"
9520 break
9522 done
9526 if test "X$found_dir" = "X"; then
9527 if test -f "$dir/$libname.$acl_libext"; then
9528 found_dir="$dir"
9529 found_a="$dir/$libname.$acl_libext"
9532 if test "X$found_dir" != "X"; then
9533 if test -f "$dir/$libname.la"; then
9534 found_la="$dir/$libname.la"
9538 if test "X$found_dir" = "X"; then
9539 for x in $LDFLAGS $LTLIBICONV; do
9541 acl_save_prefix="$prefix"
9542 prefix="$acl_final_prefix"
9543 acl_save_exec_prefix="$exec_prefix"
9544 exec_prefix="$acl_final_exec_prefix"
9545 eval x=\"$x\"
9546 exec_prefix="$acl_save_exec_prefix"
9547 prefix="$acl_save_prefix"
9549 case "$x" in
9550 -L*)
9551 dir=`echo "X$x" | sed -e 's/^X-L//'`
9552 if test -n "$acl_shlibext"; then
9553 if test -f "$dir/$libname$shrext"; then
9554 found_dir="$dir"
9555 found_so="$dir/$libname$shrext"
9556 else
9557 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
9558 ver=`(cd "$dir" && \
9559 for f in "$libname$shrext".*; do echo "$f"; done \
9560 | sed -e "s,^$libname$shrext\\\\.,," \
9561 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
9562 | sed 1q ) 2>/dev/null`
9563 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
9564 found_dir="$dir"
9565 found_so="$dir/$libname$shrext.$ver"
9567 else
9568 eval library_names=\"$acl_library_names_spec\"
9569 for f in $library_names; do
9570 if test -f "$dir/$f"; then
9571 found_dir="$dir"
9572 found_so="$dir/$f"
9573 break
9575 done
9579 if test "X$found_dir" = "X"; then
9580 if test -f "$dir/$libname.$acl_libext"; then
9581 found_dir="$dir"
9582 found_a="$dir/$libname.$acl_libext"
9585 if test "X$found_dir" != "X"; then
9586 if test -f "$dir/$libname.la"; then
9587 found_la="$dir/$libname.la"
9591 esac
9592 if test "X$found_dir" != "X"; then
9593 break
9595 done
9597 if test "X$found_dir" != "X"; then
9598 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9599 if test "X$found_so" != "X"; then
9600 if test "$enable_rpath" = no \
9601 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
9602 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
9603 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9604 else
9605 haveit=
9606 for x in $ltrpathdirs; do
9607 if test "X$x" = "X$found_dir"; then
9608 haveit=yes
9609 break
9611 done
9612 if test -z "$haveit"; then
9613 ltrpathdirs="$ltrpathdirs $found_dir"
9615 if test "$acl_hardcode_direct" = yes; then
9616 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9617 else
9618 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
9619 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9620 haveit=
9621 for x in $rpathdirs; do
9622 if test "X$x" = "X$found_dir"; then
9623 haveit=yes
9624 break
9626 done
9627 if test -z "$haveit"; then
9628 rpathdirs="$rpathdirs $found_dir"
9630 else
9631 haveit=
9632 for x in $LDFLAGS $LIBICONV; do
9634 acl_save_prefix="$prefix"
9635 prefix="$acl_final_prefix"
9636 acl_save_exec_prefix="$exec_prefix"
9637 exec_prefix="$acl_final_exec_prefix"
9638 eval x=\"$x\"
9639 exec_prefix="$acl_save_exec_prefix"
9640 prefix="$acl_save_prefix"
9642 if test "X$x" = "X-L$found_dir"; then
9643 haveit=yes
9644 break
9646 done
9647 if test -z "$haveit"; then
9648 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9650 if test "$acl_hardcode_minus_L" != no; then
9651 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9652 else
9653 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9658 else
9659 if test "X$found_a" != "X"; then
9660 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9661 else
9662 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9665 additional_includedir=
9666 case "$found_dir" in
9667 */$acl_libdirstem | */$acl_libdirstem/)
9668 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
9669 if test "$name" = 'iconv'; then
9670 LIBICONV_PREFIX="$basedir"
9672 additional_includedir="$basedir/include"
9674 */$acl_libdirstem2 | */$acl_libdirstem2/)
9675 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
9676 if test "$name" = 'iconv'; then
9677 LIBICONV_PREFIX="$basedir"
9679 additional_includedir="$basedir/include"
9681 esac
9682 if test "X$additional_includedir" != "X"; then
9683 if test "X$additional_includedir" != "X/usr/include"; then
9684 haveit=
9685 if test "X$additional_includedir" = "X/usr/local/include"; then
9686 if test -n "$GCC"; then
9687 case $host_os in
9688 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9689 esac
9692 if test -z "$haveit"; then
9693 for x in $CPPFLAGS $INCICONV; do
9695 acl_save_prefix="$prefix"
9696 prefix="$acl_final_prefix"
9697 acl_save_exec_prefix="$exec_prefix"
9698 exec_prefix="$acl_final_exec_prefix"
9699 eval x=\"$x\"
9700 exec_prefix="$acl_save_exec_prefix"
9701 prefix="$acl_save_prefix"
9703 if test "X$x" = "X-I$additional_includedir"; then
9704 haveit=yes
9705 break
9707 done
9708 if test -z "$haveit"; then
9709 if test -d "$additional_includedir"; then
9710 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9716 if test -n "$found_la"; then
9717 save_libdir="$libdir"
9718 case "$found_la" in
9719 */* | *\\*) . "$found_la" ;;
9720 *) . "./$found_la" ;;
9721 esac
9722 libdir="$save_libdir"
9723 for dep in $dependency_libs; do
9724 case "$dep" in
9725 -L*)
9726 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9727 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
9728 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
9729 haveit=
9730 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
9731 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
9732 if test -n "$GCC"; then
9733 case $host_os in
9734 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9735 esac
9738 if test -z "$haveit"; then
9739 haveit=
9740 for x in $LDFLAGS $LIBICONV; do
9742 acl_save_prefix="$prefix"
9743 prefix="$acl_final_prefix"
9744 acl_save_exec_prefix="$exec_prefix"
9745 exec_prefix="$acl_final_exec_prefix"
9746 eval x=\"$x\"
9747 exec_prefix="$acl_save_exec_prefix"
9748 prefix="$acl_save_prefix"
9750 if test "X$x" = "X-L$additional_libdir"; then
9751 haveit=yes
9752 break
9754 done
9755 if test -z "$haveit"; then
9756 if test -d "$additional_libdir"; then
9757 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9760 haveit=
9761 for x in $LDFLAGS $LTLIBICONV; do
9763 acl_save_prefix="$prefix"
9764 prefix="$acl_final_prefix"
9765 acl_save_exec_prefix="$exec_prefix"
9766 exec_prefix="$acl_final_exec_prefix"
9767 eval x=\"$x\"
9768 exec_prefix="$acl_save_exec_prefix"
9769 prefix="$acl_save_prefix"
9771 if test "X$x" = "X-L$additional_libdir"; then
9772 haveit=yes
9773 break
9775 done
9776 if test -z "$haveit"; then
9777 if test -d "$additional_libdir"; then
9778 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9784 -R*)
9785 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9786 if test "$enable_rpath" != no; then
9787 haveit=
9788 for x in $rpathdirs; do
9789 if test "X$x" = "X$dir"; then
9790 haveit=yes
9791 break
9793 done
9794 if test -z "$haveit"; then
9795 rpathdirs="$rpathdirs $dir"
9797 haveit=
9798 for x in $ltrpathdirs; do
9799 if test "X$x" = "X$dir"; then
9800 haveit=yes
9801 break
9803 done
9804 if test -z "$haveit"; then
9805 ltrpathdirs="$ltrpathdirs $dir"
9809 -l*)
9810 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9812 *.la)
9813 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9816 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9817 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9819 esac
9820 done
9822 else
9823 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9824 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9828 done
9829 done
9830 if test "X$rpathdirs" != "X"; then
9831 if test -n "$acl_hardcode_libdir_separator"; then
9832 alldirs=
9833 for found_dir in $rpathdirs; do
9834 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
9835 done
9836 acl_save_libdir="$libdir"
9837 libdir="$alldirs"
9838 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9839 libdir="$acl_save_libdir"
9840 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9841 else
9842 for found_dir in $rpathdirs; do
9843 acl_save_libdir="$libdir"
9844 libdir="$found_dir"
9845 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9846 libdir="$acl_save_libdir"
9847 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9848 done
9851 if test "X$ltrpathdirs" != "X"; then
9852 for found_dir in $ltrpathdirs; do
9853 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9854 done
9868 am_save_CPPFLAGS="$CPPFLAGS"
9870 for element in $INCICONV; do
9871 haveit=
9872 for x in $CPPFLAGS; do
9874 acl_save_prefix="$prefix"
9875 prefix="$acl_final_prefix"
9876 acl_save_exec_prefix="$exec_prefix"
9877 exec_prefix="$acl_final_exec_prefix"
9878 eval x=\"$x\"
9879 exec_prefix="$acl_save_exec_prefix"
9880 prefix="$acl_save_prefix"
9882 if test "X$x" = "X$element"; then
9883 haveit=yes
9884 break
9886 done
9887 if test -z "$haveit"; then
9888 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9890 done
9893 { $as_echo "$as_me:$LINENO: checking for iconv" >&5
9894 $as_echo_n "checking for iconv... " >&6; }
9895 if test "${am_cv_func_iconv+set}" = set; then
9896 $as_echo_n "(cached) " >&6
9897 else
9899 am_cv_func_iconv="no, consider installing GNU libiconv"
9900 am_cv_lib_iconv=no
9901 cat >conftest.$ac_ext <<_ACEOF
9902 /* confdefs.h. */
9903 _ACEOF
9904 cat confdefs.h >>conftest.$ac_ext
9905 cat >>conftest.$ac_ext <<_ACEOF
9906 /* end confdefs.h. */
9907 #include <stdlib.h>
9908 #include <iconv.h>
9910 main ()
9912 iconv_t cd = iconv_open("","");
9913 iconv(cd,NULL,NULL,NULL,NULL);
9914 iconv_close(cd);
9916 return 0;
9918 _ACEOF
9919 rm -f conftest.$ac_objext conftest$ac_exeext
9920 if { (ac_try="$ac_link"
9921 case "(($ac_try" in
9922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9923 *) ac_try_echo=$ac_try;;
9924 esac
9925 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9926 $as_echo "$ac_try_echo") >&5
9927 (eval "$ac_link") 2>conftest.er1
9928 ac_status=$?
9929 grep -v '^ *+' conftest.er1 >conftest.err
9930 rm -f conftest.er1
9931 cat conftest.err >&5
9932 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9933 (exit $ac_status); } && {
9934 test -z "$ac_c_werror_flag" ||
9935 test ! -s conftest.err
9936 } && test -s conftest$ac_exeext && {
9937 test "$cross_compiling" = yes ||
9938 $as_test_x conftest$ac_exeext
9939 }; then
9940 am_cv_func_iconv=yes
9941 else
9942 $as_echo "$as_me: failed program was:" >&5
9943 sed 's/^/| /' conftest.$ac_ext >&5
9948 rm -rf conftest.dSYM
9949 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9950 conftest$ac_exeext conftest.$ac_ext
9951 if test "$am_cv_func_iconv" != yes; then
9952 am_save_LIBS="$LIBS"
9953 LIBS="$LIBS $LIBICONV"
9954 cat >conftest.$ac_ext <<_ACEOF
9955 /* confdefs.h. */
9956 _ACEOF
9957 cat confdefs.h >>conftest.$ac_ext
9958 cat >>conftest.$ac_ext <<_ACEOF
9959 /* end confdefs.h. */
9960 #include <stdlib.h>
9961 #include <iconv.h>
9963 main ()
9965 iconv_t cd = iconv_open("","");
9966 iconv(cd,NULL,NULL,NULL,NULL);
9967 iconv_close(cd);
9969 return 0;
9971 _ACEOF
9972 rm -f conftest.$ac_objext conftest$ac_exeext
9973 if { (ac_try="$ac_link"
9974 case "(($ac_try" in
9975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9976 *) ac_try_echo=$ac_try;;
9977 esac
9978 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9979 $as_echo "$ac_try_echo") >&5
9980 (eval "$ac_link") 2>conftest.er1
9981 ac_status=$?
9982 grep -v '^ *+' conftest.er1 >conftest.err
9983 rm -f conftest.er1
9984 cat conftest.err >&5
9985 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9986 (exit $ac_status); } && {
9987 test -z "$ac_c_werror_flag" ||
9988 test ! -s conftest.err
9989 } && test -s conftest$ac_exeext && {
9990 test "$cross_compiling" = yes ||
9991 $as_test_x conftest$ac_exeext
9992 }; then
9993 am_cv_lib_iconv=yes
9994 am_cv_func_iconv=yes
9995 else
9996 $as_echo "$as_me: failed program was:" >&5
9997 sed 's/^/| /' conftest.$ac_ext >&5
10002 rm -rf conftest.dSYM
10003 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10004 conftest$ac_exeext conftest.$ac_ext
10005 LIBS="$am_save_LIBS"
10009 { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10010 $as_echo "$am_cv_func_iconv" >&6; }
10011 if test "$am_cv_func_iconv" = yes; then
10012 { $as_echo "$as_me:$LINENO: checking for working iconv" >&5
10013 $as_echo_n "checking for working iconv... " >&6; }
10014 if test "${am_cv_func_iconv_works+set}" = set; then
10015 $as_echo_n "(cached) " >&6
10016 else
10018 am_save_LIBS="$LIBS"
10019 if test $am_cv_lib_iconv = yes; then
10020 LIBS="$LIBS $LIBICONV"
10022 if test "$cross_compiling" = yes; then
10023 case "$host_os" in
10024 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
10025 *) am_cv_func_iconv_works="guessing yes" ;;
10026 esac
10027 else
10028 cat >conftest.$ac_ext <<_ACEOF
10029 /* confdefs.h. */
10030 _ACEOF
10031 cat confdefs.h >>conftest.$ac_ext
10032 cat >>conftest.$ac_ext <<_ACEOF
10033 /* end confdefs.h. */
10035 #include <iconv.h>
10036 #include <string.h>
10037 int main ()
10039 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
10040 returns. */
10042 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
10043 if (cd_utf8_to_88591 != (iconv_t)(-1))
10045 static const char input[] = "\342\202\254"; /* EURO SIGN */
10046 char buf[10];
10047 const char *inptr = input;
10048 size_t inbytesleft = strlen (input);
10049 char *outptr = buf;
10050 size_t outbytesleft = sizeof (buf);
10051 size_t res = iconv (cd_utf8_to_88591,
10052 (char **) &inptr, &inbytesleft,
10053 &outptr, &outbytesleft);
10054 if (res == 0)
10055 return 1;
10058 #if 0 /* This bug could be worked around by the caller. */
10059 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
10061 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
10062 if (cd_88591_to_utf8 != (iconv_t)(-1))
10064 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
10065 char buf[50];
10066 const char *inptr = input;
10067 size_t inbytesleft = strlen (input);
10068 char *outptr = buf;
10069 size_t outbytesleft = sizeof (buf);
10070 size_t res = iconv (cd_88591_to_utf8,
10071 (char **) &inptr, &inbytesleft,
10072 &outptr, &outbytesleft);
10073 if ((int)res > 0)
10074 return 1;
10077 #endif
10078 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
10079 provided. */
10080 if (/* Try standardized names. */
10081 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
10082 /* Try IRIX, OSF/1 names. */
10083 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
10084 /* Try AIX names. */
10085 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
10086 /* Try HP-UX names. */
10087 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
10088 return 1;
10089 return 0;
10091 _ACEOF
10092 rm -f conftest$ac_exeext
10093 if { (ac_try="$ac_link"
10094 case "(($ac_try" in
10095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10096 *) ac_try_echo=$ac_try;;
10097 esac
10098 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10099 $as_echo "$ac_try_echo") >&5
10100 (eval "$ac_link") 2>&5
10101 ac_status=$?
10102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10103 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10104 { (case "(($ac_try" in
10105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10106 *) ac_try_echo=$ac_try;;
10107 esac
10108 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10109 $as_echo "$ac_try_echo") >&5
10110 (eval "$ac_try") 2>&5
10111 ac_status=$?
10112 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10113 (exit $ac_status); }; }; then
10114 am_cv_func_iconv_works=yes
10115 else
10116 $as_echo "$as_me: program exited with status $ac_status" >&5
10117 $as_echo "$as_me: failed program was:" >&5
10118 sed 's/^/| /' conftest.$ac_ext >&5
10120 ( exit $ac_status )
10121 am_cv_func_iconv_works=no
10123 rm -rf conftest.dSYM
10124 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10128 LIBS="$am_save_LIBS"
10131 { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv_works" >&5
10132 $as_echo "$am_cv_func_iconv_works" >&6; }
10133 case "$am_cv_func_iconv_works" in
10134 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
10135 *) am_func_iconv=yes ;;
10136 esac
10137 else
10138 am_func_iconv=no am_cv_lib_iconv=no
10140 if test "$am_func_iconv" = yes; then
10142 cat >>confdefs.h <<\_ACEOF
10143 #define HAVE_ICONV 1
10144 _ACEOF
10147 if test "$am_cv_lib_iconv" = yes; then
10148 { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
10149 $as_echo_n "checking how to link with libiconv... " >&6; }
10150 { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
10151 $as_echo "$LIBICONV" >&6; }
10152 else
10153 CPPFLAGS="$am_save_CPPFLAGS"
10154 LIBICONV=
10155 LTLIBICONV=
10160 if test "$am_cv_func_iconv" = yes; then
10161 { $as_echo "$as_me:$LINENO: checking for iconv declaration" >&5
10162 $as_echo_n "checking for iconv declaration... " >&6; }
10163 if test "${am_cv_proto_iconv+set}" = set; then
10164 $as_echo_n "(cached) " >&6
10165 else
10167 cat >conftest.$ac_ext <<_ACEOF
10168 /* confdefs.h. */
10169 _ACEOF
10170 cat confdefs.h >>conftest.$ac_ext
10171 cat >>conftest.$ac_ext <<_ACEOF
10172 /* end confdefs.h. */
10174 #include <stdlib.h>
10175 #include <iconv.h>
10176 extern
10177 #ifdef __cplusplus
10179 #endif
10180 #if defined(__STDC__) || defined(__cplusplus)
10181 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10182 #else
10183 size_t iconv();
10184 #endif
10187 main ()
10191 return 0;
10193 _ACEOF
10194 rm -f conftest.$ac_objext
10195 if { (ac_try="$ac_compile"
10196 case "(($ac_try" in
10197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10198 *) ac_try_echo=$ac_try;;
10199 esac
10200 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10201 $as_echo "$ac_try_echo") >&5
10202 (eval "$ac_compile") 2>conftest.er1
10203 ac_status=$?
10204 grep -v '^ *+' conftest.er1 >conftest.err
10205 rm -f conftest.er1
10206 cat conftest.err >&5
10207 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10208 (exit $ac_status); } && {
10209 test -z "$ac_c_werror_flag" ||
10210 test ! -s conftest.err
10211 } && test -s conftest.$ac_objext; then
10212 am_cv_proto_iconv_arg1=""
10213 else
10214 $as_echo "$as_me: failed program was:" >&5
10215 sed 's/^/| /' conftest.$ac_ext >&5
10217 am_cv_proto_iconv_arg1="const"
10220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10221 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);"
10224 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10225 { $as_echo "$as_me:$LINENO: result: ${ac_t:-
10226 }$am_cv_proto_iconv" >&5
10227 $as_echo "${ac_t:-
10228 }$am_cv_proto_iconv" >&6; }
10230 cat >>confdefs.h <<_ACEOF
10231 #define ICONV_CONST $am_cv_proto_iconv_arg1
10232 _ACEOF
10237 # checks for functions
10240 for ac_header in stdlib.h unistd.h
10242 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10243 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10244 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10245 $as_echo_n "checking for $ac_header... " >&6; }
10246 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10247 $as_echo_n "(cached) " >&6
10249 ac_res=`eval 'as_val=${'$as_ac_Header'}
10250 $as_echo "$as_val"'`
10251 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10252 $as_echo "$ac_res" >&6; }
10253 else
10254 # Is the header compilable?
10255 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10256 $as_echo_n "checking $ac_header usability... " >&6; }
10257 cat >conftest.$ac_ext <<_ACEOF
10258 /* confdefs.h. */
10259 _ACEOF
10260 cat confdefs.h >>conftest.$ac_ext
10261 cat >>conftest.$ac_ext <<_ACEOF
10262 /* end confdefs.h. */
10263 $ac_includes_default
10264 #include <$ac_header>
10265 _ACEOF
10266 rm -f conftest.$ac_objext
10267 if { (ac_try="$ac_compile"
10268 case "(($ac_try" in
10269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10270 *) ac_try_echo=$ac_try;;
10271 esac
10272 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10273 $as_echo "$ac_try_echo") >&5
10274 (eval "$ac_compile") 2>conftest.er1
10275 ac_status=$?
10276 grep -v '^ *+' conftest.er1 >conftest.err
10277 rm -f conftest.er1
10278 cat conftest.err >&5
10279 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10280 (exit $ac_status); } && {
10281 test -z "$ac_c_werror_flag" ||
10282 test ! -s conftest.err
10283 } && test -s conftest.$ac_objext; then
10284 ac_header_compiler=yes
10285 else
10286 $as_echo "$as_me: failed program was:" >&5
10287 sed 's/^/| /' conftest.$ac_ext >&5
10289 ac_header_compiler=no
10292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10293 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10294 $as_echo "$ac_header_compiler" >&6; }
10296 # Is the header present?
10297 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10298 $as_echo_n "checking $ac_header presence... " >&6; }
10299 cat >conftest.$ac_ext <<_ACEOF
10300 /* confdefs.h. */
10301 _ACEOF
10302 cat confdefs.h >>conftest.$ac_ext
10303 cat >>conftest.$ac_ext <<_ACEOF
10304 /* end confdefs.h. */
10305 #include <$ac_header>
10306 _ACEOF
10307 if { (ac_try="$ac_cpp conftest.$ac_ext"
10308 case "(($ac_try" in
10309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10310 *) ac_try_echo=$ac_try;;
10311 esac
10312 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10313 $as_echo "$ac_try_echo") >&5
10314 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10315 ac_status=$?
10316 grep -v '^ *+' conftest.er1 >conftest.err
10317 rm -f conftest.er1
10318 cat conftest.err >&5
10319 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10320 (exit $ac_status); } >/dev/null && {
10321 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10322 test ! -s conftest.err
10323 }; then
10324 ac_header_preproc=yes
10325 else
10326 $as_echo "$as_me: failed program was:" >&5
10327 sed 's/^/| /' conftest.$ac_ext >&5
10329 ac_header_preproc=no
10332 rm -f conftest.err conftest.$ac_ext
10333 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10334 $as_echo "$ac_header_preproc" >&6; }
10336 # So? What about this header?
10337 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10338 yes:no: )
10339 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10340 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10341 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10342 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10343 ac_header_preproc=yes
10345 no:yes:* )
10346 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10347 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10348 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10349 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10350 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10351 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10352 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10353 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10354 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10355 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10356 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10357 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10360 esac
10361 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10362 $as_echo_n "checking for $ac_header... " >&6; }
10363 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10364 $as_echo_n "(cached) " >&6
10365 else
10366 eval "$as_ac_Header=\$ac_header_preproc"
10368 ac_res=`eval 'as_val=${'$as_ac_Header'}
10369 $as_echo "$as_val"'`
10370 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10371 $as_echo "$ac_res" >&6; }
10374 as_val=`eval 'as_val=${'$as_ac_Header'}
10375 $as_echo "$as_val"'`
10376 if test "x$as_val" = x""yes; then
10377 cat >>confdefs.h <<_ACEOF
10378 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10379 _ACEOF
10383 done
10386 for ac_func in getpagesize
10388 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10389 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10390 $as_echo_n "checking for $ac_func... " >&6; }
10391 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10392 $as_echo_n "(cached) " >&6
10393 else
10394 cat >conftest.$ac_ext <<_ACEOF
10395 /* confdefs.h. */
10396 _ACEOF
10397 cat confdefs.h >>conftest.$ac_ext
10398 cat >>conftest.$ac_ext <<_ACEOF
10399 /* end confdefs.h. */
10400 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10401 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10402 #define $ac_func innocuous_$ac_func
10404 /* System header to define __stub macros and hopefully few prototypes,
10405 which can conflict with char $ac_func (); below.
10406 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10407 <limits.h> exists even on freestanding compilers. */
10409 #ifdef __STDC__
10410 # include <limits.h>
10411 #else
10412 # include <assert.h>
10413 #endif
10415 #undef $ac_func
10417 /* Override any GCC internal prototype to avoid an error.
10418 Use char because int might match the return type of a GCC
10419 builtin and then its argument prototype would still apply. */
10420 #ifdef __cplusplus
10421 extern "C"
10422 #endif
10423 char $ac_func ();
10424 /* The GNU C library defines this for functions which it implements
10425 to always fail with ENOSYS. Some functions are actually named
10426 something starting with __ and the normal name is an alias. */
10427 #if defined __stub_$ac_func || defined __stub___$ac_func
10428 choke me
10429 #endif
10432 main ()
10434 return $ac_func ();
10436 return 0;
10438 _ACEOF
10439 rm -f conftest.$ac_objext conftest$ac_exeext
10440 if { (ac_try="$ac_link"
10441 case "(($ac_try" in
10442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10443 *) ac_try_echo=$ac_try;;
10444 esac
10445 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10446 $as_echo "$ac_try_echo") >&5
10447 (eval "$ac_link") 2>conftest.er1
10448 ac_status=$?
10449 grep -v '^ *+' conftest.er1 >conftest.err
10450 rm -f conftest.er1
10451 cat conftest.err >&5
10452 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10453 (exit $ac_status); } && {
10454 test -z "$ac_c_werror_flag" ||
10455 test ! -s conftest.err
10456 } && test -s conftest$ac_exeext && {
10457 test "$cross_compiling" = yes ||
10458 $as_test_x conftest$ac_exeext
10459 }; then
10460 eval "$as_ac_var=yes"
10461 else
10462 $as_echo "$as_me: failed program was:" >&5
10463 sed 's/^/| /' conftest.$ac_ext >&5
10465 eval "$as_ac_var=no"
10468 rm -rf conftest.dSYM
10469 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10470 conftest$ac_exeext conftest.$ac_ext
10472 ac_res=`eval 'as_val=${'$as_ac_var'}
10473 $as_echo "$as_val"'`
10474 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10475 $as_echo "$ac_res" >&6; }
10476 as_val=`eval 'as_val=${'$as_ac_var'}
10477 $as_echo "$as_val"'`
10478 if test "x$as_val" = x""yes; then
10479 cat >>confdefs.h <<_ACEOF
10480 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10481 _ACEOF
10484 done
10486 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
10487 $as_echo_n "checking for working mmap... " >&6; }
10488 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10489 $as_echo_n "(cached) " >&6
10490 else
10491 if test "$cross_compiling" = yes; then
10492 ac_cv_func_mmap_fixed_mapped=no
10493 else
10494 cat >conftest.$ac_ext <<_ACEOF
10495 /* confdefs.h. */
10496 _ACEOF
10497 cat confdefs.h >>conftest.$ac_ext
10498 cat >>conftest.$ac_ext <<_ACEOF
10499 /* end confdefs.h. */
10500 $ac_includes_default
10501 /* malloc might have been renamed as rpl_malloc. */
10502 #undef malloc
10504 /* Thanks to Mike Haertel and Jim Avera for this test.
10505 Here is a matrix of mmap possibilities:
10506 mmap private not fixed
10507 mmap private fixed at somewhere currently unmapped
10508 mmap private fixed at somewhere already mapped
10509 mmap shared not fixed
10510 mmap shared fixed at somewhere currently unmapped
10511 mmap shared fixed at somewhere already mapped
10512 For private mappings, we should verify that changes cannot be read()
10513 back from the file, nor mmap's back from the file at a different
10514 address. (There have been systems where private was not correctly
10515 implemented like the infamous i386 svr4.0, and systems where the
10516 VM page cache was not coherent with the file system buffer cache
10517 like early versions of FreeBSD and possibly contemporary NetBSD.)
10518 For shared mappings, we should conversely verify that changes get
10519 propagated back to all the places they're supposed to be.
10521 Grep wants private fixed already mapped.
10522 The main things grep needs to know about mmap are:
10523 * does it exist and is it safe to write into the mmap'd area
10524 * how to use it (BSD variants) */
10526 #include <fcntl.h>
10527 #include <sys/mman.h>
10529 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10530 char *malloc ();
10531 #endif
10533 /* This mess was copied from the GNU getpagesize.h. */
10534 #ifndef HAVE_GETPAGESIZE
10535 /* Assume that all systems that can run configure have sys/param.h. */
10536 # ifndef HAVE_SYS_PARAM_H
10537 # define HAVE_SYS_PARAM_H 1
10538 # endif
10540 # ifdef _SC_PAGESIZE
10541 # define getpagesize() sysconf(_SC_PAGESIZE)
10542 # else /* no _SC_PAGESIZE */
10543 # ifdef HAVE_SYS_PARAM_H
10544 # include <sys/param.h>
10545 # ifdef EXEC_PAGESIZE
10546 # define getpagesize() EXEC_PAGESIZE
10547 # else /* no EXEC_PAGESIZE */
10548 # ifdef NBPG
10549 # define getpagesize() NBPG * CLSIZE
10550 # ifndef CLSIZE
10551 # define CLSIZE 1
10552 # endif /* no CLSIZE */
10553 # else /* no NBPG */
10554 # ifdef NBPC
10555 # define getpagesize() NBPC
10556 # else /* no NBPC */
10557 # ifdef PAGESIZE
10558 # define getpagesize() PAGESIZE
10559 # endif /* PAGESIZE */
10560 # endif /* no NBPC */
10561 # endif /* no NBPG */
10562 # endif /* no EXEC_PAGESIZE */
10563 # else /* no HAVE_SYS_PARAM_H */
10564 # define getpagesize() 8192 /* punt totally */
10565 # endif /* no HAVE_SYS_PARAM_H */
10566 # endif /* no _SC_PAGESIZE */
10568 #endif /* no HAVE_GETPAGESIZE */
10571 main ()
10573 char *data, *data2, *data3;
10574 int i, pagesize;
10575 int fd;
10577 pagesize = getpagesize ();
10579 /* First, make a file with some known garbage in it. */
10580 data = (char *) malloc (pagesize);
10581 if (!data)
10582 return 1;
10583 for (i = 0; i < pagesize; ++i)
10584 *(data + i) = rand ();
10585 umask (0);
10586 fd = creat ("conftest.mmap", 0600);
10587 if (fd < 0)
10588 return 1;
10589 if (write (fd, data, pagesize) != pagesize)
10590 return 1;
10591 close (fd);
10593 /* Next, try to mmap the file at a fixed address which already has
10594 something else allocated at it. If we can, also make sure that
10595 we see the same garbage. */
10596 fd = open ("conftest.mmap", O_RDWR);
10597 if (fd < 0)
10598 return 1;
10599 data2 = (char *) malloc (2 * pagesize);
10600 if (!data2)
10601 return 1;
10602 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10603 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10604 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10605 return 1;
10606 for (i = 0; i < pagesize; ++i)
10607 if (*(data + i) != *(data2 + i))
10608 return 1;
10610 /* Finally, make sure that changes to the mapped area do not
10611 percolate back to the file as seen by read(). (This is a bug on
10612 some variants of i386 svr4.0.) */
10613 for (i = 0; i < pagesize; ++i)
10614 *(data2 + i) = *(data2 + i) + 1;
10615 data3 = (char *) malloc (pagesize);
10616 if (!data3)
10617 return 1;
10618 if (read (fd, data3, pagesize) != pagesize)
10619 return 1;
10620 for (i = 0; i < pagesize; ++i)
10621 if (*(data + i) != *(data3 + i))
10622 return 1;
10623 close (fd);
10624 return 0;
10626 _ACEOF
10627 rm -f conftest$ac_exeext
10628 if { (ac_try="$ac_link"
10629 case "(($ac_try" in
10630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10631 *) ac_try_echo=$ac_try;;
10632 esac
10633 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10634 $as_echo "$ac_try_echo") >&5
10635 (eval "$ac_link") 2>&5
10636 ac_status=$?
10637 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10638 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10639 { (case "(($ac_try" in
10640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10641 *) ac_try_echo=$ac_try;;
10642 esac
10643 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10644 $as_echo "$ac_try_echo") >&5
10645 (eval "$ac_try") 2>&5
10646 ac_status=$?
10647 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10648 (exit $ac_status); }; }; then
10649 ac_cv_func_mmap_fixed_mapped=yes
10650 else
10651 $as_echo "$as_me: program exited with status $ac_status" >&5
10652 $as_echo "$as_me: failed program was:" >&5
10653 sed 's/^/| /' conftest.$ac_ext >&5
10655 ( exit $ac_status )
10656 ac_cv_func_mmap_fixed_mapped=no
10658 rm -rf conftest.dSYM
10659 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10664 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10665 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10666 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10668 cat >>confdefs.h <<\_ACEOF
10669 #define HAVE_MMAP 1
10670 _ACEOF
10673 rm -f conftest.mmap
10675 saved_libs="$LIBS"
10676 LIBS="$LIBS $LIBC $LIBM"
10685 for ac_func in fmod getcwd putenv snprintf strcasecmp \
10686 strerror strncasecmp strtol
10688 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10689 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10690 $as_echo_n "checking for $ac_func... " >&6; }
10691 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10692 $as_echo_n "(cached) " >&6
10693 else
10694 cat >conftest.$ac_ext <<_ACEOF
10695 /* confdefs.h. */
10696 _ACEOF
10697 cat confdefs.h >>conftest.$ac_ext
10698 cat >>conftest.$ac_ext <<_ACEOF
10699 /* end confdefs.h. */
10700 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10701 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10702 #define $ac_func innocuous_$ac_func
10704 /* System header to define __stub macros and hopefully few prototypes,
10705 which can conflict with char $ac_func (); below.
10706 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10707 <limits.h> exists even on freestanding compilers. */
10709 #ifdef __STDC__
10710 # include <limits.h>
10711 #else
10712 # include <assert.h>
10713 #endif
10715 #undef $ac_func
10717 /* Override any GCC internal prototype to avoid an error.
10718 Use char because int might match the return type of a GCC
10719 builtin and then its argument prototype would still apply. */
10720 #ifdef __cplusplus
10721 extern "C"
10722 #endif
10723 char $ac_func ();
10724 /* The GNU C library defines this for functions which it implements
10725 to always fail with ENOSYS. Some functions are actually named
10726 something starting with __ and the normal name is an alias. */
10727 #if defined __stub_$ac_func || defined __stub___$ac_func
10728 choke me
10729 #endif
10732 main ()
10734 return $ac_func ();
10736 return 0;
10738 _ACEOF
10739 rm -f conftest.$ac_objext conftest$ac_exeext
10740 if { (ac_try="$ac_link"
10741 case "(($ac_try" in
10742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10743 *) ac_try_echo=$ac_try;;
10744 esac
10745 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10746 $as_echo "$ac_try_echo") >&5
10747 (eval "$ac_link") 2>conftest.er1
10748 ac_status=$?
10749 grep -v '^ *+' conftest.er1 >conftest.err
10750 rm -f conftest.er1
10751 cat conftest.err >&5
10752 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10753 (exit $ac_status); } && {
10754 test -z "$ac_c_werror_flag" ||
10755 test ! -s conftest.err
10756 } && test -s conftest$ac_exeext && {
10757 test "$cross_compiling" = yes ||
10758 $as_test_x conftest$ac_exeext
10759 }; then
10760 eval "$as_ac_var=yes"
10761 else
10762 $as_echo "$as_me: failed program was:" >&5
10763 sed 's/^/| /' conftest.$ac_ext >&5
10765 eval "$as_ac_var=no"
10768 rm -rf conftest.dSYM
10769 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10770 conftest$ac_exeext conftest.$ac_ext
10772 ac_res=`eval 'as_val=${'$as_ac_var'}
10773 $as_echo "$as_val"'`
10774 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10775 $as_echo "$ac_res" >&6; }
10776 as_val=`eval 'as_val=${'$as_ac_var'}
10777 $as_echo "$as_val"'`
10778 if test "x$as_val" = x""yes; then
10779 cat >>confdefs.h <<_ACEOF
10780 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10781 _ACEOF
10783 else
10784 case " $LIBOBJS " in
10785 *" $ac_func.$ac_objext "* ) ;;
10786 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
10788 esac
10791 done
10794 # vsnprintf is in the same source file as snprintf
10796 for ac_func in vsnprintf
10798 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10799 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10800 $as_echo_n "checking for $ac_func... " >&6; }
10801 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10802 $as_echo_n "(cached) " >&6
10803 else
10804 cat >conftest.$ac_ext <<_ACEOF
10805 /* confdefs.h. */
10806 _ACEOF
10807 cat confdefs.h >>conftest.$ac_ext
10808 cat >>conftest.$ac_ext <<_ACEOF
10809 /* end confdefs.h. */
10810 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10811 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10812 #define $ac_func innocuous_$ac_func
10814 /* System header to define __stub macros and hopefully few prototypes,
10815 which can conflict with char $ac_func (); below.
10816 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10817 <limits.h> exists even on freestanding compilers. */
10819 #ifdef __STDC__
10820 # include <limits.h>
10821 #else
10822 # include <assert.h>
10823 #endif
10825 #undef $ac_func
10827 /* Override any GCC internal prototype to avoid an error.
10828 Use char because int might match the return type of a GCC
10829 builtin and then its argument prototype would still apply. */
10830 #ifdef __cplusplus
10831 extern "C"
10832 #endif
10833 char $ac_func ();
10834 /* The GNU C library defines this for functions which it implements
10835 to always fail with ENOSYS. Some functions are actually named
10836 something starting with __ and the normal name is an alias. */
10837 #if defined __stub_$ac_func || defined __stub___$ac_func
10838 choke me
10839 #endif
10842 main ()
10844 return $ac_func ();
10846 return 0;
10848 _ACEOF
10849 rm -f conftest.$ac_objext conftest$ac_exeext
10850 if { (ac_try="$ac_link"
10851 case "(($ac_try" in
10852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10853 *) ac_try_echo=$ac_try;;
10854 esac
10855 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10856 $as_echo "$ac_try_echo") >&5
10857 (eval "$ac_link") 2>conftest.er1
10858 ac_status=$?
10859 grep -v '^ *+' conftest.er1 >conftest.err
10860 rm -f conftest.er1
10861 cat conftest.err >&5
10862 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10863 (exit $ac_status); } && {
10864 test -z "$ac_c_werror_flag" ||
10865 test ! -s conftest.err
10866 } && test -s conftest$ac_exeext && {
10867 test "$cross_compiling" = yes ||
10868 $as_test_x conftest$ac_exeext
10869 }; then
10870 eval "$as_ac_var=yes"
10871 else
10872 $as_echo "$as_me: failed program was:" >&5
10873 sed 's/^/| /' conftest.$ac_ext >&5
10875 eval "$as_ac_var=no"
10878 rm -rf conftest.dSYM
10879 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10880 conftest$ac_exeext conftest.$ac_ext
10882 ac_res=`eval 'as_val=${'$as_ac_var'}
10883 $as_echo "$as_val"'`
10884 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10885 $as_echo "$ac_res" >&6; }
10886 as_val=`eval 'as_val=${'$as_ac_var'}
10887 $as_echo "$as_val"'`
10888 if test "x$as_val" = x""yes; then
10889 cat >>confdefs.h <<_ACEOF
10890 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10891 _ACEOF
10893 else
10894 case " $LIBOBJS " in
10895 *" snprintf.$ac_objext "* ) ;;
10896 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
10898 esac
10901 done
10903 LIBS="$saved_libs"
10910 for ac_func in gettimeofday isatty kill rename setlocale strsep
10912 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10913 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10914 $as_echo_n "checking for $ac_func... " >&6; }
10915 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10916 $as_echo_n "(cached) " >&6
10917 else
10918 cat >conftest.$ac_ext <<_ACEOF
10919 /* confdefs.h. */
10920 _ACEOF
10921 cat confdefs.h >>conftest.$ac_ext
10922 cat >>conftest.$ac_ext <<_ACEOF
10923 /* end confdefs.h. */
10924 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10925 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10926 #define $ac_func innocuous_$ac_func
10928 /* System header to define __stub macros and hopefully few prototypes,
10929 which can conflict with char $ac_func (); below.
10930 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10931 <limits.h> exists even on freestanding compilers. */
10933 #ifdef __STDC__
10934 # include <limits.h>
10935 #else
10936 # include <assert.h>
10937 #endif
10939 #undef $ac_func
10941 /* Override any GCC internal prototype to avoid an error.
10942 Use char because int might match the return type of a GCC
10943 builtin and then its argument prototype would still apply. */
10944 #ifdef __cplusplus
10945 extern "C"
10946 #endif
10947 char $ac_func ();
10948 /* The GNU C library defines this for functions which it implements
10949 to always fail with ENOSYS. Some functions are actually named
10950 something starting with __ and the normal name is an alias. */
10951 #if defined __stub_$ac_func || defined __stub___$ac_func
10952 choke me
10953 #endif
10956 main ()
10958 return $ac_func ();
10960 return 0;
10962 _ACEOF
10963 rm -f conftest.$ac_objext conftest$ac_exeext
10964 if { (ac_try="$ac_link"
10965 case "(($ac_try" in
10966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10967 *) ac_try_echo=$ac_try;;
10968 esac
10969 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10970 $as_echo "$ac_try_echo") >&5
10971 (eval "$ac_link") 2>conftest.er1
10972 ac_status=$?
10973 grep -v '^ *+' conftest.er1 >conftest.err
10974 rm -f conftest.er1
10975 cat conftest.err >&5
10976 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10977 (exit $ac_status); } && {
10978 test -z "$ac_c_werror_flag" ||
10979 test ! -s conftest.err
10980 } && test -s conftest$ac_exeext && {
10981 test "$cross_compiling" = yes ||
10982 $as_test_x conftest$ac_exeext
10983 }; then
10984 eval "$as_ac_var=yes"
10985 else
10986 $as_echo "$as_me: failed program was:" >&5
10987 sed 's/^/| /' conftest.$ac_ext >&5
10989 eval "$as_ac_var=no"
10992 rm -rf conftest.dSYM
10993 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10994 conftest$ac_exeext conftest.$ac_ext
10996 ac_res=`eval 'as_val=${'$as_ac_var'}
10997 $as_echo "$as_val"'`
10998 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10999 $as_echo "$ac_res" >&6; }
11000 as_val=`eval 'as_val=${'$as_ac_var'}
11001 $as_echo "$as_val"'`
11002 if test "x$as_val" = x""yes; then
11003 cat >>confdefs.h <<_ACEOF
11004 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11005 _ACEOF
11008 done
11010 { $as_echo "$as_me:$LINENO: checking for mkstemp" >&5
11011 $as_echo_n "checking for mkstemp... " >&6; }
11012 ac_ext=cpp
11013 ac_cpp='$CXXCPP $CPPFLAGS'
11014 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11015 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11016 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11019 cat >conftest.$ac_ext <<_ACEOF
11021 /* confdefs.h. */
11022 _ACEOF
11023 cat confdefs.h >>conftest.$ac_ext
11024 cat >>conftest.$ac_ext <<_ACEOF
11025 /* end confdefs.h. */
11028 #include <stdlib.h>
11029 #include <unistd.h>
11030 int (*f) (char *);
11034 main ()
11038 f = mkstemp;
11042 return 0;
11045 _ACEOF
11046 rm -f conftest.$ac_objext conftest$ac_exeext
11047 if { (ac_try="$ac_link"
11048 case "(($ac_try" in
11049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11050 *) ac_try_echo=$ac_try;;
11051 esac
11052 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11053 $as_echo "$ac_try_echo") >&5
11054 (eval "$ac_link") 2>conftest.er1
11055 ac_status=$?
11056 grep -v '^ *+' conftest.er1 >conftest.err
11057 rm -f conftest.er1
11058 cat conftest.err >&5
11059 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11060 (exit $ac_status); } && {
11061 test -z "$ac_cxx_werror_flag" ||
11062 test ! -s conftest.err
11063 } && test -s conftest$ac_exeext && {
11064 test "$cross_compiling" = yes ||
11065 $as_test_x conftest$ac_exeext
11066 }; then
11067 { $as_echo "$as_me:$LINENO: result: yes" >&5
11068 $as_echo "yes" >&6; }
11070 cat >>confdefs.h <<\_ACEOF
11071 #define HAVE_MKSTEMP 1
11072 _ACEOF
11074 else
11075 $as_echo "$as_me: failed program was:" >&5
11076 sed 's/^/| /' conftest.$ac_ext >&5
11078 { $as_echo "$as_me:$LINENO: result: no" >&5
11079 $as_echo "no" >&6; }
11080 case " $LIBOBJS " in
11081 *" mkstemp.$ac_objext "* ) ;;
11082 *) LIBOBJS="$LIBOBJS mkstemp.$ac_objext"
11084 esac
11088 rm -rf conftest.dSYM
11089 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11090 conftest$ac_exeext conftest.$ac_ext
11091 ac_ext=c
11092 ac_cpp='$CPP $CPPFLAGS'
11093 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11094 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11095 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11097 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
11098 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
11099 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
11100 $as_echo_n "(cached) " >&6
11101 else
11102 cat >conftest.$ac_ext <<_ACEOF
11103 /* confdefs.h. */
11104 _ACEOF
11105 cat confdefs.h >>conftest.$ac_ext
11106 cat >>conftest.$ac_ext <<_ACEOF
11107 /* end confdefs.h. */
11108 $ac_includes_default
11110 main ()
11112 #ifndef sys_siglist
11113 (void) sys_siglist;
11114 #endif
11117 return 0;
11119 _ACEOF
11120 rm -f conftest.$ac_objext
11121 if { (ac_try="$ac_compile"
11122 case "(($ac_try" in
11123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11124 *) ac_try_echo=$ac_try;;
11125 esac
11126 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11127 $as_echo "$ac_try_echo") >&5
11128 (eval "$ac_compile") 2>conftest.er1
11129 ac_status=$?
11130 grep -v '^ *+' conftest.er1 >conftest.err
11131 rm -f conftest.er1
11132 cat conftest.err >&5
11133 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11134 (exit $ac_status); } && {
11135 test -z "$ac_c_werror_flag" ||
11136 test ! -s conftest.err
11137 } && test -s conftest.$ac_objext; then
11138 ac_cv_have_decl_sys_siglist=yes
11139 else
11140 $as_echo "$as_me: failed program was:" >&5
11141 sed 's/^/| /' conftest.$ac_ext >&5
11143 ac_cv_have_decl_sys_siglist=no
11146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11148 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
11149 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
11150 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then
11152 cat >>confdefs.h <<_ACEOF
11153 #define HAVE_DECL_SYS_SIGLIST 1
11154 _ACEOF
11157 else
11158 cat >>confdefs.h <<_ACEOF
11159 #define HAVE_DECL_SYS_SIGLIST 0
11160 _ACEOF
11164 { $as_echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
11165 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
11166 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
11167 $as_echo_n "(cached) " >&6
11168 else
11169 cat >conftest.$ac_ext <<_ACEOF
11170 /* confdefs.h. */
11171 _ACEOF
11172 cat confdefs.h >>conftest.$ac_ext
11173 cat >>conftest.$ac_ext <<_ACEOF
11174 /* end confdefs.h. */
11175 $ac_includes_default
11177 main ()
11179 #ifndef getc_unlocked
11180 (void) getc_unlocked;
11181 #endif
11184 return 0;
11186 _ACEOF
11187 rm -f conftest.$ac_objext
11188 if { (ac_try="$ac_compile"
11189 case "(($ac_try" in
11190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11191 *) ac_try_echo=$ac_try;;
11192 esac
11193 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11194 $as_echo "$ac_try_echo") >&5
11195 (eval "$ac_compile") 2>conftest.er1
11196 ac_status=$?
11197 grep -v '^ *+' conftest.er1 >conftest.err
11198 rm -f conftest.er1
11199 cat conftest.err >&5
11200 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11201 (exit $ac_status); } && {
11202 test -z "$ac_c_werror_flag" ||
11203 test ! -s conftest.err
11204 } && test -s conftest.$ac_objext; then
11205 ac_cv_have_decl_getc_unlocked=yes
11206 else
11207 $as_echo "$as_me: failed program was:" >&5
11208 sed 's/^/| /' conftest.$ac_ext >&5
11210 ac_cv_have_decl_getc_unlocked=no
11213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11215 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
11216 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
11217 if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then
11219 cat >>confdefs.h <<_ACEOF
11220 #define HAVE_DECL_GETC_UNLOCKED 1
11221 _ACEOF
11224 else
11225 cat >>confdefs.h <<_ACEOF
11226 #define HAVE_DECL_GETC_UNLOCKED 0
11227 _ACEOF
11234 { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
11235 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
11236 if test "${am_cv_langinfo_codeset+set}" = set; then
11237 $as_echo_n "(cached) " >&6
11238 else
11239 cat >conftest.$ac_ext <<_ACEOF
11240 /* confdefs.h. */
11241 _ACEOF
11242 cat confdefs.h >>conftest.$ac_ext
11243 cat >>conftest.$ac_ext <<_ACEOF
11244 /* end confdefs.h. */
11245 #include <langinfo.h>
11247 main ()
11249 char* cs = nl_langinfo(CODESET); return !cs;
11251 return 0;
11253 _ACEOF
11254 rm -f conftest.$ac_objext conftest$ac_exeext
11255 if { (ac_try="$ac_link"
11256 case "(($ac_try" in
11257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11258 *) ac_try_echo=$ac_try;;
11259 esac
11260 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11261 $as_echo "$ac_try_echo") >&5
11262 (eval "$ac_link") 2>conftest.er1
11263 ac_status=$?
11264 grep -v '^ *+' conftest.er1 >conftest.err
11265 rm -f conftest.er1
11266 cat conftest.err >&5
11267 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11268 (exit $ac_status); } && {
11269 test -z "$ac_c_werror_flag" ||
11270 test ! -s conftest.err
11271 } && test -s conftest$ac_exeext && {
11272 test "$cross_compiling" = yes ||
11273 $as_test_x conftest$ac_exeext
11274 }; then
11275 am_cv_langinfo_codeset=yes
11276 else
11277 $as_echo "$as_me: failed program was:" >&5
11278 sed 's/^/| /' conftest.$ac_ext >&5
11280 am_cv_langinfo_codeset=no
11283 rm -rf conftest.dSYM
11284 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11285 conftest$ac_exeext conftest.$ac_ext
11288 { $as_echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
11289 $as_echo "$am_cv_langinfo_codeset" >&6; }
11290 if test $am_cv_langinfo_codeset = yes; then
11292 cat >>confdefs.h <<\_ACEOF
11293 #define HAVE_LANGINFO_CODESET 1
11294 _ACEOF
11299 # checks for compiler characteristics
11300 ac_ext=cpp
11301 ac_cpp='$CXXCPP $CPPFLAGS'
11302 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11303 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11304 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11306 { $as_echo "$as_me:$LINENO: checking whether ANSI array delete syntax is supported" >&5
11307 $as_echo_n "checking whether ANSI array delete syntax is supported... " >&6; }
11308 cat >conftest.$ac_ext <<_ACEOF
11310 /* confdefs.h. */
11311 _ACEOF
11312 cat confdefs.h >>conftest.$ac_ext
11313 cat >>conftest.$ac_ext <<_ACEOF
11314 /* end confdefs.h. */
11317 main ()
11321 char *p = new char[5];
11322 delete [] p;
11326 return 0;
11329 _ACEOF
11330 rm -f conftest.$ac_objext
11331 if { (ac_try="$ac_compile"
11332 case "(($ac_try" in
11333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11334 *) ac_try_echo=$ac_try;;
11335 esac
11336 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11337 $as_echo "$ac_try_echo") >&5
11338 (eval "$ac_compile") 2>conftest.er1
11339 ac_status=$?
11340 grep -v '^ *+' conftest.er1 >conftest.err
11341 rm -f conftest.er1
11342 cat conftest.err >&5
11343 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11344 (exit $ac_status); } && {
11345 test -z "$ac_cxx_werror_flag" ||
11346 test ! -s conftest.err
11347 } && test -s conftest.$ac_objext; then
11348 { $as_echo "$as_me:$LINENO: result: yes" >&5
11349 $as_echo "yes" >&6; }
11350 else
11351 $as_echo "$as_me: failed program was:" >&5
11352 sed 's/^/| /' conftest.$ac_ext >&5
11354 { $as_echo "$as_me:$LINENO: result: no" >&5
11355 $as_echo "no" >&6; }
11357 cat >>confdefs.h <<\_ACEOF
11358 #define ARRAY_DELETE_NEEDS_SIZE 1
11359 _ACEOF
11363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11364 ac_ext=c
11365 ac_cpp='$CPP $CPPFLAGS'
11366 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11367 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11368 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11370 ac_ext=cpp
11371 ac_cpp='$CXXCPP $CPPFLAGS'
11372 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11373 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11374 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11376 { $as_echo "$as_me:$LINENO: checking traditional preprocessor" >&5
11377 $as_echo_n "checking traditional preprocessor... " >&6; }
11378 cat >conftest.$ac_ext <<_ACEOF
11380 /* confdefs.h. */
11381 _ACEOF
11382 cat confdefs.h >>conftest.$ac_ext
11383 cat >>conftest.$ac_ext <<_ACEOF
11384 /* end confdefs.h. */
11387 #define name2(a, b) a/**/b
11391 main ()
11395 int name2(foo, bar);
11399 return 0;
11402 _ACEOF
11403 rm -f conftest.$ac_objext
11404 if { (ac_try="$ac_compile"
11405 case "(($ac_try" in
11406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11407 *) ac_try_echo=$ac_try;;
11408 esac
11409 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11410 $as_echo "$ac_try_echo") >&5
11411 (eval "$ac_compile") 2>conftest.er1
11412 ac_status=$?
11413 grep -v '^ *+' conftest.er1 >conftest.err
11414 rm -f conftest.er1
11415 cat conftest.err >&5
11416 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11417 (exit $ac_status); } && {
11418 test -z "$ac_cxx_werror_flag" ||
11419 test ! -s conftest.err
11420 } && test -s conftest.$ac_objext; then
11421 { $as_echo "$as_me:$LINENO: result: yes" >&5
11422 $as_echo "yes" >&6; }
11424 cat >>confdefs.h <<\_ACEOF
11425 #define TRADITIONAL_CPP 1
11426 _ACEOF
11428 else
11429 $as_echo "$as_me: failed program was:" >&5
11430 sed 's/^/| /' conftest.$ac_ext >&5
11432 { $as_echo "$as_me:$LINENO: result: no" >&5
11433 $as_echo "no" >&6; }
11436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11437 ac_ext=c
11438 ac_cpp='$CPP $CPPFLAGS'
11439 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11440 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11441 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11444 # checks for operating system services
11445 { $as_echo "$as_me:$LINENO: checking w_coredump" >&5
11446 $as_echo_n "checking w_coredump... " >&6; }
11447 if test "$cross_compiling" = yes; then
11448 { $as_echo "$as_me:$LINENO: result: no" >&5
11449 $as_echo "no" >&6; }
11450 else
11451 cat >conftest.$ac_ext <<_ACEOF
11453 /* confdefs.h. */
11454 _ACEOF
11455 cat confdefs.h >>conftest.$ac_ext
11456 cat >>conftest.$ac_ext <<_ACEOF
11457 /* end confdefs.h. */
11460 #include <sys/types.h>
11461 #include <sys/wait.h>
11465 main ()
11469 main()
11471 #ifdef WCOREFLAG
11472 exit(1);
11473 #else
11474 int i = 0;
11475 ((union wait *)&i)->w_coredump = 1;
11476 exit(i != 0200);
11477 #endif
11482 return 0;
11485 _ACEOF
11486 rm -f conftest$ac_exeext
11487 if { (ac_try="$ac_link"
11488 case "(($ac_try" in
11489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11490 *) ac_try_echo=$ac_try;;
11491 esac
11492 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11493 $as_echo "$ac_try_echo") >&5
11494 (eval "$ac_link") 2>&5
11495 ac_status=$?
11496 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11497 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11498 { (case "(($ac_try" in
11499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11500 *) ac_try_echo=$ac_try;;
11501 esac
11502 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11503 $as_echo "$ac_try_echo") >&5
11504 (eval "$ac_try") 2>&5
11505 ac_status=$?
11506 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11507 (exit $ac_status); }; }; then
11508 { $as_echo "$as_me:$LINENO: result: yes" >&5
11509 $as_echo "yes" >&6; }
11511 cat >>confdefs.h <<\_ACEOF
11512 #define WCOREFLAG 0200
11513 _ACEOF
11515 else
11516 $as_echo "$as_me: program exited with status $ac_status" >&5
11517 $as_echo "$as_me: failed program was:" >&5
11518 sed 's/^/| /' conftest.$ac_ext >&5
11520 ( exit $ac_status )
11521 { $as_echo "$as_me:$LINENO: result: no" >&5
11522 $as_echo "no" >&6; }
11524 rm -rf conftest.dSYM
11525 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11530 # other random stuff
11531 { $as_echo "$as_me:$LINENO: checking default value for grops -b option" >&5
11532 $as_echo_n "checking default value for grops -b option... " >&6; }
11533 test -n "${BROKEN_SPOOLER_FLAGS}" || BROKEN_SPOOLER_FLAGS=0
11534 { $as_echo "$as_me:$LINENO: result: $BROKEN_SPOOLER_FLAGS" >&5
11535 $as_echo "$BROKEN_SPOOLER_FLAGS" >&6; }
11537 { $as_echo "$as_me:$LINENO: checking default paper size" >&5
11538 $as_echo_n "checking default paper size... " >&6; }
11539 groff_prefix=$prefix
11540 test "x$prefix" = "xNONE" && groff_prefix=$ac_default_prefix
11541 if test -z "$PAGE"; then
11542 descfile=
11543 if test -r $groff_prefix/share/groff/font/devps/DESC; then
11544 descfile=$groff_prefix/share/groff/font/devps/DESC
11545 elif test -r $groff_prefix/lib/groff/font/devps/DESC; then
11546 descfile=$groff_prefix/lib/groff/font/devps/DESC
11547 else
11548 for f in $groff_prefix/share/groff/*/font/devps/DESC; do
11549 if test -r $f; then
11550 descfile=$f
11551 break
11553 done
11556 if test -n "$descfile"; then
11557 if grep '^paperlength[ ]\+841890' $descfile >/dev/null 2>&1; then
11558 PAGE=A4
11559 elif grep '^papersize[ ]\+[aA]4' $descfile >/dev/null 2>&1; then
11560 PAGE=A4
11565 if test -z "$PAGE"; then
11566 dom=`awk '($1 == "dom" || $1 == "search") { print $2; exit}' \
11567 /etc/resolv.conf 2>/dev/null`
11568 if test -z "$dom"; then
11569 dom=`(domainname) 2>/dev/null | tr -d '+'`
11570 if test -z "$dom" \
11571 || test "$dom" = '(none)'; then
11572 dom=`(hostname) 2>/dev/null | grep '\.'`
11575 # If the top-level domain is two letters and it's not `us' or `ca'
11576 # then they probably use A4 paper.
11577 case "$dom" in
11578 *.[Uu][Ss]|*.[Cc][Aa])
11580 *.[A-Za-z][A-Za-z])
11581 PAGE=A4 ;;
11582 esac
11585 test -n "$PAGE" || PAGE=letter
11586 if test "x$PAGE" = "xA4"; then
11588 cat >>confdefs.h <<\_ACEOF
11589 #define PAGEA4 1
11590 _ACEOF
11593 { $as_echo "$as_me:$LINENO: result: $PAGE" >&5
11594 $as_echo "$PAGE" >&6; }
11596 { $as_echo "$as_me:$LINENO: checking for existing troff installation" >&5
11597 $as_echo_n "checking for existing troff installation... " >&6; }
11598 if test "x`(echo .tm '|n(.g' | tr '|' '\\\\' | troff -z -i 2>&1) 2>/dev/null`" = x0; then
11599 { $as_echo "$as_me:$LINENO: result: yes" >&5
11600 $as_echo "yes" >&6; }
11602 else
11603 { $as_echo "$as_me:$LINENO: result: no" >&5
11604 $as_echo "no" >&6; }
11608 { $as_echo "$as_me:$LINENO: checking for prefix of system macro packages" >&5
11609 $as_echo_n "checking for prefix of system macro packages... " >&6; }
11610 sys_tmac_prefix=
11611 sys_tmac_file_prefix=
11612 for d in /usr/share/lib/tmac /usr/lib/tmac; do
11613 for t in "" tmac.; do
11614 for m in an s m; do
11615 f=$d/$t$m
11616 if test -z "$sys_tmac_prefix" \
11617 && test -f $f \
11618 && grep '^\.if' $f >/dev/null 2>&1; then
11619 sys_tmac_prefix=$d/$t
11620 sys_tmac_file_prefix=$t
11622 done
11623 done
11624 done
11625 { $as_echo "$as_me:$LINENO: result: $sys_tmac_prefix" >&5
11626 $as_echo "$sys_tmac_prefix" >&6; }
11629 { $as_echo "$as_me:$LINENO: checking which system macro packages should be made available" >&5
11630 $as_echo_n "checking which system macro packages should be made available... " >&6; }
11631 tmac_wrap=
11632 if test "x$sys_tmac_file_prefix" = "xtmac."; then
11633 for f in $sys_tmac_prefix*; do
11634 suff=`echo $f | sed -e "s;$sys_tmac_prefix;;"`
11635 case "$suff" in
11639 grep "Copyright.*Free Software Foundation" $f >/dev/null \
11640 || tmac_wrap="$tmac_wrap $suff" ;;
11641 esac
11642 done
11643 elif test -n "$sys_tmac_prefix"; then
11644 files=`echo $sys_tmac_prefix*`
11645 grep "\\.so" $files >conftest.sol
11646 for f in $files; do
11647 case "$f" in
11648 ${sys_tmac_prefix}e)
11650 *.me)
11652 */ms.*)
11655 b=`basename $f`
11656 if grep "\\.so.*/$b\$" conftest.sol >/dev/null \
11657 || grep -l "Copyright.*Free Software Foundation" $f >/dev/null; then
11659 else
11660 suff=`echo $f | sed -e "s;$sys_tmac_prefix;;"`
11661 case "$suff" in
11662 tmac.*)
11665 tmac_wrap="$tmac_wrap $suff" ;;
11666 esac
11668 esac
11669 done
11670 rm -f conftest.sol
11672 { $as_echo "$as_me:$LINENO: result: $tmac_wrap" >&5
11673 $as_echo "$tmac_wrap" >&6; }
11675 { $as_echo "$as_me:$LINENO: checking separator character to use in groff search paths" >&5
11676 $as_echo_n "checking separator character to use in groff search paths... " >&6; }
11677 cp ${srcdir}/src/include/nonposix.h conftest.h
11678 cat >conftest.$ac_ext <<_ACEOF
11680 /* confdefs.h. */
11681 _ACEOF
11682 cat confdefs.h >>conftest.$ac_ext
11683 cat >>conftest.$ac_ext <<_ACEOF
11684 /* end confdefs.h. */
11687 #include <ctype.h>
11688 #include "conftest.h"
11692 main ()
11696 #if PATH_SEP_CHAR == ';'
11697 make an error "Path separator is ';'"
11698 #endif
11702 return 0;
11705 _ACEOF
11706 rm -f conftest.$ac_objext
11707 if { (ac_try="$ac_compile"
11708 case "(($ac_try" in
11709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11710 *) ac_try_echo=$ac_try;;
11711 esac
11712 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11713 $as_echo "$ac_try_echo") >&5
11714 (eval "$ac_compile") 2>conftest.er1
11715 ac_status=$?
11716 grep -v '^ *+' conftest.er1 >conftest.err
11717 rm -f conftest.er1
11718 cat conftest.err >&5
11719 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11720 (exit $ac_status); } && {
11721 test -z "$ac_c_werror_flag" ||
11722 test ! -s conftest.err
11723 } && test -s conftest.$ac_objext; then
11724 GROFF_PATH_SEPARATOR=":"
11725 else
11726 $as_echo "$as_me: failed program was:" >&5
11727 sed 's/^/| /' conftest.$ac_ext >&5
11729 GROFF_PATH_SEPARATOR=";"
11732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11733 { $as_echo "$as_me:$LINENO: result: $GROFF_PATH_SEPARATOR" >&5
11734 $as_echo "$GROFF_PATH_SEPARATOR" >&6; }
11737 # Check whether --with-alt-gs was given.
11738 if test "${with_alt_gs+set}" = set; then
11739 withval=$with_alt_gs; ALT_GHOSTSCRIPT_PROGS="$withval"
11740 else
11741 ALT_GHOSTSCRIPT_PROGS="gs gswin32c gsos2"
11747 # Check whether --with-gs was given.
11748 if test "${with_gs+set}" = set; then
11749 withval=$with_gs; GHOSTSCRIPT=$withval
11750 else
11751 if test -n "$ac_tool_prefix"; then
11752 for ac_prog in $ALT_GHOSTSCRIPT_PROGS
11754 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11755 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11756 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11757 $as_echo_n "checking for $ac_word... " >&6; }
11758 if test "${ac_cv_prog_GHOSTSCRIPT+set}" = set; then
11759 $as_echo_n "(cached) " >&6
11760 else
11761 if test -n "$GHOSTSCRIPT"; then
11762 ac_cv_prog_GHOSTSCRIPT="$GHOSTSCRIPT" # Let the user override the test.
11763 else
11764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11765 for as_dir in $PATH
11767 IFS=$as_save_IFS
11768 test -z "$as_dir" && as_dir=.
11769 for ac_exec_ext in '' $ac_executable_extensions; do
11770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11771 ac_cv_prog_GHOSTSCRIPT="$ac_tool_prefix$ac_prog"
11772 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11773 break 2
11775 done
11776 done
11777 IFS=$as_save_IFS
11781 GHOSTSCRIPT=$ac_cv_prog_GHOSTSCRIPT
11782 if test -n "$GHOSTSCRIPT"; then
11783 { $as_echo "$as_me:$LINENO: result: $GHOSTSCRIPT" >&5
11784 $as_echo "$GHOSTSCRIPT" >&6; }
11785 else
11786 { $as_echo "$as_me:$LINENO: result: no" >&5
11787 $as_echo "no" >&6; }
11791 test -n "$GHOSTSCRIPT" && break
11792 done
11794 if test -z "$GHOSTSCRIPT"; then
11795 ac_ct_GHOSTSCRIPT=$GHOSTSCRIPT
11796 for ac_prog in $ALT_GHOSTSCRIPT_PROGS
11798 # Extract the first word of "$ac_prog", so it can be a program name with args.
11799 set dummy $ac_prog; ac_word=$2
11800 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11801 $as_echo_n "checking for $ac_word... " >&6; }
11802 if test "${ac_cv_prog_ac_ct_GHOSTSCRIPT+set}" = set; then
11803 $as_echo_n "(cached) " >&6
11804 else
11805 if test -n "$ac_ct_GHOSTSCRIPT"; then
11806 ac_cv_prog_ac_ct_GHOSTSCRIPT="$ac_ct_GHOSTSCRIPT" # Let the user override the test.
11807 else
11808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11809 for as_dir in $PATH
11811 IFS=$as_save_IFS
11812 test -z "$as_dir" && as_dir=.
11813 for ac_exec_ext in '' $ac_executable_extensions; do
11814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11815 ac_cv_prog_ac_ct_GHOSTSCRIPT="$ac_prog"
11816 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11817 break 2
11819 done
11820 done
11821 IFS=$as_save_IFS
11825 ac_ct_GHOSTSCRIPT=$ac_cv_prog_ac_ct_GHOSTSCRIPT
11826 if test -n "$ac_ct_GHOSTSCRIPT"; then
11827 { $as_echo "$as_me:$LINENO: result: $ac_ct_GHOSTSCRIPT" >&5
11828 $as_echo "$ac_ct_GHOSTSCRIPT" >&6; }
11829 else
11830 { $as_echo "$as_me:$LINENO: result: no" >&5
11831 $as_echo "no" >&6; }
11835 test -n "$ac_ct_GHOSTSCRIPT" && break
11836 done
11838 if test "x$ac_ct_GHOSTSCRIPT" = x; then
11839 GHOSTSCRIPT="missing"
11840 else
11841 case $cross_compiling:$ac_tool_warned in
11842 yes:)
11843 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11844 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11845 ac_tool_warned=yes ;;
11846 esac
11847 GHOSTSCRIPT=$ac_ct_GHOSTSCRIPT
11853 test "$GHOSTSCRIPT" = "no" && GHOSTSCRIPT=missing
11855 make_html=html
11856 make_install_html=install_html
11858 missing=
11859 # Extract the first word of "pnmcut", so it can be a program name with args.
11860 set dummy pnmcut; ac_word=$2
11861 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11862 $as_echo_n "checking for $ac_word... " >&6; }
11863 if test "${ac_cv_prog_pnmcut+set}" = set; then
11864 $as_echo_n "(cached) " >&6
11865 else
11866 if test -n "$pnmcut"; then
11867 ac_cv_prog_pnmcut="$pnmcut" # Let the user override the test.
11868 else
11869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11870 for as_dir in $PATH
11872 IFS=$as_save_IFS
11873 test -z "$as_dir" && as_dir=.
11874 for ac_exec_ext in '' $ac_executable_extensions; do
11875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11876 ac_cv_prog_pnmcut="found"
11877 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11878 break 2
11880 done
11881 done
11882 IFS=$as_save_IFS
11884 test -z "$ac_cv_prog_pnmcut" && ac_cv_prog_pnmcut="missing"
11887 pnmcut=$ac_cv_prog_pnmcut
11888 if test -n "$pnmcut"; then
11889 { $as_echo "$as_me:$LINENO: result: $pnmcut" >&5
11890 $as_echo "$pnmcut" >&6; }
11891 else
11892 { $as_echo "$as_me:$LINENO: result: no" >&5
11893 $as_echo "no" >&6; }
11897 if test $pnmcut = missing; then
11898 missing="$missing \`pnmcut'"
11899 fi;# Extract the first word of "pnmcrop", so it can be a program name with args.
11900 set dummy pnmcrop; ac_word=$2
11901 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11902 $as_echo_n "checking for $ac_word... " >&6; }
11903 if test "${ac_cv_prog_pnmcrop+set}" = set; then
11904 $as_echo_n "(cached) " >&6
11905 else
11906 if test -n "$pnmcrop"; then
11907 ac_cv_prog_pnmcrop="$pnmcrop" # Let the user override the test.
11908 else
11909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11910 for as_dir in $PATH
11912 IFS=$as_save_IFS
11913 test -z "$as_dir" && as_dir=.
11914 for ac_exec_ext in '' $ac_executable_extensions; do
11915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11916 ac_cv_prog_pnmcrop="found"
11917 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11918 break 2
11920 done
11921 done
11922 IFS=$as_save_IFS
11924 test -z "$ac_cv_prog_pnmcrop" && ac_cv_prog_pnmcrop="missing"
11927 pnmcrop=$ac_cv_prog_pnmcrop
11928 if test -n "$pnmcrop"; then
11929 { $as_echo "$as_me:$LINENO: result: $pnmcrop" >&5
11930 $as_echo "$pnmcrop" >&6; }
11931 else
11932 { $as_echo "$as_me:$LINENO: result: no" >&5
11933 $as_echo "no" >&6; }
11937 if test $pnmcrop = missing; then
11938 missing="$missing \`pnmcrop'"
11939 fi;# Extract the first word of "pnmtopng", so it can be a program name with args.
11940 set dummy pnmtopng; ac_word=$2
11941 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11942 $as_echo_n "checking for $ac_word... " >&6; }
11943 if test "${ac_cv_prog_pnmtopng+set}" = set; then
11944 $as_echo_n "(cached) " >&6
11945 else
11946 if test -n "$pnmtopng"; then
11947 ac_cv_prog_pnmtopng="$pnmtopng" # Let the user override the test.
11948 else
11949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11950 for as_dir in $PATH
11952 IFS=$as_save_IFS
11953 test -z "$as_dir" && as_dir=.
11954 for ac_exec_ext in '' $ac_executable_extensions; do
11955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11956 ac_cv_prog_pnmtopng="found"
11957 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11958 break 2
11960 done
11961 done
11962 IFS=$as_save_IFS
11964 test -z "$ac_cv_prog_pnmtopng" && ac_cv_prog_pnmtopng="missing"
11967 pnmtopng=$ac_cv_prog_pnmtopng
11968 if test -n "$pnmtopng"; then
11969 { $as_echo "$as_me:$LINENO: result: $pnmtopng" >&5
11970 $as_echo "$pnmtopng" >&6; }
11971 else
11972 { $as_echo "$as_me:$LINENO: result: no" >&5
11973 $as_echo "no" >&6; }
11977 if test $pnmtopng = missing; then
11978 missing="$missing \`pnmtopng'"
11979 fi;# Extract the first word of "psselect", so it can be a program name with args.
11980 set dummy psselect; ac_word=$2
11981 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11982 $as_echo_n "checking for $ac_word... " >&6; }
11983 if test "${ac_cv_prog_psselect+set}" = set; then
11984 $as_echo_n "(cached) " >&6
11985 else
11986 if test -n "$psselect"; then
11987 ac_cv_prog_psselect="$psselect" # Let the user override the test.
11988 else
11989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11990 for as_dir in $PATH
11992 IFS=$as_save_IFS
11993 test -z "$as_dir" && as_dir=.
11994 for ac_exec_ext in '' $ac_executable_extensions; do
11995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11996 ac_cv_prog_psselect="found"
11997 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11998 break 2
12000 done
12001 done
12002 IFS=$as_save_IFS
12004 test -z "$ac_cv_prog_psselect" && ac_cv_prog_psselect="missing"
12007 psselect=$ac_cv_prog_psselect
12008 if test -n "$psselect"; then
12009 { $as_echo "$as_me:$LINENO: result: $psselect" >&5
12010 $as_echo "$psselect" >&6; }
12011 else
12012 { $as_echo "$as_me:$LINENO: result: no" >&5
12013 $as_echo "no" >&6; }
12017 if test $psselect = missing; then
12018 missing="$missing \`psselect'"
12019 fi;# Extract the first word of "pnmtops", so it can be a program name with args.
12020 set dummy pnmtops; ac_word=$2
12021 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12022 $as_echo_n "checking for $ac_word... " >&6; }
12023 if test "${ac_cv_prog_pnmtops+set}" = set; then
12024 $as_echo_n "(cached) " >&6
12025 else
12026 if test -n "$pnmtops"; then
12027 ac_cv_prog_pnmtops="$pnmtops" # Let the user override the test.
12028 else
12029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12030 for as_dir in $PATH
12032 IFS=$as_save_IFS
12033 test -z "$as_dir" && as_dir=.
12034 for ac_exec_ext in '' $ac_executable_extensions; do
12035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12036 ac_cv_prog_pnmtops="found"
12037 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12038 break 2
12040 done
12041 done
12042 IFS=$as_save_IFS
12044 test -z "$ac_cv_prog_pnmtops" && ac_cv_prog_pnmtops="missing"
12047 pnmtops=$ac_cv_prog_pnmtops
12048 if test -n "$pnmtops"; then
12049 { $as_echo "$as_me:$LINENO: result: $pnmtops" >&5
12050 $as_echo "$pnmtops" >&6; }
12051 else
12052 { $as_echo "$as_me:$LINENO: result: no" >&5
12053 $as_echo "no" >&6; }
12057 if test $pnmtops = missing; then
12058 missing="$missing \`pnmtops'"
12061 test "$GHOSTSCRIPT" = "missing" && missing="$missing \`gs'"
12063 if test -n "$missing"; then
12064 plural=`set $missing; test $# -gt 1 && echo s`
12065 missing=`set $missing
12066 missing=""
12067 while test $# -gt 0
12069 case $# in
12070 1) missing="$missing$1" ;;
12071 2) missing="$missing$1 and " ;;
12072 *) missing="$missing$1, " ;;
12073 esac
12074 shift
12075 done
12076 echo $missing`
12078 make_html=
12079 make_install_html=
12081 { $as_echo "$as_me:$LINENO: WARNING: missing program$plural:
12083 The program$plural
12084 $missing
12085 cannot be found in the PATH.
12086 Consequently, groff's HTML backend (grohtml) will not work properly;
12087 therefore, it will neither be possible to prepare, nor to install,
12088 documentation in HTML format.
12089 " >&5
12090 $as_echo "$as_me: WARNING: missing program$plural:
12092 The program$plural
12093 $missing
12094 cannot be found in the PATH.
12095 Consequently, groff's HTML backend (grohtml) will not work properly;
12096 therefore, it will neither be possible to prepare, nor to install,
12097 documentation in HTML format.
12098 " >&2;}
12104 # Check whether --with-alt-awk was given.
12105 if test "${with_alt_awk+set}" = set; then
12106 withval=$with_alt_awk; ALT_AWK_PROGS="$withval"
12107 else
12108 ALT_AWK_PROGS="gawk mawk nawk awk"
12114 # Check whether --with-awk was given.
12115 if test "${with_awk+set}" = set; then
12116 withval=$with_awk; AWK=$withval
12117 else
12118 if test -n "$ac_tool_prefix"; then
12119 for ac_prog in $ALT_AWK_PROGS
12121 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12122 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12123 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12124 $as_echo_n "checking for $ac_word... " >&6; }
12125 if test "${ac_cv_prog_AWK+set}" = set; then
12126 $as_echo_n "(cached) " >&6
12127 else
12128 if test -n "$AWK"; then
12129 ac_cv_prog_AWK="$AWK" # Let the user override the test.
12130 else
12131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12132 for as_dir in $PATH
12134 IFS=$as_save_IFS
12135 test -z "$as_dir" && as_dir=.
12136 for ac_exec_ext in '' $ac_executable_extensions; do
12137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12138 ac_cv_prog_AWK="$ac_tool_prefix$ac_prog"
12139 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12140 break 2
12142 done
12143 done
12144 IFS=$as_save_IFS
12148 AWK=$ac_cv_prog_AWK
12149 if test -n "$AWK"; then
12150 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
12151 $as_echo "$AWK" >&6; }
12152 else
12153 { $as_echo "$as_me:$LINENO: result: no" >&5
12154 $as_echo "no" >&6; }
12158 test -n "$AWK" && break
12159 done
12161 if test -z "$AWK"; then
12162 ac_ct_AWK=$AWK
12163 for ac_prog in $ALT_AWK_PROGS
12165 # Extract the first word of "$ac_prog", so it can be a program name with args.
12166 set dummy $ac_prog; ac_word=$2
12167 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12168 $as_echo_n "checking for $ac_word... " >&6; }
12169 if test "${ac_cv_prog_ac_ct_AWK+set}" = set; then
12170 $as_echo_n "(cached) " >&6
12171 else
12172 if test -n "$ac_ct_AWK"; then
12173 ac_cv_prog_ac_ct_AWK="$ac_ct_AWK" # Let the user override the test.
12174 else
12175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12176 for as_dir in $PATH
12178 IFS=$as_save_IFS
12179 test -z "$as_dir" && as_dir=.
12180 for ac_exec_ext in '' $ac_executable_extensions; do
12181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12182 ac_cv_prog_ac_ct_AWK="$ac_prog"
12183 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12184 break 2
12186 done
12187 done
12188 IFS=$as_save_IFS
12192 ac_ct_AWK=$ac_cv_prog_ac_ct_AWK
12193 if test -n "$ac_ct_AWK"; then
12194 { $as_echo "$as_me:$LINENO: result: $ac_ct_AWK" >&5
12195 $as_echo "$ac_ct_AWK" >&6; }
12196 else
12197 { $as_echo "$as_me:$LINENO: result: no" >&5
12198 $as_echo "no" >&6; }
12202 test -n "$ac_ct_AWK" && break
12203 done
12205 if test "x$ac_ct_AWK" = x; then
12206 AWK="missing"
12207 else
12208 case $cross_compiling:$ac_tool_warned in
12209 yes:)
12210 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
12211 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12212 ac_tool_warned=yes ;;
12213 esac
12214 AWK=$ac_ct_AWK
12220 test "$AWK" = "no" && AWK=missing
12224 make_pdfdoc=pdfdoc
12225 make_install_pdfdoc=install_pdfdoc
12227 missing=""
12228 test "$AWK" = missing && missing="\`awk'"
12229 test "$GHOSTSCRIPT" = missing && missing="$missing \`gs'"
12230 if test -n "$missing"; then
12231 plural=`set $missing; test $# -eq 2 && echo s`
12232 test x$plural = xs \
12233 && missing=`set $missing; echo "$1 and $2"` \
12234 || missing=`echo $missing`
12236 make_pdfdoc=
12237 make_install_pdfdoc=
12239 { $as_echo "$as_me:$LINENO: WARNING: missing program$plural:
12241 The program$plural $missing cannot be found in the PATH.
12242 Consequently, groff's PDF formatter (pdfroff) will not work properly;
12243 therefore, it will neither be possible to prepare, nor to install,
12244 documentation in PDF format.
12245 " >&5
12246 $as_echo "$as_me: WARNING: missing program$plural:
12248 The program$plural $missing cannot be found in the PATH.
12249 Consequently, groff's PDF formatter (pdfroff) will not work properly;
12250 therefore, it will neither be possible to prepare, nor to install,
12251 documentation in PDF format.
12252 " >&2;}
12257 { $as_echo "$as_me:$LINENO: checking whether pnmtops can handle the -nosetpage option" >&5
12258 $as_echo_n "checking whether pnmtops can handle the -nosetpage option... " >&6; }
12259 if echo P2 2 2 255 0 1 2 0 | pnmtops -nosetpage > /dev/null 2>&1 ; then
12260 { $as_echo "$as_me:$LINENO: result: yes" >&5
12261 $as_echo "yes" >&6; }
12262 pnmtops_nosetpage="pnmtops -nosetpage"
12263 else
12264 { $as_echo "$as_me:$LINENO: result: no" >&5
12265 $as_echo "no" >&6; }
12266 pnmtops_nosetpage="pnmtops"
12270 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
12271 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
12272 if test "${ac_cv_gnu_library_2_1+set}" = set; then
12273 $as_echo_n "(cached) " >&6
12274 else
12275 cat >conftest.$ac_ext <<_ACEOF
12276 /* confdefs.h. */
12277 _ACEOF
12278 cat confdefs.h >>conftest.$ac_ext
12279 cat >>conftest.$ac_ext <<_ACEOF
12280 /* end confdefs.h. */
12282 #include <features.h>
12283 #ifdef __GNU_LIBRARY__
12284 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
12285 Lucky GNU user
12286 #endif
12287 #endif
12289 _ACEOF
12290 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12291 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
12292 ac_cv_gnu_library_2_1=yes
12293 else
12294 ac_cv_gnu_library_2_1=no
12296 rm -f conftest*
12301 { $as_echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
12302 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
12304 GLIBC21="$ac_cv_gnu_library_2_1"
12308 ac_config_files="$ac_config_files stamp-h"
12310 ac_config_files="$ac_config_files Makefile doc/Makefile src/utils/xtotroff/Makefile"
12312 ac_config_files="$ac_config_files contrib/gdiffmk/tests/runtests"
12314 ac_config_files="$ac_config_files test-groff"
12316 cat >confcache <<\_ACEOF
12317 # This file is a shell script that caches the results of configure
12318 # tests run on this system so they can be shared between configure
12319 # scripts and configure runs, see configure's option --config-cache.
12320 # It is not useful on other systems. If it contains results you don't
12321 # want to keep, you may remove or edit it.
12323 # config.status only pays attention to the cache file if you give it
12324 # the --recheck option to rerun configure.
12326 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12327 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12328 # following values.
12330 _ACEOF
12332 # The following way of writing the cache mishandles newlines in values,
12333 # but we know of no workaround that is simple, portable, and efficient.
12334 # So, we kill variables containing newlines.
12335 # Ultrix sh set writes to stderr and can't be redirected directly,
12336 # and sets the high bit in the cache file unless we assign to the vars.
12338 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12339 eval ac_val=\$$ac_var
12340 case $ac_val in #(
12341 *${as_nl}*)
12342 case $ac_var in #(
12343 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
12344 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12345 esac
12346 case $ac_var in #(
12347 _ | IFS | as_nl) ;; #(
12348 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12349 *) $as_unset $ac_var ;;
12350 esac ;;
12351 esac
12352 done
12354 (set) 2>&1 |
12355 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12356 *${as_nl}ac_space=\ *)
12357 # `set' does not quote correctly, so add quotes (double-quote
12358 # substitution turns \\\\ into \\, and sed turns \\ into \).
12359 sed -n \
12360 "s/'/'\\\\''/g;
12361 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12362 ;; #(
12364 # `set' quotes correctly as required by POSIX, so do not add quotes.
12365 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12367 esac |
12368 sort
12370 sed '
12371 /^ac_cv_env_/b end
12372 t clear
12373 :clear
12374 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12375 t end
12376 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12377 :end' >>confcache
12378 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12379 if test -w "$cache_file"; then
12380 test "x$cache_file" != "x/dev/null" &&
12381 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
12382 $as_echo "$as_me: updating cache $cache_file" >&6;}
12383 cat confcache >$cache_file
12384 else
12385 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
12386 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12389 rm -f confcache
12391 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12392 # Let make expand exec_prefix.
12393 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12395 DEFS=-DHAVE_CONFIG_H
12397 ac_libobjs=
12398 ac_ltlibobjs=
12399 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12400 # 1. Remove the extension, and $U if already installed.
12401 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12402 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12403 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12404 # will be set to the directory where LIBOBJS objects are built.
12405 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12406 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
12407 done
12408 LIBOBJS=$ac_libobjs
12410 LTLIBOBJS=$ac_ltlibobjs
12415 : ${CONFIG_STATUS=./config.status}
12416 ac_write_fail=0
12417 ac_clean_files_save=$ac_clean_files
12418 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12419 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12420 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12421 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12422 #! $SHELL
12423 # Generated by $as_me.
12424 # Run this file to recreate the current configuration.
12425 # Compiler output produced by configure, useful for debugging
12426 # configure, is in config.log if it exists.
12428 debug=false
12429 ac_cs_recheck=false
12430 ac_cs_silent=false
12431 SHELL=\${CONFIG_SHELL-$SHELL}
12432 _ACEOF
12434 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12435 ## --------------------- ##
12436 ## M4sh Initialization. ##
12437 ## --------------------- ##
12439 # Be more Bourne compatible
12440 DUALCASE=1; export DUALCASE # for MKS sh
12441 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12442 emulate sh
12443 NULLCMD=:
12444 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12445 # is contrary to our usage. Disable this feature.
12446 alias -g '${1+"$@"}'='"$@"'
12447 setopt NO_GLOB_SUBST
12448 else
12449 case `(set -o) 2>/dev/null` in
12450 *posix*) set -o posix ;;
12451 esac
12458 # PATH needs CR
12459 # Avoid depending upon Character Ranges.
12460 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12461 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12462 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12463 as_cr_digits='0123456789'
12464 as_cr_alnum=$as_cr_Letters$as_cr_digits
12466 as_nl='
12468 export as_nl
12469 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12470 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12471 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12472 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12473 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12474 as_echo='printf %s\n'
12475 as_echo_n='printf %s'
12476 else
12477 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12478 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12479 as_echo_n='/usr/ucb/echo -n'
12480 else
12481 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12482 as_echo_n_body='eval
12483 arg=$1;
12484 case $arg in
12485 *"$as_nl"*)
12486 expr "X$arg" : "X\\(.*\\)$as_nl";
12487 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12488 esac;
12489 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12491 export as_echo_n_body
12492 as_echo_n='sh -c $as_echo_n_body as_echo'
12494 export as_echo_body
12495 as_echo='sh -c $as_echo_body as_echo'
12498 # The user is always right.
12499 if test "${PATH_SEPARATOR+set}" != set; then
12500 PATH_SEPARATOR=:
12501 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12502 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12503 PATH_SEPARATOR=';'
12507 # Support unset when possible.
12508 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12509 as_unset=unset
12510 else
12511 as_unset=false
12515 # IFS
12516 # We need space, tab and new line, in precisely that order. Quoting is
12517 # there to prevent editors from complaining about space-tab.
12518 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12519 # splitting by setting IFS to empty value.)
12520 IFS=" "" $as_nl"
12522 # Find who we are. Look in the path if we contain no directory separator.
12523 case $0 in
12524 *[\\/]* ) as_myself=$0 ;;
12525 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12526 for as_dir in $PATH
12528 IFS=$as_save_IFS
12529 test -z "$as_dir" && as_dir=.
12530 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12531 done
12532 IFS=$as_save_IFS
12535 esac
12536 # We did not find ourselves, most probably we were run as `sh COMMAND'
12537 # in which case we are not to be found in the path.
12538 if test "x$as_myself" = x; then
12539 as_myself=$0
12541 if test ! -f "$as_myself"; then
12542 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12543 { (exit 1); exit 1; }
12546 # Work around bugs in pre-3.0 UWIN ksh.
12547 for as_var in ENV MAIL MAILPATH
12548 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12549 done
12550 PS1='$ '
12551 PS2='> '
12552 PS4='+ '
12554 # NLS nuisances.
12555 LC_ALL=C
12556 export LC_ALL
12557 LANGUAGE=C
12558 export LANGUAGE
12560 # Required to use basename.
12561 if expr a : '\(a\)' >/dev/null 2>&1 &&
12562 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12563 as_expr=expr
12564 else
12565 as_expr=false
12568 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12569 as_basename=basename
12570 else
12571 as_basename=false
12575 # Name of the executable.
12576 as_me=`$as_basename -- "$0" ||
12577 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12578 X"$0" : 'X\(//\)$' \| \
12579 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12580 $as_echo X/"$0" |
12581 sed '/^.*\/\([^/][^/]*\)\/*$/{
12582 s//\1/
12585 /^X\/\(\/\/\)$/{
12586 s//\1/
12589 /^X\/\(\/\).*/{
12590 s//\1/
12593 s/.*/./; q'`
12595 # CDPATH.
12596 $as_unset CDPATH
12600 as_lineno_1=$LINENO
12601 as_lineno_2=$LINENO
12602 test "x$as_lineno_1" != "x$as_lineno_2" &&
12603 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
12605 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12606 # uniformly replaced by the line number. The first 'sed' inserts a
12607 # line-number line after each line using $LINENO; the second 'sed'
12608 # does the real work. The second script uses 'N' to pair each
12609 # line-number line with the line containing $LINENO, and appends
12610 # trailing '-' during substitution so that $LINENO is not a special
12611 # case at line end.
12612 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12613 # scripts with optimization help from Paolo Bonzini. Blame Lee
12614 # E. McMahon (1931-1989) for sed's syntax. :-)
12615 sed -n '
12617 /[$]LINENO/=
12618 ' <$as_myself |
12619 sed '
12620 s/[$]LINENO.*/&-/
12621 t lineno
12623 :lineno
12625 :loop
12626 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
12627 t loop
12628 s/-\n.*//
12629 ' >$as_me.lineno &&
12630 chmod +x "$as_me.lineno" ||
12631 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
12632 { (exit 1); exit 1; }; }
12634 # Don't try to exec as it changes $[0], causing all sort of problems
12635 # (the dirname of $[0] is not the place where we might find the
12636 # original and so on. Autoconf is especially sensitive to this).
12637 . "./$as_me.lineno"
12638 # Exit status is that of the last command.
12639 exit
12643 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12644 as_dirname=dirname
12645 else
12646 as_dirname=false
12649 ECHO_C= ECHO_N= ECHO_T=
12650 case `echo -n x` in
12651 -n*)
12652 case `echo 'x\c'` in
12653 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12654 *) ECHO_C='\c';;
12655 esac;;
12657 ECHO_N='-n';;
12658 esac
12659 if expr a : '\(a\)' >/dev/null 2>&1 &&
12660 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12661 as_expr=expr
12662 else
12663 as_expr=false
12666 rm -f conf$$ conf$$.exe conf$$.file
12667 if test -d conf$$.dir; then
12668 rm -f conf$$.dir/conf$$.file
12669 else
12670 rm -f conf$$.dir
12671 mkdir conf$$.dir 2>/dev/null
12673 if (echo >conf$$.file) 2>/dev/null; then
12674 if ln -s conf$$.file conf$$ 2>/dev/null; then
12675 as_ln_s='ln -s'
12676 # ... but there are two gotchas:
12677 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12678 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12679 # In both cases, we have to default to `cp -p'.
12680 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12681 as_ln_s='cp -p'
12682 elif ln conf$$.file conf$$ 2>/dev/null; then
12683 as_ln_s=ln
12684 else
12685 as_ln_s='cp -p'
12687 else
12688 as_ln_s='cp -p'
12690 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12691 rmdir conf$$.dir 2>/dev/null
12693 if mkdir -p . 2>/dev/null; then
12694 as_mkdir_p=:
12695 else
12696 test -d ./-p && rmdir ./-p
12697 as_mkdir_p=false
12700 if test -x / >/dev/null 2>&1; then
12701 as_test_x='test -x'
12702 else
12703 if ls -dL / >/dev/null 2>&1; then
12704 as_ls_L_option=L
12705 else
12706 as_ls_L_option=
12708 as_test_x='
12709 eval sh -c '\''
12710 if test -d "$1"; then
12711 test -d "$1/.";
12712 else
12713 case $1 in
12714 -*)set "./$1";;
12715 esac;
12716 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
12717 ???[sx]*):;;*)false;;esac;fi
12718 '\'' sh
12721 as_executable_p=$as_test_x
12723 # Sed expression to map a string onto a valid CPP name.
12724 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12726 # Sed expression to map a string onto a valid variable name.
12727 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12730 exec 6>&1
12732 # Save the log message, to keep $[0] and so on meaningful, and to
12733 # report actual input values of CONFIG_FILES etc. instead of their
12734 # values after options handling.
12735 ac_log="
12736 This file was extended by $as_me, which was
12737 generated by GNU Autoconf 2.63. Invocation command line was
12739 CONFIG_FILES = $CONFIG_FILES
12740 CONFIG_HEADERS = $CONFIG_HEADERS
12741 CONFIG_LINKS = $CONFIG_LINKS
12742 CONFIG_COMMANDS = $CONFIG_COMMANDS
12743 $ $0 $@
12745 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12748 _ACEOF
12750 case $ac_config_files in *"
12751 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12752 esac
12754 case $ac_config_headers in *"
12755 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12756 esac
12759 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12760 # Files that config.status was made for.
12761 config_files="$ac_config_files"
12762 config_headers="$ac_config_headers"
12764 _ACEOF
12766 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12767 ac_cs_usage="\
12768 \`$as_me' instantiates files from templates according to the
12769 current configuration.
12771 Usage: $0 [OPTION]... [FILE]...
12773 -h, --help print this help, then exit
12774 -V, --version print version number and configuration settings, then exit
12775 -q, --quiet, --silent
12776 do not print progress messages
12777 -d, --debug don't remove temporary files
12778 --recheck update $as_me by reconfiguring in the same conditions
12779 --file=FILE[:TEMPLATE]
12780 instantiate the configuration file FILE
12781 --header=FILE[:TEMPLATE]
12782 instantiate the configuration header FILE
12784 Configuration files:
12785 $config_files
12787 Configuration headers:
12788 $config_headers
12790 Report bugs to <bug-autoconf@gnu.org>."
12792 _ACEOF
12793 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12794 ac_cs_version="\\
12795 config.status
12796 configured by $0, generated by GNU Autoconf 2.63,
12797 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
12799 Copyright (C) 2008 Free Software Foundation, Inc.
12800 This config.status script is free software; the Free Software Foundation
12801 gives unlimited permission to copy, distribute and modify it."
12803 ac_pwd='$ac_pwd'
12804 srcdir='$srcdir'
12805 INSTALL='$INSTALL'
12806 test -n "\$AWK" || AWK=awk
12807 _ACEOF
12809 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12810 # The default lists apply if the user does not specify any file.
12811 ac_need_defaults=:
12812 while test $# != 0
12814 case $1 in
12815 --*=*)
12816 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12817 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12818 ac_shift=:
12821 ac_option=$1
12822 ac_optarg=$2
12823 ac_shift=shift
12825 esac
12827 case $ac_option in
12828 # Handling of the options.
12829 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12830 ac_cs_recheck=: ;;
12831 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12832 $as_echo "$ac_cs_version"; exit ;;
12833 --debug | --debu | --deb | --de | --d | -d )
12834 debug=: ;;
12835 --file | --fil | --fi | --f )
12836 $ac_shift
12837 case $ac_optarg in
12838 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12839 esac
12840 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
12841 ac_need_defaults=false;;
12842 --header | --heade | --head | --hea )
12843 $ac_shift
12844 case $ac_optarg in
12845 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12846 esac
12847 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
12848 ac_need_defaults=false;;
12849 --he | --h)
12850 # Conflict between --help and --header
12851 { $as_echo "$as_me: error: ambiguous option: $1
12852 Try \`$0 --help' for more information." >&2
12853 { (exit 1); exit 1; }; };;
12854 --help | --hel | -h )
12855 $as_echo "$ac_cs_usage"; exit ;;
12856 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12857 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12858 ac_cs_silent=: ;;
12860 # This is an error.
12861 -*) { $as_echo "$as_me: error: unrecognized option: $1
12862 Try \`$0 --help' for more information." >&2
12863 { (exit 1); exit 1; }; } ;;
12865 *) ac_config_targets="$ac_config_targets $1"
12866 ac_need_defaults=false ;;
12868 esac
12869 shift
12870 done
12872 ac_configure_extra_args=
12874 if $ac_cs_silent; then
12875 exec 6>/dev/null
12876 ac_configure_extra_args="$ac_configure_extra_args --silent"
12879 _ACEOF
12880 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12881 if \$ac_cs_recheck; then
12882 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12883 shift
12884 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12885 CONFIG_SHELL='$SHELL'
12886 export CONFIG_SHELL
12887 exec "\$@"
12890 _ACEOF
12891 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12892 exec 5>>config.log
12894 echo
12895 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12896 ## Running $as_me. ##
12897 _ASBOX
12898 $as_echo "$ac_log"
12899 } >&5
12901 _ACEOF
12902 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12903 _ACEOF
12905 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12907 # Handling of arguments.
12908 for ac_config_target in $ac_config_targets
12910 case $ac_config_target in
12911 "src/include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/config.h:src/include/config.hin" ;;
12912 "stamp-h") CONFIG_FILES="$CONFIG_FILES stamp-h" ;;
12913 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12914 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
12915 "src/utils/xtotroff/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/xtotroff/Makefile" ;;
12916 "contrib/gdiffmk/tests/runtests") CONFIG_FILES="$CONFIG_FILES contrib/gdiffmk/tests/runtests" ;;
12917 "test-groff") CONFIG_FILES="$CONFIG_FILES test-groff" ;;
12919 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12920 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12921 { (exit 1); exit 1; }; };;
12922 esac
12923 done
12926 # If the user did not use the arguments to specify the items to instantiate,
12927 # then the envvar interface is used. Set only those that are not.
12928 # We use the long form for the default assignment because of an extremely
12929 # bizarre bug on SunOS 4.1.3.
12930 if $ac_need_defaults; then
12931 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12932 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12935 # Have a temporary directory for convenience. Make it in the build tree
12936 # simply because there is no reason against having it here, and in addition,
12937 # creating and moving files from /tmp can sometimes cause problems.
12938 # Hook for its removal unless debugging.
12939 # Note that there is a small window in which the directory will not be cleaned:
12940 # after its creation but before its name has been assigned to `$tmp'.
12941 $debug ||
12943 tmp=
12944 trap 'exit_status=$?
12945 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12947 trap '{ (exit 1); exit 1; }' 1 2 13 15
12949 # Create a (secure) tmp directory for tmp files.
12952 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12953 test -n "$tmp" && test -d "$tmp"
12954 } ||
12956 tmp=./conf$$-$RANDOM
12957 (umask 077 && mkdir "$tmp")
12958 } ||
12960 $as_echo "$as_me: cannot create a temporary directory in ." >&2
12961 { (exit 1); exit 1; }
12964 # Set up the scripts for CONFIG_FILES section.
12965 # No need to generate them if there are no CONFIG_FILES.
12966 # This happens for instance with `./config.status config.h'.
12967 if test -n "$CONFIG_FILES"; then
12970 ac_cr=' '
12971 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12972 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12973 ac_cs_awk_cr='\\r'
12974 else
12975 ac_cs_awk_cr=$ac_cr
12978 echo 'BEGIN {' >"$tmp/subs1.awk" &&
12979 _ACEOF
12983 echo "cat >conf$$subs.awk <<_ACEOF" &&
12984 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12985 echo "_ACEOF"
12986 } >conf$$subs.sh ||
12987 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12988 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12989 { (exit 1); exit 1; }; }
12990 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
12991 ac_delim='%!_!# '
12992 for ac_last_try in false false false false false :; do
12993 . ./conf$$subs.sh ||
12994 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12995 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12996 { (exit 1); exit 1; }; }
12998 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12999 if test $ac_delim_n = $ac_delim_num; then
13000 break
13001 elif $ac_last_try; then
13002 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13003 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13004 { (exit 1); exit 1; }; }
13005 else
13006 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13008 done
13009 rm -f conf$$subs.sh
13011 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13012 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13013 _ACEOF
13014 sed -n '
13016 s/^/S["/; s/!.*/"]=/
13019 s/^[^!]*!//
13020 :repl
13021 t repl
13022 s/'"$ac_delim"'$//
13023 t delim
13026 s/\(.\{148\}\).*/\1/
13027 t more1
13028 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13031 b repl
13032 :more1
13033 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13036 s/.\{148\}//
13037 t nl
13038 :delim
13040 s/\(.\{148\}\).*/\1/
13041 t more2
13042 s/["\\]/\\&/g; s/^/"/; s/$/"/
13045 :more2
13046 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13049 s/.\{148\}//
13050 t delim
13051 ' <conf$$subs.awk | sed '
13052 /^[^""]/{
13054 s/\n//
13056 ' >>$CONFIG_STATUS || ac_write_fail=1
13057 rm -f conf$$subs.awk
13058 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13059 _ACAWK
13060 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13061 for (key in S) S_is_set[key] = 1
13062 FS = "\a"
13066 line = $ 0
13067 nfields = split(line, field, "@")
13068 substed = 0
13069 len = length(field[1])
13070 for (i = 2; i < nfields; i++) {
13071 key = field[i]
13072 keylen = length(key)
13073 if (S_is_set[key]) {
13074 value = S[key]
13075 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13076 len += length(value) + length(field[++i])
13077 substed = 1
13078 } else
13079 len += 1 + keylen
13082 print line
13085 _ACAWK
13086 _ACEOF
13087 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13088 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13089 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13090 else
13092 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13093 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
13094 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
13095 { (exit 1); exit 1; }; }
13096 _ACEOF
13098 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13099 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13100 # trailing colons and then remove the whole line if VPATH becomes empty
13101 # (actually we leave an empty line to preserve line numbers).
13102 if test "x$srcdir" = x.; then
13103 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13104 s/:*\$(srcdir):*/:/
13105 s/:*\${srcdir}:*/:/
13106 s/:*@srcdir@:*/:/
13107 s/^\([^=]*=[ ]*\):*/\1/
13108 s/:*$//
13109 s/^[^=]*=[ ]*$//
13113 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13114 fi # test -n "$CONFIG_FILES"
13116 # Set up the scripts for CONFIG_HEADERS section.
13117 # No need to generate them if there are no CONFIG_HEADERS.
13118 # This happens for instance with `./config.status Makefile'.
13119 if test -n "$CONFIG_HEADERS"; then
13120 cat >"$tmp/defines.awk" <<\_ACAWK ||
13121 BEGIN {
13122 _ACEOF
13124 # Transform confdefs.h into an awk script `defines.awk', embedded as
13125 # here-document in config.status, that substitutes the proper values into
13126 # config.h.in to produce config.h.
13128 # Create a delimiter string that does not exist in confdefs.h, to ease
13129 # handling of long lines.
13130 ac_delim='%!_!# '
13131 for ac_last_try in false false :; do
13132 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
13133 if test -z "$ac_t"; then
13134 break
13135 elif $ac_last_try; then
13136 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
13137 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
13138 { (exit 1); exit 1; }; }
13139 else
13140 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13142 done
13144 # For the awk script, D is an array of macro values keyed by name,
13145 # likewise P contains macro parameters if any. Preserve backslash
13146 # newline sequences.
13148 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13149 sed -n '
13150 s/.\{148\}/&'"$ac_delim"'/g
13151 t rset
13152 :rset
13153 s/^[ ]*#[ ]*define[ ][ ]*/ /
13154 t def
13156 :def
13157 s/\\$//
13158 t bsnl
13159 s/["\\]/\\&/g
13160 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13161 D["\1"]=" \3"/p
13162 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13164 :bsnl
13165 s/["\\]/\\&/g
13166 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13167 D["\1"]=" \3\\\\\\n"\\/p
13168 t cont
13169 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13170 t cont
13172 :cont
13174 s/.\{148\}/&'"$ac_delim"'/g
13175 t clear
13176 :clear
13177 s/\\$//
13178 t bsnlc
13179 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13181 :bsnlc
13182 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13183 b cont
13184 ' <confdefs.h | sed '
13185 s/'"$ac_delim"'/"\\\
13186 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13188 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13189 for (key in D) D_is_set[key] = 1
13190 FS = "\a"
13192 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13193 line = \$ 0
13194 split(line, arg, " ")
13195 if (arg[1] == "#") {
13196 defundef = arg[2]
13197 mac1 = arg[3]
13198 } else {
13199 defundef = substr(arg[1], 2)
13200 mac1 = arg[2]
13202 split(mac1, mac2, "(") #)
13203 macro = mac2[1]
13204 prefix = substr(line, 1, index(line, defundef) - 1)
13205 if (D_is_set[macro]) {
13206 # Preserve the white space surrounding the "#".
13207 print prefix "define", macro P[macro] D[macro]
13208 next
13209 } else {
13210 # Replace #undef with comments. This is necessary, for example,
13211 # in the case of _POSIX_SOURCE, which is predefined and required
13212 # on some systems where configure will not decide to define it.
13213 if (defundef == "undef") {
13214 print "/*", prefix defundef, macro, "*/"
13215 next
13219 { print }
13220 _ACAWK
13221 _ACEOF
13222 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13223 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
13224 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
13225 { (exit 1); exit 1; }; }
13226 fi # test -n "$CONFIG_HEADERS"
13229 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
13230 shift
13231 for ac_tag
13233 case $ac_tag in
13234 :[FHLC]) ac_mode=$ac_tag; continue;;
13235 esac
13236 case $ac_mode$ac_tag in
13237 :[FHL]*:*);;
13238 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
13239 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
13240 { (exit 1); exit 1; }; };;
13241 :[FH]-) ac_tag=-:-;;
13242 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13243 esac
13244 ac_save_IFS=$IFS
13245 IFS=:
13246 set x $ac_tag
13247 IFS=$ac_save_IFS
13248 shift
13249 ac_file=$1
13250 shift
13252 case $ac_mode in
13253 :L) ac_source=$1;;
13254 :[FH])
13255 ac_file_inputs=
13256 for ac_f
13258 case $ac_f in
13259 -) ac_f="$tmp/stdin";;
13260 *) # Look for the file first in the build tree, then in the source tree
13261 # (if the path is not absolute). The absolute path cannot be DOS-style,
13262 # because $ac_f cannot contain `:'.
13263 test -f "$ac_f" ||
13264 case $ac_f in
13265 [\\/$]*) false;;
13266 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13267 esac ||
13268 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
13269 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
13270 { (exit 1); exit 1; }; };;
13271 esac
13272 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13273 ac_file_inputs="$ac_file_inputs '$ac_f'"
13274 done
13276 # Let's still pretend it is `configure' which instantiates (i.e., don't
13277 # use $as_me), people would be surprised to read:
13278 # /* config.h. Generated by config.status. */
13279 configure_input='Generated from '`
13280 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13281 `' by configure.'
13282 if test x"$ac_file" != x-; then
13283 configure_input="$ac_file. $configure_input"
13284 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
13285 $as_echo "$as_me: creating $ac_file" >&6;}
13287 # Neutralize special characters interpreted by sed in replacement strings.
13288 case $configure_input in #(
13289 *\&* | *\|* | *\\* )
13290 ac_sed_conf_input=`$as_echo "$configure_input" |
13291 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13292 *) ac_sed_conf_input=$configure_input;;
13293 esac
13295 case $ac_tag in
13296 *:-:* | *:-) cat >"$tmp/stdin" \
13297 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13298 $as_echo "$as_me: error: could not create $ac_file" >&2;}
13299 { (exit 1); exit 1; }; } ;;
13300 esac
13302 esac
13304 ac_dir=`$as_dirname -- "$ac_file" ||
13305 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13306 X"$ac_file" : 'X\(//\)[^/]' \| \
13307 X"$ac_file" : 'X\(//\)$' \| \
13308 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13309 $as_echo X"$ac_file" |
13310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13311 s//\1/
13314 /^X\(\/\/\)[^/].*/{
13315 s//\1/
13318 /^X\(\/\/\)$/{
13319 s//\1/
13322 /^X\(\/\).*/{
13323 s//\1/
13326 s/.*/./; q'`
13327 { as_dir="$ac_dir"
13328 case $as_dir in #(
13329 -*) as_dir=./$as_dir;;
13330 esac
13331 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
13332 as_dirs=
13333 while :; do
13334 case $as_dir in #(
13335 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13336 *) as_qdir=$as_dir;;
13337 esac
13338 as_dirs="'$as_qdir' $as_dirs"
13339 as_dir=`$as_dirname -- "$as_dir" ||
13340 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13341 X"$as_dir" : 'X\(//\)[^/]' \| \
13342 X"$as_dir" : 'X\(//\)$' \| \
13343 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13344 $as_echo X"$as_dir" |
13345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13346 s//\1/
13349 /^X\(\/\/\)[^/].*/{
13350 s//\1/
13353 /^X\(\/\/\)$/{
13354 s//\1/
13357 /^X\(\/\).*/{
13358 s//\1/
13361 s/.*/./; q'`
13362 test -d "$as_dir" && break
13363 done
13364 test -z "$as_dirs" || eval "mkdir $as_dirs"
13365 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13366 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
13367 { (exit 1); exit 1; }; }; }
13368 ac_builddir=.
13370 case "$ac_dir" in
13371 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13373 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13374 # A ".." for each directory in $ac_dir_suffix.
13375 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13376 case $ac_top_builddir_sub in
13377 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13378 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13379 esac ;;
13380 esac
13381 ac_abs_top_builddir=$ac_pwd
13382 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13383 # for backward compatibility:
13384 ac_top_builddir=$ac_top_build_prefix
13386 case $srcdir in
13387 .) # We are building in place.
13388 ac_srcdir=.
13389 ac_top_srcdir=$ac_top_builddir_sub
13390 ac_abs_top_srcdir=$ac_pwd ;;
13391 [\\/]* | ?:[\\/]* ) # Absolute name.
13392 ac_srcdir=$srcdir$ac_dir_suffix;
13393 ac_top_srcdir=$srcdir
13394 ac_abs_top_srcdir=$srcdir ;;
13395 *) # Relative name.
13396 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13397 ac_top_srcdir=$ac_top_build_prefix$srcdir
13398 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13399 esac
13400 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13403 case $ac_mode in
13406 # CONFIG_FILE
13409 case $INSTALL in
13410 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13411 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13412 esac
13413 _ACEOF
13415 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13416 # If the template does not know about datarootdir, expand it.
13417 # FIXME: This hack should be removed a few years after 2.60.
13418 ac_datarootdir_hack=; ac_datarootdir_seen=
13420 ac_sed_dataroot='
13421 /datarootdir/ {
13425 /@datadir@/p
13426 /@docdir@/p
13427 /@infodir@/p
13428 /@localedir@/p
13429 /@mandir@/p
13431 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13432 *datarootdir*) ac_datarootdir_seen=yes;;
13433 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13434 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13435 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13436 _ACEOF
13437 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13438 ac_datarootdir_hack='
13439 s&@datadir@&$datadir&g
13440 s&@docdir@&$docdir&g
13441 s&@infodir@&$infodir&g
13442 s&@localedir@&$localedir&g
13443 s&@mandir@&$mandir&g
13444 s&\\\${datarootdir}&$datarootdir&g' ;;
13445 esac
13446 _ACEOF
13448 # Neutralize VPATH when `$srcdir' = `.'.
13449 # Shell code in configure.ac might set extrasub.
13450 # FIXME: do we really want to maintain this feature?
13451 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13452 ac_sed_extra="$ac_vpsub
13453 $extrasub
13454 _ACEOF
13455 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13457 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13458 s|@configure_input@|$ac_sed_conf_input|;t t
13459 s&@top_builddir@&$ac_top_builddir_sub&;t t
13460 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13461 s&@srcdir@&$ac_srcdir&;t t
13462 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13463 s&@top_srcdir@&$ac_top_srcdir&;t t
13464 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13465 s&@builddir@&$ac_builddir&;t t
13466 s&@abs_builddir@&$ac_abs_builddir&;t t
13467 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13468 s&@INSTALL@&$ac_INSTALL&;t t
13469 $ac_datarootdir_hack
13471 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
13472 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13473 $as_echo "$as_me: error: could not create $ac_file" >&2;}
13474 { (exit 1); exit 1; }; }
13476 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13477 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13478 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13479 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13480 which seems to be undefined. Please make sure it is defined." >&5
13481 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13482 which seems to be undefined. Please make sure it is defined." >&2;}
13484 rm -f "$tmp/stdin"
13485 case $ac_file in
13486 -) cat "$tmp/out" && rm -f "$tmp/out";;
13487 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13488 esac \
13489 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13490 $as_echo "$as_me: error: could not create $ac_file" >&2;}
13491 { (exit 1); exit 1; }; }
13495 # CONFIG_HEADER
13497 if test x"$ac_file" != x-; then
13499 $as_echo "/* $configure_input */" \
13500 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
13501 } >"$tmp/config.h" \
13502 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13503 $as_echo "$as_me: error: could not create $ac_file" >&2;}
13504 { (exit 1); exit 1; }; }
13505 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
13506 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13507 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13508 else
13509 rm -f "$ac_file"
13510 mv "$tmp/config.h" "$ac_file" \
13511 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13512 $as_echo "$as_me: error: could not create $ac_file" >&2;}
13513 { (exit 1); exit 1; }; }
13515 else
13516 $as_echo "/* $configure_input */" \
13517 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
13518 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
13519 $as_echo "$as_me: error: could not create -" >&2;}
13520 { (exit 1); exit 1; }; }
13525 esac
13528 case $ac_file$ac_mode in
13529 "stamp-h":F) echo timestamp > stamp-h ;;
13530 "contrib/gdiffmk/tests/runtests":F) chmod +x contrib/gdiffmk/tests/runtests ;;
13531 "test-groff":F) chmod +x test-groff ;;
13533 esac
13534 done # for ac_tag
13537 { (exit 0); exit 0; }
13538 _ACEOF
13539 chmod +x $CONFIG_STATUS
13540 ac_clean_files=$ac_clean_files_save
13542 test $ac_write_fail = 0 ||
13543 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
13544 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
13545 { (exit 1); exit 1; }; }
13548 # configure is writing to config.log, and then calls config.status.
13549 # config.status does its own redirection, appending to config.log.
13550 # Unfortunately, on DOS this fails, as config.log is still kept open
13551 # by configure, so config.status won't be able to write to it; its
13552 # output is simply discarded. So we exec the FD to /dev/null,
13553 # effectively closing config.log, so it can be properly (re)opened and
13554 # appended to by config.status. When coming back to configure, we
13555 # need to make the FD available again.
13556 if test "$no_create" != yes; then
13557 ac_cs_success=:
13558 ac_config_status_args=
13559 test "$silent" = yes &&
13560 ac_config_status_args="$ac_config_status_args --quiet"
13561 exec 5>/dev/null
13562 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13563 exec 5>>config.log
13564 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13565 # would make configure fail if this is the last instruction.
13566 $ac_cs_success || { (exit 1); exit 1; }
13568 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13569 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13570 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13574 if test -z "$groff_no_x"; then
13575 if test "x$with_appresdir" = "x"; then
13576 { $as_echo "$as_me:$LINENO:
13578 The application resource files for gxditview will be installed as
13580 $appresdir/GXditview
13584 $appresdir/GXditview-color
13586 (existing files will be saved by appending \`.old' to the file
13587 name).
13589 To install them into a different directory, say, \`/etc/gxditview',
13590 add \`--with-appresdir=/etc/gxditview' to the configure script
13591 command line options and rerun it. The environment variable
13592 \`APPLRESDIR' must then be set to \`/etc/' (note the trailing slash),
13593 omitting the \`gxditview' part which is automatically appended by
13594 the X11 searching routines for resource files. More details can be
13595 found in the X(7) manual page.
13596 " >&5
13597 $as_echo "$as_me:
13599 The application resource files for gxditview will be installed as
13601 $appresdir/GXditview
13605 $appresdir/GXditview-color
13607 (existing files will be saved by appending \`.old' to the file
13608 name).
13610 To install them into a different directory, say, \`/etc/gxditview',
13611 add \`--with-appresdir=/etc/gxditview' to the configure script
13612 command line options and rerun it. The environment variable
13613 \`APPLRESDIR' must then be set to \`/etc/' (note the trailing slash),
13614 omitting the \`gxditview' part which is automatically appended by
13615 the X11 searching routines for resource files. More details can be
13616 found in the X(7) manual page.
13617 " >&6;}