2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for groff 1.22.2.
5 # Report bugs to <bug-groff@gnu.org>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149 *v*x* | *x*v* ) as_opts=-vx ;;
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in #(
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev/null; then :
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
215 test -z "$as_dir" && as_dir=.
219 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks.
221 as_shell=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
240 if test "x$CONFIG_SHELL" != x; then :
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
250 *v*x* | *x*v* ) as_opts=-vx ;;
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
262 if test x$as_have_required = xno; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x${ZSH_VERSION+set} = xset ; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
269 $as_echo "$0: Please tell bug-autoconf@gnu.org and bug-groff@gnu.org
270 $0: about your system, including any error possibly output
271 $0: before this message. Then install a modern shell, or
272 $0: manually run the script under such a shell if you do
279 SHELL=${CONFIG_SHELL-/bin/sh}
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE= GREP_OPTIONS=
283 unset CLICOLOR_FORCE GREP_OPTIONS
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
290 # Portably unset VAR.
293 { eval $1=; unset $1;}
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 # Create "$as_dir" as a directory, including parents if necessary.
322 -*) as_dir=./$as_dir;;
324 test -d "$as_dir" || eval $as_mkdir_p || {
328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
331 as_dirs="'$as_qdir' $as_dirs"
332 as_dir=`$as_dirname -- "$as_dir" ||
333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334 X"$as_dir" : 'X\(//\)[^/]' \| \
335 X"$as_dir" : 'X\(//\)$' \| \
336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337 $as_echo X"$as_dir" |
338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
355 test -d "$as_dir" && break
357 test -z "$as_dirs" || eval "mkdir $as_dirs"
358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p ()
368 test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
370 # as_fn_append VAR VALUE
371 # ----------------------
372 # Append the text in VALUE to the end of the definition contained in VAR. Take
373 # advantage of any shell optimizations that allow amortized linear growth over
374 # repeated appends, instead of the typical quadratic growth present in naive
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377 eval 'as_fn_append ()
390 # Perform arithmetic evaluation on the ARGs, and store the result in the
391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
392 # must be portable across $(()) and expr.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
401 as_val=`expr "$@" || test $? -eq 1`
406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
407 # ----------------------------------------
408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410 # script with STATUS, using 1 if that was 0.
413 as_status=$1; test $as_status -eq 0 && as_status=1
415 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
418 $as_echo "$as_me: error: $2" >&2
419 as_fn_exit $as_status
422 if expr a : '\(a\)' >/dev/null 2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_me=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
446 sed '/^.*\/\([^/][^/]*\)\/*$/{
460 # Avoid depending upon Character Ranges.
461 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits='0123456789'
465 as_cr_alnum=$as_cr_Letters$as_cr_digits
468 as_lineno_1=$LINENO as_lineno_1a=$LINENO
469 as_lineno_2=$LINENO as_lineno_2a=$LINENO
470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
488 chmod +x "$as_me.lineno" ||
489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492 # already done that, so ensure we don't try to do so again and fall
493 # in an infinite loop. This has already happened in practice.
494 _as_can_reexec=no; export _as_can_reexec
495 # Don't try to exec as it changes $[0], causing all sort of problems
496 # (the dirname of $[0] is not the place where we might find the
497 # original and so on. Autoconf is especially sensitive to this).
499 # Exit status is that of the last command.
503 ECHO_C= ECHO_N= ECHO_T=
504 case `echo -n x` in #(((((
506 case `echo 'xy\c'` in
507 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
516 rm -f conf$$ conf$$.exe conf$$.file
517 if test -d conf$$.dir; then
518 rm -f conf$$.dir/conf$$.file
521 mkdir conf$$.dir 2>/dev/null
523 if (echo >conf$$.file) 2>/dev/null; then
524 if ln -s conf$$.file conf$$ 2>/dev/null; then
526 # ... but there are two gotchas:
527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529 # In both cases, we have to default to `cp -pR'.
530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
532 elif ln conf$$.file conf$$ 2>/dev/null; then
540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541 rmdir conf$$.dir 2>/dev/null
543 if mkdir -p . 2>/dev/null; then
544 as_mkdir_p='mkdir -p "$as_dir"'
546 test -d ./-p && rmdir ./-p
551 as_executable_p=as_fn_executable_p
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
560 test -n "$DJDIR" || exec 7<&0 </dev/null
564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565 # so uname gets run too.
566 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
571 ac_default_prefix=/usr/local
573 ac_config_libobj_dir=.
580 # Identity of this package.
582 PACKAGE_TARNAME='groff-1.22.2'
583 PACKAGE_VERSION='1.22.2'
584 PACKAGE_STRING='groff 1.22.2'
585 PACKAGE_BUGREPORT='bug-groff@gnu.org'
588 ac_unique_file="src/roff/groff/groff.cpp"
589 # Factoring default headers for most tests.
590 ac_includes_default="\
592 #ifdef HAVE_SYS_TYPES_H
593 # include <sys/types.h>
595 #ifdef HAVE_SYS_STAT_H
596 # include <sys/stat.h>
602 # ifdef HAVE_STDLIB_H
607 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
612 #ifdef HAVE_STRINGS_H
613 # include <strings.h>
615 #ifdef HAVE_INTTYPES_H
616 # include <inttypes.h>
627 ac_subst_vars='LTLIBOBJS
644 ALT_GHOSTSCRIPT_PROGS
733 program_transform_name
746 enable_option_checking
758 ac_precious_vars='build_alias
774 # Initialize some variables set by options.
776 ac_init_version=false
777 ac_unrecognized_opts=
779 # The variables have the same names as the options, with
780 # dashes changed to underlines.
788 program_transform_name=s,x,x,
796 # Installation directory options.
797 # These are left unexpanded so users can "make install exec_prefix=/foo"
798 # and all the variables that are supposed to be based on exec_prefix
799 # by default will actually change.
800 # Use braces instead of parens because sh, perl, etc. also accept them.
801 # (The list follows the same order as the GNU Coding Standards.)
802 bindir='${exec_prefix}/bin'
803 sbindir='${exec_prefix}/sbin'
804 libexecdir='${exec_prefix}/libexec'
805 datarootdir='${prefix}/share'
806 datadir='${datarootdir}'
807 sysconfdir='${prefix}/etc'
808 sharedstatedir='${prefix}/com'
809 localstatedir='${prefix}/var'
810 includedir='${prefix}/include'
811 oldincludedir='/usr/include'
812 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
813 infodir='${datarootdir}/info'
818 libdir='${exec_prefix}/lib'
819 localedir='${datarootdir}/locale'
820 mandir='${datarootdir}/man'
826 # If the previous option needs an argument, assign it.
827 if test -n "$ac_prev"; then
828 eval $ac_prev=\$ac_option
834 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
839 # Accept the important Cygnus configure options, so we can diagnose typos.
841 case $ac_dashdash$ac_option in
845 -bindir | --bindir | --bindi | --bind | --bin | --bi)
847 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
850 -build | --build | --buil | --bui | --bu)
851 ac_prev=build_alias ;;
852 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
853 build_alias=$ac_optarg ;;
855 -cache-file | --cache-file | --cache-fil | --cache-fi \
856 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
857 ac_prev=cache_file ;;
858 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
859 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
860 cache_file=$ac_optarg ;;
863 cache_file=config.cache ;;
865 -datadir | --datadir | --datadi | --datad)
867 -datadir=* | --datadir=* | --datadi=* | --datad=*)
868 datadir=$ac_optarg ;;
870 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
871 | --dataroo | --dataro | --datar)
872 ac_prev=datarootdir ;;
873 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
874 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
875 datarootdir=$ac_optarg ;;
877 -disable-* | --disable-*)
878 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
879 # Reject names that are not valid shell variable names.
880 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
881 as_fn_error $? "invalid feature name: $ac_useropt"
882 ac_useropt_orig=$ac_useropt
883 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
884 case $ac_user_opts in
888 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
889 ac_unrecognized_sep=', ';;
891 eval enable_$ac_useropt=no ;;
893 -docdir | --docdir | --docdi | --doc | --do)
895 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
898 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
900 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
903 -enable-* | --enable-*)
904 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
905 # Reject names that are not valid shell variable names.
906 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
907 as_fn_error $? "invalid feature name: $ac_useropt"
908 ac_useropt_orig=$ac_useropt
909 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
910 case $ac_user_opts in
914 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
915 ac_unrecognized_sep=', ';;
917 eval enable_$ac_useropt=\$ac_optarg ;;
919 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
920 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
921 | --exec | --exe | --ex)
922 ac_prev=exec_prefix ;;
923 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
924 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
925 | --exec=* | --exe=* | --ex=*)
926 exec_prefix=$ac_optarg ;;
928 -gas | --gas | --ga | --g)
929 # Obsolete; use --with-gas.
932 -help | --help | --hel | --he | -h)
934 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
935 ac_init_help=recursive ;;
936 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
937 ac_init_help=short ;;
939 -host | --host | --hos | --ho)
940 ac_prev=host_alias ;;
941 -host=* | --host=* | --hos=* | --ho=*)
942 host_alias=$ac_optarg ;;
944 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
946 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
948 htmldir=$ac_optarg ;;
950 -includedir | --includedir | --includedi | --included | --include \
951 | --includ | --inclu | --incl | --inc)
952 ac_prev=includedir ;;
953 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
954 | --includ=* | --inclu=* | --incl=* | --inc=*)
955 includedir=$ac_optarg ;;
957 -infodir | --infodir | --infodi | --infod | --info | --inf)
959 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
960 infodir=$ac_optarg ;;
962 -libdir | --libdir | --libdi | --libd)
964 -libdir=* | --libdir=* | --libdi=* | --libd=*)
967 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
968 | --libexe | --libex | --libe)
969 ac_prev=libexecdir ;;
970 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
971 | --libexe=* | --libex=* | --libe=*)
972 libexecdir=$ac_optarg ;;
974 -localedir | --localedir | --localedi | --localed | --locale)
976 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
977 localedir=$ac_optarg ;;
979 -localstatedir | --localstatedir | --localstatedi | --localstated \
980 | --localstate | --localstat | --localsta | --localst | --locals)
981 ac_prev=localstatedir ;;
982 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
983 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
984 localstatedir=$ac_optarg ;;
986 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
988 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
992 # Obsolete; use --without-fp.
995 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
996 | --no-cr | --no-c | -n)
999 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1000 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1003 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1004 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1005 | --oldin | --oldi | --old | --ol | --o)
1006 ac_prev=oldincludedir ;;
1007 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1008 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1009 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1010 oldincludedir=$ac_optarg ;;
1012 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1014 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1015 prefix=$ac_optarg ;;
1017 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1018 | --program-pre | --program-pr | --program-p)
1019 ac_prev=program_prefix ;;
1020 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1021 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1022 program_prefix=$ac_optarg ;;
1024 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1025 | --program-suf | --program-su | --program-s)
1026 ac_prev=program_suffix ;;
1027 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1028 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1029 program_suffix=$ac_optarg ;;
1031 -program-transform-name | --program-transform-name \
1032 | --program-transform-nam | --program-transform-na \
1033 | --program-transform-n | --program-transform- \
1034 | --program-transform | --program-transfor \
1035 | --program-transfo | --program-transf \
1036 | --program-trans | --program-tran \
1037 | --progr-tra | --program-tr | --program-t)
1038 ac_prev=program_transform_name ;;
1039 -program-transform-name=* | --program-transform-name=* \
1040 | --program-transform-nam=* | --program-transform-na=* \
1041 | --program-transform-n=* | --program-transform-=* \
1042 | --program-transform=* | --program-transfor=* \
1043 | --program-transfo=* | --program-transf=* \
1044 | --program-trans=* | --program-tran=* \
1045 | --progr-tra=* | --program-tr=* | --program-t=*)
1046 program_transform_name=$ac_optarg ;;
1048 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1050 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1051 pdfdir=$ac_optarg ;;
1053 -psdir | --psdir | --psdi | --psd | --ps)
1055 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1058 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1059 | -silent | --silent | --silen | --sile | --sil)
1062 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1064 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1066 sbindir=$ac_optarg ;;
1068 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1069 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1070 | --sharedst | --shareds | --shared | --share | --shar \
1072 ac_prev=sharedstatedir ;;
1073 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1074 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1075 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1077 sharedstatedir=$ac_optarg ;;
1079 -site | --site | --sit)
1081 -site=* | --site=* | --sit=*)
1084 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1086 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1087 srcdir=$ac_optarg ;;
1089 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1090 | --syscon | --sysco | --sysc | --sys | --sy)
1091 ac_prev=sysconfdir ;;
1092 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1093 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1094 sysconfdir=$ac_optarg ;;
1096 -target | --target | --targe | --targ | --tar | --ta | --t)
1097 ac_prev=target_alias ;;
1098 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1099 target_alias=$ac_optarg ;;
1101 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1104 -version | --version | --versio | --versi | --vers | -V)
1105 ac_init_version=: ;;
1108 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1109 # Reject names that are not valid shell variable names.
1110 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1111 as_fn_error $? "invalid package name: $ac_useropt"
1112 ac_useropt_orig=$ac_useropt
1113 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1114 case $ac_user_opts in
1118 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1119 ac_unrecognized_sep=', ';;
1121 eval with_$ac_useropt=\$ac_optarg ;;
1123 -without-* | --without-*)
1124 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1125 # Reject names that are not valid shell variable names.
1126 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1127 as_fn_error $? "invalid package name: $ac_useropt"
1128 ac_useropt_orig=$ac_useropt
1129 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1130 case $ac_user_opts in
1134 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1135 ac_unrecognized_sep=', ';;
1137 eval with_$ac_useropt=no ;;
1140 # Obsolete; use --with-x.
1143 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1144 | --x-incl | --x-inc | --x-in | --x-i)
1145 ac_prev=x_includes ;;
1146 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1147 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1148 x_includes=$ac_optarg ;;
1150 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1151 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1152 ac_prev=x_libraries ;;
1153 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1154 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1155 x_libraries=$ac_optarg ;;
1157 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1158 Try \`$0 --help' for more information"
1162 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1163 # Reject names that are not valid shell variable names.
1164 case $ac_envvar in #(
1165 '' | [0-9]* | *[!_$as_cr_alnum]* )
1166 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1168 eval $ac_envvar=\$ac_optarg
1169 export $ac_envvar ;;
1172 # FIXME: should be removed in autoconf 3.0.
1173 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1174 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1175 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1176 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1182 if test -n "$ac_prev"; then
1183 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1184 as_fn_error $? "missing argument to $ac_option"
1187 if test -n "$ac_unrecognized_opts"; then
1188 case $enable_option_checking in
1190 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1191 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1195 # Check all directory arguments for consistency.
1196 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1197 datadir sysconfdir sharedstatedir localstatedir includedir \
1198 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1199 libdir localedir mandir
1201 eval ac_val=\$$ac_var
1202 # Remove trailing slashes.
1205 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1206 eval $ac_var=\$ac_val;;
1208 # Be sure to have absolute directory names.
1210 [\\/$]* | ?:[\\/]* ) continue;;
1211 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1213 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1216 # There might be people who depend on the old broken behavior: `$host'
1217 # used to hold the argument of --host etc.
1218 # FIXME: To remove some day.
1221 target=$target_alias
1223 # FIXME: To remove some day.
1224 if test "x$host_alias" != x; then
1225 if test "x$build_alias" = x; then
1226 cross_compiling=maybe
1227 elif test "x$build_alias" != "x$host_alias"; then
1233 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1235 test "$silent" = yes && exec 6>/dev/null
1238 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1239 ac_ls_di=`ls -di .` &&
1240 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1241 as_fn_error $? "working directory cannot be determined"
1242 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1243 as_fn_error $? "pwd does not report name of working directory"
1246 # Find the source files, if location was not specified.
1247 if test -z "$srcdir"; then
1248 ac_srcdir_defaulted=yes
1249 # Try the directory containing this script, then the parent directory.
1250 ac_confdir=`$as_dirname -- "$as_myself" ||
1251 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1252 X"$as_myself" : 'X\(//\)[^/]' \| \
1253 X"$as_myself" : 'X\(//\)$' \| \
1254 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1255 $as_echo X"$as_myself" |
1256 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1274 if test ! -r "$srcdir/$ac_unique_file"; then
1278 ac_srcdir_defaulted=no
1280 if test ! -r "$srcdir/$ac_unique_file"; then
1281 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1282 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1284 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1286 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1288 # When building in place, set srcdir=.
1289 if test "$ac_abs_confdir" = "$ac_pwd"; then
1292 # Remove unnecessary trailing slashes from srcdir.
1293 # Double slashes in file names in object file debugging info
1294 # mess up M-x gdb in Emacs.
1296 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1298 for ac_var in $ac_precious_vars; do
1299 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1300 eval ac_env_${ac_var}_value=\$${ac_var}
1301 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1302 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1306 # Report the --help message.
1308 if test "$ac_init_help" = "long"; then
1309 # Omit some internal or obsolete options to make the list less imposing.
1310 # This message is too long to be a string in the A/UX 3.1 sh.
1312 \`configure' configures groff 1.22.2 to adapt to many kinds of systems.
1314 Usage: $0 [OPTION]... [VAR=VALUE]...
1316 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1317 VAR=VALUE. See below for descriptions of some of the useful variables.
1319 Defaults for the options are specified in brackets.
1322 -h, --help display this help and exit
1323 --help=short display options specific to this package
1324 --help=recursive display the short help of all the included packages
1325 -V, --version display version information and exit
1326 -q, --quiet, --silent do not print \`checking ...' messages
1327 --cache-file=FILE cache test results in FILE [disabled]
1328 -C, --config-cache alias for \`--cache-file=config.cache'
1329 -n, --no-create do not create output files
1330 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1332 Installation directories:
1333 --prefix=PREFIX install architecture-independent files in PREFIX
1334 [$ac_default_prefix]
1335 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1338 By default, \`make install' will install all the files in
1339 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1340 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1341 for instance \`--prefix=\$HOME'.
1343 For better control, use the options below.
1345 Fine tuning of the installation directories:
1346 --bindir=DIR user executables [EPREFIX/bin]
1347 --sbindir=DIR system admin executables [EPREFIX/sbin]
1348 --libexecdir=DIR program executables [EPREFIX/libexec]
1349 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1350 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1351 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1352 --libdir=DIR object code libraries [EPREFIX/lib]
1353 --includedir=DIR C header files [PREFIX/include]
1354 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1355 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1356 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1357 --infodir=DIR info documentation [DATAROOTDIR/info]
1358 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1359 --mandir=DIR man documentation [DATAROOTDIR/man]
1360 --docdir=DIR documentation root [DATAROOTDIR/doc/groff-1.22.2]
1361 --htmldir=DIR html documentation [DOCDIR]
1362 --dvidir=DIR dvi documentation [DOCDIR]
1363 --pdfdir=DIR pdf documentation [DOCDIR]
1364 --psdir=DIR ps documentation [DOCDIR]
1370 --x-includes=DIR X include files are in DIR
1371 --x-libraries=DIR X library files are in DIR
1374 --build=BUILD configure for building on BUILD [guessed]
1375 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1379 if test -n "$ac_init_help"; then
1380 case $ac_init_help in
1381 short | recursive ) echo "Configuration of groff 1.22.2:";;
1386 --disable-option-checking ignore unrecognized --enable/--with options
1387 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1388 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1389 --disable-rpath do not hardcode runtime library paths
1392 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1393 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1394 --with-x use the X Window System
1395 --with-appresdir=DIR X11 application resource files
1396 --with-grofferdir=DIR groffer files location
1397 --with-gnu-ld assume the C compiler uses GNU ld default=no
1398 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1399 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1400 --with-alt-gs=LIST alternative names for ghostscript executable
1401 --with-gs=PROG actual [/path/]name of ghostscript executable
1402 --with-alt-awk=LIST alternative names for awk executable
1403 --with-awk=PROG actual [/path/]name of awk executable
1405 Some influential environment variables:
1406 CC C compiler command
1407 CFLAGS C compiler flags
1408 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1409 nonstandard directory <lib dir>
1410 LIBS libraries to pass to the linker, e.g. -l<library>
1411 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1412 you have headers in a nonstandard directory <include dir>
1414 CXX C++ compiler command
1415 CXXFLAGS C++ compiler flags
1416 XMKMF Path to xmkmf, Makefile generator for X Window System
1417 CXXCPP C++ preprocessor
1419 Use these variables to override the choices made by `configure' or to help
1420 it to find libraries and programs with nonstandard names/locations.
1422 Report bugs to <bug-groff@gnu.org>.
1427 if test "$ac_init_help" = "recursive"; then
1428 # If there are subdirs, report their specific --help.
1429 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1430 test -d "$ac_dir" ||
1431 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1436 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1438 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1439 # A ".." for each directory in $ac_dir_suffix.
1440 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1441 case $ac_top_builddir_sub in
1442 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1443 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1446 ac_abs_top_builddir=$ac_pwd
1447 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1448 # for backward compatibility:
1449 ac_top_builddir=$ac_top_build_prefix
1452 .) # We are building in place.
1454 ac_top_srcdir=$ac_top_builddir_sub
1455 ac_abs_top_srcdir=$ac_pwd ;;
1456 [\\/]* | ?:[\\/]* ) # Absolute name.
1457 ac_srcdir=$srcdir$ac_dir_suffix;
1458 ac_top_srcdir=$srcdir
1459 ac_abs_top_srcdir=$srcdir ;;
1461 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1462 ac_top_srcdir=$ac_top_build_prefix$srcdir
1463 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1465 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1467 cd "$ac_dir" || { ac_status=$?; continue; }
1468 # Check for guested configure.
1469 if test -f "$ac_srcdir/configure.gnu"; then
1471 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1472 elif test -f "$ac_srcdir/configure"; then
1474 $SHELL "$ac_srcdir/configure" --help=recursive
1476 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1478 cd "$ac_pwd" || { ac_status=$?; break; }
1482 test -n "$ac_init_help" && exit $ac_status
1483 if $ac_init_version; then
1485 groff configure 1.22.2
1486 generated by GNU Autoconf 2.69
1488 Copyright (C) 2012 Free Software Foundation, Inc.
1489 This configure script is free software; the Free Software Foundation
1490 gives unlimited permission to copy, distribute and modify it.
1495 ## ------------------------ ##
1496 ## Autoconf initialization. ##
1497 ## ------------------------ ##
1499 # ac_fn_c_try_compile LINENO
1500 # --------------------------
1501 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1502 ac_fn_c_try_compile ()
1504 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1505 rm -f conftest.$ac_objext
1506 if { { ac_try="$ac_compile"
1508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1509 *) ac_try_echo=$ac_try;;
1511 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1512 $as_echo "$ac_try_echo"; } >&5
1513 (eval "$ac_compile") 2>conftest.err
1515 if test -s conftest.err; then
1516 grep -v '^ *+' conftest.err >conftest.er1
1517 cat conftest.er1 >&5
1518 mv -f conftest.er1 conftest.err
1520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1521 test $ac_status = 0; } && {
1522 test -z "$ac_c_werror_flag" ||
1523 test ! -s conftest.err
1524 } && test -s conftest.$ac_objext; then :
1527 $as_echo "$as_me: failed program was:" >&5
1528 sed 's/^/| /' conftest.$ac_ext >&5
1532 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1533 as_fn_set_status $ac_retval
1535 } # ac_fn_c_try_compile
1537 # ac_fn_c_try_cpp LINENO
1538 # ----------------------
1539 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1542 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1543 if { { ac_try="$ac_cpp conftest.$ac_ext"
1545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1546 *) ac_try_echo=$ac_try;;
1548 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1549 $as_echo "$ac_try_echo"; } >&5
1550 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1552 if test -s conftest.err; then
1553 grep -v '^ *+' conftest.err >conftest.er1
1554 cat conftest.er1 >&5
1555 mv -f conftest.er1 conftest.err
1557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1558 test $ac_status = 0; } > conftest.i && {
1559 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1560 test ! -s conftest.err
1564 $as_echo "$as_me: failed program was:" >&5
1565 sed 's/^/| /' conftest.$ac_ext >&5
1569 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1570 as_fn_set_status $ac_retval
1574 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1575 # -------------------------------------------------------
1576 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1577 # the include files in INCLUDES and setting the cache variable VAR
1579 ac_fn_c_check_header_mongrel ()
1581 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1582 if eval \${$3+:} false; then :
1583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1584 $as_echo_n "checking for $2... " >&6; }
1585 if eval \${$3+:} false; then :
1586 $as_echo_n "(cached) " >&6
1589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1590 $as_echo "$ac_res" >&6; }
1592 # Is the header compilable?
1593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1594 $as_echo_n "checking $2 usability... " >&6; }
1595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1596 /* end confdefs.h. */
1600 if ac_fn_c_try_compile "$LINENO"; then :
1601 ac_header_compiler=yes
1603 ac_header_compiler=no
1605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1607 $as_echo "$ac_header_compiler" >&6; }
1609 # Is the header present?
1610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1611 $as_echo_n "checking $2 presence... " >&6; }
1612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1613 /* end confdefs.h. */
1616 if ac_fn_c_try_cpp "$LINENO"; then :
1617 ac_header_preproc=yes
1619 ac_header_preproc=no
1621 rm -f conftest.err conftest.i conftest.$ac_ext
1622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1623 $as_echo "$ac_header_preproc" >&6; }
1625 # So? What about this header?
1626 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1628 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1629 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1631 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1635 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1637 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1639 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1640 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1641 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1643 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1644 ( $as_echo "## -------------------------------- ##
1645 ## Report this to bug-groff@gnu.org ##
1646 ## -------------------------------- ##"
1647 ) | sed "s/^/$as_me: WARNING: /" >&2
1650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1651 $as_echo_n "checking for $2... " >&6; }
1652 if eval \${$3+:} false; then :
1653 $as_echo_n "(cached) " >&6
1655 eval "$3=\$ac_header_compiler"
1658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1659 $as_echo "$ac_res" >&6; }
1661 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1663 } # ac_fn_c_check_header_mongrel
1665 # ac_fn_c_try_run LINENO
1666 # ----------------------
1667 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1668 # that executables *can* be run.
1671 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1672 if { { ac_try="$ac_link"
1674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1675 *) ac_try_echo=$ac_try;;
1677 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1678 $as_echo "$ac_try_echo"; } >&5
1679 (eval "$ac_link") 2>&5
1681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1682 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1683 { { case "(($ac_try" in
1684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1685 *) ac_try_echo=$ac_try;;
1687 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1688 $as_echo "$ac_try_echo"; } >&5
1689 (eval "$ac_try") 2>&5
1691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1692 test $ac_status = 0; }; }; then :
1695 $as_echo "$as_me: program exited with status $ac_status" >&5
1696 $as_echo "$as_me: failed program was:" >&5
1697 sed 's/^/| /' conftest.$ac_ext >&5
1699 ac_retval=$ac_status
1701 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1702 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1703 as_fn_set_status $ac_retval
1707 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1708 # -------------------------------------------------------
1709 # Tests whether HEADER exists and can be compiled using the include files in
1710 # INCLUDES, setting the cache variable VAR accordingly.
1711 ac_fn_c_check_header_compile ()
1713 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1715 $as_echo_n "checking for $2... " >&6; }
1716 if eval \${$3+:} false; then :
1717 $as_echo_n "(cached) " >&6
1719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1720 /* end confdefs.h. */
1724 if ac_fn_c_try_compile "$LINENO"; then :
1729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1733 $as_echo "$ac_res" >&6; }
1734 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1736 } # ac_fn_c_check_header_compile
1738 # ac_fn_cxx_try_compile LINENO
1739 # ----------------------------
1740 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1741 ac_fn_cxx_try_compile ()
1743 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1744 rm -f conftest.$ac_objext
1745 if { { ac_try="$ac_compile"
1747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1748 *) ac_try_echo=$ac_try;;
1750 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1751 $as_echo "$ac_try_echo"; } >&5
1752 (eval "$ac_compile") 2>conftest.err
1754 if test -s conftest.err; then
1755 grep -v '^ *+' conftest.err >conftest.er1
1756 cat conftest.er1 >&5
1757 mv -f conftest.er1 conftest.err
1759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1760 test $ac_status = 0; } && {
1761 test -z "$ac_cxx_werror_flag" ||
1762 test ! -s conftest.err
1763 } && test -s conftest.$ac_objext; then :
1766 $as_echo "$as_me: failed program was:" >&5
1767 sed 's/^/| /' conftest.$ac_ext >&5
1771 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1772 as_fn_set_status $ac_retval
1774 } # ac_fn_cxx_try_compile
1776 # ac_fn_cxx_try_run LINENO
1777 # ------------------------
1778 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1779 # that executables *can* be run.
1780 ac_fn_cxx_try_run ()
1782 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1783 if { { ac_try="$ac_link"
1785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1786 *) ac_try_echo=$ac_try;;
1788 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1789 $as_echo "$ac_try_echo"; } >&5
1790 (eval "$ac_link") 2>&5
1792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1793 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1794 { { case "(($ac_try" in
1795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1796 *) ac_try_echo=$ac_try;;
1798 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1799 $as_echo "$ac_try_echo"; } >&5
1800 (eval "$ac_try") 2>&5
1802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1803 test $ac_status = 0; }; }; then :
1806 $as_echo "$as_me: program exited with status $ac_status" >&5
1807 $as_echo "$as_me: failed program was:" >&5
1808 sed 's/^/| /' conftest.$ac_ext >&5
1810 ac_retval=$ac_status
1812 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1813 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1814 as_fn_set_status $ac_retval
1816 } # ac_fn_cxx_try_run
1818 # ac_fn_cxx_try_link LINENO
1819 # -------------------------
1820 # Try to link conftest.$ac_ext, and return whether this succeeded.
1821 ac_fn_cxx_try_link ()
1823 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1824 rm -f conftest.$ac_objext conftest$ac_exeext
1825 if { { ac_try="$ac_link"
1827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1828 *) ac_try_echo=$ac_try;;
1830 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1831 $as_echo "$ac_try_echo"; } >&5
1832 (eval "$ac_link") 2>conftest.err
1834 if test -s conftest.err; then
1835 grep -v '^ *+' conftest.err >conftest.er1
1836 cat conftest.er1 >&5
1837 mv -f conftest.er1 conftest.err
1839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1840 test $ac_status = 0; } && {
1841 test -z "$ac_cxx_werror_flag" ||
1842 test ! -s conftest.err
1843 } && test -s conftest$ac_exeext && {
1844 test "$cross_compiling" = yes ||
1845 test -x conftest$ac_exeext
1849 $as_echo "$as_me: failed program was:" >&5
1850 sed 's/^/| /' conftest.$ac_ext >&5
1854 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1855 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1856 # interfere with the next link command; also delete a directory that is
1857 # left behind by Apple's compiler. We do this before executing the actions.
1858 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1859 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1860 as_fn_set_status $ac_retval
1862 } # ac_fn_cxx_try_link
1864 # ac_fn_c_try_link LINENO
1865 # -----------------------
1866 # Try to link conftest.$ac_ext, and return whether this succeeded.
1869 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1870 rm -f conftest.$ac_objext conftest$ac_exeext
1871 if { { ac_try="$ac_link"
1873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1874 *) ac_try_echo=$ac_try;;
1876 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1877 $as_echo "$ac_try_echo"; } >&5
1878 (eval "$ac_link") 2>conftest.err
1880 if test -s conftest.err; then
1881 grep -v '^ *+' conftest.err >conftest.er1
1882 cat conftest.er1 >&5
1883 mv -f conftest.er1 conftest.err
1885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1886 test $ac_status = 0; } && {
1887 test -z "$ac_c_werror_flag" ||
1888 test ! -s conftest.err
1889 } && test -s conftest$ac_exeext && {
1890 test "$cross_compiling" = yes ||
1891 test -x conftest$ac_exeext
1895 $as_echo "$as_me: failed program was:" >&5
1896 sed 's/^/| /' conftest.$ac_ext >&5
1900 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1901 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1902 # interfere with the next link command; also delete a directory that is
1903 # left behind by Apple's compiler. We do this before executing the actions.
1904 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1905 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1906 as_fn_set_status $ac_retval
1908 } # ac_fn_c_try_link
1910 # ac_fn_c_check_func LINENO FUNC VAR
1911 # ----------------------------------
1912 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1913 ac_fn_c_check_func ()
1915 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1917 $as_echo_n "checking for $2... " >&6; }
1918 if eval \${$3+:} false; then :
1919 $as_echo_n "(cached) " >&6
1921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1922 /* end confdefs.h. */
1923 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1924 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1925 #define $2 innocuous_$2
1927 /* System header to define __stub macros and hopefully few prototypes,
1928 which can conflict with char $2 (); below.
1929 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1930 <limits.h> exists even on freestanding compilers. */
1933 # include <limits.h>
1935 # include <assert.h>
1940 /* Override any GCC internal prototype to avoid an error.
1941 Use char because int might match the return type of a GCC
1942 builtin and then its argument prototype would still apply. */
1947 /* The GNU C library defines this for functions which it implements
1948 to always fail with ENOSYS. Some functions are actually named
1949 something starting with __ and the normal name is an alias. */
1950 #if defined __stub_$2 || defined __stub___$2
1962 if ac_fn_c_try_link "$LINENO"; then :
1967 rm -f core conftest.err conftest.$ac_objext \
1968 conftest$ac_exeext conftest.$ac_ext
1971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1972 $as_echo "$ac_res" >&6; }
1973 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1975 } # ac_fn_c_check_func
1977 # ac_fn_cxx_try_cpp LINENO
1978 # ------------------------
1979 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1980 ac_fn_cxx_try_cpp ()
1982 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1983 if { { ac_try="$ac_cpp conftest.$ac_ext"
1985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1986 *) ac_try_echo=$ac_try;;
1988 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1989 $as_echo "$ac_try_echo"; } >&5
1990 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1992 if test -s conftest.err; then
1993 grep -v '^ *+' conftest.err >conftest.er1
1994 cat conftest.er1 >&5
1995 mv -f conftest.er1 conftest.err
1997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1998 test $ac_status = 0; } > conftest.i && {
1999 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2000 test ! -s conftest.err
2004 $as_echo "$as_me: failed program was:" >&5
2005 sed 's/^/| /' conftest.$ac_ext >&5
2009 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2010 as_fn_set_status $ac_retval
2012 } # ac_fn_cxx_try_cpp
2014 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2015 # ---------------------------------------------
2016 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2018 ac_fn_c_check_decl ()
2020 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2021 as_decl_name=`echo $2|sed 's/ *(.*//'`
2022 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2024 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2025 if eval \${$3+:} false; then :
2026 $as_echo_n "(cached) " >&6
2028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2029 /* end confdefs.h. */
2034 #ifndef $as_decl_name
2036 (void) $as_decl_use;
2038 (void) $as_decl_name;
2046 if ac_fn_c_try_compile "$LINENO"; then :
2051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2055 $as_echo "$ac_res" >&6; }
2056 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2058 } # ac_fn_c_check_decl
2059 cat >config.log <<_ACEOF
2060 This file contains any messages produced by compilers while
2061 running configure, to aid debugging if configure makes a mistake.
2063 It was created by groff $as_me 1.22.2, which was
2064 generated by GNU Autoconf 2.69. Invocation command line was
2076 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2077 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2078 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2079 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2080 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2082 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2083 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2085 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2086 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2087 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2088 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2089 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2090 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2091 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2099 test -z "$as_dir" && as_dir=.
2100 $as_echo "PATH: $as_dir"
2116 # Keep a trace of the command line.
2117 # Strip out --no-create and --no-recursion so they do not pile up.
2118 # Strip out --silent because we don't want to record it for future runs.
2119 # Also quote any args containing shell meta-characters.
2120 # Make two passes to allow for proper duplicate-argument suppression.
2124 ac_must_keep_next=false
2130 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2131 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2132 | -silent | --silent | --silen | --sile | --sil)
2135 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2138 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2140 as_fn_append ac_configure_args1 " '$ac_arg'"
2141 if test $ac_must_keep_next = true; then
2142 ac_must_keep_next=false # Got value, back to normal.
2145 *=* | --config-cache | -C | -disable-* | --disable-* \
2146 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2147 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2148 | -with-* | --with-* | -without-* | --without-* | --x)
2149 case "$ac_configure_args0 " in
2150 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2153 -* ) ac_must_keep_next=true ;;
2156 as_fn_append ac_configure_args " '$ac_arg'"
2161 { ac_configure_args0=; unset ac_configure_args0;}
2162 { ac_configure_args1=; unset ac_configure_args1;}
2164 # When interrupted or exit'd, cleanup temporary files, and complete
2165 # config.log. We remove comments because anyway the quotes in there
2166 # would cause problems or look ugly.
2167 # WARNING: Use '\'' to represent an apostrophe within the trap.
2168 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2169 trap 'exit_status=$?
2170 # Save into config.log some information that might help in debugging.
2174 $as_echo "## ---------------- ##
2175 ## Cache variables. ##
2176 ## ---------------- ##"
2178 # The following way of writing the cache mishandles newlines in values,
2180 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2181 eval ac_val=\$$ac_var
2185 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2186 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2189 _ | IFS | as_nl) ;; #(
2190 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2191 *) { eval $ac_var=; unset $ac_var;} ;;
2196 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2197 *${as_nl}ac_space=\ *)
2199 "s/'\''/'\''\\\\'\'''\''/g;
2200 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2203 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2210 $as_echo "## ----------------- ##
2211 ## Output variables. ##
2212 ## ----------------- ##"
2214 for ac_var in $ac_subst_vars
2216 eval ac_val=\$$ac_var
2218 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2220 $as_echo "$ac_var='\''$ac_val'\''"
2224 if test -n "$ac_subst_files"; then
2225 $as_echo "## ------------------- ##
2226 ## File substitutions. ##
2227 ## ------------------- ##"
2229 for ac_var in $ac_subst_files
2231 eval ac_val=\$$ac_var
2233 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2235 $as_echo "$ac_var='\''$ac_val'\''"
2240 if test -s confdefs.h; then
2241 $as_echo "## ----------- ##
2248 test "$ac_signal" != 0 &&
2249 $as_echo "$as_me: caught signal $ac_signal"
2250 $as_echo "$as_me: exit $exit_status"
2252 rm -f core *.core core.conftest.* &&
2253 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2256 for ac_signal in 1 2 13 15; do
2257 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2261 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2262 rm -f -r conftest* confdefs.h
2264 $as_echo "/* confdefs.h */" > confdefs.h
2266 # Predefined preprocessor variables.
2268 cat >>confdefs.h <<_ACEOF
2269 #define PACKAGE_NAME "$PACKAGE_NAME"
2272 cat >>confdefs.h <<_ACEOF
2273 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2276 cat >>confdefs.h <<_ACEOF
2277 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2280 cat >>confdefs.h <<_ACEOF
2281 #define PACKAGE_STRING "$PACKAGE_STRING"
2284 cat >>confdefs.h <<_ACEOF
2285 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2288 cat >>confdefs.h <<_ACEOF
2289 #define PACKAGE_URL "$PACKAGE_URL"
2293 # Let the site file select an alternate cache file if it wants to.
2294 # Prefer an explicitly selected file to automatically selected ones.
2297 if test -n "$CONFIG_SITE"; then
2298 # We do not want a PATH search for config.site.
2299 case $CONFIG_SITE in #((
2300 -*) ac_site_file1=./$CONFIG_SITE;;
2301 */*) ac_site_file1=$CONFIG_SITE;;
2302 *) ac_site_file1=./$CONFIG_SITE;;
2304 elif test "x$prefix" != xNONE; then
2305 ac_site_file1=$prefix/share/config.site
2306 ac_site_file2=$prefix/etc/config.site
2308 ac_site_file1=$ac_default_prefix/share/config.site
2309 ac_site_file2=$ac_default_prefix/etc/config.site
2311 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2313 test "x$ac_site_file" = xNONE && continue
2314 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2316 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2317 sed 's/^/| /' "$ac_site_file" >&5
2319 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2320 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2321 as_fn_error $? "failed to load site script $ac_site_file
2322 See \`config.log' for more details" "$LINENO" 5; }
2326 if test -r "$cache_file"; then
2327 # Some versions of bash will fail to source /dev/null (special files
2328 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2329 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2330 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2331 $as_echo "$as_me: loading cache $cache_file" >&6;}
2333 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2334 *) . "./$cache_file";;
2338 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2339 $as_echo "$as_me: creating cache $cache_file" >&6;}
2343 as_fn_append ac_header_list " stdlib.h"
2344 as_fn_append ac_header_list " unistd.h"
2345 as_fn_append ac_header_list " sys/param.h"
2346 as_fn_append ac_func_list " symlink"
2347 # Check that the precious variables saved in the cache have kept the same
2349 ac_cache_corrupted=false
2350 for ac_var in $ac_precious_vars; do
2351 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2352 eval ac_new_set=\$ac_env_${ac_var}_set
2353 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2354 eval ac_new_val=\$ac_env_${ac_var}_value
2355 case $ac_old_set,$ac_new_set in
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2358 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2359 ac_cache_corrupted=: ;;
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2362 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2363 ac_cache_corrupted=: ;;
2366 if test "x$ac_old_val" != "x$ac_new_val"; then
2367 # differences in whitespace do not lead to failure.
2368 ac_old_val_w=`echo x $ac_old_val`
2369 ac_new_val_w=`echo x $ac_new_val`
2370 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2372 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2373 ac_cache_corrupted=:
2375 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2376 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2377 eval $ac_var=\$ac_old_val
2379 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2380 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2382 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2385 # Pass precious variables to config.status.
2386 if test "$ac_new_set" = set; then
2388 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2389 *) ac_arg=$ac_var=$ac_new_val ;;
2391 case " $ac_configure_args " in
2392 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2393 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2397 if $ac_cache_corrupted; then
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2399 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2400 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2401 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2402 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2404 ## -------------------- ##
2405 ## Main body of script. ##
2406 ## -------------------- ##
2409 ac_cpp='$CPP $CPPFLAGS'
2410 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2411 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2412 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2417 ac_config_headers="$ac_config_headers src/include/config.h:src/include/config.hin"
2422 ac_cpp='$CPP $CPPFLAGS'
2423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2426 if test -n "$ac_tool_prefix"; then
2427 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2428 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2430 $as_echo_n "checking for $ac_word... " >&6; }
2431 if ${ac_cv_prog_CC+:} false; then :
2432 $as_echo_n "(cached) " >&6
2434 if test -n "$CC"; then
2435 ac_cv_prog_CC="$CC" # Let the user override the test.
2437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2441 test -z "$as_dir" && as_dir=.
2442 for ac_exec_ext in '' $ac_executable_extensions; do
2443 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2444 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2455 if test -n "$CC"; then
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2457 $as_echo "$CC" >&6; }
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2460 $as_echo "no" >&6; }
2465 if test -z "$ac_cv_prog_CC"; then
2467 # Extract the first word of "gcc", so it can be a program name with args.
2468 set dummy gcc; ac_word=$2
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2470 $as_echo_n "checking for $ac_word... " >&6; }
2471 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2472 $as_echo_n "(cached) " >&6
2474 if test -n "$ac_ct_CC"; then
2475 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2481 test -z "$as_dir" && as_dir=.
2482 for ac_exec_ext in '' $ac_executable_extensions; do
2483 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2484 ac_cv_prog_ac_ct_CC="gcc"
2485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2494 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2495 if test -n "$ac_ct_CC"; then
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2497 $as_echo "$ac_ct_CC" >&6; }
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2500 $as_echo "no" >&6; }
2503 if test "x$ac_ct_CC" = x; then
2506 case $cross_compiling:$ac_tool_warned in
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2509 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2510 ac_tool_warned=yes ;;
2518 if test -z "$CC"; then
2519 if test -n "$ac_tool_prefix"; then
2520 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2521 set dummy ${ac_tool_prefix}cc; ac_word=$2
2522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2523 $as_echo_n "checking for $ac_word... " >&6; }
2524 if ${ac_cv_prog_CC+:} false; then :
2525 $as_echo_n "(cached) " >&6
2527 if test -n "$CC"; then
2528 ac_cv_prog_CC="$CC" # Let the user override the test.
2530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2534 test -z "$as_dir" && as_dir=.
2535 for ac_exec_ext in '' $ac_executable_extensions; do
2536 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2537 ac_cv_prog_CC="${ac_tool_prefix}cc"
2538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2548 if test -n "$CC"; then
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2550 $as_echo "$CC" >&6; }
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2553 $as_echo "no" >&6; }
2559 if test -z "$CC"; then
2560 # Extract the first word of "cc", so it can be a program name with args.
2561 set dummy cc; ac_word=$2
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2563 $as_echo_n "checking for $ac_word... " >&6; }
2564 if ${ac_cv_prog_CC+:} false; then :
2565 $as_echo_n "(cached) " >&6
2567 if test -n "$CC"; then
2568 ac_cv_prog_CC="$CC" # Let the user override the test.
2571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2575 test -z "$as_dir" && as_dir=.
2576 for ac_exec_ext in '' $ac_executable_extensions; do
2577 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2578 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2579 ac_prog_rejected=yes
2583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2590 if test $ac_prog_rejected = yes; then
2591 # We found a bogon in the path, so make sure we never use it.
2592 set dummy $ac_cv_prog_CC
2594 if test $# != 0; then
2595 # We chose a different compiler from the bogus one.
2596 # However, it has the same basename, so the bogon will be chosen
2597 # first if we set CC to just the basename; use the full file name.
2599 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2605 if test -n "$CC"; then
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2607 $as_echo "$CC" >&6; }
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2610 $as_echo "no" >&6; }
2615 if test -z "$CC"; then
2616 if test -n "$ac_tool_prefix"; then
2617 for ac_prog in cl.exe
2619 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2620 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2622 $as_echo_n "checking for $ac_word... " >&6; }
2623 if ${ac_cv_prog_CC+:} false; then :
2624 $as_echo_n "(cached) " >&6
2626 if test -n "$CC"; then
2627 ac_cv_prog_CC="$CC" # Let the user override the test.
2629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2633 test -z "$as_dir" && as_dir=.
2634 for ac_exec_ext in '' $ac_executable_extensions; do
2635 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2636 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2647 if test -n "$CC"; then
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2649 $as_echo "$CC" >&6; }
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2652 $as_echo "no" >&6; }
2656 test -n "$CC" && break
2659 if test -z "$CC"; then
2661 for ac_prog in cl.exe
2663 # Extract the first word of "$ac_prog", so it can be a program name with args.
2664 set dummy $ac_prog; ac_word=$2
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2666 $as_echo_n "checking for $ac_word... " >&6; }
2667 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2668 $as_echo_n "(cached) " >&6
2670 if test -n "$ac_ct_CC"; then
2671 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2677 test -z "$as_dir" && as_dir=.
2678 for ac_exec_ext in '' $ac_executable_extensions; do
2679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2680 ac_cv_prog_ac_ct_CC="$ac_prog"
2681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2690 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2691 if test -n "$ac_ct_CC"; then
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2693 $as_echo "$ac_ct_CC" >&6; }
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2696 $as_echo "no" >&6; }
2700 test -n "$ac_ct_CC" && break
2703 if test "x$ac_ct_CC" = x; then
2706 case $cross_compiling:$ac_tool_warned in
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2709 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2710 ac_tool_warned=yes ;;
2719 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2720 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2721 as_fn_error $? "no acceptable C compiler found in \$PATH
2722 See \`config.log' for more details" "$LINENO" 5; }
2724 # Provide some information about the compiler.
2725 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2728 for ac_option in --version -v -V -qversion; do
2729 { { ac_try="$ac_compiler $ac_option >&5"
2731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2732 *) ac_try_echo=$ac_try;;
2734 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2735 $as_echo "$ac_try_echo"; } >&5
2736 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2738 if test -s conftest.err; then
2740 ... rest of stderr output deleted ...
2741 10q' conftest.err >conftest.er1
2742 cat conftest.er1 >&5
2744 rm -f conftest.er1 conftest.err
2745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2746 test $ac_status = 0; }
2749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2750 /* end confdefs.h. */
2760 ac_clean_files_save=$ac_clean_files
2761 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2762 # Try to create an executable without -o first, disregard a.out.
2763 # It will help us diagnose broken compilers, and finding out an intuition
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2766 $as_echo_n "checking whether the C compiler works... " >&6; }
2767 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2769 # The possible output files:
2770 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2773 for ac_file in $ac_files
2776 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2777 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2782 if { { ac_try="$ac_link_default"
2784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2785 *) ac_try_echo=$ac_try;;
2787 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2788 $as_echo "$ac_try_echo"; } >&5
2789 (eval "$ac_link_default") 2>&5
2791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2792 test $ac_status = 0; }; then :
2793 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2794 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2795 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2796 # so that the user can short-circuit this test for compilers unknown to
2798 for ac_file in $ac_files ''
2800 test -f "$ac_file" || continue
2802 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2805 # We found the default executable, but exeext='' is most
2809 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2811 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2813 # We set ac_cv_exeext here because the later test for it is not
2814 # safe: cross compilers may not add the suffix if given an `-o'
2815 # argument, so we may need to know it at that point already.
2816 # Even if this section looks crufty: it has the advantage of
2823 test "$ac_cv_exeext" = no && ac_cv_exeext=
2828 if test -z "$ac_file"; then :
2829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2830 $as_echo "no" >&6; }
2831 $as_echo "$as_me: failed program was:" >&5
2832 sed 's/^/| /' conftest.$ac_ext >&5
2834 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2835 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2836 as_fn_error 77 "C compiler cannot create executables
2837 See \`config.log' for more details" "$LINENO" 5; }
2839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2840 $as_echo "yes" >&6; }
2842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2843 $as_echo_n "checking for C compiler default output file name... " >&6; }
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2845 $as_echo "$ac_file" >&6; }
2846 ac_exeext=$ac_cv_exeext
2848 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2849 ac_clean_files=$ac_clean_files_save
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2851 $as_echo_n "checking for suffix of executables... " >&6; }
2852 if { { ac_try="$ac_link"
2854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2855 *) ac_try_echo=$ac_try;;
2857 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2858 $as_echo "$ac_try_echo"; } >&5
2859 (eval "$ac_link") 2>&5
2861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2862 test $ac_status = 0; }; then :
2863 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2864 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2865 # work properly (i.e., refer to `conftest.exe'), while it won't with
2867 for ac_file in conftest.exe conftest conftest.*; do
2868 test -f "$ac_file" || continue
2870 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2871 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2877 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2878 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2879 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2880 See \`config.log' for more details" "$LINENO" 5; }
2882 rm -f conftest conftest$ac_cv_exeext
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2884 $as_echo "$ac_cv_exeext" >&6; }
2886 rm -f conftest.$ac_ext
2887 EXEEXT=$ac_cv_exeext
2889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2890 /* end confdefs.h. */
2895 FILE *f = fopen ("conftest.out", "w");
2896 return ferror (f) || fclose (f) != 0;
2902 ac_clean_files="$ac_clean_files conftest.out"
2903 # Check that the compiler produces executables we can run. If not, either
2904 # the compiler is broken, or we cross compile.
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2906 $as_echo_n "checking whether we are cross compiling... " >&6; }
2907 if test "$cross_compiling" != yes; then
2908 { { ac_try="$ac_link"
2910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2911 *) ac_try_echo=$ac_try;;
2913 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2914 $as_echo "$ac_try_echo"; } >&5
2915 (eval "$ac_link") 2>&5
2917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2918 test $ac_status = 0; }
2919 if { ac_try='./conftest$ac_cv_exeext'
2920 { { case "(($ac_try" in
2921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2922 *) ac_try_echo=$ac_try;;
2924 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2925 $as_echo "$ac_try_echo"; } >&5
2926 (eval "$ac_try") 2>&5
2928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2929 test $ac_status = 0; }; }; then
2932 if test "$cross_compiling" = maybe; then
2935 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2936 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2937 as_fn_error $? "cannot run C compiled programs.
2938 If you meant to cross compile, use \`--host'.
2939 See \`config.log' for more details" "$LINENO" 5; }
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2944 $as_echo "$cross_compiling" >&6; }
2946 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2947 ac_clean_files=$ac_clean_files_save
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2949 $as_echo_n "checking for suffix of object files... " >&6; }
2950 if ${ac_cv_objext+:} false; then :
2951 $as_echo_n "(cached) " >&6
2953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2954 /* end confdefs.h. */
2964 rm -f conftest.o conftest.obj
2965 if { { ac_try="$ac_compile"
2967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2968 *) ac_try_echo=$ac_try;;
2970 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2971 $as_echo "$ac_try_echo"; } >&5
2972 (eval "$ac_compile") 2>&5
2974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2975 test $ac_status = 0; }; then :
2976 for ac_file in conftest.o conftest.obj conftest.*; do
2977 test -f "$ac_file" || continue;
2979 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2980 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2985 $as_echo "$as_me: failed program was:" >&5
2986 sed 's/^/| /' conftest.$ac_ext >&5
2988 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2989 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2990 as_fn_error $? "cannot compute suffix of object files: cannot compile
2991 See \`config.log' for more details" "$LINENO" 5; }
2993 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2996 $as_echo "$ac_cv_objext" >&6; }
2997 OBJEXT=$ac_cv_objext
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3000 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3001 if ${ac_cv_c_compiler_gnu+:} false; then :
3002 $as_echo_n "(cached) " >&6
3004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3005 /* end confdefs.h. */
3018 if ac_fn_c_try_compile "$LINENO"; then :
3023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3024 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3028 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3029 if test $ac_compiler_gnu = yes; then
3034 ac_test_CFLAGS=${CFLAGS+set}
3035 ac_save_CFLAGS=$CFLAGS
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3037 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3038 if ${ac_cv_prog_cc_g+:} false; then :
3039 $as_echo_n "(cached) " >&6
3041 ac_save_c_werror_flag=$ac_c_werror_flag
3042 ac_c_werror_flag=yes
3045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3046 /* end confdefs.h. */
3056 if ac_fn_c_try_compile "$LINENO"; then :
3060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3061 /* end confdefs.h. */
3071 if ac_fn_c_try_compile "$LINENO"; then :
3074 ac_c_werror_flag=$ac_save_c_werror_flag
3076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3077 /* end confdefs.h. */
3087 if ac_fn_c_try_compile "$LINENO"; then :
3090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3095 ac_c_werror_flag=$ac_save_c_werror_flag
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3098 $as_echo "$ac_cv_prog_cc_g" >&6; }
3099 if test "$ac_test_CFLAGS" = set; then
3100 CFLAGS=$ac_save_CFLAGS
3101 elif test $ac_cv_prog_cc_g = yes; then
3102 if test "$GCC" = yes; then
3108 if test "$GCC" = yes; then
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3115 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3116 if ${ac_cv_prog_cc_c89+:} false; then :
3117 $as_echo_n "(cached) " >&6
3119 ac_cv_prog_cc_c89=no
3121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3122 /* end confdefs.h. */
3126 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3127 struct buf { int x; };
3128 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3129 static char *e (p, i)
3135 static char *f (char * (*g) (char **, int), char **p, ...)
3140 s = g (p, va_arg (v,int));
3145 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3146 function prototypes and stuff, but not '\xHH' hex character constants.
3147 These don't provoke an error unfortunately, instead are silently treated
3148 as 'x'. The following induces an error, until -std is added to get
3149 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3150 array size at least. It's necessary to write '\x00'==0 to get something
3151 that's true only with -std. */
3152 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3154 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3155 inside strings and character constants. */
3157 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3159 int test (int i, double x);
3160 struct s1 {int (*f) (int a);};
3161 struct s2 {int (*f) (double a);};
3162 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3168 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3173 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3174 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3176 CC="$ac_save_CC $ac_arg"
3177 if ac_fn_c_try_compile "$LINENO"; then :
3178 ac_cv_prog_cc_c89=$ac_arg
3180 rm -f core conftest.err conftest.$ac_objext
3181 test "x$ac_cv_prog_cc_c89" != "xno" && break
3183 rm -f conftest.$ac_ext
3188 case "x$ac_cv_prog_cc_c89" in
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3191 $as_echo "none needed" >&6; } ;;
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3194 $as_echo "unsupported" >&6; } ;;
3196 CC="$CC $ac_cv_prog_cc_c89"
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3198 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3200 if test "x$ac_cv_prog_cc_c89" != xno; then :
3205 ac_cpp='$CPP $CPPFLAGS'
3206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3208 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3212 ac_cpp='$CPP $CPPFLAGS'
3213 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3214 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3215 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3217 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3218 # On Suns, sometimes $CPP names a directory.
3219 if test -n "$CPP" && test -d "$CPP"; then
3222 if test -z "$CPP"; then
3223 if ${ac_cv_prog_CPP+:} false; then :
3224 $as_echo_n "(cached) " >&6
3226 # Double quotes because CPP needs to be expanded
3227 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3230 for ac_c_preproc_warn_flag in '' yes
3232 # Use a header file that comes with gcc, so configuring glibc
3233 # with a fresh cross-compiler works.
3234 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3235 # <limits.h> exists even on freestanding compilers.
3236 # On the NeXT, cc -E runs the code through the compiler's parser,
3237 # not just through cpp. "Syntax error" is here to catch this case.
3238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3239 /* end confdefs.h. */
3241 # include <limits.h>
3243 # include <assert.h>
3247 if ac_fn_c_try_cpp "$LINENO"; then :
3250 # Broken: fails on valid input.
3253 rm -f conftest.err conftest.i conftest.$ac_ext
3255 # OK, works on sane cases. Now check whether nonexistent headers
3256 # can be detected and how.
3257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3258 /* end confdefs.h. */
3259 #include <ac_nonexistent.h>
3261 if ac_fn_c_try_cpp "$LINENO"; then :
3262 # Broken: success on invalid input.
3265 # Passes both tests.
3269 rm -f conftest.err conftest.i conftest.$ac_ext
3272 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3273 rm -f conftest.i conftest.err conftest.$ac_ext
3274 if $ac_preproc_ok; then :
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3287 $as_echo "$CPP" >&6; }
3289 for ac_c_preproc_warn_flag in '' yes
3291 # Use a header file that comes with gcc, so configuring glibc
3292 # with a fresh cross-compiler works.
3293 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3294 # <limits.h> exists even on freestanding compilers.
3295 # On the NeXT, cc -E runs the code through the compiler's parser,
3296 # not just through cpp. "Syntax error" is here to catch this case.
3297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3298 /* end confdefs.h. */
3300 # include <limits.h>
3302 # include <assert.h>
3306 if ac_fn_c_try_cpp "$LINENO"; then :
3309 # Broken: fails on valid input.
3312 rm -f conftest.err conftest.i conftest.$ac_ext
3314 # OK, works on sane cases. Now check whether nonexistent headers
3315 # can be detected and how.
3316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3317 /* end confdefs.h. */
3318 #include <ac_nonexistent.h>
3320 if ac_fn_c_try_cpp "$LINENO"; then :
3321 # Broken: success on invalid input.
3324 # Passes both tests.
3328 rm -f conftest.err conftest.i conftest.$ac_ext
3331 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3332 rm -f conftest.i conftest.err conftest.$ac_ext
3333 if $ac_preproc_ok; then :
3336 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3337 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3338 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3339 See \`config.log' for more details" "$LINENO" 5; }
3343 ac_cpp='$CPP $CPPFLAGS'
3344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3350 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3351 if ${ac_cv_path_GREP+:} false; then :
3352 $as_echo_n "(cached) " >&6
3354 if test -z "$GREP"; then
3355 ac_path_GREP_found=false
3356 # Loop through the user's path and test for each of PROGNAME-LIST
3357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3358 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3361 test -z "$as_dir" && as_dir=.
3362 for ac_prog in grep ggrep; do
3363 for ac_exec_ext in '' $ac_executable_extensions; do
3364 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3365 as_fn_executable_p "$ac_path_GREP" || continue
3366 # Check for GNU ac_path_GREP and select it if it is found.
3367 # Check for GNU $ac_path_GREP
3368 case `"$ac_path_GREP" --version 2>&1` in
3370 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3373 $as_echo_n 0123456789 >"conftest.in"
3376 cat "conftest.in" "conftest.in" >"conftest.tmp"
3377 mv "conftest.tmp" "conftest.in"
3378 cp "conftest.in" "conftest.nl"
3379 $as_echo 'GREP' >> "conftest.nl"
3380 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3381 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3382 as_fn_arith $ac_count + 1 && ac_count=$as_val
3383 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3384 # Best one so far, save it but keep looking for a better one
3385 ac_cv_path_GREP="$ac_path_GREP"
3386 ac_path_GREP_max=$ac_count
3388 # 10*(2^10) chars as input seems more than enough
3389 test $ac_count -gt 10 && break
3391 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3394 $ac_path_GREP_found && break 3
3399 if test -z "$ac_cv_path_GREP"; then
3400 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3403 ac_cv_path_GREP=$GREP
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3408 $as_echo "$ac_cv_path_GREP" >&6; }
3409 GREP="$ac_cv_path_GREP"
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3413 $as_echo_n "checking for egrep... " >&6; }
3414 if ${ac_cv_path_EGREP+:} false; then :
3415 $as_echo_n "(cached) " >&6
3417 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3418 then ac_cv_path_EGREP="$GREP -E"
3420 if test -z "$EGREP"; then
3421 ac_path_EGREP_found=false
3422 # Loop through the user's path and test for each of PROGNAME-LIST
3423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3424 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3427 test -z "$as_dir" && as_dir=.
3428 for ac_prog in egrep; do
3429 for ac_exec_ext in '' $ac_executable_extensions; do
3430 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3431 as_fn_executable_p "$ac_path_EGREP" || continue
3432 # Check for GNU ac_path_EGREP and select it if it is found.
3433 # Check for GNU $ac_path_EGREP
3434 case `"$ac_path_EGREP" --version 2>&1` in
3436 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3439 $as_echo_n 0123456789 >"conftest.in"
3442 cat "conftest.in" "conftest.in" >"conftest.tmp"
3443 mv "conftest.tmp" "conftest.in"
3444 cp "conftest.in" "conftest.nl"
3445 $as_echo 'EGREP' >> "conftest.nl"
3446 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3447 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3448 as_fn_arith $ac_count + 1 && ac_count=$as_val
3449 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3450 # Best one so far, save it but keep looking for a better one
3451 ac_cv_path_EGREP="$ac_path_EGREP"
3452 ac_path_EGREP_max=$ac_count
3454 # 10*(2^10) chars as input seems more than enough
3455 test $ac_count -gt 10 && break
3457 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3460 $ac_path_EGREP_found && break 3
3465 if test -z "$ac_cv_path_EGREP"; then
3466 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3469 ac_cv_path_EGREP=$EGREP
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3475 $as_echo "$ac_cv_path_EGREP" >&6; }
3476 EGREP="$ac_cv_path_EGREP"
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3480 $as_echo_n "checking for ANSI C header files... " >&6; }
3481 if ${ac_cv_header_stdc+:} false; then :
3482 $as_echo_n "(cached) " >&6
3484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3485 /* end confdefs.h. */
3499 if ac_fn_c_try_compile "$LINENO"; then :
3500 ac_cv_header_stdc=yes
3502 ac_cv_header_stdc=no
3504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3506 if test $ac_cv_header_stdc = yes; then
3507 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3509 /* end confdefs.h. */
3513 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3514 $EGREP "memchr" >/dev/null 2>&1; then :
3517 ac_cv_header_stdc=no
3523 if test $ac_cv_header_stdc = yes; then
3524 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3526 /* end confdefs.h. */
3530 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3531 $EGREP "free" >/dev/null 2>&1; then :
3534 ac_cv_header_stdc=no
3540 if test $ac_cv_header_stdc = yes; then
3541 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3542 if test "$cross_compiling" = yes; then :
3545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3546 /* end confdefs.h. */
3549 #if ((' ' & 0x0FF) == 0x020)
3550 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3551 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3553 # define ISLOWER(c) \
3554 (('a' <= (c) && (c) <= 'i') \
3555 || ('j' <= (c) && (c) <= 'r') \
3556 || ('s' <= (c) && (c) <= 'z'))
3557 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3560 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3565 for (i = 0; i < 256; i++)
3566 if (XOR (islower (i), ISLOWER (i))
3567 || toupper (i) != TOUPPER (i))
3572 if ac_fn_c_try_run "$LINENO"; then :
3575 ac_cv_header_stdc=no
3577 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3578 conftest.$ac_objext conftest.beam conftest.$ac_ext
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3584 $as_echo "$ac_cv_header_stdc" >&6; }
3585 if test $ac_cv_header_stdc = yes; then
3587 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3591 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3592 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3593 inttypes.h stdint.h unistd.h
3595 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3596 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3598 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3599 cat >>confdefs.h <<_ACEOF
3600 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3609 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3610 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3617 if test "$MINIX" = yes; then
3619 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3622 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3625 $as_echo "#define _MINIX 1" >>confdefs.h
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3631 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3632 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3633 $as_echo_n "(cached) " >&6
3635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3636 /* end confdefs.h. */
3638 # define __EXTENSIONS__ 1
3639 $ac_includes_default
3648 if ac_fn_c_try_compile "$LINENO"; then :
3649 ac_cv_safe_to_define___extensions__=yes
3651 ac_cv_safe_to_define___extensions__=no
3653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3656 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3657 test $ac_cv_safe_to_define___extensions__ = yes &&
3658 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3660 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3662 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3664 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3666 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3670 # checks for programs
3672 ac_cpp='$CPP $CPPFLAGS'
3673 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3674 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3675 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3676 if test -n "$ac_tool_prefix"; then
3677 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3678 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3680 $as_echo_n "checking for $ac_word... " >&6; }
3681 if ${ac_cv_prog_CC+:} false; then :
3682 $as_echo_n "(cached) " >&6
3684 if test -n "$CC"; then
3685 ac_cv_prog_CC="$CC" # Let the user override the test.
3687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3691 test -z "$as_dir" && as_dir=.
3692 for ac_exec_ext in '' $ac_executable_extensions; do
3693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3694 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3705 if test -n "$CC"; then
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3707 $as_echo "$CC" >&6; }
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3710 $as_echo "no" >&6; }
3715 if test -z "$ac_cv_prog_CC"; then
3717 # Extract the first word of "gcc", so it can be a program name with args.
3718 set dummy gcc; ac_word=$2
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3720 $as_echo_n "checking for $ac_word... " >&6; }
3721 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3722 $as_echo_n "(cached) " >&6
3724 if test -n "$ac_ct_CC"; then
3725 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3731 test -z "$as_dir" && as_dir=.
3732 for ac_exec_ext in '' $ac_executable_extensions; do
3733 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3734 ac_cv_prog_ac_ct_CC="gcc"
3735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3744 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3745 if test -n "$ac_ct_CC"; then
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3747 $as_echo "$ac_ct_CC" >&6; }
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3750 $as_echo "no" >&6; }
3753 if test "x$ac_ct_CC" = x; then
3756 case $cross_compiling:$ac_tool_warned in
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3759 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3760 ac_tool_warned=yes ;;
3768 if test -z "$CC"; then
3769 if test -n "$ac_tool_prefix"; then
3770 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3771 set dummy ${ac_tool_prefix}cc; ac_word=$2
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3773 $as_echo_n "checking for $ac_word... " >&6; }
3774 if ${ac_cv_prog_CC+:} false; then :
3775 $as_echo_n "(cached) " >&6
3777 if test -n "$CC"; then
3778 ac_cv_prog_CC="$CC" # Let the user override the test.
3780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3784 test -z "$as_dir" && as_dir=.
3785 for ac_exec_ext in '' $ac_executable_extensions; do
3786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3787 ac_cv_prog_CC="${ac_tool_prefix}cc"
3788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3798 if test -n "$CC"; then
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3800 $as_echo "$CC" >&6; }
3802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3803 $as_echo "no" >&6; }
3809 if test -z "$CC"; then
3810 # Extract the first word of "cc", so it can be a program name with args.
3811 set dummy cc; ac_word=$2
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3813 $as_echo_n "checking for $ac_word... " >&6; }
3814 if ${ac_cv_prog_CC+:} false; then :
3815 $as_echo_n "(cached) " >&6
3817 if test -n "$CC"; then
3818 ac_cv_prog_CC="$CC" # Let the user override the test.
3821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3825 test -z "$as_dir" && as_dir=.
3826 for ac_exec_ext in '' $ac_executable_extensions; do
3827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3828 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3829 ac_prog_rejected=yes
3833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3840 if test $ac_prog_rejected = yes; then
3841 # We found a bogon in the path, so make sure we never use it.
3842 set dummy $ac_cv_prog_CC
3844 if test $# != 0; then
3845 # We chose a different compiler from the bogus one.
3846 # However, it has the same basename, so the bogon will be chosen
3847 # first if we set CC to just the basename; use the full file name.
3849 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3855 if test -n "$CC"; then
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3857 $as_echo "$CC" >&6; }
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3860 $as_echo "no" >&6; }
3865 if test -z "$CC"; then
3866 if test -n "$ac_tool_prefix"; then
3867 for ac_prog in cl.exe
3869 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3870 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3872 $as_echo_n "checking for $ac_word... " >&6; }
3873 if ${ac_cv_prog_CC+:} false; then :
3874 $as_echo_n "(cached) " >&6
3876 if test -n "$CC"; then
3877 ac_cv_prog_CC="$CC" # Let the user override the test.
3879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3883 test -z "$as_dir" && as_dir=.
3884 for ac_exec_ext in '' $ac_executable_extensions; do
3885 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3886 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3897 if test -n "$CC"; then
3898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3899 $as_echo "$CC" >&6; }
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3902 $as_echo "no" >&6; }
3906 test -n "$CC" && break
3909 if test -z "$CC"; then
3911 for ac_prog in cl.exe
3913 # Extract the first word of "$ac_prog", so it can be a program name with args.
3914 set dummy $ac_prog; ac_word=$2
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3916 $as_echo_n "checking for $ac_word... " >&6; }
3917 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3918 $as_echo_n "(cached) " >&6
3920 if test -n "$ac_ct_CC"; then
3921 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3927 test -z "$as_dir" && as_dir=.
3928 for ac_exec_ext in '' $ac_executable_extensions; do
3929 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3930 ac_cv_prog_ac_ct_CC="$ac_prog"
3931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3940 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3941 if test -n "$ac_ct_CC"; then
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3943 $as_echo "$ac_ct_CC" >&6; }
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3946 $as_echo "no" >&6; }
3950 test -n "$ac_ct_CC" && break
3953 if test "x$ac_ct_CC" = x; then
3956 case $cross_compiling:$ac_tool_warned in
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3959 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3960 ac_tool_warned=yes ;;
3969 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3970 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3971 as_fn_error $? "no acceptable C compiler found in \$PATH
3972 See \`config.log' for more details" "$LINENO" 5; }
3974 # Provide some information about the compiler.
3975 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3978 for ac_option in --version -v -V -qversion; do
3979 { { ac_try="$ac_compiler $ac_option >&5"
3981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3982 *) ac_try_echo=$ac_try;;
3984 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3985 $as_echo "$ac_try_echo"; } >&5
3986 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3988 if test -s conftest.err; then
3990 ... rest of stderr output deleted ...
3991 10q' conftest.err >conftest.er1
3992 cat conftest.er1 >&5
3994 rm -f conftest.er1 conftest.err
3995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3996 test $ac_status = 0; }
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4000 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4001 if ${ac_cv_c_compiler_gnu+:} false; then :
4002 $as_echo_n "(cached) " >&6
4004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4005 /* end confdefs.h. */
4018 if ac_fn_c_try_compile "$LINENO"; then :
4023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4024 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4028 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4029 if test $ac_compiler_gnu = yes; then
4034 ac_test_CFLAGS=${CFLAGS+set}
4035 ac_save_CFLAGS=$CFLAGS
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4037 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4038 if ${ac_cv_prog_cc_g+:} false; then :
4039 $as_echo_n "(cached) " >&6
4041 ac_save_c_werror_flag=$ac_c_werror_flag
4042 ac_c_werror_flag=yes
4045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4046 /* end confdefs.h. */
4056 if ac_fn_c_try_compile "$LINENO"; then :
4060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4061 /* end confdefs.h. */
4071 if ac_fn_c_try_compile "$LINENO"; then :
4074 ac_c_werror_flag=$ac_save_c_werror_flag
4076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4077 /* end confdefs.h. */
4087 if ac_fn_c_try_compile "$LINENO"; then :
4090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4095 ac_c_werror_flag=$ac_save_c_werror_flag
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4098 $as_echo "$ac_cv_prog_cc_g" >&6; }
4099 if test "$ac_test_CFLAGS" = set; then
4100 CFLAGS=$ac_save_CFLAGS
4101 elif test $ac_cv_prog_cc_g = yes; then
4102 if test "$GCC" = yes; then
4108 if test "$GCC" = yes; then
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4115 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4116 if ${ac_cv_prog_cc_c89+:} false; then :
4117 $as_echo_n "(cached) " >&6
4119 ac_cv_prog_cc_c89=no
4121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4122 /* end confdefs.h. */
4126 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4127 struct buf { int x; };
4128 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4129 static char *e (p, i)
4135 static char *f (char * (*g) (char **, int), char **p, ...)
4140 s = g (p, va_arg (v,int));
4145 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4146 function prototypes and stuff, but not '\xHH' hex character constants.
4147 These don't provoke an error unfortunately, instead are silently treated
4148 as 'x'. The following induces an error, until -std is added to get
4149 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4150 array size at least. It's necessary to write '\x00'==0 to get something
4151 that's true only with -std. */
4152 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4154 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4155 inside strings and character constants. */
4157 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4159 int test (int i, double x);
4160 struct s1 {int (*f) (int a);};
4161 struct s2 {int (*f) (double a);};
4162 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4168 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4173 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4174 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4176 CC="$ac_save_CC $ac_arg"
4177 if ac_fn_c_try_compile "$LINENO"; then :
4178 ac_cv_prog_cc_c89=$ac_arg
4180 rm -f core conftest.err conftest.$ac_objext
4181 test "x$ac_cv_prog_cc_c89" != "xno" && break
4183 rm -f conftest.$ac_ext
4188 case "x$ac_cv_prog_cc_c89" in
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4191 $as_echo "none needed" >&6; } ;;
4193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4194 $as_echo "unsupported" >&6; } ;;
4196 CC="$CC $ac_cv_prog_cc_c89"
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4198 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4200 if test "x$ac_cv_prog_cc_c89" != xno; then :
4205 ac_cpp='$CPP $CPPFLAGS'
4206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4208 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4211 ac_cpp='$CXXCPP $CPPFLAGS'
4212 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4213 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4214 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4215 if test -z "$CXX"; then
4216 if test -n "$CCC"; then
4219 if test -n "$ac_tool_prefix"; then
4220 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4222 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4223 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4225 $as_echo_n "checking for $ac_word... " >&6; }
4226 if ${ac_cv_prog_CXX+:} false; then :
4227 $as_echo_n "(cached) " >&6
4229 if test -n "$CXX"; then
4230 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4236 test -z "$as_dir" && as_dir=.
4237 for ac_exec_ext in '' $ac_executable_extensions; do
4238 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4239 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4250 if test -n "$CXX"; then
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4252 $as_echo "$CXX" >&6; }
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4255 $as_echo "no" >&6; }
4259 test -n "$CXX" && break
4262 if test -z "$CXX"; then
4264 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4266 # Extract the first word of "$ac_prog", so it can be a program name with args.
4267 set dummy $ac_prog; ac_word=$2
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4269 $as_echo_n "checking for $ac_word... " >&6; }
4270 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4271 $as_echo_n "(cached) " >&6
4273 if test -n "$ac_ct_CXX"; then
4274 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4280 test -z "$as_dir" && as_dir=.
4281 for ac_exec_ext in '' $ac_executable_extensions; do
4282 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4283 ac_cv_prog_ac_ct_CXX="$ac_prog"
4284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4293 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4294 if test -n "$ac_ct_CXX"; then
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4296 $as_echo "$ac_ct_CXX" >&6; }
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4299 $as_echo "no" >&6; }
4303 test -n "$ac_ct_CXX" && break
4306 if test "x$ac_ct_CXX" = x; then
4309 case $cross_compiling:$ac_tool_warned in
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4312 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4313 ac_tool_warned=yes ;;
4321 # Provide some information about the compiler.
4322 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4325 for ac_option in --version -v -V -qversion; do
4326 { { ac_try="$ac_compiler $ac_option >&5"
4328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4329 *) ac_try_echo=$ac_try;;
4331 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4332 $as_echo "$ac_try_echo"; } >&5
4333 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4335 if test -s conftest.err; then
4337 ... rest of stderr output deleted ...
4338 10q' conftest.err >conftest.er1
4339 cat conftest.er1 >&5
4341 rm -f conftest.er1 conftest.err
4342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4343 test $ac_status = 0; }
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4347 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4348 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4349 $as_echo_n "(cached) " >&6
4351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4352 /* end confdefs.h. */
4365 if ac_fn_cxx_try_compile "$LINENO"; then :
4370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4371 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4375 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4376 if test $ac_compiler_gnu = yes; then
4381 ac_test_CXXFLAGS=${CXXFLAGS+set}
4382 ac_save_CXXFLAGS=$CXXFLAGS
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4384 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4385 if ${ac_cv_prog_cxx_g+:} false; then :
4386 $as_echo_n "(cached) " >&6
4388 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4389 ac_cxx_werror_flag=yes
4392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4393 /* end confdefs.h. */
4403 if ac_fn_cxx_try_compile "$LINENO"; then :
4404 ac_cv_prog_cxx_g=yes
4407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4408 /* end confdefs.h. */
4418 if ac_fn_cxx_try_compile "$LINENO"; then :
4421 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4424 /* end confdefs.h. */
4434 if ac_fn_cxx_try_compile "$LINENO"; then :
4435 ac_cv_prog_cxx_g=yes
4437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4442 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4445 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4446 if test "$ac_test_CXXFLAGS" = set; then
4447 CXXFLAGS=$ac_save_CXXFLAGS
4448 elif test $ac_cv_prog_cxx_g = yes; then
4449 if test "$GXX" = yes; then
4455 if test "$GXX" = yes; then
4462 ac_cpp='$CPP $CPPFLAGS'
4463 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4464 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4465 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4470 ac_cpp='$CXXCPP $CPPFLAGS'
4471 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4472 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4473 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4475 if test "$cross_compiling" = no; then
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that C++ compiler can compile simple program" >&5
4477 $as_echo_n "checking that C++ compiler can compile simple program... " >&6; }
4479 if test "$cross_compiling" = yes; then :
4482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4483 /* end confdefs.h. */
4494 if ac_fn_cxx_try_run "$LINENO"; then :
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4496 $as_echo "yes" >&6; }
4498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4499 $as_echo "no" >&6; }
4500 as_fn_error $? "a working C++ compiler is required" "$LINENO" 5
4502 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4503 conftest.$ac_objext conftest.beam conftest.$ac_ext
4507 if test "$cross_compiling" = no; then
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that C++ static constructors and destructors are called" >&5
4509 $as_echo_n "checking that C++ static constructors and destructors are called... " >&6; }
4511 if test "$cross_compiling" = yes; then :
4514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4515 /* end confdefs.h. */
4527 ~A() { if (i == 1) _exit(0); }
4540 if ac_fn_cxx_try_run "$LINENO"; then :
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4542 $as_echo "yes" >&6; }
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4545 $as_echo "no" >&6; }
4546 as_fn_error $? "a working C++ compiler is required" "$LINENO" 5
4548 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4549 conftest.$ac_objext conftest.beam conftest.$ac_ext
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that header files support C++" >&5
4554 $as_echo_n "checking that header files support C++... " >&6; }
4555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4556 /* end confdefs.h. */
4576 if ac_fn_cxx_try_link "$LINENO"; then :
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4578 $as_echo "yes" >&6; }
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4581 $as_echo "no" >&6; }
4582 as_fn_error $? "header files do not support C++
4583 (if you are using a version of gcc/g++ earlier than 2.5,
4584 you should install libg++)" "$LINENO" 5
4586 rm -f core conftest.err conftest.$ac_objext \
4587 conftest$ac_exeext conftest.$ac_ext
4589 ac_cpp='$CPP $CPPFLAGS'
4590 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4591 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4592 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether character set is EBCDIC" >&5
4595 $as_echo_n "checking whether character set is EBCDIC... " >&6; }
4596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4597 /* end confdefs.h. */
4601 /* Treat any failure as ASCII for compatibility with existing art.
4602 Use compile-time rather than run-time tests for cross-compiler
4605 make an error "Character set is not EBCDIC"
4618 if ac_fn_c_try_compile "$LINENO"; then :
4619 groff_cv_ebcdic="yes"
4620 TTYDEVDIRS="font/devcp1047"
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4622 $as_echo "yes" >&6; }
4624 $as_echo "#define IS_EBCDIC_HOST 1" >>confdefs.h
4627 groff_cv_ebcdic="no"
4628 TTYDEVDIRS="font/devascii font/devlatin1"
4629 OTHERDEVDIRS="font/devlj4 font/devlbp"
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4631 $as_echo "no" >&6; }
4633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4636 if test "$groff_cv_ebcdic" = "yes"; then
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OS/390 Unix" >&5
4638 $as_echo_n "checking for OS/390 Unix... " >&6; }
4641 CFLAGS="$CFLAGS -D_ALL_SOURCE"
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4643 $as_echo "yes" >&6; } ;;
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4646 $as_echo "no" >&6; } ;;
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
4650 $as_echo_n "checking for X... " >&6; }
4653 # Check whether --with-x was given.
4654 if test "${with_x+set}" = set; then :
4658 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4659 if test "x$with_x" = xno; then
4660 # The user explicitly disabled X.
4663 case $x_includes,$x_libraries in #(
4664 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
4665 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
4666 $as_echo_n "(cached) " >&6
4668 # One or both of the vars are not set, and there is no cached value.
4669 ac_x_includes=no ac_x_libraries=no
4670 rm -f -r conftest.dir
4671 if mkdir conftest.dir; then
4673 cat >Imakefile <<'_ACEOF'
4675 @echo incroot='${INCROOT}'
4677 @echo usrlibdir='${USRLIBDIR}'
4679 @echo libdir='${LIBDIR}'
4681 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
4682 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4683 for ac_var in incroot usrlibdir libdir; do
4684 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
4686 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4687 for ac_extension in a so sl dylib la dll; do
4688 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
4689 test -f "$ac_im_libdir/libX11.$ac_extension"; then
4690 ac_im_usrlibdir=$ac_im_libdir; break
4693 # Screen out bogus values from the imake configuration. They are
4694 # bogus both because they are the default anyway, and because
4695 # using them would break gcc on systems where it needs fixed includes.
4696 case $ac_im_incroot in
4697 /usr/include) ac_x_includes= ;;
4698 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
4700 case $ac_im_usrlibdir in
4701 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
4702 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
4706 rm -f -r conftest.dir
4709 # Standard set of common directories for X headers.
4710 # Check X11 before X11Rn because it is often a symlink to the current release.
4724 /usr/local/X11/include
4725 /usr/local/X11R7/include
4726 /usr/local/X11R6/include
4727 /usr/local/X11R5/include
4728 /usr/local/X11R4/include
4730 /usr/local/include/X11
4731 /usr/local/include/X11R7
4732 /usr/local/include/X11R6
4733 /usr/local/include/X11R5
4734 /usr/local/include/X11R4
4738 /usr/XFree86/include/X11
4742 /usr/unsupported/include
4744 /usr/local/x11r5/include
4745 /usr/lpp/Xamples/include
4747 /usr/openwin/include
4748 /usr/openwin/share/include'
4750 if test "$ac_x_includes" = no; then
4751 # Guess where to find include files, by looking for Xlib.h.
4752 # First, try using that file with no special directory specified.
4753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4754 /* end confdefs.h. */
4755 #include <X11/Xlib.h>
4757 if ac_fn_c_try_cpp "$LINENO"; then :
4758 # We can compile using X headers with no special include directory.
4761 for ac_dir in $ac_x_header_dirs; do
4762 if test -r "$ac_dir/X11/Xlib.h"; then
4763 ac_x_includes=$ac_dir
4768 rm -f conftest.err conftest.i conftest.$ac_ext
4769 fi # $ac_x_includes = no
4771 if test "$ac_x_libraries" = no; then
4772 # Check for the libraries.
4773 # See if we find them without any special options.
4774 # Don't add to $LIBS permanently.
4777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4778 /* end confdefs.h. */
4779 #include <X11/Xlib.h>
4788 if ac_fn_c_try_link "$LINENO"; then :
4790 # We can link X programs with no special library path.
4794 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
4796 # Don't even attempt the hair of trying to link an X program!
4797 for ac_extension in a so sl dylib la dll; do
4798 if test -r "$ac_dir/libX11.$ac_extension"; then
4799 ac_x_libraries=$ac_dir
4805 rm -f core conftest.err conftest.$ac_objext \
4806 conftest$ac_exeext conftest.$ac_ext
4807 fi # $ac_x_libraries = no
4809 case $ac_x_includes,$ac_x_libraries in #(
4811 # Didn't find X, or a directory has "'" in its name.
4812 ac_cv_have_x="have_x=no";; #(
4814 # Record where we found X for the cache.
4815 ac_cv_have_x="have_x=yes\
4816 ac_x_includes='$ac_x_includes'\
4817 ac_x_libraries='$ac_x_libraries'"
4823 eval "$ac_cv_have_x"
4826 if test "$have_x" != yes; then
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
4828 $as_echo "$have_x" >&6; }
4831 # If each of the values was on the command line, it overrides each guess.
4832 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4833 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4834 # Update the cache value to reflect the command line values.
4835 ac_cv_have_x="have_x=yes\
4836 ac_x_includes='$x_includes'\
4837 ac_x_libraries='$x_libraries'"
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
4839 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
4842 if test "$no_x" = yes; then
4843 # Not all programs may use this symbol, but it does not hurt to define it.
4845 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
4847 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
4849 if test -n "$x_includes"; then
4850 X_CFLAGS="$X_CFLAGS -I$x_includes"
4853 # It would also be nice to do this for all -L options, not just this one.
4854 if test -n "$x_libraries"; then
4855 X_LIBS="$X_LIBS -L$x_libraries"
4856 # For Solaris; some versions of Sun CC require a space after -R and
4857 # others require no space. Words are not sufficient . . . .
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
4859 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
4860 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
4861 ac_xsave_c_werror_flag=$ac_c_werror_flag
4862 ac_c_werror_flag=yes
4863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4864 /* end confdefs.h. */
4874 if ac_fn_c_try_link "$LINENO"; then :
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4876 $as_echo "no" >&6; }
4877 X_LIBS="$X_LIBS -R$x_libraries"
4879 LIBS="$ac_xsave_LIBS -R $x_libraries"
4880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4881 /* end confdefs.h. */
4891 if ac_fn_c_try_link "$LINENO"; then :
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4893 $as_echo "yes" >&6; }
4894 X_LIBS="$X_LIBS -R $x_libraries"
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
4897 $as_echo "neither works" >&6; }
4899 rm -f core conftest.err conftest.$ac_objext \
4900 conftest$ac_exeext conftest.$ac_ext
4902 rm -f core conftest.err conftest.$ac_objext \
4903 conftest$ac_exeext conftest.$ac_ext
4904 ac_c_werror_flag=$ac_xsave_c_werror_flag
4908 # Check for system-dependent libraries X programs must link with.
4909 # Do this before checking for the system-independent R6 libraries
4910 # (-lICE), since we may need -lsocket or whatever for X linking.
4912 if test "$ISC" = yes; then
4913 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4915 # Martyn Johnson says this is needed for Ultrix, if the X
4916 # libraries were built with DECnet support. And Karl Berry says
4917 # the Alpha needs dnet_stub (dnet does not exist).
4918 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
4919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4920 /* end confdefs.h. */
4922 /* Override any GCC internal prototype to avoid an error.
4923 Use char because int might match the return type of a GCC
4924 builtin and then its argument prototype would still apply. */
4928 char XOpenDisplay ();
4932 return XOpenDisplay ();
4937 if ac_fn_c_try_link "$LINENO"; then :
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
4941 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
4942 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
4943 $as_echo_n "(cached) " >&6
4945 ac_check_lib_save_LIBS=$LIBS
4947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4948 /* end confdefs.h. */
4950 /* Override any GCC internal prototype to avoid an error.
4951 Use char because int might match the return type of a GCC
4952 builtin and then its argument prototype would still apply. */
4960 return dnet_ntoa ();
4965 if ac_fn_c_try_link "$LINENO"; then :
4966 ac_cv_lib_dnet_dnet_ntoa=yes
4968 ac_cv_lib_dnet_dnet_ntoa=no
4970 rm -f core conftest.err conftest.$ac_objext \
4971 conftest$ac_exeext conftest.$ac_ext
4972 LIBS=$ac_check_lib_save_LIBS
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
4975 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
4976 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
4977 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
4980 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
4982 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
4983 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
4984 $as_echo_n "(cached) " >&6
4986 ac_check_lib_save_LIBS=$LIBS
4987 LIBS="-ldnet_stub $LIBS"
4988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4989 /* end confdefs.h. */
4991 /* Override any GCC internal prototype to avoid an error.
4992 Use char because int might match the return type of a GCC
4993 builtin and then its argument prototype would still apply. */
5001 return dnet_ntoa ();
5006 if ac_fn_c_try_link "$LINENO"; then :
5007 ac_cv_lib_dnet_stub_dnet_ntoa=yes
5009 ac_cv_lib_dnet_stub_dnet_ntoa=no
5011 rm -f core conftest.err conftest.$ac_objext \
5012 conftest$ac_exeext conftest.$ac_ext
5013 LIBS=$ac_check_lib_save_LIBS
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5016 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
5017 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
5018 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5023 rm -f core conftest.err conftest.$ac_objext \
5024 conftest$ac_exeext conftest.$ac_ext
5025 LIBS="$ac_xsave_LIBS"
5027 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5028 # to get the SysV transport functions.
5029 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
5031 # The nsl library prevents programs from opening the X display
5032 # on Irix 5.2, according to T.E. Dickey.
5033 # The functions gethostbyname, getservbyname, and inet_addr are
5034 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5035 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
5036 if test "x$ac_cv_func_gethostbyname" = xyes; then :
5040 if test $ac_cv_func_gethostbyname = no; then
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
5042 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
5043 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
5044 $as_echo_n "(cached) " >&6
5046 ac_check_lib_save_LIBS=$LIBS
5048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5049 /* end confdefs.h. */
5051 /* Override any GCC internal prototype to avoid an error.
5052 Use char because int might match the return type of a GCC
5053 builtin and then its argument prototype would still apply. */
5057 char gethostbyname ();
5061 return gethostbyname ();
5066 if ac_fn_c_try_link "$LINENO"; then :
5067 ac_cv_lib_nsl_gethostbyname=yes
5069 ac_cv_lib_nsl_gethostbyname=no
5071 rm -f core conftest.err conftest.$ac_objext \
5072 conftest$ac_exeext conftest.$ac_ext
5073 LIBS=$ac_check_lib_save_LIBS
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
5076 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
5077 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
5078 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5081 if test $ac_cv_lib_nsl_gethostbyname = no; then
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
5083 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
5084 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
5085 $as_echo_n "(cached) " >&6
5087 ac_check_lib_save_LIBS=$LIBS
5089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5090 /* end confdefs.h. */
5092 /* Override any GCC internal prototype to avoid an error.
5093 Use char because int might match the return type of a GCC
5094 builtin and then its argument prototype would still apply. */
5098 char gethostbyname ();
5102 return gethostbyname ();
5107 if ac_fn_c_try_link "$LINENO"; then :
5108 ac_cv_lib_bsd_gethostbyname=yes
5110 ac_cv_lib_bsd_gethostbyname=no
5112 rm -f core conftest.err conftest.$ac_objext \
5113 conftest$ac_exeext conftest.$ac_ext
5114 LIBS=$ac_check_lib_save_LIBS
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
5117 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
5118 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
5119 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
5125 # lieder@skyler.mavd.honeywell.com says without -lsocket,
5126 # socket/setsockopt and other routines are undefined under SCO ODT
5127 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
5128 # on later versions), says Simon Leinen: it contains gethostby*
5129 # variants that don't use the name server (or something). -lsocket
5130 # must be given before -lnsl if both are needed. We assume that
5131 # if connect needs -lnsl, so does gethostbyname.
5132 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
5133 if test "x$ac_cv_func_connect" = xyes; then :
5137 if test $ac_cv_func_connect = no; then
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
5139 $as_echo_n "checking for connect in -lsocket... " >&6; }
5140 if ${ac_cv_lib_socket_connect+:} false; then :
5141 $as_echo_n "(cached) " >&6
5143 ac_check_lib_save_LIBS=$LIBS
5144 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
5145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5146 /* end confdefs.h. */
5148 /* Override any GCC internal prototype to avoid an error.
5149 Use char because int might match the return type of a GCC
5150 builtin and then its argument prototype would still apply. */
5163 if ac_fn_c_try_link "$LINENO"; then :
5164 ac_cv_lib_socket_connect=yes
5166 ac_cv_lib_socket_connect=no
5168 rm -f core conftest.err conftest.$ac_objext \
5169 conftest$ac_exeext conftest.$ac_ext
5170 LIBS=$ac_check_lib_save_LIBS
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
5173 $as_echo "$ac_cv_lib_socket_connect" >&6; }
5174 if test "x$ac_cv_lib_socket_connect" = xyes; then :
5175 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5180 # Guillermo Gomez says -lposix is necessary on A/UX.
5181 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
5182 if test "x$ac_cv_func_remove" = xyes; then :
5186 if test $ac_cv_func_remove = no; then
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
5188 $as_echo_n "checking for remove in -lposix... " >&6; }
5189 if ${ac_cv_lib_posix_remove+:} false; then :
5190 $as_echo_n "(cached) " >&6
5192 ac_check_lib_save_LIBS=$LIBS
5193 LIBS="-lposix $LIBS"
5194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5195 /* end confdefs.h. */
5197 /* Override any GCC internal prototype to avoid an error.
5198 Use char because int might match the return type of a GCC
5199 builtin and then its argument prototype would still apply. */
5212 if ac_fn_c_try_link "$LINENO"; then :
5213 ac_cv_lib_posix_remove=yes
5215 ac_cv_lib_posix_remove=no
5217 rm -f core conftest.err conftest.$ac_objext \
5218 conftest$ac_exeext conftest.$ac_ext
5219 LIBS=$ac_check_lib_save_LIBS
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
5222 $as_echo "$ac_cv_lib_posix_remove" >&6; }
5223 if test "x$ac_cv_lib_posix_remove" = xyes; then :
5224 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5229 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5230 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
5231 if test "x$ac_cv_func_shmat" = xyes; then :
5235 if test $ac_cv_func_shmat = no; then
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
5237 $as_echo_n "checking for shmat in -lipc... " >&6; }
5238 if ${ac_cv_lib_ipc_shmat+:} false; then :
5239 $as_echo_n "(cached) " >&6
5241 ac_check_lib_save_LIBS=$LIBS
5243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5244 /* end confdefs.h. */
5246 /* Override any GCC internal prototype to avoid an error.
5247 Use char because int might match the return type of a GCC
5248 builtin and then its argument prototype would still apply. */
5261 if ac_fn_c_try_link "$LINENO"; then :
5262 ac_cv_lib_ipc_shmat=yes
5264 ac_cv_lib_ipc_shmat=no
5266 rm -f core conftest.err conftest.$ac_objext \
5267 conftest$ac_exeext conftest.$ac_ext
5268 LIBS=$ac_check_lib_save_LIBS
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
5271 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
5272 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
5273 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5279 # Check for libraries that X11R6 Xt/Xaw programs need.
5280 ac_save_LDFLAGS=$LDFLAGS
5281 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5282 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5283 # check for ICE first), but we must link in the order -lSM -lICE or
5284 # we get undefined symbols. So assume we have SM if we have ICE.
5285 # These have to be linked with before -lX11, unlike the other
5286 # libraries we check for below, so use a different variable.
5287 # John Interrante, Karl Berry
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
5289 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
5290 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
5291 $as_echo_n "(cached) " >&6
5293 ac_check_lib_save_LIBS=$LIBS
5294 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
5295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5296 /* end confdefs.h. */
5298 /* Override any GCC internal prototype to avoid an error.
5299 Use char because int might match the return type of a GCC
5300 builtin and then its argument prototype would still apply. */
5304 char IceConnectionNumber ();
5308 return IceConnectionNumber ();
5313 if ac_fn_c_try_link "$LINENO"; then :
5314 ac_cv_lib_ICE_IceConnectionNumber=yes
5316 ac_cv_lib_ICE_IceConnectionNumber=no
5318 rm -f core conftest.err conftest.$ac_objext \
5319 conftest$ac_exeext conftest.$ac_ext
5320 LIBS=$ac_check_lib_save_LIBS
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
5323 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
5324 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
5325 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5328 LDFLAGS=$ac_save_LDFLAGS
5334 if test -z "$groff_no_x"; then
5338 CFLAGS="$CFLAGS $X_CFLAGS"
5339 LDFLAGS="$LDFLAGS $X_LIBS"
5340 LIBS="$LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xaw library and header files" >&5
5344 $as_echo_n "checking for Xaw library and header files... " >&6; }
5345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5346 /* end confdefs.h. */
5350 #include <X11/Intrinsic.h>
5351 #include <X11/Xaw/Simple.h>
5363 if ac_fn_c_try_link "$LINENO"; then :
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5365 $as_echo "yes" >&6; }
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5368 $as_echo "no" >&6; }
5371 rm -f core conftest.err conftest.$ac_objext \
5372 conftest$ac_exeext conftest.$ac_ext
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xmu library and header files" >&5
5376 $as_echo_n "checking for Xmu library and header files... " >&6; }
5377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5378 /* end confdefs.h. */
5382 #include <X11/Intrinsic.h>
5383 #include <X11/Xmu/Converters.h>
5395 if ac_fn_c_try_link "$LINENO"; then :
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5397 $as_echo "yes" >&6; }
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5400 $as_echo "no" >&6; }
5403 rm -f core conftest.err conftest.$ac_objext \
5404 conftest$ac_exeext conftest.$ac_ext
5411 if test "x$groff_no_x" = "xyes"; then
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: gxditview and xtotroff won't be built" >&5
5413 $as_echo "$as_me: gxditview and xtotroff won't be built" >&6;}
5415 XDEVDIRS="font/devX75 font/devX75-12 font/devX100 font/devX100-12"
5416 XPROGDIRS="src/devices/xditview src/utils/xtotroff"
5417 XLIBDIRS="src/libs/libxutil"
5424 # Check whether --with-appresdir was given.
5425 if test "${with_appresdir+set}" = set; then :
5426 withval=$with_appresdir;
5429 if test -z "$groff_no_x"; then
5430 # Create an Imakefile, run `xmkmf', then `make'.
5431 rm -f -r conftest.dir
5432 if mkdir conftest.dir; then
5434 # Make sure to not put `make' in the Imakefile rules,
5435 # since we grep it out.
5436 cat >Imakefile <<'EOF'
5439 @echo 'groff_x_usrlibdir="${USRLIBDIR}"; groff_x_libdir="${LIBDIR}"'
5442 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5443 # GNU make sometimes prints "make[1]: Entering...",
5444 # which would confuse us.
5445 eval `${MAKE-make} xlibdirs 2>/dev/null | grep -v make`
5447 # Open Windows `xmkmf' reportedly sets LIBDIR instead of USRLIBDIR.
5448 for groff_extension in a so sl; do
5449 if test ! -f $groff_x_usrlibdir/libX11.$groff_extension &&
5450 test -f $groff_x_libdir/libX11.$groff_extension; then
5451 groff_x_usrlibdir=$groff_x_libdir
5458 rm -f -r conftest.dir
5461 # In case the test with `xmkmf' wasn't successful, try a suite of
5462 # standard directories. Check `X11' before `X11Rn' because it is often
5463 # a symlink to the current release.
5476 /usr/local/X11R6/lib
5477 /usr/local/X11R5/lib
5478 /usr/local/X11R4/lib
5481 /usr/local/lib/X11R6
5482 /usr/local/lib/X11R5
5483 /usr/local/lib/X11R4
5487 /usr/XFree86/lib/X11
5491 /usr/unsupported/lib
5493 /usr/local/x11r5/lib
5494 /usr/lpp/Xamples/lib
5497 /usr/openwin/share/lib'
5499 if test -z "$groff_x_usrlibdir"; then
5500 # We only test whether libX11 exists.
5501 for groff_dir in $groff_x_libdirs; do
5502 for groff_extension in a so sl; do
5503 if test ! -r $groff_dir/libX11.$groff_extension; then
5504 groff_x_usrlibdir=$groff_dir
5511 if test "x$with_appresdir" = "x"; then
5512 appresdir=$groff_x_usrlibdir/X11/app-defaults
5514 appresdir=$with_appresdir
5519 # Check whether --with-grofferdir was given.
5520 if test "${with_grofferdir+set}" = set; then :
5521 withval=$with_grofferdir;
5524 if test "x$with_grofferdir" = "x"; then
5525 groffer_dir=$libdir/groff/groffer
5527 groffer_dir=$with_grofferdir
5530 if test -z "$PSPRINT"; then
5533 # Extract the first word of "$ac_prog", so it can be a program name with args.
5534 set dummy $ac_prog; ac_word=$2
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5536 $as_echo_n "checking for $ac_word... " >&6; }
5537 if ${ac_cv_prog_LPR+:} false; then :
5538 $as_echo_n "(cached) " >&6
5540 if test -n "$LPR"; then
5541 ac_cv_prog_LPR="$LPR" # Let the user override the test.
5543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5547 test -z "$as_dir" && as_dir=.
5548 for ac_exec_ext in '' $ac_executable_extensions; do
5549 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5550 ac_cv_prog_LPR="$ac_prog"
5551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5561 if test -n "$LPR"; then
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPR" >&5
5563 $as_echo "$LPR" >&6; }
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5566 $as_echo "no" >&6; }
5570 test -n "$LPR" && break
5575 # Extract the first word of "$ac_prog", so it can be a program name with args.
5576 set dummy $ac_prog; ac_word=$2
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5578 $as_echo_n "checking for $ac_word... " >&6; }
5579 if ${ac_cv_prog_LP+:} false; then :
5580 $as_echo_n "(cached) " >&6
5582 if test -n "$LP"; then
5583 ac_cv_prog_LP="$LP" # Let the user override the test.
5585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5589 test -z "$as_dir" && as_dir=.
5590 for ac_exec_ext in '' $ac_executable_extensions; do
5591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5592 ac_cv_prog_LP="$ac_prog"
5593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5603 if test -n "$LP"; then
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LP" >&5
5605 $as_echo "$LP" >&6; }
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5608 $as_echo "no" >&6; }
5612 test -n "$LP" && break
5615 if test -n "$LPR" && test -n "$LP"; then
5616 # HP-UX provides an lpr command that emulates lpr using lp,
5617 # but it doesn't have lpq; in this case we want to use lp
5621 # Extract the first word of "$ac_prog", so it can be a program name with args.
5622 set dummy $ac_prog; ac_word=$2
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5624 $as_echo_n "checking for $ac_word... " >&6; }
5625 if ${ac_cv_prog_LPQ+:} false; then :
5626 $as_echo_n "(cached) " >&6
5628 if test -n "$LPQ"; then
5629 ac_cv_prog_LPQ="$LPQ" # Let the user override the test.
5631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5635 test -z "$as_dir" && as_dir=.
5636 for ac_exec_ext in '' $ac_executable_extensions; do
5637 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5638 ac_cv_prog_LPQ="$ac_prog"
5639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5649 if test -n "$LPQ"; then
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPQ" >&5
5651 $as_echo "$LPQ" >&6; }
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5654 $as_echo "no" >&6; }
5658 test -n "$LPQ" && break
5661 test -n "$LPQ" || LPR=
5663 if test -n "$LPR"; then
5665 elif test -n "$LP"; then
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for command to use for printing PostScript files" >&5
5671 $as_echo_n "checking for command to use for printing PostScript files... " >&6; }
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSPRINT" >&5
5673 $as_echo "$PSPRINT" >&6; }
5675 # Figure out DVIPRINT from PSPRINT.
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for command to use for printing dvi files" >&5
5677 $as_echo_n "checking for command to use for printing dvi files... " >&6; }
5678 if test -n "$PSPRINT" && test -z "$DVIPRINT"; then
5679 if test "x$PSPRINT" = "xlpr"; then
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIPRINT" >&5
5687 $as_echo "$DVIPRINT" >&6; }
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5689 $as_echo_n "checking for egrep... " >&6; }
5690 if ${ac_cv_path_EGREP+:} false; then :
5691 $as_echo_n "(cached) " >&6
5693 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5694 then ac_cv_path_EGREP="$GREP -E"
5696 if test -z "$EGREP"; then
5697 ac_path_EGREP_found=false
5698 # Loop through the user's path and test for each of PROGNAME-LIST
5699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5700 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5703 test -z "$as_dir" && as_dir=.
5704 for ac_prog in egrep; do
5705 for ac_exec_ext in '' $ac_executable_extensions; do
5706 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5707 as_fn_executable_p "$ac_path_EGREP" || continue
5708 # Check for GNU ac_path_EGREP and select it if it is found.
5709 # Check for GNU $ac_path_EGREP
5710 case `"$ac_path_EGREP" --version 2>&1` in
5712 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5715 $as_echo_n 0123456789 >"conftest.in"
5718 cat "conftest.in" "conftest.in" >"conftest.tmp"
5719 mv "conftest.tmp" "conftest.in"
5720 cp "conftest.in" "conftest.nl"
5721 $as_echo 'EGREP' >> "conftest.nl"
5722 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5723 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5724 as_fn_arith $ac_count + 1 && ac_count=$as_val
5725 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5726 # Best one so far, save it but keep looking for a better one
5727 ac_cv_path_EGREP="$ac_path_EGREP"
5728 ac_path_EGREP_max=$ac_count
5730 # 10*(2^10) chars as input seems more than enough
5731 test $ac_count -gt 10 && break
5733 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5736 $ac_path_EGREP_found && break 3
5741 if test -z "$ac_cv_path_EGREP"; then
5742 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5745 ac_cv_path_EGREP=$EGREP
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5751 $as_echo "$ac_cv_path_EGREP" >&6; }
5752 EGREP="$ac_cv_path_EGREP"
5755 # Extract the first word of "perl", so it can be a program name with args.
5756 set dummy perl; ac_word=$2
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5758 $as_echo_n "checking for $ac_word... " >&6; }
5759 if ${ac_cv_path_PERLPATH+:} false; then :
5760 $as_echo_n "(cached) " >&6
5764 ac_cv_path_PERLPATH="$PERLPATH" # Let the user override the test with a path.
5767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5771 test -z "$as_dir" && as_dir=.
5772 for ac_exec_ext in '' $ac_executable_extensions; do
5773 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5774 ac_cv_path_PERLPATH="$as_dir/$ac_word$ac_exec_ext"
5775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5782 test -z "$ac_cv_path_PERLPATH" && ac_cv_path_PERLPATH="/usr/bin/perl"
5786 PERLPATH=$ac_cv_path_PERLPATH
5787 if test -n "$PERLPATH"; then
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERLPATH" >&5
5789 $as_echo "$PERLPATH" >&6; }
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5792 $as_echo "no" >&6; }
5796 for ac_prog in byacc 'bison -y'
5798 # Extract the first word of "$ac_prog", so it can be a program name with args.
5799 set dummy $ac_prog; ac_word=$2
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5801 $as_echo_n "checking for $ac_word... " >&6; }
5802 if ${ac_cv_prog_YACC+:} false; then :
5803 $as_echo_n "(cached) " >&6
5805 if test -n "$YACC"; then
5806 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5812 test -z "$as_dir" && as_dir=.
5813 for ac_exec_ext in '' $ac_executable_extensions; do
5814 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5815 ac_cv_prog_YACC="$ac_prog"
5816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5825 YACC=$ac_cv_prog_YACC
5826 if test -n "$YACC"; then
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
5828 $as_echo "$YACC" >&6; }
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5831 $as_echo "no" >&6; }
5835 test -n "$YACC" && break
5837 test -n "$YACC" || YACC="yacc"
5840 # Extract the first word of "makeinfo", so it can be a program name with args.
5841 set dummy makeinfo; ac_word=$2
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5843 $as_echo_n "checking for $ac_word... " >&6; }
5844 if ${ac_cv_prog_MAKEINFO+:} false; then :
5845 $as_echo_n "(cached) " >&6
5847 if test -n "$MAKEINFO"; then
5848 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
5850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5854 test -z "$as_dir" && as_dir=.
5855 for ac_exec_ext in '' $ac_executable_extensions; do
5856 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5857 ac_cv_prog_MAKEINFO="makeinfo"
5858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5867 MAKEINFO=$ac_cv_prog_MAKEINFO
5868 if test -n "$MAKEINFO"; then
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
5870 $as_echo "$MAKEINFO" >&6; }
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5873 $as_echo "no" >&6; }
5877 if test -z "$MAKEINFO"; then
5878 missing="\`makeinfo' is missing."
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for makeinfo version" >&5
5881 $as_echo_n "checking for makeinfo version... " >&6; }
5882 # We need an additional level of quoting to make sed's regexps work.
5883 makeinfo_version=`$MAKEINFO --version 2>&1 \
5884 | sed -e 's/^.* \([^ ][^ ]*\)$/\1/' -e '1q'`
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $makeinfo_version" >&5
5886 $as_echo "$makeinfo_version" >&6; }
5887 # Consider only the first two numbers in version number string.
5888 makeinfo_version_major=`IFS=.; set x $makeinfo_version; echo 0${2}`
5889 makeinfo_version_minor=`IFS=.; set x $makeinfo_version; echo 0${3}`
5890 makeinfo_version_numeric=`
5891 expr ${makeinfo_version_major}000 \+ ${makeinfo_version_minor}`
5892 if test $makeinfo_version_numeric -lt 4008; then
5893 missing="\`makeinfo' is too old."
5897 if test -n "$missing"; then
5898 infofile=doc/groff.info
5899 test -f ${infofile} || infofile=${srcdir}/${infofile}
5900 if test ! -f ${infofile} \
5901 || test ${srcdir}/doc/groff.texinfo -nt ${infofile}; then
5902 as_fn_error $? "$missing
5903 Get the \`texinfo' package version 4.8 or newer." "$LINENO" 5
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $missing
5906 Get the \`texinfo' package version 4.8 or newer if you want to convert
5907 \`groff.texinfo' into a PDF or HTML document." >&5
5908 $as_echo "$as_me: WARNING: $missing
5909 Get the \`texinfo' package version 4.8 or newer if you want to convert
5910 \`groff.texinfo' into a PDF or HTML document." >&2;}
5914 if test -n "$ac_tool_prefix"; then
5915 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5916 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5918 $as_echo_n "checking for $ac_word... " >&6; }
5919 if ${ac_cv_prog_RANLIB+:} false; then :
5920 $as_echo_n "(cached) " >&6
5922 if test -n "$RANLIB"; then
5923 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5929 test -z "$as_dir" && as_dir=.
5930 for ac_exec_ext in '' $ac_executable_extensions; do
5931 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5932 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5942 RANLIB=$ac_cv_prog_RANLIB
5943 if test -n "$RANLIB"; then
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5945 $as_echo "$RANLIB" >&6; }
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5948 $as_echo "no" >&6; }
5953 if test -z "$ac_cv_prog_RANLIB"; then
5954 ac_ct_RANLIB=$RANLIB
5955 # Extract the first word of "ranlib", so it can be a program name with args.
5956 set dummy ranlib; ac_word=$2
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5958 $as_echo_n "checking for $ac_word... " >&6; }
5959 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5960 $as_echo_n "(cached) " >&6
5962 if test -n "$ac_ct_RANLIB"; then
5963 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5969 test -z "$as_dir" && as_dir=.
5970 for ac_exec_ext in '' $ac_executable_extensions; do
5971 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5972 ac_cv_prog_ac_ct_RANLIB="ranlib"
5973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5982 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5983 if test -n "$ac_ct_RANLIB"; then
5984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5985 $as_echo "$ac_ct_RANLIB" >&6; }
5987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5988 $as_echo "no" >&6; }
5991 if test "x$ac_ct_RANLIB" = x; then
5994 case $cross_compiling:$ac_tool_warned in
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5997 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5998 ac_tool_warned=yes ;;
6000 RANLIB=$ac_ct_RANLIB
6003 RANLIB="$ac_cv_prog_RANLIB"
6007 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
6008 if test -f "$ac_dir/install-sh"; then
6010 ac_install_sh="$ac_aux_dir/install-sh -c"
6012 elif test -f "$ac_dir/install.sh"; then
6014 ac_install_sh="$ac_aux_dir/install.sh -c"
6016 elif test -f "$ac_dir/shtool"; then
6018 ac_install_sh="$ac_aux_dir/shtool install -c"
6022 if test -z "$ac_aux_dir"; then
6023 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
6026 # These three variables are undocumented and unsupported,
6027 # and are intended to be withdrawn in a future Autoconf release.
6028 # They can cause serious problems if a builder's source tree is in a directory
6029 # whose full name contains unusual characters.
6030 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
6031 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
6032 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
6036 ac_dir=`cd $ac_aux_dir; pwd`
6037 ac_install_sh="$ac_dir/install-sh -c"
6038 for ac_prog in install-info
6040 # Extract the first word of "$ac_prog", so it can be a program name with args.
6041 set dummy $ac_prog; ac_word=$2
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6043 $as_echo_n "checking for $ac_word... " >&6; }
6044 if ${ac_cv_prog_INSTALL_INFO+:} false; then :
6045 $as_echo_n "(cached) " >&6
6047 if test -n "$INSTALL_INFO"; then
6048 ac_cv_prog_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test.
6050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6054 test -z "$as_dir" && as_dir=.
6055 for ac_exec_ext in '' $ac_executable_extensions; do
6056 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6057 ac_cv_prog_INSTALL_INFO="$ac_prog"
6058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6067 INSTALL_INFO=$ac_cv_prog_INSTALL_INFO
6068 if test -n "$INSTALL_INFO"; then
6069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6070 $as_echo "$INSTALL_INFO" >&6; }
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6073 $as_echo "no" >&6; }
6077 test -n "$INSTALL_INFO" && break
6079 test -n "$INSTALL_INFO" || INSTALL_INFO=":"
6081 # Find a good install program. We prefer a C program (faster),
6082 # so one script is as good as another. But avoid the broken or
6083 # incompatible versions:
6084 # SysV /etc/install, /usr/sbin/install
6085 # SunOS /usr/etc/install
6086 # IRIX /sbin/install
6088 # AmigaOS /C/install, which installs bootblocks on floppy discs
6089 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6090 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6091 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6092 # OS/2's system install, which has a completely different semantic
6093 # ./install, which can be erroneously created by make from ./install.sh.
6094 # Reject install programs that cannot install multiple files.
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
6096 $as_echo_n "checking for a BSD-compatible install... " >&6; }
6097 if test -z "$INSTALL"; then
6098 if ${ac_cv_path_install+:} false; then :
6099 $as_echo_n "(cached) " >&6
6101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6105 test -z "$as_dir" && as_dir=.
6106 # Account for people who put trailing slashes in PATH elements.
6107 case $as_dir/ in #((
6108 ./ | .// | /[cC]/* | \
6109 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6110 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
6113 # OSF1 and SCO ODT 3.0 have their own names for install.
6114 # Don't use installbsd from OSF since it installs stuff as root
6116 for ac_prog in ginstall scoinst install; do
6117 for ac_exec_ext in '' $ac_executable_extensions; do
6118 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6119 if test $ac_prog = install &&
6120 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6121 # AIX install. It has an incompatible calling convention.
6123 elif test $ac_prog = install &&
6124 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6125 # program-specific install script used by HP pwplus--don't use.
6128 rm -rf conftest.one conftest.two conftest.dir
6129 echo one > conftest.one
6130 echo two > conftest.two
6132 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
6133 test -s conftest.one && test -s conftest.two &&
6134 test -s conftest.dir/conftest.one &&
6135 test -s conftest.dir/conftest.two
6137 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6150 rm -rf conftest.one conftest.two conftest.dir
6153 if test "${ac_cv_path_install+set}" = set; then
6154 INSTALL=$ac_cv_path_install
6156 # As a last resort, use the slow shell script. Don't cache a
6157 # value for INSTALL within a source directory, because that will
6158 # break other packages using the cache if that directory is
6159 # removed, or if the value is a relative name.
6160 INSTALL=$ac_install_sh
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
6164 $as_echo "$INSTALL" >&6; }
6166 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6167 # It thinks the first close brace ends the variable substitution.
6168 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6170 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6172 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6175 $as_echo_n "checking whether ln -s works... " >&6; }
6177 if test "$LN_S" = "ln -s"; then
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6179 $as_echo "yes" >&6; }
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6182 $as_echo "no, using $LN_S" >&6; }
6186 # use a dummy substitution if no csh hack is necessary to avoid errors
6187 # with non-GNU sed programs
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csh hash hack" >&5
6189 $as_echo_n "checking for csh hash hack... " >&6; }
6191 cat <<EOF >conftest.sh
6194 export PATH || exit 0
6198 chmod +x conftest.sh
6199 if echo ./conftest.sh | (csh >/dev/null 2>&1) >/dev/null 2>&1; then
6200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6201 $as_echo "yes" >&6; }
6202 SH_SCRIPT_SED_CMD='1s/.*/:/'
6204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6205 $as_echo "no" >&6; }
6206 SH_SCRIPT_SED_CMD='1s/a/a/'
6211 # checks for headers
6212 for ac_header in stddef.h stdlib.h unistd.h dirent.h limits.h sys/dir.h \
6213 string.h strings.h math.h sys/time.h direct.h process.h
6215 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6216 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6217 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6218 cat >>confdefs.h <<_ACEOF
6219 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISC 3.x or 4.x" >&5
6227 $as_echo_n "checking for ISC 3.x or 4.x... " >&6; }
6228 if grep '[34]\.' /usr/options/cb.name >/dev/null 2>&1
6230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6231 $as_echo "yes" >&6; }
6233 $as_echo "#define _SYSV3 1" >>confdefs.h
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6237 $as_echo "no" >&6; }
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -D_POSIX_SOURCE is necessary" >&5
6240 $as_echo_n "checking whether -D_POSIX_SOURCE is necessary... " >&6; }
6242 ac_cpp='$CXXCPP $CPPFLAGS'
6243 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6244 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6245 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6248 /* end confdefs.h. */
6253 extern "C" { void fileno(int); }
6265 if ac_fn_cxx_try_compile "$LINENO"; then :
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6267 $as_echo "yes" >&6; }
6269 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6273 $as_echo "no" >&6; }
6275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6277 ac_cpp='$CPP $CPPFLAGS'
6278 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6279 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6280 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6283 # checks for header stuff
6285 ac_cpp='$CXXCPP $CPPFLAGS'
6286 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6287 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6288 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for return type of srand" >&5
6291 $as_echo_n "checking for return type of srand... " >&6; }
6292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6293 /* end confdefs.h. */
6298 extern "C" { void srand(unsigned int); }
6310 if ac_fn_cxx_try_compile "$LINENO"; then :
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: void" >&5
6312 $as_echo "void" >&6; }
6314 $as_echo "#define RET_TYPE_SRAND_IS_VOID 1" >>confdefs.h
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: int" >&5
6318 $as_echo "int" >&6; }
6320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6322 ac_cpp='$CPP $CPPFLAGS'
6323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday must be declared" >&5
6328 $as_echo_n "checking whether gettimeofday must be declared... " >&6; }
6330 ac_cpp='$CXXCPP $CPPFLAGS'
6331 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6332 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6333 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6335 if ${groff_cv_decl_needed_gettimeofday+:} false; then :
6336 $as_echo_n "(cached) " >&6
6338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6339 /* end confdefs.h. */
6344 #ifdef HAVE_STRING_H
6347 #ifdef HAVE_STRINGS_H
6348 #include <strings.h>
6350 #ifdef HAVE_STDLIB_H
6353 #ifdef HAVE_SYS_TIME_H
6354 #include <sys/time.h>
6356 #ifdef HAVE_UNISTD_H
6369 #ifndef gettimeofday
6370 char *p = (char *) gettimeofday;
6379 if ac_fn_cxx_try_compile "$LINENO"; then :
6380 groff_cv_decl_needed_gettimeofday=no
6382 groff_cv_decl_needed_gettimeofday=yes
6384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $groff_cv_decl_needed_gettimeofday" >&5
6388 $as_echo "$groff_cv_decl_needed_gettimeofday" >&6; }
6389 if test $groff_cv_decl_needed_gettimeofday = yes; then
6391 $as_echo "#define NEED_DECLARATION_GETTIMEOFDAY 1" >>confdefs.h
6395 ac_cpp='$CPP $CPPFLAGS'
6396 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6398 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether hypot must be declared" >&5
6401 $as_echo_n "checking whether hypot must be declared... " >&6; }
6403 ac_cpp='$CXXCPP $CPPFLAGS'
6404 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6405 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6406 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6408 if ${groff_cv_decl_needed_hypot+:} false; then :
6409 $as_echo_n "(cached) " >&6
6411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6412 /* end confdefs.h. */
6417 #ifdef HAVE_STRING_H
6420 #ifdef HAVE_STRINGS_H
6421 #include <strings.h>
6423 #ifdef HAVE_STDLIB_H
6426 #ifdef HAVE_SYS_TIME_H
6427 #include <sys/time.h>
6429 #ifdef HAVE_UNISTD_H
6443 char *p = (char *) hypot;
6452 if ac_fn_cxx_try_compile "$LINENO"; then :
6453 groff_cv_decl_needed_hypot=no
6455 groff_cv_decl_needed_hypot=yes
6457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $groff_cv_decl_needed_hypot" >&5
6461 $as_echo "$groff_cv_decl_needed_hypot" >&6; }
6462 if test $groff_cv_decl_needed_hypot = yes; then
6464 $as_echo "#define NEED_DECLARATION_HYPOT 1" >>confdefs.h
6468 ac_cpp='$CPP $CPPFLAGS'
6469 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6470 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6471 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether popen must be declared" >&5
6474 $as_echo_n "checking whether popen must be declared... " >&6; }
6476 ac_cpp='$CXXCPP $CPPFLAGS'
6477 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6478 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6479 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6481 if ${groff_cv_decl_needed_popen+:} false; then :
6482 $as_echo_n "(cached) " >&6
6484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6485 /* end confdefs.h. */
6490 #ifdef HAVE_STRING_H
6493 #ifdef HAVE_STRINGS_H
6494 #include <strings.h>
6496 #ifdef HAVE_STDLIB_H
6499 #ifdef HAVE_SYS_TIME_H
6500 #include <sys/time.h>
6502 #ifdef HAVE_UNISTD_H
6516 char *p = (char *) popen;
6525 if ac_fn_cxx_try_compile "$LINENO"; then :
6526 groff_cv_decl_needed_popen=no
6528 groff_cv_decl_needed_popen=yes
6530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $groff_cv_decl_needed_popen" >&5
6534 $as_echo "$groff_cv_decl_needed_popen" >&6; }
6535 if test $groff_cv_decl_needed_popen = yes; then
6537 $as_echo "#define NEED_DECLARATION_POPEN 1" >>confdefs.h
6541 ac_cpp='$CPP $CPPFLAGS'
6542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pclose must be declared" >&5
6547 $as_echo_n "checking whether pclose must be declared... " >&6; }
6549 ac_cpp='$CXXCPP $CPPFLAGS'
6550 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6551 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6552 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6554 if ${groff_cv_decl_needed_pclose+:} false; then :
6555 $as_echo_n "(cached) " >&6
6557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6558 /* end confdefs.h. */
6563 #ifdef HAVE_STRING_H
6566 #ifdef HAVE_STRINGS_H
6567 #include <strings.h>
6569 #ifdef HAVE_STDLIB_H
6572 #ifdef HAVE_SYS_TIME_H
6573 #include <sys/time.h>
6575 #ifdef HAVE_UNISTD_H
6589 char *p = (char *) pclose;
6598 if ac_fn_cxx_try_compile "$LINENO"; then :
6599 groff_cv_decl_needed_pclose=no
6601 groff_cv_decl_needed_pclose=yes
6603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $groff_cv_decl_needed_pclose" >&5
6607 $as_echo "$groff_cv_decl_needed_pclose" >&6; }
6608 if test $groff_cv_decl_needed_pclose = yes; then
6610 $as_echo "#define NEED_DECLARATION_PCLOSE 1" >>confdefs.h
6614 ac_cpp='$CPP $CPPFLAGS'
6615 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6616 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6617 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether putenv must be declared" >&5
6620 $as_echo_n "checking whether putenv must be declared... " >&6; }
6622 ac_cpp='$CXXCPP $CPPFLAGS'
6623 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6624 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6625 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6627 if ${groff_cv_decl_needed_putenv+:} false; then :
6628 $as_echo_n "(cached) " >&6
6630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6631 /* end confdefs.h. */
6636 #ifdef HAVE_STRING_H
6639 #ifdef HAVE_STRINGS_H
6640 #include <strings.h>
6642 #ifdef HAVE_STDLIB_H
6645 #ifdef HAVE_SYS_TIME_H
6646 #include <sys/time.h>
6648 #ifdef HAVE_UNISTD_H
6662 char *p = (char *) putenv;
6671 if ac_fn_cxx_try_compile "$LINENO"; then :
6672 groff_cv_decl_needed_putenv=no
6674 groff_cv_decl_needed_putenv=yes
6676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $groff_cv_decl_needed_putenv" >&5
6680 $as_echo "$groff_cv_decl_needed_putenv" >&6; }
6681 if test $groff_cv_decl_needed_putenv = yes; then
6683 $as_echo "#define NEED_DECLARATION_PUTENV 1" >>confdefs.h
6687 ac_cpp='$CPP $CPPFLAGS'
6688 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6689 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6690 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rand must be declared" >&5
6693 $as_echo_n "checking whether rand must be declared... " >&6; }
6695 ac_cpp='$CXXCPP $CPPFLAGS'
6696 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6697 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6698 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6700 if ${groff_cv_decl_needed_rand+:} false; then :
6701 $as_echo_n "(cached) " >&6
6703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6704 /* end confdefs.h. */
6709 #ifdef HAVE_STRING_H
6712 #ifdef HAVE_STRINGS_H
6713 #include <strings.h>
6715 #ifdef HAVE_STDLIB_H
6718 #ifdef HAVE_SYS_TIME_H
6719 #include <sys/time.h>
6721 #ifdef HAVE_UNISTD_H
6735 char *p = (char *) rand;
6744 if ac_fn_cxx_try_compile "$LINENO"; then :
6745 groff_cv_decl_needed_rand=no
6747 groff_cv_decl_needed_rand=yes
6749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $groff_cv_decl_needed_rand" >&5
6753 $as_echo "$groff_cv_decl_needed_rand" >&6; }
6754 if test $groff_cv_decl_needed_rand = yes; then
6756 $as_echo "#define NEED_DECLARATION_RAND 1" >>confdefs.h
6760 ac_cpp='$CPP $CPPFLAGS'
6761 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6762 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6763 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf must be declared" >&5
6766 $as_echo_n "checking whether snprintf must be declared... " >&6; }
6768 ac_cpp='$CXXCPP $CPPFLAGS'
6769 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6770 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6771 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6773 if ${groff_cv_decl_needed_snprintf+:} false; then :
6774 $as_echo_n "(cached) " >&6
6776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6777 /* end confdefs.h. */
6782 #ifdef HAVE_STRING_H
6785 #ifdef HAVE_STRINGS_H
6786 #include <strings.h>
6788 #ifdef HAVE_STDLIB_H
6791 #ifdef HAVE_SYS_TIME_H
6792 #include <sys/time.h>
6794 #ifdef HAVE_UNISTD_H
6808 char *p = (char *) snprintf;
6817 if ac_fn_cxx_try_compile "$LINENO"; then :
6818 groff_cv_decl_needed_snprintf=no
6820 groff_cv_decl_needed_snprintf=yes
6822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $groff_cv_decl_needed_snprintf" >&5
6826 $as_echo "$groff_cv_decl_needed_snprintf" >&6; }
6827 if test $groff_cv_decl_needed_snprintf = yes; then
6829 $as_echo "#define NEED_DECLARATION_SNPRINTF 1" >>confdefs.h
6833 ac_cpp='$CPP $CPPFLAGS'
6834 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6835 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6836 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether srand must be declared" >&5
6839 $as_echo_n "checking whether srand must be declared... " >&6; }
6841 ac_cpp='$CXXCPP $CPPFLAGS'
6842 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6843 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6844 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6846 if ${groff_cv_decl_needed_srand+:} false; then :
6847 $as_echo_n "(cached) " >&6
6849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6850 /* end confdefs.h. */
6855 #ifdef HAVE_STRING_H
6858 #ifdef HAVE_STRINGS_H
6859 #include <strings.h>
6861 #ifdef HAVE_STDLIB_H
6864 #ifdef HAVE_SYS_TIME_H
6865 #include <sys/time.h>
6867 #ifdef HAVE_UNISTD_H
6881 char *p = (char *) srand;
6890 if ac_fn_cxx_try_compile "$LINENO"; then :
6891 groff_cv_decl_needed_srand=no
6893 groff_cv_decl_needed_srand=yes
6895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $groff_cv_decl_needed_srand" >&5
6899 $as_echo "$groff_cv_decl_needed_srand" >&6; }
6900 if test $groff_cv_decl_needed_srand = yes; then
6902 $as_echo "#define NEED_DECLARATION_SRAND 1" >>confdefs.h
6906 ac_cpp='$CPP $CPPFLAGS'
6907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strcasecmp must be declared" >&5
6912 $as_echo_n "checking whether strcasecmp must be declared... " >&6; }
6914 ac_cpp='$CXXCPP $CPPFLAGS'
6915 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6916 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6917 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6919 if ${groff_cv_decl_needed_strcasecmp+:} false; then :
6920 $as_echo_n "(cached) " >&6
6922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6923 /* end confdefs.h. */
6928 #ifdef HAVE_STRING_H
6931 #ifdef HAVE_STRINGS_H
6932 #include <strings.h>
6934 #ifdef HAVE_STDLIB_H
6937 #ifdef HAVE_SYS_TIME_H
6938 #include <sys/time.h>
6940 #ifdef HAVE_UNISTD_H
6954 char *p = (char *) strcasecmp;
6963 if ac_fn_cxx_try_compile "$LINENO"; then :
6964 groff_cv_decl_needed_strcasecmp=no
6966 groff_cv_decl_needed_strcasecmp=yes
6968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $groff_cv_decl_needed_strcasecmp" >&5
6972 $as_echo "$groff_cv_decl_needed_strcasecmp" >&6; }
6973 if test $groff_cv_decl_needed_strcasecmp = yes; then
6975 $as_echo "#define NEED_DECLARATION_STRCASECMP 1" >>confdefs.h
6979 ac_cpp='$CPP $CPPFLAGS'
6980 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6981 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6982 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strncasecmp must be declared" >&5
6985 $as_echo_n "checking whether strncasecmp must be declared... " >&6; }
6987 ac_cpp='$CXXCPP $CPPFLAGS'
6988 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6989 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6990 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6992 if ${groff_cv_decl_needed_strncasecmp+:} false; then :
6993 $as_echo_n "(cached) " >&6
6995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6996 /* end confdefs.h. */
7001 #ifdef HAVE_STRING_H
7004 #ifdef HAVE_STRINGS_H
7005 #include <strings.h>
7007 #ifdef HAVE_STDLIB_H
7010 #ifdef HAVE_SYS_TIME_H
7011 #include <sys/time.h>
7013 #ifdef HAVE_UNISTD_H
7027 char *p = (char *) strncasecmp;
7036 if ac_fn_cxx_try_compile "$LINENO"; then :
7037 groff_cv_decl_needed_strncasecmp=no
7039 groff_cv_decl_needed_strncasecmp=yes
7041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $groff_cv_decl_needed_strncasecmp" >&5
7045 $as_echo "$groff_cv_decl_needed_strncasecmp" >&6; }
7046 if test $groff_cv_decl_needed_strncasecmp = yes; then
7048 $as_echo "#define NEED_DECLARATION_STRNCASECMP 1" >>confdefs.h
7052 ac_cpp='$CPP $CPPFLAGS'
7053 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7054 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7055 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfprintf must be declared" >&5
7058 $as_echo_n "checking whether vfprintf must be declared... " >&6; }
7060 ac_cpp='$CXXCPP $CPPFLAGS'
7061 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7062 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7063 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7065 if ${groff_cv_decl_needed_vfprintf+:} false; then :
7066 $as_echo_n "(cached) " >&6
7068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7069 /* end confdefs.h. */
7074 #ifdef HAVE_STRING_H
7077 #ifdef HAVE_STRINGS_H
7078 #include <strings.h>
7080 #ifdef HAVE_STDLIB_H
7083 #ifdef HAVE_SYS_TIME_H
7084 #include <sys/time.h>
7086 #ifdef HAVE_UNISTD_H
7100 char *p = (char *) vfprintf;
7109 if ac_fn_cxx_try_compile "$LINENO"; then :
7110 groff_cv_decl_needed_vfprintf=no
7112 groff_cv_decl_needed_vfprintf=yes
7114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $groff_cv_decl_needed_vfprintf" >&5
7118 $as_echo "$groff_cv_decl_needed_vfprintf" >&6; }
7119 if test $groff_cv_decl_needed_vfprintf = yes; then
7121 $as_echo "#define NEED_DECLARATION_VFPRINTF 1" >>confdefs.h
7125 ac_cpp='$CPP $CPPFLAGS'
7126 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7127 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7128 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf must be declared" >&5
7131 $as_echo_n "checking whether vsnprintf must be declared... " >&6; }
7133 ac_cpp='$CXXCPP $CPPFLAGS'
7134 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7135 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7136 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7138 if ${groff_cv_decl_needed_vsnprintf+:} false; then :
7139 $as_echo_n "(cached) " >&6
7141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7142 /* end confdefs.h. */
7147 #ifdef HAVE_STRING_H
7150 #ifdef HAVE_STRINGS_H
7151 #include <strings.h>
7153 #ifdef HAVE_STDLIB_H
7156 #ifdef HAVE_SYS_TIME_H
7157 #include <sys/time.h>
7159 #ifdef HAVE_UNISTD_H
7173 char *p = (char *) vsnprintf;
7182 if ac_fn_cxx_try_compile "$LINENO"; then :
7183 groff_cv_decl_needed_vsnprintf=no
7185 groff_cv_decl_needed_vsnprintf=yes
7187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $groff_cv_decl_needed_vsnprintf" >&5
7191 $as_echo "$groff_cv_decl_needed_vsnprintf" >&6; }
7192 if test $groff_cv_decl_needed_vsnprintf = yes; then
7194 $as_echo "#define NEED_DECLARATION_VSNPRINTF 1" >>confdefs.h
7198 ac_cpp='$CPP $CPPFLAGS'
7199 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7200 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7201 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7204 ac_cpp='$CXXCPP $CPPFLAGS'
7205 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7206 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7207 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys_nerr in <errno.h>, <stdio.h>, or <stdlib.h>" >&5
7210 $as_echo_n "checking for sys_nerr in <errno.h>, <stdio.h>, or <stdlib.h>... " >&6; }
7211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7212 /* end confdefs.h. */
7235 if ac_fn_cxx_try_compile "$LINENO"; then :
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7237 $as_echo "yes" >&6; }
7239 $as_echo "#define HAVE_SYS_NERR 1" >>confdefs.h
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7243 $as_echo "no" >&6; }
7245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7247 ac_cpp='$CPP $CPPFLAGS'
7248 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7249 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7250 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys_errlist in <errno.h>, <stdio.h>, or <stdlib.h>" >&5
7253 $as_echo_n "checking for sys_errlist in <errno.h>, <stdio.h>, or <stdlib.h>... " >&6; }
7254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7255 /* end confdefs.h. */
7270 k = (int)sys_errlist[0];
7278 if ac_fn_c_try_compile "$LINENO"; then :
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7280 $as_echo "yes" >&6; }
7282 $as_echo "#define HAVE_SYS_ERRLIST 1" >>confdefs.h
7285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7286 $as_echo "no" >&6; }
7288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7290 ac_cpp='$CXXCPP $CPPFLAGS'
7291 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7292 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7293 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking C++ <osfcn.h>" >&5
7296 $as_echo_n "checking C++ <osfcn.h>... " >&6; }
7297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7298 /* end confdefs.h. */
7319 if ac_fn_cxx_try_compile "$LINENO"; then :
7320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7321 $as_echo "yes" >&6; }
7323 $as_echo "#define HAVE_CC_OSFCN_H 1" >>confdefs.h
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7327 $as_echo "no" >&6; }
7329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7331 ac_cpp='$CPP $CPPFLAGS'
7332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7337 ac_cpp='$CXXCPP $CPPFLAGS'
7338 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7339 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7340 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking C++ <limits.h>" >&5
7343 $as_echo_n "checking C++ <limits.h>... " >&6; }
7344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7345 /* end confdefs.h. */
7367 if ac_fn_cxx_try_compile "$LINENO"; then :
7368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7369 $as_echo "yes" >&6; }
7371 $as_echo "#define HAVE_CC_LIMITS_H 1" >>confdefs.h
7374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7375 $as_echo "no" >&6; }
7377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7379 ac_cpp='$CPP $CPPFLAGS'
7380 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7381 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7382 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7385 ac_cpp='$CXXCPP $CPPFLAGS'
7386 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7387 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7388 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking C++ <inttypes.h>" >&5
7391 $as_echo_n "checking C++ <inttypes.h>... " >&6; }
7392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7393 /* end confdefs.h. */
7397 #include <sys/types.h>
7398 #include <inttypes.h>
7406 uintmax_t i = (uintmax_t)-1;
7414 if ac_fn_cxx_try_compile "$LINENO"; then :
7415 groff_cv_header_inttypes_h=yes
7417 $as_echo "#define HAVE_CC_INTTYPES_H 1" >>confdefs.h
7420 groff_cv_header_inttypes_h=no
7422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $groff_cv_header_inttypes_h" >&5
7424 $as_echo "$groff_cv_header_inttypes_h" >&6; }
7426 ac_cpp='$CPP $CPPFLAGS'
7427 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7428 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7429 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7432 # checks for typedefs
7434 ac_cpp='$CXXCPP $CPPFLAGS'
7435 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7436 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7437 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
7440 $as_echo_n "checking for unsigned long long... " >&6; }
7441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7442 /* end confdefs.h. */
7446 unsigned long long ull = 1;
7448 unsigned long long ullmax = (unsigned long long)-1;
7456 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
7464 if ac_fn_cxx_try_link "$LINENO"; then :
7465 groff_cv_type_unsigned_long_long=yes
7467 groff_cv_type_unsigned_long_long=no
7469 rm -f core conftest.err conftest.$ac_objext \
7470 conftest$ac_exeext conftest.$ac_ext
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $groff_cv_type_unsigned_long_long" >&5
7472 $as_echo "$groff_cv_type_unsigned_long_long" >&6; }
7474 ac_cpp='$CPP $CPPFLAGS'
7475 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7476 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7477 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7480 if test $groff_cv_header_inttypes_h = no; then
7482 test $groff_cv_type_unsigned_long_long = yes \
7483 && ac_type='unsigned long long' \
7484 || ac_type='unsigned long'
7486 cat >>confdefs.h <<_ACEOF
7487 #define uintmax_t $ac_type
7492 ac_cpp='$CXXCPP $CPPFLAGS'
7493 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7494 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7495 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for declaration of time_t" >&5
7498 $as_echo_n "checking for declaration of time_t... " >&6; }
7499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7500 /* end confdefs.h. */
7513 struct tm *p = localtime(&t);
7521 if ac_fn_cxx_try_compile "$LINENO"; then :
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7523 $as_echo "yes" >&6; }
7525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7526 $as_echo "no" >&6; }
7528 $as_echo "#define LONG_FOR_TIME_T 1" >>confdefs.h
7531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7533 ac_cpp='$CPP $CPPFLAGS'
7534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for return type of signal handlers" >&5
7539 $as_echo_n "checking for return type of signal handlers... " >&6; }
7540 for groff_declaration in \
7541 'extern "C" void (*signal (int, void (*)(int)))(int);' \
7542 'extern "C" void (*signal (int, void (*)(int)) throw ())(int);' \
7543 'void (*signal ()) ();'
7545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7546 /* end confdefs.h. */
7550 #include <sys/types.h>
7571 if ac_fn_c_try_compile "$LINENO"; then :
7576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7579 if test -n "$groff_declaration"; then
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: void" >&5
7581 $as_echo "void" >&6; }
7583 $as_echo "#define RETSIGTYPE void" >>confdefs.h
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: int" >&5
7587 $as_echo "int" >&6; }
7589 $as_echo "#define RETSIGTYPE int" >>confdefs.h
7592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking struct exception" >&5
7593 $as_echo_n "checking struct exception... " >&6; }
7594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7595 /* end confdefs.h. */
7615 if ac_fn_c_try_compile "$LINENO"; then :
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7617 $as_echo "yes" >&6; }
7619 $as_echo "#define HAVE_STRUCT_EXCEPTION 1" >>confdefs.h
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7623 $as_echo "no" >&6; }
7625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
7629 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
7630 if ${ac_cv_c_bigendian+:} false; then :
7631 $as_echo_n "(cached) " >&6
7633 ac_cv_c_bigendian=unknown
7634 # See if we're dealing with a universal compiler.
7635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7636 /* end confdefs.h. */
7637 #ifndef __APPLE_CC__
7638 not a universal capable compiler
7643 if ac_fn_c_try_compile "$LINENO"; then :
7645 # Check for potential -arch flags. It is not universal unless
7646 # there are at least two -arch flags with different values.
7649 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
7650 if test -n "$ac_prev"; then
7652 i?86 | x86_64 | ppc | ppc64)
7653 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
7656 ac_cv_c_bigendian=universal
7662 elif test "x$ac_word" = "x-arch"; then
7667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7668 if test $ac_cv_c_bigendian = unknown; then
7669 # See if sys/param.h defines the BYTE_ORDER macro.
7670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7671 /* end confdefs.h. */
7672 #include <sys/types.h>
7673 #include <sys/param.h>
7678 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
7679 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
7688 if ac_fn_c_try_compile "$LINENO"; then :
7689 # It does; now see whether it defined to BIG_ENDIAN or not.
7690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7691 /* end confdefs.h. */
7692 #include <sys/types.h>
7693 #include <sys/param.h>
7698 #if BYTE_ORDER != BIG_ENDIAN
7706 if ac_fn_c_try_compile "$LINENO"; then :
7707 ac_cv_c_bigendian=yes
7709 ac_cv_c_bigendian=no
7711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7715 if test $ac_cv_c_bigendian = unknown; then
7716 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
7717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7718 /* end confdefs.h. */
7724 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
7732 if ac_fn_c_try_compile "$LINENO"; then :
7733 # It does; now see whether it defined to _BIG_ENDIAN or not.
7734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7735 /* end confdefs.h. */
7749 if ac_fn_c_try_compile "$LINENO"; then :
7750 ac_cv_c_bigendian=yes
7752 ac_cv_c_bigendian=no
7754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7758 if test $ac_cv_c_bigendian = unknown; then
7759 # Compile a test program.
7760 if test "$cross_compiling" = yes; then :
7761 # Try to guess by grepping values from an object file.
7762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7763 /* end confdefs.h. */
7764 short int ascii_mm[] =
7765 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7766 short int ascii_ii[] =
7767 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7768 int use_ascii (int i) {
7769 return ascii_mm[i] + ascii_ii[i];
7771 short int ebcdic_ii[] =
7772 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7773 short int ebcdic_mm[] =
7774 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7775 int use_ebcdic (int i) {
7776 return ebcdic_mm[i] + ebcdic_ii[i];
7783 return use_ascii (foo) == use_ebcdic (foo);
7788 if ac_fn_c_try_compile "$LINENO"; then :
7789 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
7790 ac_cv_c_bigendian=yes
7792 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7793 if test "$ac_cv_c_bigendian" = unknown; then
7794 ac_cv_c_bigendian=no
7796 # finding both strings is unlikely to happen, but who knows?
7797 ac_cv_c_bigendian=unknown
7801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7804 /* end confdefs.h. */
7805 $ac_includes_default
7810 /* Are we little or big endian? From Harbison&Steele. */
7814 char c[sizeof (long int)];
7817 return u.c[sizeof (long int) - 1] == 1;
7823 if ac_fn_c_try_run "$LINENO"; then :
7824 ac_cv_c_bigendian=no
7826 ac_cv_c_bigendian=yes
7828 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7829 conftest.$ac_objext conftest.beam conftest.$ac_ext
7834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
7835 $as_echo "$ac_cv_c_bigendian" >&6; }
7836 case $ac_cv_c_bigendian in #(
7838 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
7844 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
7848 as_fn_error $? "unknown endianness
7849 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
7853 # checks for libraries
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lc" >&5
7855 $as_echo_n "checking for main in -lc... " >&6; }
7856 if ${ac_cv_lib_c_main+:} false; then :
7857 $as_echo_n "(cached) " >&6
7859 ac_check_lib_save_LIBS=$LIBS
7861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7862 /* end confdefs.h. */
7873 if ac_fn_c_try_link "$LINENO"; then :
7874 ac_cv_lib_c_main=yes
7878 rm -f core conftest.err conftest.$ac_objext \
7879 conftest$ac_exeext conftest.$ac_ext
7880 LIBS=$ac_check_lib_save_LIBS
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_main" >&5
7883 $as_echo "$ac_cv_lib_c_main" >&6; }
7884 if test "x$ac_cv_lib_c_main" = xyes; then :
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
7890 $as_echo_n "checking for sin in -lm... " >&6; }
7891 if ${ac_cv_lib_m_sin+:} false; then :
7892 $as_echo_n "(cached) " >&6
7894 ac_check_lib_save_LIBS=$LIBS
7896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7897 /* end confdefs.h. */
7899 /* Override any GCC internal prototype to avoid an error.
7900 Use char because int might match the return type of a GCC
7901 builtin and then its argument prototype would still apply. */
7914 if ac_fn_c_try_link "$LINENO"; then :
7919 rm -f core conftest.err conftest.$ac_objext \
7920 conftest$ac_exeext conftest.$ac_ext
7921 LIBS=$ac_check_lib_save_LIBS
7923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
7924 $as_echo "$ac_cv_lib_m_sin" >&6; }
7925 if test "x$ac_cv_lib_m_sin" = xyes; then :
7932 ac_cpp='$CXXCPP $CPPFLAGS'
7933 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7934 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7935 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7937 # Make sure we can run config.sub.
7938 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
7939 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
7942 $as_echo_n "checking build system type... " >&6; }
7943 if ${ac_cv_build+:} false; then :
7944 $as_echo_n "(cached) " >&6
7946 ac_build_alias=$build_alias
7947 test "x$ac_build_alias" = x &&
7948 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
7949 test "x$ac_build_alias" = x &&
7950 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
7951 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
7952 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
7956 $as_echo "$ac_cv_build" >&6; }
7957 case $ac_cv_build in
7959 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
7962 ac_save_IFS=$IFS; IFS='-'
7968 # Remember, the first character of IFS is used to create $*,
7969 # except with old shells:
7972 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
7976 $as_echo_n "checking host system type... " >&6; }
7977 if ${ac_cv_host+:} false; then :
7978 $as_echo_n "(cached) " >&6
7980 if test "x$host_alias" = x; then
7981 ac_cv_host=$ac_cv_build
7983 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
7984 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
7988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
7989 $as_echo "$ac_cv_host" >&6; }
7992 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
7995 ac_save_IFS=$IFS; IFS='-'
8001 # Remember, the first character of IFS is used to create $*,
8002 # except with old shells:
8005 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
8009 if test "X$prefix" = "XNONE"; then
8010 acl_final_prefix="$ac_default_prefix"
8012 acl_final_prefix="$prefix"
8014 if test "X$exec_prefix" = "XNONE"; then
8015 acl_final_exec_prefix='${prefix}'
8017 acl_final_exec_prefix="$exec_prefix"
8019 acl_save_prefix="$prefix"
8020 prefix="$acl_final_prefix"
8021 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8022 prefix="$acl_save_prefix"
8025 # Check whether --with-gnu-ld was given.
8026 if test "${with_gnu_ld+set}" = set; then :
8027 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8032 # Prepare PATH_SEPARATOR.
8033 # The user is always right.
8034 if test "${PATH_SEPARATOR+set}" != set; then
8035 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
8036 # contains only /bin. Note that ksh looks also at the FPATH variable,
8037 # so we have to set that as well for the test.
8039 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8040 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8041 || PATH_SEPARATOR=';'
8045 if test "$GCC" = yes; then
8046 # Check if gcc -print-prog-name=ld gives a path.
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
8048 $as_echo_n "checking for ld used by GCC... " >&6; }
8051 # gcc leaves a trailing carriage return which upsets mingw
8052 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8054 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8057 # Accept absolute paths.
8058 [\\/]* | [A-Za-z]:[\\/]*)
8059 re_direlt='/[^/][^/]*/\.\./'
8060 # Canonicalize the path of ld
8061 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
8062 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8063 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
8065 test -z "$LD" && LD="$ac_prog"
8068 # If it fails, then pretend we aren't using GCC.
8072 # If it is relative, then search for the first ld in PATH.
8076 elif test "$with_gnu_ld" = yes; then
8077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8078 $as_echo_n "checking for GNU ld... " >&6; }
8080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8081 $as_echo_n "checking for non-GNU ld... " >&6; }
8083 if ${acl_cv_path_LD+:} false; then :
8084 $as_echo_n "(cached) " >&6
8086 if test -z "$LD"; then
8087 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8088 for ac_dir in $PATH; do
8089 test -z "$ac_dir" && ac_dir=.
8090 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8091 acl_cv_path_LD="$ac_dir/$ac_prog"
8092 # Check to see if the program is GNU ld. I'd rather use --version,
8093 # but apparently some GNU ld's only accept -v.
8094 # Break only if it was the GNU/non-GNU ld that we prefer.
8095 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
8096 *GNU* | *'with BFD'*)
8097 test "$with_gnu_ld" != no && break ;;
8099 test "$with_gnu_ld" != yes && break ;;
8105 acl_cv_path_LD="$LD" # Let the user override the test with a path.
8109 LD="$acl_cv_path_LD"
8110 if test -n "$LD"; then
8111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8112 $as_echo "$LD" >&6; }
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8115 $as_echo "no" >&6; }
8117 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
8118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8119 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8120 if ${acl_cv_prog_gnu_ld+:} false; then :
8121 $as_echo_n "(cached) " >&6
8123 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8124 case `$LD -v 2>&1 </dev/null` in
8125 *GNU* | *'with BFD'*)
8126 acl_cv_prog_gnu_ld=yes ;;
8128 acl_cv_prog_gnu_ld=no ;;
8131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
8132 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
8133 with_gnu_ld=$acl_cv_prog_gnu_ld
8138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
8139 $as_echo_n "checking for shared library run path origin... " >&6; }
8140 if ${acl_cv_rpath+:} false; then :
8141 $as_echo_n "(cached) " >&6
8144 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
8145 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
8152 $as_echo "$acl_cv_rpath" >&6; }
8154 acl_libext="$acl_cv_libext"
8155 acl_shlibext="$acl_cv_shlibext"
8156 acl_libname_spec="$acl_cv_libname_spec"
8157 acl_library_names_spec="$acl_cv_library_names_spec"
8158 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
8159 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
8160 acl_hardcode_direct="$acl_cv_hardcode_direct"
8161 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
8162 # Check whether --enable-rpath was given.
8163 if test "${enable_rpath+set}" = set; then :
8164 enableval=$enable_rpath; :
8171 ac_cpp='$CXXCPP $CPPFLAGS'
8172 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8173 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8174 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8176 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8177 if test -z "$CXXCPP"; then
8178 if ${ac_cv_prog_CXXCPP+:} false; then :
8179 $as_echo_n "(cached) " >&6
8181 # Double quotes because CXXCPP needs to be expanded
8182 for CXXCPP in "$CXX -E" "/lib/cpp"
8185 for ac_cxx_preproc_warn_flag in '' yes
8187 # Use a header file that comes with gcc, so configuring glibc
8188 # with a fresh cross-compiler works.
8189 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8190 # <limits.h> exists even on freestanding compilers.
8191 # On the NeXT, cc -E runs the code through the compiler's parser,
8192 # not just through cpp. "Syntax error" is here to catch this case.
8193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8194 /* end confdefs.h. */
8196 # include <limits.h>
8198 # include <assert.h>
8202 if ac_fn_cxx_try_cpp "$LINENO"; then :
8205 # Broken: fails on valid input.
8208 rm -f conftest.err conftest.i conftest.$ac_ext
8210 # OK, works on sane cases. Now check whether nonexistent headers
8211 # can be detected and how.
8212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8213 /* end confdefs.h. */
8214 #include <ac_nonexistent.h>
8216 if ac_fn_cxx_try_cpp "$LINENO"; then :
8217 # Broken: success on invalid input.
8220 # Passes both tests.
8224 rm -f conftest.err conftest.i conftest.$ac_ext
8227 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8228 rm -f conftest.i conftest.err conftest.$ac_ext
8229 if $ac_preproc_ok; then :
8234 ac_cv_prog_CXXCPP=$CXXCPP
8237 CXXCPP=$ac_cv_prog_CXXCPP
8239 ac_cv_prog_CXXCPP=$CXXCPP
8241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8242 $as_echo "$CXXCPP" >&6; }
8244 for ac_cxx_preproc_warn_flag in '' yes
8246 # Use a header file that comes with gcc, so configuring glibc
8247 # with a fresh cross-compiler works.
8248 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8249 # <limits.h> exists even on freestanding compilers.
8250 # On the NeXT, cc -E runs the code through the compiler's parser,
8251 # not just through cpp. "Syntax error" is here to catch this case.
8252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8253 /* end confdefs.h. */
8255 # include <limits.h>
8257 # include <assert.h>
8261 if ac_fn_cxx_try_cpp "$LINENO"; then :
8264 # Broken: fails on valid input.
8267 rm -f conftest.err conftest.i conftest.$ac_ext
8269 # OK, works on sane cases. Now check whether nonexistent headers
8270 # can be detected and how.
8271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8272 /* end confdefs.h. */
8273 #include <ac_nonexistent.h>
8275 if ac_fn_cxx_try_cpp "$LINENO"; then :
8276 # Broken: success on invalid input.
8279 # Passes both tests.
8283 rm -f conftest.err conftest.i conftest.$ac_ext
8286 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8287 rm -f conftest.i conftest.err conftest.$ac_ext
8288 if $ac_preproc_ok; then :
8291 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8292 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8293 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
8294 See \`config.log' for more details" "$LINENO" 5; }
8298 ac_cpp='$CXXCPP $CPPFLAGS'
8299 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8300 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8301 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
8311 $as_echo_n "checking for 64-bit host... " >&6; }
8312 if ${gl_cv_solaris_64bit+:} false; then :
8313 $as_echo_n "(cached) " >&6
8315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8316 /* end confdefs.h. */
8323 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8324 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
8325 gl_cv_solaris_64bit=yes
8327 gl_cv_solaris_64bit=no
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
8334 $as_echo "$gl_cv_solaris_64bit" >&6; }
8335 if test $gl_cv_solaris_64bit = yes; then
8336 acl_libdirstem=lib/64
8338 sparc*) acl_libdirstem2=lib/sparcv9 ;;
8339 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
8344 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
8345 if test -n "$searchpath"; then
8346 acl_save_IFS="${IFS= }"; IFS=":"
8347 for searchdir in $searchpath; do
8348 if test -d "$searchdir"; then
8349 case "$searchdir" in
8350 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
8352 # Better ignore directories of this form. They are misleading.
8354 *) searchdir=`cd "$searchdir" && pwd`
8355 case "$searchdir" in
8356 */lib64 ) acl_libdirstem=lib64 ;;
8365 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
8380 acl_save_prefix="$prefix"
8381 prefix="$acl_final_prefix"
8382 acl_save_exec_prefix="$exec_prefix"
8383 exec_prefix="$acl_final_exec_prefix"
8385 eval additional_includedir=\"$includedir\"
8386 eval additional_libdir=\"$libdir\"
8388 exec_prefix="$acl_save_exec_prefix"
8389 prefix="$acl_save_prefix"
8392 # Check whether --with-libiconv-prefix was given.
8393 if test "${with_libiconv_prefix+set}" = set; then :
8394 withval=$with_libiconv_prefix;
8395 if test "X$withval" = "Xno"; then
8398 if test "X$withval" = "X"; then
8400 acl_save_prefix="$prefix"
8401 prefix="$acl_final_prefix"
8402 acl_save_exec_prefix="$exec_prefix"
8403 exec_prefix="$acl_final_exec_prefix"
8405 eval additional_includedir=\"$includedir\"
8406 eval additional_libdir=\"$libdir\"
8408 exec_prefix="$acl_save_exec_prefix"
8409 prefix="$acl_save_prefix"
8412 additional_includedir="$withval/include"
8413 additional_libdir="$withval/$acl_libdirstem"
8414 if test "$acl_libdirstem2" != "$acl_libdirstem" \
8415 && ! test -d "$withval/$acl_libdirstem"; then
8416 additional_libdir="$withval/$acl_libdirstem2"
8430 names_already_handled=
8431 names_next_round='iconv '
8432 while test -n "$names_next_round"; do
8433 names_this_round="$names_next_round"
8435 for name in $names_this_round; do
8437 for n in $names_already_handled; do
8438 if test "$n" = "$name"; then
8443 if test -z "$already_handled"; then
8444 names_already_handled="$names_already_handled $name"
8445 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8446 eval value=\"\$HAVE_LIB$uppername\"
8447 if test -n "$value"; then
8448 if test "$value" = yes; then
8449 eval value=\"\$LIB$uppername\"
8450 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8451 eval value=\"\$LTLIB$uppername\"
8452 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8461 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
8462 if test -n "$acl_shlibext"; then
8463 shrext=".$acl_shlibext" # typically: shrext=.so
8467 if test $use_additional = yes; then
8468 dir="$additional_libdir"
8469 if test -n "$acl_shlibext"; then
8470 if test -f "$dir/$libname$shrext"; then
8472 found_so="$dir/$libname$shrext"
8474 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8475 ver=`(cd "$dir" && \
8476 for f in "$libname$shrext".*; do echo "$f"; done \
8477 | sed -e "s,^$libname$shrext\\\\.,," \
8478 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8479 | sed 1q ) 2>/dev/null`
8480 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8482 found_so="$dir/$libname$shrext.$ver"
8485 eval library_names=\"$acl_library_names_spec\"
8486 for f in $library_names; do
8487 if test -f "$dir/$f"; then
8496 if test "X$found_dir" = "X"; then
8497 if test -f "$dir/$libname.$acl_libext"; then
8499 found_a="$dir/$libname.$acl_libext"
8502 if test "X$found_dir" != "X"; then
8503 if test -f "$dir/$libname.la"; then
8504 found_la="$dir/$libname.la"
8508 if test "X$found_dir" = "X"; then
8509 for x in $LDFLAGS $LTLIBICONV; do
8511 acl_save_prefix="$prefix"
8512 prefix="$acl_final_prefix"
8513 acl_save_exec_prefix="$exec_prefix"
8514 exec_prefix="$acl_final_exec_prefix"
8516 exec_prefix="$acl_save_exec_prefix"
8517 prefix="$acl_save_prefix"
8521 dir=`echo "X$x" | sed -e 's/^X-L//'`
8522 if test -n "$acl_shlibext"; then
8523 if test -f "$dir/$libname$shrext"; then
8525 found_so="$dir/$libname$shrext"
8527 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8528 ver=`(cd "$dir" && \
8529 for f in "$libname$shrext".*; do echo "$f"; done \
8530 | sed -e "s,^$libname$shrext\\\\.,," \
8531 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8532 | sed 1q ) 2>/dev/null`
8533 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8535 found_so="$dir/$libname$shrext.$ver"
8538 eval library_names=\"$acl_library_names_spec\"
8539 for f in $library_names; do
8540 if test -f "$dir/$f"; then
8549 if test "X$found_dir" = "X"; then
8550 if test -f "$dir/$libname.$acl_libext"; then
8552 found_a="$dir/$libname.$acl_libext"
8555 if test "X$found_dir" != "X"; then
8556 if test -f "$dir/$libname.la"; then
8557 found_la="$dir/$libname.la"
8562 if test "X$found_dir" != "X"; then
8567 if test "X$found_dir" != "X"; then
8568 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8569 if test "X$found_so" != "X"; then
8570 if test "$enable_rpath" = no \
8571 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
8572 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
8573 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8576 for x in $ltrpathdirs; do
8577 if test "X$x" = "X$found_dir"; then
8582 if test -z "$haveit"; then
8583 ltrpathdirs="$ltrpathdirs $found_dir"
8585 if test "$acl_hardcode_direct" = yes; then
8586 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8588 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
8589 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8591 for x in $rpathdirs; do
8592 if test "X$x" = "X$found_dir"; then
8597 if test -z "$haveit"; then
8598 rpathdirs="$rpathdirs $found_dir"
8602 for x in $LDFLAGS $LIBICONV; do
8604 acl_save_prefix="$prefix"
8605 prefix="$acl_final_prefix"
8606 acl_save_exec_prefix="$exec_prefix"
8607 exec_prefix="$acl_final_exec_prefix"
8609 exec_prefix="$acl_save_exec_prefix"
8610 prefix="$acl_save_prefix"
8612 if test "X$x" = "X-L$found_dir"; then
8617 if test -z "$haveit"; then
8618 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8620 if test "$acl_hardcode_minus_L" != no; then
8621 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8623 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8629 if test "X$found_a" != "X"; then
8630 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8632 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8635 additional_includedir=
8636 case "$found_dir" in
8637 */$acl_libdirstem | */$acl_libdirstem/)
8638 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
8639 if test "$name" = 'iconv'; then
8640 LIBICONV_PREFIX="$basedir"
8642 additional_includedir="$basedir/include"
8644 */$acl_libdirstem2 | */$acl_libdirstem2/)
8645 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
8646 if test "$name" = 'iconv'; then
8647 LIBICONV_PREFIX="$basedir"
8649 additional_includedir="$basedir/include"
8652 if test "X$additional_includedir" != "X"; then
8653 if test "X$additional_includedir" != "X/usr/include"; then
8655 if test "X$additional_includedir" = "X/usr/local/include"; then
8656 if test -n "$GCC"; then
8658 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8662 if test -z "$haveit"; then
8663 for x in $CPPFLAGS $INCICONV; do
8665 acl_save_prefix="$prefix"
8666 prefix="$acl_final_prefix"
8667 acl_save_exec_prefix="$exec_prefix"
8668 exec_prefix="$acl_final_exec_prefix"
8670 exec_prefix="$acl_save_exec_prefix"
8671 prefix="$acl_save_prefix"
8673 if test "X$x" = "X-I$additional_includedir"; then
8678 if test -z "$haveit"; then
8679 if test -d "$additional_includedir"; then
8680 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8686 if test -n "$found_la"; then
8687 save_libdir="$libdir"
8689 */* | *\\*) . "$found_la" ;;
8690 *) . "./$found_la" ;;
8692 libdir="$save_libdir"
8693 for dep in $dependency_libs; do
8696 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8697 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
8698 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
8700 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
8701 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
8702 if test -n "$GCC"; then
8704 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8708 if test -z "$haveit"; then
8710 for x in $LDFLAGS $LIBICONV; do
8712 acl_save_prefix="$prefix"
8713 prefix="$acl_final_prefix"
8714 acl_save_exec_prefix="$exec_prefix"
8715 exec_prefix="$acl_final_exec_prefix"
8717 exec_prefix="$acl_save_exec_prefix"
8718 prefix="$acl_save_prefix"
8720 if test "X$x" = "X-L$additional_libdir"; then
8725 if test -z "$haveit"; then
8726 if test -d "$additional_libdir"; then
8727 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8731 for x in $LDFLAGS $LTLIBICONV; do
8733 acl_save_prefix="$prefix"
8734 prefix="$acl_final_prefix"
8735 acl_save_exec_prefix="$exec_prefix"
8736 exec_prefix="$acl_final_exec_prefix"
8738 exec_prefix="$acl_save_exec_prefix"
8739 prefix="$acl_save_prefix"
8741 if test "X$x" = "X-L$additional_libdir"; then
8746 if test -z "$haveit"; then
8747 if test -d "$additional_libdir"; then
8748 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8755 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8756 if test "$enable_rpath" != no; then
8758 for x in $rpathdirs; do
8759 if test "X$x" = "X$dir"; then
8764 if test -z "$haveit"; then
8765 rpathdirs="$rpathdirs $dir"
8768 for x in $ltrpathdirs; do
8769 if test "X$x" = "X$dir"; then
8774 if test -z "$haveit"; then
8775 ltrpathdirs="$ltrpathdirs $dir"
8780 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8783 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8786 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8787 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8793 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8794 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8800 if test "X$rpathdirs" != "X"; then
8801 if test -n "$acl_hardcode_libdir_separator"; then
8803 for found_dir in $rpathdirs; do
8804 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
8806 acl_save_libdir="$libdir"
8808 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8809 libdir="$acl_save_libdir"
8810 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8812 for found_dir in $rpathdirs; do
8813 acl_save_libdir="$libdir"
8815 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8816 libdir="$acl_save_libdir"
8817 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8821 if test "X$ltrpathdirs" != "X"; then
8822 for found_dir in $ltrpathdirs; do
8823 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8838 am_save_CPPFLAGS="$CPPFLAGS"
8840 for element in $INCICONV; do
8842 for x in $CPPFLAGS; do
8844 acl_save_prefix="$prefix"
8845 prefix="$acl_final_prefix"
8846 acl_save_exec_prefix="$exec_prefix"
8847 exec_prefix="$acl_final_exec_prefix"
8849 exec_prefix="$acl_save_exec_prefix"
8850 prefix="$acl_save_prefix"
8852 if test "X$x" = "X$element"; then
8857 if test -z "$haveit"; then
8858 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
8864 $as_echo_n "checking for iconv... " >&6; }
8865 if ${am_cv_func_iconv+:} false; then :
8866 $as_echo_n "(cached) " >&6
8869 am_cv_func_iconv="no, consider installing GNU libiconv"
8871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8872 /* end confdefs.h. */
8880 iconv_t cd = iconv_open("","");
8881 iconv(cd,NULL,NULL,NULL,NULL);
8887 if ac_fn_cxx_try_link "$LINENO"; then :
8888 am_cv_func_iconv=yes
8890 rm -f core conftest.err conftest.$ac_objext \
8891 conftest$ac_exeext conftest.$ac_ext
8892 if test "$am_cv_func_iconv" != yes; then
8893 am_save_LIBS="$LIBS"
8894 LIBS="$LIBS $LIBICONV"
8895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8896 /* end confdefs.h. */
8904 iconv_t cd = iconv_open("","");
8905 iconv(cd,NULL,NULL,NULL,NULL);
8911 if ac_fn_cxx_try_link "$LINENO"; then :
8913 am_cv_func_iconv=yes
8915 rm -f core conftest.err conftest.$ac_objext \
8916 conftest$ac_exeext conftest.$ac_ext
8917 LIBS="$am_save_LIBS"
8921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
8922 $as_echo "$am_cv_func_iconv" >&6; }
8923 if test "$am_cv_func_iconv" = yes; then
8924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
8925 $as_echo_n "checking for working iconv... " >&6; }
8926 if ${am_cv_func_iconv_works+:} false; then :
8927 $as_echo_n "(cached) " >&6
8930 am_save_LIBS="$LIBS"
8931 if test $am_cv_lib_iconv = yes; then
8932 LIBS="$LIBS $LIBICONV"
8934 if test "$cross_compiling" = yes; then :
8937 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
8938 *) am_cv_func_iconv_works="guessing yes" ;;
8942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8943 /* end confdefs.h. */
8950 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
8953 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
8954 if (cd_utf8_to_88591 != (iconv_t)(-1))
8956 static const char input[] = "\342\202\254"; /* EURO SIGN */
8958 const char *inptr = input;
8959 size_t inbytesleft = strlen (input);
8961 size_t outbytesleft = sizeof (buf);
8962 size_t res = iconv (cd_utf8_to_88591,
8963 (char **) &inptr, &inbytesleft,
8964 &outptr, &outbytesleft);
8967 iconv_close (cd_utf8_to_88591);
8970 /* Test against Solaris 10 bug: Failures are not distinguishable from
8971 successful returns. */
8973 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
8974 if (cd_ascii_to_88591 != (iconv_t)(-1))
8976 static const char input[] = "\263";
8978 const char *inptr = input;
8979 size_t inbytesleft = strlen (input);
8981 size_t outbytesleft = sizeof (buf);
8982 size_t res = iconv (cd_ascii_to_88591,
8983 (char **) &inptr, &inbytesleft,
8984 &outptr, &outbytesleft);
8987 iconv_close (cd_ascii_to_88591);
8990 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
8992 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
8993 if (cd_88591_to_utf8 != (iconv_t)(-1))
8995 static const char input[] = "\304";
8996 static char buf[2] = { (char)0xDE, (char)0xAD };
8997 const char *inptr = input;
8998 size_t inbytesleft = 1;
9000 size_t outbytesleft = 1;
9001 size_t res = iconv (cd_88591_to_utf8,
9002 (char **) &inptr, &inbytesleft,
9003 &outptr, &outbytesleft);
9004 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
9006 iconv_close (cd_88591_to_utf8);
9009 #if 0 /* This bug could be worked around by the caller. */
9010 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
9012 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
9013 if (cd_88591_to_utf8 != (iconv_t)(-1))
9015 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
9017 const char *inptr = input;
9018 size_t inbytesleft = strlen (input);
9020 size_t outbytesleft = sizeof (buf);
9021 size_t res = iconv (cd_88591_to_utf8,
9022 (char **) &inptr, &inbytesleft,
9023 &outptr, &outbytesleft);
9026 iconv_close (cd_88591_to_utf8);
9030 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
9032 if (/* Try standardized names. */
9033 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
9034 /* Try IRIX, OSF/1 names. */
9035 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
9036 /* Try AIX names. */
9037 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
9038 /* Try HP-UX names. */
9039 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
9044 if ac_fn_cxx_try_run "$LINENO"; then :
9045 am_cv_func_iconv_works=yes
9047 am_cv_func_iconv_works=no
9049 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9050 conftest.$ac_objext conftest.beam conftest.$ac_ext
9053 LIBS="$am_save_LIBS"
9056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
9057 $as_echo "$am_cv_func_iconv_works" >&6; }
9058 case "$am_cv_func_iconv_works" in
9059 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
9060 *) am_func_iconv=yes ;;
9063 am_func_iconv=no am_cv_lib_iconv=no
9065 if test "$am_func_iconv" = yes; then
9067 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
9070 if test "$am_cv_lib_iconv" = yes; then
9071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
9072 $as_echo_n "checking how to link with libiconv... " >&6; }
9073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
9074 $as_echo "$LIBICONV" >&6; }
9076 CPPFLAGS="$am_save_CPPFLAGS"
9083 if test "$am_cv_func_iconv" = yes; then
9084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
9085 $as_echo_n "checking for iconv declaration... " >&6; }
9086 if ${am_cv_proto_iconv+:} false; then :
9087 $as_echo_n "(cached) " >&6
9090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9091 /* end confdefs.h. */
9099 #if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
9100 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9113 if ac_fn_cxx_try_compile "$LINENO"; then :
9114 am_cv_proto_iconv_arg1=""
9116 am_cv_proto_iconv_arg1="const"
9118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9119 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);"
9122 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9123 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
9124 $am_cv_proto_iconv" >&5
9126 $am_cv_proto_iconv" >&6; }
9128 cat >>confdefs.h <<_ACEOF
9129 #define ICONV_CONST $am_cv_proto_iconv_arg1
9136 ac_cpp='$CPP $CPPFLAGS'
9137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9146 # checks for functions
9150 for ac_header in $ac_header_list
9152 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9153 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9155 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9156 cat >>confdefs.h <<_ACEOF
9157 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9171 for ac_func in getpagesize
9173 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
9174 if test "x$ac_cv_func_getpagesize" = xyes; then :
9175 cat >>confdefs.h <<_ACEOF
9176 #define HAVE_GETPAGESIZE 1
9182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
9183 $as_echo_n "checking for working mmap... " >&6; }
9184 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
9185 $as_echo_n "(cached) " >&6
9187 if test "$cross_compiling" = yes; then :
9188 ac_cv_func_mmap_fixed_mapped=no
9190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9191 /* end confdefs.h. */
9192 $ac_includes_default
9193 /* malloc might have been renamed as rpl_malloc. */
9196 /* Thanks to Mike Haertel and Jim Avera for this test.
9197 Here is a matrix of mmap possibilities:
9198 mmap private not fixed
9199 mmap private fixed at somewhere currently unmapped
9200 mmap private fixed at somewhere already mapped
9201 mmap shared not fixed
9202 mmap shared fixed at somewhere currently unmapped
9203 mmap shared fixed at somewhere already mapped
9204 For private mappings, we should verify that changes cannot be read()
9205 back from the file, nor mmap's back from the file at a different
9206 address. (There have been systems where private was not correctly
9207 implemented like the infamous i386 svr4.0, and systems where the
9208 VM page cache was not coherent with the file system buffer cache
9209 like early versions of FreeBSD and possibly contemporary NetBSD.)
9210 For shared mappings, we should conversely verify that changes get
9211 propagated back to all the places they're supposed to be.
9213 Grep wants private fixed already mapped.
9214 The main things grep needs to know about mmap are:
9215 * does it exist and is it safe to write into the mmap'd area
9216 * how to use it (BSD variants) */
9219 #include <sys/mman.h>
9221 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9225 /* This mess was copied from the GNU getpagesize.h. */
9226 #ifndef HAVE_GETPAGESIZE
9227 # ifdef _SC_PAGESIZE
9228 # define getpagesize() sysconf(_SC_PAGESIZE)
9229 # else /* no _SC_PAGESIZE */
9230 # ifdef HAVE_SYS_PARAM_H
9231 # include <sys/param.h>
9232 # ifdef EXEC_PAGESIZE
9233 # define getpagesize() EXEC_PAGESIZE
9234 # else /* no EXEC_PAGESIZE */
9236 # define getpagesize() NBPG * CLSIZE
9239 # endif /* no CLSIZE */
9240 # else /* no NBPG */
9242 # define getpagesize() NBPC
9243 # else /* no NBPC */
9245 # define getpagesize() PAGESIZE
9246 # endif /* PAGESIZE */
9247 # endif /* no NBPC */
9248 # endif /* no NBPG */
9249 # endif /* no EXEC_PAGESIZE */
9250 # else /* no HAVE_SYS_PARAM_H */
9251 # define getpagesize() 8192 /* punt totally */
9252 # endif /* no HAVE_SYS_PARAM_H */
9253 # endif /* no _SC_PAGESIZE */
9255 #endif /* no HAVE_GETPAGESIZE */
9260 char *data, *data2, *data3;
9265 pagesize = getpagesize ();
9267 /* First, make a file with some known garbage in it. */
9268 data = (char *) malloc (pagesize);
9271 for (i = 0; i < pagesize; ++i)
9272 *(data + i) = rand ();
9274 fd = creat ("conftest.mmap", 0600);
9277 if (write (fd, data, pagesize) != pagesize)
9281 /* Next, check that the tail of a page is zero-filled. File must have
9282 non-zero length, otherwise we risk SIGBUS for entire page. */
9283 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
9287 if (write (fd2, cdata2, 1) != 1)
9289 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
9290 if (data2 == MAP_FAILED)
9292 for (i = 0; i < pagesize; ++i)
9296 if (munmap (data2, pagesize))
9299 /* Next, try to mmap the file at a fixed address which already has
9300 something else allocated at it. If we can, also make sure that
9301 we see the same garbage. */
9302 fd = open ("conftest.mmap", O_RDWR);
9305 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9306 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9308 for (i = 0; i < pagesize; ++i)
9309 if (*(data + i) != *(data2 + i))
9312 /* Finally, make sure that changes to the mapped area do not
9313 percolate back to the file as seen by read(). (This is a bug on
9314 some variants of i386 svr4.0.) */
9315 for (i = 0; i < pagesize; ++i)
9316 *(data2 + i) = *(data2 + i) + 1;
9317 data3 = (char *) malloc (pagesize);
9320 if (read (fd, data3, pagesize) != pagesize)
9322 for (i = 0; i < pagesize; ++i)
9323 if (*(data + i) != *(data3 + i))
9329 if ac_fn_c_try_run "$LINENO"; then :
9330 ac_cv_func_mmap_fixed_mapped=yes
9332 ac_cv_func_mmap_fixed_mapped=no
9334 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9335 conftest.$ac_objext conftest.beam conftest.$ac_ext
9339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
9340 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
9341 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9343 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
9346 rm -f conftest.mmap conftest.txt
9349 LIBS="$LIBS $LIBC $LIBM"
9350 ac_fn_c_check_func "$LINENO" "fmod" "ac_cv_func_fmod"
9351 if test "x$ac_cv_func_fmod" = xyes; then :
9352 $as_echo "#define HAVE_FMOD 1" >>confdefs.h
9355 case " $LIBOBJS " in
9356 *" fmod.$ac_objext "* ) ;;
9357 *) LIBOBJS="$LIBOBJS fmod.$ac_objext"
9363 ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd"
9364 if test "x$ac_cv_func_getcwd" = xyes; then :
9365 $as_echo "#define HAVE_GETCWD 1" >>confdefs.h
9368 case " $LIBOBJS " in
9369 *" getcwd.$ac_objext "* ) ;;
9370 *) LIBOBJS="$LIBOBJS getcwd.$ac_objext"
9376 ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv"
9377 if test "x$ac_cv_func_putenv" = xyes; then :
9378 $as_echo "#define HAVE_PUTENV 1" >>confdefs.h
9381 case " $LIBOBJS " in
9382 *" putenv.$ac_objext "* ) ;;
9383 *) LIBOBJS="$LIBOBJS putenv.$ac_objext"
9389 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
9390 if test "x$ac_cv_func_snprintf" = xyes; then :
9391 $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
9394 case " $LIBOBJS " in
9395 *" snprintf.$ac_objext "* ) ;;
9396 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
9402 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
9403 if test "x$ac_cv_func_strcasecmp" = xyes; then :
9404 $as_echo "#define HAVE_STRCASECMP 1" >>confdefs.h
9407 case " $LIBOBJS " in
9408 *" strcasecmp.$ac_objext "* ) ;;
9409 *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext"
9415 ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
9416 if test "x$ac_cv_func_strerror" = xyes; then :
9417 $as_echo "#define HAVE_STRERROR 1" >>confdefs.h
9420 case " $LIBOBJS " in
9421 *" strerror.$ac_objext "* ) ;;
9422 *) LIBOBJS="$LIBOBJS strerror.$ac_objext"
9428 ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
9429 if test "x$ac_cv_func_strncasecmp" = xyes; then :
9430 $as_echo "#define HAVE_STRNCASECMP 1" >>confdefs.h
9433 case " $LIBOBJS " in
9434 *" strncasecmp.$ac_objext "* ) ;;
9435 *) LIBOBJS="$LIBOBJS strncasecmp.$ac_objext"
9441 ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol"
9442 if test "x$ac_cv_func_strtol" = xyes; then :
9443 $as_echo "#define HAVE_STRTOL 1" >>confdefs.h
9446 case " $LIBOBJS " in
9447 *" strtol.$ac_objext "* ) ;;
9448 *) LIBOBJS="$LIBOBJS strtol.$ac_objext"
9455 # vsnprintf is in the same source file as snprintf
9456 for ac_func in vsnprintf
9458 ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
9459 if test "x$ac_cv_func_vsnprintf" = xyes; then :
9460 cat >>confdefs.h <<_ACEOF
9461 #define HAVE_VSNPRINTF 1
9465 case " $LIBOBJS " in
9466 *" snprintf.$ac_objext "* ) ;;
9467 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
9475 for ac_func in gettimeofday isatty kill rename setlocale strsep
9477 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9478 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9479 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9480 cat >>confdefs.h <<_ACEOF
9481 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mkstemp" >&5
9488 $as_echo_n "checking for mkstemp... " >&6; }
9490 ac_cpp='$CXXCPP $CPPFLAGS'
9491 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9492 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9493 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9497 /* end confdefs.h. */
9519 if ac_fn_cxx_try_link "$LINENO"; then :
9520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9521 $as_echo "yes" >&6; }
9523 $as_echo "#define HAVE_MKSTEMP 1" >>confdefs.h
9526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9527 $as_echo "no" >&6; }
9528 case " $LIBOBJS " in
9529 *" mkstemp.$ac_objext "* ) ;;
9530 *) LIBOBJS="$LIBOBJS mkstemp.$ac_objext"
9535 rm -f core conftest.err conftest.$ac_objext \
9536 conftest$ac_exeext conftest.$ac_ext
9538 ac_cpp='$CPP $CPPFLAGS'
9539 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9540 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9541 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9543 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
9544 if test "x$ac_cv_have_decl_sys_siglist" = xyes; then :
9550 cat >>confdefs.h <<_ACEOF
9551 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
9553 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
9554 if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
9560 cat >>confdefs.h <<_ACEOF
9561 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
9565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
9566 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
9567 if ${am_cv_langinfo_codeset+:} false; then :
9568 $as_echo_n "(cached) " >&6
9570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9571 /* end confdefs.h. */
9572 #include <langinfo.h>
9576 char* cs = nl_langinfo(CODESET); return !cs;
9581 if ac_fn_c_try_link "$LINENO"; then :
9582 am_cv_langinfo_codeset=yes
9584 am_cv_langinfo_codeset=no
9586 rm -f core conftest.err conftest.$ac_objext \
9587 conftest$ac_exeext conftest.$ac_ext
9590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
9591 $as_echo "$am_cv_langinfo_codeset" >&6; }
9592 if test $am_cv_langinfo_codeset = yes; then
9594 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
9599 # checks for compiler characteristics
9601 ac_cpp='$CXXCPP $CPPFLAGS'
9602 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9603 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9604 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ANSI array delete syntax is supported" >&5
9607 $as_echo_n "checking whether ANSI array delete syntax is supported... " >&6; }
9608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9609 /* end confdefs.h. */
9617 char *p = new char[5];
9626 if ac_fn_cxx_try_compile "$LINENO"; then :
9627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9628 $as_echo "yes" >&6; }
9630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9631 $as_echo "no" >&6; }
9633 $as_echo "#define ARRAY_DELETE_NEEDS_SIZE 1" >>confdefs.h
9636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9638 ac_cpp='$CPP $CPPFLAGS'
9639 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9640 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9641 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9644 ac_cpp='$CXXCPP $CPPFLAGS'
9645 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9646 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9647 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking traditional preprocessor" >&5
9650 $as_echo_n "checking traditional preprocessor... " >&6; }
9651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9652 /* end confdefs.h. */
9656 #define name2(a, b) a/**/b
9664 int name2(foo, bar);
9672 if ac_fn_cxx_try_compile "$LINENO"; then :
9673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9674 $as_echo "yes" >&6; }
9676 $as_echo "#define TRADITIONAL_CPP 1" >>confdefs.h
9679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9680 $as_echo "no" >&6; }
9682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9684 ac_cpp='$CPP $CPPFLAGS'
9685 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9686 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9687 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9690 # checks for operating system services
9691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking w_coredump" >&5
9692 $as_echo_n "checking w_coredump... " >&6; }
9693 if test "$cross_compiling" = yes; then :
9694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9695 $as_echo "no" >&6; }
9697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9698 /* end confdefs.h. */
9702 #include <sys/types.h>
9703 #include <sys/wait.h>
9717 ((union wait *)&i)->w_coredump = 1;
9728 if ac_fn_c_try_run "$LINENO"; then :
9729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9730 $as_echo "yes" >&6; }
9732 $as_echo "#define WCOREFLAG 0200" >>confdefs.h
9735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9736 $as_echo "no" >&6; }
9738 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9739 conftest.$ac_objext conftest.beam conftest.$ac_ext
9743 # other random stuff
9744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default value for grops -b option" >&5
9745 $as_echo_n "checking default value for grops -b option... " >&6; }
9746 test -n "${BROKEN_SPOOLER_FLAGS}" || BROKEN_SPOOLER_FLAGS=0
9747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BROKEN_SPOOLER_FLAGS" >&5
9748 $as_echo "$BROKEN_SPOOLER_FLAGS" >&6; }
9750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default paper size" >&5
9751 $as_echo_n "checking default paper size... " >&6; }
9752 groff_prefix=$prefix
9753 test "x$prefix" = "xNONE" && groff_prefix=$ac_default_prefix
9754 if test -z "$PAGE"; then
9756 if test -r $groff_prefix/share/groff/font/devps/DESC; then
9757 descfile=$groff_prefix/share/groff/font/devps/DESC
9758 elif test -r $groff_prefix/lib/groff/font/devps/DESC; then
9759 descfile=$groff_prefix/lib/groff/font/devps/DESC
9761 for f in $groff_prefix/share/groff/*/font/devps/DESC; do
9769 if test -n "$descfile"; then
9770 if grep '^paperlength[ ]\+841890' $descfile >/dev/null 2>&1; then
9772 elif grep '^papersize[ ]\+[aA]4' $descfile >/dev/null 2>&1; then
9778 if test -z "$PAGE"; then
9779 dom=`awk '($1 == "dom" || $1 == "search") { print $2; exit}' \
9780 /etc/resolv.conf 2>/dev/null`
9781 if test -z "$dom"; then
9782 dom=`(domainname) 2>/dev/null | tr -d '+'`
9784 || test "$dom" = '(none)'; then
9785 dom=`(hostname) 2>/dev/null | grep '\.'`
9788 # If the top-level domain is two letters and it's not `us' or `ca'
9789 # then they probably use A4 paper.
9791 *.[Uu][Ss]|*.[Cc][Aa])
9798 test -n "$PAGE" || PAGE=letter
9799 if test "x$PAGE" = "xA4"; then
9801 $as_echo "#define PAGEA4 1" >>confdefs.h
9804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PAGE" >&5
9805 $as_echo "$PAGE" >&6; }
9807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existing troff installation" >&5
9808 $as_echo_n "checking for existing troff installation... " >&6; }
9809 if test "x`(echo .tm '|n(.g' | tr '|' '\\\\' | troff -z -i 2>&1) 2>/dev/null`" = x0; then
9810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9811 $as_echo "yes" >&6; }
9814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9815 $as_echo "no" >&6; }
9819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prefix of system macro packages" >&5
9820 $as_echo_n "checking for prefix of system macro packages... " >&6; }
9822 sys_tmac_file_prefix=
9823 for d in /usr/share/lib/tmac /usr/lib/tmac; do
9824 for t in "" tmac.; do
9827 if test -z "$sys_tmac_prefix" \
9829 && grep '^\.if' $f >/dev/null 2>&1; then
9830 sys_tmac_prefix=$d/$t
9831 sys_tmac_file_prefix=$t
9836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sys_tmac_prefix" >&5
9837 $as_echo "$sys_tmac_prefix" >&6; }
9840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which system macro packages should be made available" >&5
9841 $as_echo_n "checking which system macro packages should be made available... " >&6; }
9843 if test "x$sys_tmac_file_prefix" = "xtmac."; then
9844 for f in $sys_tmac_prefix*; do
9845 suff=`echo $f | sed -e "s;$sys_tmac_prefix;;"`
9850 grep "Copyright.*Free Software Foundation" $f >/dev/null \
9851 || tmac_wrap="$tmac_wrap $suff" ;;
9854 elif test -n "$sys_tmac_prefix"; then
9855 files=`echo $sys_tmac_prefix*`
9856 grep "\\.so" $files >conftest.sol
9859 ${sys_tmac_prefix}e)
9867 if grep "\\.so.*/$b\$" conftest.sol >/dev/null \
9868 || grep -l "Copyright.*Free Software Foundation" $f >/dev/null; then
9871 suff=`echo $f | sed -e "s;$sys_tmac_prefix;;"`
9876 tmac_wrap="$tmac_wrap $suff" ;;
9883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tmac_wrap" >&5
9884 $as_echo "$tmac_wrap" >&6; }
9886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking separator character to use in groff search paths" >&5
9887 $as_echo_n "checking separator character to use in groff search paths... " >&6; }
9888 cp ${srcdir}/src/include/nonposix.h conftest.h
9889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9890 /* end confdefs.h. */
9895 #include "conftest.h"
9903 #if PATH_SEP_CHAR == ';'
9904 make an error "Path separator is ';'"
9913 if ac_fn_c_try_compile "$LINENO"; then :
9914 GROFF_PATH_SEPARATOR=":"
9916 GROFF_PATH_SEPARATOR=";"
9918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROFF_PATH_SEPARATOR" >&5
9920 $as_echo "$GROFF_PATH_SEPARATOR" >&6; }
9923 # Check whether --with-alt-gs was given.
9924 if test "${with_alt_gs+set}" = set; then :
9925 withval=$with_alt_gs; ALT_GHOSTSCRIPT_PROGS="$withval"
9927 ALT_GHOSTSCRIPT_PROGS="gs gswin32c gsos2"
9933 # Check whether --with-gs was given.
9934 if test "${with_gs+set}" = set; then :
9935 withval=$with_gs; GHOSTSCRIPT=$withval
9937 if test -n "$ac_tool_prefix"; then
9938 for ac_prog in $ALT_GHOSTSCRIPT_PROGS
9940 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9941 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9943 $as_echo_n "checking for $ac_word... " >&6; }
9944 if ${ac_cv_prog_GHOSTSCRIPT+:} false; then :
9945 $as_echo_n "(cached) " >&6
9947 if test -n "$GHOSTSCRIPT"; then
9948 ac_cv_prog_GHOSTSCRIPT="$GHOSTSCRIPT" # Let the user override the test.
9950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9954 test -z "$as_dir" && as_dir=.
9955 for ac_exec_ext in '' $ac_executable_extensions; do
9956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9957 ac_cv_prog_GHOSTSCRIPT="$ac_tool_prefix$ac_prog"
9958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9967 GHOSTSCRIPT=$ac_cv_prog_GHOSTSCRIPT
9968 if test -n "$GHOSTSCRIPT"; then
9969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GHOSTSCRIPT" >&5
9970 $as_echo "$GHOSTSCRIPT" >&6; }
9972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9973 $as_echo "no" >&6; }
9977 test -n "$GHOSTSCRIPT" && break
9980 if test -z "$GHOSTSCRIPT"; then
9981 ac_ct_GHOSTSCRIPT=$GHOSTSCRIPT
9982 for ac_prog in $ALT_GHOSTSCRIPT_PROGS
9984 # Extract the first word of "$ac_prog", so it can be a program name with args.
9985 set dummy $ac_prog; ac_word=$2
9986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9987 $as_echo_n "checking for $ac_word... " >&6; }
9988 if ${ac_cv_prog_ac_ct_GHOSTSCRIPT+:} false; then :
9989 $as_echo_n "(cached) " >&6
9991 if test -n "$ac_ct_GHOSTSCRIPT"; then
9992 ac_cv_prog_ac_ct_GHOSTSCRIPT="$ac_ct_GHOSTSCRIPT" # Let the user override the test.
9994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9998 test -z "$as_dir" && as_dir=.
9999 for ac_exec_ext in '' $ac_executable_extensions; do
10000 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10001 ac_cv_prog_ac_ct_GHOSTSCRIPT="$ac_prog"
10002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10011 ac_ct_GHOSTSCRIPT=$ac_cv_prog_ac_ct_GHOSTSCRIPT
10012 if test -n "$ac_ct_GHOSTSCRIPT"; then
10013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GHOSTSCRIPT" >&5
10014 $as_echo "$ac_ct_GHOSTSCRIPT" >&6; }
10016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10017 $as_echo "no" >&6; }
10021 test -n "$ac_ct_GHOSTSCRIPT" && break
10024 if test "x$ac_ct_GHOSTSCRIPT" = x; then
10025 GHOSTSCRIPT="missing"
10027 case $cross_compiling:$ac_tool_warned in
10029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10030 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10031 ac_tool_warned=yes ;;
10033 GHOSTSCRIPT=$ac_ct_GHOSTSCRIPT
10039 test "$GHOSTSCRIPT" = "no" && GHOSTSCRIPT=missing
10042 make_install_html=install_html
10045 # Extract the first word of "pnmcut", so it can be a program name with args.
10046 set dummy pnmcut; ac_word=$2
10047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10048 $as_echo_n "checking for $ac_word... " >&6; }
10049 if ${ac_cv_prog_pnmcut+:} false; then :
10050 $as_echo_n "(cached) " >&6
10052 if test -n "$pnmcut"; then
10053 ac_cv_prog_pnmcut="$pnmcut" # Let the user override the test.
10055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10056 for as_dir in $PATH
10059 test -z "$as_dir" && as_dir=.
10060 for ac_exec_ext in '' $ac_executable_extensions; do
10061 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10062 ac_cv_prog_pnmcut="found"
10063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10070 test -z "$ac_cv_prog_pnmcut" && ac_cv_prog_pnmcut="missing"
10073 pnmcut=$ac_cv_prog_pnmcut
10074 if test -n "$pnmcut"; then
10075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pnmcut" >&5
10076 $as_echo "$pnmcut" >&6; }
10078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10079 $as_echo "no" >&6; }
10083 if test $pnmcut = missing; then
10084 missing="$missing \`pnmcut'"
10085 fi;# Extract the first word of "pnmcrop", so it can be a program name with args.
10086 set dummy pnmcrop; ac_word=$2
10087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10088 $as_echo_n "checking for $ac_word... " >&6; }
10089 if ${ac_cv_prog_pnmcrop+:} false; then :
10090 $as_echo_n "(cached) " >&6
10092 if test -n "$pnmcrop"; then
10093 ac_cv_prog_pnmcrop="$pnmcrop" # Let the user override the test.
10095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10096 for as_dir in $PATH
10099 test -z "$as_dir" && as_dir=.
10100 for ac_exec_ext in '' $ac_executable_extensions; do
10101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10102 ac_cv_prog_pnmcrop="found"
10103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10110 test -z "$ac_cv_prog_pnmcrop" && ac_cv_prog_pnmcrop="missing"
10113 pnmcrop=$ac_cv_prog_pnmcrop
10114 if test -n "$pnmcrop"; then
10115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pnmcrop" >&5
10116 $as_echo "$pnmcrop" >&6; }
10118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10119 $as_echo "no" >&6; }
10123 if test $pnmcrop = missing; then
10124 missing="$missing \`pnmcrop'"
10125 fi;# Extract the first word of "pnmtopng", so it can be a program name with args.
10126 set dummy pnmtopng; ac_word=$2
10127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10128 $as_echo_n "checking for $ac_word... " >&6; }
10129 if ${ac_cv_prog_pnmtopng+:} false; then :
10130 $as_echo_n "(cached) " >&6
10132 if test -n "$pnmtopng"; then
10133 ac_cv_prog_pnmtopng="$pnmtopng" # Let the user override the test.
10135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10136 for as_dir in $PATH
10139 test -z "$as_dir" && as_dir=.
10140 for ac_exec_ext in '' $ac_executable_extensions; do
10141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10142 ac_cv_prog_pnmtopng="found"
10143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10150 test -z "$ac_cv_prog_pnmtopng" && ac_cv_prog_pnmtopng="missing"
10153 pnmtopng=$ac_cv_prog_pnmtopng
10154 if test -n "$pnmtopng"; then
10155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pnmtopng" >&5
10156 $as_echo "$pnmtopng" >&6; }
10158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10159 $as_echo "no" >&6; }
10163 if test $pnmtopng = missing; then
10164 missing="$missing \`pnmtopng'"
10165 fi;# Extract the first word of "psselect", so it can be a program name with args.
10166 set dummy psselect; ac_word=$2
10167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10168 $as_echo_n "checking for $ac_word... " >&6; }
10169 if ${ac_cv_prog_psselect+:} false; then :
10170 $as_echo_n "(cached) " >&6
10172 if test -n "$psselect"; then
10173 ac_cv_prog_psselect="$psselect" # Let the user override the test.
10175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10176 for as_dir in $PATH
10179 test -z "$as_dir" && as_dir=.
10180 for ac_exec_ext in '' $ac_executable_extensions; do
10181 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10182 ac_cv_prog_psselect="found"
10183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10190 test -z "$ac_cv_prog_psselect" && ac_cv_prog_psselect="missing"
10193 psselect=$ac_cv_prog_psselect
10194 if test -n "$psselect"; then
10195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $psselect" >&5
10196 $as_echo "$psselect" >&6; }
10198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10199 $as_echo "no" >&6; }
10203 if test $psselect = missing; then
10204 missing="$missing \`psselect'"
10205 fi;# Extract the first word of "pnmtops", so it can be a program name with args.
10206 set dummy pnmtops; ac_word=$2
10207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10208 $as_echo_n "checking for $ac_word... " >&6; }
10209 if ${ac_cv_prog_pnmtops+:} false; then :
10210 $as_echo_n "(cached) " >&6
10212 if test -n "$pnmtops"; then
10213 ac_cv_prog_pnmtops="$pnmtops" # Let the user override the test.
10215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10216 for as_dir in $PATH
10219 test -z "$as_dir" && as_dir=.
10220 for ac_exec_ext in '' $ac_executable_extensions; do
10221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10222 ac_cv_prog_pnmtops="found"
10223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10230 test -z "$ac_cv_prog_pnmtops" && ac_cv_prog_pnmtops="missing"
10233 pnmtops=$ac_cv_prog_pnmtops
10234 if test -n "$pnmtops"; then
10235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pnmtops" >&5
10236 $as_echo "$pnmtops" >&6; }
10238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10239 $as_echo "no" >&6; }
10243 if test $pnmtops = missing; then
10244 missing="$missing \`pnmtops'"
10247 test "$GHOSTSCRIPT" = "missing" && missing="$missing \`gs'"
10249 if test -n "$missing"; then
10250 plural=`set $missing; test $# -gt 1 && echo s`
10251 missing=`set $missing
10253 while test $# -gt 0
10256 1) missing="$missing$1" ;;
10257 2) missing="$missing$1 and " ;;
10258 *) missing="$missing$1, " ;;
10267 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: missing program$plural:
10271 cannot be found in the PATH.
10272 Consequently, groff's HTML backend (grohtml) will not work properly;
10273 therefore, it will neither be possible to prepare, nor to install,
10274 documentation in HTML format.
10276 $as_echo "$as_me: WARNING: missing program$plural:
10280 cannot be found in the PATH.
10281 Consequently, groff's HTML backend (grohtml) will not work properly;
10282 therefore, it will neither be possible to prepare, nor to install,
10283 documentation in HTML format.
10290 # Check whether --with-alt-awk was given.
10291 if test "${with_alt_awk+set}" = set; then :
10292 withval=$with_alt_awk; ALT_AWK_PROGS="$withval"
10294 ALT_AWK_PROGS="gawk mawk nawk awk"
10300 # Check whether --with-awk was given.
10301 if test "${with_awk+set}" = set; then :
10302 withval=$with_awk; AWK=$withval
10304 if test -n "$ac_tool_prefix"; then
10305 for ac_prog in $ALT_AWK_PROGS
10307 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10308 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10310 $as_echo_n "checking for $ac_word... " >&6; }
10311 if ${ac_cv_prog_AWK+:} false; then :
10312 $as_echo_n "(cached) " >&6
10314 if test -n "$AWK"; then
10315 ac_cv_prog_AWK="$AWK" # Let the user override the test.
10317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10318 for as_dir in $PATH
10321 test -z "$as_dir" && as_dir=.
10322 for ac_exec_ext in '' $ac_executable_extensions; do
10323 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10324 ac_cv_prog_AWK="$ac_tool_prefix$ac_prog"
10325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10334 AWK=$ac_cv_prog_AWK
10335 if test -n "$AWK"; then
10336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
10337 $as_echo "$AWK" >&6; }
10339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10340 $as_echo "no" >&6; }
10344 test -n "$AWK" && break
10347 if test -z "$AWK"; then
10349 for ac_prog in $ALT_AWK_PROGS
10351 # Extract the first word of "$ac_prog", so it can be a program name with args.
10352 set dummy $ac_prog; ac_word=$2
10353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10354 $as_echo_n "checking for $ac_word... " >&6; }
10355 if ${ac_cv_prog_ac_ct_AWK+:} false; then :
10356 $as_echo_n "(cached) " >&6
10358 if test -n "$ac_ct_AWK"; then
10359 ac_cv_prog_ac_ct_AWK="$ac_ct_AWK" # Let the user override the test.
10361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10362 for as_dir in $PATH
10365 test -z "$as_dir" && as_dir=.
10366 for ac_exec_ext in '' $ac_executable_extensions; do
10367 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10368 ac_cv_prog_ac_ct_AWK="$ac_prog"
10369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10378 ac_ct_AWK=$ac_cv_prog_ac_ct_AWK
10379 if test -n "$ac_ct_AWK"; then
10380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AWK" >&5
10381 $as_echo "$ac_ct_AWK" >&6; }
10383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10384 $as_echo "no" >&6; }
10388 test -n "$ac_ct_AWK" && break
10391 if test "x$ac_ct_AWK" = x; then
10394 case $cross_compiling:$ac_tool_warned in
10396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10397 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10398 ac_tool_warned=yes ;;
10406 test "$AWK" = "no" && AWK=missing
10411 make_install_pdfdoc=install_pdfdoc
10414 test "$AWK" = missing && missing="\`awk'"
10415 test "$GHOSTSCRIPT" = missing && missing="$missing \`gs'"
10416 if test -n "$missing"; then
10417 plural=`set $missing; test $# -eq 2 && echo s`
10418 test x$plural = xs \
10419 && missing=`set $missing; echo "$1 and $2"` \
10420 || missing=`echo $missing`
10423 make_install_pdfdoc=
10425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: missing program$plural:
10427 The program$plural $missing cannot be found in the PATH.
10428 Consequently, groff's PDF formatter (pdfroff) will not work properly;
10429 therefore, it will neither be possible to prepare, nor to install,
10430 documentation in PDF format.
10432 $as_echo "$as_me: WARNING: missing program$plural:
10434 The program$plural $missing cannot be found in the PATH.
10435 Consequently, groff's PDF formatter (pdfroff) will not work properly;
10436 therefore, it will neither be possible to prepare, nor to install,
10437 documentation in PDF format.
10443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pnmtops can handle the -nosetpage option" >&5
10444 $as_echo_n "checking whether pnmtops can handle the -nosetpage option... " >&6; }
10445 if echo P2 2 2 255 0 1 2 0 | pnmtops -nosetpage > /dev/null 2>&1 ; then
10446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10447 $as_echo "yes" >&6; }
10448 pnmtops_nosetpage="pnmtops -nosetpage"
10450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10451 $as_echo "no" >&6; }
10452 pnmtops_nosetpage="pnmtops"
10456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
10457 $as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
10458 if ${ac_cv_gnu_library_2_1+:} false; then :
10459 $as_echo_n "(cached) " >&6
10461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10462 /* end confdefs.h. */
10464 #include <features.h>
10465 #ifdef __GNU_LIBRARY__
10466 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
10475 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10476 $EGREP "Lucky" >/dev/null 2>&1; then :
10477 ac_cv_gnu_library_2_1=yes
10479 ac_cv_gnu_library_2_1=no
10486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
10487 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
10489 GLIBC21="$ac_cv_gnu_library_2_1"
10495 for ac_func in $ac_func_list
10497 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10498 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10499 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10500 cat >>confdefs.h <<_ACEOF
10501 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
10515 $as_echo_n "checking for working fcntl.h... " >&6; }
10516 if ${gl_cv_header_working_fcntl_h+:} false; then :
10517 $as_echo_n "(cached) " >&6
10519 if test "$cross_compiling" = yes; then :
10520 gl_cv_header_working_fcntl_h=cross-compiling
10522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10523 /* end confdefs.h. */
10524 #include <sys/types.h>
10525 #include <sys/stat.h>
10527 # include <unistd.h>
10528 #else /* on Windows with MSVC */
10530 # include <stdlib.h>
10531 # defined sleep(n) _sleep ((n) * 1000)
10535 #define O_NOATIME 0
10538 #define O_NOFOLLOW 0
10540 static int const constants[] =
10542 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
10543 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
10550 int result = !constants;
10553 static char const sym[] = "conftest.sym";
10554 if (symlink (".", sym) != 0)
10558 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
10569 static char const file[] = "confdefs.h";
10570 int fd = open (file, O_RDONLY | O_NOATIME);
10576 if (fstat (fd, &st0) != 0)
10582 if (read (fd, &c, 1) != 1)
10586 if (close (fd) != 0)
10591 if (stat (file, &st1) != 0)
10594 if (st0.st_atime != st1.st_atime)
10606 if ac_fn_c_try_run "$LINENO"; then :
10607 gl_cv_header_working_fcntl_h=yes
10610 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
10611 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
10612 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
10613 *) gl_cv_header_working_fcntl_h='no';;
10616 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10617 conftest.$ac_objext conftest.beam conftest.$ac_ext
10621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
10622 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
10624 case $gl_cv_header_working_fcntl_h in #(
10625 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
10629 cat >>confdefs.h <<_ACEOF
10630 #define HAVE_WORKING_O_NOATIME $ac_val
10634 case $gl_cv_header_working_fcntl_h in #(
10635 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
10639 cat >>confdefs.h <<_ACEOF
10640 #define HAVE_WORKING_O_NOFOLLOW $ac_val
10644 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
10645 if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
10651 cat >>confdefs.h <<_ACEOF
10652 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
10664 ac_config_files="$ac_config_files stamp-h"
10666 ac_config_files="$ac_config_files Makefile doc/Makefile src/utils/xtotroff/Makefile"
10668 ac_config_files="$ac_config_files contrib/gdiffmk/tests/runtests"
10670 ac_config_files="$ac_config_files test-groff"
10672 cat >confcache <<\_ACEOF
10673 # This file is a shell script that caches the results of configure
10674 # tests run on this system so they can be shared between configure
10675 # scripts and configure runs, see configure's option --config-cache.
10676 # It is not useful on other systems. If it contains results you don't
10677 # want to keep, you may remove or edit it.
10679 # config.status only pays attention to the cache file if you give it
10680 # the --recheck option to rerun configure.
10682 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10683 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10684 # following values.
10688 # The following way of writing the cache mishandles newlines in values,
10689 # but we know of no workaround that is simple, portable, and efficient.
10690 # So, we kill variables containing newlines.
10691 # Ultrix sh set writes to stderr and can't be redirected directly,
10692 # and sets the high bit in the cache file unless we assign to the vars.
10694 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10695 eval ac_val=\$$ac_var
10699 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10700 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10703 _ | IFS | as_nl) ;; #(
10704 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10705 *) { eval $ac_var=; unset $ac_var;} ;;
10711 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10712 *${as_nl}ac_space=\ *)
10713 # `set' does not quote correctly, so add quotes: double-quote
10714 # substitution turns \\\\ into \\, and sed turns \\ into \.
10717 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10720 # `set' quotes correctly as required by POSIX, so do not add quotes.
10721 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10730 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10732 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10734 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10735 if test -w "$cache_file"; then
10736 if test "x$cache_file" != "x/dev/null"; then
10737 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10738 $as_echo "$as_me: updating cache $cache_file" >&6;}
10739 if test ! -f "$cache_file" || test -h "$cache_file"; then
10740 cat confcache >"$cache_file"
10742 case $cache_file in #(
10744 mv -f confcache "$cache_file"$$ &&
10745 mv -f "$cache_file"$$ "$cache_file" ;; #(
10747 mv -f confcache "$cache_file" ;;
10752 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10753 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10758 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10759 # Let make expand exec_prefix.
10760 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10762 DEFS=-DHAVE_CONFIG_H
10767 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10768 # 1. Remove the extension, and $U if already installed.
10769 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10770 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10771 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10772 # will be set to the directory where LIBOBJS objects are built.
10773 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10774 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10776 LIBOBJS=$ac_libobjs
10778 LTLIBOBJS=$ac_ltlibobjs
10783 : "${CONFIG_STATUS=./config.status}"
10785 ac_clean_files_save=$ac_clean_files
10786 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10787 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10788 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10790 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10792 # Generated by $as_me.
10793 # Run this file to recreate the current configuration.
10794 # Compiler output produced by configure, useful for debugging
10795 # configure, is in config.log if it exists.
10798 ac_cs_recheck=false
10801 SHELL=\${CONFIG_SHELL-$SHELL}
10804 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10805 ## -------------------- ##
10806 ## M4sh Initialization. ##
10807 ## -------------------- ##
10809 # Be more Bourne compatible
10810 DUALCASE=1; export DUALCASE # for MKS sh
10811 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
10814 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10815 # is contrary to our usage. Disable this feature.
10816 alias -g '${1+"$@"}'='"$@"'
10817 setopt NO_GLOB_SUBST
10819 case `(set -o) 2>/dev/null` in #(
10831 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10832 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10833 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10834 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10835 # Prefer a ksh shell builtin over an external printf program on Solaris,
10836 # but without wasting forks for bash or zsh.
10837 if test -z "$BASH_VERSION$ZSH_VERSION" \
10838 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10839 as_echo='print -r --'
10840 as_echo_n='print -rn --'
10841 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10842 as_echo='printf %s\n'
10843 as_echo_n='printf %s'
10845 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10846 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10847 as_echo_n='/usr/ucb/echo -n'
10849 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10850 as_echo_n_body='eval
10854 expr "X$arg" : "X\\(.*\\)$as_nl";
10855 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10857 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10859 export as_echo_n_body
10860 as_echo_n='sh -c $as_echo_n_body as_echo'
10862 export as_echo_body
10863 as_echo='sh -c $as_echo_body as_echo'
10866 # The user is always right.
10867 if test "${PATH_SEPARATOR+set}" != set; then
10869 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10870 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10877 # We need space, tab and new line, in precisely that order. Quoting is
10878 # there to prevent editors from complaining about space-tab.
10879 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10880 # splitting by setting IFS to empty value.)
10883 # Find who we are. Look in the path if we contain no directory separator.
10886 *[\\/]* ) as_myself=$0 ;;
10887 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10888 for as_dir in $PATH
10891 test -z "$as_dir" && as_dir=.
10892 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10898 # We did not find ourselves, most probably we were run as `sh COMMAND'
10899 # in which case we are not to be found in the path.
10900 if test "x$as_myself" = x; then
10903 if test ! -f "$as_myself"; then
10904 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10908 # Unset variables that we do not need and which cause bugs (e.g. in
10909 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
10910 # suppresses any "Segmentation fault" message there. '((' could
10911 # trigger a bug in pdksh 5.2.14.
10912 for as_var in BASH_ENV ENV MAIL MAILPATH
10913 do eval test x\${$as_var+set} = xset \
10914 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
10927 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10930 # as_fn_error STATUS ERROR [LINENO LOG_FD]
10931 # ----------------------------------------
10932 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10933 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10934 # script with STATUS, using 1 if that was 0.
10937 as_status=$1; test $as_status -eq 0 && as_status=1
10939 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10940 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10942 $as_echo "$as_me: error: $2" >&2
10943 as_fn_exit $as_status
10947 # as_fn_set_status STATUS
10948 # -----------------------
10949 # Set $? to STATUS, without forking.
10950 as_fn_set_status ()
10953 } # as_fn_set_status
10955 # as_fn_exit STATUS
10956 # -----------------
10957 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10961 as_fn_set_status $1
10967 # Portably unset VAR.
10970 { eval $1=; unset $1;}
10972 as_unset=as_fn_unset
10973 # as_fn_append VAR VALUE
10974 # ----------------------
10975 # Append the text in VALUE to the end of the definition contained in VAR. Take
10976 # advantage of any shell optimizations that allow amortized linear growth over
10977 # repeated appends, instead of the typical quadratic growth present in naive
10979 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
10980 eval 'as_fn_append ()
10991 # as_fn_arith ARG...
10992 # ------------------
10993 # Perform arithmetic evaluation on the ARGs, and store the result in the
10994 # global $as_val. Take advantage of shells that can avoid forks. The arguments
10995 # must be portable across $(()) and expr.
10996 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
10997 eval 'as_fn_arith ()
11004 as_val=`expr "$@" || test $? -eq 1`
11009 if expr a : '\(a\)' >/dev/null 2>&1 &&
11010 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11016 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11017 as_basename=basename
11022 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11028 as_me=`$as_basename -- "$0" ||
11029 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11030 X"$0" : 'X\(//\)$' \| \
11031 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11033 sed '/^.*\/\([^/][^/]*\)\/*$/{
11047 # Avoid depending upon Character Ranges.
11048 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11049 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11050 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11051 as_cr_digits='0123456789'
11052 as_cr_alnum=$as_cr_Letters$as_cr_digits
11054 ECHO_C= ECHO_N= ECHO_T=
11055 case `echo -n x` in #(((((
11057 case `echo 'xy\c'` in
11058 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11060 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11067 rm -f conf$$ conf$$.exe conf$$.file
11068 if test -d conf$$.dir; then
11069 rm -f conf$$.dir/conf$$.file
11072 mkdir conf$$.dir 2>/dev/null
11074 if (echo >conf$$.file) 2>/dev/null; then
11075 if ln -s conf$$.file conf$$ 2>/dev/null; then
11077 # ... but there are two gotchas:
11078 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11079 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11080 # In both cases, we have to default to `cp -pR'.
11081 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11083 elif ln conf$$.file conf$$ 2>/dev/null; then
11091 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11092 rmdir conf$$.dir 2>/dev/null
11097 # Create "$as_dir" as a directory, including parents if necessary.
11102 -*) as_dir=./$as_dir;;
11104 test -d "$as_dir" || eval $as_mkdir_p || {
11108 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11109 *) as_qdir=$as_dir;;
11111 as_dirs="'$as_qdir' $as_dirs"
11112 as_dir=`$as_dirname -- "$as_dir" ||
11113 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11114 X"$as_dir" : 'X\(//\)[^/]' \| \
11115 X"$as_dir" : 'X\(//\)$' \| \
11116 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11117 $as_echo X"$as_dir" |
11118 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11122 /^X\(\/\/\)[^/].*/{
11135 test -d "$as_dir" && break
11137 test -z "$as_dirs" || eval "mkdir $as_dirs"
11138 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11142 if mkdir -p . 2>/dev/null; then
11143 as_mkdir_p='mkdir -p "$as_dir"'
11145 test -d ./-p && rmdir ./-p
11150 # as_fn_executable_p FILE
11151 # -----------------------
11152 # Test if FILE is an executable regular file.
11153 as_fn_executable_p ()
11155 test -f "$1" && test -x "$1"
11156 } # as_fn_executable_p
11157 as_test_x='test -x'
11158 as_executable_p=as_fn_executable_p
11160 # Sed expression to map a string onto a valid CPP name.
11161 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11163 # Sed expression to map a string onto a valid variable name.
11164 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11168 ## ----------------------------------- ##
11169 ## Main body of $CONFIG_STATUS script. ##
11170 ## ----------------------------------- ##
11172 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11174 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11175 # Save the log message, to keep $0 and so on meaningful, and to
11176 # report actual input values of CONFIG_FILES etc. instead of their
11177 # values after options handling.
11179 This file was extended by groff $as_me 1.22.2, which was
11180 generated by GNU Autoconf 2.69. Invocation command line was
11182 CONFIG_FILES = $CONFIG_FILES
11183 CONFIG_HEADERS = $CONFIG_HEADERS
11184 CONFIG_LINKS = $CONFIG_LINKS
11185 CONFIG_COMMANDS = $CONFIG_COMMANDS
11188 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11193 case $ac_config_files in *"
11194 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11197 case $ac_config_headers in *"
11198 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11202 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11203 # Files that config.status was made for.
11204 config_files="$ac_config_files"
11205 config_headers="$ac_config_headers"
11209 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11211 \`$as_me' instantiates files and other configuration actions
11212 from templates according to the current configuration. Unless the files
11213 and actions are specified as TAGs, all are instantiated by default.
11215 Usage: $0 [OPTION]... [TAG]...
11217 -h, --help print this help, then exit
11218 -V, --version print version number and configuration settings, then exit
11219 --config print configuration, then exit
11220 -q, --quiet, --silent
11221 do not print progress messages
11222 -d, --debug don't remove temporary files
11223 --recheck update $as_me by reconfiguring in the same conditions
11224 --file=FILE[:TEMPLATE]
11225 instantiate the configuration file FILE
11226 --header=FILE[:TEMPLATE]
11227 instantiate the configuration header FILE
11229 Configuration files:
11232 Configuration headers:
11235 Report bugs to <bug-groff@gnu.org>."
11238 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11239 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11241 groff config.status 1.22.2
11242 configured by $0, generated by GNU Autoconf 2.69,
11243 with options \\"\$ac_cs_config\\"
11245 Copyright (C) 2012 Free Software Foundation, Inc.
11246 This config.status script is free software; the Free Software Foundation
11247 gives unlimited permission to copy, distribute and modify it."
11252 test -n "\$AWK" || AWK=awk
11255 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11256 # The default lists apply if the user does not specify any file.
11262 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11263 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11267 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11279 # Handling of the options.
11280 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11282 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11283 $as_echo "$ac_cs_version"; exit ;;
11284 --config | --confi | --conf | --con | --co | --c )
11285 $as_echo "$ac_cs_config"; exit ;;
11286 --debug | --debu | --deb | --de | --d | -d )
11288 --file | --fil | --fi | --f )
11291 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11292 '') as_fn_error $? "missing file argument" ;;
11294 as_fn_append CONFIG_FILES " '$ac_optarg'"
11295 ac_need_defaults=false;;
11296 --header | --heade | --head | --hea )
11299 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11301 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11302 ac_need_defaults=false;;
11304 # Conflict between --help and --header
11305 as_fn_error $? "ambiguous option: \`$1'
11306 Try \`$0 --help' for more information.";;
11307 --help | --hel | -h )
11308 $as_echo "$ac_cs_usage"; exit ;;
11309 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11310 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11313 # This is an error.
11314 -*) as_fn_error $? "unrecognized option: \`$1'
11315 Try \`$0 --help' for more information." ;;
11317 *) as_fn_append ac_config_targets " $1"
11318 ac_need_defaults=false ;;
11324 ac_configure_extra_args=
11326 if $ac_cs_silent; then
11328 ac_configure_extra_args="$ac_configure_extra_args --silent"
11332 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11333 if \$ac_cs_recheck; then
11334 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11336 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11337 CONFIG_SHELL='$SHELL'
11338 export CONFIG_SHELL
11343 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11347 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11348 ## Running $as_me. ##
11354 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11357 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11359 # Handling of arguments.
11360 for ac_config_target in $ac_config_targets
11362 case $ac_config_target in
11363 "src/include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/config.h:src/include/config.hin" ;;
11364 "stamp-h") CONFIG_FILES="$CONFIG_FILES stamp-h" ;;
11365 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11366 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
11367 "src/utils/xtotroff/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/xtotroff/Makefile" ;;
11368 "contrib/gdiffmk/tests/runtests") CONFIG_FILES="$CONFIG_FILES contrib/gdiffmk/tests/runtests" ;;
11369 "test-groff") CONFIG_FILES="$CONFIG_FILES test-groff" ;;
11371 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11376 # If the user did not use the arguments to specify the items to instantiate,
11377 # then the envvar interface is used. Set only those that are not.
11378 # We use the long form for the default assignment because of an extremely
11379 # bizarre bug on SunOS 4.1.3.
11380 if $ac_need_defaults; then
11381 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11382 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11385 # Have a temporary directory for convenience. Make it in the build tree
11386 # simply because there is no reason against having it here, and in addition,
11387 # creating and moving files from /tmp can sometimes cause problems.
11388 # Hook for its removal unless debugging.
11389 # Note that there is a small window in which the directory will not be cleaned:
11390 # after its creation but before its name has been assigned to `$tmp'.
11394 trap 'exit_status=$?
11395 : "${ac_tmp:=$tmp}"
11396 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11398 trap 'as_fn_exit 1' 1 2 13 15
11400 # Create a (secure) tmp directory for tmp files.
11403 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11407 tmp=./conf$$-$RANDOM
11408 (umask 077 && mkdir "$tmp")
11409 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11412 # Set up the scripts for CONFIG_FILES section.
11413 # No need to generate them if there are no CONFIG_FILES.
11414 # This happens for instance with `./config.status config.h'.
11415 if test -n "$CONFIG_FILES"; then
11418 ac_cr=`echo X | tr X '\015'`
11419 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11420 # But we know of no other shell where ac_cr would be empty at this
11421 # point, so we can use a bashism as a fallback.
11422 if test "x$ac_cr" = x; then
11423 eval ac_cr=\$\'\\r\'
11425 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11426 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11429 ac_cs_awk_cr=$ac_cr
11432 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11437 echo "cat >conf$$subs.awk <<_ACEOF" &&
11438 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11440 } >conf$$subs.sh ||
11441 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11442 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11444 for ac_last_try in false false false false false :; do
11445 . ./conf$$subs.sh ||
11446 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11448 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11449 if test $ac_delim_n = $ac_delim_num; then
11451 elif $ac_last_try; then
11452 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11454 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11457 rm -f conf$$subs.sh
11459 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11460 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11464 s/^/S["/; s/!.*/"]=/
11474 s/\(.\{148\}\)..*/\1/
11476 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11481 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11488 s/\(.\{148\}\)..*/\1/
11490 s/["\\]/\\&/g; s/^/"/; s/$/"/
11494 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11499 ' <conf$$subs.awk | sed '
11504 ' >>$CONFIG_STATUS || ac_write_fail=1
11505 rm -f conf$$subs.awk
11506 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11508 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11509 for (key in S) S_is_set[key] = 1
11515 nfields = split(line, field, "@")
11517 len = length(field[1])
11518 for (i = 2; i < nfields; i++) {
11520 keylen = length(key)
11521 if (S_is_set[key]) {
11523 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11524 len += length(value) + length(field[++i])
11535 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11536 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11537 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11540 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11541 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11544 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11545 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11546 # trailing colons and then remove the whole line if VPATH becomes empty
11547 # (actually we leave an empty line to preserve line numbers).
11548 if test "x$srcdir" = x.; then
11549 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11567 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11568 fi # test -n "$CONFIG_FILES"
11570 # Set up the scripts for CONFIG_HEADERS section.
11571 # No need to generate them if there are no CONFIG_HEADERS.
11572 # This happens for instance with `./config.status Makefile'.
11573 if test -n "$CONFIG_HEADERS"; then
11574 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
11578 # Transform confdefs.h into an awk script `defines.awk', embedded as
11579 # here-document in config.status, that substitutes the proper values into
11580 # config.h.in to produce config.h.
11582 # Create a delimiter string that does not exist in confdefs.h, to ease
11583 # handling of long lines.
11585 for ac_last_try in false false :; do
11586 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
11587 if test -z "$ac_tt"; then
11589 elif $ac_last_try; then
11590 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
11592 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11596 # For the awk script, D is an array of macro values keyed by name,
11597 # likewise P contains macro parameters if any. Preserve backslash
11598 # newline sequences.
11600 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11602 s/.\{148\}/&'"$ac_delim"'/g
11605 s/^[ ]*#[ ]*define[ ][ ]*/ /
11612 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11614 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
11618 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11619 D["\1"]=" \3\\\\\\n"\\/p
11621 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11626 s/.\{148\}/&'"$ac_delim"'/g
11631 s/["\\]/\\&/g; s/^/"/; s/$/"/p
11634 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11636 ' <confdefs.h | sed '
11637 s/'"$ac_delim"'/"\\\
11638 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11640 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11641 for (key in D) D_is_set[key] = 1
11644 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11646 split(line, arg, " ")
11647 if (arg[1] == "#") {
11651 defundef = substr(arg[1], 2)
11654 split(mac1, mac2, "(") #)
11656 prefix = substr(line, 1, index(line, defundef) - 1)
11657 if (D_is_set[macro]) {
11658 # Preserve the white space surrounding the "#".
11659 print prefix "define", macro P[macro] D[macro]
11662 # Replace #undef with comments. This is necessary, for example,
11663 # in the case of _POSIX_SOURCE, which is predefined and required
11664 # on some systems where configure will not decide to define it.
11665 if (defundef == "undef") {
11666 print "/*", prefix defundef, macro, "*/"
11674 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11675 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
11676 fi # test -n "$CONFIG_HEADERS"
11679 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
11684 :[FHLC]) ac_mode=$ac_tag; continue;;
11686 case $ac_mode$ac_tag in
11688 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
11689 :[FH]-) ac_tag=-:-;;
11690 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11707 -) ac_f="$ac_tmp/stdin";;
11708 *) # Look for the file first in the build tree, then in the source tree
11709 # (if the path is not absolute). The absolute path cannot be DOS-style,
11710 # because $ac_f cannot contain `:'.
11714 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11716 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11718 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11719 as_fn_append ac_file_inputs " '$ac_f'"
11722 # Let's still pretend it is `configure' which instantiates (i.e., don't
11723 # use $as_me), people would be surprised to read:
11724 # /* config.h. Generated by config.status. */
11725 configure_input='Generated from '`
11726 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11728 if test x"$ac_file" != x-; then
11729 configure_input="$ac_file. $configure_input"
11730 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11731 $as_echo "$as_me: creating $ac_file" >&6;}
11733 # Neutralize special characters interpreted by sed in replacement strings.
11734 case $configure_input in #(
11735 *\&* | *\|* | *\\* )
11736 ac_sed_conf_input=`$as_echo "$configure_input" |
11737 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11738 *) ac_sed_conf_input=$configure_input;;
11742 *:-:* | *:-) cat >"$ac_tmp/stdin" \
11743 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
11748 ac_dir=`$as_dirname -- "$ac_file" ||
11749 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11750 X"$ac_file" : 'X\(//\)[^/]' \| \
11751 X"$ac_file" : 'X\(//\)$' \| \
11752 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11753 $as_echo X"$ac_file" |
11754 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11758 /^X\(\/\/\)[^/].*/{
11771 as_dir="$ac_dir"; as_fn_mkdir_p
11775 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11777 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11778 # A ".." for each directory in $ac_dir_suffix.
11779 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11780 case $ac_top_builddir_sub in
11781 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11782 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11785 ac_abs_top_builddir=$ac_pwd
11786 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11787 # for backward compatibility:
11788 ac_top_builddir=$ac_top_build_prefix
11791 .) # We are building in place.
11793 ac_top_srcdir=$ac_top_builddir_sub
11794 ac_abs_top_srcdir=$ac_pwd ;;
11795 [\\/]* | ?:[\\/]* ) # Absolute name.
11796 ac_srcdir=$srcdir$ac_dir_suffix;
11797 ac_top_srcdir=$srcdir
11798 ac_abs_top_srcdir=$srcdir ;;
11799 *) # Relative name.
11800 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11801 ac_top_srcdir=$ac_top_build_prefix$srcdir
11802 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11804 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11814 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11815 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11819 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11820 # If the template does not know about datarootdir, expand it.
11821 # FIXME: This hack should be removed a few years after 2.60.
11822 ac_datarootdir_hack=; ac_datarootdir_seen=
11833 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11834 *datarootdir*) ac_datarootdir_seen=yes;;
11835 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11837 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11839 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11840 ac_datarootdir_hack='
11841 s&@datadir@&$datadir&g
11842 s&@docdir@&$docdir&g
11843 s&@infodir@&$infodir&g
11844 s&@localedir@&$localedir&g
11845 s&@mandir@&$mandir&g
11846 s&\\\${datarootdir}&$datarootdir&g' ;;
11850 # Neutralize VPATH when `$srcdir' = `.'.
11851 # Shell code in configure.ac might set extrasub.
11852 # FIXME: do we really want to maintain this feature?
11853 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11854 ac_sed_extra="$ac_vpsub
11857 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11859 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11860 s|@configure_input@|$ac_sed_conf_input|;t t
11861 s&@top_builddir@&$ac_top_builddir_sub&;t t
11862 s&@top_build_prefix@&$ac_top_build_prefix&;t t
11863 s&@srcdir@&$ac_srcdir&;t t
11864 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11865 s&@top_srcdir@&$ac_top_srcdir&;t t
11866 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11867 s&@builddir@&$ac_builddir&;t t
11868 s&@abs_builddir@&$ac_abs_builddir&;t t
11869 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11870 s&@INSTALL@&$ac_INSTALL&;t t
11871 $ac_datarootdir_hack
11873 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
11874 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11876 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11877 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
11878 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
11879 "$ac_tmp/out"`; test -z "$ac_out"; } &&
11880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11881 which seems to be undefined. Please make sure it is defined" >&5
11882 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11883 which seems to be undefined. Please make sure it is defined" >&2;}
11885 rm -f "$ac_tmp/stdin"
11887 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
11888 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
11890 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11896 if test x"$ac_file" != x-; then
11898 $as_echo "/* $configure_input */" \
11899 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
11900 } >"$ac_tmp/config.h" \
11901 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11902 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
11903 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11904 $as_echo "$as_me: $ac_file is unchanged" >&6;}
11907 mv "$ac_tmp/config.h" "$ac_file" \
11908 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11911 $as_echo "/* $configure_input */" \
11912 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
11913 || as_fn_error $? "could not create -" "$LINENO" 5
11921 case $ac_file$ac_mode in
11922 "stamp-h":F) echo timestamp > stamp-h ;;
11923 "contrib/gdiffmk/tests/runtests":F) chmod +x contrib/gdiffmk/tests/runtests ;;
11924 "test-groff":F) chmod +x test-groff ;;
11932 ac_clean_files=$ac_clean_files_save
11934 test $ac_write_fail = 0 ||
11935 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
11938 # configure is writing to config.log, and then calls config.status.
11939 # config.status does its own redirection, appending to config.log.
11940 # Unfortunately, on DOS this fails, as config.log is still kept open
11941 # by configure, so config.status won't be able to write to it; its
11942 # output is simply discarded. So we exec the FD to /dev/null,
11943 # effectively closing config.log, so it can be properly (re)opened and
11944 # appended to by config.status. When coming back to configure, we
11945 # need to make the FD available again.
11946 if test "$no_create" != yes; then
11948 ac_config_status_args=
11949 test "$silent" = yes &&
11950 ac_config_status_args="$ac_config_status_args --quiet"
11952 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11954 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11955 # would make configure fail if this is the last instruction.
11956 $ac_cs_success || as_fn_exit 1
11958 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
11959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11960 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11964 if test -z "$groff_no_x"; then
11965 if test "x$with_appresdir" = "x"; then
11966 { $as_echo "$as_me:${as_lineno-$LINENO}:
11968 The application resource files for gxditview will be installed as
11970 $appresdir/GXditview
11974 $appresdir/GXditview-color
11976 (existing files will be saved by appending \`.old' to the file
11979 To install them into a different directory, say, \`/etc/gxditview',
11980 add \`--with-appresdir=/etc/gxditview' to the configure script
11981 command line options and rerun it. The environment variable
11982 \`APPLRESDIR' must then be set to \`/etc/' (note the trailing slash),
11983 omitting the \`gxditview' part which is automatically appended by
11984 the X11 searching routines for resource files. More details can be
11985 found in the X(7) manual page.
11989 The application resource files for gxditview will be installed as
11991 $appresdir/GXditview
11995 $appresdir/GXditview-color
11997 (existing files will be saved by appending \`.old' to the file
12000 To install them into a different directory, say, \`/etc/gxditview',
12001 add \`--with-appresdir=/etc/gxditview' to the configure script
12002 command line options and rerun it. The environment variable
12003 \`APPLRESDIR' must then be set to \`/etc/' (note the trailing slash),
12004 omitting the \`gxditview' part which is automatically appended by
12005 the X11 searching routines for resource files. More details can be
12006 found in the X(7) manual page.