* doc/pic.ms, src/preproc/pic/pic.man: Fix description of `:='.
[s-roff.git] / configure
blob2279697511b34ec39025c214e0ca97ef2078710d
1 #! /bin/sh
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
11 as_expr=expr
12 else
13 as_expr=false
17 ## --------------------- ##
18 ## M4sh Initialization. ##
19 ## --------------------- ##
21 # Be Bourne compatible
22 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23 emulate sh
24 NULLCMD=:
25 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26 set -o posix
29 # NLS nuisances.
30 # Support unset when possible.
31 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
32 as_unset=unset
33 else
34 as_unset=false
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 ||
69 echo X/"$0" |
70 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
71 /^X\/\(\/\/\)$/{ s//\1/; q; }
72 /^X\/\(\/\).*/{ s//\1/; q; }
73 s/.*/./; 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
87 chmod +x conftest.sh
88 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
89 PATH_SEPARATOR=';'
90 else
91 PATH_SEPARATOR=:
93 rm -f conftest.sh
97 as_lineno_1=$LINENO
98 as_lineno_2=$LINENO
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
103 # relative or not.
104 case $0 in
105 *[\\/]* ) as_myself=$0 ;;
106 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
107 for as_dir in $PATH
109 IFS=$as_save_IFS
110 test -z "$as_dir" && as_dir=.
111 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
112 done
115 esac
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
119 as_myself=$0
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
130 IFS=$as_save_IFS
131 test -z "$as_dir" && as_dir=.
132 for as_base in sh bash ksh sh5; do
133 case $as_dir in
135 if ("$as_dir/$as_base" -c '
136 as_lineno_1=$LINENO
137 as_lineno_2=$LINENO
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
142 export CONFIG_SHELL
143 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
144 fi;;
145 esac
146 done
147 done
149 esac
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 |
160 sed '
162 s,$,-,
163 : loop
164 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
165 t loop
166 s,-$,,
167 s,^['$as_cr_digits']*\n,,
168 ' >$as_me.lineno &&
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).
176 . ./$as_me.lineno
177 # Exit status is that of the last command.
178 exit
182 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
183 *c*,-n*) ECHO_N= ECHO_C='
184 ' ECHO_T=' ' ;;
185 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
186 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
187 esac
189 if expr a : '\(a\)' >/dev/null 2>&1; then
190 as_expr=expr
191 else
192 as_expr=false
195 rm -f conf$$ conf$$.exe conf$$.file
196 echo >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
202 as_ln_s='cp -p'
203 else
204 as_ln_s='ln -s'
206 elif ln conf$$.file conf$$ 2>/dev/null; then
207 as_ln_s=ln
208 else
209 as_ln_s='cp -p'
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"
222 # IFS
223 # We need space, tab and new line, in precisely that order.
224 as_nl='
226 IFS=" $as_nl"
228 # CDPATH.
229 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
232 # Name of the host.
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`
237 exec 6>&1
240 # Initializations.
242 ac_default_prefix=/usr/local
243 cross_compiling=no
244 subdirs=
245 MFLAGS=
246 MAKEFLAGS=
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.
255 PACKAGE_NAME=
256 PACKAGE_TARNAME=
257 PACKAGE_VERSION=
258 PACKAGE_STRING=
259 PACKAGE_BUGREPORT=
261 ac_unique_file="src/roff/groff/groff.cc"
262 # Factoring default headers for most tests.
263 ac_includes_default="\
264 #include <stdio.h>
265 #if HAVE_SYS_TYPES_H
266 # include <sys/types.h>
267 #endif
268 #if HAVE_SYS_STAT_H
269 # include <sys/stat.h>
270 #endif
271 #if STDC_HEADERS
272 # include <stdlib.h>
273 # include <stddef.h>
274 #else
275 # if HAVE_STDLIB_H
276 # include <stdlib.h>
277 # endif
278 #endif
279 #if HAVE_STRING_H
280 # if !STDC_HEADERS && HAVE_MEMORY_H
281 # include <memory.h>
282 # endif
283 # include <string.h>
284 #endif
285 #if HAVE_STRINGS_H
286 # include <strings.h>
287 #endif
288 #if HAVE_INTTYPES_H
289 # include <inttypes.h>
290 #else
291 # if HAVE_STDINT_H
292 # include <stdint.h>
293 # endif
294 #endif
295 #if HAVE_UNISTD_H
296 # include <unistd.h>
297 #endif"
300 # Initialize some variables set by options.
301 ac_init_help=
302 ac_init_version=false
303 # The variables have the same names as the options, with
304 # dashes changed to underlines.
305 cache_file=/dev/null
306 exec_prefix=NONE
307 no_create=
308 no_recursion=
309 prefix=NONE
310 program_prefix=NONE
311 program_suffix=NONE
312 program_transform_name=s,x,x,
313 silent=
314 site=
315 srcdir=
316 verbose=
317 x_includes=NONE
318 x_libraries=NONE
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'
338 ac_prev=
339 for ac_option
341 # If the previous option needs an argument, assign it.
342 if test -n "$ac_prev"; then
343 eval "$ac_prev=\$ac_option"
344 ac_prev=
345 continue
348 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
350 # Accept the important Cygnus configure options, so we can diagnose typos.
352 case $ac_option in
354 -bindir | --bindir | --bindi | --bind | --bin | --bi)
355 ac_prev=bindir ;;
356 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
357 bindir=$ac_optarg ;;
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 ;;
371 --config-cache | -C)
372 cache_file=config.cache ;;
374 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
375 ac_prev=datadir ;;
376 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
377 | --da=*)
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'`
396 case $ac_option in
397 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
398 *) ac_optarg=yes ;;
399 esac
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.
413 with_gas=yes ;;
415 -help | --help | --hel | --he | -h)
416 ac_init_help=long ;;
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)
435 ac_prev=infodir ;;
436 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
437 infodir=$ac_optarg ;;
439 -libdir | --libdir | --libdi | --libd)
440 ac_prev=libdir ;;
441 -libdir=* | --libdir=* | --libdi=* | --libd=*)
442 libdir=$ac_optarg ;;
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)
461 ac_prev=mandir ;;
462 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
463 mandir=$ac_optarg ;;
465 -nfp | --nfp | --nf)
466 # Obsolete; use --without-fp.
467 with_fp=no ;;
469 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
470 | --no-cr | --no-c | -n)
471 no_create=yes ;;
473 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
474 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
475 no_recursion=yes ;;
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)
487 ac_prev=prefix ;;
488 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
489 prefix=$ac_optarg ;;
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)
524 silent=yes ;;
526 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
527 ac_prev=sbindir ;;
528 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
529 | --sbi=* | --sb=*)
530 sbindir=$ac_optarg ;;
532 -sharedstatedir | --sharedstatedir | --sharedstatedi \
533 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
534 | --sharedst | --shareds | --shared | --share | --shar \
535 | --sha | --sh)
536 ac_prev=sharedstatedir ;;
537 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
538 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
539 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
540 | --sha=* | --sh=*)
541 sharedstatedir=$ac_optarg ;;
543 -site | --site | --sit)
544 ac_prev=site ;;
545 -site=* | --site=* | --sit=*)
546 site=$ac_optarg ;;
548 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
549 ac_prev=srcdir ;;
550 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
551 srcdir=$ac_optarg ;;
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)
566 verbose=yes ;;
568 -version | --version | --versio | --versi | --vers | -V)
569 ac_init_version=: ;;
571 -with-* | --with-*)
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'`
578 case $ac_option in
579 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
580 *) ac_optarg=yes ;;
581 esac
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" ;;
593 --x)
594 # Obsolete; use --with-x.
595 with_x=yes ;;
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; }; }
616 *=*)
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'"
624 export $ac_envvar ;;
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}
634 esac
635 done
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`
647 case $ac_val in
648 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
649 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
650 { (exit 1); exit 1; }; };;
651 esac
652 done
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`
659 case $ac_val in
660 [\\/$]* | ?:[\\/]* ) ;;
661 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
662 { (exit 1); exit 1; }; };;
663 esac
664 done
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.
669 build=$build_alias
670 host=$host_alias
671 target=$target_alias
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
680 cross_compiling=yes
684 ac_tool_prefix=
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 ||
700 echo X"$0" |
701 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
702 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
703 /^X\(\/\/\)$/{ s//\1/; q; }
704 /^X\(\/\).*/{ s//\1/; q; }
705 s/.*/./; q'`
706 srcdir=$ac_confdir
707 if test ! -r $srcdir/$ac_unique_file; then
708 srcdir=..
710 else
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; }; }
717 else
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}
736 ac_env_CC_value=$CC
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.
770 cat <<_ACEOF
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.
780 Configuration:
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 \`..']
791 _ACEOF
793 cat <<_ACEOF
794 Installation directories:
795 --prefix=PREFIX install architecture-independent files in PREFIX
796 [$ac_default_prefix]
797 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
798 [PREFIX]
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]
820 _ACEOF
822 cat <<\_ACEOF
823 _ACEOF
826 if test -n "$ac_init_help"; then
828 cat <<\_ACEOF
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
839 CPP C preprocessor
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.
844 _ACEOF
847 if test "$ac_init_help" = "recursive"; then
848 # If there are subdirs, report their specific --help.
849 ac_popdir=`pwd`
850 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
851 test -d $ac_dir || continue
852 ac_builddir=.
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'`
858 else
859 ac_dir_suffix= ac_top_builddir=
862 case $srcdir in
863 .) # No --srcdir option. We are building in place.
864 ac_srcdir=.
865 if test -z "$ac_top_builddir"; then
866 ac_top_srcdir=.
867 else
868 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
869 fi ;;
870 [\\/]* | ?:[\\/]* ) # Absolute path.
871 ac_srcdir=$srcdir$ac_dir_suffix;
872 ac_top_srcdir=$srcdir ;;
873 *) # Relative path.
874 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
875 ac_top_srcdir=$ac_top_builddir$srcdir ;;
876 esac
877 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
878 # absolute.
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`
884 cd $ac_dir
885 # Check for guested configure; otherwise get Cygnus style configure.
886 if test -f $ac_srcdir/configure.gnu; then
887 echo
888 $SHELL $ac_srcdir/configure.gnu --help=recursive
889 elif test -f $ac_srcdir/configure; then
890 echo
891 $SHELL $ac_srcdir/configure --help=recursive
892 elif test -f $ac_srcdir/configure.ac ||
893 test -f $ac_srcdir/configure.in; then
894 echo
895 $ac_configure --help
896 else
897 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
899 cd $ac_popdir
900 done
903 test -n "$ac_init_help" && exit 0
904 if $ac_init_version; then
905 cat <<\_ACEOF
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.
911 _ACEOF
912 exit 0
914 exec 5>config.log
915 cat >&5 <<_ACEOF
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
922 $ $0 $@
924 _ACEOF
926 cat <<_ASUNAME
927 ## --------- ##
928 ## Platform. ##
929 ## --------- ##
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`
948 _ASUNAME
950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
951 for as_dir in $PATH
953 IFS=$as_save_IFS
954 test -z "$as_dir" && as_dir=.
955 echo "PATH: $as_dir"
956 done
958 } >&5
960 cat >&5 <<_ACEOF
963 ## ----------- ##
964 ## Core tests. ##
965 ## ----------- ##
967 _ACEOF
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.
973 ac_configure_args=
974 ac_sep=
975 for ac_arg
977 case $ac_arg in
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)
982 continue ;;
983 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
984 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
985 esac
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'"
989 ac_sep=" " ;;
990 esac
991 # Get rid of the leading space.
992 done
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.
999 trap 'exit_status=$?
1000 # Save into config.log some information that might help in debugging.
1002 echo
1003 cat <<\_ASBOX
1004 ## ---------------- ##
1005 ## Cache variables. ##
1006 ## ---------------- ##
1007 _ASBOX
1008 echo
1009 # The following way of writing the cache mishandles newlines in values,
1011 (set) 2>&1 |
1012 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1013 *ac_space=\ *)
1014 sed -n \
1015 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1016 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1019 sed -n \
1020 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1022 esac;
1024 echo
1025 if test -s confdefs.h; then
1026 cat <<\_ASBOX
1027 ## ----------- ##
1028 ## confdefs.h. ##
1029 ## ----------- ##
1030 _ASBOX
1031 echo
1032 sed "/^$/d" confdefs.h
1033 echo
1035 test "$ac_signal" != 0 &&
1036 echo "$as_me: caught signal $ac_signal"
1037 echo "$as_me: exit $exit_status"
1038 } >&5
1039 rm -f core core.* *.core &&
1040 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1041 exit $exit_status
1043 for ac_signal in 1 2 13 15; do
1044 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1045 done
1046 ac_signal=0
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.
1051 echo >confdefs.h
1053 # Predefined preprocessor variables.
1055 cat >>confdefs.h <<_ACEOF
1056 #define PACKAGE_NAME "$PACKAGE_NAME"
1057 _ACEOF
1060 cat >>confdefs.h <<_ACEOF
1061 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1062 _ACEOF
1065 cat >>confdefs.h <<_ACEOF
1066 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1067 _ACEOF
1070 cat >>confdefs.h <<_ACEOF
1071 #define PACKAGE_STRING "$PACKAGE_STRING"
1072 _ACEOF
1075 cat >>confdefs.h <<_ACEOF
1076 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1077 _ACEOF
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"
1085 else
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
1094 . "$ac_site_file"
1096 done
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;}
1104 case $cache_file in
1105 [\\/]* | ?:[\\/]* ) . $cache_file;;
1106 *) . ./$cache_file;;
1107 esac
1109 else
1110 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1111 echo "$as_me: creating cache $cache_file" >&6;}
1112 >$cache_file
1115 # Check that the precious variables saved in the cache have kept the same
1116 # value.
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
1125 set,)
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=: ;;
1129 ,set)
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=: ;;
1133 ,);;
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=:
1143 fi;;
1144 esac
1145 # Pass precious variables to config.status.
1146 if test "$ac_new_set" = set; then
1147 case $ac_new_val in
1148 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1149 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1150 *) ac_arg=$ac_var=$ac_new_val ;;
1151 esac
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'" ;;
1155 esac
1157 done
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; }; }
1166 ac_ext=c
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`
1196 ac_ext=c
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
1208 else
1209 if test -n "$CC"; then
1210 ac_cv_prog_CC="$CC" # Let the user override the test.
1211 else
1212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1213 for as_dir in $PATH
1215 IFS=$as_save_IFS
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
1221 break 2
1223 done
1224 done
1228 CC=$ac_cv_prog_CC
1229 if test -n "$CC"; then
1230 echo "$as_me:$LINENO: result: $CC" >&5
1231 echo "${ECHO_T}$CC" >&6
1232 else
1233 echo "$as_me:$LINENO: result: no" >&5
1234 echo "${ECHO_T}no" >&6
1238 if test -z "$ac_cv_prog_CC"; then
1239 ac_ct_CC=$CC
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
1246 else
1247 if test -n "$ac_ct_CC"; then
1248 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1249 else
1250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1251 for as_dir in $PATH
1253 IFS=$as_save_IFS
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
1259 break 2
1261 done
1262 done
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
1270 else
1271 echo "$as_me:$LINENO: result: no" >&5
1272 echo "${ECHO_T}no" >&6
1275 CC=$ac_ct_CC
1276 else
1277 CC="$ac_cv_prog_CC"
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
1288 else
1289 if test -n "$CC"; then
1290 ac_cv_prog_CC="$CC" # Let the user override the test.
1291 else
1292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1293 for as_dir in $PATH
1295 IFS=$as_save_IFS
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
1301 break 2
1303 done
1304 done
1308 CC=$ac_cv_prog_CC
1309 if test -n "$CC"; then
1310 echo "$as_me:$LINENO: result: $CC" >&5
1311 echo "${ECHO_T}$CC" >&6
1312 else
1313 echo "$as_me:$LINENO: result: no" >&5
1314 echo "${ECHO_T}no" >&6
1318 if test -z "$ac_cv_prog_CC"; then
1319 ac_ct_CC=$CC
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
1326 else
1327 if test -n "$ac_ct_CC"; then
1328 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1329 else
1330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1331 for as_dir in $PATH
1333 IFS=$as_save_IFS
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
1339 break 2
1341 done
1342 done
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
1350 else
1351 echo "$as_me:$LINENO: result: no" >&5
1352 echo "${ECHO_T}no" >&6
1355 CC=$ac_ct_CC
1356 else
1357 CC="$ac_cv_prog_CC"
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
1368 else
1369 if test -n "$CC"; then
1370 ac_cv_prog_CC="$CC" # Let the user override the test.
1371 else
1372 ac_prog_rejected=no
1373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1374 for as_dir in $PATH
1376 IFS=$as_save_IFS
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
1382 continue
1384 ac_cv_prog_CC="cc"
1385 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1386 break 2
1388 done
1389 done
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
1394 shift
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.
1399 shift
1400 set dummy "$as_dir/$ac_word" ${1+"$@"}
1401 shift
1402 ac_cv_prog_CC="$@"
1407 CC=$ac_cv_prog_CC
1408 if test -n "$CC"; then
1409 echo "$as_me:$LINENO: result: $CC" >&5
1410 echo "${ECHO_T}$CC" >&6
1411 else
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
1419 for ac_prog in cl
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
1427 else
1428 if test -n "$CC"; then
1429 ac_cv_prog_CC="$CC" # Let the user override the test.
1430 else
1431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1432 for as_dir in $PATH
1434 IFS=$as_save_IFS
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
1440 break 2
1442 done
1443 done
1447 CC=$ac_cv_prog_CC
1448 if test -n "$CC"; then
1449 echo "$as_me:$LINENO: result: $CC" >&5
1450 echo "${ECHO_T}$CC" >&6
1451 else
1452 echo "$as_me:$LINENO: result: no" >&5
1453 echo "${ECHO_T}no" >&6
1456 test -n "$CC" && break
1457 done
1459 if test -z "$CC"; then
1460 ac_ct_CC=$CC
1461 for ac_prog in cl
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
1469 else
1470 if test -n "$ac_ct_CC"; then
1471 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1472 else
1473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1474 for as_dir in $PATH
1476 IFS=$as_save_IFS
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
1482 break 2
1484 done
1485 done
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
1493 else
1494 echo "$as_me:$LINENO: result: no" >&5
1495 echo "${ECHO_T}no" >&6
1498 test -n "$ac_ct_CC" && break
1499 done
1501 CC=$ac_ct_CC
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
1517 ac_status=$?
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
1522 ac_status=$?
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
1527 ac_status=$?
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
1536 # ifdef __cplusplus
1537 extern "C"
1538 # endif
1539 int F77_DUMMY_MAIN() { return 1; }
1540 #endif
1542 main ()
1546 return 0;
1548 _ACEOF
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
1553 # of exeext.
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
1559 ac_status=$?
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
1564 # resort.
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.
1568 ac_cv_exeext=
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
1572 case $ac_file in
1573 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
1574 a.out ) # We found the default executable, but exeext='' is most
1575 # certainly right.
1576 break;;
1577 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1578 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1579 export ac_cv_exeext
1580 break;;
1581 * ) break;;
1582 esac
1583 done
1584 else
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
1605 (eval $ac_try) 2>&5
1606 ac_status=$?
1607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1608 (exit $ac_status); }; }; then
1609 cross_compiling=no
1610 else
1611 if test "$cross_compiling" = maybe; then
1612 cross_compiling=yes
1613 else
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
1638 ac_status=$?
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
1644 # `rm'.
1645 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1646 case $ac_file in
1647 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1648 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1649 export ac_cv_exeext
1650 break;;
1651 * ) break;;
1652 esac
1653 done
1654 else
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
1666 ac_exeext=$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
1671 else
1672 cat >conftest.$ac_ext <<_ACEOF
1673 #line $LINENO "configure"
1674 #include "confdefs.h"
1676 #ifdef F77_DUMMY_MAIN
1677 # ifdef __cplusplus
1678 extern "C"
1679 # endif
1680 int F77_DUMMY_MAIN() { return 1; }
1681 #endif
1683 main ()
1687 return 0;
1689 _ACEOF
1690 rm -f conftest.o conftest.obj
1691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1692 (eval $ac_compile) 2>&5
1693 ac_status=$?
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
1697 case $ac_file in
1698 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1699 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1700 break;;
1701 esac
1702 done
1703 else
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
1716 ac_objext=$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
1721 else
1722 cat >conftest.$ac_ext <<_ACEOF
1723 #line $LINENO "configure"
1724 #include "confdefs.h"
1726 #ifdef F77_DUMMY_MAIN
1727 # ifdef __cplusplus
1728 extern "C"
1729 # endif
1730 int F77_DUMMY_MAIN() { return 1; }
1731 #endif
1733 main ()
1735 #ifndef __GNUC__
1736 choke me
1737 #endif
1740 return 0;
1742 _ACEOF
1743 rm -f conftest.$ac_objext
1744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1745 (eval $ac_compile) 2>&5
1746 ac_status=$?
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
1751 (eval $ac_try) 2>&5
1752 ac_status=$?
1753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1754 (exit $ac_status); }; }; then
1755 ac_compiler_gnu=yes
1756 else
1757 echo "$as_me: failed program was:" >&5
1758 cat conftest.$ac_ext >&5
1759 ac_compiler_gnu=no
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
1770 CFLAGS="-g"
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
1775 else
1776 cat >conftest.$ac_ext <<_ACEOF
1777 #line $LINENO "configure"
1778 #include "confdefs.h"
1780 #ifdef F77_DUMMY_MAIN
1781 # ifdef __cplusplus
1782 extern "C"
1783 # endif
1784 int F77_DUMMY_MAIN() { return 1; }
1785 #endif
1787 main ()
1791 return 0;
1793 _ACEOF
1794 rm -f conftest.$ac_objext
1795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1796 (eval $ac_compile) 2>&5
1797 ac_status=$?
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
1802 (eval $ac_try) 2>&5
1803 ac_status=$?
1804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1805 (exit $ac_status); }; }; then
1806 ac_cv_prog_cc_g=yes
1807 else
1808 echo "$as_me: failed program was:" >&5
1809 cat conftest.$ac_ext >&5
1810 ac_cv_prog_cc_g=no
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
1820 CFLAGS="-g -O2"
1821 else
1822 CFLAGS="-g"
1824 else
1825 if test "$GCC" = yes; then
1826 CFLAGS="-O2"
1827 else
1828 CFLAGS=
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
1836 #ifndef __cplusplus
1837 choke me
1838 #endif
1839 _ACEOF
1840 rm -f conftest.$ac_objext
1841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1842 (eval $ac_compile) 2>&5
1843 ac_status=$?
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
1848 (eval $ac_try) 2>&5
1849 ac_status=$?
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);' \
1859 'void exit (int);'
1861 cat >conftest.$ac_ext <<_ACEOF
1862 #line $LINENO "configure"
1863 #include "confdefs.h"
1864 #include <stdlib.h>
1865 $ac_declaration
1866 #ifdef F77_DUMMY_MAIN
1867 # ifdef __cplusplus
1868 extern "C"
1869 # endif
1870 int F77_DUMMY_MAIN() { return 1; }
1871 #endif
1873 main ()
1875 exit (42);
1877 return 0;
1879 _ACEOF
1880 rm -f conftest.$ac_objext
1881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1882 (eval $ac_compile) 2>&5
1883 ac_status=$?
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
1888 (eval $ac_try) 2>&5
1889 ac_status=$?
1890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1891 (exit $ac_status); }; }; then
1893 else
1894 echo "$as_me: failed program was:" >&5
1895 cat conftest.$ac_ext >&5
1896 continue
1898 rm -f conftest.$ac_objext conftest.$ac_ext
1899 cat >conftest.$ac_ext <<_ACEOF
1900 #line $LINENO "configure"
1901 #include "confdefs.h"
1902 $ac_declaration
1903 #ifdef F77_DUMMY_MAIN
1904 # ifdef __cplusplus
1905 extern "C"
1906 # endif
1907 int F77_DUMMY_MAIN() { return 1; }
1908 #endif
1910 main ()
1912 exit (42);
1914 return 0;
1916 _ACEOF
1917 rm -f conftest.$ac_objext
1918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1919 (eval $ac_compile) 2>&5
1920 ac_status=$?
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
1925 (eval $ac_try) 2>&5
1926 ac_status=$?
1927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1928 (exit $ac_status); }; }; then
1929 break
1930 else
1931 echo "$as_me: failed program was:" >&5
1932 cat conftest.$ac_ext >&5
1934 rm -f conftest.$ac_objext conftest.$ac_ext
1935 done
1936 rm -f conftest*
1937 if test -n "$ac_declaration"; then
1938 echo '#ifdef __cplusplus' >>confdefs.h
1939 echo $ac_declaration >>confdefs.h
1940 echo '#endif' >>confdefs.h
1943 else
1944 echo "$as_me: failed program was:" >&5
1945 cat conftest.$ac_ext >&5
1947 rm -f conftest.$ac_objext conftest.$ac_ext
1948 ac_ext=c
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
1954 ac_ext=cc
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
1968 else
1969 if test -n "$CXX"; then
1970 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1971 else
1972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1973 for as_dir in $PATH
1975 IFS=$as_save_IFS
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
1981 break 2
1983 done
1984 done
1988 CXX=$ac_cv_prog_CXX
1989 if test -n "$CXX"; then
1990 echo "$as_me:$LINENO: result: $CXX" >&5
1991 echo "${ECHO_T}$CXX" >&6
1992 else
1993 echo "$as_me:$LINENO: result: no" >&5
1994 echo "${ECHO_T}no" >&6
1997 test -n "$CXX" && break
1998 done
2000 if test -z "$CXX"; then
2001 ac_ct_CXX=$CXX
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
2010 else
2011 if test -n "$ac_ct_CXX"; then
2012 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2013 else
2014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2015 for as_dir in $PATH
2017 IFS=$as_save_IFS
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
2023 break 2
2025 done
2026 done
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
2034 else
2035 echo "$as_me:$LINENO: result: no" >&5
2036 echo "${ECHO_T}no" >&6
2039 test -n "$ac_ct_CXX" && break
2040 done
2041 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2043 CXX=$ac_ct_CXX
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
2053 ac_status=$?
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
2058 ac_status=$?
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
2063 ac_status=$?
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
2071 else
2072 cat >conftest.$ac_ext <<_ACEOF
2073 #line $LINENO "configure"
2074 #include "confdefs.h"
2076 #ifdef F77_DUMMY_MAIN
2077 # ifdef __cplusplus
2078 extern "C"
2079 # endif
2080 int F77_DUMMY_MAIN() { return 1; }
2081 #endif
2083 main ()
2085 #ifndef __GNUC__
2086 choke me
2087 #endif
2090 return 0;
2092 _ACEOF
2093 rm -f conftest.$ac_objext
2094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2095 (eval $ac_compile) 2>&5
2096 ac_status=$?
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
2101 (eval $ac_try) 2>&5
2102 ac_status=$?
2103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2104 (exit $ac_status); }; }; then
2105 ac_compiler_gnu=yes
2106 else
2107 echo "$as_me: failed program was:" >&5
2108 cat conftest.$ac_ext >&5
2109 ac_compiler_gnu=no
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
2120 CXXFLAGS="-g"
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
2125 else
2126 cat >conftest.$ac_ext <<_ACEOF
2127 #line $LINENO "configure"
2128 #include "confdefs.h"
2130 #ifdef F77_DUMMY_MAIN
2131 # ifdef __cplusplus
2132 extern "C"
2133 # endif
2134 int F77_DUMMY_MAIN() { return 1; }
2135 #endif
2137 main ()
2141 return 0;
2143 _ACEOF
2144 rm -f conftest.$ac_objext
2145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2146 (eval $ac_compile) 2>&5
2147 ac_status=$?
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
2152 (eval $ac_try) 2>&5
2153 ac_status=$?
2154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2155 (exit $ac_status); }; }; then
2156 ac_cv_prog_cxx_g=yes
2157 else
2158 echo "$as_me: failed program was:" >&5
2159 cat conftest.$ac_ext >&5
2160 ac_cv_prog_cxx_g=no
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
2170 CXXFLAGS="-g -O2"
2171 else
2172 CXXFLAGS="-g"
2174 else
2175 if test "$GXX" = yes; then
2176 CXXFLAGS="-O2"
2177 else
2178 CXXFLAGS=
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);' \
2188 'void exit (int);'
2190 cat >conftest.$ac_ext <<_ACEOF
2191 #line $LINENO "configure"
2192 #include "confdefs.h"
2193 #include <stdlib.h>
2194 $ac_declaration
2195 #ifdef F77_DUMMY_MAIN
2196 # ifdef __cplusplus
2197 extern "C"
2198 # endif
2199 int F77_DUMMY_MAIN() { return 1; }
2200 #endif
2202 main ()
2204 exit (42);
2206 return 0;
2208 _ACEOF
2209 rm -f conftest.$ac_objext
2210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2211 (eval $ac_compile) 2>&5
2212 ac_status=$?
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
2217 (eval $ac_try) 2>&5
2218 ac_status=$?
2219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2220 (exit $ac_status); }; }; then
2222 else
2223 echo "$as_me: failed program was:" >&5
2224 cat conftest.$ac_ext >&5
2225 continue
2227 rm -f conftest.$ac_objext conftest.$ac_ext
2228 cat >conftest.$ac_ext <<_ACEOF
2229 #line $LINENO "configure"
2230 #include "confdefs.h"
2231 $ac_declaration
2232 #ifdef F77_DUMMY_MAIN
2233 # ifdef __cplusplus
2234 extern "C"
2235 # endif
2236 int F77_DUMMY_MAIN() { return 1; }
2237 #endif
2239 main ()
2241 exit (42);
2243 return 0;
2245 _ACEOF
2246 rm -f conftest.$ac_objext
2247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2248 (eval $ac_compile) 2>&5
2249 ac_status=$?
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
2254 (eval $ac_try) 2>&5
2255 ac_status=$?
2256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2257 (exit $ac_status); }; }; then
2258 break
2259 else
2260 echo "$as_me: failed program was:" >&5
2261 cat conftest.$ac_ext >&5
2263 rm -f conftest.$ac_objext conftest.$ac_ext
2264 done
2265 rm -f conftest*
2266 if test -n "$ac_declaration"; then
2267 echo '#ifdef __cplusplus' >>confdefs.h
2268 echo $ac_declaration >>confdefs.h
2269 echo '#endif' >>confdefs.h
2272 ac_ext=c
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
2280 ac_ext=cc
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
2292 else
2293 cat >conftest.$ac_ext <<_ACEOF
2294 #line $LINENO "configure"
2295 #include "confdefs.h"
2296 int main() { return 0; }
2297 _ACEOF
2298 rm -f conftest$ac_exeext
2299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2300 (eval $ac_link) 2>&5
2301 ac_status=$?
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
2305 (eval $ac_try) 2>&5
2306 ac_status=$?
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
2311 else
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
2315 ( exit $ac_status )
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
2329 else
2330 cat >conftest.$ac_ext <<_ACEOF
2331 #line $LINENO "configure"
2332 #include "confdefs.h"
2334 extern "C" {
2335 void _exit(int);
2337 int i;
2338 struct A {
2339 char dummy;
2340 A() { i = 1; }
2341 ~A() { if (i == 1) _exit(0); }
2343 A a;
2344 int main() { return 1; }
2346 _ACEOF
2347 rm -f conftest$ac_exeext
2348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2349 (eval $ac_link) 2>&5
2350 ac_status=$?
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
2354 (eval $ac_try) 2>&5
2355 ac_status=$?
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
2360 else
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
2364 ( exit $ac_status )
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"
2377 #include <stdio.h>
2378 #ifdef F77_DUMMY_MAIN
2379 # ifdef __cplusplus
2380 extern "C"
2381 # endif
2382 int F77_DUMMY_MAIN() { return 1; }
2383 #endif
2385 main ()
2387 fopen(0, 0);
2389 return 0;
2391 _ACEOF
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
2395 ac_status=$?
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
2400 (eval $ac_try) 2>&5
2401 ac_status=$?
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
2406 else
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
2415 ac_ext=c
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
2429 # ifdef __cplusplus
2430 extern "C"
2431 # endif
2432 int F77_DUMMY_MAIN() { return 1; }
2433 #endif
2435 main ()
2437 /* Treat any failure as ASCII for compatibility with existing art.
2438 Use compile-time rather than run-time tests for cross-compiler
2439 tolerance. */
2440 #if '0' != 240
2441 make an error "Character set is not EBCDIC"
2442 #endif
2444 return 0;
2446 _ACEOF
2447 rm -f conftest.$ac_objext
2448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2449 (eval $ac_compile) 2>&5
2450 ac_status=$?
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
2455 (eval $ac_try) 2>&5
2456 ac_status=$?
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
2466 _ACEOF
2468 else
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
2483 case `uname` in
2484 OS/390)
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 ;;
2491 esac
2493 if test -z "$PSPRINT"; then
2494 for ac_prog in lpr
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
2502 else
2503 if test -n "$LPR"; then
2504 ac_cv_prog_LPR="$LPR" # Let the user override the test.
2505 else
2506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2507 for as_dir in $PATH
2509 IFS=$as_save_IFS
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
2515 break 2
2517 done
2518 done
2522 LPR=$ac_cv_prog_LPR
2523 if test -n "$LPR"; then
2524 echo "$as_me:$LINENO: result: $LPR" >&5
2525 echo "${ECHO_T}$LPR" >&6
2526 else
2527 echo "$as_me:$LINENO: result: no" >&5
2528 echo "${ECHO_T}no" >&6
2531 test -n "$LPR" && break
2532 done
2534 for ac_prog in lp
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
2542 else
2543 if test -n "$LP"; then
2544 ac_cv_prog_LP="$LP" # Let the user override the test.
2545 else
2546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2547 for as_dir in $PATH
2549 IFS=$as_save_IFS
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
2555 break 2
2557 done
2558 done
2562 LP=$ac_cv_prog_LP
2563 if test -n "$LP"; then
2564 echo "$as_me:$LINENO: result: $LP" >&5
2565 echo "${ECHO_T}$LP" >&6
2566 else
2567 echo "$as_me:$LINENO: result: no" >&5
2568 echo "${ECHO_T}no" >&6
2571 test -n "$LP" && break
2572 done
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
2577 # rather than lpr.
2578 for ac_prog in lpq
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
2586 else
2587 if test -n "$LPQ"; then
2588 ac_cv_prog_LPQ="$LPQ" # Let the user override the test.
2589 else
2590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2591 for as_dir in $PATH
2593 IFS=$as_save_IFS
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
2599 break 2
2601 done
2602 done
2606 LPQ=$ac_cv_prog_LPQ
2607 if test -n "$LPQ"; then
2608 echo "$as_me:$LINENO: result: $LPQ" >&5
2609 echo "${ECHO_T}$LPQ" >&6
2610 else
2611 echo "$as_me:$LINENO: result: no" >&5
2612 echo "${ECHO_T}no" >&6
2615 test -n "$LPQ" && break
2616 done
2618 test -n "$LPQ" || LPR=
2620 if test -n "$LPR"; then
2621 PSPRINT="$LPR"
2622 elif test -n "$LP"; then
2623 PSPRINT="$LP"
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
2636 DVIPRINT="lpr -d"
2637 else
2638 DVIPRINT="$PSPRINT"
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
2650 else
2651 case $PERLPATH in
2652 [\\/]* | ?:[\\/]*)
2653 ac_cv_path_PERLPATH="$PERLPATH" # Let the user override the test with a path.
2656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2657 for as_dir in $PATH
2659 IFS=$as_save_IFS
2660 test -z "$as_dir" && as_dir=.
2661 for ac_exec_ext in '' $ac_executable_extensions; do
2662 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2663 ac_cv_path_PERLPATH="$as_dir/$ac_word$ac_exec_ext"
2664 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2665 break 2
2667 done
2668 done
2670 test -z "$ac_cv_path_PERLPATH" && ac_cv_path_PERLPATH="/usr/bin/perl"
2672 esac
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
2679 else
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
2692 else
2693 if test -n "$YACC"; then
2694 ac_cv_prog_YACC="$YACC" # Let the user override the test.
2695 else
2696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2697 for as_dir in $PATH
2699 IFS=$as_save_IFS
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
2705 break 2
2707 done
2708 done
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
2716 else
2717 echo "$as_me:$LINENO: result: no" >&5
2718 echo "${ECHO_T}no" >&6
2721 test -n "$YACC" && break
2722 done
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
2732 else
2733 if test -n "$RANLIB"; then
2734 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2735 else
2736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2737 for as_dir in $PATH
2739 IFS=$as_save_IFS
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
2745 break 2
2747 done
2748 done
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
2756 else
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
2770 else
2771 if test -n "$ac_ct_RANLIB"; then
2772 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2773 else
2774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2775 for as_dir in $PATH
2777 IFS=$as_save_IFS
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
2783 break 2
2785 done
2786 done
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
2795 else
2796 echo "$as_me:$LINENO: result: no" >&5
2797 echo "${ECHO_T}no" >&6
2800 RANLIB=$ac_ct_RANLIB
2801 else
2802 RANLIB="$ac_cv_prog_RANLIB"
2805 ac_aux_dir=
2806 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2807 if test -f $ac_dir/install-sh; then
2808 ac_aux_dir=$ac_dir
2809 ac_install_sh="$ac_aux_dir/install-sh -c"
2810 break
2811 elif test -f $ac_dir/install.sh; then
2812 ac_aux_dir=$ac_dir
2813 ac_install_sh="$ac_aux_dir/install.sh -c"
2814 break
2815 elif test -f $ac_dir/shtool; then
2816 ac_aux_dir=$ac_dir
2817 ac_install_sh="$ac_aux_dir/shtool install -c"
2818 break
2820 done
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
2840 else
2841 if test -n "$INSTALL_INFO"; then
2842 ac_cv_prog_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test.
2843 else
2844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2845 for as_dir in $PATH
2847 IFS=$as_save_IFS
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
2853 break 2
2855 done
2856 done
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
2864 else
2865 echo "$as_me:$LINENO: result: no" >&5
2866 echo "${ECHO_T}no" >&6
2869 test -n "$INSTALL_INFO" && break
2870 done
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
2879 # AIX /bin/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
2890 else
2891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2892 for as_dir in $PATH
2894 IFS=$as_save_IFS
2895 test -z "$as_dir" && as_dir=.
2896 # Account for people who put trailing slashes in PATH elements.
2897 case $as_dir/ in
2898 ./ | .// | /cC/* | \
2899 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2900 /usr/ucb/* ) ;;
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
2904 # by default.
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.
2916 else
2917 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2918 break 3
2921 done
2922 done
2924 esac
2925 done
2929 if test "${ac_cv_path_install+set}" = set; then
2930 INSTALL=$ac_cv_path_install
2931 else
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
2952 LN_S=$as_ln_s
2953 if test "$LN_S" = "ln -s"; then
2954 echo "$as_me:$LINENO: result: yes" >&5
2955 echo "${ECHO_T}yes" >&6
2956 else
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
2964 #!/bin/sh
2965 true || exit 0
2966 export PATH || exit 0
2967 exit 1
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/.*/:/'
2973 else
2974 echo "$as_me:$LINENO: result: no" >&5
2975 echo "${ECHO_T}no" >&6; SH_SCRIPT_SED_CMD='1s/a/a/'
2977 rm -f conftest.sh
2979 ac_ext=c
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
2988 CPP=
2990 if test -z "$CPP"; then
2991 if test "${ac_cv_prog_CPP+set}" = set; then
2992 echo $ECHO_N "(cached) $ECHO_C" >&6
2993 else
2994 # Double quotes because CPP needs to be expanded
2995 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2997 ac_preproc_ok=false
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"
3007 #include <assert.h>
3008 Syntax error
3009 _ACEOF
3010 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3011 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3012 ac_status=$?
3013 egrep -v '^ *\+' conftest.er1 >conftest.err
3014 rm -f conftest.er1
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
3020 else
3021 ac_cpp_err=
3023 else
3024 ac_cpp_err=yes
3026 if test -z "$ac_cpp_err"; then
3028 else
3029 echo "$as_me: failed program was:" >&5
3030 cat conftest.$ac_ext >&5
3031 # Broken: fails on valid input.
3032 continue
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>
3042 _ACEOF
3043 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3044 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3045 ac_status=$?
3046 egrep -v '^ *\+' conftest.er1 >conftest.err
3047 rm -f conftest.er1
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
3053 else
3054 ac_cpp_err=
3056 else
3057 ac_cpp_err=yes
3059 if test -z "$ac_cpp_err"; then
3060 # Broken: success on invalid input.
3061 continue
3062 else
3063 echo "$as_me: failed program was:" >&5
3064 cat conftest.$ac_ext >&5
3065 # Passes both tests.
3066 ac_preproc_ok=:
3067 break
3069 rm -f conftest.err conftest.$ac_ext
3071 done
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
3075 break
3078 done
3079 ac_cv_prog_CPP=$CPP
3082 CPP=$ac_cv_prog_CPP
3083 else
3084 ac_cv_prog_CPP=$CPP
3086 echo "$as_me:$LINENO: result: $CPP" >&5
3087 echo "${ECHO_T}$CPP" >&6
3088 ac_preproc_ok=false
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"
3098 #include <assert.h>
3099 Syntax error
3100 _ACEOF
3101 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3102 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3103 ac_status=$?
3104 egrep -v '^ *\+' conftest.er1 >conftest.err
3105 rm -f conftest.er1
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
3111 else
3112 ac_cpp_err=
3114 else
3115 ac_cpp_err=yes
3117 if test -z "$ac_cpp_err"; then
3119 else
3120 echo "$as_me: failed program was:" >&5
3121 cat conftest.$ac_ext >&5
3122 # Broken: fails on valid input.
3123 continue
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>
3133 _ACEOF
3134 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3135 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3136 ac_status=$?
3137 egrep -v '^ *\+' conftest.er1 >conftest.err
3138 rm -f conftest.er1
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
3144 else
3145 ac_cpp_err=
3147 else
3148 ac_cpp_err=yes
3150 if test -z "$ac_cpp_err"; then
3151 # Broken: success on invalid input.
3152 continue
3153 else
3154 echo "$as_me: failed program was:" >&5
3155 cat conftest.$ac_ext >&5
3156 # Passes both tests.
3157 ac_preproc_ok=:
3158 break
3160 rm -f conftest.err conftest.$ac_ext
3162 done
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
3167 else
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; }; }
3173 ac_ext=c
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
3184 else
3185 cat >conftest.$ac_ext <<_ACEOF
3186 #line $LINENO "configure"
3187 #include "confdefs.h"
3188 #include <stdlib.h>
3189 #include <stdarg.h>
3190 #include <string.h>
3191 #include <float.h>
3193 _ACEOF
3194 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3195 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3196 ac_status=$?
3197 egrep -v '^ *\+' conftest.er1 >conftest.err
3198 rm -f conftest.er1
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
3204 else
3205 ac_cpp_err=
3207 else
3208 ac_cpp_err=yes
3210 if test -z "$ac_cpp_err"; then
3211 ac_cv_header_stdc=yes
3212 else
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"
3224 #include <string.h>
3226 _ACEOF
3227 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3228 egrep "memchr" >/dev/null 2>&1; then
3230 else
3231 ac_cv_header_stdc=no
3233 rm -f conftest*
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"
3242 #include <stdlib.h>
3244 _ACEOF
3245 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3246 egrep "free" >/dev/null 2>&1; then
3248 else
3249 ac_cv_header_stdc=no
3251 rm -f conftest*
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
3259 else
3260 cat >conftest.$ac_ext <<_ACEOF
3261 #line $LINENO "configure"
3262 #include "confdefs.h"
3263 #include <ctype.h>
3264 #if ((' ' & 0x0FF) == 0x020)
3265 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3266 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3267 #else
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))
3272 #endif
3274 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3276 main ()
3278 int i;
3279 for (i = 0; i < 256; i++)
3280 if (XOR (islower (i), ISLOWER (i))
3281 || toupper (i) != TOUPPER (i))
3282 exit(2);
3283 exit (0);
3285 _ACEOF
3286 rm -f conftest$ac_exeext
3287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3288 (eval $ac_link) 2>&5
3289 ac_status=$?
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
3293 (eval $ac_try) 2>&5
3294 ac_status=$?
3295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3296 (exit $ac_status); }; }; then
3298 else
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
3302 ( exit $ac_status )
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
3315 _ACEOF
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
3337 else
3338 cat >conftest.$ac_ext <<_ACEOF
3339 #line $LINENO "configure"
3340 #include "confdefs.h"
3341 $ac_includes_default
3343 #include <$ac_header>
3344 _ACEOF
3345 rm -f conftest.$ac_objext
3346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3347 (eval $ac_compile) 2>&5
3348 ac_status=$?
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
3353 (eval $ac_try) 2>&5
3354 ac_status=$?
3355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3356 (exit $ac_status); }; }; then
3357 eval "$as_ac_Header=yes"
3358 else
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
3370 _ACEOF
3374 done
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
3399 else
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>
3408 _ACEOF
3409 rm -f conftest.$ac_objext
3410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3411 (eval $ac_compile) 2>&5
3412 ac_status=$?
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
3417 (eval $ac_try) 2>&5
3418 ac_status=$?
3419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3420 (exit $ac_status); }; }; then
3421 ac_header_compiler=yes
3422 else
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>
3438 _ACEOF
3439 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3440 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3441 ac_status=$?
3442 egrep -v '^ *\+' conftest.er1 >conftest.err
3443 rm -f conftest.er1
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
3449 else
3450 ac_cpp_err=
3452 else
3453 ac_cpp_err=yes
3455 if test -z "$ac_cpp_err"; then
3456 ac_header_preproc=yes
3457 else
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
3468 yes:no )
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;};;
3473 no:yes )
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;};;
3480 esac
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
3485 else
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
3495 _ACEOF
3499 done
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
3504 then
3505 echo "$as_me:$LINENO: result: yes" >&5
3506 echo "${ECHO_T}yes" >&6
3508 cat >>confdefs.h <<\_ACEOF
3509 #define _SYSV3 1
3510 _ACEOF
3512 else
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
3518 ac_ext=cc
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"
3527 #include <stdio.h>
3528 extern "C" { void fileno(int); }
3529 #ifdef F77_DUMMY_MAIN
3530 # ifdef __cplusplus
3531 extern "C"
3532 # endif
3533 int F77_DUMMY_MAIN() { return 1; }
3534 #endif
3536 main ()
3540 return 0;
3542 _ACEOF
3543 rm -f conftest.$ac_objext
3544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3545 (eval $ac_compile) 2>&5
3546 ac_status=$?
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
3551 (eval $ac_try) 2>&5
3552 ac_status=$?
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
3559 _ACEOF
3561 else
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
3568 ac_ext=c
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
3574 ac_ext=cc
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"
3585 #include <stdlib.h>
3586 extern "C" { void srand(unsigned int); }
3587 #ifdef F77_DUMMY_MAIN
3588 # ifdef __cplusplus
3589 extern "C"
3590 # endif
3591 int F77_DUMMY_MAIN() { return 1; }
3592 #endif
3594 main ()
3598 return 0;
3600 _ACEOF
3601 rm -f conftest.$ac_objext
3602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3603 (eval $ac_compile) 2>&5
3604 ac_status=$?
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
3609 (eval $ac_try) 2>&5
3610 ac_status=$?
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
3617 _ACEOF
3619 else
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
3626 ac_ext=c
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
3634 ac_ext=cc
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
3642 else
3643 cat >conftest.$ac_ext <<_ACEOF
3644 #line $LINENO "configure"
3645 #include "confdefs.h"
3647 #include <stdio.h>
3648 #ifdef HAVE_STRING_H
3649 #include <string.h>
3650 #endif
3651 #ifdef HAVE_STRINGS_H
3652 #include <strings.h>
3653 #endif
3654 #ifdef HAVE_STDLIB_H
3655 #include <stdlib.h>
3656 #endif
3657 #ifdef HAVE_SYS_TIME_H
3658 #include <sys/time.h>
3659 #endif
3660 #ifdef HAVE_UNISTD_H
3661 #include <unistd.h>
3662 #endif
3663 #ifdef HAVE_MATH_H
3664 #include <math.h>
3665 #endif
3666 #ifdef F77_DUMMY_MAIN
3667 # ifdef __cplusplus
3668 extern "C"
3669 # endif
3670 int F77_DUMMY_MAIN() { return 1; }
3671 #endif
3673 main ()
3675 #ifndef gettimeofday
3676 char *p = (char *) gettimeofday;
3677 #endif
3679 return 0;
3681 _ACEOF
3682 rm -f conftest.$ac_objext
3683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3684 (eval $ac_compile) 2>&5
3685 ac_status=$?
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
3690 (eval $ac_try) 2>&5
3691 ac_status=$?
3692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3693 (exit $ac_status); }; }; then
3694 groff_cv_decl_needed_gettimeofday=no
3695 else
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
3709 _ACEOF
3712 ac_ext=c
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
3720 ac_ext=cc
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
3728 else
3729 cat >conftest.$ac_ext <<_ACEOF
3730 #line $LINENO "configure"
3731 #include "confdefs.h"
3733 #include <stdio.h>
3734 #ifdef HAVE_STRING_H
3735 #include <string.h>
3736 #endif
3737 #ifdef HAVE_STRINGS_H
3738 #include <strings.h>
3739 #endif
3740 #ifdef HAVE_STDLIB_H
3741 #include <stdlib.h>
3742 #endif
3743 #ifdef HAVE_SYS_TIME_H
3744 #include <sys/time.h>
3745 #endif
3746 #ifdef HAVE_UNISTD_H
3747 #include <unistd.h>
3748 #endif
3749 #ifdef HAVE_MATH_H
3750 #include <math.h>
3751 #endif
3752 #ifdef F77_DUMMY_MAIN
3753 # ifdef __cplusplus
3754 extern "C"
3755 # endif
3756 int F77_DUMMY_MAIN() { return 1; }
3757 #endif
3759 main ()
3761 #ifndef hypot
3762 char *p = (char *) hypot;
3763 #endif
3765 return 0;
3767 _ACEOF
3768 rm -f conftest.$ac_objext
3769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3770 (eval $ac_compile) 2>&5
3771 ac_status=$?
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
3776 (eval $ac_try) 2>&5
3777 ac_status=$?
3778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3779 (exit $ac_status); }; }; then
3780 groff_cv_decl_needed_hypot=no
3781 else
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
3795 _ACEOF
3798 ac_ext=c
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
3806 ac_ext=cc
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
3814 else
3815 cat >conftest.$ac_ext <<_ACEOF
3816 #line $LINENO "configure"
3817 #include "confdefs.h"
3819 #include <stdio.h>
3820 #ifdef HAVE_STRING_H
3821 #include <string.h>
3822 #endif
3823 #ifdef HAVE_STRINGS_H
3824 #include <strings.h>
3825 #endif
3826 #ifdef HAVE_STDLIB_H
3827 #include <stdlib.h>
3828 #endif
3829 #ifdef HAVE_SYS_TIME_H
3830 #include <sys/time.h>
3831 #endif
3832 #ifdef HAVE_UNISTD_H
3833 #include <unistd.h>
3834 #endif
3835 #ifdef HAVE_MATH_H
3836 #include <math.h>
3837 #endif
3838 #ifdef F77_DUMMY_MAIN
3839 # ifdef __cplusplus
3840 extern "C"
3841 # endif
3842 int F77_DUMMY_MAIN() { return 1; }
3843 #endif
3845 main ()
3847 #ifndef popen
3848 char *p = (char *) popen;
3849 #endif
3851 return 0;
3853 _ACEOF
3854 rm -f conftest.$ac_objext
3855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3856 (eval $ac_compile) 2>&5
3857 ac_status=$?
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
3862 (eval $ac_try) 2>&5
3863 ac_status=$?
3864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865 (exit $ac_status); }; }; then
3866 groff_cv_decl_needed_popen=no
3867 else
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
3881 _ACEOF
3884 ac_ext=c
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
3892 ac_ext=cc
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
3900 else
3901 cat >conftest.$ac_ext <<_ACEOF
3902 #line $LINENO "configure"
3903 #include "confdefs.h"
3905 #include <stdio.h>
3906 #ifdef HAVE_STRING_H
3907 #include <string.h>
3908 #endif
3909 #ifdef HAVE_STRINGS_H
3910 #include <strings.h>
3911 #endif
3912 #ifdef HAVE_STDLIB_H
3913 #include <stdlib.h>
3914 #endif
3915 #ifdef HAVE_SYS_TIME_H
3916 #include <sys/time.h>
3917 #endif
3918 #ifdef HAVE_UNISTD_H
3919 #include <unistd.h>
3920 #endif
3921 #ifdef HAVE_MATH_H
3922 #include <math.h>
3923 #endif
3924 #ifdef F77_DUMMY_MAIN
3925 # ifdef __cplusplus
3926 extern "C"
3927 # endif
3928 int F77_DUMMY_MAIN() { return 1; }
3929 #endif
3931 main ()
3933 #ifndef pclose
3934 char *p = (char *) pclose;
3935 #endif
3937 return 0;
3939 _ACEOF
3940 rm -f conftest.$ac_objext
3941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3942 (eval $ac_compile) 2>&5
3943 ac_status=$?
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
3948 (eval $ac_try) 2>&5
3949 ac_status=$?
3950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3951 (exit $ac_status); }; }; then
3952 groff_cv_decl_needed_pclose=no
3953 else
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
3967 _ACEOF
3970 ac_ext=c
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
3978 ac_ext=cc
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
3986 else
3987 cat >conftest.$ac_ext <<_ACEOF
3988 #line $LINENO "configure"
3989 #include "confdefs.h"
3991 #include <stdio.h>
3992 #ifdef HAVE_STRING_H
3993 #include <string.h>
3994 #endif
3995 #ifdef HAVE_STRINGS_H
3996 #include <strings.h>
3997 #endif
3998 #ifdef HAVE_STDLIB_H
3999 #include <stdlib.h>
4000 #endif
4001 #ifdef HAVE_SYS_TIME_H
4002 #include <sys/time.h>
4003 #endif
4004 #ifdef HAVE_UNISTD_H
4005 #include <unistd.h>
4006 #endif
4007 #ifdef HAVE_MATH_H
4008 #include <math.h>
4009 #endif
4010 #ifdef F77_DUMMY_MAIN
4011 # ifdef __cplusplus
4012 extern "C"
4013 # endif
4014 int F77_DUMMY_MAIN() { return 1; }
4015 #endif
4017 main ()
4019 #ifndef putenv
4020 char *p = (char *) putenv;
4021 #endif
4023 return 0;
4025 _ACEOF
4026 rm -f conftest.$ac_objext
4027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4028 (eval $ac_compile) 2>&5
4029 ac_status=$?
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
4034 (eval $ac_try) 2>&5
4035 ac_status=$?
4036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4037 (exit $ac_status); }; }; then
4038 groff_cv_decl_needed_putenv=no
4039 else
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
4053 _ACEOF
4056 ac_ext=c
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
4064 ac_ext=cc
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
4072 else
4073 cat >conftest.$ac_ext <<_ACEOF
4074 #line $LINENO "configure"
4075 #include "confdefs.h"
4077 #include <stdio.h>
4078 #ifdef HAVE_STRING_H
4079 #include <string.h>
4080 #endif
4081 #ifdef HAVE_STRINGS_H
4082 #include <strings.h>
4083 #endif
4084 #ifdef HAVE_STDLIB_H
4085 #include <stdlib.h>
4086 #endif
4087 #ifdef HAVE_SYS_TIME_H
4088 #include <sys/time.h>
4089 #endif
4090 #ifdef HAVE_UNISTD_H
4091 #include <unistd.h>
4092 #endif
4093 #ifdef HAVE_MATH_H
4094 #include <math.h>
4095 #endif
4096 #ifdef F77_DUMMY_MAIN
4097 # ifdef __cplusplus
4098 extern "C"
4099 # endif
4100 int F77_DUMMY_MAIN() { return 1; }
4101 #endif
4103 main ()
4105 #ifndef strcasecmp
4106 char *p = (char *) strcasecmp;
4107 #endif
4109 return 0;
4111 _ACEOF
4112 rm -f conftest.$ac_objext
4113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4114 (eval $ac_compile) 2>&5
4115 ac_status=$?
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
4120 (eval $ac_try) 2>&5
4121 ac_status=$?
4122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4123 (exit $ac_status); }; }; then
4124 groff_cv_decl_needed_strcasecmp=no
4125 else
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
4139 _ACEOF
4142 ac_ext=c
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
4150 ac_ext=cc
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
4158 else
4159 cat >conftest.$ac_ext <<_ACEOF
4160 #line $LINENO "configure"
4161 #include "confdefs.h"
4163 #include <stdio.h>
4164 #ifdef HAVE_STRING_H
4165 #include <string.h>
4166 #endif
4167 #ifdef HAVE_STRINGS_H
4168 #include <strings.h>
4169 #endif
4170 #ifdef HAVE_STDLIB_H
4171 #include <stdlib.h>
4172 #endif
4173 #ifdef HAVE_SYS_TIME_H
4174 #include <sys/time.h>
4175 #endif
4176 #ifdef HAVE_UNISTD_H
4177 #include <unistd.h>
4178 #endif
4179 #ifdef HAVE_MATH_H
4180 #include <math.h>
4181 #endif
4182 #ifdef F77_DUMMY_MAIN
4183 # ifdef __cplusplus
4184 extern "C"
4185 # endif
4186 int F77_DUMMY_MAIN() { return 1; }
4187 #endif
4189 main ()
4191 #ifndef strncasecmp
4192 char *p = (char *) strncasecmp;
4193 #endif
4195 return 0;
4197 _ACEOF
4198 rm -f conftest.$ac_objext
4199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4200 (eval $ac_compile) 2>&5
4201 ac_status=$?
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
4206 (eval $ac_try) 2>&5
4207 ac_status=$?
4208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4209 (exit $ac_status); }; }; then
4210 groff_cv_decl_needed_strncasecmp=no
4211 else
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
4225 _ACEOF
4228 ac_ext=c
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
4234 ac_ext=cc
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"
4245 #include <errno.h>
4246 #include <stdio.h>
4247 #ifdef F77_DUMMY_MAIN
4248 # ifdef __cplusplus
4249 extern "C"
4250 # endif
4251 int F77_DUMMY_MAIN() { return 1; }
4252 #endif
4254 main ()
4256 int k; k = sys_nerr;
4258 return 0;
4260 _ACEOF
4261 rm -f conftest.$ac_objext
4262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4263 (eval $ac_compile) 2>&5
4264 ac_status=$?
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
4269 (eval $ac_try) 2>&5
4270 ac_status=$?
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
4277 _ACEOF
4279 else
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
4286 ac_ext=c
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"
4297 #include <errno.h>
4298 #include <stdio.h>
4299 #ifdef F77_DUMMY_MAIN
4300 # ifdef __cplusplus
4301 extern "C"
4302 # endif
4303 int F77_DUMMY_MAIN() { return 1; }
4304 #endif
4306 main ()
4308 int k; k = (int)sys_errlist[0];
4310 return 0;
4312 _ACEOF
4313 rm -f conftest.$ac_objext
4314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4315 (eval $ac_compile) 2>&5
4316 ac_status=$?
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
4321 (eval $ac_try) 2>&5
4322 ac_status=$?
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
4329 _ACEOF
4331 else
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
4338 ac_ext=cc
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"
4349 #include <osfcn.h>
4350 #ifdef F77_DUMMY_MAIN
4351 # ifdef __cplusplus
4352 extern "C"
4353 # endif
4354 int F77_DUMMY_MAIN() { return 1; }
4355 #endif
4357 main ()
4359 read(0, 0, 0); open(0, 0);
4361 return 0;
4363 _ACEOF
4364 rm -f conftest.$ac_objext
4365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4366 (eval $ac_compile) 2>&5
4367 ac_status=$?
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
4372 (eval $ac_try) 2>&5
4373 ac_status=$?
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
4380 _ACEOF
4382 else
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
4389 ac_ext=c
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
4395 ac_ext=cc
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"
4406 #include <limits.h>
4407 #ifdef F77_DUMMY_MAIN
4408 # ifdef __cplusplus
4409 extern "C"
4410 # endif
4411 int F77_DUMMY_MAIN() { return 1; }
4412 #endif
4414 main ()
4416 int x = INT_MIN; int y = INT_MAX; int z = UCHAR_MAX;
4418 return 0;
4420 _ACEOF
4421 rm -f conftest.$ac_objext
4422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4423 (eval $ac_compile) 2>&5
4424 ac_status=$?
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
4429 (eval $ac_try) 2>&5
4430 ac_status=$?
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
4437 _ACEOF
4439 else
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
4446 ac_ext=c
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
4452 ac_ext=cc
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
4466 # ifdef __cplusplus
4467 extern "C"
4468 # endif
4469 int F77_DUMMY_MAIN() { return 1; }
4470 #endif
4472 main ()
4474 uintmax_t i = (uintmax_t)-1;
4476 return 0;
4478 _ACEOF
4479 rm -f conftest.$ac_objext
4480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4481 (eval $ac_compile) 2>&5
4482 ac_status=$?
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
4487 (eval $ac_try) 2>&5
4488 ac_status=$?
4489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4490 (exit $ac_status); }; }; then
4491 groff_cv_header_inttypes_h=yes
4492 else
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
4500 ac_ext=c
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
4506 ac_ext=cc
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
4519 # ifdef __cplusplus
4520 extern "C"
4521 # endif
4522 int F77_DUMMY_MAIN() { return 1; }
4523 #endif
4525 main ()
4527 unsigned long long ullmax = (unsigned long long)-1;
4528 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
4530 return 0;
4532 _ACEOF
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
4536 ac_status=$?
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
4541 (eval $ac_try) 2>&5
4542 ac_status=$?
4543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4544 (exit $ac_status); }; }; then
4545 groff_cv_type_unsigned_long_long=yes
4546 else
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
4554 ac_ext=c
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
4569 _ACEOF
4572 ac_ext=cc
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"
4583 #include <time.h>
4584 #ifdef F77_DUMMY_MAIN
4585 # ifdef __cplusplus
4586 extern "C"
4587 # endif
4588 int F77_DUMMY_MAIN() { return 1; }
4589 #endif
4591 main ()
4593 time_t t = time(0); struct tm *p = localtime(&t);
4595 return 0;
4597 _ACEOF
4598 rm -f conftest.$ac_objext
4599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4600 (eval $ac_compile) 2>&5
4601 ac_status=$?
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
4606 (eval $ac_try) 2>&5
4607 ac_status=$?
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
4612 else
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
4619 _ACEOF
4622 rm -f conftest.$ac_objext conftest.$ac_ext
4623 ac_ext=c
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
4633 else
4634 cat >conftest.$ac_ext <<_ACEOF
4635 #line $LINENO "configure"
4636 #include "confdefs.h"
4637 #include <sys/types.h>
4638 #include <signal.h>
4639 #ifdef signal
4640 # undef signal
4641 #endif
4642 #ifdef __cplusplus
4643 extern "C" void (*signal (int, void (*)(int)))(int);
4644 #else
4645 void (*signal ()) ();
4646 #endif
4648 #ifdef F77_DUMMY_MAIN
4649 # ifdef __cplusplus
4650 extern "C"
4651 # endif
4652 int F77_DUMMY_MAIN() { return 1; }
4653 #endif
4655 main ()
4657 int i;
4659 return 0;
4661 _ACEOF
4662 rm -f conftest.$ac_objext
4663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4664 (eval $ac_compile) 2>&5
4665 ac_status=$?
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
4670 (eval $ac_try) 2>&5
4671 ac_status=$?
4672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4673 (exit $ac_status); }; }; then
4674 ac_cv_type_signal=void
4675 else
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
4687 _ACEOF
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"
4695 #include <math.h>
4696 #ifdef F77_DUMMY_MAIN
4697 # ifdef __cplusplus
4698 extern "C"
4699 # endif
4700 int F77_DUMMY_MAIN() { return 1; }
4701 #endif
4703 main ()
4705 struct exception e;
4707 return 0;
4709 _ACEOF
4710 rm -f conftest.$ac_objext
4711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4712 (eval $ac_compile) 2>&5
4713 ac_status=$?
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
4718 (eval $ac_try) 2>&5
4719 ac_status=$?
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
4726 _ACEOF
4728 else
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
4739 else
4740 ac_check_lib_save_LIBS=$LIBS
4741 LIBS="-lm $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. */
4747 #ifdef __cplusplus
4748 extern "C"
4749 #endif
4750 /* We use char because int might match the return type of a gcc2
4751 builtin and then its argument prototype would still apply. */
4752 char sin ();
4753 #ifdef F77_DUMMY_MAIN
4754 # ifdef __cplusplus
4755 extern "C"
4756 # endif
4757 int F77_DUMMY_MAIN() { return 1; }
4758 #endif
4760 main ()
4762 sin ();
4764 return 0;
4766 _ACEOF
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
4770 ac_status=$?
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
4775 (eval $ac_try) 2>&5
4776 ac_status=$?
4777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4778 (exit $ac_status); }; }; then
4779 ac_cv_lib_m_sin=yes
4780 else
4781 echo "$as_me: failed program was:" >&5
4782 cat conftest.$ac_ext >&5
4783 ac_cv_lib_m_sin=no
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
4791 LIBM=-lm
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
4808 else
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>
4817 _ACEOF
4818 rm -f conftest.$ac_objext
4819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4820 (eval $ac_compile) 2>&5
4821 ac_status=$?
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
4826 (eval $ac_try) 2>&5
4827 ac_status=$?
4828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4829 (exit $ac_status); }; }; then
4830 ac_header_compiler=yes
4831 else
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>
4847 _ACEOF
4848 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4849 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4850 ac_status=$?
4851 egrep -v '^ *\+' conftest.er1 >conftest.err
4852 rm -f conftest.er1
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
4858 else
4859 ac_cpp_err=
4861 else
4862 ac_cpp_err=yes
4864 if test -z "$ac_cpp_err"; then
4865 ac_header_preproc=yes
4866 else
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
4877 yes:no )
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;};;
4882 no:yes )
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;};;
4889 esac
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
4894 else
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
4904 _ACEOF
4908 done
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
4918 else
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. */
4924 #include <assert.h>
4925 /* Override any gcc2 internal prototype to avoid an error. */
4926 #ifdef __cplusplus
4927 extern "C"
4928 #endif
4929 /* We use char because int might match the return type of a gcc2
4930 builtin and then its argument prototype would still apply. */
4931 char $ac_func ();
4932 char (*f) ();
4934 #ifdef F77_DUMMY_MAIN
4935 # ifdef __cplusplus
4936 extern "C"
4937 # endif
4938 int F77_DUMMY_MAIN() { return 1; }
4939 #endif
4941 main ()
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)
4947 choke me
4948 #else
4949 f = $ac_func;
4950 #endif
4953 return 0;
4955 _ACEOF
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
4959 ac_status=$?
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
4964 (eval $ac_try) 2>&5
4965 ac_status=$?
4966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4967 (exit $ac_status); }; }; then
4968 eval "$as_ac_var=yes"
4969 else
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
4981 _ACEOF
4984 done
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
4990 else
4991 if test "$cross_compiling" = yes; then
4992 ac_cv_func_mmap_fixed_mapped=no
4993 else
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. */
4999 #undef 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) */
5023 #include <fcntl.h>
5024 #include <sys/mman.h>
5026 #if !STDC_HEADERS && !HAVE_STDLIB_H
5027 char *malloc ();
5028 #endif
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
5035 # endif
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 */
5045 # ifdef NBPG
5046 # define getpagesize() NBPG * CLSIZE
5047 # ifndef CLSIZE
5048 # define CLSIZE 1
5049 # endif /* no CLSIZE */
5050 # else /* no NBPG */
5051 # ifdef NBPC
5052 # define getpagesize() NBPC
5053 # else /* no NBPC */
5054 # ifdef PAGESIZE
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 */
5068 main ()
5070 char *data, *data2, *data3;
5071 int i, pagesize;
5072 int fd;
5074 pagesize = getpagesize ();
5076 /* First, make a file with some known garbage in it. */
5077 data = (char *) malloc (pagesize);
5078 if (!data)
5079 exit (1);
5080 for (i = 0; i < pagesize; ++i)
5081 *(data + i) = rand ();
5082 umask (0);
5083 fd = creat ("conftest.mmap", 0600);
5084 if (fd < 0)
5085 exit (1);
5086 if (write (fd, data, pagesize) != pagesize)
5087 exit (1);
5088 close (fd);
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);
5094 if (fd < 0)
5095 exit (1);
5096 data2 = (char *) malloc (2 * pagesize);
5097 if (!data2)
5098 exit (1);
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))
5102 exit (1);
5103 for (i = 0; i < pagesize; ++i)
5104 if (*(data + i) != *(data2 + i))
5105 exit (1);
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);
5113 if (!data3)
5114 exit (1);
5115 if (read (fd, data3, pagesize) != pagesize)
5116 exit (1);
5117 for (i = 0; i < pagesize; ++i)
5118 if (*(data + i) != *(data3 + i))
5119 exit (1);
5120 close (fd);
5121 exit (0);
5123 _ACEOF
5124 rm -f conftest$ac_exeext
5125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5126 (eval $ac_link) 2>&5
5127 ac_status=$?
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
5131 (eval $ac_try) 2>&5
5132 ac_status=$?
5133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5134 (exit $ac_status); }; }; then
5135 ac_cv_func_mmap_fixed_mapped=yes
5136 else
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
5140 ( exit $ac_status )
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
5151 #define HAVE_MMAP 1
5152 _ACEOF
5155 rm -f conftest.mmap
5157 saved_libs="$LIBS"
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
5172 else
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. */
5178 #include <assert.h>
5179 /* Override any gcc2 internal prototype to avoid an error. */
5180 #ifdef __cplusplus
5181 extern "C"
5182 #endif
5183 /* We use char because int might match the return type of a gcc2
5184 builtin and then its argument prototype would still apply. */
5185 char $ac_func ();
5186 char (*f) ();
5188 #ifdef F77_DUMMY_MAIN
5189 # ifdef __cplusplus
5190 extern "C"
5191 # endif
5192 int F77_DUMMY_MAIN() { return 1; }
5193 #endif
5195 main ()
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)
5201 choke me
5202 #else
5203 f = $ac_func;
5204 #endif
5207 return 0;
5209 _ACEOF
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
5213 ac_status=$?
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
5218 (eval $ac_try) 2>&5
5219 ac_status=$?
5220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5221 (exit $ac_status); }; }; then
5222 eval "$as_ac_var=yes"
5223 else
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
5235 _ACEOF
5237 else
5238 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
5240 done
5243 LIBS="$saved_libs"
5249 for ac_func in gettimeofday rename strcasecmp strncasecmp strsep
5251 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5252 echo "$as_me:$LINENO: checking for $ac_func" >&5
5253 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5254 if eval "test \"\${$as_ac_var+set}\" = set"; then
5255 echo $ECHO_N "(cached) $ECHO_C" >&6
5256 else
5257 cat >conftest.$ac_ext <<_ACEOF
5258 #line $LINENO "configure"
5259 #include "confdefs.h"
5260 /* System header to define __stub macros and hopefully few prototypes,
5261 which can conflict with char $ac_func (); below. */
5262 #include <assert.h>
5263 /* Override any gcc2 internal prototype to avoid an error. */
5264 #ifdef __cplusplus
5265 extern "C"
5266 #endif
5267 /* We use char because int might match the return type of a gcc2
5268 builtin and then its argument prototype would still apply. */
5269 char $ac_func ();
5270 char (*f) ();
5272 #ifdef F77_DUMMY_MAIN
5273 # ifdef __cplusplus
5274 extern "C"
5275 # endif
5276 int F77_DUMMY_MAIN() { return 1; }
5277 #endif
5279 main ()
5281 /* The GNU C library defines this for functions which it implements
5282 to always fail with ENOSYS. Some functions are actually named
5283 something starting with __ and the normal name is an alias. */
5284 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5285 choke me
5286 #else
5287 f = $ac_func;
5288 #endif
5291 return 0;
5293 _ACEOF
5294 rm -f conftest.$ac_objext conftest$ac_exeext
5295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5296 (eval $ac_link) 2>&5
5297 ac_status=$?
5298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5299 (exit $ac_status); } &&
5300 { ac_try='test -s conftest$ac_exeext'
5301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5302 (eval $ac_try) 2>&5
5303 ac_status=$?
5304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5305 (exit $ac_status); }; }; then
5306 eval "$as_ac_var=yes"
5307 else
5308 echo "$as_me: failed program was:" >&5
5309 cat conftest.$ac_ext >&5
5310 eval "$as_ac_var=no"
5312 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5314 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5315 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5316 if test `eval echo '${'$as_ac_var'}'` = yes; then
5317 cat >>confdefs.h <<_ACEOF
5318 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5319 _ACEOF
5322 done
5324 echo "$as_me:$LINENO: checking for mkstemp" >&5
5325 echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
5326 ac_ext=cc
5327 ac_cpp='$CXXCPP $CPPFLAGS'
5328 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5329 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5330 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5333 cat >conftest.$ac_ext <<_ACEOF
5334 #line $LINENO "configure"
5335 #include "confdefs.h"
5336 #include <stdlib.h>
5337 #include <unistd.h>
5338 int (*f) (char *);
5339 #ifdef F77_DUMMY_MAIN
5340 # ifdef __cplusplus
5341 extern "C"
5342 # endif
5343 int F77_DUMMY_MAIN() { return 1; }
5344 #endif
5346 main ()
5348 f = mkstemp;
5350 return 0;
5352 _ACEOF
5353 rm -f conftest.$ac_objext conftest$ac_exeext
5354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5355 (eval $ac_link) 2>&5
5356 ac_status=$?
5357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5358 (exit $ac_status); } &&
5359 { ac_try='test -s conftest$ac_exeext'
5360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5361 (eval $ac_try) 2>&5
5362 ac_status=$?
5363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5364 (exit $ac_status); }; }; then
5365 echo "$as_me:$LINENO: result: yes" >&5
5366 echo "${ECHO_T}yes" >&6;
5367 cat >>confdefs.h <<\_ACEOF
5368 #define HAVE_MKSTEMP 1
5369 _ACEOF
5371 else
5372 echo "$as_me: failed program was:" >&5
5373 cat conftest.$ac_ext >&5
5374 echo "$as_me:$LINENO: result: no" >&5
5375 echo "${ECHO_T}no" >&6;LIBOBJS="$LIBOBJS mkstemp.$ac_objext"
5377 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5378 ac_ext=c
5379 ac_cpp='$CPP $CPPFLAGS'
5380 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5381 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5382 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5384 echo "$as_me:$LINENO: checking for sys_siglist declaration in signal.h or unistd.h" >&5
5385 echo $ECHO_N "checking for sys_siglist declaration in signal.h or unistd.h... $ECHO_C" >&6
5386 if test "${ac_cv_decl_sys_siglist+set}" = set; then
5387 echo $ECHO_N "(cached) $ECHO_C" >&6
5388 else
5389 cat >conftest.$ac_ext <<_ACEOF
5390 #line $LINENO "configure"
5391 #include "confdefs.h"
5392 #include <sys/types.h>
5393 #include <signal.h>
5394 /* NetBSD declares sys_siglist in unistd.h. */
5395 #if HAVE_UNISTD_H
5396 # include <unistd.h>
5397 #endif
5399 #ifdef F77_DUMMY_MAIN
5400 # ifdef __cplusplus
5401 extern "C"
5402 # endif
5403 int F77_DUMMY_MAIN() { return 1; }
5404 #endif
5406 main ()
5408 char *msg = *(sys_siglist + 1);
5410 return 0;
5412 _ACEOF
5413 rm -f conftest.$ac_objext
5414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5415 (eval $ac_compile) 2>&5
5416 ac_status=$?
5417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5418 (exit $ac_status); } &&
5419 { ac_try='test -s conftest.$ac_objext'
5420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5421 (eval $ac_try) 2>&5
5422 ac_status=$?
5423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5424 (exit $ac_status); }; }; then
5425 ac_cv_decl_sys_siglist=yes
5426 else
5427 echo "$as_me: failed program was:" >&5
5428 cat conftest.$ac_ext >&5
5429 ac_cv_decl_sys_siglist=no
5431 rm -f conftest.$ac_objext conftest.$ac_ext
5433 echo "$as_me:$LINENO: result: $ac_cv_decl_sys_siglist" >&5
5434 echo "${ECHO_T}$ac_cv_decl_sys_siglist" >&6
5435 if test $ac_cv_decl_sys_siglist = yes; then
5437 cat >>confdefs.h <<\_ACEOF
5438 #define SYS_SIGLIST_DECLARED 1
5439 _ACEOF
5443 ac_ext=cc
5444 ac_cpp='$CXXCPP $CPPFLAGS'
5445 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5446 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5447 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5449 echo "$as_me:$LINENO: checking whether ANSI array delete syntax supported" >&5
5450 echo $ECHO_N "checking whether ANSI array delete syntax supported... $ECHO_C" >&6
5451 cat >conftest.$ac_ext <<_ACEOF
5452 #line $LINENO "configure"
5453 #include "confdefs.h"
5455 #ifdef F77_DUMMY_MAIN
5456 # ifdef __cplusplus
5457 extern "C"
5458 # endif
5459 int F77_DUMMY_MAIN() { return 1; }
5460 #endif
5462 main ()
5464 char *p = new char[5]; delete [] p;
5466 return 0;
5468 _ACEOF
5469 rm -f conftest.$ac_objext
5470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5471 (eval $ac_compile) 2>&5
5472 ac_status=$?
5473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5474 (exit $ac_status); } &&
5475 { ac_try='test -s conftest.$ac_objext'
5476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5477 (eval $ac_try) 2>&5
5478 ac_status=$?
5479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5480 (exit $ac_status); }; }; then
5481 echo "$as_me:$LINENO: result: yes" >&5
5482 echo "${ECHO_T}yes" >&6
5483 else
5484 echo "$as_me: failed program was:" >&5
5485 cat conftest.$ac_ext >&5
5486 echo "$as_me:$LINENO: result: no" >&5
5487 echo "${ECHO_T}no" >&6;
5488 cat >>confdefs.h <<\_ACEOF
5489 #define ARRAY_DELETE_NEEDS_SIZE 1
5490 _ACEOF
5493 rm -f conftest.$ac_objext conftest.$ac_ext
5494 ac_ext=c
5495 ac_cpp='$CPP $CPPFLAGS'
5496 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5497 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5498 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5500 ac_ext=cc
5501 ac_cpp='$CXXCPP $CPPFLAGS'
5502 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5503 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5504 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5506 echo "$as_me:$LINENO: checking traditional preprocessor" >&5
5507 echo $ECHO_N "checking traditional preprocessor... $ECHO_C" >&6
5508 cat >conftest.$ac_ext <<_ACEOF
5509 #line $LINENO "configure"
5510 #include "confdefs.h"
5511 #define name2(a,b) a/**/b
5512 #ifdef F77_DUMMY_MAIN
5513 # ifdef __cplusplus
5514 extern "C"
5515 # endif
5516 int F77_DUMMY_MAIN() { return 1; }
5517 #endif
5519 main ()
5521 int name2(foo,bar);
5523 return 0;
5525 _ACEOF
5526 rm -f conftest.$ac_objext
5527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5528 (eval $ac_compile) 2>&5
5529 ac_status=$?
5530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5531 (exit $ac_status); } &&
5532 { ac_try='test -s conftest.$ac_objext'
5533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5534 (eval $ac_try) 2>&5
5535 ac_status=$?
5536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5537 (exit $ac_status); }; }; then
5538 echo "$as_me:$LINENO: result: yes" >&5
5539 echo "${ECHO_T}yes" >&6;
5540 cat >>confdefs.h <<\_ACEOF
5541 #define TRADITIONAL_CPP 1
5542 _ACEOF
5544 else
5545 echo "$as_me: failed program was:" >&5
5546 cat conftest.$ac_ext >&5
5547 echo "$as_me:$LINENO: result: no" >&5
5548 echo "${ECHO_T}no" >&6
5550 rm -f conftest.$ac_objext conftest.$ac_ext
5551 ac_ext=c
5552 ac_cpp='$CPP $CPPFLAGS'
5553 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5554 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5555 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5557 echo "$as_me:$LINENO: checking w_coredump" >&5
5558 echo $ECHO_N "checking w_coredump... $ECHO_C" >&6
5559 if test "$cross_compiling" = yes; then
5560 echo "$as_me:$LINENO: result: no" >&5
5561 echo "${ECHO_T}no" >&6
5562 else
5563 cat >conftest.$ac_ext <<_ACEOF
5564 #line $LINENO "configure"
5565 #include "confdefs.h"
5566 #include <sys/types.h>
5567 #include <sys/wait.h>
5568 main()
5570 #ifdef WCOREFLAG
5571 exit(1);
5572 #else
5573 int i = 0;
5574 ((union wait *)&i)->w_coredump = 1;
5575 exit(i != 0200);
5576 #endif
5578 _ACEOF
5579 rm -f conftest$ac_exeext
5580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5581 (eval $ac_link) 2>&5
5582 ac_status=$?
5583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5584 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5586 (eval $ac_try) 2>&5
5587 ac_status=$?
5588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5589 (exit $ac_status); }; }; then
5590 echo "$as_me:$LINENO: result: yes" >&5
5591 echo "${ECHO_T}yes" >&6;
5592 cat >>confdefs.h <<\_ACEOF
5593 #define WCOREFLAG 0200
5594 _ACEOF
5596 else
5597 echo "$as_me: program exited with status $ac_status" >&5
5598 echo "$as_me: failed program was:" >&5
5599 cat conftest.$ac_ext >&5
5600 ( exit $ac_status )
5601 echo "$as_me:$LINENO: result: no" >&5
5602 echo "${ECHO_T}no" >&6
5604 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5606 echo "$as_me:$LINENO: checking default value for grops -b option" >&5
5607 echo $ECHO_N "checking default value for grops -b option... $ECHO_C" >&6
5608 test -n "${BROKEN_SPOOLER_FLAGS}" || BROKEN_SPOOLER_FLAGS=7
5609 echo "$as_me:$LINENO: result: $BROKEN_SPOOLER_FLAGS" >&5
5610 echo "${ECHO_T}$BROKEN_SPOOLER_FLAGS" >&6
5612 echo "$as_me:$LINENO: checking default paper size" >&5
5613 echo $ECHO_N "checking default paper size... $ECHO_C" >&6
5614 groff_prefix=$prefix
5615 test "x$prefix" = xNONE && groff_prefix=$ac_default_prefix
5616 if test -z "$PAGE"; then
5617 descfile=
5618 if test -r $groff_prefix/share/groff/font/devps/DESC; then
5619 descfile=$groff_prefix/share/groff/font/devps/DESC
5620 elif test -r $groff_prefix/lib/groff/font/devps/DESC; then
5621 descfile=$groff_prefix/lib/groff/font/devps/DESC
5622 else
5623 for f in $groff_prefix/share/groff/*/font/devps/DESC; do
5624 if test -r $f; then
5625 descfile=$f
5626 break
5628 done
5630 if test -n "$descfile"; then
5631 if grep '^paperlength[ ]\+841890' $descfile
5632 >/dev/null 2>&1; then
5633 PAGE=A4
5634 elif grep '^papersize[ ]\+[aA]4' $descfile \
5635 >/dev/null 2>&1; then
5636 PAGE=A4
5640 if test -z "$PAGE"; then
5641 dom=`awk '($1 == "dom" || $1 == "search") { print $2; exit}' \
5642 /etc/resolv.conf 2>/dev/null`
5643 if test -z "$dom"; then
5644 dom=`(domainname) 2>/dev/null | tr -d '+'`
5645 if test -z "$dom" \
5646 || test "$dom" = '(none)'; then
5647 dom=`(hostname) 2>/dev/null | grep '\.'`
5650 # If the top-level domain is two letters and it's not `us' or `ca'
5651 # then they probably use A4 paper.
5652 case "$dom" in
5653 *.[Uu][Ss]|*.[Cc][Aa]) ;;
5654 *.[A-Za-z][A-Za-z]) PAGE=A4 ;;
5655 esac
5657 test -n "$PAGE" || PAGE=letter
5658 if test "x$PAGE" = "xA4"; then
5660 cat >>confdefs.h <<\_ACEOF
5661 #define PAGEA4 1
5662 _ACEOF
5665 echo "$as_me:$LINENO: result: $PAGE" >&5
5666 echo "${ECHO_T}$PAGE" >&6
5668 echo "$as_me:$LINENO: checking for existing troff installation" >&5
5669 echo $ECHO_N "checking for existing troff installation... $ECHO_C" >&6
5670 if test "x`(echo .tm '|n(.g' | tr '|' '\\\\' | troff -z -i 2>&1) 2>/dev/null`" = x0; then
5671 echo "$as_me:$LINENO: result: yes" >&5
5672 echo "${ECHO_T}yes" >&6
5674 else
5675 echo "$as_me:$LINENO: result: no" >&5
5676 echo "${ECHO_T}no" >&6
5680 echo "$as_me:$LINENO: checking for prefix of system macro packages" >&5
5681 echo $ECHO_N "checking for prefix of system macro packages... $ECHO_C" >&6
5682 sys_tmac_prefix=
5683 sys_tmac_file_prefix=
5684 for d in /usr/share/lib/tmac /usr/lib/tmac; do
5685 for t in "" tmac.; do
5686 for m in an s m; do
5687 f=$d/$t$m
5688 if test -z "$sys_tmac_prefix" \
5689 && test -f $f \
5690 && grep '^\.if' $f >/dev/null 2>&1; then
5691 sys_tmac_prefix=$d/$t
5692 sys_tmac_file_prefix=$t
5694 done
5695 done
5696 done
5697 echo "$as_me:$LINENO: result: $sys_tmac_prefix" >&5
5698 echo "${ECHO_T}$sys_tmac_prefix" >&6
5700 tmac_wrap=
5701 echo "$as_me:$LINENO: checking which system macro packages should be made available" >&5
5702 echo $ECHO_N "checking which system macro packages should be made available... $ECHO_C" >&6
5703 if test "x$sys_tmac_file_prefix" = "xtmac."; then
5704 for f in $sys_tmac_prefix*; do
5705 suff=`echo $f | sed -e "s;$sys_tmac_prefix;;"`
5706 case "$suff" in
5707 e) ;;
5709 grep "Copyright.*Free Software Foundation" $f >/dev/null \
5710 || tmac_wrap="$tmac_wrap $suff" ;;
5711 esac
5712 done
5713 elif test -n "$sys_tmac_prefix"; then
5714 files=`echo $sys_tmac_prefix*`
5715 grep "\\.so" $files >conftest.sol
5716 for f in $files; do
5717 case "$f" in
5718 ${sys_tmac_prefix}e) ;;
5719 *.me) ;;
5720 */ms.*) ;;
5722 b=`basename $f`
5723 if grep "\\.so.*/$b\$" conftest.sol >/dev/null \
5724 || grep -l "Copyright.*Free Software Foundation" $f >/dev/null; then
5726 else
5727 suff=`echo $f | sed -e "s;$sys_tmac_prefix;;"`
5728 case "$suff" in
5729 tmac.*) ;;
5730 *) tmac_wrap="$tmac_wrap $suff" ;;
5731 esac
5733 esac
5734 done
5735 rm -f conftest.sol
5737 echo "$as_me:$LINENO: result: $tmac_wrap" >&5
5738 echo "${ECHO_T}$tmac_wrap" >&6
5740 make_html=html
5741 make_install_html=install_html
5742 # Extract the first word of "pnmcut", so it can be a program name with args.
5743 set dummy pnmcut; ac_word=$2
5744 echo "$as_me:$LINENO: checking for $ac_word" >&5
5745 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5746 if test "${ac_cv_prog_pnmcut+set}" = set; then
5747 echo $ECHO_N "(cached) $ECHO_C" >&6
5748 else
5749 if test -n "$pnmcut"; then
5750 ac_cv_prog_pnmcut="$pnmcut" # Let the user override the test.
5751 else
5752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5753 for as_dir in $PATH
5755 IFS=$as_save_IFS
5756 test -z "$as_dir" && as_dir=.
5757 for ac_exec_ext in '' $ac_executable_extensions; do
5758 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5759 ac_cv_prog_pnmcut="found"
5760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5761 break 2
5763 done
5764 done
5766 test -z "$ac_cv_prog_pnmcut" && ac_cv_prog_pnmcut="missing"
5769 pnmcut=$ac_cv_prog_pnmcut
5770 if test -n "$pnmcut"; then
5771 echo "$as_me:$LINENO: result: $pnmcut" >&5
5772 echo "${ECHO_T}$pnmcut" >&6
5773 else
5774 echo "$as_me:$LINENO: result: no" >&5
5775 echo "${ECHO_T}no" >&6
5778 # Extract the first word of "pnmcrop", so it can be a program name with args.
5779 set dummy pnmcrop; ac_word=$2
5780 echo "$as_me:$LINENO: checking for $ac_word" >&5
5781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5782 if test "${ac_cv_prog_pnmcrop+set}" = set; then
5783 echo $ECHO_N "(cached) $ECHO_C" >&6
5784 else
5785 if test -n "$pnmcrop"; then
5786 ac_cv_prog_pnmcrop="$pnmcrop" # Let the user override the test.
5787 else
5788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5789 for as_dir in $PATH
5791 IFS=$as_save_IFS
5792 test -z "$as_dir" && as_dir=.
5793 for ac_exec_ext in '' $ac_executable_extensions; do
5794 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5795 ac_cv_prog_pnmcrop="found"
5796 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5797 break 2
5799 done
5800 done
5802 test -z "$ac_cv_prog_pnmcrop" && ac_cv_prog_pnmcrop="missing"
5805 pnmcrop=$ac_cv_prog_pnmcrop
5806 if test -n "$pnmcrop"; then
5807 echo "$as_me:$LINENO: result: $pnmcrop" >&5
5808 echo "${ECHO_T}$pnmcrop" >&6
5809 else
5810 echo "$as_me:$LINENO: result: no" >&5
5811 echo "${ECHO_T}no" >&6
5814 # Extract the first word of "pnmtopng", so it can be a program name with args.
5815 set dummy pnmtopng; ac_word=$2
5816 echo "$as_me:$LINENO: checking for $ac_word" >&5
5817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5818 if test "${ac_cv_prog_pnmtopng+set}" = set; then
5819 echo $ECHO_N "(cached) $ECHO_C" >&6
5820 else
5821 if test -n "$pnmtopng"; then
5822 ac_cv_prog_pnmtopng="$pnmtopng" # Let the user override the test.
5823 else
5824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5825 for as_dir in $PATH
5827 IFS=$as_save_IFS
5828 test -z "$as_dir" && as_dir=.
5829 for ac_exec_ext in '' $ac_executable_extensions; do
5830 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5831 ac_cv_prog_pnmtopng="found"
5832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5833 break 2
5835 done
5836 done
5838 test -z "$ac_cv_prog_pnmtopng" && ac_cv_prog_pnmtopng="missing"
5841 pnmtopng=$ac_cv_prog_pnmtopng
5842 if test -n "$pnmtopng"; then
5843 echo "$as_me:$LINENO: result: $pnmtopng" >&5
5844 echo "${ECHO_T}$pnmtopng" >&6
5845 else
5846 echo "$as_me:$LINENO: result: no" >&5
5847 echo "${ECHO_T}no" >&6
5850 # Extract the first word of "gs gsos2", so it can be a program name with args.
5851 set dummy gs gsos2; ac_word=$2
5852 echo "$as_me:$LINENO: checking for $ac_word" >&5
5853 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5854 if test "${ac_cv_prog_gs+set}" = set; then
5855 echo $ECHO_N "(cached) $ECHO_C" >&6
5856 else
5857 if test -n "$gs"; then
5858 ac_cv_prog_gs="$gs" # Let the user override the test.
5859 else
5860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5861 for as_dir in $PATH
5863 IFS=$as_save_IFS
5864 test -z "$as_dir" && as_dir=.
5865 for ac_exec_ext in '' $ac_executable_extensions; do
5866 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5867 ac_cv_prog_gs="found"
5868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5869 break 2
5871 done
5872 done
5874 test -z "$ac_cv_prog_gs" && ac_cv_prog_gs="missing"
5877 gs=$ac_cv_prog_gs
5878 if test -n "$gs"; then
5879 echo "$as_me:$LINENO: result: $gs" >&5
5880 echo "${ECHO_T}$gs" >&6
5881 else
5882 echo "$as_me:$LINENO: result: no" >&5
5883 echo "${ECHO_T}no" >&6
5886 # Extract the first word of "psselect", so it can be a program name with args.
5887 set dummy psselect; ac_word=$2
5888 echo "$as_me:$LINENO: checking for $ac_word" >&5
5889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5890 if test "${ac_cv_prog_psselect+set}" = set; then
5891 echo $ECHO_N "(cached) $ECHO_C" >&6
5892 else
5893 if test -n "$psselect"; then
5894 ac_cv_prog_psselect="$psselect" # Let the user override the test.
5895 else
5896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5897 for as_dir in $PATH
5899 IFS=$as_save_IFS
5900 test -z "$as_dir" && as_dir=.
5901 for ac_exec_ext in '' $ac_executable_extensions; do
5902 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5903 ac_cv_prog_psselect="found"
5904 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5905 break 2
5907 done
5908 done
5910 test -z "$ac_cv_prog_psselect" && ac_cv_prog_psselect="missing"
5913 psselect=$ac_cv_prog_psselect
5914 if test -n "$psselect"; then
5915 echo "$as_me:$LINENO: result: $psselect" >&5
5916 echo "${ECHO_T}$psselect" >&6
5917 else
5918 echo "$as_me:$LINENO: result: no" >&5
5919 echo "${ECHO_T}no" >&6
5922 case "x$pnmcut$pnmcrop$pnmtopng$gs$psselect" in
5923 *missing*)
5924 make_html=
5925 make_install_html=
5926 { echo "$as_me:$LINENO: WARNING:
5928 Since one or more of the above five programs can't be found in the path,
5929 the HTML backend of groff (grohtml) won't work properly. Consequently,
5930 no documentation in HTML format is built and installed.
5931 " >&5
5932 echo "$as_me: WARNING:
5934 Since one or more of the above five programs can't be found in the path,
5935 the HTML backend of groff (grohtml) won't work properly. Consequently,
5936 no documentation in HTML format is built and installed.
5937 " >&2;} ;;
5938 esac
5941 ac_config_files="$ac_config_files stamp-h"
5943 ac_config_files="$ac_config_files Makefile doc/Makefile src/xditview/Imakefile"
5945 cat >confcache <<\_ACEOF
5946 # This file is a shell script that caches the results of configure
5947 # tests run on this system so they can be shared between configure
5948 # scripts and configure runs, see configure's option --config-cache.
5949 # It is not useful on other systems. If it contains results you don't
5950 # want to keep, you may remove or edit it.
5952 # config.status only pays attention to the cache file if you give it
5953 # the --recheck option to rerun configure.
5955 # `ac_cv_env_foo' variables (set or unset) will be overriden when
5956 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5957 # following values.
5959 _ACEOF
5961 # The following way of writing the cache mishandles newlines in values,
5962 # but we know of no workaround that is simple, portable, and efficient.
5963 # So, don't put newlines in cache variables' values.
5964 # Ultrix sh set writes to stderr and can't be redirected directly,
5965 # and sets the high bit in the cache file unless we assign to the vars.
5967 (set) 2>&1 |
5968 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5969 *ac_space=\ *)
5970 # `set' does not quote correctly, so add quotes (double-quote
5971 # substitution turns \\\\ into \\, and sed turns \\ into \).
5972 sed -n \
5973 "s/'/'\\\\''/g;
5974 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5977 # `set' quotes correctly as required by POSIX, so do not add quotes.
5978 sed -n \
5979 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5981 esac;
5983 sed '
5984 t clear
5985 : clear
5986 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5987 t end
5988 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5989 : end' >>confcache
5990 if cmp -s $cache_file confcache; then :; else
5991 if test -w $cache_file; then
5992 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5993 cat confcache >$cache_file
5994 else
5995 echo "not updating unwritable cache $cache_file"
5998 rm -f confcache
6000 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6001 # Let make expand exec_prefix.
6002 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6004 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6005 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6006 # trailing colons and then remove the whole line if VPATH becomes empty
6007 # (actually we leave an empty line to preserve line numbers).
6008 if test "x$srcdir" = x.; then
6009 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6010 s/:*\$(srcdir):*/:/;
6011 s/:*\${srcdir}:*/:/;
6012 s/:*@srcdir@:*/:/;
6013 s/^\([^=]*=[ ]*\):*/\1/;
6014 s/:*$//;
6015 s/^[^=]*=[ ]*$//;
6019 DEFS=-DHAVE_CONFIG_H
6022 : ${CONFIG_STATUS=./config.status}
6023 ac_clean_files_save=$ac_clean_files
6024 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6025 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6026 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6027 cat >$CONFIG_STATUS <<_ACEOF
6028 #! $SHELL
6029 # Generated by $as_me.
6030 # Run this file to recreate the current configuration.
6031 # Compiler output produced by configure, useful for debugging
6032 # configure, is in config.log if it exists.
6034 debug=false
6035 SHELL=\${CONFIG_SHELL-$SHELL}
6036 _ACEOF
6038 cat >>$CONFIG_STATUS <<\_ACEOF
6040 ## --------------------- ##
6041 ## M4sh Initialization. ##
6042 ## --------------------- ##
6044 # Be Bourne compatible
6045 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6046 emulate sh
6047 NULLCMD=:
6048 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6049 set -o posix
6052 # NLS nuisances.
6053 # Support unset when possible.
6054 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
6055 as_unset=unset
6056 else
6057 as_unset=false
6060 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
6061 { $as_unset LANG || test "${LANG+set}" != set; } ||
6062 { LANG=C; export LANG; }
6063 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
6064 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
6065 { LC_ALL=C; export LC_ALL; }
6066 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
6067 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
6068 { LC_TIME=C; export LC_TIME; }
6069 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
6070 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
6071 { LC_CTYPE=C; export LC_CTYPE; }
6072 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
6073 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
6074 { LANGUAGE=C; export LANGUAGE; }
6075 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
6076 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
6077 { LC_COLLATE=C; export LC_COLLATE; }
6078 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
6079 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
6080 { LC_NUMERIC=C; export LC_NUMERIC; }
6081 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
6082 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
6083 { LC_MESSAGES=C; export LC_MESSAGES; }
6086 # Name of the executable.
6087 as_me=`(basename "$0") 2>/dev/null ||
6088 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6089 X"$0" : 'X\(//\)$' \| \
6090 X"$0" : 'X\(/\)$' \| \
6091 . : '\(.\)' 2>/dev/null ||
6092 echo X/"$0" |
6093 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6094 /^X\/\(\/\/\)$/{ s//\1/; q; }
6095 /^X\/\(\/\).*/{ s//\1/; q; }
6096 s/.*/./; q'`
6098 # PATH needs CR, and LINENO needs CR and PATH.
6099 # Avoid depending upon Character Ranges.
6100 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6101 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6102 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6103 as_cr_digits='0123456789'
6104 as_cr_alnum=$as_cr_Letters$as_cr_digits
6106 # The user is always right.
6107 if test "${PATH_SEPARATOR+set}" != set; then
6108 echo "#! /bin/sh" >conftest.sh
6109 echo "exit 0" >>conftest.sh
6110 chmod +x conftest.sh
6111 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
6112 PATH_SEPARATOR=';'
6113 else
6114 PATH_SEPARATOR=:
6116 rm -f conftest.sh
6120 as_lineno_1=$LINENO
6121 as_lineno_2=$LINENO
6122 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6123 test "x$as_lineno_1" != "x$as_lineno_2" &&
6124 test "x$as_lineno_3" = "x$as_lineno_2" || {
6125 # Find who we are. Look in the path if we contain no path at all
6126 # relative or not.
6127 case $0 in
6128 *[\\/]* ) as_myself=$0 ;;
6129 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6130 for as_dir in $PATH
6132 IFS=$as_save_IFS
6133 test -z "$as_dir" && as_dir=.
6134 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6135 done
6138 esac
6139 # We did not find ourselves, most probably we were run as `sh COMMAND'
6140 # in which case we are not to be found in the path.
6141 if test "x$as_myself" = x; then
6142 as_myself=$0
6144 if test ! -f "$as_myself"; then
6145 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6146 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6147 { (exit 1); exit 1; }; }
6149 case $CONFIG_SHELL in
6151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6152 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6154 IFS=$as_save_IFS
6155 test -z "$as_dir" && as_dir=.
6156 for as_base in sh bash ksh sh5; do
6157 case $as_dir in
6159 if ("$as_dir/$as_base" -c '
6160 as_lineno_1=$LINENO
6161 as_lineno_2=$LINENO
6162 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6163 test "x$as_lineno_1" != "x$as_lineno_2" &&
6164 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
6165 CONFIG_SHELL=$as_dir/$as_base
6166 export CONFIG_SHELL
6167 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6168 fi;;
6169 esac
6170 done
6171 done
6173 esac
6175 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6176 # uniformly replaced by the line number. The first 'sed' inserts a
6177 # line-number line before each line; the second 'sed' does the real
6178 # work. The second script uses 'N' to pair each line-number line
6179 # with the numbered line, and appends trailing '-' during
6180 # substitution so that $LINENO is not a special case at line end.
6181 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6182 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
6183 sed '=' <$as_myself |
6184 sed '
6186 s,$,-,
6187 : loop
6188 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6189 t loop
6190 s,-$,,
6191 s,^['$as_cr_digits']*\n,,
6192 ' >$as_me.lineno &&
6193 chmod +x $as_me.lineno ||
6194 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6195 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6196 { (exit 1); exit 1; }; }
6198 # Don't try to exec as it changes $[0], causing all sort of problems
6199 # (the dirname of $[0] is not the place where we might find the
6200 # original and so on. Autoconf is especially sensible to this).
6201 . ./$as_me.lineno
6202 # Exit status is that of the last command.
6203 exit
6207 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6208 *c*,-n*) ECHO_N= ECHO_C='
6209 ' ECHO_T=' ' ;;
6210 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6211 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
6212 esac
6214 if expr a : '\(a\)' >/dev/null 2>&1; then
6215 as_expr=expr
6216 else
6217 as_expr=false
6220 rm -f conf$$ conf$$.exe conf$$.file
6221 echo >conf$$.file
6222 if ln -s conf$$.file conf$$ 2>/dev/null; then
6223 # We could just check for DJGPP; but this test a) works b) is more generic
6224 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6225 if test -f conf$$.exe; then
6226 # Don't use ln at all; we don't have any links
6227 as_ln_s='cp -p'
6228 else
6229 as_ln_s='ln -s'
6231 elif ln conf$$.file conf$$ 2>/dev/null; then
6232 as_ln_s=ln
6233 else
6234 as_ln_s='cp -p'
6236 rm -f conf$$ conf$$.exe conf$$.file
6238 as_executable_p="test -f"
6240 # Sed expression to map a string onto a valid CPP name.
6241 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
6243 # Sed expression to map a string onto a valid variable name.
6244 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
6247 # IFS
6248 # We need space, tab and new line, in precisely that order.
6249 as_nl='
6251 IFS=" $as_nl"
6253 # CDPATH.
6254 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
6256 exec 6>&1
6258 # Open the log real soon, to keep \$[0] and so on meaningful, and to
6259 # report actual input values of CONFIG_FILES etc. instead of their
6260 # values after options handling. Logging --version etc. is OK.
6261 exec 5>>config.log
6263 echo
6264 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6265 ## Running $as_me. ##
6266 _ASBOX
6267 } >&5
6268 cat >&5 <<_CSEOF
6270 This file was extended by $as_me, which was
6271 generated by GNU Autoconf 2.53. Invocation command line was
6273 CONFIG_FILES = $CONFIG_FILES
6274 CONFIG_HEADERS = $CONFIG_HEADERS
6275 CONFIG_LINKS = $CONFIG_LINKS
6276 CONFIG_COMMANDS = $CONFIG_COMMANDS
6277 $ $0 $@
6279 _CSEOF
6280 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6281 echo >&5
6282 _ACEOF
6284 # Files that config.status was made for.
6285 if test -n "$ac_config_files"; then
6286 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6289 if test -n "$ac_config_headers"; then
6290 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6293 if test -n "$ac_config_links"; then
6294 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6297 if test -n "$ac_config_commands"; then
6298 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6301 cat >>$CONFIG_STATUS <<\_ACEOF
6303 ac_cs_usage="\
6304 \`$as_me' instantiates files from templates according to the
6305 current configuration.
6307 Usage: $0 [OPTIONS] [FILE]...
6309 -h, --help print this help, then exit
6310 -V, --version print version number, then exit
6311 -d, --debug don't remove temporary files
6312 --recheck update $as_me by reconfiguring in the same conditions
6313 --file=FILE[:TEMPLATE]
6314 instantiate the configuration file FILE
6315 --header=FILE[:TEMPLATE]
6316 instantiate the configuration header FILE
6318 Configuration files:
6319 $config_files
6321 Configuration headers:
6322 $config_headers
6324 Report bugs to <bug-autoconf@gnu.org>."
6325 _ACEOF
6327 cat >>$CONFIG_STATUS <<_ACEOF
6328 ac_cs_version="\\
6329 config.status
6330 configured by $0, generated by GNU Autoconf 2.53,
6331 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6333 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6334 Free Software Foundation, Inc.
6335 This config.status script is free software; the Free Software Foundation
6336 gives unlimited permission to copy, distribute and modify it."
6337 srcdir=$srcdir
6338 INSTALL="$INSTALL"
6339 _ACEOF
6341 cat >>$CONFIG_STATUS <<\_ACEOF
6342 # If no file are specified by the user, then we need to provide default
6343 # value. By we need to know if files were specified by the user.
6344 ac_need_defaults=:
6345 while test $# != 0
6347 case $1 in
6348 --*=*)
6349 ac_option=`expr "x$1" : 'x\([^=]*\)='`
6350 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
6351 shift
6352 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
6353 shift
6355 -*);;
6356 *) # This is not an option, so the user has probably given explicit
6357 # arguments.
6358 ac_need_defaults=false;;
6359 esac
6361 case $1 in
6362 # Handling of the options.
6363 _ACEOF
6364 cat >>$CONFIG_STATUS <<_ACEOF
6365 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6366 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
6367 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
6368 _ACEOF
6369 cat >>$CONFIG_STATUS <<\_ACEOF
6370 --version | --vers* | -V )
6371 echo "$ac_cs_version"; exit 0 ;;
6372 --he | --h)
6373 # Conflict between --help and --header
6374 { { echo "$as_me:$LINENO: error: ambiguous option: $1
6375 Try \`$0 --help' for more information." >&5
6376 echo "$as_me: error: ambiguous option: $1
6377 Try \`$0 --help' for more information." >&2;}
6378 { (exit 1); exit 1; }; };;
6379 --help | --hel | -h )
6380 echo "$ac_cs_usage"; exit 0 ;;
6381 --debug | --d* | -d )
6382 debug=: ;;
6383 --file | --fil | --fi | --f )
6384 shift
6385 CONFIG_FILES="$CONFIG_FILES $1"
6386 ac_need_defaults=false;;
6387 --header | --heade | --head | --hea )
6388 shift
6389 CONFIG_HEADERS="$CONFIG_HEADERS $1"
6390 ac_need_defaults=false;;
6392 # This is an error.
6393 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
6394 Try \`$0 --help' for more information." >&5
6395 echo "$as_me: error: unrecognized option: $1
6396 Try \`$0 --help' for more information." >&2;}
6397 { (exit 1); exit 1; }; } ;;
6399 *) ac_config_targets="$ac_config_targets $1" ;;
6401 esac
6402 shift
6403 done
6405 _ACEOF
6411 cat >>$CONFIG_STATUS <<\_ACEOF
6412 for ac_config_target in $ac_config_targets
6414 case "$ac_config_target" in
6415 # Handling of arguments.
6416 "stamp-h" ) CONFIG_FILES="$CONFIG_FILES stamp-h" ;;
6417 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6418 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
6419 "src/xditview/Imakefile" ) CONFIG_FILES="$CONFIG_FILES src/xditview/Imakefile" ;;
6420 "src/include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/config.h:src/include/config.hin" ;;
6421 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6422 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6423 { (exit 1); exit 1; }; };;
6424 esac
6425 done
6427 # If the user did not use the arguments to specify the items to instantiate,
6428 # then the envvar interface is used. Set only those that are not.
6429 # We use the long form for the default assignment because of an extremely
6430 # bizarre bug on SunOS 4.1.3.
6431 if $ac_need_defaults; then
6432 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6433 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6436 # Create a temporary directory, and hook for its removal unless debugging.
6437 $debug ||
6439 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6440 trap '{ (exit 1); exit 1; }' 1 2 13 15
6443 # Create a (secure) tmp directory for tmp files.
6444 : ${TMPDIR=/tmp}
6446 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
6447 test -n "$tmp" && test -d "$tmp"
6448 } ||
6450 tmp=$TMPDIR/cs$$-$RANDOM
6451 (umask 077 && mkdir $tmp)
6452 } ||
6454 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
6455 { (exit 1); exit 1; }
6458 _ACEOF
6460 cat >>$CONFIG_STATUS <<_ACEOF
6463 # CONFIG_FILES section.
6466 # No need to generate the scripts if there are no CONFIG_FILES.
6467 # This happens for instance when ./config.status config.h
6468 if test -n "\$CONFIG_FILES"; then
6469 # Protect against being on the right side of a sed subst in config.status.
6470 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6471 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
6472 s,@SHELL@,$SHELL,;t t
6473 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6474 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6475 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6476 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6477 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6478 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6479 s,@exec_prefix@,$exec_prefix,;t t
6480 s,@prefix@,$prefix,;t t
6481 s,@program_transform_name@,$program_transform_name,;t t
6482 s,@bindir@,$bindir,;t t
6483 s,@sbindir@,$sbindir,;t t
6484 s,@libexecdir@,$libexecdir,;t t
6485 s,@datadir@,$datadir,;t t
6486 s,@sysconfdir@,$sysconfdir,;t t
6487 s,@sharedstatedir@,$sharedstatedir,;t t
6488 s,@localstatedir@,$localstatedir,;t t
6489 s,@libdir@,$libdir,;t t
6490 s,@includedir@,$includedir,;t t
6491 s,@oldincludedir@,$oldincludedir,;t t
6492 s,@infodir@,$infodir,;t t
6493 s,@mandir@,$mandir,;t t
6494 s,@build_alias@,$build_alias,;t t
6495 s,@host_alias@,$host_alias,;t t
6496 s,@target_alias@,$target_alias,;t t
6497 s,@DEFS@,$DEFS,;t t
6498 s,@ECHO_C@,$ECHO_C,;t t
6499 s,@ECHO_N@,$ECHO_N,;t t
6500 s,@ECHO_T@,$ECHO_T,;t t
6501 s,@LIBS@,$LIBS,;t t
6502 s,@groff_top_builddir@,$groff_top_builddir,;t t
6503 s,@CC@,$CC,;t t
6504 s,@CFLAGS@,$CFLAGS,;t t
6505 s,@LDFLAGS@,$LDFLAGS,;t t
6506 s,@CPPFLAGS@,$CPPFLAGS,;t t
6507 s,@ac_ct_CC@,$ac_ct_CC,;t t
6508 s,@EXEEXT@,$EXEEXT,;t t
6509 s,@OBJEXT@,$OBJEXT,;t t
6510 s,@CXX@,$CXX,;t t
6511 s,@CXXFLAGS@,$CXXFLAGS,;t t
6512 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
6513 s,@TTYDEVDIRS@,$TTYDEVDIRS,;t t
6514 s,@OTHERDEVDIRS@,$OTHERDEVDIRS,;t t
6515 s,@LPR@,$LPR,;t t
6516 s,@LP@,$LP,;t t
6517 s,@LPQ@,$LPQ,;t t
6518 s,@PSPRINT@,$PSPRINT,;t t
6519 s,@DVIPRINT@,$DVIPRINT,;t t
6520 s,@PERLPATH@,$PERLPATH,;t t
6521 s,@YACC@,$YACC,;t t
6522 s,@RANLIB@,$RANLIB,;t t
6523 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
6524 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
6525 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
6526 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
6527 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
6528 s,@LN_S@,$LN_S,;t t
6529 s,@SH_SCRIPT_SED_CMD@,$SH_SCRIPT_SED_CMD,;t t
6530 s,@CPP@,$CPP,;t t
6531 s,@LIBM@,$LIBM,;t t
6532 s,@LIBOBJS@,$LIBOBJS,;t t
6533 s,@BROKEN_SPOOLER_FLAGS@,$BROKEN_SPOOLER_FLAGS,;t t
6534 s,@PAGE@,$PAGE,;t t
6535 s,@g@,$g,;t t
6536 s,@sys_tmac_prefix@,$sys_tmac_prefix,;t t
6537 s,@tmac_wrap@,$tmac_wrap,;t t
6538 s,@pnmcut@,$pnmcut,;t t
6539 s,@pnmcrop@,$pnmcrop,;t t
6540 s,@pnmtopng@,$pnmtopng,;t t
6541 s,@gs@,$gs,;t t
6542 s,@psselect@,$psselect,;t t
6543 s,@make_html@,$make_html,;t t
6544 s,@make_install_html@,$make_install_html,;t t
6545 CEOF
6547 _ACEOF
6549 cat >>$CONFIG_STATUS <<\_ACEOF
6550 # Split the substitutions into bite-sized pieces for seds with
6551 # small command number limits, like on Digital OSF/1 and HP-UX.
6552 ac_max_sed_lines=48
6553 ac_sed_frag=1 # Number of current file.
6554 ac_beg=1 # First line for current file.
6555 ac_end=$ac_max_sed_lines # Line after last line for current file.
6556 ac_more_lines=:
6557 ac_sed_cmds=
6558 while $ac_more_lines; do
6559 if test $ac_beg -gt 1; then
6560 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6561 else
6562 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6564 if test ! -s $tmp/subs.frag; then
6565 ac_more_lines=false
6566 else
6567 # The purpose of the label and of the branching condition is to
6568 # speed up the sed processing (if there are no `@' at all, there
6569 # is no need to browse any of the substitutions).
6570 # These are the two extra sed commands mentioned above.
6571 (echo ':t
6572 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
6573 if test -z "$ac_sed_cmds"; then
6574 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
6575 else
6576 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6578 ac_sed_frag=`expr $ac_sed_frag + 1`
6579 ac_beg=$ac_end
6580 ac_end=`expr $ac_end + $ac_max_sed_lines`
6582 done
6583 if test -z "$ac_sed_cmds"; then
6584 ac_sed_cmds=cat
6586 fi # test -n "$CONFIG_FILES"
6588 _ACEOF
6589 cat >>$CONFIG_STATUS <<\_ACEOF
6590 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
6591 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6592 case $ac_file in
6593 - | *:- | *:-:* ) # input from stdin
6594 cat >$tmp/stdin
6595 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6596 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6597 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6598 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6599 * ) ac_file_in=$ac_file.in ;;
6600 esac
6602 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6603 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6604 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6605 X"$ac_file" : 'X\(//\)[^/]' \| \
6606 X"$ac_file" : 'X\(//\)$' \| \
6607 X"$ac_file" : 'X\(/\)' \| \
6608 . : '\(.\)' 2>/dev/null ||
6609 echo X"$ac_file" |
6610 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6611 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6612 /^X\(\/\/\)$/{ s//\1/; q; }
6613 /^X\(\/\).*/{ s//\1/; q; }
6614 s/.*/./; q'`
6615 { case "$ac_dir" in
6616 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
6617 *) as_incr_dir=.;;
6618 esac
6619 as_dummy="$ac_dir"
6620 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
6621 case $as_mkdir_dir in
6622 # Skip DOS drivespec
6623 ?:) as_incr_dir=$as_mkdir_dir ;;
6625 as_incr_dir=$as_incr_dir/$as_mkdir_dir
6626 test -d "$as_incr_dir" ||
6627 mkdir "$as_incr_dir" ||
6628 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
6629 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
6630 { (exit 1); exit 1; }; }
6632 esac
6633 done; }
6635 ac_builddir=.
6637 if test "$ac_dir" != .; then
6638 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6639 # A "../" for each directory in $ac_dir_suffix.
6640 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6641 else
6642 ac_dir_suffix= ac_top_builddir=
6645 case $srcdir in
6646 .) # No --srcdir option. We are building in place.
6647 ac_srcdir=.
6648 if test -z "$ac_top_builddir"; then
6649 ac_top_srcdir=.
6650 else
6651 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6652 fi ;;
6653 [\\/]* | ?:[\\/]* ) # Absolute path.
6654 ac_srcdir=$srcdir$ac_dir_suffix;
6655 ac_top_srcdir=$srcdir ;;
6656 *) # Relative path.
6657 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6658 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6659 esac
6660 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
6661 # absolute.
6662 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
6663 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
6664 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
6665 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
6668 case $INSTALL in
6669 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6670 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
6671 esac
6673 if test x"$ac_file" != x-; then
6674 { echo "$as_me:$LINENO: creating $ac_file" >&5
6675 echo "$as_me: creating $ac_file" >&6;}
6676 rm -f "$ac_file"
6678 # Let's still pretend it is `configure' which instantiates (i.e., don't
6679 # use $as_me), people would be surprised to read:
6680 # /* config.h. Generated by config.status. */
6681 if test x"$ac_file" = x-; then
6682 configure_input=
6683 else
6684 configure_input="$ac_file. "
6686 configure_input=$configure_input"Generated from `echo $ac_file_in |
6687 sed 's,.*/,,'` by configure."
6689 # First look for the input files in the build tree, otherwise in the
6690 # src tree.
6691 ac_file_inputs=`IFS=:
6692 for f in $ac_file_in; do
6693 case $f in
6694 -) echo $tmp/stdin ;;
6695 [\\/$]*)
6696 # Absolute (can't be DOS-style, as IFS=:)
6697 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6698 echo "$as_me: error: cannot find input file: $f" >&2;}
6699 { (exit 1); exit 1; }; }
6700 echo $f;;
6701 *) # Relative
6702 if test -f "$f"; then
6703 # Build tree
6704 echo $f
6705 elif test -f "$srcdir/$f"; then
6706 # Source tree
6707 echo $srcdir/$f
6708 else
6709 # /dev/null tree
6710 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6711 echo "$as_me: error: cannot find input file: $f" >&2;}
6712 { (exit 1); exit 1; }; }
6713 fi;;
6714 esac
6715 done` || { (exit 1); exit 1; }
6716 _ACEOF
6717 cat >>$CONFIG_STATUS <<_ACEOF
6718 sed "$ac_vpsub
6719 $extrasub
6720 _ACEOF
6721 cat >>$CONFIG_STATUS <<\_ACEOF
6723 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6724 s,@configure_input@,$configure_input,;t t
6725 s,@srcdir@,$ac_srcdir,;t t
6726 s,@abs_srcdir@,$ac_abs_srcdir,;t t
6727 s,@top_srcdir@,$ac_top_srcdir,;t t
6728 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
6729 s,@builddir@,$ac_builddir,;t t
6730 s,@abs_builddir@,$ac_abs_builddir,;t t
6731 s,@top_builddir@,$ac_top_builddir,;t t
6732 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
6733 s,@INSTALL@,$ac_INSTALL,;t t
6734 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6735 rm -f $tmp/stdin
6736 if test x"$ac_file" != x-; then
6737 mv $tmp/out $ac_file
6738 else
6739 cat $tmp/out
6740 rm -f $tmp/out
6743 # Run the commands associated with the file.
6744 case $ac_file in
6745 stamp-h ) echo timestamp > stamp-h ;;
6746 esac
6747 done
6748 _ACEOF
6749 cat >>$CONFIG_STATUS <<\_ACEOF
6752 # CONFIG_HEADER section.
6755 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6756 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6758 # ac_d sets the value in "#define NAME VALUE" lines.
6759 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6760 ac_dB='[ ].*$,\1#\2'
6761 ac_dC=' '
6762 ac_dD=',;t'
6763 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6764 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6765 ac_uB='$,\1#\2define\3'
6766 ac_uC=' '
6767 ac_uD=',;t'
6769 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
6770 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6771 case $ac_file in
6772 - | *:- | *:-:* ) # input from stdin
6773 cat >$tmp/stdin
6774 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6775 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6776 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6777 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6778 * ) ac_file_in=$ac_file.in ;;
6779 esac
6781 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
6782 echo "$as_me: creating $ac_file" >&6;}
6784 # First look for the input files in the build tree, otherwise in the
6785 # src tree.
6786 ac_file_inputs=`IFS=:
6787 for f in $ac_file_in; do
6788 case $f in
6789 -) echo $tmp/stdin ;;
6790 [\\/$]*)
6791 # Absolute (can't be DOS-style, as IFS=:)
6792 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6793 echo "$as_me: error: cannot find input file: $f" >&2;}
6794 { (exit 1); exit 1; }; }
6795 echo $f;;
6796 *) # Relative
6797 if test -f "$f"; then
6798 # Build tree
6799 echo $f
6800 elif test -f "$srcdir/$f"; then
6801 # Source tree
6802 echo $srcdir/$f
6803 else
6804 # /dev/null tree
6805 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6806 echo "$as_me: error: cannot find input file: $f" >&2;}
6807 { (exit 1); exit 1; }; }
6808 fi;;
6809 esac
6810 done` || { (exit 1); exit 1; }
6811 # Remove the trailing spaces.
6812 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
6814 _ACEOF
6816 # Transform confdefs.h into two sed scripts, `conftest.defines' and
6817 # `conftest.undefs', that substitutes the proper values into
6818 # config.h.in to produce config.h. The first handles `#define'
6819 # templates, and the second `#undef' templates.
6820 # And first: Protect against being on the right side of a sed subst in
6821 # config.status. Protect against being in an unquoted here document
6822 # in config.status.
6823 rm -f conftest.defines conftest.undefs
6824 # Using a here document instead of a string reduces the quoting nightmare.
6825 # Putting comments in sed scripts is not portable.
6827 # `end' is used to avoid that the second main sed command (meant for
6828 # 0-ary CPP macros) applies to n-ary macro definitions.
6829 # See the Autoconf documentation for `clear'.
6830 cat >confdef2sed.sed <<\_ACEOF
6831 s/[\\&,]/\\&/g
6832 s,[\\$`],\\&,g
6833 t clear
6834 : clear
6835 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
6836 t end
6837 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
6838 : end
6839 _ACEOF
6840 # If some macros were called several times there might be several times
6841 # the same #defines, which is useless. Nevertheless, we may not want to
6842 # sort them, since we want the *last* AC-DEFINE to be honored.
6843 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
6844 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
6845 rm -f confdef2sed.sed
6847 # This sed command replaces #undef with comments. This is necessary, for
6848 # example, in the case of _POSIX_SOURCE, which is predefined and required
6849 # on some systems where configure will not decide to define it.
6850 cat >>conftest.undefs <<\_ACEOF
6851 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
6852 _ACEOF
6854 # Break up conftest.defines because some shells have a limit on the size
6855 # of here documents, and old seds have small limits too (100 cmds).
6856 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
6857 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
6858 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
6859 echo ' :' >>$CONFIG_STATUS
6860 rm -f conftest.tail
6861 while grep . conftest.defines >/dev/null
6863 # Write a limited-size here document to $tmp/defines.sed.
6864 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
6865 # Speed up: don't consider the non `#define' lines.
6866 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
6867 # Work around the forget-to-reset-the-flag bug.
6868 echo 't clr' >>$CONFIG_STATUS
6869 echo ': clr' >>$CONFIG_STATUS
6870 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
6871 echo 'CEOF
6872 sed -f $tmp/defines.sed $tmp/in >$tmp/out
6873 rm -f $tmp/in
6874 mv $tmp/out $tmp/in
6875 ' >>$CONFIG_STATUS
6876 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
6877 rm -f conftest.defines
6878 mv conftest.tail conftest.defines
6879 done
6880 rm -f conftest.defines
6881 echo ' fi # egrep' >>$CONFIG_STATUS
6882 echo >>$CONFIG_STATUS
6884 # Break up conftest.undefs because some shells have a limit on the size
6885 # of here documents, and old seds have small limits too (100 cmds).
6886 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
6887 rm -f conftest.tail
6888 while grep . conftest.undefs >/dev/null
6890 # Write a limited-size here document to $tmp/undefs.sed.
6891 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
6892 # Speed up: don't consider the non `#undef'
6893 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
6894 # Work around the forget-to-reset-the-flag bug.
6895 echo 't clr' >>$CONFIG_STATUS
6896 echo ': clr' >>$CONFIG_STATUS
6897 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
6898 echo 'CEOF
6899 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
6900 rm -f $tmp/in
6901 mv $tmp/out $tmp/in
6902 ' >>$CONFIG_STATUS
6903 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
6904 rm -f conftest.undefs
6905 mv conftest.tail conftest.undefs
6906 done
6907 rm -f conftest.undefs
6909 cat >>$CONFIG_STATUS <<\_ACEOF
6910 # Let's still pretend it is `configure' which instantiates (i.e., don't
6911 # use $as_me), people would be surprised to read:
6912 # /* config.h. Generated by config.status. */
6913 if test x"$ac_file" = x-; then
6914 echo "/* Generated by configure. */" >$tmp/config.h
6915 else
6916 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
6918 cat $tmp/in >>$tmp/config.h
6919 rm -f $tmp/in
6920 if test x"$ac_file" != x-; then
6921 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
6922 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
6923 echo "$as_me: $ac_file is unchanged" >&6;}
6924 else
6925 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6926 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6927 X"$ac_file" : 'X\(//\)[^/]' \| \
6928 X"$ac_file" : 'X\(//\)$' \| \
6929 X"$ac_file" : 'X\(/\)' \| \
6930 . : '\(.\)' 2>/dev/null ||
6931 echo X"$ac_file" |
6932 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6933 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6934 /^X\(\/\/\)$/{ s//\1/; q; }
6935 /^X\(\/\).*/{ s//\1/; q; }
6936 s/.*/./; q'`
6937 { case "$ac_dir" in
6938 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
6939 *) as_incr_dir=.;;
6940 esac
6941 as_dummy="$ac_dir"
6942 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
6943 case $as_mkdir_dir in
6944 # Skip DOS drivespec
6945 ?:) as_incr_dir=$as_mkdir_dir ;;
6947 as_incr_dir=$as_incr_dir/$as_mkdir_dir
6948 test -d "$as_incr_dir" ||
6949 mkdir "$as_incr_dir" ||
6950 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
6951 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
6952 { (exit 1); exit 1; }; }
6954 esac
6955 done; }
6957 rm -f $ac_file
6958 mv $tmp/config.h $ac_file
6960 else
6961 cat $tmp/config.h
6962 rm -f $tmp/config.h
6964 done
6965 _ACEOF
6967 cat >>$CONFIG_STATUS <<\_ACEOF
6969 { (exit 0); exit 0; }
6970 _ACEOF
6971 chmod +x $CONFIG_STATUS
6972 ac_clean_files=$ac_clean_files_save
6975 # configure is writing to config.log, and then calls config.status.
6976 # config.status does its own redirection, appending to config.log.
6977 # Unfortunately, on DOS this fails, as config.log is still kept open
6978 # by configure, so config.status won't be able to write to it; its
6979 # output is simply discarded. So we exec the FD to /dev/null,
6980 # effectively closing config.log, so it can be properly (re)opened and
6981 # appended to by config.status. When coming back to configure, we
6982 # need to make the FD available again.
6983 if test "$no_create" != yes; then
6984 ac_cs_success=:
6985 exec 5>/dev/null
6986 $SHELL $CONFIG_STATUS || ac_cs_success=false
6987 exec 5>>config.log
6988 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6989 # would make configure fail if this is the last instruction.
6990 $ac_cs_success || { (exit 1); exit 1; }
6993 { echo "$as_me:$LINENO:
6995 Configuration completed.
6997 You can now say \`make' to compile the groff package and \`make install'
6998 to install it afterwards.
7000 If you want to compile xditview, change the directory to \`src/xditview'
7001 and follow the instructions given in the file \`INSTALL'.
7002 " >&5
7003 echo "$as_me:
7005 Configuration completed.
7007 You can now say \`make' to compile the groff package and \`make install'
7008 to install it afterwards.
7010 If you want to compile xditview, change the directory to \`src/xditview'
7011 and follow the instructions given in the file \`INSTALL'.
7012 " >&6;}