2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.53.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
10 if expr a
: '\(a\)' >/dev
/null
2>&1; then
17 ## --------------------- ##
18 ## M4sh Initialization. ##
19 ## --------------------- ##
21 # Be Bourne compatible
22 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
25 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
30 # Support unset when possible.
31 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
37 (set +x
; test -n "`(LANG=C; export LANG) 2>&1`") &&
38 { $as_unset LANG ||
test "${LANG+set}" != set; } ||
39 { LANG
=C
; export LANG
; }
40 (set +x
; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
41 { $as_unset LC_ALL ||
test "${LC_ALL+set}" != set; } ||
42 { LC_ALL
=C
; export LC_ALL
; }
43 (set +x
; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
44 { $as_unset LC_TIME ||
test "${LC_TIME+set}" != set; } ||
45 { LC_TIME
=C
; export LC_TIME
; }
46 (set +x
; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
47 { $as_unset LC_CTYPE ||
test "${LC_CTYPE+set}" != set; } ||
48 { LC_CTYPE
=C
; export LC_CTYPE
; }
49 (set +x
; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
50 { $as_unset LANGUAGE ||
test "${LANGUAGE+set}" != set; } ||
51 { LANGUAGE
=C
; export LANGUAGE
; }
52 (set +x
; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
53 { $as_unset LC_COLLATE ||
test "${LC_COLLATE+set}" != set; } ||
54 { LC_COLLATE
=C
; export LC_COLLATE
; }
55 (set +x
; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
56 { $as_unset LC_NUMERIC ||
test "${LC_NUMERIC+set}" != set; } ||
57 { LC_NUMERIC
=C
; export LC_NUMERIC
; }
58 (set +x
; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
59 { $as_unset LC_MESSAGES ||
test "${LC_MESSAGES+set}" != set; } ||
60 { LC_MESSAGES
=C
; export LC_MESSAGES
; }
63 # Name of the executable.
64 as_me
=`(basename "$0") 2>/dev/null ||
65 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
66 X"$0" : 'X\(//\)$' \| \
67 X"$0" : 'X\(/\)$' \| \
68 . : '\(.\)' 2>/dev/null ||
70 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
71 /^X\/\(\/\/\)$/{ s//\1/; q; }
72 /^X\/\(\/\).*/{ s//\1/; q; }
75 # PATH needs CR, and LINENO needs CR and PATH.
76 # Avoid depending upon Character Ranges.
77 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
78 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
79 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
80 as_cr_digits
='0123456789'
81 as_cr_alnum
=$as_cr_Letters$as_cr_digits
83 # The user is always right.
84 if test "${PATH_SEPARATOR+set}" != set; then
85 echo "#! /bin/sh" >conftest.sh
86 echo "exit 0" >>conftest.sh
88 if (PATH
=".;."; conftest.sh
) >/dev
/null
2>&1; then
99 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
100 test "x$as_lineno_1" != "x$as_lineno_2" &&
101 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
102 # Find who we are. Look in the path if we contain no path at all
105 *[\\/]* ) as_myself
=$0 ;;
106 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
110 test -z "$as_dir" && as_dir
=.
111 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
116 # We did not find ourselves, most probably we were run as `sh COMMAND'
117 # in which case we are not to be found in the path.
118 if test "x$as_myself" = x
; then
121 if test ! -f "$as_myself"; then
122 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
123 { (exit 1); exit 1; }; }
125 case $CONFIG_SHELL in
127 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
128 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
131 test -z "$as_dir" && as_dir
=.
132 for as_base
in sh bash ksh sh5
; do
135 if ("$as_dir/$as_base" -c '
138 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
139 test "x$as_lineno_1" != "x$as_lineno_2" &&
140 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
141 CONFIG_SHELL
=$as_dir/$as_base
143 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
152 # uniformly replaced by the line number. The first 'sed' inserts a
153 # line-number line before each line; the second 'sed' does the real
154 # work. The second script uses 'N' to pair each line-number line
155 # with the numbered line, and appends trailing '-' during
156 # substitution so that $LINENO is not a special case at line end.
157 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
158 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
159 sed '=' <$as_myself |
164 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
167 s,^['$as_cr_digits']*\n,,
169 chmod +x
$as_me.lineno ||
170 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
171 { (exit 1); exit 1; }; }
173 # Don't try to exec as it changes $[0], causing all sort of problems
174 # (the dirname of $[0] is not the place where we might find the
175 # original and so on. Autoconf is especially sensible to this).
177 # Exit status is that of the last command.
182 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
183 *c
*,-n*) ECHO_N
= ECHO_C
='
185 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
186 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
189 if expr a
: '\(a\)' >/dev
/null
2>&1; then
195 rm -f conf$$ conf$$.exe conf$$.
file
197 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
198 # We could just check for DJGPP; but this test a) works b) is more generic
199 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
200 if test -f conf$$.exe
; then
201 # Don't use ln at all; we don't have any links
206 elif ln conf$$.
file conf$$
2>/dev
/null
; then
211 rm -f conf$$ conf$$.exe conf$$.
file
213 as_executable_p
="test -f"
215 # Sed expression to map a string onto a valid CPP name.
216 as_tr_cpp
="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
218 # Sed expression to map a string onto a valid variable name.
219 as_tr_sh
="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
223 # We need space, tab and new line, in precisely that order.
229 $as_unset CDPATH ||
test "${CDPATH+set}" != set ||
{ CDPATH
=$PATH_SEPARATOR; export CDPATH
; }
233 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
234 # so uname gets run too.
235 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
242 ac_default_prefix
=/usr
/local
247 SHELL
=${CONFIG_SHELL-/bin/sh}
249 # Maximum number of lines to put in a shell here document.
250 # This variable seems obsolete. It should probably be removed, and
251 # only ac_max_sed_lines should be used.
252 : ${ac_max_here_lines=38}
254 # Identity of this package.
261 ac_unique_file
="src/roff/groff/groff.cc"
262 # Factoring default headers for most tests.
263 ac_includes_default
="\
266 # include <sys/types.h>
269 # include <sys/stat.h>
280 # if !STDC_HEADERS && HAVE_MEMORY_H
286 # include <strings.h>
289 # include <inttypes.h>
300 # Initialize some variables set by options.
302 ac_init_version
=false
303 # The variables have the same names as the options, with
304 # dashes changed to underlines.
312 program_transform_name
=s
,x
,x
,
320 # Installation directory options.
321 # These are left unexpanded so users can "make install exec_prefix=/foo"
322 # and all the variables that are supposed to be based on exec_prefix
323 # by default will actually change.
324 # Use braces instead of parens because sh, perl, etc. also accept them.
325 bindir
='${exec_prefix}/bin'
326 sbindir
='${exec_prefix}/sbin'
327 libexecdir
='${exec_prefix}/libexec'
328 datadir
='${prefix}/share'
329 sysconfdir
='${prefix}/etc'
330 sharedstatedir
='${prefix}/com'
331 localstatedir
='${prefix}/var'
332 libdir
='${exec_prefix}/lib'
333 includedir
='${prefix}/include'
334 oldincludedir
='/usr/include'
335 infodir
='${prefix}/info'
336 mandir
='${prefix}/man'
341 # If the previous option needs an argument, assign it.
342 if test -n "$ac_prev"; then
343 eval "$ac_prev=\$ac_option"
348 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
350 # Accept the important Cygnus configure options, so we can diagnose typos.
354 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
356 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
359 -build |
--build |
--buil |
--bui |
--bu)
360 ac_prev
=build_alias
;;
361 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
362 build_alias
=$ac_optarg ;;
364 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
365 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
366 ac_prev
=cache_file
;;
367 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
368 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
369 cache_file
=$ac_optarg ;;
372 cache_file
=config.cache
;;
374 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
376 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
378 datadir
=$ac_optarg ;;
380 -disable-* |
--disable-*)
381 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
382 # Reject names that are not valid shell variable names.
383 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
384 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
385 { (exit 1); exit 1; }; }
386 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
387 eval "enable_$ac_feature=no" ;;
389 -enable-* |
--enable-*)
390 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
391 # Reject names that are not valid shell variable names.
392 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
393 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
394 { (exit 1); exit 1; }; }
395 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
397 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
400 eval "enable_$ac_feature='$ac_optarg'" ;;
402 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
403 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
404 |
--exec |
--exe |
--ex)
405 ac_prev
=exec_prefix
;;
406 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
407 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
408 |
--exec=* |
--exe=* |
--ex=*)
409 exec_prefix
=$ac_optarg ;;
411 -gas |
--gas |
--ga |
--g)
412 # Obsolete; use --with-gas.
415 -help |
--help |
--hel |
--he |
-h)
417 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
418 ac_init_help
=recursive
;;
419 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
420 ac_init_help
=short
;;
422 -host |
--host |
--hos |
--ho)
423 ac_prev
=host_alias
;;
424 -host=* |
--host=* |
--hos=* |
--ho=*)
425 host_alias
=$ac_optarg ;;
427 -includedir |
--includedir |
--includedi |
--included |
--include \
428 |
--includ |
--inclu |
--incl |
--inc)
429 ac_prev
=includedir
;;
430 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
431 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
432 includedir
=$ac_optarg ;;
434 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
436 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
437 infodir
=$ac_optarg ;;
439 -libdir |
--libdir |
--libdi |
--libd)
441 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
444 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
445 |
--libexe |
--libex |
--libe)
446 ac_prev
=libexecdir
;;
447 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
448 |
--libexe=* |
--libex=* |
--libe=*)
449 libexecdir
=$ac_optarg ;;
451 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
452 |
--localstate |
--localstat |
--localsta |
--localst \
453 |
--locals |
--local |
--loca |
--loc |
--lo)
454 ac_prev
=localstatedir
;;
455 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
456 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
457 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
458 localstatedir
=$ac_optarg ;;
460 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
462 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
466 # Obsolete; use --without-fp.
469 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
470 |
--no-cr |
--no-c |
-n)
473 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
474 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
477 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
478 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
479 |
--oldin |
--oldi |
--old |
--ol |
--o)
480 ac_prev
=oldincludedir
;;
481 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
482 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
483 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
484 oldincludedir
=$ac_optarg ;;
486 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
488 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
491 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
492 |
--program-pre |
--program-pr |
--program-p)
493 ac_prev
=program_prefix
;;
494 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
495 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
496 program_prefix
=$ac_optarg ;;
498 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
499 |
--program-suf |
--program-su |
--program-s)
500 ac_prev
=program_suffix
;;
501 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
502 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
503 program_suffix
=$ac_optarg ;;
505 -program-transform-name |
--program-transform-name \
506 |
--program-transform-nam |
--program-transform-na \
507 |
--program-transform-n |
--program-transform- \
508 |
--program-transform |
--program-transfor \
509 |
--program-transfo |
--program-transf \
510 |
--program-trans |
--program-tran \
511 |
--progr-tra |
--program-tr |
--program-t)
512 ac_prev
=program_transform_name
;;
513 -program-transform-name=* |
--program-transform-name=* \
514 |
--program-transform-nam=* |
--program-transform-na=* \
515 |
--program-transform-n=* |
--program-transform-=* \
516 |
--program-transform=* |
--program-transfor=* \
517 |
--program-transfo=* |
--program-transf=* \
518 |
--program-trans=* |
--program-tran=* \
519 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
520 program_transform_name
=$ac_optarg ;;
522 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
523 |
-silent |
--silent |
--silen |
--sile |
--sil)
526 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
528 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
530 sbindir
=$ac_optarg ;;
532 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
533 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
534 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
536 ac_prev
=sharedstatedir
;;
537 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
538 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
539 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
541 sharedstatedir
=$ac_optarg ;;
543 -site |
--site |
--sit)
545 -site=* |
--site=* |
--sit=*)
548 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
550 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
553 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
554 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
555 ac_prev
=sysconfdir
;;
556 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
557 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
558 sysconfdir
=$ac_optarg ;;
560 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
561 ac_prev
=target_alias
;;
562 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
563 target_alias
=$ac_optarg ;;
565 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
568 -version |
--version |
--versio |
--versi |
--vers |
-V)
572 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
573 # Reject names that are not valid shell variable names.
574 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
575 { echo "$as_me: error: invalid package name: $ac_package" >&2
576 { (exit 1); exit 1; }; }
577 ac_package
=`echo $ac_package| sed 's/-/_/g'`
579 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
582 eval "with_$ac_package='$ac_optarg'" ;;
584 -without-* |
--without-*)
585 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
586 # Reject names that are not valid shell variable names.
587 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
588 { echo "$as_me: error: invalid package name: $ac_package" >&2
589 { (exit 1); exit 1; }; }
590 ac_package
=`echo $ac_package | sed 's/-/_/g'`
591 eval "with_$ac_package=no" ;;
594 # Obsolete; use --with-x.
597 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
598 |
--x-incl |
--x-inc |
--x-in |
--x-i)
599 ac_prev
=x_includes
;;
600 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
601 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
602 x_includes
=$ac_optarg ;;
604 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
605 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
606 ac_prev
=x_libraries
;;
607 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
608 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
609 x_libraries
=$ac_optarg ;;
611 -*) { echo "$as_me: error: unrecognized option: $ac_option
612 Try \`$0 --help' for more information." >&2
613 { (exit 1); exit 1; }; }
617 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
618 # Reject names that are not valid shell variable names.
619 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
620 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
621 { (exit 1); exit 1; }; }
622 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
623 eval "$ac_envvar='$ac_optarg'"
627 # FIXME: should be removed in autoconf 3.0.
628 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
629 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
630 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
631 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
637 if test -n "$ac_prev"; then
638 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
639 { echo "$as_me: error: missing argument to $ac_option" >&2
640 { (exit 1); exit 1; }; }
643 # Be sure to have absolute paths.
644 for ac_var
in exec_prefix prefix
646 eval ac_val
=$
`echo $ac_var`
648 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
649 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
650 { (exit 1); exit 1; }; };;
654 # Be sure to have absolute paths.
655 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
656 localstatedir libdir includedir oldincludedir infodir mandir
658 eval ac_val
=$
`echo $ac_var`
660 [\\/$
]* | ?
:[\\/]* ) ;;
661 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
662 { (exit 1); exit 1; }; };;
666 # There might be people who depend on the old broken behavior: `$host'
667 # used to hold the argument of --host etc.
668 # FIXME: To remove some day.
673 # FIXME: To remove some day.
674 if test "x$host_alias" != x
; then
675 if test "x$build_alias" = x
; then
676 cross_compiling
=maybe
677 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
678 If a cross compiler is detected then cross compile mode will be used." >&2
679 elif test "x$build_alias" != "x$host_alias"; then
685 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
687 test "$silent" = yes && exec 6>/dev
/null
690 # Find the source files, if location was not specified.
691 if test -z "$srcdir"; then
692 ac_srcdir_defaulted
=yes
693 # Try the directory containing this script, then its parent.
694 ac_confdir
=`(dirname "$0") 2>/dev/null ||
695 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
696 X"$0" : 'X\(//\)[^/]' \| \
697 X"$0" : 'X\(//\)$' \| \
698 X"$0" : 'X\(/\)' \| \
699 . : '\(.\)' 2>/dev/null ||
701 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
702 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
703 /^X\(\/\/\)$/{ s//\1/; q; }
704 /^X\(\/\).*/{ s//\1/; q; }
707 if test ! -r $srcdir/$ac_unique_file; then
711 ac_srcdir_defaulted
=no
713 if test ! -r $srcdir/$ac_unique_file; then
714 if test "$ac_srcdir_defaulted" = yes; then
715 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
716 { (exit 1); exit 1; }; }
718 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
719 { (exit 1); exit 1; }; }
722 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
723 ac_env_build_alias_set
=${build_alias+set}
724 ac_env_build_alias_value
=$build_alias
725 ac_cv_env_build_alias_set
=${build_alias+set}
726 ac_cv_env_build_alias_value
=$build_alias
727 ac_env_host_alias_set
=${host_alias+set}
728 ac_env_host_alias_value
=$host_alias
729 ac_cv_env_host_alias_set
=${host_alias+set}
730 ac_cv_env_host_alias_value
=$host_alias
731 ac_env_target_alias_set
=${target_alias+set}
732 ac_env_target_alias_value
=$target_alias
733 ac_cv_env_target_alias_set
=${target_alias+set}
734 ac_cv_env_target_alias_value
=$target_alias
735 ac_env_CC_set
=${CC+set}
737 ac_cv_env_CC_set
=${CC+set}
738 ac_cv_env_CC_value
=$CC
739 ac_env_CFLAGS_set
=${CFLAGS+set}
740 ac_env_CFLAGS_value
=$CFLAGS
741 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
742 ac_cv_env_CFLAGS_value
=$CFLAGS
743 ac_env_LDFLAGS_set
=${LDFLAGS+set}
744 ac_env_LDFLAGS_value
=$LDFLAGS
745 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
746 ac_cv_env_LDFLAGS_value
=$LDFLAGS
747 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
748 ac_env_CPPFLAGS_value
=$CPPFLAGS
749 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
750 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
751 ac_env_CXX_set
=${CXX+set}
752 ac_env_CXX_value
=$CXX
753 ac_cv_env_CXX_set
=${CXX+set}
754 ac_cv_env_CXX_value
=$CXX
755 ac_env_CXXFLAGS_set
=${CXXFLAGS+set}
756 ac_env_CXXFLAGS_value
=$CXXFLAGS
757 ac_cv_env_CXXFLAGS_set
=${CXXFLAGS+set}
758 ac_cv_env_CXXFLAGS_value
=$CXXFLAGS
759 ac_env_CPP_set
=${CPP+set}
760 ac_env_CPP_value
=$CPP
761 ac_cv_env_CPP_set
=${CPP+set}
762 ac_cv_env_CPP_value
=$CPP
765 # Report the --help message.
767 if test "$ac_init_help" = "long"; then
768 # Omit some internal or obsolete options to make the list less imposing.
769 # This message is too long to be a string in the A/UX 3.1 sh.
771 \`configure' configures this package to adapt to many kinds of systems.
773 Usage: $0 [OPTION]... [VAR=VALUE]...
775 To assign environment variables (e.g., CC, CFLAGS...), specify them as
776 VAR=VALUE. See below for descriptions of some of the useful variables.
778 Defaults for the options are specified in brackets.
781 -h, --help display this help and exit
782 --help=short display options specific to this package
783 --help=recursive display the short help of all the included packages
784 -V, --version display version information and exit
785 -q, --quiet, --silent do not print \`checking...' messages
786 --cache-file=FILE cache test results in FILE [disabled]
787 -C, --config-cache alias for \`--cache-file=config.cache'
788 -n, --no-create do not create output files
789 --srcdir=DIR find the sources in DIR [configure dir or \`..']
794 Installation directories:
795 --prefix=PREFIX install architecture-independent files in PREFIX
797 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
800 By default, \`make install' will install all the files in
801 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
802 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
803 for instance \`--prefix=\$HOME'.
805 For better control, use the options below.
807 Fine tuning of the installation directories:
808 --bindir=DIR user executables [EPREFIX/bin]
809 --sbindir=DIR system admin executables [EPREFIX/sbin]
810 --libexecdir=DIR program executables [EPREFIX/libexec]
811 --datadir=DIR read-only architecture-independent data [PREFIX/share]
812 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
813 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
814 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
815 --libdir=DIR object code libraries [EPREFIX/lib]
816 --includedir=DIR C header files [PREFIX/include]
817 --oldincludedir=DIR C header files for non-gcc [/usr/include]
818 --infodir=DIR info documentation [PREFIX/info]
819 --mandir=DIR man documentation [PREFIX/man]
826 if test -n "$ac_init_help"; then
830 Some influential environment variables
:
831 CC C compiler
command
832 CFLAGS C compiler flags
833 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
834 nonstandard directory
<lib dir
>
835 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
836 headers
in a nonstandard directory
<include dir
>
837 CXX C
++ compiler
command
838 CXXFLAGS C
++ compiler flags
841 Use these variables to override the choices made by
`configure' or to help
842 it to find libraries and programs with nonstandard names/locations.
847 if test "$ac_init_help" = "recursive"; then
848 # If there are subdirs, report their specific --help.
850 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
851 test -d $ac_dir || continue
854 if test "$ac_dir" != .; then
855 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
856 # A "../" for each directory in $ac_dir_suffix.
857 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
859 ac_dir_suffix= ac_top_builddir=
863 .) # No --srcdir option. We are building in place.
865 if test -z "$ac_top_builddir"; then
868 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
870 [\\/]* | ?:[\\/]* ) # Absolute path.
871 ac_srcdir=$srcdir$ac_dir_suffix;
872 ac_top_srcdir=$srcdir ;;
874 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
875 ac_top_srcdir=$ac_top_builddir$srcdir ;;
877 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
879 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
880 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
881 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
882 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
885 # Check for guested configure; otherwise get Cygnus style configure.
886 if test -f $ac_srcdir/configure.gnu; then
888 $SHELL $ac_srcdir/configure.gnu --help=recursive
889 elif test -f $ac_srcdir/configure; then
891 $SHELL $ac_srcdir/configure --help=recursive
892 elif test -f $ac_srcdir/configure.ac ||
893 test -f $ac_srcdir/configure.in; then
897 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
903 test -n "$ac_init_help" && exit 0
904 if $ac_init_version; then
907 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
908 Free Software Foundation, Inc.
909 This configure script is free software; the Free Software Foundation
910 gives unlimited permission to copy, distribute and modify it.
916 This file contains any messages produced by compilers while
917 running configure, to aid debugging if configure makes a mistake.
919 It was created by $as_me, which was
920 generated by GNU Autoconf 2.53. Invocation command line was
931 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
932 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
933 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
934 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
935 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
937 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
938 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
940 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
941 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
942 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
943 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
944 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
945 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
946 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
954 test -z "$as_dir" && as_dir=.
970 # Keep a trace of the command line.
971 # Strip out --no-create and --no-recursion so they do not pile up.
972 # Also quote any args containing shell meta-characters.
978 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
979 | --no-cr | --no-c | -n ) continue ;;
980 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
981 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
983 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
984 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
986 case " $ac_configure_args " in
987 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
988 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
991 # Get rid of the leading space.
994 # When interrupted or exit'd, cleanup temporary files, and complete
995 # config.log. We remove comments because anyway the quotes in there
996 # would cause problems or look ugly.
997 # WARNING: Be sure not to use single quotes in there, as some shells,
998 # such as our DU 5.0 friend, will then `close
' the trap.
1000 # Save into config.log some information that might help in debugging.
1004 ## ---------------- ##
1005 ## Cache variables. ##
1006 ## ---------------- ##
1009 # The following way of writing the cache mishandles newlines in values,
1012 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1015 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1016 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1020 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1025 if test -s confdefs.h
; then
1032 sed "/^$/d" confdefs.h
1035 test "$ac_signal" != 0 &&
1036 echo "$as_me: caught signal $ac_signal"
1037 echo "$as_me: exit $exit_status"
1039 rm -f core core.
* *.core
&&
1040 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1043 for ac_signal in 1 2 13 15; do
1044 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1048 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1049 rm -rf conftest* confdefs.h
1050 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1053 # Predefined preprocessor variables.
1055 cat >>confdefs.h <<_ACEOF
1056 #define PACKAGE_NAME "$PACKAGE_NAME"
1060 cat >>confdefs.h <<_ACEOF
1061 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1065 cat >>confdefs.h <<_ACEOF
1066 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1070 cat >>confdefs.h <<_ACEOF
1071 #define PACKAGE_STRING "$PACKAGE_STRING"
1075 cat >>confdefs.h <<_ACEOF
1076 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1080 # Let the site file select an alternate cache file if it wants to.
1081 # Prefer explicitly selected file to automatically selected ones.
1082 if test -z "$CONFIG_SITE"; then
1083 if test "x$prefix" != xNONE; then
1084 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1086 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1089 for ac_site_file in $CONFIG_SITE; do
1090 if test -r "$ac_site_file"; then
1091 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1092 echo "$as_me: loading site script $ac_site_file" >&6;}
1093 sed 's
/^
/|
/' "$ac_site_file" >&5
1098 if test -r "$cache_file"; then
1099 # Some versions of bash will fail to source /dev/null (special
1100 # files actually), so we avoid doing that.
1101 if test -f "$cache_file"; then
1102 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1103 echo "$as_me: loading cache $cache_file" >&6;}
1105 [\\/]* | ?:[\\/]* ) . $cache_file;;
1106 *) . ./$cache_file;;
1110 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1111 echo "$as_me: creating cache $cache_file" >&6;}
1115 # Check that the precious variables saved in the cache have kept the same
1117 ac_cache_corrupted=false
1118 for ac_var in `(set) 2>&1 |
1119 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1120 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1121 eval ac_new_set=\$ac_env_${ac_var}_set
1122 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1123 eval ac_new_val="\$ac_env_${ac_var}_value"
1124 case $ac_old_set,$ac_new_set in
1126 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1127 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1128 ac_cache_corrupted=: ;;
1130 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1131 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1132 ac_cache_corrupted=: ;;
1135 if test "x$ac_old_val" != "x$ac_new_val"; then
1136 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1137 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1138 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1139 echo "$as_me: former value: $ac_old_val" >&2;}
1140 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1141 echo "$as_me: current value: $ac_new_val" >&2;}
1142 ac_cache_corrupted=:
1145 # Pass precious variables to config.status.
1146 if test "$ac_new_set" = set; then
1148 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1149 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1150 *) ac_arg=$ac_var=$ac_new_val ;;
1152 case " $ac_configure_args " in
1153 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1154 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1158 if $ac_cache_corrupted; then
1159 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1160 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1161 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1162 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1163 { (exit 1); exit 1; }; }
1167 ac_cpp='$CPP $CPPFLAGS'
1168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1169 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1189 ac_config_headers="$ac_config_headers src/include/config.h:src/include/config.hin"
1192 ac_srcdir_defaulted=no
1193 srcdir=`cd $srcdir; pwd`
1194 groff_top_builddir=`pwd`
1197 ac_cpp='$CPP $CPPFLAGS'
1198 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1199 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1200 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1201 if test -n "$ac_tool_prefix"; then
1202 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1203 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1204 echo "$as_me:$LINENO: checking for $ac_word" >&5
1205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1206 if test "${ac_cv_prog_CC+set}" = set; then
1207 echo $ECHO_N "(cached) $ECHO_C" >&6
1209 if test -n "$CC"; then
1210 ac_cv_prog_CC="$CC" # Let the user override the test.
1212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1216 test -z "$as_dir" && as_dir=.
1217 for ac_exec_ext in '' $ac_executable_extensions; do
1218 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1219 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1220 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1229 if test -n "$CC"; then
1230 echo "$as_me:$LINENO: result: $CC" >&5
1231 echo "${ECHO_T}$CC" >&6
1233 echo "$as_me:$LINENO: result: no" >&5
1234 echo "${ECHO_T}no" >&6
1238 if test -z "$ac_cv_prog_CC"; then
1240 # Extract the first word of "gcc", so it can be a program name with args.
1241 set dummy gcc; ac_word=$2
1242 echo "$as_me:$LINENO: checking for $ac_word" >&5
1243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1244 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1245 echo $ECHO_N "(cached) $ECHO_C" >&6
1247 if test -n "$ac_ct_CC"; then
1248 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1254 test -z "$as_dir" && as_dir=.
1255 for ac_exec_ext in '' $ac_executable_extensions; do
1256 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1257 ac_cv_prog_ac_ct_CC="gcc"
1258 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1266 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1267 if test -n "$ac_ct_CC"; then
1268 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1269 echo "${ECHO_T}$ac_ct_CC" >&6
1271 echo "$as_me:$LINENO: result: no" >&5
1272 echo "${ECHO_T}no" >&6
1280 if test -z "$CC"; then
1281 if test -n "$ac_tool_prefix"; then
1282 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1283 set dummy ${ac_tool_prefix}cc; ac_word=$2
1284 echo "$as_me:$LINENO: checking for $ac_word" >&5
1285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1286 if test "${ac_cv_prog_CC+set}" = set; then
1287 echo $ECHO_N "(cached) $ECHO_C" >&6
1289 if test -n "$CC"; then
1290 ac_cv_prog_CC="$CC" # Let the user override the test.
1292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1296 test -z "$as_dir" && as_dir=.
1297 for ac_exec_ext in '' $ac_executable_extensions; do
1298 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1299 ac_cv_prog_CC="${ac_tool_prefix}cc"
1300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1309 if test -n "$CC"; then
1310 echo "$as_me:$LINENO: result: $CC" >&5
1311 echo "${ECHO_T}$CC" >&6
1313 echo "$as_me:$LINENO: result: no" >&5
1314 echo "${ECHO_T}no" >&6
1318 if test -z "$ac_cv_prog_CC"; then
1320 # Extract the first word of "cc", so it can be a program name with args.
1321 set dummy cc; ac_word=$2
1322 echo "$as_me:$LINENO: checking for $ac_word" >&5
1323 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1324 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1325 echo $ECHO_N "(cached) $ECHO_C" >&6
1327 if test -n "$ac_ct_CC"; then
1328 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1334 test -z "$as_dir" && as_dir=.
1335 for ac_exec_ext in '' $ac_executable_extensions; do
1336 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1337 ac_cv_prog_ac_ct_CC="cc"
1338 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1346 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1347 if test -n "$ac_ct_CC"; then
1348 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1349 echo "${ECHO_T}$ac_ct_CC" >&6
1351 echo "$as_me:$LINENO: result: no" >&5
1352 echo "${ECHO_T}no" >&6
1361 if test -z "$CC"; then
1362 # Extract the first word of "cc", so it can be a program name with args.
1363 set dummy cc; ac_word=$2
1364 echo "$as_me:$LINENO: checking for $ac_word" >&5
1365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1366 if test "${ac_cv_prog_CC+set}" = set; then
1367 echo $ECHO_N "(cached) $ECHO_C" >&6
1369 if test -n "$CC"; then
1370 ac_cv_prog_CC="$CC" # Let the user override the test.
1373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1377 test -z "$as_dir" && as_dir=.
1378 for ac_exec_ext in '' $ac_executable_extensions; do
1379 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1380 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1381 ac_prog_rejected=yes
1385 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1391 if test $ac_prog_rejected = yes; then
1392 # We found a bogon in the path, so make sure we never use it.
1393 set dummy $ac_cv_prog_CC
1395 if test $# != 0; then
1396 # We chose a different compiler from the bogus one.
1397 # However, it has the same basename, so the bogon will be chosen
1398 # first if we set CC to just the basename; use the full file name.
1400 set dummy "$as_dir/$ac_word" ${1+"$@"}
1408 if test -n "$CC"; then
1409 echo "$as_me:$LINENO: result: $CC" >&5
1410 echo "${ECHO_T}$CC" >&6
1412 echo "$as_me:$LINENO: result: no" >&5
1413 echo "${ECHO_T}no" >&6
1417 if test -z "$CC"; then
1418 if test -n "$ac_tool_prefix"; then
1421 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1422 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1423 echo "$as_me:$LINENO: checking for $ac_word" >&5
1424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1425 if test "${ac_cv_prog_CC+set}" = set; then
1426 echo $ECHO_N "(cached) $ECHO_C" >&6
1428 if test -n "$CC"; then
1429 ac_cv_prog_CC="$CC" # Let the user override the test.
1431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1435 test -z "$as_dir" && as_dir=.
1436 for ac_exec_ext in '' $ac_executable_extensions; do
1437 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1438 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1448 if test -n "$CC"; then
1449 echo "$as_me:$LINENO: result: $CC" >&5
1450 echo "${ECHO_T}$CC" >&6
1452 echo "$as_me:$LINENO: result: no" >&5
1453 echo "${ECHO_T}no" >&6
1456 test -n "$CC" && break
1459 if test -z "$CC"; then
1463 # Extract the first word of "$ac_prog", so it can be a program name with args.
1464 set dummy $ac_prog; ac_word=$2
1465 echo "$as_me:$LINENO: checking for $ac_word" >&5
1466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1467 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1468 echo $ECHO_N "(cached) $ECHO_C" >&6
1470 if test -n "$ac_ct_CC"; then
1471 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1477 test -z "$as_dir" && as_dir=.
1478 for ac_exec_ext in '' $ac_executable_extensions; do
1479 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1480 ac_cv_prog_ac_ct_CC="$ac_prog"
1481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1489 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1490 if test -n "$ac_ct_CC"; then
1491 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1492 echo "${ECHO_T}$ac_ct_CC" >&6
1494 echo "$as_me:$LINENO: result: no" >&5
1495 echo "${ECHO_T}no" >&6
1498 test -n "$ac_ct_CC" && break
1507 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1508 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1509 { (exit 1); exit 1; }; }
1511 # Provide some information about the compiler.
1512 echo "$as_me:$LINENO:" \
1513 "checking for C compiler version" >&5
1514 ac_compiler=`set X $ac_compile; echo $2`
1515 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1516 (eval $ac_compiler --version </dev/null >&5) 2>&5
1518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1519 (exit $ac_status); }
1520 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1521 (eval $ac_compiler -v </dev/null >&5) 2>&5
1523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1524 (exit $ac_status); }
1525 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1526 (eval $ac_compiler -V </dev/null >&5) 2>&5
1528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1529 (exit $ac_status); }
1531 cat >conftest.$ac_ext <<_ACEOF
1532 #line $LINENO "configure"
1533 #include "confdefs.h"
1535 #ifdef F77_DUMMY_MAIN
1539 int F77_DUMMY_MAIN() { return 1; }
1549 ac_clean_files_save=$ac_clean_files
1550 ac_clean_files="$ac_clean_files a.out a.exe"
1551 # Try to create an executable without -o first, disregard a.out.
1552 # It will help us diagnose broken compilers, and finding out an intuition
1554 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1555 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1556 ac_link_default=`echo "$ac_link" | sed 's
/ -o *conftest
[^
]*//'`
1557 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1558 (eval $ac_link_default) 2>&5
1560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1561 (exit $ac_status); }; then
1562 # Find the output, starting from the most likely. This scheme is
1563 # not robust to junk in `.', hence go to wildcards
(a.
*) only as a last
1566 # Be careful to initialize this variable, since it used to be cached.
1567 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1569 for ac_file
in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
1570 ls a.out conftest 2>/dev/null;
1571 ls a.* conftest.* 2>/dev/null`; do
1573 *.
$ac_ext |
*.o |
*.obj |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM
) ;;
1574 a.out
) # We found the default executable, but exeext='' is most
1577 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1578 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1585 echo "$as_me: failed program was:" >&5
1586 cat conftest.
$ac_ext >&5
1587 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
1588 echo "$as_me: error: C compiler cannot create executables" >&2;}
1589 { (exit 77); exit 77; }; }
1592 ac_exeext
=$ac_cv_exeext
1593 echo "$as_me:$LINENO: result: $ac_file" >&5
1594 echo "${ECHO_T}$ac_file" >&6
1596 # Check the compiler produces executables we can run. If not, either
1597 # the compiler is broken, or we cross compile.
1598 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1599 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1600 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1601 # If not cross compiling, check that we can run a simple program.
1602 if test "$cross_compiling" != yes; then
1603 if { ac_try
='./$ac_file'
1604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1608 (exit $ac_status); }; }; then
1611 if test "$cross_compiling" = maybe
; then
1614 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1615 If you meant to cross compile, use \`--host'." >&5
1616 echo "$as_me: error: cannot run C compiled programs.
1617 If you meant to cross compile, use \`--host'." >&2;}
1618 { (exit 1); exit 1; }; }
1622 echo "$as_me:$LINENO: result: yes" >&5
1623 echo "${ECHO_T}yes" >&6
1625 rm -f a.out a.exe conftest
$ac_cv_exeext
1626 ac_clean_files
=$ac_clean_files_save
1627 # Check the compiler produces executables we can run. If not, either
1628 # the compiler is broken, or we cross compile.
1629 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1630 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1631 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1632 echo "${ECHO_T}$cross_compiling" >&6
1634 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1635 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1637 (eval $ac_link) 2>&5
1639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1640 (exit $ac_status); }; then
1641 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1642 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1643 # work properly (i.e., refer to `conftest.exe'), while it won't with
1645 for ac_file
in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1647 *.
$ac_ext |
*.o |
*.obj |
*.xcoff |
*.tds |
*.d |
*.pdb
) ;;
1648 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1655 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1656 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
1657 { (exit 1); exit 1; }; }
1660 rm -f conftest
$ac_cv_exeext
1661 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1662 echo "${ECHO_T}$ac_cv_exeext" >&6
1664 rm -f conftest.
$ac_ext
1665 EXEEXT
=$ac_cv_exeext
1667 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1668 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1669 if test "${ac_cv_objext+set}" = set; then
1670 echo $ECHO_N "(cached) $ECHO_C" >&6
1672 cat >conftest.
$ac_ext <<_ACEOF
1673 #line $LINENO "configure"
1674 #include "confdefs.h"
1676 #ifdef F77_DUMMY_MAIN
1680 int F77_DUMMY_MAIN() { return 1; }
1690 rm -f conftest.o conftest.obj
1691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1692 (eval $ac_compile) 2>&5
1694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1695 (exit $ac_status); }; then
1696 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1698 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb
) ;;
1699 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
1704 echo "$as_me: failed program was:" >&5
1705 cat conftest.
$ac_ext >&5
1706 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
1707 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
1708 { (exit 1); exit 1; }; }
1711 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
1713 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1714 echo "${ECHO_T}$ac_cv_objext" >&6
1715 OBJEXT
=$ac_cv_objext
1717 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1718 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1719 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1720 echo $ECHO_N "(cached) $ECHO_C" >&6
1722 cat >conftest.
$ac_ext <<_ACEOF
1723 #line $LINENO "configure"
1724 #include "confdefs.h"
1726 #ifdef F77_DUMMY_MAIN
1730 int F77_DUMMY_MAIN() { return 1; }
1743 rm -f conftest.
$ac_objext
1744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1745 (eval $ac_compile) 2>&5
1747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1748 (exit $ac_status); } &&
1749 { ac_try
='test -s conftest.$ac_objext'
1750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1754 (exit $ac_status); }; }; then
1757 echo "$as_me: failed program was:" >&5
1758 cat conftest.
$ac_ext >&5
1761 rm -f conftest.
$ac_objext conftest.
$ac_ext
1762 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
1765 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1766 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1767 GCC
=`test $ac_compiler_gnu = yes && echo yes`
1768 ac_test_CFLAGS
=${CFLAGS+set}
1769 ac_save_CFLAGS
=$CFLAGS
1771 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1772 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1773 if test "${ac_cv_prog_cc_g+set}" = set; then
1774 echo $ECHO_N "(cached) $ECHO_C" >&6
1776 cat >conftest.
$ac_ext <<_ACEOF
1777 #line $LINENO "configure"
1778 #include "confdefs.h"
1780 #ifdef F77_DUMMY_MAIN
1784 int F77_DUMMY_MAIN() { return 1; }
1794 rm -f conftest.
$ac_objext
1795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1796 (eval $ac_compile) 2>&5
1798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1799 (exit $ac_status); } &&
1800 { ac_try
='test -s conftest.$ac_objext'
1801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1805 (exit $ac_status); }; }; then
1808 echo "$as_me: failed program was:" >&5
1809 cat conftest.
$ac_ext >&5
1812 rm -f conftest.
$ac_objext conftest.
$ac_ext
1814 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1815 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1816 if test "$ac_test_CFLAGS" = set; then
1817 CFLAGS
=$ac_save_CFLAGS
1818 elif test $ac_cv_prog_cc_g = yes; then
1819 if test "$GCC" = yes; then
1825 if test "$GCC" = yes; then
1831 # Some people use a C++ compiler to compile C. Since we use `exit',
1832 # in C++ we need to declare it. In case someone uses the same compiler
1833 # for both compiling C and C++ we need to have the C++ compiler decide
1834 # the declaration of exit, since it's the most demanding environment.
1835 cat >conftest.
$ac_ext <<_ACEOF
1840 rm -f conftest.
$ac_objext
1841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1842 (eval $ac_compile) 2>&5
1844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1845 (exit $ac_status); } &&
1846 { ac_try
='test -s conftest.$ac_objext'
1847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1851 (exit $ac_status); }; }; then
1852 for ac_declaration
in \
1854 '#include <stdlib.h>' \
1855 'extern "C" void std::exit (int) throw (); using std::exit;' \
1856 'extern "C" void std::exit (int); using std::exit;' \
1857 'extern "C" void exit (int) throw ();' \
1858 'extern "C" void exit (int);' \
1861 cat >conftest.
$ac_ext <<_ACEOF
1862 #line $LINENO "configure"
1863 #include "confdefs.h"
1866 #ifdef F77_DUMMY_MAIN
1870 int F77_DUMMY_MAIN() { return 1; }
1880 rm -f conftest.
$ac_objext
1881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1882 (eval $ac_compile) 2>&5
1884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1885 (exit $ac_status); } &&
1886 { ac_try
='test -s conftest.$ac_objext'
1887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1891 (exit $ac_status); }; }; then
1894 echo "$as_me: failed program was:" >&5
1895 cat conftest.
$ac_ext >&5
1898 rm -f conftest.
$ac_objext conftest.
$ac_ext
1899 cat >conftest.
$ac_ext <<_ACEOF
1900 #line $LINENO "configure"
1901 #include "confdefs.h"
1903 #ifdef F77_DUMMY_MAIN
1907 int F77_DUMMY_MAIN() { return 1; }
1917 rm -f conftest.
$ac_objext
1918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1919 (eval $ac_compile) 2>&5
1921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1922 (exit $ac_status); } &&
1923 { ac_try
='test -s conftest.$ac_objext'
1924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1928 (exit $ac_status); }; }; then
1931 echo "$as_me: failed program was:" >&5
1932 cat conftest.
$ac_ext >&5
1934 rm -f conftest.
$ac_objext conftest.
$ac_ext
1937 if test -n "$ac_declaration"; then
1938 echo '#ifdef __cplusplus' >>confdefs.h
1939 echo $ac_declaration >>confdefs.h
1940 echo '#endif' >>confdefs.h
1944 echo "$as_me: failed program was:" >&5
1945 cat conftest.
$ac_ext >&5
1947 rm -f conftest.
$ac_objext conftest.
$ac_ext
1949 ac_cpp
='$CPP $CPPFLAGS'
1950 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1951 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1952 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1955 ac_cpp
='$CXXCPP $CPPFLAGS'
1956 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1957 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1958 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
1959 if test -n "$ac_tool_prefix"; then
1960 for ac_prog
in $CCC g
++ c
++ gpp aCC CC cxx cc
++ cl FCC KCC RCC xlC_r xlC
1962 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1963 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
1964 echo "$as_me:$LINENO: checking for $ac_word" >&5
1965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1966 if test "${ac_cv_prog_CXX+set}" = set; then
1967 echo $ECHO_N "(cached) $ECHO_C" >&6
1969 if test -n "$CXX"; then
1970 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
1972 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1976 test -z "$as_dir" && as_dir
=.
1977 for ac_exec_ext
in '' $ac_executable_extensions; do
1978 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1979 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
1980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1989 if test -n "$CXX"; then
1990 echo "$as_me:$LINENO: result: $CXX" >&5
1991 echo "${ECHO_T}$CXX" >&6
1993 echo "$as_me:$LINENO: result: no" >&5
1994 echo "${ECHO_T}no" >&6
1997 test -n "$CXX" && break
2000 if test -z "$CXX"; then
2002 for ac_prog
in $CCC g
++ c
++ gpp aCC CC cxx cc
++ cl FCC KCC RCC xlC_r xlC
2004 # Extract the first word of "$ac_prog", so it can be a program name with args.
2005 set dummy
$ac_prog; ac_word
=$2
2006 echo "$as_me:$LINENO: checking for $ac_word" >&5
2007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2008 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2009 echo $ECHO_N "(cached) $ECHO_C" >&6
2011 if test -n "$ac_ct_CXX"; then
2012 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
2014 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2018 test -z "$as_dir" && as_dir
=.
2019 for ac_exec_ext
in '' $ac_executable_extensions; do
2020 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2021 ac_cv_prog_ac_ct_CXX
="$ac_prog"
2022 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2030 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
2031 if test -n "$ac_ct_CXX"; then
2032 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2033 echo "${ECHO_T}$ac_ct_CXX" >&6
2035 echo "$as_me:$LINENO: result: no" >&5
2036 echo "${ECHO_T}no" >&6
2039 test -n "$ac_ct_CXX" && break
2041 test -n "$ac_ct_CXX" || ac_ct_CXX
="g++"
2047 # Provide some information about the compiler.
2048 echo "$as_me:$LINENO:" \
2049 "checking for C++ compiler version" >&5
2050 ac_compiler
=`set X $ac_compile; echo $2`
2051 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2052 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2055 (exit $ac_status); }
2056 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2057 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2060 (exit $ac_status); }
2061 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2062 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2065 (exit $ac_status); }
2067 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2068 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2069 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2070 echo $ECHO_N "(cached) $ECHO_C" >&6
2072 cat >conftest.
$ac_ext <<_ACEOF
2073 #line $LINENO "configure"
2074 #include "confdefs.h"
2076 #ifdef F77_DUMMY_MAIN
2080 int F77_DUMMY_MAIN() { return 1; }
2093 rm -f conftest.
$ac_objext
2094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2095 (eval $ac_compile) 2>&5
2097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2098 (exit $ac_status); } &&
2099 { ac_try
='test -s conftest.$ac_objext'
2100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2104 (exit $ac_status); }; }; then
2107 echo "$as_me: failed program was:" >&5
2108 cat conftest.
$ac_ext >&5
2111 rm -f conftest.
$ac_objext conftest.
$ac_ext
2112 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
2115 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2116 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2117 GXX
=`test $ac_compiler_gnu = yes && echo yes`
2118 ac_test_CXXFLAGS
=${CXXFLAGS+set}
2119 ac_save_CXXFLAGS
=$CXXFLAGS
2121 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2122 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2123 if test "${ac_cv_prog_cxx_g+set}" = set; then
2124 echo $ECHO_N "(cached) $ECHO_C" >&6
2126 cat >conftest.
$ac_ext <<_ACEOF
2127 #line $LINENO "configure"
2128 #include "confdefs.h"
2130 #ifdef F77_DUMMY_MAIN
2134 int F77_DUMMY_MAIN() { return 1; }
2144 rm -f conftest.
$ac_objext
2145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2146 (eval $ac_compile) 2>&5
2148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2149 (exit $ac_status); } &&
2150 { ac_try
='test -s conftest.$ac_objext'
2151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2155 (exit $ac_status); }; }; then
2156 ac_cv_prog_cxx_g
=yes
2158 echo "$as_me: failed program was:" >&5
2159 cat conftest.
$ac_ext >&5
2162 rm -f conftest.
$ac_objext conftest.
$ac_ext
2164 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2165 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2166 if test "$ac_test_CXXFLAGS" = set; then
2167 CXXFLAGS
=$ac_save_CXXFLAGS
2168 elif test $ac_cv_prog_cxx_g = yes; then
2169 if test "$GXX" = yes; then
2175 if test "$GXX" = yes; then
2181 for ac_declaration
in \
2183 '#include <stdlib.h>' \
2184 'extern "C" void std::exit (int) throw (); using std::exit;' \
2185 'extern "C" void std::exit (int); using std::exit;' \
2186 'extern "C" void exit (int) throw ();' \
2187 'extern "C" void exit (int);' \
2190 cat >conftest.
$ac_ext <<_ACEOF
2191 #line $LINENO "configure"
2192 #include "confdefs.h"
2195 #ifdef F77_DUMMY_MAIN
2199 int F77_DUMMY_MAIN() { return 1; }
2209 rm -f conftest.
$ac_objext
2210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2211 (eval $ac_compile) 2>&5
2213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2214 (exit $ac_status); } &&
2215 { ac_try
='test -s conftest.$ac_objext'
2216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2220 (exit $ac_status); }; }; then
2223 echo "$as_me: failed program was:" >&5
2224 cat conftest.
$ac_ext >&5
2227 rm -f conftest.
$ac_objext conftest.
$ac_ext
2228 cat >conftest.
$ac_ext <<_ACEOF
2229 #line $LINENO "configure"
2230 #include "confdefs.h"
2232 #ifdef F77_DUMMY_MAIN
2236 int F77_DUMMY_MAIN() { return 1; }
2246 rm -f conftest.
$ac_objext
2247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2248 (eval $ac_compile) 2>&5
2250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2251 (exit $ac_status); } &&
2252 { ac_try
='test -s conftest.$ac_objext'
2253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2257 (exit $ac_status); }; }; then
2260 echo "$as_me: failed program was:" >&5
2261 cat conftest.
$ac_ext >&5
2263 rm -f conftest.
$ac_objext conftest.
$ac_ext
2266 if test -n "$ac_declaration"; then
2267 echo '#ifdef __cplusplus' >>confdefs.h
2268 echo $ac_declaration >>confdefs.h
2269 echo '#endif' >>confdefs.h
2273 ac_cpp
='$CPP $CPPFLAGS'
2274 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2275 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2276 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2281 ac_cpp
='$CXXCPP $CPPFLAGS'
2282 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2283 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2284 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
2286 if test "$cross_compiling" = no
; then
2287 echo "$as_me:$LINENO: checking that C++ compiler can compile simple program" >&5
2288 echo $ECHO_N "checking that C++ compiler can compile simple program... $ECHO_C" >&6
2290 if test "$cross_compiling" = yes; then
2293 cat >conftest.
$ac_ext <<_ACEOF
2294 #line $LINENO "configure"
2295 #include "confdefs.h"
2296 int main() { return 0; }
2298 rm -f conftest
$ac_exeext
2299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2300 (eval $ac_link) 2>&5
2302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2303 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
2304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2308 (exit $ac_status); }; }; then
2309 echo "$as_me:$LINENO: result: yes" >&5
2310 echo "${ECHO_T}yes" >&6
2312 echo "$as_me: program exited with status $ac_status" >&5
2313 echo "$as_me: failed program was:" >&5
2314 cat conftest.
$ac_ext >&5
2316 echo "$as_me:$LINENO: result: no" >&5
2317 echo "${ECHO_T}no" >&6;{ { echo "$as_me:$LINENO: error: a working C++ compiler is required" >&5
2318 echo "$as_me: error: a working C++ compiler is required" >&2;}
2319 { (exit 1); exit 1; }; }
2321 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
2323 if test "$cross_compiling" = no
; then
2324 echo "$as_me:$LINENO: checking that C++ static constructors and destructors are called" >&5
2325 echo $ECHO_N "checking that C++ static constructors and destructors are called... $ECHO_C" >&6
2327 if test "$cross_compiling" = yes; then
2330 cat >conftest.
$ac_ext <<_ACEOF
2331 #line $LINENO "configure"
2332 #include "confdefs.h"
2341 ~A() { if (i == 1) _exit(0); }
2344 int main() { return 1; }
2347 rm -f conftest
$ac_exeext
2348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2349 (eval $ac_link) 2>&5
2351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
2353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2357 (exit $ac_status); }; }; then
2358 echo "$as_me:$LINENO: result: yes" >&5
2359 echo "${ECHO_T}yes" >&6
2361 echo "$as_me: program exited with status $ac_status" >&5
2362 echo "$as_me: failed program was:" >&5
2363 cat conftest.
$ac_ext >&5
2365 echo "$as_me:$LINENO: result: no" >&5
2366 echo "${ECHO_T}no" >&6;{ { echo "$as_me:$LINENO: error: a working C++ compiler is required" >&5
2367 echo "$as_me: error: a working C++ compiler is required" >&2;}
2368 { (exit 1); exit 1; }; }
2370 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
2372 echo "$as_me:$LINENO: checking that header files support C++" >&5
2373 echo $ECHO_N "checking that header files support C++... $ECHO_C" >&6
2374 cat >conftest.
$ac_ext <<_ACEOF
2375 #line $LINENO "configure"
2376 #include "confdefs.h"
2378 #ifdef F77_DUMMY_MAIN
2382 int F77_DUMMY_MAIN() { return 1; }
2392 rm -f conftest.
$ac_objext conftest
$ac_exeext
2393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2394 (eval $ac_link) 2>&5
2396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397 (exit $ac_status); } &&
2398 { ac_try
='test -s conftest$ac_exeext'
2399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2403 (exit $ac_status); }; }; then
2404 echo "$as_me:$LINENO: result: yes" >&5
2405 echo "${ECHO_T}yes" >&6
2407 echo "$as_me: failed program was:" >&5
2408 cat conftest.
$ac_ext >&5
2409 echo "$as_me:$LINENO: result: no" >&5
2410 echo "${ECHO_T}no" >&6;{ { echo "$as_me:$LINENO: error: header files do not support C++ (if you are using a version of gcc/g++ earlier than 2.5, you should install libg++)" >&5
2411 echo "$as_me: error: header files do not support C++ (if you are using a version of gcc/g++ earlier than 2.5, you should install libg++)" >&2;}
2412 { (exit 1); exit 1; }; }
2414 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
2416 ac_cpp
='$CPP $CPPFLAGS'
2417 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2418 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2419 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2422 echo "$as_me:$LINENO: checking whether character set is EBCDIC" >&5
2423 echo $ECHO_N "checking whether character set is EBCDIC... $ECHO_C" >&6
2424 cat >conftest.
$ac_ext <<_ACEOF
2425 #line $LINENO "configure"
2426 #include "confdefs.h"
2428 #ifdef F77_DUMMY_MAIN
2432 int F77_DUMMY_MAIN() { return 1; }
2437 /* Treat any failure as ASCII for compatibility with existing art.
2438 Use compile-time rather than run-time tests for cross-compiler
2441 make an error "Character set is not EBCDIC"
2447 rm -f conftest.
$ac_objext
2448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2449 (eval $ac_compile) 2>&5
2451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2452 (exit $ac_status); } &&
2453 { ac_try
='test -s conftest.$ac_objext'
2454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2458 (exit $ac_status); }; }; then
2459 groff_cv_ebcdic
="yes"
2460 TTYDEVDIRS
="font/devcp1047"
2461 echo "$as_me:$LINENO: result: yes" >&5
2462 echo "${ECHO_T}yes" >&6
2464 cat >>confdefs.h
<<\_ACEOF
2465 #define IS_EBCDIC_HOST 1
2469 echo "$as_me: failed program was:" >&5
2470 cat conftest.
$ac_ext >&5
2471 groff_cv_ebcdic
="no"
2472 TTYDEVDIRS
="font/devascii font/devlatin1"
2473 OTHERDEVDIRS
="font/devlj4 font/devlbp"
2474 echo "$as_me:$LINENO: result: no" >&5
2475 echo "${ECHO_T}no" >&6
2477 rm -f conftest.
$ac_objext conftest.
$ac_ext
2480 if test "$groff_cv_ebcdic" = "yes"; then
2481 echo "$as_me:$LINENO: checking for OS/390 Unix" >&5
2482 echo $ECHO_N "checking for OS/390 Unix... $ECHO_C" >&6
2485 CFLAGS
="$CFLAGS -D_ALL_SOURCE"
2486 echo "$as_me:$LINENO: result: yes" >&5
2487 echo "${ECHO_T}yes" >&6 ;;
2489 echo "$as_me:$LINENO: result: no" >&5
2490 echo "${ECHO_T}no" >&6 ;;
2493 if test -z "$PSPRINT"; then
2496 # Extract the first word of "$ac_prog", so it can be a program name with args.
2497 set dummy
$ac_prog; ac_word
=$2
2498 echo "$as_me:$LINENO: checking for $ac_word" >&5
2499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2500 if test "${ac_cv_prog_LPR+set}" = set; then
2501 echo $ECHO_N "(cached) $ECHO_C" >&6
2503 if test -n "$LPR"; then
2504 ac_cv_prog_LPR
="$LPR" # Let the user override the test.
2506 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2510 test -z "$as_dir" && as_dir
=.
2511 for ac_exec_ext
in '' $ac_executable_extensions; do
2512 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2513 ac_cv_prog_LPR
="$ac_prog"
2514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2523 if test -n "$LPR"; then
2524 echo "$as_me:$LINENO: result: $LPR" >&5
2525 echo "${ECHO_T}$LPR" >&6
2527 echo "$as_me:$LINENO: result: no" >&5
2528 echo "${ECHO_T}no" >&6
2531 test -n "$LPR" && break
2536 # Extract the first word of "$ac_prog", so it can be a program name with args.
2537 set dummy
$ac_prog; ac_word
=$2
2538 echo "$as_me:$LINENO: checking for $ac_word" >&5
2539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2540 if test "${ac_cv_prog_LP+set}" = set; then
2541 echo $ECHO_N "(cached) $ECHO_C" >&6
2543 if test -n "$LP"; then
2544 ac_cv_prog_LP
="$LP" # Let the user override the test.
2546 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2550 test -z "$as_dir" && as_dir
=.
2551 for ac_exec_ext
in '' $ac_executable_extensions; do
2552 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2553 ac_cv_prog_LP
="$ac_prog"
2554 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2563 if test -n "$LP"; then
2564 echo "$as_me:$LINENO: result: $LP" >&5
2565 echo "${ECHO_T}$LP" >&6
2567 echo "$as_me:$LINENO: result: no" >&5
2568 echo "${ECHO_T}no" >&6
2571 test -n "$LP" && break
2574 if test -n "$LPR" && test -n "$LP"; then
2575 # HP-UX provides an lpr command that emulates lpr using lp,
2576 # but it doesn't have lpq; in this case we want to use lp
2580 # Extract the first word of "$ac_prog", so it can be a program name with args.
2581 set dummy
$ac_prog; ac_word
=$2
2582 echo "$as_me:$LINENO: checking for $ac_word" >&5
2583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2584 if test "${ac_cv_prog_LPQ+set}" = set; then
2585 echo $ECHO_N "(cached) $ECHO_C" >&6
2587 if test -n "$LPQ"; then
2588 ac_cv_prog_LPQ
="$LPQ" # Let the user override the test.
2590 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2594 test -z "$as_dir" && as_dir
=.
2595 for ac_exec_ext
in '' $ac_executable_extensions; do
2596 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2597 ac_cv_prog_LPQ
="$ac_prog"
2598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2607 if test -n "$LPQ"; then
2608 echo "$as_me:$LINENO: result: $LPQ" >&5
2609 echo "${ECHO_T}$LPQ" >&6
2611 echo "$as_me:$LINENO: result: no" >&5
2612 echo "${ECHO_T}no" >&6
2615 test -n "$LPQ" && break
2618 test -n "$LPQ" || LPR
=
2620 if test -n "$LPR"; then
2622 elif test -n "$LP"; then
2627 echo "$as_me:$LINENO: checking for command to use for printing PostScript files" >&5
2628 echo $ECHO_N "checking for command to use for printing PostScript files... $ECHO_C" >&6
2629 echo "$as_me:$LINENO: result: $PSPRINT" >&5
2630 echo "${ECHO_T}$PSPRINT" >&6
2631 # Figure out DVIPRINT from PSPRINT.
2632 echo "$as_me:$LINENO: checking for command to use for printing dvi files" >&5
2633 echo $ECHO_N "checking for command to use for printing dvi files... $ECHO_C" >&6
2634 if test -n "$PSPRINT" && test -z "$DVIPRINT"; then
2635 if test "X$PSPRINT" = "Xlpr"; then
2642 echo "$as_me:$LINENO: result: $DVIPRINT" >&5
2643 echo "${ECHO_T}$DVIPRINT" >&6
2644 # Extract the first word of "perl", so it can be a program name with args.
2645 set dummy perl
; ac_word
=$2
2646 echo "$as_me:$LINENO: checking for $ac_word" >&5
2647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2648 if test "${ac_cv_path_PERLPATH+set}" = set; then
2649 echo $ECHO_N "(cached) $ECHO_C" >&6
2653 ac_cv_path_PERLPATH
="$PERLPATH" # Let the user override the test with a path.
2656 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2660 test -z "$as_dir" && as_dir
=.
2661 for ac_exec_ext
in '' $ac_executable_extensions; do
2662 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2663 ac_cv_path_PERLPATH
="$as_dir/$ac_word$ac_exec_ext"
2664 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2670 test -z "$ac_cv_path_PERLPATH" && ac_cv_path_PERLPATH
="/usr/bin/perl"
2674 PERLPATH
=$ac_cv_path_PERLPATH
2676 if test -n "$PERLPATH"; then
2677 echo "$as_me:$LINENO: result: $PERLPATH" >&5
2678 echo "${ECHO_T}$PERLPATH" >&6
2680 echo "$as_me:$LINENO: result: no" >&5
2681 echo "${ECHO_T}no" >&6
2684 for ac_prog
in byacc
'bison -y'
2686 # Extract the first word of "$ac_prog", so it can be a program name with args.
2687 set dummy
$ac_prog; ac_word
=$2
2688 echo "$as_me:$LINENO: checking for $ac_word" >&5
2689 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2690 if test "${ac_cv_prog_YACC+set}" = set; then
2691 echo $ECHO_N "(cached) $ECHO_C" >&6
2693 if test -n "$YACC"; then
2694 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
2696 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2700 test -z "$as_dir" && as_dir
=.
2701 for ac_exec_ext
in '' $ac_executable_extensions; do
2702 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2703 ac_cv_prog_YACC
="$ac_prog"
2704 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2712 YACC
=$ac_cv_prog_YACC
2713 if test -n "$YACC"; then
2714 echo "$as_me:$LINENO: result: $YACC" >&5
2715 echo "${ECHO_T}$YACC" >&6
2717 echo "$as_me:$LINENO: result: no" >&5
2718 echo "${ECHO_T}no" >&6
2721 test -n "$YACC" && break
2723 test -n "$YACC" || YACC
="yacc"
2725 if test -n "$ac_tool_prefix"; then
2726 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2727 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
2728 echo "$as_me:$LINENO: checking for $ac_word" >&5
2729 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2730 if test "${ac_cv_prog_RANLIB+set}" = set; then
2731 echo $ECHO_N "(cached) $ECHO_C" >&6
2733 if test -n "$RANLIB"; then
2734 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2736 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2740 test -z "$as_dir" && as_dir
=.
2741 for ac_exec_ext
in '' $ac_executable_extensions; do
2742 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2743 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
2744 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2752 RANLIB
=$ac_cv_prog_RANLIB
2753 if test -n "$RANLIB"; then
2754 echo "$as_me:$LINENO: result: $RANLIB" >&5
2755 echo "${ECHO_T}$RANLIB" >&6
2757 echo "$as_me:$LINENO: result: no" >&5
2758 echo "${ECHO_T}no" >&6
2762 if test -z "$ac_cv_prog_RANLIB"; then
2763 ac_ct_RANLIB
=$RANLIB
2764 # Extract the first word of "ranlib", so it can be a program name with args.
2765 set dummy ranlib
; ac_word
=$2
2766 echo "$as_me:$LINENO: checking for $ac_word" >&5
2767 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2768 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2769 echo $ECHO_N "(cached) $ECHO_C" >&6
2771 if test -n "$ac_ct_RANLIB"; then
2772 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
2774 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2778 test -z "$as_dir" && as_dir
=.
2779 for ac_exec_ext
in '' $ac_executable_extensions; do
2780 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2781 ac_cv_prog_ac_ct_RANLIB
="ranlib"
2782 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2788 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
2791 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
2792 if test -n "$ac_ct_RANLIB"; then
2793 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2794 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2796 echo "$as_me:$LINENO: result: no" >&5
2797 echo "${ECHO_T}no" >&6
2800 RANLIB
=$ac_ct_RANLIB
2802 RANLIB
="$ac_cv_prog_RANLIB"
2806 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
2807 if test -f $ac_dir/install-sh
; then
2809 ac_install_sh
="$ac_aux_dir/install-sh -c"
2811 elif test -f $ac_dir/install.sh
; then
2813 ac_install_sh
="$ac_aux_dir/install.sh -c"
2815 elif test -f $ac_dir/shtool
; then
2817 ac_install_sh
="$ac_aux_dir/shtool install -c"
2821 if test -z "$ac_aux_dir"; then
2822 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2823 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2824 { (exit 1); exit 1; }; }
2826 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
2827 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
2828 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2830 ac_dir
=`cd $ac_aux_dir; pwd`
2831 ac_install_sh
="$ac_dir/install-sh -c"
2832 for ac_prog
in install-info
2834 # Extract the first word of "$ac_prog", so it can be a program name with args.
2835 set dummy
$ac_prog; ac_word
=$2
2836 echo "$as_me:$LINENO: checking for $ac_word" >&5
2837 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2838 if test "${ac_cv_prog_INSTALL_INFO+set}" = set; then
2839 echo $ECHO_N "(cached) $ECHO_C" >&6
2841 if test -n "$INSTALL_INFO"; then
2842 ac_cv_prog_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test.
2844 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2848 test -z "$as_dir" && as_dir
=.
2849 for ac_exec_ext
in '' $ac_executable_extensions; do
2850 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2851 ac_cv_prog_INSTALL_INFO
="$ac_prog"
2852 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2860 INSTALL_INFO
=$ac_cv_prog_INSTALL_INFO
2861 if test -n "$INSTALL_INFO"; then
2862 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
2863 echo "${ECHO_T}$INSTALL_INFO" >&6
2865 echo "$as_me:$LINENO: result: no" >&5
2866 echo "${ECHO_T}no" >&6
2869 test -n "$INSTALL_INFO" && break
2871 test -n "$INSTALL_INFO" || INSTALL_INFO
=":"
2873 # Find a good install program. We prefer a C program (faster),
2874 # so one script is as good as another. But avoid the broken or
2875 # incompatible versions:
2876 # SysV /etc/install, /usr/sbin/install
2877 # SunOS /usr/etc/install
2878 # IRIX /sbin/install
2880 # AmigaOS /C/install, which installs bootblocks on floppy discs
2881 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2882 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2883 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2884 # ./install, which can be erroneously created by make from ./install.sh.
2885 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2886 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2887 if test -z "$INSTALL"; then
2888 if test "${ac_cv_path_install+set}" = set; then
2889 echo $ECHO_N "(cached) $ECHO_C" >&6
2891 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2895 test -z "$as_dir" && as_dir
=.
2896 # Account for people who put trailing slashes in PATH elements.
2898 .
/ | .
// |
/cC
/* | \
2899 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2902 # OSF1 and SCO ODT 3.0 have their own names for install.
2903 # Don't use installbsd from OSF since it installs stuff as root
2905 for ac_prog
in ginstall scoinst
install; do
2906 for ac_exec_ext
in '' $ac_executable_extensions; do
2907 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2908 if test $ac_prog = install &&
2909 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2910 # AIX install. It has an incompatible calling convention.
2912 elif test $ac_prog = install &&
2913 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2914 # program-specific install script used by HP pwplus--don't use.
2917 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2929 if test "${ac_cv_path_install+set}" = set; then
2930 INSTALL
=$ac_cv_path_install
2932 # As a last resort, use the slow shell script. We don't cache a
2933 # path for INSTALL within a source directory, because that will
2934 # break other packages using the cache if that directory is
2935 # removed, or if the path is relative.
2936 INSTALL
=$ac_install_sh
2939 echo "$as_me:$LINENO: result: $INSTALL" >&5
2940 echo "${ECHO_T}$INSTALL" >&6
2942 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2943 # It thinks the first close brace ends the variable substitution.
2944 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2946 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2948 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2950 echo "$as_me:$LINENO: checking whether ln -s works" >&5
2951 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2953 if test "$LN_S" = "ln -s"; then
2954 echo "$as_me:$LINENO: result: yes" >&5
2955 echo "${ECHO_T}yes" >&6
2957 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2958 echo "${ECHO_T}no, using $LN_S" >&6
2961 echo "$as_me:$LINENO: checking for csh hash hack" >&5
2962 echo $ECHO_N "checking for csh hash hack... $ECHO_C" >&6
2963 cat <<EOF >conftest.sh
2966 export PATH || exit 0
2969 chmod +x conftest.sh
2970 if echo .
/conftest.sh |
(csh
>/dev
/null
2>&1) >/dev
/null
2>&1; then
2971 echo "$as_me:$LINENO: result: yes" >&5
2972 echo "${ECHO_T}yes" >&6; SH_SCRIPT_SED_CMD
='1s/.*/:/'
2974 echo "$as_me:$LINENO: result: no" >&5
2975 echo "${ECHO_T}no" >&6; SH_SCRIPT_SED_CMD
='1s/a/a/'
2980 ac_cpp
='$CPP $CPPFLAGS'
2981 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2982 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2983 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2984 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2985 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2986 # On Suns, sometimes $CPP names a directory.
2987 if test -n "$CPP" && test -d "$CPP"; then
2990 if test -z "$CPP"; then
2991 if test "${ac_cv_prog_CPP+set}" = set; then
2992 echo $ECHO_N "(cached) $ECHO_C" >&6
2994 # Double quotes because CPP needs to be expanded
2995 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2998 for ac_c_preproc_warn_flag
in '' yes
3000 # Use a header file that comes with gcc, so configuring glibc
3001 # with a fresh cross-compiler works.
3002 # On the NeXT, cc -E runs the code through the compiler's parser,
3003 # not just through cpp. "Syntax error" is here to catch this case.
3004 cat >conftest.
$ac_ext <<_ACEOF
3005 #line $LINENO "configure"
3006 #include "confdefs.h"
3010 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3011 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3013 egrep -v '^ *\+' conftest.er1
>conftest.err
3015 cat conftest.err
>&5
3016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3017 (exit $ac_status); } >/dev
/null
; then
3018 if test -s conftest.err
; then
3019 ac_cpp_err
=$ac_c_preproc_warn_flag
3026 if test -z "$ac_cpp_err"; then
3029 echo "$as_me: failed program was:" >&5
3030 cat conftest.
$ac_ext >&5
3031 # Broken: fails on valid input.
3034 rm -f conftest.err conftest.
$ac_ext
3036 # OK, works on sane cases. Now check whether non-existent headers
3037 # can be detected and how.
3038 cat >conftest.
$ac_ext <<_ACEOF
3039 #line $LINENO "configure"
3040 #include "confdefs.h"
3041 #include <ac_nonexistent.h>
3043 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3044 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3046 egrep -v '^ *\+' conftest.er1
>conftest.err
3048 cat conftest.err
>&5
3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050 (exit $ac_status); } >/dev
/null
; then
3051 if test -s conftest.err
; then
3052 ac_cpp_err
=$ac_c_preproc_warn_flag
3059 if test -z "$ac_cpp_err"; then
3060 # Broken: success on invalid input.
3063 echo "$as_me: failed program was:" >&5
3064 cat conftest.
$ac_ext >&5
3065 # Passes both tests.
3069 rm -f conftest.err conftest.
$ac_ext
3072 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3073 rm -f conftest.err conftest.
$ac_ext
3074 if $ac_preproc_ok; then
3086 echo "$as_me:$LINENO: result: $CPP" >&5
3087 echo "${ECHO_T}$CPP" >&6
3089 for ac_c_preproc_warn_flag
in '' yes
3091 # Use a header file that comes with gcc, so configuring glibc
3092 # with a fresh cross-compiler works.
3093 # On the NeXT, cc -E runs the code through the compiler's parser,
3094 # not just through cpp. "Syntax error" is here to catch this case.
3095 cat >conftest.
$ac_ext <<_ACEOF
3096 #line $LINENO "configure"
3097 #include "confdefs.h"
3101 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3102 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3104 egrep -v '^ *\+' conftest.er1
>conftest.err
3106 cat conftest.err
>&5
3107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108 (exit $ac_status); } >/dev
/null
; then
3109 if test -s conftest.err
; then
3110 ac_cpp_err
=$ac_c_preproc_warn_flag
3117 if test -z "$ac_cpp_err"; then
3120 echo "$as_me: failed program was:" >&5
3121 cat conftest.
$ac_ext >&5
3122 # Broken: fails on valid input.
3125 rm -f conftest.err conftest.
$ac_ext
3127 # OK, works on sane cases. Now check whether non-existent headers
3128 # can be detected and how.
3129 cat >conftest.
$ac_ext <<_ACEOF
3130 #line $LINENO "configure"
3131 #include "confdefs.h"
3132 #include <ac_nonexistent.h>
3134 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3135 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3137 egrep -v '^ *\+' conftest.er1
>conftest.err
3139 cat conftest.err
>&5
3140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141 (exit $ac_status); } >/dev
/null
; then
3142 if test -s conftest.err
; then
3143 ac_cpp_err
=$ac_c_preproc_warn_flag
3150 if test -z "$ac_cpp_err"; then
3151 # Broken: success on invalid input.
3154 echo "$as_me: failed program was:" >&5
3155 cat conftest.
$ac_ext >&5
3156 # Passes both tests.
3160 rm -f conftest.err conftest.
$ac_ext
3163 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3164 rm -f conftest.err conftest.
$ac_ext
3165 if $ac_preproc_ok; then
3168 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
3169 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3170 { (exit 1); exit 1; }; }
3174 ac_cpp
='$CPP $CPPFLAGS'
3175 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3176 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3177 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3180 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3181 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3182 if test "${ac_cv_header_stdc+set}" = set; then
3183 echo $ECHO_N "(cached) $ECHO_C" >&6
3185 cat >conftest.
$ac_ext <<_ACEOF
3186 #line $LINENO "configure"
3187 #include "confdefs.h"
3194 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3195 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3197 egrep -v '^ *\+' conftest.er1
>conftest.err
3199 cat conftest.err
>&5
3200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3201 (exit $ac_status); } >/dev
/null
; then
3202 if test -s conftest.err
; then
3203 ac_cpp_err
=$ac_c_preproc_warn_flag
3210 if test -z "$ac_cpp_err"; then
3211 ac_cv_header_stdc
=yes
3213 echo "$as_me: failed program was:" >&5
3214 cat conftest.
$ac_ext >&5
3215 ac_cv_header_stdc
=no
3217 rm -f conftest.err conftest.
$ac_ext
3219 if test $ac_cv_header_stdc = yes; then
3220 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3221 cat >conftest.
$ac_ext <<_ACEOF
3222 #line $LINENO "configure"
3223 #include "confdefs.h"
3227 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3228 egrep "memchr" >/dev
/null
2>&1; then
3231 ac_cv_header_stdc
=no
3237 if test $ac_cv_header_stdc = yes; then
3238 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3239 cat >conftest.
$ac_ext <<_ACEOF
3240 #line $LINENO "configure"
3241 #include "confdefs.h"
3245 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3246 egrep "free" >/dev
/null
2>&1; then
3249 ac_cv_header_stdc
=no
3255 if test $ac_cv_header_stdc = yes; then
3256 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3257 if test "$cross_compiling" = yes; then
3260 cat >conftest.
$ac_ext <<_ACEOF
3261 #line $LINENO "configure"
3262 #include "confdefs.h"
3264 #if ((' ' & 0x0FF) == 0x020)
3265 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3266 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3268 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3269 || ('j' <= (c) && (c) <= 'r') \
3270 || ('s' <= (c) && (c) <= 'z'))
3271 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3274 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3279 for (i = 0; i < 256; i++)
3280 if (XOR (islower (i), ISLOWER (i))
3281 || toupper (i) != TOUPPER (i))
3286 rm -f conftest
$ac_exeext
3287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3288 (eval $ac_link) 2>&5
3290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3291 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3296 (exit $ac_status); }; }; then
3299 echo "$as_me: program exited with status $ac_status" >&5
3300 echo "$as_me: failed program was:" >&5
3301 cat conftest.
$ac_ext >&5
3303 ac_cv_header_stdc
=no
3305 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3309 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3310 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3311 if test $ac_cv_header_stdc = yes; then
3313 cat >>confdefs.h
<<\_ACEOF
3314 #define STDC_HEADERS 1
3319 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3329 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3330 inttypes.h stdint.h unistd.h
3332 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3333 echo "$as_me:$LINENO: checking for $ac_header" >&5
3334 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3335 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3336 echo $ECHO_N "(cached) $ECHO_C" >&6
3338 cat >conftest.
$ac_ext <<_ACEOF
3339 #line $LINENO "configure"
3340 #include "confdefs.h"
3341 $ac_includes_default
3343 #include <$ac_header>
3345 rm -f conftest.
$ac_objext
3346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3347 (eval $ac_compile) 2>&5
3349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350 (exit $ac_status); } &&
3351 { ac_try
='test -s conftest.$ac_objext'
3352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3356 (exit $ac_status); }; }; then
3357 eval "$as_ac_Header=yes"
3359 echo "$as_me: failed program was:" >&5
3360 cat conftest.
$ac_ext >&5
3361 eval "$as_ac_Header=no"
3363 rm -f conftest.
$ac_objext conftest.
$ac_ext
3365 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3366 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3367 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3368 cat >>confdefs.h
<<_ACEOF
3369 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3387 for ac_header
in stdlib.h unistd.h dirent.h limits.h sys
/dir.h \
3388 string.h
strings.h math.h stdint.h sys
/time.h
3390 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3391 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3392 echo "$as_me:$LINENO: checking for $ac_header" >&5
3393 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3394 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3395 echo $ECHO_N "(cached) $ECHO_C" >&6
3397 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3398 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3400 # Is the header compilable?
3401 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3402 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3403 cat >conftest.
$ac_ext <<_ACEOF
3404 #line $LINENO "configure"
3405 #include "confdefs.h"
3406 $ac_includes_default
3407 #include <$ac_header>
3409 rm -f conftest.
$ac_objext
3410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3411 (eval $ac_compile) 2>&5
3413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3414 (exit $ac_status); } &&
3415 { ac_try
='test -s conftest.$ac_objext'
3416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3420 (exit $ac_status); }; }; then
3421 ac_header_compiler
=yes
3423 echo "$as_me: failed program was:" >&5
3424 cat conftest.
$ac_ext >&5
3425 ac_header_compiler
=no
3427 rm -f conftest.
$ac_objext conftest.
$ac_ext
3428 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3429 echo "${ECHO_T}$ac_header_compiler" >&6
3431 # Is the header present?
3432 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3433 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3434 cat >conftest.
$ac_ext <<_ACEOF
3435 #line $LINENO "configure"
3436 #include "confdefs.h"
3437 #include <$ac_header>
3439 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3440 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3442 egrep -v '^ *\+' conftest.er1
>conftest.err
3444 cat conftest.err
>&5
3445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3446 (exit $ac_status); } >/dev
/null
; then
3447 if test -s conftest.err
; then
3448 ac_cpp_err
=$ac_c_preproc_warn_flag
3455 if test -z "$ac_cpp_err"; then
3456 ac_header_preproc
=yes
3458 echo "$as_me: failed program was:" >&5
3459 cat conftest.
$ac_ext >&5
3460 ac_header_preproc
=no
3462 rm -f conftest.err conftest.
$ac_ext
3463 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3464 echo "${ECHO_T}$ac_header_preproc" >&6
3466 # So? What about this header?
3467 case $ac_header_compiler:$ac_header_preproc in
3469 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3470 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3471 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3472 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3474 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3475 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3476 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3477 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3478 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3479 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3481 echo "$as_me:$LINENO: checking for $ac_header" >&5
3482 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3483 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3484 echo $ECHO_N "(cached) $ECHO_C" >&6
3486 eval "$as_ac_Header=$ac_header_preproc"
3488 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3489 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3492 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3493 cat >>confdefs.h
<<_ACEOF
3494 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3501 echo "$as_me:$LINENO: checking for ISC 3.x or 4.x" >&5
3502 echo $ECHO_N "checking for ISC 3.x or 4.x... $ECHO_C" >&6
3503 if grep '[34]\.' /usr
/options
/cb.name
>/dev
/null
2>&1
3505 echo "$as_me:$LINENO: result: yes" >&5
3506 echo "${ECHO_T}yes" >&6
3508 cat >>confdefs.h
<<\_ACEOF
3513 echo "$as_me:$LINENO: result: no" >&5
3514 echo "${ECHO_T}no" >&6
3516 echo "$as_me:$LINENO: checking whether -D_POSIX_SOURCE is necessary" >&5
3517 echo $ECHO_N "checking whether -D_POSIX_SOURCE is necessary... $ECHO_C" >&6
3519 ac_cpp
='$CXXCPP $CPPFLAGS'
3520 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3521 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3522 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
3524 cat >conftest.
$ac_ext <<_ACEOF
3525 #line $LINENO "configure"
3526 #include "confdefs.h"
3528 extern "C" { void fileno(int); }
3529 #ifdef F77_DUMMY_MAIN
3533 int F77_DUMMY_MAIN() { return 1; }
3543 rm -f conftest.
$ac_objext
3544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3545 (eval $ac_compile) 2>&5
3547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3548 (exit $ac_status); } &&
3549 { ac_try
='test -s conftest.$ac_objext'
3550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3554 (exit $ac_status); }; }; then
3555 echo "$as_me:$LINENO: result: yes" >&5
3556 echo "${ECHO_T}yes" >&6;
3557 cat >>confdefs.h
<<\_ACEOF
3558 #define _POSIX_SOURCE 1
3562 echo "$as_me: failed program was:" >&5
3563 cat conftest.
$ac_ext >&5
3564 echo "$as_me:$LINENO: result: no" >&5
3565 echo "${ECHO_T}no" >&6
3567 rm -f conftest.
$ac_objext conftest.
$ac_ext
3569 ac_cpp
='$CPP $CPPFLAGS'
3570 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3571 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3572 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3575 ac_cpp
='$CXXCPP $CPPFLAGS'
3576 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3577 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3578 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
3580 echo "$as_me:$LINENO: checking for return type of srand" >&5
3581 echo $ECHO_N "checking for return type of srand... $ECHO_C" >&6
3582 cat >conftest.
$ac_ext <<_ACEOF
3583 #line $LINENO "configure"
3584 #include "confdefs.h"
3586 extern "C" { void srand(unsigned int); }
3587 #ifdef F77_DUMMY_MAIN
3591 int F77_DUMMY_MAIN() { return 1; }
3601 rm -f conftest.
$ac_objext
3602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3603 (eval $ac_compile) 2>&5
3605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3606 (exit $ac_status); } &&
3607 { ac_try
='test -s conftest.$ac_objext'
3608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612 (exit $ac_status); }; }; then
3613 echo "$as_me:$LINENO: result: void" >&5
3614 echo "${ECHO_T}void" >&6;
3615 cat >>confdefs.h
<<\_ACEOF
3616 #define RET_TYPE_SRAND_IS_VOID 1
3620 echo "$as_me: failed program was:" >&5
3621 cat conftest.
$ac_ext >&5
3622 echo "$as_me:$LINENO: result: int" >&5
3623 echo "${ECHO_T}int" >&6
3625 rm -f conftest.
$ac_objext conftest.
$ac_ext
3627 ac_cpp
='$CPP $CPPFLAGS'
3628 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3629 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3630 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3632 echo "$as_me:$LINENO: checking whether gettimeofday must be declared" >&5
3633 echo $ECHO_N "checking whether gettimeofday must be declared... $ECHO_C" >&6
3635 ac_cpp
='$CXXCPP $CPPFLAGS'
3636 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3637 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3638 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
3640 if test "${groff_cv_decl_needed_gettimeofday+set}" = set; then
3641 echo $ECHO_N "(cached) $ECHO_C" >&6
3643 cat >conftest.
$ac_ext <<_ACEOF
3644 #line $LINENO "configure"
3645 #include "confdefs.h"
3648 #ifdef HAVE_STRING_H
3651 #ifdef HAVE_STRINGS_H
3652 #include <strings.h>
3654 #ifdef HAVE_STDLIB_H
3657 #ifdef HAVE_SYS_TIME_H
3658 #include <sys/time.h>
3660 #ifdef HAVE_UNISTD_H
3666 #ifdef F77_DUMMY_MAIN
3670 int F77_DUMMY_MAIN() { return 1; }
3675 #ifndef gettimeofday
3676 char *p = (char *) gettimeofday;
3682 rm -f conftest.
$ac_objext
3683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3684 (eval $ac_compile) 2>&5
3686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687 (exit $ac_status); } &&
3688 { ac_try
='test -s conftest.$ac_objext'
3689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3693 (exit $ac_status); }; }; then
3694 groff_cv_decl_needed_gettimeofday
=no
3696 echo "$as_me: failed program was:" >&5
3697 cat conftest.
$ac_ext >&5
3698 groff_cv_decl_needed_gettimeofday
=yes
3700 rm -f conftest.
$ac_objext conftest.
$ac_ext
3703 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_gettimeofday" >&5
3704 echo "${ECHO_T}$groff_cv_decl_needed_gettimeofday" >&6
3705 if test $groff_cv_decl_needed_gettimeofday = yes; then
3707 cat >>confdefs.h
<<\_ACEOF
3708 #define NEED_DECLARATION_GETTIMEOFDAY 1
3713 ac_cpp
='$CPP $CPPFLAGS'
3714 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3715 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3716 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3718 echo "$as_me:$LINENO: checking whether hypot must be declared" >&5
3719 echo $ECHO_N "checking whether hypot must be declared... $ECHO_C" >&6
3721 ac_cpp
='$CXXCPP $CPPFLAGS'
3722 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3723 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3724 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
3726 if test "${groff_cv_decl_needed_hypot+set}" = set; then
3727 echo $ECHO_N "(cached) $ECHO_C" >&6
3729 cat >conftest.
$ac_ext <<_ACEOF
3730 #line $LINENO "configure"
3731 #include "confdefs.h"
3734 #ifdef HAVE_STRING_H
3737 #ifdef HAVE_STRINGS_H
3738 #include <strings.h>
3740 #ifdef HAVE_STDLIB_H
3743 #ifdef HAVE_SYS_TIME_H
3744 #include <sys/time.h>
3746 #ifdef HAVE_UNISTD_H
3752 #ifdef F77_DUMMY_MAIN
3756 int F77_DUMMY_MAIN() { return 1; }
3762 char *p = (char *) hypot;
3768 rm -f conftest.
$ac_objext
3769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3770 (eval $ac_compile) 2>&5
3772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3773 (exit $ac_status); } &&
3774 { ac_try
='test -s conftest.$ac_objext'
3775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3779 (exit $ac_status); }; }; then
3780 groff_cv_decl_needed_hypot
=no
3782 echo "$as_me: failed program was:" >&5
3783 cat conftest.
$ac_ext >&5
3784 groff_cv_decl_needed_hypot
=yes
3786 rm -f conftest.
$ac_objext conftest.
$ac_ext
3789 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_hypot" >&5
3790 echo "${ECHO_T}$groff_cv_decl_needed_hypot" >&6
3791 if test $groff_cv_decl_needed_hypot = yes; then
3793 cat >>confdefs.h
<<\_ACEOF
3794 #define NEED_DECLARATION_HYPOT 1
3799 ac_cpp
='$CPP $CPPFLAGS'
3800 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3801 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3802 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3804 echo "$as_me:$LINENO: checking whether popen must be declared" >&5
3805 echo $ECHO_N "checking whether popen must be declared... $ECHO_C" >&6
3807 ac_cpp
='$CXXCPP $CPPFLAGS'
3808 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3809 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3810 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
3812 if test "${groff_cv_decl_needed_popen+set}" = set; then
3813 echo $ECHO_N "(cached) $ECHO_C" >&6
3815 cat >conftest.
$ac_ext <<_ACEOF
3816 #line $LINENO "configure"
3817 #include "confdefs.h"
3820 #ifdef HAVE_STRING_H
3823 #ifdef HAVE_STRINGS_H
3824 #include <strings.h>
3826 #ifdef HAVE_STDLIB_H
3829 #ifdef HAVE_SYS_TIME_H
3830 #include <sys/time.h>
3832 #ifdef HAVE_UNISTD_H
3838 #ifdef F77_DUMMY_MAIN
3842 int F77_DUMMY_MAIN() { return 1; }
3848 char *p = (char *) popen;
3854 rm -f conftest.
$ac_objext
3855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3856 (eval $ac_compile) 2>&5
3858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3859 (exit $ac_status); } &&
3860 { ac_try
='test -s conftest.$ac_objext'
3861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865 (exit $ac_status); }; }; then
3866 groff_cv_decl_needed_popen
=no
3868 echo "$as_me: failed program was:" >&5
3869 cat conftest.
$ac_ext >&5
3870 groff_cv_decl_needed_popen
=yes
3872 rm -f conftest.
$ac_objext conftest.
$ac_ext
3875 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_popen" >&5
3876 echo "${ECHO_T}$groff_cv_decl_needed_popen" >&6
3877 if test $groff_cv_decl_needed_popen = yes; then
3879 cat >>confdefs.h
<<\_ACEOF
3880 #define NEED_DECLARATION_POPEN 1
3885 ac_cpp
='$CPP $CPPFLAGS'
3886 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3887 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3888 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3890 echo "$as_me:$LINENO: checking whether pclose must be declared" >&5
3891 echo $ECHO_N "checking whether pclose must be declared... $ECHO_C" >&6
3893 ac_cpp
='$CXXCPP $CPPFLAGS'
3894 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3895 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3896 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
3898 if test "${groff_cv_decl_needed_pclose+set}" = set; then
3899 echo $ECHO_N "(cached) $ECHO_C" >&6
3901 cat >conftest.
$ac_ext <<_ACEOF
3902 #line $LINENO "configure"
3903 #include "confdefs.h"
3906 #ifdef HAVE_STRING_H
3909 #ifdef HAVE_STRINGS_H
3910 #include <strings.h>
3912 #ifdef HAVE_STDLIB_H
3915 #ifdef HAVE_SYS_TIME_H
3916 #include <sys/time.h>
3918 #ifdef HAVE_UNISTD_H
3924 #ifdef F77_DUMMY_MAIN
3928 int F77_DUMMY_MAIN() { return 1; }
3934 char *p = (char *) pclose;
3940 rm -f conftest.
$ac_objext
3941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3942 (eval $ac_compile) 2>&5
3944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3945 (exit $ac_status); } &&
3946 { ac_try
='test -s conftest.$ac_objext'
3947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3951 (exit $ac_status); }; }; then
3952 groff_cv_decl_needed_pclose
=no
3954 echo "$as_me: failed program was:" >&5
3955 cat conftest.
$ac_ext >&5
3956 groff_cv_decl_needed_pclose
=yes
3958 rm -f conftest.
$ac_objext conftest.
$ac_ext
3961 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_pclose" >&5
3962 echo "${ECHO_T}$groff_cv_decl_needed_pclose" >&6
3963 if test $groff_cv_decl_needed_pclose = yes; then
3965 cat >>confdefs.h
<<\_ACEOF
3966 #define NEED_DECLARATION_PCLOSE 1
3971 ac_cpp
='$CPP $CPPFLAGS'
3972 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3973 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3974 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3976 echo "$as_me:$LINENO: checking whether putenv must be declared" >&5
3977 echo $ECHO_N "checking whether putenv must be declared... $ECHO_C" >&6
3979 ac_cpp
='$CXXCPP $CPPFLAGS'
3980 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3981 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3982 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
3984 if test "${groff_cv_decl_needed_putenv+set}" = set; then
3985 echo $ECHO_N "(cached) $ECHO_C" >&6
3987 cat >conftest.
$ac_ext <<_ACEOF
3988 #line $LINENO "configure"
3989 #include "confdefs.h"
3992 #ifdef HAVE_STRING_H
3995 #ifdef HAVE_STRINGS_H
3996 #include <strings.h>
3998 #ifdef HAVE_STDLIB_H
4001 #ifdef HAVE_SYS_TIME_H
4002 #include <sys/time.h>
4004 #ifdef HAVE_UNISTD_H
4010 #ifdef F77_DUMMY_MAIN
4014 int F77_DUMMY_MAIN() { return 1; }
4020 char *p = (char *) putenv;
4026 rm -f conftest.
$ac_objext
4027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4028 (eval $ac_compile) 2>&5
4030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4031 (exit $ac_status); } &&
4032 { ac_try
='test -s conftest.$ac_objext'
4033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4037 (exit $ac_status); }; }; then
4038 groff_cv_decl_needed_putenv
=no
4040 echo "$as_me: failed program was:" >&5
4041 cat conftest.
$ac_ext >&5
4042 groff_cv_decl_needed_putenv
=yes
4044 rm -f conftest.
$ac_objext conftest.
$ac_ext
4047 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_putenv" >&5
4048 echo "${ECHO_T}$groff_cv_decl_needed_putenv" >&6
4049 if test $groff_cv_decl_needed_putenv = yes; then
4051 cat >>confdefs.h
<<\_ACEOF
4052 #define NEED_DECLARATION_PUTENV 1
4057 ac_cpp
='$CPP $CPPFLAGS'
4058 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4059 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4060 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4062 echo "$as_me:$LINENO: checking whether strcasecmp must be declared" >&5
4063 echo $ECHO_N "checking whether strcasecmp must be declared... $ECHO_C" >&6
4065 ac_cpp
='$CXXCPP $CPPFLAGS'
4066 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4067 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4068 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4070 if test "${groff_cv_decl_needed_strcasecmp+set}" = set; then
4071 echo $ECHO_N "(cached) $ECHO_C" >&6
4073 cat >conftest.
$ac_ext <<_ACEOF
4074 #line $LINENO "configure"
4075 #include "confdefs.h"
4078 #ifdef HAVE_STRING_H
4081 #ifdef HAVE_STRINGS_H
4082 #include <strings.h>
4084 #ifdef HAVE_STDLIB_H
4087 #ifdef HAVE_SYS_TIME_H
4088 #include <sys/time.h>
4090 #ifdef HAVE_UNISTD_H
4096 #ifdef F77_DUMMY_MAIN
4100 int F77_DUMMY_MAIN() { return 1; }
4106 char *p = (char *) strcasecmp;
4112 rm -f conftest.
$ac_objext
4113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4114 (eval $ac_compile) 2>&5
4116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117 (exit $ac_status); } &&
4118 { ac_try
='test -s conftest.$ac_objext'
4119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4123 (exit $ac_status); }; }; then
4124 groff_cv_decl_needed_strcasecmp
=no
4126 echo "$as_me: failed program was:" >&5
4127 cat conftest.
$ac_ext >&5
4128 groff_cv_decl_needed_strcasecmp
=yes
4130 rm -f conftest.
$ac_objext conftest.
$ac_ext
4133 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_strcasecmp" >&5
4134 echo "${ECHO_T}$groff_cv_decl_needed_strcasecmp" >&6
4135 if test $groff_cv_decl_needed_strcasecmp = yes; then
4137 cat >>confdefs.h
<<\_ACEOF
4138 #define NEED_DECLARATION_STRCASECMP 1
4143 ac_cpp
='$CPP $CPPFLAGS'
4144 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4145 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4146 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4148 echo "$as_me:$LINENO: checking whether strncasecmp must be declared" >&5
4149 echo $ECHO_N "checking whether strncasecmp must be declared... $ECHO_C" >&6
4151 ac_cpp
='$CXXCPP $CPPFLAGS'
4152 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4153 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4154 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4156 if test "${groff_cv_decl_needed_strncasecmp+set}" = set; then
4157 echo $ECHO_N "(cached) $ECHO_C" >&6
4159 cat >conftest.
$ac_ext <<_ACEOF
4160 #line $LINENO "configure"
4161 #include "confdefs.h"
4164 #ifdef HAVE_STRING_H
4167 #ifdef HAVE_STRINGS_H
4168 #include <strings.h>
4170 #ifdef HAVE_STDLIB_H
4173 #ifdef HAVE_SYS_TIME_H
4174 #include <sys/time.h>
4176 #ifdef HAVE_UNISTD_H
4182 #ifdef F77_DUMMY_MAIN
4186 int F77_DUMMY_MAIN() { return 1; }
4192 char *p = (char *) strncasecmp;
4198 rm -f conftest.
$ac_objext
4199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4200 (eval $ac_compile) 2>&5
4202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4203 (exit $ac_status); } &&
4204 { ac_try
='test -s conftest.$ac_objext'
4205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4209 (exit $ac_status); }; }; then
4210 groff_cv_decl_needed_strncasecmp
=no
4212 echo "$as_me: failed program was:" >&5
4213 cat conftest.
$ac_ext >&5
4214 groff_cv_decl_needed_strncasecmp
=yes
4216 rm -f conftest.
$ac_objext conftest.
$ac_ext
4219 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_strncasecmp" >&5
4220 echo "${ECHO_T}$groff_cv_decl_needed_strncasecmp" >&6
4221 if test $groff_cv_decl_needed_strncasecmp = yes; then
4223 cat >>confdefs.h
<<\_ACEOF
4224 #define NEED_DECLARATION_STRNCASECMP 1
4229 ac_cpp
='$CPP $CPPFLAGS'
4230 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4231 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4232 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4235 ac_cpp
='$CXXCPP $CPPFLAGS'
4236 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4237 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4238 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4240 echo "$as_me:$LINENO: checking for sys_nerr in <errno.h> or <stdio.h>" >&5
4241 echo $ECHO_N "checking for sys_nerr in <errno.h> or <stdio.h>... $ECHO_C" >&6
4242 cat >conftest.
$ac_ext <<_ACEOF
4243 #line $LINENO "configure"
4244 #include "confdefs.h"
4247 #ifdef F77_DUMMY_MAIN
4251 int F77_DUMMY_MAIN() { return 1; }
4256 int k; k = sys_nerr;
4261 rm -f conftest.
$ac_objext
4262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4263 (eval $ac_compile) 2>&5
4265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4266 (exit $ac_status); } &&
4267 { ac_try
='test -s conftest.$ac_objext'
4268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4272 (exit $ac_status); }; }; then
4273 echo "$as_me:$LINENO: result: yes" >&5
4274 echo "${ECHO_T}yes" >&6;
4275 cat >>confdefs.h
<<\_ACEOF
4276 #define HAVE_SYS_NERR 1
4280 echo "$as_me: failed program was:" >&5
4281 cat conftest.
$ac_ext >&5
4282 echo "$as_me:$LINENO: result: no" >&5
4283 echo "${ECHO_T}no" >&6
4285 rm -f conftest.
$ac_objext conftest.
$ac_ext
4287 ac_cpp
='$CPP $CPPFLAGS'
4288 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4289 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4290 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4292 echo "$as_me:$LINENO: checking for sys_errlist in <errno.h> or <stdio.h>" >&5
4293 echo $ECHO_N "checking for sys_errlist in <errno.h> or <stdio.h>... $ECHO_C" >&6
4294 cat >conftest.
$ac_ext <<_ACEOF
4295 #line $LINENO "configure"
4296 #include "confdefs.h"
4299 #ifdef F77_DUMMY_MAIN
4303 int F77_DUMMY_MAIN() { return 1; }
4308 int k; k = (int)sys_errlist[0];
4313 rm -f conftest.
$ac_objext
4314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4315 (eval $ac_compile) 2>&5
4317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318 (exit $ac_status); } &&
4319 { ac_try
='test -s conftest.$ac_objext'
4320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4324 (exit $ac_status); }; }; then
4325 echo "$as_me:$LINENO: result: yes" >&5
4326 echo "${ECHO_T}yes" >&6;
4327 cat >>confdefs.h
<<\_ACEOF
4328 #define HAVE_SYS_ERRLIST 1
4332 echo "$as_me: failed program was:" >&5
4333 cat conftest.
$ac_ext >&5
4334 echo "$as_me:$LINENO: result: no" >&5
4335 echo "${ECHO_T}no" >&6
4337 rm -f conftest.
$ac_objext conftest.
$ac_ext
4339 ac_cpp
='$CXXCPP $CPPFLAGS'
4340 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4341 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4342 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4344 echo "$as_me:$LINENO: checking C++ <osfcn.h>" >&5
4345 echo $ECHO_N "checking C++ <osfcn.h>... $ECHO_C" >&6
4346 cat >conftest.
$ac_ext <<_ACEOF
4347 #line $LINENO "configure"
4348 #include "confdefs.h"
4350 #ifdef F77_DUMMY_MAIN
4354 int F77_DUMMY_MAIN() { return 1; }
4359 read(0, 0, 0); open(0, 0);
4364 rm -f conftest.
$ac_objext
4365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4366 (eval $ac_compile) 2>&5
4368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4369 (exit $ac_status); } &&
4370 { ac_try
='test -s conftest.$ac_objext'
4371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4375 (exit $ac_status); }; }; then
4376 echo "$as_me:$LINENO: result: yes" >&5
4377 echo "${ECHO_T}yes" >&6;
4378 cat >>confdefs.h
<<\_ACEOF
4379 #define HAVE_CC_OSFCN_H 1
4383 echo "$as_me: failed program was:" >&5
4384 cat conftest.
$ac_ext >&5
4385 echo "$as_me:$LINENO: result: no" >&5
4386 echo "${ECHO_T}no" >&6
4388 rm -f conftest.
$ac_objext conftest.
$ac_ext
4390 ac_cpp
='$CPP $CPPFLAGS'
4391 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4392 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4393 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4396 ac_cpp
='$CXXCPP $CPPFLAGS'
4397 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4398 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4399 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4401 echo "$as_me:$LINENO: checking C++ <limits.h>" >&5
4402 echo $ECHO_N "checking C++ <limits.h>... $ECHO_C" >&6
4403 cat >conftest.
$ac_ext <<_ACEOF
4404 #line $LINENO "configure"
4405 #include "confdefs.h"
4407 #ifdef F77_DUMMY_MAIN
4411 int F77_DUMMY_MAIN() { return 1; }
4416 int x = INT_MIN; int y = INT_MAX; int z = UCHAR_MAX;
4421 rm -f conftest.
$ac_objext
4422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4423 (eval $ac_compile) 2>&5
4425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4426 (exit $ac_status); } &&
4427 { ac_try
='test -s conftest.$ac_objext'
4428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4432 (exit $ac_status); }; }; then
4433 echo "$as_me:$LINENO: result: yes" >&5
4434 echo "${ECHO_T}yes" >&6;
4435 cat >>confdefs.h
<<\_ACEOF
4436 #define HAVE_CC_LIMITS_H 1
4440 echo "$as_me: failed program was:" >&5
4441 cat conftest.
$ac_ext >&5
4442 echo "$as_me:$LINENO: result: no" >&5
4443 echo "${ECHO_T}no" >&6
4445 rm -f conftest.
$ac_objext conftest.
$ac_ext
4447 ac_cpp
='$CPP $CPPFLAGS'
4448 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4449 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4450 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4453 ac_cpp
='$CXXCPP $CPPFLAGS'
4454 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4455 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4456 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4458 echo "$as_me:$LINENO: checking for inttypes.h" >&5
4459 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
4460 cat >conftest.
$ac_ext <<_ACEOF
4461 #line $LINENO "configure"
4462 #include "confdefs.h"
4463 #include <sys/types.h>
4464 #include <inttypes.h>
4465 #ifdef F77_DUMMY_MAIN
4469 int F77_DUMMY_MAIN() { return 1; }
4474 uintmax_t i = (uintmax_t)-1;
4479 rm -f conftest.
$ac_objext
4480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4481 (eval $ac_compile) 2>&5
4483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4484 (exit $ac_status); } &&
4485 { ac_try
='test -s conftest.$ac_objext'
4486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4490 (exit $ac_status); }; }; then
4491 groff_cv_header_inttypes_h
=yes
4493 echo "$as_me: failed program was:" >&5
4494 cat conftest.
$ac_ext >&5
4495 groff_cv_header_inttypes_h
=no
4497 rm -f conftest.
$ac_objext conftest.
$ac_ext
4498 echo "$as_me:$LINENO: result: $groff_cv_header_inttypes_h" >&5
4499 echo "${ECHO_T}$groff_cv_header_inttypes_h" >&6
4501 ac_cpp
='$CPP $CPPFLAGS'
4502 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4503 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4504 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4507 ac_cpp
='$CXXCPP $CPPFLAGS'
4508 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4509 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4510 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4512 echo "$as_me:$LINENO: checking for unsigned long long" >&5
4513 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
4514 cat >conftest.
$ac_ext <<_ACEOF
4515 #line $LINENO "configure"
4516 #include "confdefs.h"
4517 unsigned long long ull = 1; int i = 63;
4518 #ifdef F77_DUMMY_MAIN
4522 int F77_DUMMY_MAIN() { return 1; }
4527 unsigned long long ullmax = (unsigned long long)-1;
4528 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
4533 rm -f conftest.
$ac_objext conftest
$ac_exeext
4534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4535 (eval $ac_link) 2>&5
4537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4538 (exit $ac_status); } &&
4539 { ac_try
='test -s conftest$ac_exeext'
4540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4544 (exit $ac_status); }; }; then
4545 groff_cv_type_unsigned_long_long
=yes
4547 echo "$as_me: failed program was:" >&5
4548 cat conftest.
$ac_ext >&5
4549 groff_cv_type_unsigned_long_long
=no
4551 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4552 echo "$as_me:$LINENO: result: $groff_cv_type_unsigned_long_long" >&5
4553 echo "${ECHO_T}$groff_cv_type_unsigned_long_long" >&6
4555 ac_cpp
='$CPP $CPPFLAGS'
4556 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4557 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4558 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4561 if test $groff_cv_header_inttypes_h = no
; then
4563 test $groff_cv_type_unsigned_long_long = yes \
4564 && ac_type
='unsigned long long' \
4565 || ac_type
='unsigned long'
4567 cat >>confdefs.h
<<_ACEOF
4568 #define uintmax_t $ac_type
4573 ac_cpp
='$CXXCPP $CPPFLAGS'
4574 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4575 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4576 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4578 echo "$as_me:$LINENO: checking for declaration of time_t" >&5
4579 echo $ECHO_N "checking for declaration of time_t... $ECHO_C" >&6
4580 cat >conftest.
$ac_ext <<_ACEOF
4581 #line $LINENO "configure"
4582 #include "confdefs.h"
4584 #ifdef F77_DUMMY_MAIN
4588 int F77_DUMMY_MAIN() { return 1; }
4593 time_t t = time(0); struct tm *p = localtime(&t);
4598 rm -f conftest.
$ac_objext
4599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4600 (eval $ac_compile) 2>&5
4602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4603 (exit $ac_status); } &&
4604 { ac_try
='test -s conftest.$ac_objext'
4605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4609 (exit $ac_status); }; }; then
4610 echo "$as_me:$LINENO: result: yes" >&5
4611 echo "${ECHO_T}yes" >&6
4613 echo "$as_me: failed program was:" >&5
4614 cat conftest.
$ac_ext >&5
4615 echo "$as_me:$LINENO: result: no" >&5
4616 echo "${ECHO_T}no" >&6;
4617 cat >>confdefs.h
<<\_ACEOF
4618 #define LONG_FOR_TIME_T 1
4622 rm -f conftest.
$ac_objext conftest.
$ac_ext
4624 ac_cpp
='$CPP $CPPFLAGS'
4625 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4626 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4627 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4629 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
4630 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
4631 if test "${ac_cv_type_signal+set}" = set; then
4632 echo $ECHO_N "(cached) $ECHO_C" >&6
4634 cat >conftest.
$ac_ext <<_ACEOF
4635 #line $LINENO "configure"
4636 #include "confdefs.h"
4637 #include <sys/types.h>
4643 extern "C" void (*signal (int, void (*)(int)))(int);
4645 void (*signal ()) ();
4648 #ifdef F77_DUMMY_MAIN
4652 int F77_DUMMY_MAIN() { return 1; }
4662 rm -f conftest.
$ac_objext
4663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4664 (eval $ac_compile) 2>&5
4666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4667 (exit $ac_status); } &&
4668 { ac_try
='test -s conftest.$ac_objext'
4669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4673 (exit $ac_status); }; }; then
4674 ac_cv_type_signal
=void
4676 echo "$as_me: failed program was:" >&5
4677 cat conftest.
$ac_ext >&5
4678 ac_cv_type_signal
=int
4680 rm -f conftest.
$ac_objext conftest.
$ac_ext
4682 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
4683 echo "${ECHO_T}$ac_cv_type_signal" >&6
4685 cat >>confdefs.h
<<_ACEOF
4686 #define RETSIGTYPE $ac_cv_type_signal
4690 echo "$as_me:$LINENO: checking struct exception" >&5
4691 echo $ECHO_N "checking struct exception... $ECHO_C" >&6
4692 cat >conftest.
$ac_ext <<_ACEOF
4693 #line $LINENO "configure"
4694 #include "confdefs.h"
4696 #ifdef F77_DUMMY_MAIN
4700 int F77_DUMMY_MAIN() { return 1; }
4710 rm -f conftest.
$ac_objext
4711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4712 (eval $ac_compile) 2>&5
4714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4715 (exit $ac_status); } &&
4716 { ac_try
='test -s conftest.$ac_objext'
4717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4721 (exit $ac_status); }; }; then
4722 echo "$as_me:$LINENO: result: yes" >&5
4723 echo "${ECHO_T}yes" >&6;
4724 cat >>confdefs.h
<<\_ACEOF
4725 #define HAVE_STRUCT_EXCEPTION 1
4729 echo "$as_me: failed program was:" >&5
4730 cat conftest.
$ac_ext >&5
4731 echo "$as_me:$LINENO: result: no" >&5
4732 echo "${ECHO_T}no" >&6
4734 rm -f conftest.
$ac_objext conftest.
$ac_ext
4735 echo "$as_me:$LINENO: checking for sin in -lm" >&5
4736 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
4737 if test "${ac_cv_lib_m_sin+set}" = set; then
4738 echo $ECHO_N "(cached) $ECHO_C" >&6
4740 ac_check_lib_save_LIBS
=$LIBS
4742 cat >conftest.
$ac_ext <<_ACEOF
4743 #line $LINENO "configure"
4744 #include "confdefs.h"
4746 /* Override any gcc2 internal prototype to avoid an error. */
4750 /* We use char because int might match the return type of a gcc2
4751 builtin and then its argument prototype would still apply. */
4753 #ifdef F77_DUMMY_MAIN
4757 int F77_DUMMY_MAIN() { return 1; }
4767 rm -f conftest.
$ac_objext conftest
$ac_exeext
4768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4769 (eval $ac_link) 2>&5
4771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4772 (exit $ac_status); } &&
4773 { ac_try
='test -s conftest$ac_exeext'
4774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4778 (exit $ac_status); }; }; then
4781 echo "$as_me: failed program was:" >&5
4782 cat conftest.
$ac_ext >&5
4785 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4786 LIBS
=$ac_check_lib_save_LIBS
4788 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
4789 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
4790 if test $ac_cv_lib_m_sin = yes; then
4797 for ac_header
in stdlib.h unistd.h
4799 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4800 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4801 echo "$as_me:$LINENO: checking for $ac_header" >&5
4802 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4803 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4804 echo $ECHO_N "(cached) $ECHO_C" >&6
4806 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4807 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4809 # Is the header compilable?
4810 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4811 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4812 cat >conftest.
$ac_ext <<_ACEOF
4813 #line $LINENO "configure"
4814 #include "confdefs.h"
4815 $ac_includes_default
4816 #include <$ac_header>
4818 rm -f conftest.
$ac_objext
4819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4820 (eval $ac_compile) 2>&5
4822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4823 (exit $ac_status); } &&
4824 { ac_try
='test -s conftest.$ac_objext'
4825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4829 (exit $ac_status); }; }; then
4830 ac_header_compiler
=yes
4832 echo "$as_me: failed program was:" >&5
4833 cat conftest.
$ac_ext >&5
4834 ac_header_compiler
=no
4836 rm -f conftest.
$ac_objext conftest.
$ac_ext
4837 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4838 echo "${ECHO_T}$ac_header_compiler" >&6
4840 # Is the header present?
4841 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4842 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4843 cat >conftest.
$ac_ext <<_ACEOF
4844 #line $LINENO "configure"
4845 #include "confdefs.h"
4846 #include <$ac_header>
4848 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4849 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4851 egrep -v '^ *\+' conftest.er1
>conftest.err
4853 cat conftest.err
>&5
4854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4855 (exit $ac_status); } >/dev
/null
; then
4856 if test -s conftest.err
; then
4857 ac_cpp_err
=$ac_c_preproc_warn_flag
4864 if test -z "$ac_cpp_err"; then
4865 ac_header_preproc
=yes
4867 echo "$as_me: failed program was:" >&5
4868 cat conftest.
$ac_ext >&5
4869 ac_header_preproc
=no
4871 rm -f conftest.err conftest.
$ac_ext
4872 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4873 echo "${ECHO_T}$ac_header_preproc" >&6
4875 # So? What about this header?
4876 case $ac_header_compiler:$ac_header_preproc in
4878 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4879 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4880 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4881 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4883 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4884 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4885 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4886 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4887 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4888 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4890 echo "$as_me:$LINENO: checking for $ac_header" >&5
4891 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4892 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4893 echo $ECHO_N "(cached) $ECHO_C" >&6
4895 eval "$as_ac_Header=$ac_header_preproc"
4897 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4898 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4901 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4902 cat >>confdefs.h
<<_ACEOF
4903 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4911 for ac_func
in getpagesize
4913 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4914 echo "$as_me:$LINENO: checking for $ac_func" >&5
4915 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4916 if eval "test \"\${$as_ac_var+set}\" = set"; then
4917 echo $ECHO_N "(cached) $ECHO_C" >&6
4919 cat >conftest.
$ac_ext <<_ACEOF
4920 #line $LINENO "configure"
4921 #include "confdefs.h"
4922 /* System header to define __stub macros and hopefully few prototypes,
4923 which can conflict with char $ac_func (); below. */
4925 /* Override any gcc2 internal prototype to avoid an error. */
4929 /* We use char because int might match the return type of a gcc2
4930 builtin and then its argument prototype would still apply. */
4934 #ifdef F77_DUMMY_MAIN
4938 int F77_DUMMY_MAIN() { return 1; }
4943 /* The GNU C library defines this for functions which it implements
4944 to always fail with ENOSYS. Some functions are actually named
4945 something starting with __ and the normal name is an alias. */
4946 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4956 rm -f conftest.
$ac_objext conftest
$ac_exeext
4957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4958 (eval $ac_link) 2>&5
4960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4961 (exit $ac_status); } &&
4962 { ac_try
='test -s conftest$ac_exeext'
4963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4967 (exit $ac_status); }; }; then
4968 eval "$as_ac_var=yes"
4970 echo "$as_me: failed program was:" >&5
4971 cat conftest.
$ac_ext >&5
4972 eval "$as_ac_var=no"
4974 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4976 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4977 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4978 if test `eval echo '${'$as_ac_var'}'` = yes; then
4979 cat >>confdefs.h
<<_ACEOF
4980 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4986 echo "$as_me:$LINENO: checking for working mmap" >&5
4987 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
4988 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
4989 echo $ECHO_N "(cached) $ECHO_C" >&6
4991 if test "$cross_compiling" = yes; then
4992 ac_cv_func_mmap_fixed_mapped
=no
4994 cat >conftest.
$ac_ext <<_ACEOF
4995 #line $LINENO "configure"
4996 #include "confdefs.h"
4997 $ac_includes_default
4998 /* malloc might have been renamed as rpl_malloc. */
5001 /* Thanks to Mike Haertel and Jim Avera for this test.
5002 Here is a matrix of mmap possibilities:
5003 mmap private not fixed
5004 mmap private fixed at somewhere currently unmapped
5005 mmap private fixed at somewhere already mapped
5006 mmap shared not fixed
5007 mmap shared fixed at somewhere currently unmapped
5008 mmap shared fixed at somewhere already mapped
5009 For private mappings, we should verify that changes cannot be read()
5010 back from the file, nor mmap's back from the file at a different
5011 address. (There have been systems where private was not correctly
5012 implemented like the infamous i386 svr4.0, and systems where the
5013 VM page cache was not coherent with the file system buffer cache
5014 like early versions of FreeBSD and possibly contemporary NetBSD.)
5015 For shared mappings, we should conversely verify that changes get
5016 propagated back to all the places they're supposed to be.
5018 Grep wants private fixed already mapped.
5019 The main things grep needs to know about mmap are:
5020 * does it exist and is it safe to write into the mmap'd area
5021 * how to use it (BSD variants) */
5024 #include <sys/mman.h>
5026 #if !STDC_HEADERS && !HAVE_STDLIB_H
5030 /* This mess was copied from the GNU getpagesize.h. */
5031 #if !HAVE_GETPAGESIZE
5032 /* Assume that all systems that can run configure have sys/param.h. */
5033 # if !HAVE_SYS_PARAM_H
5034 # define HAVE_SYS_PARAM_H 1
5037 # ifdef _SC_PAGESIZE
5038 # define getpagesize() sysconf(_SC_PAGESIZE)
5039 # else /* no _SC_PAGESIZE */
5040 # if HAVE_SYS_PARAM_H
5041 # include <sys/param.h>
5042 # ifdef EXEC_PAGESIZE
5043 # define getpagesize() EXEC_PAGESIZE
5044 # else /* no EXEC_PAGESIZE */
5046 # define getpagesize() NBPG * CLSIZE
5049 # endif /* no CLSIZE */
5050 # else /* no NBPG */
5052 # define getpagesize() NBPC
5053 # else /* no NBPC */
5055 # define getpagesize() PAGESIZE
5056 # endif /* PAGESIZE */
5057 # endif /* no NBPC */
5058 # endif /* no NBPG */
5059 # endif /* no EXEC_PAGESIZE */
5060 # else /* no HAVE_SYS_PARAM_H */
5061 # define getpagesize() 8192 /* punt totally */
5062 # endif /* no HAVE_SYS_PARAM_H */
5063 # endif /* no _SC_PAGESIZE */
5065 #endif /* no HAVE_GETPAGESIZE */
5070 char *data, *data2, *data3;
5074 pagesize = getpagesize ();
5076 /* First, make a file with some known garbage in it. */
5077 data = (char *) malloc (pagesize);
5080 for (i = 0; i < pagesize; ++i)
5081 *(data + i) = rand ();
5083 fd = creat ("conftest.mmap", 0600);
5086 if (write (fd, data, pagesize) != pagesize)
5090 /* Next, try to mmap the file at a fixed address which already has
5091 something else allocated at it. If we can, also make sure that
5092 we see the same garbage. */
5093 fd = open ("conftest.mmap", O_RDWR);
5096 data2 = (char *) malloc (2 * pagesize);
5099 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
5100 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
5101 MAP_PRIVATE | MAP_FIXED, fd, 0L))
5103 for (i = 0; i < pagesize; ++i)
5104 if (*(data + i) != *(data2 + i))
5107 /* Finally, make sure that changes to the mapped area do not
5108 percolate back to the file as seen by read(). (This is a bug on
5109 some variants of i386 svr4.0.) */
5110 for (i = 0; i < pagesize; ++i)
5111 *(data2 + i) = *(data2 + i) + 1;
5112 data3 = (char *) malloc (pagesize);
5115 if (read (fd, data3, pagesize) != pagesize)
5117 for (i = 0; i < pagesize; ++i)
5118 if (*(data + i) != *(data3 + i))
5124 rm -f conftest
$ac_exeext
5125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5126 (eval $ac_link) 2>&5
5128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5129 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5134 (exit $ac_status); }; }; then
5135 ac_cv_func_mmap_fixed_mapped
=yes
5137 echo "$as_me: program exited with status $ac_status" >&5
5138 echo "$as_me: failed program was:" >&5
5139 cat conftest.
$ac_ext >&5
5141 ac_cv_func_mmap_fixed_mapped
=no
5143 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5146 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
5147 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
5148 if test $ac_cv_func_mmap_fixed_mapped = yes; then
5150 cat >>confdefs.h
<<\_ACEOF
5158 LIBS
="$LIBS -lc $LIBM"
5165 for ac_func
in fmod getcwd putenv snprintf strerror strtol
5167 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5168 echo "$as_me:$LINENO: checking for $ac_func" >&5
5169 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5170 if eval "test \"\${$as_ac_var+set}\" = set"; then
5171 echo $ECHO_N "(cached) $ECHO_C" >&6
5173 cat >conftest.
$ac_ext <<_ACEOF
5174 #line $LINENO "configure"
5175 #include "confdefs.h"
5176 /* System header to define __stub macros and hopefully few prototypes,
5177 which can conflict with char $ac_func (); below. */
5179 /* Override any gcc2 internal prototype to avoid an error. */
5183 /* We use char because int might match the return type of a gcc2
5184 builtin and then its argument prototype would still apply. */
5188 #ifdef F77_DUMMY_MAIN
5192 int F77_DUMMY_MAIN() { return 1; }
5197 /* The GNU C library defines this for functions which it implements
5198 to always fail with ENOSYS. Some functions are actually named
5199 something starting with __ and the normal name is an alias. */
5200 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5210 rm -f conftest.
$ac_objext conftest
$ac_exeext
5211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5212 (eval $ac_link) 2>&5
5214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5215 (exit $ac_status); } &&
5216 { ac_try
='test -s conftest$ac_exeext'
5217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5221 (exit $ac_status); }; }; then
5222 eval "$as_ac_var=yes"
5224 echo "$as_me: failed program was:" >&5
5225 cat conftest.
$ac_ext >&5
5226 eval "$as_ac_var=no"
5228 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5230 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5231 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5232 if test `eval echo '${'$as_ac_var'}'` = yes; then
5233 cat >>confdefs.h
<<_ACEOF
5234 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5238 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
5250 for ac_func
in gettimeofday isatty rename strcasecmp strncasecmp strsep
5252 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5253 echo "$as_me:$LINENO: checking for $ac_func" >&5
5254 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5255 if eval "test \"\${$as_ac_var+set}\" = set"; then
5256 echo $ECHO_N "(cached) $ECHO_C" >&6
5258 cat >conftest.
$ac_ext <<_ACEOF
5259 #line $LINENO "configure"
5260 #include "confdefs.h"
5261 /* System header to define __stub macros and hopefully few prototypes,
5262 which can conflict with char $ac_func (); below. */
5264 /* Override any gcc2 internal prototype to avoid an error. */
5268 /* We use char because int might match the return type of a gcc2
5269 builtin and then its argument prototype would still apply. */
5273 #ifdef F77_DUMMY_MAIN
5277 int F77_DUMMY_MAIN() { return 1; }
5282 /* The GNU C library defines this for functions which it implements
5283 to always fail with ENOSYS. Some functions are actually named
5284 something starting with __ and the normal name is an alias. */
5285 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5295 rm -f conftest.
$ac_objext conftest
$ac_exeext
5296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5297 (eval $ac_link) 2>&5
5299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5300 (exit $ac_status); } &&
5301 { ac_try
='test -s conftest$ac_exeext'
5302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5306 (exit $ac_status); }; }; then
5307 eval "$as_ac_var=yes"
5309 echo "$as_me: failed program was:" >&5
5310 cat conftest.
$ac_ext >&5
5311 eval "$as_ac_var=no"
5313 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5315 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5316 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5317 if test `eval echo '${'$as_ac_var'}'` = yes; then
5318 cat >>confdefs.h
<<_ACEOF
5319 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5325 echo "$as_me:$LINENO: checking for mkstemp" >&5
5326 echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
5328 ac_cpp
='$CXXCPP $CPPFLAGS'
5329 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5330 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5331 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5334 cat >conftest.
$ac_ext <<_ACEOF
5335 #line $LINENO "configure"
5336 #include "confdefs.h"
5340 #ifdef F77_DUMMY_MAIN
5344 int F77_DUMMY_MAIN() { return 1; }
5354 rm -f conftest.
$ac_objext conftest
$ac_exeext
5355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5356 (eval $ac_link) 2>&5
5358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5359 (exit $ac_status); } &&
5360 { ac_try
='test -s conftest$ac_exeext'
5361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5365 (exit $ac_status); }; }; then
5366 echo "$as_me:$LINENO: result: yes" >&5
5367 echo "${ECHO_T}yes" >&6;
5368 cat >>confdefs.h
<<\_ACEOF
5369 #define HAVE_MKSTEMP 1
5373 echo "$as_me: failed program was:" >&5
5374 cat conftest.
$ac_ext >&5
5375 echo "$as_me:$LINENO: result: no" >&5
5376 echo "${ECHO_T}no" >&6;LIBOBJS
="$LIBOBJS mkstemp.$ac_objext"
5378 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5380 ac_cpp
='$CPP $CPPFLAGS'
5381 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5382 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5383 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5385 echo "$as_me:$LINENO: checking for sys_siglist declaration in signal.h or unistd.h" >&5
5386 echo $ECHO_N "checking for sys_siglist declaration in signal.h or unistd.h... $ECHO_C" >&6
5387 if test "${ac_cv_decl_sys_siglist+set}" = set; then
5388 echo $ECHO_N "(cached) $ECHO_C" >&6
5390 cat >conftest.
$ac_ext <<_ACEOF
5391 #line $LINENO "configure"
5392 #include "confdefs.h"
5393 #include <sys/types.h>
5395 /* NetBSD declares sys_siglist in unistd.h. */
5397 # include <unistd.h>
5400 #ifdef F77_DUMMY_MAIN
5404 int F77_DUMMY_MAIN() { return 1; }
5409 char *msg = *(sys_siglist + 1);
5414 rm -f conftest.
$ac_objext
5415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5416 (eval $ac_compile) 2>&5
5418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5419 (exit $ac_status); } &&
5420 { ac_try
='test -s conftest.$ac_objext'
5421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5425 (exit $ac_status); }; }; then
5426 ac_cv_decl_sys_siglist
=yes
5428 echo "$as_me: failed program was:" >&5
5429 cat conftest.
$ac_ext >&5
5430 ac_cv_decl_sys_siglist
=no
5432 rm -f conftest.
$ac_objext conftest.
$ac_ext
5434 echo "$as_me:$LINENO: result: $ac_cv_decl_sys_siglist" >&5
5435 echo "${ECHO_T}$ac_cv_decl_sys_siglist" >&6
5436 if test $ac_cv_decl_sys_siglist = yes; then
5438 cat >>confdefs.h
<<\_ACEOF
5439 #define SYS_SIGLIST_DECLARED 1
5445 ac_cpp
='$CXXCPP $CPPFLAGS'
5446 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5447 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5448 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5450 echo "$as_me:$LINENO: checking whether ANSI array delete syntax supported" >&5
5451 echo $ECHO_N "checking whether ANSI array delete syntax supported... $ECHO_C" >&6
5452 cat >conftest.
$ac_ext <<_ACEOF
5453 #line $LINENO "configure"
5454 #include "confdefs.h"
5456 #ifdef F77_DUMMY_MAIN
5460 int F77_DUMMY_MAIN() { return 1; }
5465 char *p = new char[5]; delete [] p;
5470 rm -f conftest.
$ac_objext
5471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5472 (eval $ac_compile) 2>&5
5474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5475 (exit $ac_status); } &&
5476 { ac_try
='test -s conftest.$ac_objext'
5477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5481 (exit $ac_status); }; }; then
5482 echo "$as_me:$LINENO: result: yes" >&5
5483 echo "${ECHO_T}yes" >&6
5485 echo "$as_me: failed program was:" >&5
5486 cat conftest.
$ac_ext >&5
5487 echo "$as_me:$LINENO: result: no" >&5
5488 echo "${ECHO_T}no" >&6;
5489 cat >>confdefs.h
<<\_ACEOF
5490 #define ARRAY_DELETE_NEEDS_SIZE 1
5494 rm -f conftest.
$ac_objext conftest.
$ac_ext
5496 ac_cpp
='$CPP $CPPFLAGS'
5497 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5498 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5499 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5502 ac_cpp
='$CXXCPP $CPPFLAGS'
5503 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5504 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5505 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5507 echo "$as_me:$LINENO: checking traditional preprocessor" >&5
5508 echo $ECHO_N "checking traditional preprocessor... $ECHO_C" >&6
5509 cat >conftest.
$ac_ext <<_ACEOF
5510 #line $LINENO "configure"
5511 #include "confdefs.h"
5512 #define name2(a,b) a/**/b
5513 #ifdef F77_DUMMY_MAIN
5517 int F77_DUMMY_MAIN() { return 1; }
5527 rm -f conftest.
$ac_objext
5528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5529 (eval $ac_compile) 2>&5
5531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5532 (exit $ac_status); } &&
5533 { ac_try
='test -s conftest.$ac_objext'
5534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5538 (exit $ac_status); }; }; then
5539 echo "$as_me:$LINENO: result: yes" >&5
5540 echo "${ECHO_T}yes" >&6;
5541 cat >>confdefs.h
<<\_ACEOF
5542 #define TRADITIONAL_CPP 1
5546 echo "$as_me: failed program was:" >&5
5547 cat conftest.
$ac_ext >&5
5548 echo "$as_me:$LINENO: result: no" >&5
5549 echo "${ECHO_T}no" >&6
5551 rm -f conftest.
$ac_objext conftest.
$ac_ext
5553 ac_cpp
='$CPP $CPPFLAGS'
5554 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5555 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5556 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5558 echo "$as_me:$LINENO: checking w_coredump" >&5
5559 echo $ECHO_N "checking w_coredump... $ECHO_C" >&6
5560 if test "$cross_compiling" = yes; then
5561 echo "$as_me:$LINENO: result: no" >&5
5562 echo "${ECHO_T}no" >&6
5564 cat >conftest.
$ac_ext <<_ACEOF
5565 #line $LINENO "configure"
5566 #include "confdefs.h"
5567 #include <sys/types.h>
5568 #include <sys/wait.h>
5575 ((union wait *)&i)->w_coredump = 1;
5580 rm -f conftest
$ac_exeext
5581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5582 (eval $ac_link) 2>&5
5584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5585 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5590 (exit $ac_status); }; }; then
5591 echo "$as_me:$LINENO: result: yes" >&5
5592 echo "${ECHO_T}yes" >&6;
5593 cat >>confdefs.h
<<\_ACEOF
5594 #define WCOREFLAG 0200
5598 echo "$as_me: program exited with status $ac_status" >&5
5599 echo "$as_me: failed program was:" >&5
5600 cat conftest.
$ac_ext >&5
5602 echo "$as_me:$LINENO: result: no" >&5
5603 echo "${ECHO_T}no" >&6
5605 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5607 echo "$as_me:$LINENO: checking default value for grops -b option" >&5
5608 echo $ECHO_N "checking default value for grops -b option... $ECHO_C" >&6
5609 test -n "${BROKEN_SPOOLER_FLAGS}" || BROKEN_SPOOLER_FLAGS
=7
5610 echo "$as_me:$LINENO: result: $BROKEN_SPOOLER_FLAGS" >&5
5611 echo "${ECHO_T}$BROKEN_SPOOLER_FLAGS" >&6
5613 echo "$as_me:$LINENO: checking default paper size" >&5
5614 echo $ECHO_N "checking default paper size... $ECHO_C" >&6
5615 groff_prefix
=$prefix
5616 test "x$prefix" = xNONE
&& groff_prefix
=$ac_default_prefix
5617 if test -z "$PAGE"; then
5619 if test -r $groff_prefix/share
/groff
/font
/devps
/DESC
; then
5620 descfile
=$groff_prefix/share
/groff
/font
/devps
/DESC
5621 elif test -r $groff_prefix/lib
/groff
/font
/devps
/DESC
; then
5622 descfile
=$groff_prefix/lib
/groff
/font
/devps
/DESC
5624 for f
in $groff_prefix/share
/groff
/*/font
/devps
/DESC
; do
5631 if test -n "$descfile"; then
5632 if grep '^paperlength[ ]\+841890' $descfile
5633 >/dev
/null
2>&1; then
5635 elif grep '^papersize[ ]\+[aA]4' $descfile \
5636 >/dev
/null
2>&1; then
5641 if test -z "$PAGE"; then
5642 dom
=`awk '($1 == "dom" || $1 == "search") { print $2; exit}' \
5643 /etc/resolv.conf 2>/dev/null`
5644 if test -z "$dom"; then
5645 dom
=`(domainname) 2>/dev/null | tr -d '+'`
5647 ||
test "$dom" = '(none)'; then
5648 dom
=`(hostname) 2>/dev/null | grep '\.'`
5651 # If the top-level domain is two letters and it's not `us' or `ca'
5652 # then they probably use A4 paper.
5654 *.
[Uu
][Ss
]|
*.
[Cc
][Aa
]) ;;
5655 *.
[A-Za-z
][A-Za-z
]) PAGE
=A4
;;
5658 test -n "$PAGE" || PAGE
=letter
5659 if test "x$PAGE" = "xA4"; then
5661 cat >>confdefs.h
<<\_ACEOF
5666 echo "$as_me:$LINENO: result: $PAGE" >&5
5667 echo "${ECHO_T}$PAGE" >&6
5669 echo "$as_me:$LINENO: checking for existing troff installation" >&5
5670 echo $ECHO_N "checking for existing troff installation... $ECHO_C" >&6
5671 if test "x`(echo .tm '|n(.g' | tr '|' '\\\\' | troff -z -i 2>&1) 2>/dev/null`" = x0
; then
5672 echo "$as_me:$LINENO: result: yes" >&5
5673 echo "${ECHO_T}yes" >&6
5676 echo "$as_me:$LINENO: result: no" >&5
5677 echo "${ECHO_T}no" >&6
5681 echo "$as_me:$LINENO: checking for prefix of system macro packages" >&5
5682 echo $ECHO_N "checking for prefix of system macro packages... $ECHO_C" >&6
5684 sys_tmac_file_prefix
=
5685 for d
in /usr
/share
/lib
/tmac
/usr
/lib
/tmac
; do
5686 for t
in "" tmac.
; do
5689 if test -z "$sys_tmac_prefix" \
5691 && grep '^\.if' $f >/dev
/null
2>&1; then
5692 sys_tmac_prefix
=$d/$t
5693 sys_tmac_file_prefix
=$t
5698 echo "$as_me:$LINENO: result: $sys_tmac_prefix" >&5
5699 echo "${ECHO_T}$sys_tmac_prefix" >&6
5702 echo "$as_me:$LINENO: checking which system macro packages should be made available" >&5
5703 echo $ECHO_N "checking which system macro packages should be made available... $ECHO_C" >&6
5704 if test "x$sys_tmac_file_prefix" = "xtmac."; then
5705 for f
in $sys_tmac_prefix*; do
5706 suff
=`echo $f | sed -e "s;$sys_tmac_prefix;;"`
5710 grep "Copyright.*Free Software Foundation" $f >/dev
/null \
5711 || tmac_wrap
="$tmac_wrap $suff" ;;
5714 elif test -n "$sys_tmac_prefix"; then
5715 files
=`echo $sys_tmac_prefix*`
5716 grep "\\.so" $files >conftest.sol
5719 ${sys_tmac_prefix}e
) ;;
5724 if grep "\\.so.*/$b\$" conftest.sol
>/dev
/null \
5725 ||
grep -l "Copyright.*Free Software Foundation" $f >/dev
/null
; then
5728 suff
=`echo $f | sed -e "s;$sys_tmac_prefix;;"`
5731 *) tmac_wrap
="$tmac_wrap $suff" ;;
5738 echo "$as_me:$LINENO: result: $tmac_wrap" >&5
5739 echo "${ECHO_T}$tmac_wrap" >&6
5742 make_install_html
=install_html
5743 # Extract the first word of "pnmcut", so it can be a program name with args.
5744 set dummy pnmcut
; ac_word
=$2
5745 echo "$as_me:$LINENO: checking for $ac_word" >&5
5746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5747 if test "${ac_cv_prog_pnmcut+set}" = set; then
5748 echo $ECHO_N "(cached) $ECHO_C" >&6
5750 if test -n "$pnmcut"; then
5751 ac_cv_prog_pnmcut
="$pnmcut" # Let the user override the test.
5753 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5757 test -z "$as_dir" && as_dir
=.
5758 for ac_exec_ext
in '' $ac_executable_extensions; do
5759 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5760 ac_cv_prog_pnmcut
="found"
5761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5767 test -z "$ac_cv_prog_pnmcut" && ac_cv_prog_pnmcut
="missing"
5770 pnmcut
=$ac_cv_prog_pnmcut
5771 if test -n "$pnmcut"; then
5772 echo "$as_me:$LINENO: result: $pnmcut" >&5
5773 echo "${ECHO_T}$pnmcut" >&6
5775 echo "$as_me:$LINENO: result: no" >&5
5776 echo "${ECHO_T}no" >&6
5779 # Extract the first word of "pnmcrop", so it can be a program name with args.
5780 set dummy pnmcrop
; ac_word
=$2
5781 echo "$as_me:$LINENO: checking for $ac_word" >&5
5782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5783 if test "${ac_cv_prog_pnmcrop+set}" = set; then
5784 echo $ECHO_N "(cached) $ECHO_C" >&6
5786 if test -n "$pnmcrop"; then
5787 ac_cv_prog_pnmcrop
="$pnmcrop" # Let the user override the test.
5789 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5793 test -z "$as_dir" && as_dir
=.
5794 for ac_exec_ext
in '' $ac_executable_extensions; do
5795 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5796 ac_cv_prog_pnmcrop
="found"
5797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5803 test -z "$ac_cv_prog_pnmcrop" && ac_cv_prog_pnmcrop
="missing"
5806 pnmcrop
=$ac_cv_prog_pnmcrop
5807 if test -n "$pnmcrop"; then
5808 echo "$as_me:$LINENO: result: $pnmcrop" >&5
5809 echo "${ECHO_T}$pnmcrop" >&6
5811 echo "$as_me:$LINENO: result: no" >&5
5812 echo "${ECHO_T}no" >&6
5815 # Extract the first word of "pnmtopng", so it can be a program name with args.
5816 set dummy pnmtopng
; ac_word
=$2
5817 echo "$as_me:$LINENO: checking for $ac_word" >&5
5818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5819 if test "${ac_cv_prog_pnmtopng+set}" = set; then
5820 echo $ECHO_N "(cached) $ECHO_C" >&6
5822 if test -n "$pnmtopng"; then
5823 ac_cv_prog_pnmtopng
="$pnmtopng" # Let the user override the test.
5825 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5829 test -z "$as_dir" && as_dir
=.
5830 for ac_exec_ext
in '' $ac_executable_extensions; do
5831 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5832 ac_cv_prog_pnmtopng
="found"
5833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5839 test -z "$ac_cv_prog_pnmtopng" && ac_cv_prog_pnmtopng
="missing"
5842 pnmtopng
=$ac_cv_prog_pnmtopng
5843 if test -n "$pnmtopng"; then
5844 echo "$as_me:$LINENO: result: $pnmtopng" >&5
5845 echo "${ECHO_T}$pnmtopng" >&6
5847 echo "$as_me:$LINENO: result: no" >&5
5848 echo "${ECHO_T}no" >&6
5851 # Extract the first word of "gs gsos2", so it can be a program name with args.
5852 set dummy gs gsos2
; ac_word
=$2
5853 echo "$as_me:$LINENO: checking for $ac_word" >&5
5854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5855 if test "${ac_cv_prog_gs+set}" = set; then
5856 echo $ECHO_N "(cached) $ECHO_C" >&6
5858 if test -n "$gs"; then
5859 ac_cv_prog_gs
="$gs" # Let the user override the test.
5861 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5865 test -z "$as_dir" && as_dir
=.
5866 for ac_exec_ext
in '' $ac_executable_extensions; do
5867 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5868 ac_cv_prog_gs
="found"
5869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5875 test -z "$ac_cv_prog_gs" && ac_cv_prog_gs
="missing"
5879 if test -n "$gs"; then
5880 echo "$as_me:$LINENO: result: $gs" >&5
5881 echo "${ECHO_T}$gs" >&6
5883 echo "$as_me:$LINENO: result: no" >&5
5884 echo "${ECHO_T}no" >&6
5887 # Extract the first word of "psselect", so it can be a program name with args.
5888 set dummy psselect
; ac_word
=$2
5889 echo "$as_me:$LINENO: checking for $ac_word" >&5
5890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5891 if test "${ac_cv_prog_psselect+set}" = set; then
5892 echo $ECHO_N "(cached) $ECHO_C" >&6
5894 if test -n "$psselect"; then
5895 ac_cv_prog_psselect
="$psselect" # Let the user override the test.
5897 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5901 test -z "$as_dir" && as_dir
=.
5902 for ac_exec_ext
in '' $ac_executable_extensions; do
5903 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5904 ac_cv_prog_psselect
="found"
5905 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5911 test -z "$ac_cv_prog_psselect" && ac_cv_prog_psselect
="missing"
5914 psselect
=$ac_cv_prog_psselect
5915 if test -n "$psselect"; then
5916 echo "$as_me:$LINENO: result: $psselect" >&5
5917 echo "${ECHO_T}$psselect" >&6
5919 echo "$as_me:$LINENO: result: no" >&5
5920 echo "${ECHO_T}no" >&6
5923 case "x$pnmcut$pnmcrop$pnmtopng$gs$psselect" in
5927 { echo "$as_me:$LINENO: WARNING:
5929 Since one or more of the above five programs can't be found in the path,
5930 the HTML backend of groff (grohtml) won't work properly. Consequently,
5931 no documentation in HTML format is built and installed.
5933 echo "$as_me: WARNING:
5935 Since one or more of the above five programs can't be found in the path,
5936 the HTML backend of groff (grohtml) won't work properly. Consequently,
5937 no documentation in HTML format is built and installed.
5942 ac_config_files
="$ac_config_files stamp-h"
5944 ac_config_files
="$ac_config_files Makefile doc/Makefile src/xditview/Imakefile"
5946 cat >confcache
<<\_ACEOF
5947 # This file is a shell script that caches the results of configure
5948 # tests run on this system so they can be shared between configure
5949 # scripts and configure runs, see configure's option --config-cache.
5950 # It is not useful on other systems. If it contains results you don't
5951 # want to keep, you may remove or edit it.
5953 # config.status only pays attention to the cache file if you give it
5954 # the --recheck option to rerun configure.
5956 # `ac_cv_env_foo' variables (set or unset) will be overriden when
5957 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5962 # The following way of writing the cache mishandles newlines in values,
5963 # but we know of no workaround that is simple, portable, and efficient.
5964 # So, don't put newlines in cache variables' values.
5965 # Ultrix sh set writes to stderr and can't be redirected directly,
5966 # and sets the high bit in the cache file unless we assign to the vars.
5969 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5971 # `set' does not quote correctly, so add quotes (double-quote
5972 # substitution turns \\\\ into \\, and sed turns \\ into \).
5975 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5978 # `set' quotes correctly as required by POSIX, so do not add quotes.
5980 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5987 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5989 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5991 if cmp -s $cache_file confcache
; then :; else
5992 if test -w $cache_file; then
5993 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5994 cat confcache
>$cache_file
5996 echo "not updating unwritable cache $cache_file"
6001 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
6002 # Let make expand exec_prefix.
6003 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6005 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6006 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6007 # trailing colons and then remove the whole line if VPATH becomes empty
6008 # (actually we leave an empty line to preserve line numbers).
6009 if test "x$srcdir" = x.
; then
6010 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
6011 s/:*\$(srcdir):*/:/;
6012 s/:*\${srcdir}:*/:/;
6014 s/^\([^=]*=[ ]*\):*/\1/;
6020 DEFS
=-DHAVE_CONFIG_H
6023 : ${CONFIG_STATUS=./config.status}
6024 ac_clean_files_save
=$ac_clean_files
6025 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
6026 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6027 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6028 cat >$CONFIG_STATUS <<_ACEOF
6030 # Generated by $as_me.
6031 # Run this file to recreate the current configuration.
6032 # Compiler output produced by configure, useful for debugging
6033 # configure, is in config.log if it exists.
6036 SHELL=\${CONFIG_SHELL-$SHELL}
6039 cat >>$CONFIG_STATUS <<\_ACEOF
6041 ## --------------------- ##
6042 ## M4sh Initialization. ##
6043 ## --------------------- ##
6045 # Be Bourne compatible
6046 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
6049 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
6054 # Support unset when possible.
6055 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
6061 (set +x
; test -n "`(LANG=C; export LANG) 2>&1`") &&
6062 { $as_unset LANG ||
test "${LANG+set}" != set; } ||
6063 { LANG
=C
; export LANG
; }
6064 (set +x
; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
6065 { $as_unset LC_ALL ||
test "${LC_ALL+set}" != set; } ||
6066 { LC_ALL
=C
; export LC_ALL
; }
6067 (set +x
; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
6068 { $as_unset LC_TIME ||
test "${LC_TIME+set}" != set; } ||
6069 { LC_TIME
=C
; export LC_TIME
; }
6070 (set +x
; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
6071 { $as_unset LC_CTYPE ||
test "${LC_CTYPE+set}" != set; } ||
6072 { LC_CTYPE
=C
; export LC_CTYPE
; }
6073 (set +x
; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
6074 { $as_unset LANGUAGE ||
test "${LANGUAGE+set}" != set; } ||
6075 { LANGUAGE
=C
; export LANGUAGE
; }
6076 (set +x
; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
6077 { $as_unset LC_COLLATE ||
test "${LC_COLLATE+set}" != set; } ||
6078 { LC_COLLATE
=C
; export LC_COLLATE
; }
6079 (set +x
; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
6080 { $as_unset LC_NUMERIC ||
test "${LC_NUMERIC+set}" != set; } ||
6081 { LC_NUMERIC
=C
; export LC_NUMERIC
; }
6082 (set +x
; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
6083 { $as_unset LC_MESSAGES ||
test "${LC_MESSAGES+set}" != set; } ||
6084 { LC_MESSAGES
=C
; export LC_MESSAGES
; }
6087 # Name of the executable.
6088 as_me
=`(basename "$0") 2>/dev/null ||
6089 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6090 X"$0" : 'X\(//\)$' \| \
6091 X"$0" : 'X\(/\)$' \| \
6092 . : '\(.\)' 2>/dev/null ||
6094 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6095 /^X\/\(\/\/\)$/{ s//\1/; q; }
6096 /^X\/\(\/\).*/{ s//\1/; q; }
6099 # PATH needs CR, and LINENO needs CR and PATH.
6100 # Avoid depending upon Character Ranges.
6101 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
6102 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6103 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
6104 as_cr_digits
='0123456789'
6105 as_cr_alnum
=$as_cr_Letters$as_cr_digits
6107 # The user is always right.
6108 if test "${PATH_SEPARATOR+set}" != set; then
6109 echo "#! /bin/sh" >conftest.sh
6110 echo "exit 0" >>conftest.sh
6111 chmod +x conftest.sh
6112 if (PATH
=".;."; conftest.sh
) >/dev
/null
2>&1; then
6123 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
6124 test "x$as_lineno_1" != "x$as_lineno_2" &&
6125 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
6126 # Find who we are. Look in the path if we contain no path at all
6129 *[\\/]* ) as_myself
=$0 ;;
6130 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6134 test -z "$as_dir" && as_dir
=.
6135 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
6140 # We did not find ourselves, most probably we were run as `sh COMMAND'
6141 # in which case we are not to be found in the path.
6142 if test "x$as_myself" = x
; then
6145 if test ! -f "$as_myself"; then
6146 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6147 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6148 { (exit 1); exit 1; }; }
6150 case $CONFIG_SHELL in
6152 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6153 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
6156 test -z "$as_dir" && as_dir
=.
6157 for as_base
in sh bash ksh sh5
; do
6160 if ("$as_dir/$as_base" -c '
6163 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6164 test "x$as_lineno_1" != "x$as_lineno_2" &&
6165 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
6166 CONFIG_SHELL
=$as_dir/$as_base
6168 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6176 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6177 # uniformly replaced by the line number. The first 'sed' inserts a
6178 # line-number line before each line; the second 'sed' does the real
6179 # work. The second script uses 'N' to pair each line-number line
6180 # with the numbered line, and appends trailing '-' during
6181 # substitution so that $LINENO is not a special case at line end.
6182 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6183 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
6184 sed '=' <$as_myself |
6189 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6192 s,^['$as_cr_digits']*\n,,
6194 chmod +x
$as_me.lineno ||
6195 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6196 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6197 { (exit 1); exit 1; }; }
6199 # Don't try to exec as it changes $[0], causing all sort of problems
6200 # (the dirname of $[0] is not the place where we might find the
6201 # original and so on. Autoconf is especially sensible to this).
6203 # Exit status is that of the last command.
6208 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6209 *c
*,-n*) ECHO_N
= ECHO_C
='
6211 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
6212 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
6215 if expr a
: '\(a\)' >/dev
/null
2>&1; then
6221 rm -f conf$$ conf$$.exe conf$$.
file
6223 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
6224 # We could just check for DJGPP; but this test a) works b) is more generic
6225 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6226 if test -f conf$$.exe
; then
6227 # Don't use ln at all; we don't have any links
6232 elif ln conf$$.
file conf$$
2>/dev
/null
; then
6237 rm -f conf$$ conf$$.exe conf$$.
file
6239 as_executable_p
="test -f"
6241 # Sed expression to map a string onto a valid CPP name.
6242 as_tr_cpp
="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
6244 # Sed expression to map a string onto a valid variable name.
6245 as_tr_sh
="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
6249 # We need space, tab and new line, in precisely that order.
6255 $as_unset CDPATH ||
test "${CDPATH+set}" != set ||
{ CDPATH
=$PATH_SEPARATOR; export CDPATH
; }
6259 # Open the log real soon, to keep \$[0] and so on meaningful, and to
6260 # report actual input values of CONFIG_FILES etc. instead of their
6261 # values after options handling. Logging --version etc. is OK.
6265 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6266 ## Running $as_me. ##
6271 This file was extended by $as_me, which was
6272 generated by GNU Autoconf 2.53. Invocation command line was
6274 CONFIG_FILES = $CONFIG_FILES
6275 CONFIG_HEADERS = $CONFIG_HEADERS
6276 CONFIG_LINKS = $CONFIG_LINKS
6277 CONFIG_COMMANDS = $CONFIG_COMMANDS
6281 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6285 # Files that config.status was made for.
6286 if test -n "$ac_config_files"; then
6287 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6290 if test -n "$ac_config_headers"; then
6291 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6294 if test -n "$ac_config_links"; then
6295 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6298 if test -n "$ac_config_commands"; then
6299 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6302 cat >>$CONFIG_STATUS <<\_ACEOF
6305 \`$as_me' instantiates files from templates according to the
6306 current configuration.
6308 Usage: $0 [OPTIONS] [FILE]...
6310 -h, --help print this help, then exit
6311 -V, --version print version number, then exit
6312 -d, --debug don't remove temporary files
6313 --recheck update $as_me by reconfiguring in the same conditions
6314 --file=FILE[:TEMPLATE]
6315 instantiate the configuration file FILE
6316 --header=FILE[:TEMPLATE]
6317 instantiate the configuration header FILE
6319 Configuration files:
6322 Configuration headers:
6325 Report bugs to <bug-autoconf@gnu.org>."
6328 cat >>$CONFIG_STATUS <<_ACEOF
6331 configured by $0, generated by GNU Autoconf 2.53,
6332 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6334 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6335 Free Software Foundation, Inc.
6336 This config.status script is free software; the Free Software Foundation
6337 gives unlimited permission to copy, distribute and modify it."
6342 cat >>$CONFIG_STATUS <<\_ACEOF
6343 # If no file are specified by the user, then we need to provide default
6344 # value. By we need to know if files were specified by the user.
6350 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
6351 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
6353 set dummy
"$ac_option" "$ac_optarg" ${1+"$@"}
6357 *) # This is not an option, so the user has probably given explicit
6359 ac_need_defaults
=false
;;
6363 # Handling of the options.
6365 cat >>$CONFIG_STATUS <<_ACEOF
6366 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6367 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
6368 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
6370 cat >>$CONFIG_STATUS <<\_ACEOF
6371 --version |
--vers* |
-V )
6372 echo "$ac_cs_version"; exit 0 ;;
6374 # Conflict between --help and --header
6375 { { echo "$as_me:$LINENO: error: ambiguous option: $1
6376 Try \`$0 --help' for more information." >&5
6377 echo "$as_me: error: ambiguous option: $1
6378 Try \`$0 --help' for more information." >&2;}
6379 { (exit 1); exit 1; }; };;
6380 --help |
--hel |
-h )
6381 echo "$ac_cs_usage"; exit 0 ;;
6382 --debug |
--d* |
-d )
6384 --file |
--fil |
--fi |
--f )
6386 CONFIG_FILES
="$CONFIG_FILES $1"
6387 ac_need_defaults
=false
;;
6388 --header |
--heade |
--head |
--hea )
6390 CONFIG_HEADERS
="$CONFIG_HEADERS $1"
6391 ac_need_defaults
=false
;;
6394 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
6395 Try \`$0 --help' for more information." >&5
6396 echo "$as_me: error: unrecognized option: $1
6397 Try \`$0 --help' for more information." >&2;}
6398 { (exit 1); exit 1; }; } ;;
6400 *) ac_config_targets
="$ac_config_targets $1" ;;
6412 cat >>$CONFIG_STATUS <<\_ACEOF
6413 for ac_config_target
in $ac_config_targets
6415 case "$ac_config_target" in
6416 # Handling of arguments.
6417 "stamp-h" ) CONFIG_FILES
="$CONFIG_FILES stamp-h" ;;
6418 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
6419 "doc/Makefile" ) CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
6420 "src/xditview/Imakefile" ) CONFIG_FILES
="$CONFIG_FILES src/xditview/Imakefile" ;;
6421 "src/include/config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS src/include/config.h:src/include/config.hin" ;;
6422 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6423 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6424 { (exit 1); exit 1; }; };;
6428 # If the user did not use the arguments to specify the items to instantiate,
6429 # then the envvar interface is used. Set only those that are not.
6430 # We use the long form for the default assignment because of an extremely
6431 # bizarre bug on SunOS 4.1.3.
6432 if $ac_need_defaults; then
6433 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
6434 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
6437 # Create a temporary directory, and hook for its removal unless debugging.
6440 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6441 trap '{ (exit 1); exit 1; }' 1 2 13 15
6444 # Create a (secure) tmp directory for tmp files.
6447 tmp
=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
6448 test -n "$tmp" && test -d "$tmp"
6451 tmp
=$TMPDIR/cs$$
-$RANDOM
6452 (umask 077 && mkdir
$tmp)
6455 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
6456 { (exit 1); exit 1; }
6461 cat >>$CONFIG_STATUS <<_ACEOF
6464 # CONFIG_FILES section.
6467 # No need to generate the scripts if there are no CONFIG_FILES.
6468 # This happens for instance when ./config.status config.h
6469 if test -n "\$CONFIG_FILES"; then
6470 # Protect against being on the right side of a sed subst in config.status.
6471 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6472 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
6473 s,@SHELL@,$SHELL,;t t
6474 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6475 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6476 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6477 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6478 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6479 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6480 s,@exec_prefix@,$exec_prefix,;t t
6481 s,@prefix@,$prefix,;t t
6482 s,@program_transform_name@,$program_transform_name,;t t
6483 s,@bindir@,$bindir,;t t
6484 s,@sbindir@,$sbindir,;t t
6485 s,@libexecdir@,$libexecdir,;t t
6486 s,@datadir@,$datadir,;t t
6487 s,@sysconfdir@,$sysconfdir,;t t
6488 s,@sharedstatedir@,$sharedstatedir,;t t
6489 s,@localstatedir@,$localstatedir,;t t
6490 s,@libdir@,$libdir,;t t
6491 s,@includedir@,$includedir,;t t
6492 s,@oldincludedir@,$oldincludedir,;t t
6493 s,@infodir@,$infodir,;t t
6494 s,@mandir@,$mandir,;t t
6495 s,@build_alias@,$build_alias,;t t
6496 s,@host_alias@,$host_alias,;t t
6497 s,@target_alias@,$target_alias,;t t
6499 s,@ECHO_C@,$ECHO_C,;t t
6500 s,@ECHO_N@,$ECHO_N,;t t
6501 s,@ECHO_T@,$ECHO_T,;t t
6503 s,@groff_top_builddir@,$groff_top_builddir,;t t
6505 s,@CFLAGS@,$CFLAGS,;t t
6506 s,@LDFLAGS@,$LDFLAGS,;t t
6507 s,@CPPFLAGS@,$CPPFLAGS,;t t
6508 s,@ac_ct_CC@,$ac_ct_CC,;t t
6509 s,@EXEEXT@,$EXEEXT,;t t
6510 s,@OBJEXT@,$OBJEXT,;t t
6512 s,@CXXFLAGS@,$CXXFLAGS,;t t
6513 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
6514 s,@TTYDEVDIRS@,$TTYDEVDIRS,;t t
6515 s,@OTHERDEVDIRS@,$OTHERDEVDIRS,;t t
6519 s,@PSPRINT@,$PSPRINT,;t t
6520 s,@DVIPRINT@,$DVIPRINT,;t t
6521 s,@PERLPATH@,$PERLPATH,;t t
6523 s,@RANLIB@,$RANLIB,;t t
6524 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
6525 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
6526 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
6527 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
6528 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
6530 s,@SH_SCRIPT_SED_CMD@,$SH_SCRIPT_SED_CMD,;t t
6533 s,@LIBOBJS@,$LIBOBJS,;t t
6534 s,@BROKEN_SPOOLER_FLAGS@,$BROKEN_SPOOLER_FLAGS,;t t
6537 s,@sys_tmac_prefix@,$sys_tmac_prefix,;t t
6538 s,@tmac_wrap@,$tmac_wrap,;t t
6539 s,@pnmcut@,$pnmcut,;t t
6540 s,@pnmcrop@,$pnmcrop,;t t
6541 s,@pnmtopng@,$pnmtopng,;t t
6543 s,@psselect@,$psselect,;t t
6544 s,@make_html@,$make_html,;t t
6545 s,@make_install_html@,$make_install_html,;t t
6550 cat >>$CONFIG_STATUS <<\_ACEOF
6551 # Split the substitutions into bite-sized pieces for seds with
6552 # small command number limits, like on Digital OSF/1 and HP-UX.
6554 ac_sed_frag
=1 # Number of current file.
6555 ac_beg
=1 # First line for current file.
6556 ac_end
=$ac_max_sed_lines # Line after last line for current file.
6559 while $ac_more_lines; do
6560 if test $ac_beg -gt 1; then
6561 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
6563 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
6565 if test ! -s $tmp/subs.frag
; then
6568 # The purpose of the label and of the branching condition is to
6569 # speed up the sed processing (if there are no `@' at all, there
6570 # is no need to browse any of the substitutions).
6571 # These are the two extra sed commands mentioned above.
6573 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
6574 if test -z "$ac_sed_cmds"; then
6575 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
6577 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6579 ac_sed_frag
=`expr $ac_sed_frag + 1`
6581 ac_end
=`expr $ac_end + $ac_max_sed_lines`
6584 if test -z "$ac_sed_cmds"; then
6587 fi # test -n "$CONFIG_FILES"
6590 cat >>$CONFIG_STATUS <<\_ACEOF
6591 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
6592 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6594 - |
*:- |
*:-:* ) # input from stdin
6596 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
6597 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
6598 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
6599 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
6600 * ) ac_file_in
=$ac_file.
in ;;
6603 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6604 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
6605 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6606 X"$ac_file" : 'X\(//\)[^/]' \| \
6607 X"$ac_file" : 'X\(//\)$' \| \
6608 X"$ac_file" : 'X\(/\)' \| \
6609 . : '\(.\)' 2>/dev/null ||
6611 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6612 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6613 /^X\(\/\/\)$/{ s//\1/; q; }
6614 /^X\(\/\).*/{ s//\1/; q; }
6617 [\\/]* | ?
:[\\/]* ) as_incr_dir
=;;
6621 for as_mkdir_dir
in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
6622 case $as_mkdir_dir in
6623 # Skip DOS drivespec
6624 ?
:) as_incr_dir
=$as_mkdir_dir ;;
6626 as_incr_dir
=$as_incr_dir/$as_mkdir_dir
6627 test -d "$as_incr_dir" ||
6628 mkdir
"$as_incr_dir" ||
6629 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
6630 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
6631 { (exit 1); exit 1; }; }
6638 if test "$ac_dir" != .
; then
6639 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6640 # A "../" for each directory in $ac_dir_suffix.
6641 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6643 ac_dir_suffix
= ac_top_builddir
=
6647 .
) # No --srcdir option. We are building in place.
6649 if test -z "$ac_top_builddir"; then
6652 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
6654 [\\/]* | ?
:[\\/]* ) # Absolute path.
6655 ac_srcdir
=$srcdir$ac_dir_suffix;
6656 ac_top_srcdir
=$srcdir ;;
6658 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
6659 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
6661 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
6663 ac_abs_builddir
=`cd "$ac_dir" && cd $ac_builddir && pwd`
6664 ac_abs_top_builddir
=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
6665 ac_abs_srcdir
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
6666 ac_abs_top_srcdir
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
6670 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
6671 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
6674 if test x
"$ac_file" != x-
; then
6675 { echo "$as_me:$LINENO: creating $ac_file" >&5
6676 echo "$as_me: creating $ac_file" >&6;}
6679 # Let's still pretend it is `configure' which instantiates (i.e., don't
6680 # use $as_me), people would be surprised to read:
6681 # /* config.h. Generated by config.status. */
6682 if test x
"$ac_file" = x-
; then
6685 configure_input
="$ac_file. "
6687 configure_input
=$configure_input"Generated from `echo $ac_file_in |
6688 sed 's,.*/,,'` by configure."
6690 # First look for the input files in the build tree, otherwise in the
6692 ac_file_inputs
=`IFS=:
6693 for f in $ac_file_in; do
6695 -) echo $tmp/stdin ;;
6697 # Absolute (can't be DOS-style, as IFS=:)
6698 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6699 echo "$as_me: error: cannot find input file: $f" >&2;}
6700 { (exit 1); exit 1; }; }
6703 if test -f "$f"; then
6706 elif test -f "$srcdir/$f"; then
6711 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6712 echo "$as_me: error: cannot find input file: $f" >&2;}
6713 { (exit 1); exit 1; }; }
6716 done` ||
{ (exit 1); exit 1; }
6718 cat >>$CONFIG_STATUS <<_ACEOF
6722 cat >>$CONFIG_STATUS <<\_ACEOF
6724 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
6725 s
,@configure_input@
,$configure_input,;t t
6726 s
,@srcdir@
,$ac_srcdir,;t t
6727 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
6728 s
,@top_srcdir@
,$ac_top_srcdir,;t t
6729 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
6730 s
,@builddir@
,$ac_builddir,;t t
6731 s
,@abs_builddir@
,$ac_abs_builddir,;t t
6732 s
,@top_builddir@
,$ac_top_builddir,;t t
6733 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
6734 s
,@INSTALL@
,$ac_INSTALL,;t t
6735 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6737 if test x"$ac_file" != x-; then
6738 mv $tmp/out $ac_file
6744 # Run the commands associated with the file.
6746 stamp-h ) echo timestamp > stamp-h ;;
6750 cat >>$CONFIG_STATUS <<\_ACEOF
6753 # CONFIG_HEADER section.
6756 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
6757 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6759 # ac_d sets the value in "#define NAME VALUE" lines.
6760 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6761 ac_dB
='[ ].*$,\1#\2'
6764 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6765 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6766 ac_uB
='$,\1#\2define\3'
6770 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
6771 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6773 - |
*:- |
*:-:* ) # input from stdin
6775 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
6776 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
6777 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
6778 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
6779 * ) ac_file_in
=$ac_file.
in ;;
6782 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
6783 echo "$as_me: creating $ac_file" >&6;}
6785 # First look for the input files in the build tree, otherwise in the
6787 ac_file_inputs
=`IFS=:
6788 for f in $ac_file_in; do
6790 -) echo $tmp/stdin ;;
6792 # Absolute (can't be DOS-style, as IFS=:)
6793 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6794 echo "$as_me: error: cannot find input file: $f" >&2;}
6795 { (exit 1); exit 1; }; }
6798 if test -f "$f"; then
6801 elif test -f "$srcdir/$f"; then
6806 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6807 echo "$as_me: error: cannot find input file: $f" >&2;}
6808 { (exit 1); exit 1; }; }
6811 done` ||
{ (exit 1); exit 1; }
6812 # Remove the trailing spaces.
6813 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
6817 # Transform confdefs.h into two sed scripts, `conftest.defines' and
6818 # `conftest.undefs', that substitutes the proper values into
6819 # config.h.in to produce config.h. The first handles `#define'
6820 # templates, and the second `#undef' templates.
6821 # And first: Protect against being on the right side of a sed subst in
6822 # config.status. Protect against being in an unquoted here document
6824 rm -f conftest.defines conftest.undefs
6825 # Using a here document instead of a string reduces the quoting nightmare.
6826 # Putting comments in sed scripts is not portable.
6828 # `end' is used to avoid that the second main sed command (meant for
6829 # 0-ary CPP macros) applies to n-ary macro definitions.
6830 # See the Autoconf documentation for `clear'.
6831 cat >confdef2sed.
sed <<\_ACEOF
6836 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
6838 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
6841 # If some macros were called several times there might be several times
6842 # the same #defines, which is useless. Nevertheless, we may not want to
6843 # sort them, since we want the *last* AC-DEFINE to be honored.
6844 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
6845 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
6846 rm -f confdef2sed.sed
6848 # This sed command replaces #undef with comments. This is necessary, for
6849 # example, in the case of _POSIX_SOURCE, which is predefined and required
6850 # on some systems where configure will not decide to define it.
6851 cat >>conftest.undefs <<\_ACEOF
6852 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
6855 # Break up conftest.defines because some shells have a limit on the size
6856 # of here documents, and old seds have small limits too (100 cmds).
6857 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
6858 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
6859 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
6860 echo ' :' >>$CONFIG_STATUS
6862 while grep . conftest.defines >/dev/null
6864 # Write a limited-size here document to $tmp/defines.sed.
6865 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
6866 # Speed up: don't consider the non `#define' lines.
6867 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
6868 # Work around the forget-to-reset-the-flag bug.
6869 echo 't clr' >>$CONFIG_STATUS
6870 echo ': clr' >>$CONFIG_STATUS
6871 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
6873 sed -f $tmp/defines.sed $tmp/in >$tmp/out
6877 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
6878 rm -f conftest.defines
6879 mv conftest.
tail conftest.defines
6881 rm -f conftest.defines
6882 echo ' fi # egrep' >>$CONFIG_STATUS
6883 echo >>$CONFIG_STATUS
6885 # Break up conftest.undefs because some shells have a limit on the size
6886 # of here documents, and old seds have small limits too (100 cmds).
6887 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
6889 while grep . conftest.undefs
>/dev
/null
6891 # Write a limited-size here document to $tmp/undefs.sed.
6892 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
6893 # Speed up: don't consider the non
`#undef'
6894 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
6895 # Work around the forget-to-reset-the-flag bug.
6896 echo 't clr' >>$CONFIG_STATUS
6897 echo ': clr' >>$CONFIG_STATUS
6898 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
6900 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
6904 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
6905 rm -f conftest.undefs
6906 mv conftest.tail conftest.undefs
6908 rm -f conftest.undefs
6910 cat >>$CONFIG_STATUS <<\_ACEOF
6911 # Let's still pretend it is `configure
' which instantiates (i.e., don't
6912 # use $as_me), people would be surprised to read:
6913 # /* config.h. Generated by config.status. */
6914 if test x
"$ac_file" = x-
; then
6915 echo "/* Generated by configure. */" >$tmp/config.h
6917 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
6919 cat $tmp/in >>$tmp/config.h
6921 if test x
"$ac_file" != x-
; then
6922 if cmp -s $ac_file $tmp/config.h
2>/dev
/null
; then
6923 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
6924 echo "$as_me: $ac_file is unchanged" >&6;}
6926 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
6927 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6928 X"$ac_file" : 'X\(//\)[^/]' \| \
6929 X"$ac_file" : 'X\(//\)$' \| \
6930 X"$ac_file" : 'X\(/\)' \| \
6931 . : '\(.\)' 2>/dev/null ||
6933 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6934 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6935 /^X\(\/\/\)$/{ s//\1/; q; }
6936 /^X\(\/\).*/{ s//\1/; q; }
6939 [\\/]* | ?
:[\\/]* ) as_incr_dir
=;;
6943 for as_mkdir_dir
in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
6944 case $as_mkdir_dir in
6945 # Skip DOS drivespec
6946 ?
:) as_incr_dir
=$as_mkdir_dir ;;
6948 as_incr_dir
=$as_incr_dir/$as_mkdir_dir
6949 test -d "$as_incr_dir" ||
6950 mkdir
"$as_incr_dir" ||
6951 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
6952 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
6953 { (exit 1); exit 1; }; }
6959 mv $tmp/config.h
$ac_file
6968 cat >>$CONFIG_STATUS <<\_ACEOF
6970 { (exit 0); exit 0; }
6972 chmod +x
$CONFIG_STATUS
6973 ac_clean_files
=$ac_clean_files_save
6976 # configure is writing to config.log, and then calls config.status.
6977 # config.status does its own redirection, appending to config.log.
6978 # Unfortunately, on DOS this fails, as config.log is still kept open
6979 # by configure, so config.status won't be able to write to it; its
6980 # output is simply discarded. So we exec the FD to /dev/null,
6981 # effectively closing config.log, so it can be properly (re)opened and
6982 # appended to by config.status. When coming back to configure, we
6983 # need to make the FD available again.
6984 if test "$no_create" != yes; then
6987 $SHELL $CONFIG_STATUS || ac_cs_success
=false
6989 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6990 # would make configure fail if this is the last instruction.
6991 $ac_cs_success ||
{ (exit 1); exit 1; }
6994 { echo "$as_me:$LINENO:
6996 Configuration completed.
6998 You can now say \`make' to compile the groff package and \`make install'
6999 to install it afterwards.
7001 If you want to compile xditview, change the directory to \`src/xditview'
7002 and follow the instructions given in the file \`INSTALL'.
7006 Configuration completed.
7008 You can now say \`make' to compile the groff package and \`make install'
7009 to install it afterwards.
7011 If you want to compile xditview, change the directory to \`src/xditview'
7012 and follow the instructions given in the file \`INSTALL'.