* aclocal.m4 (GROFF_PAGE): Don't use `prefix' directly since it
[s-roff.git] / configure
blobda306dff198a1ff1cd47bae984cb8dcf4973fd44
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by Autoconf 2.52.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
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 # Avoid depending upon Character Ranges.
11 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14 as_cr_digits='0123456789'
15 as_cr_alnum=$as_cr_Letters$as_cr_digits
17 # Sed expression to map a string onto a valid variable name.
18 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
20 # Sed expression to map a string onto a valid CPP name.
21 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23 # Be Bourne compatible
24 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25 emulate sh
26 NULLCMD=:
27 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28 set -o posix
31 # Name of the executable.
32 as_me=`echo "$0" |sed 's,.*[\\/],,'`
34 if expr a : '\(a\)' >/dev/null 2>&1; then
35 as_expr=expr
36 else
37 as_expr=false
40 rm -f conf$$ conf$$.exe conf$$.file
41 echo >conf$$.file
42 if ln -s conf$$.file conf$$ 2>/dev/null; then
43 # We could just check for DJGPP; but this test a) works b) is more generic
44 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
45 if test -f conf$$.exe; then
46 # Don't use ln at all; we don't have any links
47 as_ln_s='cp -p'
48 else
49 as_ln_s='ln -s'
51 elif ln conf$$.file conf$$ 2>/dev/null; then
52 as_ln_s=ln
53 else
54 as_ln_s='cp -p'
56 rm -f conf$$ conf$$.exe conf$$.file
58 as_executable_p="test -f"
60 # Support unset when possible.
61 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
62 as_unset=unset
63 else
64 as_unset=false
67 # NLS nuisances.
68 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
69 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
70 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
71 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
72 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
73 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
74 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
75 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
77 # IFS
78 # We need space, tab and new line, in precisely that order.
79 as_nl='
81 IFS=" $as_nl"
83 # CDPATH.
84 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
86 # Name of the host.
87 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
88 # so uname gets run too.
89 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
91 exec 6>&1
94 # Initializations.
96 ac_default_prefix=/usr/local
97 cross_compiling=no
98 subdirs=
99 MFLAGS= MAKEFLAGS=
100 SHELL=${CONFIG_SHELL-/bin/sh}
102 # Maximum number of lines to put in a shell here document.
103 # This variable seems obsolete. It should probably be removed, and
104 # only ac_max_sed_lines should be used.
105 : ${ac_max_here_lines=38}
107 ac_unique_file="src/roff/groff/groff.cc"
108 # Factoring default headers for most tests.
109 ac_includes_default="\
110 #include <stdio.h>
111 #if HAVE_SYS_TYPES_H
112 # include <sys/types.h>
113 #endif
114 #if HAVE_SYS_STAT_H
115 # include <sys/stat.h>
116 #endif
117 #if STDC_HEADERS
118 # include <stdlib.h>
119 # include <stddef.h>
120 #else
121 # if HAVE_STDLIB_H
122 # include <stdlib.h>
123 # endif
124 #endif
125 #if HAVE_STRING_H
126 # if !STDC_HEADERS && HAVE_MEMORY_H
127 # include <memory.h>
128 # endif
129 # include <string.h>
130 #endif
131 #if HAVE_STRINGS_H
132 # include <strings.h>
133 #endif
134 #if HAVE_INTTYPES_H
135 # include <inttypes.h>
136 #else
137 # if HAVE_STDINT_H
138 # include <stdint.h>
139 # endif
140 #endif
141 #if HAVE_UNISTD_H
142 # include <unistd.h>
143 #endif"
145 # Initialize some variables set by options.
146 ac_init_help=
147 ac_init_version=false
148 # The variables have the same names as the options, with
149 # dashes changed to underlines.
150 cache_file=/dev/null
151 exec_prefix=NONE
152 no_create=
153 no_recursion=
154 prefix=NONE
155 program_prefix=NONE
156 program_suffix=NONE
157 program_transform_name=s,x,x,
158 silent=
159 site=
160 srcdir=
161 verbose=
162 x_includes=NONE
163 x_libraries=NONE
165 # Installation directory options.
166 # These are left unexpanded so users can "make install exec_prefix=/foo"
167 # and all the variables that are supposed to be based on exec_prefix
168 # by default will actually change.
169 # Use braces instead of parens because sh, perl, etc. also accept them.
170 bindir='${exec_prefix}/bin'
171 sbindir='${exec_prefix}/sbin'
172 libexecdir='${exec_prefix}/libexec'
173 datadir='${prefix}/share'
174 sysconfdir='${prefix}/etc'
175 sharedstatedir='${prefix}/com'
176 localstatedir='${prefix}/var'
177 libdir='${exec_prefix}/lib'
178 includedir='${prefix}/include'
179 oldincludedir='/usr/include'
180 infodir='${prefix}/info'
181 mandir='${prefix}/man'
183 # Identity of this package.
184 PACKAGE_NAME=
185 PACKAGE_TARNAME=
186 PACKAGE_VERSION=
187 PACKAGE_STRING=
188 PACKAGE_BUGREPORT=
190 ac_prev=
191 for ac_option
193 # If the previous option needs an argument, assign it.
194 if test -n "$ac_prev"; then
195 eval "$ac_prev=\$ac_option"
196 ac_prev=
197 continue
200 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
202 # Accept the important Cygnus configure options, so we can diagnose typos.
204 case $ac_option in
206 -bindir | --bindir | --bindi | --bind | --bin | --bi)
207 ac_prev=bindir ;;
208 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
209 bindir=$ac_optarg ;;
211 -build | --build | --buil | --bui | --bu)
212 ac_prev=build_alias ;;
213 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
214 build_alias=$ac_optarg ;;
216 -cache-file | --cache-file | --cache-fil | --cache-fi \
217 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
218 ac_prev=cache_file ;;
219 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
220 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
221 cache_file=$ac_optarg ;;
223 --config-cache | -C)
224 cache_file=config.cache ;;
226 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
227 ac_prev=datadir ;;
228 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
229 | --da=*)
230 datadir=$ac_optarg ;;
232 -disable-* | --disable-*)
233 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
234 # Reject names that are not valid shell variable names.
235 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
236 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
237 { (exit 1); exit 1; }; }
238 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
239 eval "enable_$ac_feature=no" ;;
241 -enable-* | --enable-*)
242 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
243 # Reject names that are not valid shell variable names.
244 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
245 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
246 { (exit 1); exit 1; }; }
247 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
248 case $ac_option in
249 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
250 *) ac_optarg=yes ;;
251 esac
252 eval "enable_$ac_feature='$ac_optarg'" ;;
254 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
255 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
256 | --exec | --exe | --ex)
257 ac_prev=exec_prefix ;;
258 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
259 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
260 | --exec=* | --exe=* | --ex=*)
261 exec_prefix=$ac_optarg ;;
263 -gas | --gas | --ga | --g)
264 # Obsolete; use --with-gas.
265 with_gas=yes ;;
267 -help | --help | --hel | --he | -h)
268 ac_init_help=long ;;
269 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
270 ac_init_help=recursive ;;
271 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
272 ac_init_help=short ;;
274 -host | --host | --hos | --ho)
275 ac_prev=host_alias ;;
276 -host=* | --host=* | --hos=* | --ho=*)
277 host_alias=$ac_optarg ;;
279 -includedir | --includedir | --includedi | --included | --include \
280 | --includ | --inclu | --incl | --inc)
281 ac_prev=includedir ;;
282 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
283 | --includ=* | --inclu=* | --incl=* | --inc=*)
284 includedir=$ac_optarg ;;
286 -infodir | --infodir | --infodi | --infod | --info | --inf)
287 ac_prev=infodir ;;
288 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
289 infodir=$ac_optarg ;;
291 -libdir | --libdir | --libdi | --libd)
292 ac_prev=libdir ;;
293 -libdir=* | --libdir=* | --libdi=* | --libd=*)
294 libdir=$ac_optarg ;;
296 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
297 | --libexe | --libex | --libe)
298 ac_prev=libexecdir ;;
299 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
300 | --libexe=* | --libex=* | --libe=*)
301 libexecdir=$ac_optarg ;;
303 -localstatedir | --localstatedir | --localstatedi | --localstated \
304 | --localstate | --localstat | --localsta | --localst \
305 | --locals | --local | --loca | --loc | --lo)
306 ac_prev=localstatedir ;;
307 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
308 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
309 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
310 localstatedir=$ac_optarg ;;
312 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
313 ac_prev=mandir ;;
314 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
315 mandir=$ac_optarg ;;
317 -nfp | --nfp | --nf)
318 # Obsolete; use --without-fp.
319 with_fp=no ;;
321 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
322 | --no-cr | --no-c)
323 no_create=yes ;;
325 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
326 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
327 no_recursion=yes ;;
329 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
330 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
331 | --oldin | --oldi | --old | --ol | --o)
332 ac_prev=oldincludedir ;;
333 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
334 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
335 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
336 oldincludedir=$ac_optarg ;;
338 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
339 ac_prev=prefix ;;
340 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
341 prefix=$ac_optarg ;;
343 -program-prefix | --program-prefix | --program-prefi | --program-pref \
344 | --program-pre | --program-pr | --program-p)
345 ac_prev=program_prefix ;;
346 -program-prefix=* | --program-prefix=* | --program-prefi=* \
347 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
348 program_prefix=$ac_optarg ;;
350 -program-suffix | --program-suffix | --program-suffi | --program-suff \
351 | --program-suf | --program-su | --program-s)
352 ac_prev=program_suffix ;;
353 -program-suffix=* | --program-suffix=* | --program-suffi=* \
354 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
355 program_suffix=$ac_optarg ;;
357 -program-transform-name | --program-transform-name \
358 | --program-transform-nam | --program-transform-na \
359 | --program-transform-n | --program-transform- \
360 | --program-transform | --program-transfor \
361 | --program-transfo | --program-transf \
362 | --program-trans | --program-tran \
363 | --progr-tra | --program-tr | --program-t)
364 ac_prev=program_transform_name ;;
365 -program-transform-name=* | --program-transform-name=* \
366 | --program-transform-nam=* | --program-transform-na=* \
367 | --program-transform-n=* | --program-transform-=* \
368 | --program-transform=* | --program-transfor=* \
369 | --program-transfo=* | --program-transf=* \
370 | --program-trans=* | --program-tran=* \
371 | --progr-tra=* | --program-tr=* | --program-t=*)
372 program_transform_name=$ac_optarg ;;
374 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
375 | -silent | --silent | --silen | --sile | --sil)
376 silent=yes ;;
378 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
379 ac_prev=sbindir ;;
380 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
381 | --sbi=* | --sb=*)
382 sbindir=$ac_optarg ;;
384 -sharedstatedir | --sharedstatedir | --sharedstatedi \
385 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
386 | --sharedst | --shareds | --shared | --share | --shar \
387 | --sha | --sh)
388 ac_prev=sharedstatedir ;;
389 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
390 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
391 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
392 | --sha=* | --sh=*)
393 sharedstatedir=$ac_optarg ;;
395 -site | --site | --sit)
396 ac_prev=site ;;
397 -site=* | --site=* | --sit=*)
398 site=$ac_optarg ;;
400 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
401 ac_prev=srcdir ;;
402 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
403 srcdir=$ac_optarg ;;
405 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
406 | --syscon | --sysco | --sysc | --sys | --sy)
407 ac_prev=sysconfdir ;;
408 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
409 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
410 sysconfdir=$ac_optarg ;;
412 -target | --target | --targe | --targ | --tar | --ta | --t)
413 ac_prev=target_alias ;;
414 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
415 target_alias=$ac_optarg ;;
417 -v | -verbose | --verbose | --verbos | --verbo | --verb)
418 verbose=yes ;;
420 -version | --version | --versio | --versi | --vers | -V)
421 ac_init_version=: ;;
423 -with-* | --with-*)
424 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
425 # Reject names that are not valid shell variable names.
426 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
427 { echo "$as_me: error: invalid package name: $ac_package" >&2
428 { (exit 1); exit 1; }; }
429 ac_package=`echo $ac_package| sed 's/-/_/g'`
430 case $ac_option in
431 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
432 *) ac_optarg=yes ;;
433 esac
434 eval "with_$ac_package='$ac_optarg'" ;;
436 -without-* | --without-*)
437 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
438 # Reject names that are not valid shell variable names.
439 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
440 { echo "$as_me: error: invalid package name: $ac_package" >&2
441 { (exit 1); exit 1; }; }
442 ac_package=`echo $ac_package | sed 's/-/_/g'`
443 eval "with_$ac_package=no" ;;
445 --x)
446 # Obsolete; use --with-x.
447 with_x=yes ;;
449 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
450 | --x-incl | --x-inc | --x-in | --x-i)
451 ac_prev=x_includes ;;
452 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
453 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
454 x_includes=$ac_optarg ;;
456 -x-libraries | --x-libraries | --x-librarie | --x-librari \
457 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
458 ac_prev=x_libraries ;;
459 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
460 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
461 x_libraries=$ac_optarg ;;
463 -*) { echo "$as_me: error: unrecognized option: $ac_option
464 Try \`$0 --help' for more information." >&2
465 { (exit 1); exit 1; }; }
468 *=*)
469 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
470 # Reject names that are not valid shell variable names.
471 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
472 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
473 { (exit 1); exit 1; }; }
474 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
475 eval "$ac_envvar='$ac_optarg'"
476 export $ac_envvar ;;
479 # FIXME: should be removed in autoconf 3.0.
480 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
481 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
482 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
483 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
486 esac
487 done
489 if test -n "$ac_prev"; then
490 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
491 { echo "$as_me: error: missing argument to $ac_option" >&2
492 { (exit 1); exit 1; }; }
495 # Be sure to have absolute paths.
496 for ac_var in exec_prefix prefix
498 eval ac_val=$`echo $ac_var`
499 case $ac_val in
500 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
501 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
502 { (exit 1); exit 1; }; };;
503 esac
504 done
506 # Be sure to have absolute paths.
507 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
508 localstatedir libdir includedir oldincludedir infodir mandir
510 eval ac_val=$`echo $ac_var`
511 case $ac_val in
512 [\\/$]* | ?:[\\/]* ) ;;
513 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
514 { (exit 1); exit 1; }; };;
515 esac
516 done
518 # There might be people who depend on the old broken behavior: `$host'
519 # used to hold the argument of --host etc.
520 build=$build_alias
521 host=$host_alias
522 target=$target_alias
524 # FIXME: should be removed in autoconf 3.0.
525 if test "x$host_alias" != x; then
526 if test "x$build_alias" = x; then
527 cross_compiling=maybe
528 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
529 If a cross compiler is detected then cross compile mode will be used." >&2
530 elif test "x$build_alias" != "x$host_alias"; then
531 cross_compiling=yes
535 ac_tool_prefix=
536 test -n "$host_alias" && ac_tool_prefix=$host_alias-
538 test "$silent" = yes && exec 6>/dev/null
540 # Find the source files, if location was not specified.
541 if test -z "$srcdir"; then
542 ac_srcdir_defaulted=yes
543 # Try the directory containing this script, then its parent.
544 ac_prog=$0
545 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
546 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
547 srcdir=$ac_confdir
548 if test ! -r $srcdir/$ac_unique_file; then
549 srcdir=..
551 else
552 ac_srcdir_defaulted=no
554 if test ! -r $srcdir/$ac_unique_file; then
555 if test "$ac_srcdir_defaulted" = yes; then
556 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
557 { (exit 1); exit 1; }; }
558 else
559 { echo "$as_me: error: cannot find sources in $srcdir" >&2
560 { (exit 1); exit 1; }; }
563 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
564 ac_env_build_alias_set=${build_alias+set}
565 ac_env_build_alias_value=$build_alias
566 ac_cv_env_build_alias_set=${build_alias+set}
567 ac_cv_env_build_alias_value=$build_alias
568 ac_env_host_alias_set=${host_alias+set}
569 ac_env_host_alias_value=$host_alias
570 ac_cv_env_host_alias_set=${host_alias+set}
571 ac_cv_env_host_alias_value=$host_alias
572 ac_env_target_alias_set=${target_alias+set}
573 ac_env_target_alias_value=$target_alias
574 ac_cv_env_target_alias_set=${target_alias+set}
575 ac_cv_env_target_alias_value=$target_alias
576 ac_env_CC_set=${CC+set}
577 ac_env_CC_value=$CC
578 ac_cv_env_CC_set=${CC+set}
579 ac_cv_env_CC_value=$CC
580 ac_env_CFLAGS_set=${CFLAGS+set}
581 ac_env_CFLAGS_value=$CFLAGS
582 ac_cv_env_CFLAGS_set=${CFLAGS+set}
583 ac_cv_env_CFLAGS_value=$CFLAGS
584 ac_env_LDFLAGS_set=${LDFLAGS+set}
585 ac_env_LDFLAGS_value=$LDFLAGS
586 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
587 ac_cv_env_LDFLAGS_value=$LDFLAGS
588 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
589 ac_env_CPPFLAGS_value=$CPPFLAGS
590 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
591 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
592 ac_env_CXX_set=${CXX+set}
593 ac_env_CXX_value=$CXX
594 ac_cv_env_CXX_set=${CXX+set}
595 ac_cv_env_CXX_value=$CXX
596 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
597 ac_env_CXXFLAGS_value=$CXXFLAGS
598 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
599 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
600 ac_env_CPP_set=${CPP+set}
601 ac_env_CPP_value=$CPP
602 ac_cv_env_CPP_set=${CPP+set}
603 ac_cv_env_CPP_value=$CPP
606 # Report the --help message.
608 if test "$ac_init_help" = "long"; then
609 # Omit some internal or obsolete options to make the list less imposing.
610 # This message is too long to be a string in the A/UX 3.1 sh.
611 cat <<EOF
612 \`configure' configures this package to adapt to many kinds of systems.
614 Usage: $0 [OPTION]... [VAR=VALUE]...
616 To assign environment variables (e.g., CC, CFLAGS...), specify them as
617 VAR=VALUE. See below for descriptions of some of the useful variables.
619 Defaults for the options are specified in brackets.
621 Configuration:
622 -h, --help display this help and exit
623 --help=short display options specific to this package
624 --help=recursive display the short help of all the included packages
625 -V, --version display version information and exit
626 -q, --quiet, --silent do not print \`checking...' messages
627 --cache-file=FILE cache test results in FILE [disabled]
628 -C, --config-cache alias for \`--cache-file=config.cache'
629 -n, --no-create do not create output files
630 --srcdir=DIR find the sources in DIR [configure dir or \`..']
634 cat <<EOF
635 Installation directories:
636 --prefix=PREFIX install architecture-independent files in PREFIX
637 [$ac_default_prefix]
638 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
639 [PREFIX]
641 By default, \`make install' will install all the files in
642 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
643 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
644 for instance \`--prefix=\$HOME'.
646 For better control, use the options below.
648 Fine tuning of the installation directories:
649 --bindir=DIR user executables [EPREFIX/bin]
650 --sbindir=DIR system admin executables [EPREFIX/sbin]
651 --libexecdir=DIR program executables [EPREFIX/libexec]
652 --datadir=DIR read-only architecture-independent data [PREFIX/share]
653 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
654 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
655 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
656 --libdir=DIR object code libraries [EPREFIX/lib]
657 --includedir=DIR C header files [PREFIX/include]
658 --oldincludedir=DIR C header files for non-gcc [/usr/include]
659 --infodir=DIR info documentation [PREFIX/info]
660 --mandir=DIR man documentation [PREFIX/man]
663 cat <<\EOF
667 if test -n "$ac_init_help"; then
669 cat <<\EOF
671 Some influential environment variables:
672 CC C compiler command
673 CFLAGS C compiler flags
674 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
675 nonstandard directory <lib dir>
676 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
677 headers in a nonstandard directory <include dir>
678 CXX C++ compiler command
679 CXXFLAGS C++ compiler flags
680 CPP C preprocessor
682 Use these variables to override the choices made by `configure' or to help
683 it to find libraries and programs with nonstandard names/locations.
688 if test "$ac_init_help" = "recursive"; then
689 # If there are subdirs, report their specific --help.
690 ac_popdir=`pwd`
691 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
692 cd $ac_subdir
693 # A "../" for each directory in /$ac_subdir.
694 ac_dots=`echo $ac_subdir |
695 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
697 case $srcdir in
698 .) # No --srcdir option. We are building in place.
699 ac_sub_srcdir=$srcdir ;;
700 [\\/]* | ?:[\\/]* ) # Absolute path.
701 ac_sub_srcdir=$srcdir/$ac_subdir ;;
702 *) # Relative path.
703 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
704 esac
706 # Check for guested configure; otherwise get Cygnus style configure.
707 if test -f $ac_sub_srcdir/configure.gnu; then
708 echo
709 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
710 elif test -f $ac_sub_srcdir/configure; then
711 echo
712 $SHELL $ac_sub_srcdir/configure --help=recursive
713 elif test -f $ac_sub_srcdir/configure.ac ||
714 test -f $ac_sub_srcdir/configure.in; then
715 echo
716 $ac_configure --help
717 else
718 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
720 cd $ac_popdir
721 done
724 test -n "$ac_init_help" && exit 0
725 if $ac_init_version; then
726 cat <<\EOF
728 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
729 Free Software Foundation, Inc.
730 This configure script is free software; the Free Software Foundation
731 gives unlimited permission to copy, distribute and modify it.
733 exit 0
735 exec 5>config.log
736 cat >&5 <<EOF
737 This file contains any messages produced by compilers while
738 running configure, to aid debugging if configure makes a mistake.
740 It was created by $as_me, which was
741 generated by GNU Autoconf 2.52. Invocation command line was
743 $ $0 $@
747 cat <<_ASUNAME
748 ## ---------- ##
749 ## Platform. ##
750 ## ---------- ##
752 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
753 uname -m = `(uname -m) 2>/dev/null || echo unknown`
754 uname -r = `(uname -r) 2>/dev/null || echo unknown`
755 uname -s = `(uname -s) 2>/dev/null || echo unknown`
756 uname -v = `(uname -v) 2>/dev/null || echo unknown`
758 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
759 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
761 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
762 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
763 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
764 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
765 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
766 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
767 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
769 PATH = $PATH
771 _ASUNAME
772 } >&5
774 cat >&5 <<EOF
775 ## ------------ ##
776 ## Core tests. ##
777 ## ------------ ##
781 # Keep a trace of the command line.
782 # Strip out --no-create and --no-recursion so they do not pile up.
783 # Also quote any args containing shell meta-characters.
784 ac_configure_args=
785 ac_sep=
786 for ac_arg
788 case $ac_arg in
789 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
790 | --no-cr | --no-c) ;;
791 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
792 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
793 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
794 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
795 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
796 ac_sep=" " ;;
797 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
798 ac_sep=" " ;;
799 esac
800 # Get rid of the leading space.
801 done
803 # When interrupted or exit'd, cleanup temporary files, and complete
804 # config.log. We remove comments because anyway the quotes in there
805 # would cause problems or look ugly.
806 trap 'exit_status=$?
807 # Save into config.log some information that might help in debugging.
808 echo >&5
809 echo "## ----------------- ##" >&5
810 echo "## Cache variables. ##" >&5
811 echo "## ----------------- ##" >&5
812 echo >&5
813 # The following way of writing the cache mishandles newlines in values,
815 (set) 2>&1 |
816 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
817 *ac_space=\ *)
818 sed -n \
819 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
820 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
823 sed -n \
824 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
826 esac;
827 } >&5
828 sed "/^$/d" confdefs.h >conftest.log
829 if test -s conftest.log; then
830 echo >&5
831 echo "## ------------ ##" >&5
832 echo "## confdefs.h. ##" >&5
833 echo "## ------------ ##" >&5
834 echo >&5
835 cat conftest.log >&5
837 (echo; echo) >&5
838 test "$ac_signal" != 0 &&
839 echo "$as_me: caught signal $ac_signal" >&5
840 echo "$as_me: exit $exit_status" >&5
841 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
842 exit $exit_status
844 for ac_signal in 1 2 13 15; do
845 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
846 done
847 ac_signal=0
849 # confdefs.h avoids OS command line length limits that DEFS can exceed.
850 rm -rf conftest* confdefs.h
851 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
852 echo >confdefs.h
854 # Let the site file select an alternate cache file if it wants to.
855 # Prefer explicitly selected file to automatically selected ones.
856 if test -z "$CONFIG_SITE"; then
857 if test "x$prefix" != xNONE; then
858 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
859 else
860 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
863 for ac_site_file in $CONFIG_SITE; do
864 if test -r "$ac_site_file"; then
865 { echo "$as_me:865: loading site script $ac_site_file" >&5
866 echo "$as_me: loading site script $ac_site_file" >&6;}
867 cat "$ac_site_file" >&5
868 . "$ac_site_file"
870 done
872 if test -r "$cache_file"; then
873 # Some versions of bash will fail to source /dev/null (special
874 # files actually), so we avoid doing that.
875 if test -f "$cache_file"; then
876 { echo "$as_me:876: loading cache $cache_file" >&5
877 echo "$as_me: loading cache $cache_file" >&6;}
878 case $cache_file in
879 [\\/]* | ?:[\\/]* ) . $cache_file;;
880 *) . ./$cache_file;;
881 esac
883 else
884 { echo "$as_me:884: creating cache $cache_file" >&5
885 echo "$as_me: creating cache $cache_file" >&6;}
886 >$cache_file
889 # Check that the precious variables saved in the cache have kept the same
890 # value.
891 ac_cache_corrupted=false
892 for ac_var in `(set) 2>&1 |
893 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
894 eval ac_old_set=\$ac_cv_env_${ac_var}_set
895 eval ac_new_set=\$ac_env_${ac_var}_set
896 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
897 eval ac_new_val="\$ac_env_${ac_var}_value"
898 case $ac_old_set,$ac_new_set in
899 set,)
900 { echo "$as_me:900: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
901 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
902 ac_cache_corrupted=: ;;
903 ,set)
904 { echo "$as_me:904: error: \`$ac_var' was not set in the previous run" >&5
905 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
906 ac_cache_corrupted=: ;;
907 ,);;
909 if test "x$ac_old_val" != "x$ac_new_val"; then
910 { echo "$as_me:910: error: \`$ac_var' has changed since the previous run:" >&5
911 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
912 { echo "$as_me:912: former value: $ac_old_val" >&5
913 echo "$as_me: former value: $ac_old_val" >&2;}
914 { echo "$as_me:914: current value: $ac_new_val" >&5
915 echo "$as_me: current value: $ac_new_val" >&2;}
916 ac_cache_corrupted=:
917 fi;;
918 esac
919 # Pass precious variables to config.status. It doesn't matter if
920 # we pass some twice (in addition to the command line arguments).
921 if test "$ac_new_set" = set; then
922 case $ac_new_val in
923 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
924 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
925 ac_configure_args="$ac_configure_args '$ac_arg'"
927 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
929 esac
931 done
932 if $ac_cache_corrupted; then
933 { echo "$as_me:933: error: changes in the environment can compromise the build" >&5
934 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
935 { { echo "$as_me:935: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
936 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
937 { (exit 1); exit 1; }; }
940 ac_ext=c
941 ac_cpp='$CPP $CPPFLAGS'
942 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
943 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
944 ac_compiler_gnu=$ac_cv_c_compiler_gnu
946 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
947 *c*,-n*) ECHO_N= ECHO_C='
948 ' ECHO_T=' ' ;;
949 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
950 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
951 esac
952 echo "#! $SHELL" >conftest.sh
953 echo "exit 0" >>conftest.sh
954 chmod +x conftest.sh
955 if { (echo "$as_me:955: PATH=\".;.\"; conftest.sh") >&5
956 (PATH=".;."; conftest.sh) 2>&5
957 ac_status=$?
958 echo "$as_me:958: \$? = $ac_status" >&5
959 (exit $ac_status); }; then
960 ac_path_separator=';'
961 else
962 ac_path_separator=:
964 PATH_SEPARATOR="$ac_path_separator"
965 rm -f conftest.sh
967 ac_config_headers="$ac_config_headers src/include/config.h:src/include/config.hin"
969 ac_srcdir_defaulted=no
970 srcdir=`cd $srcdir; pwd`
971 top_builddir=`pwd`
973 ac_ext=c
974 ac_cpp='$CPP $CPPFLAGS'
975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
978 if test -n "$ac_tool_prefix"; then
979 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
980 set dummy ${ac_tool_prefix}gcc; ac_word=$2
981 echo "$as_me:981: checking for $ac_word" >&5
982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
983 if test "${ac_cv_prog_CC+set}" = set; then
984 echo $ECHO_N "(cached) $ECHO_C" >&6
985 else
986 if test -n "$CC"; then
987 ac_cv_prog_CC="$CC" # Let the user override the test.
988 else
989 ac_save_IFS=$IFS; IFS=$ac_path_separator
990 ac_dummy="$PATH"
991 for ac_dir in $ac_dummy; do
992 IFS=$ac_save_IFS
993 test -z "$ac_dir" && ac_dir=.
994 $as_executable_p "$ac_dir/$ac_word" || continue
995 ac_cv_prog_CC="${ac_tool_prefix}gcc"
996 echo "$as_me:996: found $ac_dir/$ac_word" >&5
997 break
998 done
1002 CC=$ac_cv_prog_CC
1003 if test -n "$CC"; then
1004 echo "$as_me:1004: result: $CC" >&5
1005 echo "${ECHO_T}$CC" >&6
1006 else
1007 echo "$as_me:1007: result: no" >&5
1008 echo "${ECHO_T}no" >&6
1012 if test -z "$ac_cv_prog_CC"; then
1013 ac_ct_CC=$CC
1014 # Extract the first word of "gcc", so it can be a program name with args.
1015 set dummy gcc; ac_word=$2
1016 echo "$as_me:1016: checking for $ac_word" >&5
1017 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1018 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1019 echo $ECHO_N "(cached) $ECHO_C" >&6
1020 else
1021 if test -n "$ac_ct_CC"; then
1022 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1023 else
1024 ac_save_IFS=$IFS; IFS=$ac_path_separator
1025 ac_dummy="$PATH"
1026 for ac_dir in $ac_dummy; do
1027 IFS=$ac_save_IFS
1028 test -z "$ac_dir" && ac_dir=.
1029 $as_executable_p "$ac_dir/$ac_word" || continue
1030 ac_cv_prog_ac_ct_CC="gcc"
1031 echo "$as_me:1031: found $ac_dir/$ac_word" >&5
1032 break
1033 done
1037 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1038 if test -n "$ac_ct_CC"; then
1039 echo "$as_me:1039: result: $ac_ct_CC" >&5
1040 echo "${ECHO_T}$ac_ct_CC" >&6
1041 else
1042 echo "$as_me:1042: result: no" >&5
1043 echo "${ECHO_T}no" >&6
1046 CC=$ac_ct_CC
1047 else
1048 CC="$ac_cv_prog_CC"
1051 if test -z "$CC"; then
1052 if test -n "$ac_tool_prefix"; then
1053 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1054 set dummy ${ac_tool_prefix}cc; ac_word=$2
1055 echo "$as_me:1055: checking for $ac_word" >&5
1056 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1057 if test "${ac_cv_prog_CC+set}" = set; then
1058 echo $ECHO_N "(cached) $ECHO_C" >&6
1059 else
1060 if test -n "$CC"; then
1061 ac_cv_prog_CC="$CC" # Let the user override the test.
1062 else
1063 ac_save_IFS=$IFS; IFS=$ac_path_separator
1064 ac_dummy="$PATH"
1065 for ac_dir in $ac_dummy; do
1066 IFS=$ac_save_IFS
1067 test -z "$ac_dir" && ac_dir=.
1068 $as_executable_p "$ac_dir/$ac_word" || continue
1069 ac_cv_prog_CC="${ac_tool_prefix}cc"
1070 echo "$as_me:1070: found $ac_dir/$ac_word" >&5
1071 break
1072 done
1076 CC=$ac_cv_prog_CC
1077 if test -n "$CC"; then
1078 echo "$as_me:1078: result: $CC" >&5
1079 echo "${ECHO_T}$CC" >&6
1080 else
1081 echo "$as_me:1081: result: no" >&5
1082 echo "${ECHO_T}no" >&6
1086 if test -z "$ac_cv_prog_CC"; then
1087 ac_ct_CC=$CC
1088 # Extract the first word of "cc", so it can be a program name with args.
1089 set dummy cc; ac_word=$2
1090 echo "$as_me:1090: checking for $ac_word" >&5
1091 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1092 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1093 echo $ECHO_N "(cached) $ECHO_C" >&6
1094 else
1095 if test -n "$ac_ct_CC"; then
1096 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1097 else
1098 ac_save_IFS=$IFS; IFS=$ac_path_separator
1099 ac_dummy="$PATH"
1100 for ac_dir in $ac_dummy; do
1101 IFS=$ac_save_IFS
1102 test -z "$ac_dir" && ac_dir=.
1103 $as_executable_p "$ac_dir/$ac_word" || continue
1104 ac_cv_prog_ac_ct_CC="cc"
1105 echo "$as_me:1105: found $ac_dir/$ac_word" >&5
1106 break
1107 done
1111 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1112 if test -n "$ac_ct_CC"; then
1113 echo "$as_me:1113: result: $ac_ct_CC" >&5
1114 echo "${ECHO_T}$ac_ct_CC" >&6
1115 else
1116 echo "$as_me:1116: result: no" >&5
1117 echo "${ECHO_T}no" >&6
1120 CC=$ac_ct_CC
1121 else
1122 CC="$ac_cv_prog_CC"
1126 if test -z "$CC"; then
1127 # Extract the first word of "cc", so it can be a program name with args.
1128 set dummy cc; ac_word=$2
1129 echo "$as_me:1129: checking for $ac_word" >&5
1130 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1131 if test "${ac_cv_prog_CC+set}" = set; then
1132 echo $ECHO_N "(cached) $ECHO_C" >&6
1133 else
1134 if test -n "$CC"; then
1135 ac_cv_prog_CC="$CC" # Let the user override the test.
1136 else
1137 ac_prog_rejected=no
1138 ac_save_IFS=$IFS; IFS=$ac_path_separator
1139 ac_dummy="$PATH"
1140 for ac_dir in $ac_dummy; do
1141 IFS=$ac_save_IFS
1142 test -z "$ac_dir" && ac_dir=.
1143 $as_executable_p "$ac_dir/$ac_word" || continue
1144 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1145 ac_prog_rejected=yes
1146 continue
1148 ac_cv_prog_CC="cc"
1149 echo "$as_me:1149: found $ac_dir/$ac_word" >&5
1150 break
1151 done
1153 if test $ac_prog_rejected = yes; then
1154 # We found a bogon in the path, so make sure we never use it.
1155 set dummy $ac_cv_prog_CC
1156 shift
1157 if test $# != 0; then
1158 # We chose a different compiler from the bogus one.
1159 # However, it has the same basename, so the bogon will be chosen
1160 # first if we set CC to just the basename; use the full file name.
1161 shift
1162 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1163 shift
1164 ac_cv_prog_CC="$@"
1169 CC=$ac_cv_prog_CC
1170 if test -n "$CC"; then
1171 echo "$as_me:1171: result: $CC" >&5
1172 echo "${ECHO_T}$CC" >&6
1173 else
1174 echo "$as_me:1174: result: no" >&5
1175 echo "${ECHO_T}no" >&6
1179 if test -z "$CC"; then
1180 if test -n "$ac_tool_prefix"; then
1181 for ac_prog in cl
1183 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1184 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1185 echo "$as_me:1185: checking for $ac_word" >&5
1186 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1187 if test "${ac_cv_prog_CC+set}" = set; then
1188 echo $ECHO_N "(cached) $ECHO_C" >&6
1189 else
1190 if test -n "$CC"; then
1191 ac_cv_prog_CC="$CC" # Let the user override the test.
1192 else
1193 ac_save_IFS=$IFS; IFS=$ac_path_separator
1194 ac_dummy="$PATH"
1195 for ac_dir in $ac_dummy; do
1196 IFS=$ac_save_IFS
1197 test -z "$ac_dir" && ac_dir=.
1198 $as_executable_p "$ac_dir/$ac_word" || continue
1199 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1200 echo "$as_me:1200: found $ac_dir/$ac_word" >&5
1201 break
1202 done
1206 CC=$ac_cv_prog_CC
1207 if test -n "$CC"; then
1208 echo "$as_me:1208: result: $CC" >&5
1209 echo "${ECHO_T}$CC" >&6
1210 else
1211 echo "$as_me:1211: result: no" >&5
1212 echo "${ECHO_T}no" >&6
1215 test -n "$CC" && break
1216 done
1218 if test -z "$CC"; then
1219 ac_ct_CC=$CC
1220 for ac_prog in cl
1222 # Extract the first word of "$ac_prog", so it can be a program name with args.
1223 set dummy $ac_prog; ac_word=$2
1224 echo "$as_me:1224: checking for $ac_word" >&5
1225 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1226 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1227 echo $ECHO_N "(cached) $ECHO_C" >&6
1228 else
1229 if test -n "$ac_ct_CC"; then
1230 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1231 else
1232 ac_save_IFS=$IFS; IFS=$ac_path_separator
1233 ac_dummy="$PATH"
1234 for ac_dir in $ac_dummy; do
1235 IFS=$ac_save_IFS
1236 test -z "$ac_dir" && ac_dir=.
1237 $as_executable_p "$ac_dir/$ac_word" || continue
1238 ac_cv_prog_ac_ct_CC="$ac_prog"
1239 echo "$as_me:1239: found $ac_dir/$ac_word" >&5
1240 break
1241 done
1245 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1246 if test -n "$ac_ct_CC"; then
1247 echo "$as_me:1247: result: $ac_ct_CC" >&5
1248 echo "${ECHO_T}$ac_ct_CC" >&6
1249 else
1250 echo "$as_me:1250: result: no" >&5
1251 echo "${ECHO_T}no" >&6
1254 test -n "$ac_ct_CC" && break
1255 done
1257 CC=$ac_ct_CC
1262 test -z "$CC" && { { echo "$as_me:1262: error: no acceptable cc found in \$PATH" >&5
1263 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1264 { (exit 1); exit 1; }; }
1266 # Provide some information about the compiler.
1267 echo "$as_me:1267:" \
1268 "checking for C compiler version" >&5
1269 ac_compiler=`set X $ac_compile; echo $2`
1270 { (eval echo "$as_me:1270: \"$ac_compiler --version </dev/null >&5\"") >&5
1271 (eval $ac_compiler --version </dev/null >&5) 2>&5
1272 ac_status=$?
1273 echo "$as_me:1273: \$? = $ac_status" >&5
1274 (exit $ac_status); }
1275 { (eval echo "$as_me:1275: \"$ac_compiler -v </dev/null >&5\"") >&5
1276 (eval $ac_compiler -v </dev/null >&5) 2>&5
1277 ac_status=$?
1278 echo "$as_me:1278: \$? = $ac_status" >&5
1279 (exit $ac_status); }
1280 { (eval echo "$as_me:1280: \"$ac_compiler -V </dev/null >&5\"") >&5
1281 (eval $ac_compiler -V </dev/null >&5) 2>&5
1282 ac_status=$?
1283 echo "$as_me:1283: \$? = $ac_status" >&5
1284 (exit $ac_status); }
1286 cat >conftest.$ac_ext <<_ACEOF
1287 #line 1287 "configure"
1288 #include "confdefs.h"
1291 main ()
1295 return 0;
1297 _ACEOF
1298 ac_clean_files_save=$ac_clean_files
1299 ac_clean_files="$ac_clean_files a.out a.exe"
1300 # Try to create an executable without -o first, disregard a.out.
1301 # It will help us diagnose broken compilers, and finding out an intuition
1302 # of exeext.
1303 echo "$as_me:1303: checking for C compiler default output" >&5
1304 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1305 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1306 if { (eval echo "$as_me:1306: \"$ac_link_default\"") >&5
1307 (eval $ac_link_default) 2>&5
1308 ac_status=$?
1309 echo "$as_me:1309: \$? = $ac_status" >&5
1310 (exit $ac_status); }; then
1311 # Find the output, starting from the most likely. This scheme is
1312 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1313 # resort.
1314 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1315 ls a.out conftest 2>/dev/null;
1316 ls a.* conftest.* 2>/dev/null`; do
1317 case $ac_file in
1318 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1319 a.out ) # We found the default executable, but exeext='' is most
1320 # certainly right.
1321 break;;
1322 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1323 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1324 export ac_cv_exeext
1325 break;;
1326 * ) break;;
1327 esac
1328 done
1329 else
1330 echo "$as_me: failed program was:" >&5
1331 cat conftest.$ac_ext >&5
1332 { { echo "$as_me:1332: error: C compiler cannot create executables" >&5
1333 echo "$as_me: error: C compiler cannot create executables" >&2;}
1334 { (exit 77); exit 77; }; }
1337 ac_exeext=$ac_cv_exeext
1338 echo "$as_me:1338: result: $ac_file" >&5
1339 echo "${ECHO_T}$ac_file" >&6
1341 # Check the compiler produces executables we can run. If not, either
1342 # the compiler is broken, or we cross compile.
1343 echo "$as_me:1343: checking whether the C compiler works" >&5
1344 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1345 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1346 # If not cross compiling, check that we can run a simple program.
1347 if test "$cross_compiling" != yes; then
1348 if { ac_try='./$ac_file'
1349 { (eval echo "$as_me:1349: \"$ac_try\"") >&5
1350 (eval $ac_try) 2>&5
1351 ac_status=$?
1352 echo "$as_me:1352: \$? = $ac_status" >&5
1353 (exit $ac_status); }; }; then
1354 cross_compiling=no
1355 else
1356 if test "$cross_compiling" = maybe; then
1357 cross_compiling=yes
1358 else
1359 { { echo "$as_me:1359: error: cannot run C compiled programs.
1360 If you meant to cross compile, use \`--host'." >&5
1361 echo "$as_me: error: cannot run C compiled programs.
1362 If you meant to cross compile, use \`--host'." >&2;}
1363 { (exit 1); exit 1; }; }
1367 echo "$as_me:1367: result: yes" >&5
1368 echo "${ECHO_T}yes" >&6
1370 rm -f a.out a.exe conftest$ac_cv_exeext
1371 ac_clean_files=$ac_clean_files_save
1372 # Check the compiler produces executables we can run. If not, either
1373 # the compiler is broken, or we cross compile.
1374 echo "$as_me:1374: checking whether we are cross compiling" >&5
1375 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1376 echo "$as_me:1376: result: $cross_compiling" >&5
1377 echo "${ECHO_T}$cross_compiling" >&6
1379 echo "$as_me:1379: checking for executable suffix" >&5
1380 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1381 if { (eval echo "$as_me:1381: \"$ac_link\"") >&5
1382 (eval $ac_link) 2>&5
1383 ac_status=$?
1384 echo "$as_me:1384: \$? = $ac_status" >&5
1385 (exit $ac_status); }; then
1386 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1387 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1388 # work properly (i.e., refer to `conftest.exe'), while it won't with
1389 # `rm'.
1390 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1391 case $ac_file in
1392 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1393 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1394 export ac_cv_exeext
1395 break;;
1396 * ) break;;
1397 esac
1398 done
1399 else
1400 { { echo "$as_me:1400: error: cannot compute EXEEXT: cannot compile and link" >&5
1401 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1402 { (exit 1); exit 1; }; }
1405 rm -f conftest$ac_cv_exeext
1406 echo "$as_me:1406: result: $ac_cv_exeext" >&5
1407 echo "${ECHO_T}$ac_cv_exeext" >&6
1409 rm -f conftest.$ac_ext
1410 EXEEXT=$ac_cv_exeext
1411 ac_exeext=$EXEEXT
1412 echo "$as_me:1412: checking for object suffix" >&5
1413 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1414 if test "${ac_cv_objext+set}" = set; then
1415 echo $ECHO_N "(cached) $ECHO_C" >&6
1416 else
1417 cat >conftest.$ac_ext <<_ACEOF
1418 #line 1418 "configure"
1419 #include "confdefs.h"
1422 main ()
1426 return 0;
1428 _ACEOF
1429 rm -f conftest.o conftest.obj
1430 if { (eval echo "$as_me:1430: \"$ac_compile\"") >&5
1431 (eval $ac_compile) 2>&5
1432 ac_status=$?
1433 echo "$as_me:1433: \$? = $ac_status" >&5
1434 (exit $ac_status); }; then
1435 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1436 case $ac_file in
1437 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1438 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1439 break;;
1440 esac
1441 done
1442 else
1443 echo "$as_me: failed program was:" >&5
1444 cat conftest.$ac_ext >&5
1445 { { echo "$as_me:1445: error: cannot compute OBJEXT: cannot compile" >&5
1446 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1447 { (exit 1); exit 1; }; }
1450 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1452 echo "$as_me:1452: result: $ac_cv_objext" >&5
1453 echo "${ECHO_T}$ac_cv_objext" >&6
1454 OBJEXT=$ac_cv_objext
1455 ac_objext=$OBJEXT
1456 echo "$as_me:1456: checking whether we are using the GNU C compiler" >&5
1457 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1458 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1459 echo $ECHO_N "(cached) $ECHO_C" >&6
1460 else
1461 cat >conftest.$ac_ext <<_ACEOF
1462 #line 1462 "configure"
1463 #include "confdefs.h"
1466 main ()
1468 #ifndef __GNUC__
1469 choke me
1470 #endif
1473 return 0;
1475 _ACEOF
1476 rm -f conftest.$ac_objext
1477 if { (eval echo "$as_me:1477: \"$ac_compile\"") >&5
1478 (eval $ac_compile) 2>&5
1479 ac_status=$?
1480 echo "$as_me:1480: \$? = $ac_status" >&5
1481 (exit $ac_status); } &&
1482 { ac_try='test -s conftest.$ac_objext'
1483 { (eval echo "$as_me:1483: \"$ac_try\"") >&5
1484 (eval $ac_try) 2>&5
1485 ac_status=$?
1486 echo "$as_me:1486: \$? = $ac_status" >&5
1487 (exit $ac_status); }; }; then
1488 ac_compiler_gnu=yes
1489 else
1490 echo "$as_me: failed program was:" >&5
1491 cat conftest.$ac_ext >&5
1492 ac_compiler_gnu=no
1494 rm -f conftest.$ac_objext conftest.$ac_ext
1495 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1498 echo "$as_me:1498: result: $ac_cv_c_compiler_gnu" >&5
1499 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1500 GCC=`test $ac_compiler_gnu = yes && echo yes`
1501 ac_test_CFLAGS=${CFLAGS+set}
1502 ac_save_CFLAGS=$CFLAGS
1503 CFLAGS="-g"
1504 echo "$as_me:1504: checking whether $CC accepts -g" >&5
1505 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1506 if test "${ac_cv_prog_cc_g+set}" = set; then
1507 echo $ECHO_N "(cached) $ECHO_C" >&6
1508 else
1509 cat >conftest.$ac_ext <<_ACEOF
1510 #line 1510 "configure"
1511 #include "confdefs.h"
1514 main ()
1518 return 0;
1520 _ACEOF
1521 rm -f conftest.$ac_objext
1522 if { (eval echo "$as_me:1522: \"$ac_compile\"") >&5
1523 (eval $ac_compile) 2>&5
1524 ac_status=$?
1525 echo "$as_me:1525: \$? = $ac_status" >&5
1526 (exit $ac_status); } &&
1527 { ac_try='test -s conftest.$ac_objext'
1528 { (eval echo "$as_me:1528: \"$ac_try\"") >&5
1529 (eval $ac_try) 2>&5
1530 ac_status=$?
1531 echo "$as_me:1531: \$? = $ac_status" >&5
1532 (exit $ac_status); }; }; then
1533 ac_cv_prog_cc_g=yes
1534 else
1535 echo "$as_me: failed program was:" >&5
1536 cat conftest.$ac_ext >&5
1537 ac_cv_prog_cc_g=no
1539 rm -f conftest.$ac_objext conftest.$ac_ext
1541 echo "$as_me:1541: result: $ac_cv_prog_cc_g" >&5
1542 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1543 if test "$ac_test_CFLAGS" = set; then
1544 CFLAGS=$ac_save_CFLAGS
1545 elif test $ac_cv_prog_cc_g = yes; then
1546 if test "$GCC" = yes; then
1547 CFLAGS="-g -O2"
1548 else
1549 CFLAGS="-g"
1551 else
1552 if test "$GCC" = yes; then
1553 CFLAGS="-O2"
1554 else
1555 CFLAGS=
1558 # Some people use a C++ compiler to compile C. Since we use `exit',
1559 # in C++ we need to declare it. In case someone uses the same compiler
1560 # for both compiling C and C++ we need to have the C++ compiler decide
1561 # the declaration of exit, since it's the most demanding environment.
1562 cat >conftest.$ac_ext <<_ACEOF
1563 #ifndef __cplusplus
1564 choke me
1565 #endif
1566 _ACEOF
1567 rm -f conftest.$ac_objext
1568 if { (eval echo "$as_me:1568: \"$ac_compile\"") >&5
1569 (eval $ac_compile) 2>&5
1570 ac_status=$?
1571 echo "$as_me:1571: \$? = $ac_status" >&5
1572 (exit $ac_status); } &&
1573 { ac_try='test -s conftest.$ac_objext'
1574 { (eval echo "$as_me:1574: \"$ac_try\"") >&5
1575 (eval $ac_try) 2>&5
1576 ac_status=$?
1577 echo "$as_me:1577: \$? = $ac_status" >&5
1578 (exit $ac_status); }; }; then
1579 for ac_declaration in \
1581 '#include <stdlib.h>' \
1582 'extern "C" void std::exit (int) throw (); using std::exit;' \
1583 'extern "C" void std::exit (int); using std::exit;' \
1584 'extern "C" void exit (int) throw ();' \
1585 'extern "C" void exit (int);' \
1586 'void exit (int);'
1588 cat >conftest.$ac_ext <<_ACEOF
1589 #line 1589 "configure"
1590 #include "confdefs.h"
1591 #include <stdlib.h>
1592 $ac_declaration
1594 main ()
1596 exit (42);
1598 return 0;
1600 _ACEOF
1601 rm -f conftest.$ac_objext
1602 if { (eval echo "$as_me:1602: \"$ac_compile\"") >&5
1603 (eval $ac_compile) 2>&5
1604 ac_status=$?
1605 echo "$as_me:1605: \$? = $ac_status" >&5
1606 (exit $ac_status); } &&
1607 { ac_try='test -s conftest.$ac_objext'
1608 { (eval echo "$as_me:1608: \"$ac_try\"") >&5
1609 (eval $ac_try) 2>&5
1610 ac_status=$?
1611 echo "$as_me:1611: \$? = $ac_status" >&5
1612 (exit $ac_status); }; }; then
1614 else
1615 echo "$as_me: failed program was:" >&5
1616 cat conftest.$ac_ext >&5
1617 continue
1619 rm -f conftest.$ac_objext conftest.$ac_ext
1620 cat >conftest.$ac_ext <<_ACEOF
1621 #line 1621 "configure"
1622 #include "confdefs.h"
1623 $ac_declaration
1625 main ()
1627 exit (42);
1629 return 0;
1631 _ACEOF
1632 rm -f conftest.$ac_objext
1633 if { (eval echo "$as_me:1633: \"$ac_compile\"") >&5
1634 (eval $ac_compile) 2>&5
1635 ac_status=$?
1636 echo "$as_me:1636: \$? = $ac_status" >&5
1637 (exit $ac_status); } &&
1638 { ac_try='test -s conftest.$ac_objext'
1639 { (eval echo "$as_me:1639: \"$ac_try\"") >&5
1640 (eval $ac_try) 2>&5
1641 ac_status=$?
1642 echo "$as_me:1642: \$? = $ac_status" >&5
1643 (exit $ac_status); }; }; then
1644 break
1645 else
1646 echo "$as_me: failed program was:" >&5
1647 cat conftest.$ac_ext >&5
1649 rm -f conftest.$ac_objext conftest.$ac_ext
1650 done
1651 rm -f conftest*
1652 if test -n "$ac_declaration"; then
1653 echo '#ifdef __cplusplus' >>confdefs.h
1654 echo $ac_declaration >>confdefs.h
1655 echo '#endif' >>confdefs.h
1658 else
1659 echo "$as_me: failed program was:" >&5
1660 cat conftest.$ac_ext >&5
1662 rm -f conftest.$ac_objext conftest.$ac_ext
1663 ac_ext=c
1664 ac_cpp='$CPP $CPPFLAGS'
1665 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1666 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1667 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1669 ac_ext=cc
1670 ac_cpp='$CXXCPP $CPPFLAGS'
1671 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1672 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1673 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1674 if test -n "$ac_tool_prefix"; then
1675 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1677 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1678 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1679 echo "$as_me:1679: checking for $ac_word" >&5
1680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1681 if test "${ac_cv_prog_CXX+set}" = set; then
1682 echo $ECHO_N "(cached) $ECHO_C" >&6
1683 else
1684 if test -n "$CXX"; then
1685 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1686 else
1687 ac_save_IFS=$IFS; IFS=$ac_path_separator
1688 ac_dummy="$PATH"
1689 for ac_dir in $ac_dummy; do
1690 IFS=$ac_save_IFS
1691 test -z "$ac_dir" && ac_dir=.
1692 $as_executable_p "$ac_dir/$ac_word" || continue
1693 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1694 echo "$as_me:1694: found $ac_dir/$ac_word" >&5
1695 break
1696 done
1700 CXX=$ac_cv_prog_CXX
1701 if test -n "$CXX"; then
1702 echo "$as_me:1702: result: $CXX" >&5
1703 echo "${ECHO_T}$CXX" >&6
1704 else
1705 echo "$as_me:1705: result: no" >&5
1706 echo "${ECHO_T}no" >&6
1709 test -n "$CXX" && break
1710 done
1712 if test -z "$CXX"; then
1713 ac_ct_CXX=$CXX
1714 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1716 # Extract the first word of "$ac_prog", so it can be a program name with args.
1717 set dummy $ac_prog; ac_word=$2
1718 echo "$as_me:1718: checking for $ac_word" >&5
1719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1720 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1721 echo $ECHO_N "(cached) $ECHO_C" >&6
1722 else
1723 if test -n "$ac_ct_CXX"; then
1724 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1725 else
1726 ac_save_IFS=$IFS; IFS=$ac_path_separator
1727 ac_dummy="$PATH"
1728 for ac_dir in $ac_dummy; do
1729 IFS=$ac_save_IFS
1730 test -z "$ac_dir" && ac_dir=.
1731 $as_executable_p "$ac_dir/$ac_word" || continue
1732 ac_cv_prog_ac_ct_CXX="$ac_prog"
1733 echo "$as_me:1733: found $ac_dir/$ac_word" >&5
1734 break
1735 done
1739 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1740 if test -n "$ac_ct_CXX"; then
1741 echo "$as_me:1741: result: $ac_ct_CXX" >&5
1742 echo "${ECHO_T}$ac_ct_CXX" >&6
1743 else
1744 echo "$as_me:1744: result: no" >&5
1745 echo "${ECHO_T}no" >&6
1748 test -n "$ac_ct_CXX" && break
1749 done
1750 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1752 CXX=$ac_ct_CXX
1755 # Provide some information about the compiler.
1756 echo "$as_me:1756:" \
1757 "checking for C++ compiler version" >&5
1758 ac_compiler=`set X $ac_compile; echo $2`
1759 { (eval echo "$as_me:1759: \"$ac_compiler --version </dev/null >&5\"") >&5
1760 (eval $ac_compiler --version </dev/null >&5) 2>&5
1761 ac_status=$?
1762 echo "$as_me:1762: \$? = $ac_status" >&5
1763 (exit $ac_status); }
1764 { (eval echo "$as_me:1764: \"$ac_compiler -v </dev/null >&5\"") >&5
1765 (eval $ac_compiler -v </dev/null >&5) 2>&5
1766 ac_status=$?
1767 echo "$as_me:1767: \$? = $ac_status" >&5
1768 (exit $ac_status); }
1769 { (eval echo "$as_me:1769: \"$ac_compiler -V </dev/null >&5\"") >&5
1770 (eval $ac_compiler -V </dev/null >&5) 2>&5
1771 ac_status=$?
1772 echo "$as_me:1772: \$? = $ac_status" >&5
1773 (exit $ac_status); }
1775 echo "$as_me:1775: checking whether we are using the GNU C++ compiler" >&5
1776 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
1777 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
1778 echo $ECHO_N "(cached) $ECHO_C" >&6
1779 else
1780 cat >conftest.$ac_ext <<_ACEOF
1781 #line 1781 "configure"
1782 #include "confdefs.h"
1785 main ()
1787 #ifndef __GNUC__
1788 choke me
1789 #endif
1792 return 0;
1794 _ACEOF
1795 rm -f conftest.$ac_objext
1796 if { (eval echo "$as_me:1796: \"$ac_compile\"") >&5
1797 (eval $ac_compile) 2>&5
1798 ac_status=$?
1799 echo "$as_me:1799: \$? = $ac_status" >&5
1800 (exit $ac_status); } &&
1801 { ac_try='test -s conftest.$ac_objext'
1802 { (eval echo "$as_me:1802: \"$ac_try\"") >&5
1803 (eval $ac_try) 2>&5
1804 ac_status=$?
1805 echo "$as_me:1805: \$? = $ac_status" >&5
1806 (exit $ac_status); }; }; then
1807 ac_compiler_gnu=yes
1808 else
1809 echo "$as_me: failed program was:" >&5
1810 cat conftest.$ac_ext >&5
1811 ac_compiler_gnu=no
1813 rm -f conftest.$ac_objext conftest.$ac_ext
1814 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
1817 echo "$as_me:1817: result: $ac_cv_cxx_compiler_gnu" >&5
1818 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
1819 GXX=`test $ac_compiler_gnu = yes && echo yes`
1820 ac_test_CXXFLAGS=${CXXFLAGS+set}
1821 ac_save_CXXFLAGS=$CXXFLAGS
1822 CXXFLAGS="-g"
1823 echo "$as_me:1823: checking whether $CXX accepts -g" >&5
1824 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
1825 if test "${ac_cv_prog_cxx_g+set}" = set; then
1826 echo $ECHO_N "(cached) $ECHO_C" >&6
1827 else
1828 cat >conftest.$ac_ext <<_ACEOF
1829 #line 1829 "configure"
1830 #include "confdefs.h"
1833 main ()
1837 return 0;
1839 _ACEOF
1840 rm -f conftest.$ac_objext
1841 if { (eval echo "$as_me:1841: \"$ac_compile\"") >&5
1842 (eval $ac_compile) 2>&5
1843 ac_status=$?
1844 echo "$as_me:1844: \$? = $ac_status" >&5
1845 (exit $ac_status); } &&
1846 { ac_try='test -s conftest.$ac_objext'
1847 { (eval echo "$as_me:1847: \"$ac_try\"") >&5
1848 (eval $ac_try) 2>&5
1849 ac_status=$?
1850 echo "$as_me:1850: \$? = $ac_status" >&5
1851 (exit $ac_status); }; }; then
1852 ac_cv_prog_cxx_g=yes
1853 else
1854 echo "$as_me: failed program was:" >&5
1855 cat conftest.$ac_ext >&5
1856 ac_cv_prog_cxx_g=no
1858 rm -f conftest.$ac_objext conftest.$ac_ext
1860 echo "$as_me:1860: result: $ac_cv_prog_cxx_g" >&5
1861 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
1862 if test "$ac_test_CXXFLAGS" = set; then
1863 CXXFLAGS=$ac_save_CXXFLAGS
1864 elif test $ac_cv_prog_cxx_g = yes; then
1865 if test "$GXX" = yes; then
1866 CXXFLAGS="-g -O2"
1867 else
1868 CXXFLAGS="-g"
1870 else
1871 if test "$GXX" = yes; then
1872 CXXFLAGS="-O2"
1873 else
1874 CXXFLAGS=
1877 for ac_declaration in \
1879 '#include <stdlib.h>' \
1880 'extern "C" void std::exit (int) throw (); using std::exit;' \
1881 'extern "C" void std::exit (int); using std::exit;' \
1882 'extern "C" void exit (int) throw ();' \
1883 'extern "C" void exit (int);' \
1884 'void exit (int);'
1886 cat >conftest.$ac_ext <<_ACEOF
1887 #line 1887 "configure"
1888 #include "confdefs.h"
1889 #include <stdlib.h>
1890 $ac_declaration
1892 main ()
1894 exit (42);
1896 return 0;
1898 _ACEOF
1899 rm -f conftest.$ac_objext
1900 if { (eval echo "$as_me:1900: \"$ac_compile\"") >&5
1901 (eval $ac_compile) 2>&5
1902 ac_status=$?
1903 echo "$as_me:1903: \$? = $ac_status" >&5
1904 (exit $ac_status); } &&
1905 { ac_try='test -s conftest.$ac_objext'
1906 { (eval echo "$as_me:1906: \"$ac_try\"") >&5
1907 (eval $ac_try) 2>&5
1908 ac_status=$?
1909 echo "$as_me:1909: \$? = $ac_status" >&5
1910 (exit $ac_status); }; }; then
1912 else
1913 echo "$as_me: failed program was:" >&5
1914 cat conftest.$ac_ext >&5
1915 continue
1917 rm -f conftest.$ac_objext conftest.$ac_ext
1918 cat >conftest.$ac_ext <<_ACEOF
1919 #line 1919 "configure"
1920 #include "confdefs.h"
1921 $ac_declaration
1923 main ()
1925 exit (42);
1927 return 0;
1929 _ACEOF
1930 rm -f conftest.$ac_objext
1931 if { (eval echo "$as_me:1931: \"$ac_compile\"") >&5
1932 (eval $ac_compile) 2>&5
1933 ac_status=$?
1934 echo "$as_me:1934: \$? = $ac_status" >&5
1935 (exit $ac_status); } &&
1936 { ac_try='test -s conftest.$ac_objext'
1937 { (eval echo "$as_me:1937: \"$ac_try\"") >&5
1938 (eval $ac_try) 2>&5
1939 ac_status=$?
1940 echo "$as_me:1940: \$? = $ac_status" >&5
1941 (exit $ac_status); }; }; then
1942 break
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 done
1949 rm -f conftest*
1950 if test -n "$ac_declaration"; then
1951 echo '#ifdef __cplusplus' >>confdefs.h
1952 echo $ac_declaration >>confdefs.h
1953 echo '#endif' >>confdefs.h
1956 ac_ext=c
1957 ac_cpp='$CPP $CPPFLAGS'
1958 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1959 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1960 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1962 ac_ext=cc
1963 ac_cpp='$CXXCPP $CPPFLAGS'
1964 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1965 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1966 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1968 if test "$cross_compiling" = no; then
1969 echo "$as_me:1969: checking that C++ compiler can compile simple program" >&5
1970 echo $ECHO_N "checking that C++ compiler can compile simple program... $ECHO_C" >&6
1972 if test "$cross_compiling" = yes; then
1974 else
1975 cat >conftest.$ac_ext <<_ACEOF
1976 #line 1976 "configure"
1977 #include "confdefs.h"
1978 int main() { return 0; }
1979 _ACEOF
1980 rm -f conftest$ac_exeext
1981 if { (eval echo "$as_me:1981: \"$ac_link\"") >&5
1982 (eval $ac_link) 2>&5
1983 ac_status=$?
1984 echo "$as_me:1984: \$? = $ac_status" >&5
1985 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1986 { (eval echo "$as_me:1986: \"$ac_try\"") >&5
1987 (eval $ac_try) 2>&5
1988 ac_status=$?
1989 echo "$as_me:1989: \$? = $ac_status" >&5
1990 (exit $ac_status); }; }; then
1991 echo "$as_me:1991: result: yes" >&5
1992 echo "${ECHO_T}yes" >&6
1993 else
1994 echo "$as_me: program exited with status $ac_status" >&5
1995 echo "$as_me: failed program was:" >&5
1996 cat conftest.$ac_ext >&5
1997 echo "$as_me:1997: result: no" >&5
1998 echo "${ECHO_T}no" >&6;{ { echo "$as_me:1998: error: a working C++ compiler is required" >&5
1999 echo "$as_me: error: a working C++ compiler is required" >&2;}
2000 { (exit 1); exit 1; }; }
2002 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2004 if test "$cross_compiling" = no; then
2005 echo "$as_me:2005: checking that C++ static constructors and destructors are called" >&5
2006 echo $ECHO_N "checking that C++ static constructors and destructors are called... $ECHO_C" >&6
2008 if test "$cross_compiling" = yes; then
2010 else
2011 cat >conftest.$ac_ext <<_ACEOF
2012 #line 2012 "configure"
2013 #include "confdefs.h"
2015 extern "C" {
2016 void _exit(int);
2018 int i;
2019 struct A {
2020 char dummy;
2021 A() { i = 1; }
2022 ~A() { if (i == 1) _exit(0); }
2024 A a;
2025 int main() { return 1; }
2027 _ACEOF
2028 rm -f conftest$ac_exeext
2029 if { (eval echo "$as_me:2029: \"$ac_link\"") >&5
2030 (eval $ac_link) 2>&5
2031 ac_status=$?
2032 echo "$as_me:2032: \$? = $ac_status" >&5
2033 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2034 { (eval echo "$as_me:2034: \"$ac_try\"") >&5
2035 (eval $ac_try) 2>&5
2036 ac_status=$?
2037 echo "$as_me:2037: \$? = $ac_status" >&5
2038 (exit $ac_status); }; }; then
2039 echo "$as_me:2039: result: yes" >&5
2040 echo "${ECHO_T}yes" >&6
2041 else
2042 echo "$as_me: program exited with status $ac_status" >&5
2043 echo "$as_me: failed program was:" >&5
2044 cat conftest.$ac_ext >&5
2045 echo "$as_me:2045: result: no" >&5
2046 echo "${ECHO_T}no" >&6;{ { echo "$as_me:2046: error: a working C++ compiler is required" >&5
2047 echo "$as_me: error: a working C++ compiler is required" >&2;}
2048 { (exit 1); exit 1; }; }
2050 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2052 echo "$as_me:2052: checking that header files support C++" >&5
2053 echo $ECHO_N "checking that header files support C++... $ECHO_C" >&6
2054 cat >conftest.$ac_ext <<_ACEOF
2055 #line 2055 "configure"
2056 #include "confdefs.h"
2057 #include <stdio.h>
2059 main ()
2061 fopen(0, 0);
2063 return 0;
2065 _ACEOF
2066 rm -f conftest.$ac_objext conftest$ac_exeext
2067 if { (eval echo "$as_me:2067: \"$ac_link\"") >&5
2068 (eval $ac_link) 2>&5
2069 ac_status=$?
2070 echo "$as_me:2070: \$? = $ac_status" >&5
2071 (exit $ac_status); } &&
2072 { ac_try='test -s conftest$ac_exeext'
2073 { (eval echo "$as_me:2073: \"$ac_try\"") >&5
2074 (eval $ac_try) 2>&5
2075 ac_status=$?
2076 echo "$as_me:2076: \$? = $ac_status" >&5
2077 (exit $ac_status); }; }; then
2078 echo "$as_me:2078: result: yes" >&5
2079 echo "${ECHO_T}yes" >&6
2080 else
2081 echo "$as_me: failed program was:" >&5
2082 cat conftest.$ac_ext >&5
2083 echo "$as_me:2083: result: no" >&5
2084 echo "${ECHO_T}no" >&6;{ { echo "$as_me:2084: 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
2085 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;}
2086 { (exit 1); exit 1; }; }
2088 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2089 ac_ext=c
2090 ac_cpp='$CPP $CPPFLAGS'
2091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2095 echo "$as_me:2095: checking whether character set is EBCDIC" >&5
2096 echo $ECHO_N "checking whether character set is EBCDIC... $ECHO_C" >&6
2097 cat >conftest.$ac_ext <<_ACEOF
2098 #line 2098 "configure"
2099 #include "confdefs.h"
2102 main ()
2104 /* Treat any failure as ASCII for compatibility with existing art.
2105 Use compile-time rather than run-time tests for cross-compiler
2106 tolerance. */
2107 #if '0' != 240
2108 make an error "Character set is not EBCDIC"
2109 #endif
2111 return 0;
2113 _ACEOF
2114 rm -f conftest.$ac_objext
2115 if { (eval echo "$as_me:2115: \"$ac_compile\"") >&5
2116 (eval $ac_compile) 2>&5
2117 ac_status=$?
2118 echo "$as_me:2118: \$? = $ac_status" >&5
2119 (exit $ac_status); } &&
2120 { ac_try='test -s conftest.$ac_objext'
2121 { (eval echo "$as_me:2121: \"$ac_try\"") >&5
2122 (eval $ac_try) 2>&5
2123 ac_status=$?
2124 echo "$as_me:2124: \$? = $ac_status" >&5
2125 (exit $ac_status); }; }; then
2126 groff_cv_ebcdic="yes"
2127 TTYDEVDIRS="font/devcp1047"
2128 echo "$as_me:2128: result: yes" >&5
2129 echo "${ECHO_T}yes" >&6
2131 cat >>confdefs.h <<\EOF
2132 #define IS_EBCDIC_HOST 1
2135 else
2136 echo "$as_me: failed program was:" >&5
2137 cat conftest.$ac_ext >&5
2138 groff_cv_ebcdic="no"
2139 TTYDEVDIRS="font/devascii font/devlatin1"
2140 OTHERDEVDIRS="font/devlj4 font/devlbp"
2141 echo "$as_me:2141: result: no" >&5
2142 echo "${ECHO_T}no" >&6
2144 rm -f conftest.$ac_objext conftest.$ac_ext
2146 if test "$groff_cv_ebcdic" = "yes"; then
2147 echo "$as_me:2147: checking for OS/390 Unix" >&5
2148 echo $ECHO_N "checking for OS/390 Unix... $ECHO_C" >&6
2149 case `uname` in
2150 OS/390)
2151 CFLAGS="$CFLAGS -D_ALL_SOURCE"
2152 echo "$as_me:2152: result: yes" >&5
2153 echo "${ECHO_T}yes" >&6 ;;
2155 echo "$as_me:2155: result: no" >&5
2156 echo "${ECHO_T}no" >&6 ;;
2157 esac
2159 if test -z "$PSPRINT"; then
2160 for ac_prog in lpr
2162 # Extract the first word of "$ac_prog", so it can be a program name with args.
2163 set dummy $ac_prog; ac_word=$2
2164 echo "$as_me:2164: checking for $ac_word" >&5
2165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2166 if test "${ac_cv_prog_LPR+set}" = set; then
2167 echo $ECHO_N "(cached) $ECHO_C" >&6
2168 else
2169 if test -n "$LPR"; then
2170 ac_cv_prog_LPR="$LPR" # Let the user override the test.
2171 else
2172 ac_save_IFS=$IFS; IFS=$ac_path_separator
2173 ac_dummy="$PATH"
2174 for ac_dir in $ac_dummy; do
2175 IFS=$ac_save_IFS
2176 test -z "$ac_dir" && ac_dir=.
2177 $as_executable_p "$ac_dir/$ac_word" || continue
2178 ac_cv_prog_LPR="$ac_prog"
2179 echo "$as_me:2179: found $ac_dir/$ac_word" >&5
2180 break
2181 done
2185 LPR=$ac_cv_prog_LPR
2186 if test -n "$LPR"; then
2187 echo "$as_me:2187: result: $LPR" >&5
2188 echo "${ECHO_T}$LPR" >&6
2189 else
2190 echo "$as_me:2190: result: no" >&5
2191 echo "${ECHO_T}no" >&6
2194 test -n "$LPR" && break
2195 done
2197 for ac_prog in lp
2199 # Extract the first word of "$ac_prog", so it can be a program name with args.
2200 set dummy $ac_prog; ac_word=$2
2201 echo "$as_me:2201: checking for $ac_word" >&5
2202 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2203 if test "${ac_cv_prog_LP+set}" = set; then
2204 echo $ECHO_N "(cached) $ECHO_C" >&6
2205 else
2206 if test -n "$LP"; then
2207 ac_cv_prog_LP="$LP" # Let the user override the test.
2208 else
2209 ac_save_IFS=$IFS; IFS=$ac_path_separator
2210 ac_dummy="$PATH"
2211 for ac_dir in $ac_dummy; do
2212 IFS=$ac_save_IFS
2213 test -z "$ac_dir" && ac_dir=.
2214 $as_executable_p "$ac_dir/$ac_word" || continue
2215 ac_cv_prog_LP="$ac_prog"
2216 echo "$as_me:2216: found $ac_dir/$ac_word" >&5
2217 break
2218 done
2222 LP=$ac_cv_prog_LP
2223 if test -n "$LP"; then
2224 echo "$as_me:2224: result: $LP" >&5
2225 echo "${ECHO_T}$LP" >&6
2226 else
2227 echo "$as_me:2227: result: no" >&5
2228 echo "${ECHO_T}no" >&6
2231 test -n "$LP" && break
2232 done
2234 if test -n "$LPR" && test -n "$LP"; then
2235 # HP-UX provides an lpr command that emulates lpr using lp,
2236 # but it doesn't have lpq; in this case we want to use lp
2237 # rather than lpr.
2238 for ac_prog in lpq
2240 # Extract the first word of "$ac_prog", so it can be a program name with args.
2241 set dummy $ac_prog; ac_word=$2
2242 echo "$as_me:2242: checking for $ac_word" >&5
2243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2244 if test "${ac_cv_prog_LPQ+set}" = set; then
2245 echo $ECHO_N "(cached) $ECHO_C" >&6
2246 else
2247 if test -n "$LPQ"; then
2248 ac_cv_prog_LPQ="$LPQ" # Let the user override the test.
2249 else
2250 ac_save_IFS=$IFS; IFS=$ac_path_separator
2251 ac_dummy="$PATH"
2252 for ac_dir in $ac_dummy; do
2253 IFS=$ac_save_IFS
2254 test -z "$ac_dir" && ac_dir=.
2255 $as_executable_p "$ac_dir/$ac_word" || continue
2256 ac_cv_prog_LPQ="$ac_prog"
2257 echo "$as_me:2257: found $ac_dir/$ac_word" >&5
2258 break
2259 done
2263 LPQ=$ac_cv_prog_LPQ
2264 if test -n "$LPQ"; then
2265 echo "$as_me:2265: result: $LPQ" >&5
2266 echo "${ECHO_T}$LPQ" >&6
2267 else
2268 echo "$as_me:2268: result: no" >&5
2269 echo "${ECHO_T}no" >&6
2272 test -n "$LPQ" && break
2273 done
2275 test -n "$LPQ" || LPR=
2277 if test -n "$LPR"; then
2278 PSPRINT="$LPR"
2279 elif test -n "$LP"; then
2280 PSPRINT="$LP"
2284 echo "$as_me:2284: checking for command to use for printing PostScript files" >&5
2285 echo $ECHO_N "checking for command to use for printing PostScript files... $ECHO_C" >&6
2286 echo "$as_me:2286: result: $PSPRINT" >&5
2287 echo "${ECHO_T}$PSPRINT" >&6
2288 # Figure out DVIPRINT from PSPRINT.
2289 echo "$as_me:2289: checking for command to use for printing dvi files" >&5
2290 echo $ECHO_N "checking for command to use for printing dvi files... $ECHO_C" >&6
2291 if test -n "$PSPRINT" && test -z "$DVIPRINT"; then
2292 if test "X$PSPRINT" = "Xlpr"; then
2293 DVIPRINT="lpr -d"
2294 else
2295 DVIPRINT="$PSPRINT"
2299 echo "$as_me:2299: result: $DVIPRINT" >&5
2300 echo "${ECHO_T}$DVIPRINT" >&6
2301 # Extract the first word of "perl", so it can be a program name with args.
2302 set dummy perl; ac_word=$2
2303 echo "$as_me:2303: checking for $ac_word" >&5
2304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2305 if test "${ac_cv_path_PERLPATH+set}" = set; then
2306 echo $ECHO_N "(cached) $ECHO_C" >&6
2307 else
2308 case $PERLPATH in
2309 [\\/]* | ?:[\\/]*)
2310 ac_cv_path_PERLPATH="$PERLPATH" # Let the user override the test with a path.
2313 ac_save_IFS=$IFS; IFS=$ac_path_separator
2314 ac_dummy="$PATH"
2315 for ac_dir in $ac_dummy; do
2316 IFS=$ac_save_IFS
2317 test -z "$ac_dir" && ac_dir=.
2318 if $as_executable_p "$ac_dir/$ac_word"; then
2319 ac_cv_path_PERLPATH="$ac_dir/$ac_word"
2320 echo "$as_me:2320: found $ac_dir/$ac_word" >&5
2321 break
2323 done
2325 test -z "$ac_cv_path_PERLPATH" && ac_cv_path_PERLPATH="/usr/bin/perl"
2327 esac
2329 PERLPATH=$ac_cv_path_PERLPATH
2331 if test -n "$PERLPATH"; then
2332 echo "$as_me:2332: result: $PERLPATH" >&5
2333 echo "${ECHO_T}$PERLPATH" >&6
2334 else
2335 echo "$as_me:2335: result: no" >&5
2336 echo "${ECHO_T}no" >&6
2339 for ac_prog in byacc 'bison -y'
2341 # Extract the first word of "$ac_prog", so it can be a program name with args.
2342 set dummy $ac_prog; ac_word=$2
2343 echo "$as_me:2343: checking for $ac_word" >&5
2344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2345 if test "${ac_cv_prog_YACC+set}" = set; then
2346 echo $ECHO_N "(cached) $ECHO_C" >&6
2347 else
2348 if test -n "$YACC"; then
2349 ac_cv_prog_YACC="$YACC" # Let the user override the test.
2350 else
2351 ac_save_IFS=$IFS; IFS=$ac_path_separator
2352 ac_dummy="$PATH"
2353 for ac_dir in $ac_dummy; do
2354 IFS=$ac_save_IFS
2355 test -z "$ac_dir" && ac_dir=.
2356 $as_executable_p "$ac_dir/$ac_word" || continue
2357 ac_cv_prog_YACC="$ac_prog"
2358 echo "$as_me:2358: found $ac_dir/$ac_word" >&5
2359 break
2360 done
2364 YACC=$ac_cv_prog_YACC
2365 if test -n "$YACC"; then
2366 echo "$as_me:2366: result: $YACC" >&5
2367 echo "${ECHO_T}$YACC" >&6
2368 else
2369 echo "$as_me:2369: result: no" >&5
2370 echo "${ECHO_T}no" >&6
2373 test -n "$YACC" && break
2374 done
2375 test -n "$YACC" || YACC="yacc"
2377 if test -n "$ac_tool_prefix"; then
2378 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2379 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2380 echo "$as_me:2380: checking for $ac_word" >&5
2381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2382 if test "${ac_cv_prog_RANLIB+set}" = set; then
2383 echo $ECHO_N "(cached) $ECHO_C" >&6
2384 else
2385 if test -n "$RANLIB"; then
2386 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2387 else
2388 ac_save_IFS=$IFS; IFS=$ac_path_separator
2389 ac_dummy="$PATH"
2390 for ac_dir in $ac_dummy; do
2391 IFS=$ac_save_IFS
2392 test -z "$ac_dir" && ac_dir=.
2393 $as_executable_p "$ac_dir/$ac_word" || continue
2394 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2395 echo "$as_me:2395: found $ac_dir/$ac_word" >&5
2396 break
2397 done
2401 RANLIB=$ac_cv_prog_RANLIB
2402 if test -n "$RANLIB"; then
2403 echo "$as_me:2403: result: $RANLIB" >&5
2404 echo "${ECHO_T}$RANLIB" >&6
2405 else
2406 echo "$as_me:2406: result: no" >&5
2407 echo "${ECHO_T}no" >&6
2411 if test -z "$ac_cv_prog_RANLIB"; then
2412 ac_ct_RANLIB=$RANLIB
2413 # Extract the first word of "ranlib", so it can be a program name with args.
2414 set dummy ranlib; ac_word=$2
2415 echo "$as_me:2415: checking for $ac_word" >&5
2416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2417 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2418 echo $ECHO_N "(cached) $ECHO_C" >&6
2419 else
2420 if test -n "$ac_ct_RANLIB"; then
2421 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2422 else
2423 ac_save_IFS=$IFS; IFS=$ac_path_separator
2424 ac_dummy="$PATH"
2425 for ac_dir in $ac_dummy; do
2426 IFS=$ac_save_IFS
2427 test -z "$ac_dir" && ac_dir=.
2428 $as_executable_p "$ac_dir/$ac_word" || continue
2429 ac_cv_prog_ac_ct_RANLIB="ranlib"
2430 echo "$as_me:2430: found $ac_dir/$ac_word" >&5
2431 break
2432 done
2434 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2437 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2438 if test -n "$ac_ct_RANLIB"; then
2439 echo "$as_me:2439: result: $ac_ct_RANLIB" >&5
2440 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2441 else
2442 echo "$as_me:2442: result: no" >&5
2443 echo "${ECHO_T}no" >&6
2446 RANLIB=$ac_ct_RANLIB
2447 else
2448 RANLIB="$ac_cv_prog_RANLIB"
2451 ac_aux_dir=
2452 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2453 if test -f $ac_dir/install-sh; then
2454 ac_aux_dir=$ac_dir
2455 ac_install_sh="$ac_aux_dir/install-sh -c"
2456 break
2457 elif test -f $ac_dir/install.sh; then
2458 ac_aux_dir=$ac_dir
2459 ac_install_sh="$ac_aux_dir/install.sh -c"
2460 break
2461 elif test -f $ac_dir/shtool; then
2462 ac_aux_dir=$ac_dir
2463 ac_install_sh="$ac_aux_dir/shtool install -c"
2464 break
2466 done
2467 if test -z "$ac_aux_dir"; then
2468 { { echo "$as_me:2468: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2469 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2470 { (exit 1); exit 1; }; }
2472 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2473 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2474 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2476 ac_dir=`cd $ac_aux_dir; pwd`
2477 ac_install_sh="$ac_dir/install-sh -c"
2478 for ac_prog in install-info
2480 # Extract the first word of "$ac_prog", so it can be a program name with args.
2481 set dummy $ac_prog; ac_word=$2
2482 echo "$as_me:2482: checking for $ac_word" >&5
2483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2484 if test "${ac_cv_prog_INSTALL_INFO+set}" = set; then
2485 echo $ECHO_N "(cached) $ECHO_C" >&6
2486 else
2487 if test -n "$INSTALL_INFO"; then
2488 ac_cv_prog_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test.
2489 else
2490 ac_save_IFS=$IFS; IFS=$ac_path_separator
2491 ac_dummy="$PATH"
2492 for ac_dir in $ac_dummy; do
2493 IFS=$ac_save_IFS
2494 test -z "$ac_dir" && ac_dir=.
2495 $as_executable_p "$ac_dir/$ac_word" || continue
2496 ac_cv_prog_INSTALL_INFO="$ac_prog"
2497 echo "$as_me:2497: found $ac_dir/$ac_word" >&5
2498 break
2499 done
2503 INSTALL_INFO=$ac_cv_prog_INSTALL_INFO
2504 if test -n "$INSTALL_INFO"; then
2505 echo "$as_me:2505: result: $INSTALL_INFO" >&5
2506 echo "${ECHO_T}$INSTALL_INFO" >&6
2507 else
2508 echo "$as_me:2508: result: no" >&5
2509 echo "${ECHO_T}no" >&6
2512 test -n "$INSTALL_INFO" && break
2513 done
2514 test -n "$INSTALL_INFO" || INSTALL_INFO=":"
2516 # Find a good install program. We prefer a C program (faster),
2517 # so one script is as good as another. But avoid the broken or
2518 # incompatible versions:
2519 # SysV /etc/install, /usr/sbin/install
2520 # SunOS /usr/etc/install
2521 # IRIX /sbin/install
2522 # AIX /bin/install
2523 # AmigaOS /C/install, which installs bootblocks on floppy discs
2524 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2525 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2526 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2527 # ./install, which can be erroneously created by make from ./install.sh.
2528 echo "$as_me:2528: checking for a BSD compatible install" >&5
2529 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
2530 if test -z "$INSTALL"; then
2531 if test "${ac_cv_path_install+set}" = set; then
2532 echo $ECHO_N "(cached) $ECHO_C" >&6
2533 else
2534 ac_save_IFS=$IFS; IFS=$ac_path_separator
2535 for ac_dir in $PATH; do
2536 IFS=$ac_save_IFS
2537 # Account for people who put trailing slashes in PATH elements.
2538 case $ac_dir/ in
2539 / | ./ | .// | /cC/* \
2540 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
2541 | /usr/ucb/* ) ;;
2543 # OSF1 and SCO ODT 3.0 have their own names for install.
2544 # Don't use installbsd from OSF since it installs stuff as root
2545 # by default.
2546 for ac_prog in ginstall scoinst install; do
2547 if $as_executable_p "$ac_dir/$ac_prog"; then
2548 if test $ac_prog = install &&
2549 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2550 # AIX install. It has an incompatible calling convention.
2552 elif test $ac_prog = install &&
2553 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2554 # program-specific install script used by HP pwplus--don't use.
2556 else
2557 ac_cv_path_install="$ac_dir/$ac_prog -c"
2558 break 2
2561 done
2563 esac
2564 done
2567 if test "${ac_cv_path_install+set}" = set; then
2568 INSTALL=$ac_cv_path_install
2569 else
2570 # As a last resort, use the slow shell script. We don't cache a
2571 # path for INSTALL within a source directory, because that will
2572 # break other packages using the cache if that directory is
2573 # removed, or if the path is relative.
2574 INSTALL=$ac_install_sh
2577 echo "$as_me:2577: result: $INSTALL" >&5
2578 echo "${ECHO_T}$INSTALL" >&6
2580 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2581 # It thinks the first close brace ends the variable substitution.
2582 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2584 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2586 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2588 echo "$as_me:2588: checking whether ln -s works" >&5
2589 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2590 LN_S=$as_ln_s
2591 if test "$LN_S" = "ln -s"; then
2592 echo "$as_me:2592: result: yes" >&5
2593 echo "${ECHO_T}yes" >&6
2594 else
2595 echo "$as_me:2595: result: no, using $LN_S" >&5
2596 echo "${ECHO_T}no, using $LN_S" >&6
2599 echo "$as_me:2599: checking for csh hash hack" >&5
2600 echo $ECHO_N "checking for csh hash hack... $ECHO_C" >&6
2601 cat <<EOF >conftest.sh
2602 #!/bin/sh
2603 true || exit 0
2604 export PATH || exit 0
2605 exit 1
2607 chmod +x conftest.sh
2608 if echo ./conftest.sh | (csh >/dev/null 2>&1) >/dev/null 2>&1; then
2609 echo "$as_me:2609: result: yes" >&5
2610 echo "${ECHO_T}yes" >&6; SH_SCRIPT_SED_CMD='1s/.*/:/'
2611 else
2612 echo "$as_me:2612: result: no" >&5
2613 echo "${ECHO_T}no" >&6; SH_SCRIPT_SED_CMD='1s/a/a/'
2615 rm -f conftest.sh
2617 ac_ext=c
2618 ac_cpp='$CPP $CPPFLAGS'
2619 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2620 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2621 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2622 echo "$as_me:2622: checking how to run the C preprocessor" >&5
2623 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2624 # On Suns, sometimes $CPP names a directory.
2625 if test -n "$CPP" && test -d "$CPP"; then
2626 CPP=
2628 if test -z "$CPP"; then
2629 if test "${ac_cv_prog_CPP+set}" = set; then
2630 echo $ECHO_N "(cached) $ECHO_C" >&6
2631 else
2632 # Double quotes because CPP needs to be expanded
2633 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2635 ac_preproc_ok=false
2636 for ac_c_preproc_warn_flag in '' yes
2638 # Use a header file that comes with gcc, so configuring glibc
2639 # with a fresh cross-compiler works.
2640 # On the NeXT, cc -E runs the code through the compiler's parser,
2641 # not just through cpp. "Syntax error" is here to catch this case.
2642 cat >conftest.$ac_ext <<_ACEOF
2643 #line 2643 "configure"
2644 #include "confdefs.h"
2645 #include <assert.h>
2646 Syntax error
2647 _ACEOF
2648 if { (eval echo "$as_me:2648: \"$ac_cpp conftest.$ac_ext\"") >&5
2649 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2650 ac_status=$?
2651 egrep -v '^ *\+' conftest.er1 >conftest.err
2652 rm -f conftest.er1
2653 cat conftest.err >&5
2654 echo "$as_me:2654: \$? = $ac_status" >&5
2655 (exit $ac_status); } >/dev/null; then
2656 if test -s conftest.err; then
2657 ac_cpp_err=$ac_c_preproc_warn_flag
2658 else
2659 ac_cpp_err=
2661 else
2662 ac_cpp_err=yes
2664 if test -z "$ac_cpp_err"; then
2666 else
2667 echo "$as_me: failed program was:" >&5
2668 cat conftest.$ac_ext >&5
2669 # Broken: fails on valid input.
2670 continue
2672 rm -f conftest.err conftest.$ac_ext
2674 # OK, works on sane cases. Now check whether non-existent headers
2675 # can be detected and how.
2676 cat >conftest.$ac_ext <<_ACEOF
2677 #line 2677 "configure"
2678 #include "confdefs.h"
2679 #include <ac_nonexistent.h>
2680 _ACEOF
2681 if { (eval echo "$as_me:2681: \"$ac_cpp conftest.$ac_ext\"") >&5
2682 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2683 ac_status=$?
2684 egrep -v '^ *\+' conftest.er1 >conftest.err
2685 rm -f conftest.er1
2686 cat conftest.err >&5
2687 echo "$as_me:2687: \$? = $ac_status" >&5
2688 (exit $ac_status); } >/dev/null; then
2689 if test -s conftest.err; then
2690 ac_cpp_err=$ac_c_preproc_warn_flag
2691 else
2692 ac_cpp_err=
2694 else
2695 ac_cpp_err=yes
2697 if test -z "$ac_cpp_err"; then
2698 # Broken: success on invalid input.
2699 continue
2700 else
2701 echo "$as_me: failed program was:" >&5
2702 cat conftest.$ac_ext >&5
2703 # Passes both tests.
2704 ac_preproc_ok=:
2705 break
2707 rm -f conftest.err conftest.$ac_ext
2709 done
2710 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2711 rm -f conftest.err conftest.$ac_ext
2712 if $ac_preproc_ok; then
2713 break
2716 done
2717 ac_cv_prog_CPP=$CPP
2720 CPP=$ac_cv_prog_CPP
2721 else
2722 ac_cv_prog_CPP=$CPP
2724 echo "$as_me:2724: result: $CPP" >&5
2725 echo "${ECHO_T}$CPP" >&6
2726 ac_preproc_ok=false
2727 for ac_c_preproc_warn_flag in '' yes
2729 # Use a header file that comes with gcc, so configuring glibc
2730 # with a fresh cross-compiler works.
2731 # On the NeXT, cc -E runs the code through the compiler's parser,
2732 # not just through cpp. "Syntax error" is here to catch this case.
2733 cat >conftest.$ac_ext <<_ACEOF
2734 #line 2734 "configure"
2735 #include "confdefs.h"
2736 #include <assert.h>
2737 Syntax error
2738 _ACEOF
2739 if { (eval echo "$as_me:2739: \"$ac_cpp conftest.$ac_ext\"") >&5
2740 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2741 ac_status=$?
2742 egrep -v '^ *\+' conftest.er1 >conftest.err
2743 rm -f conftest.er1
2744 cat conftest.err >&5
2745 echo "$as_me:2745: \$? = $ac_status" >&5
2746 (exit $ac_status); } >/dev/null; then
2747 if test -s conftest.err; then
2748 ac_cpp_err=$ac_c_preproc_warn_flag
2749 else
2750 ac_cpp_err=
2752 else
2753 ac_cpp_err=yes
2755 if test -z "$ac_cpp_err"; then
2757 else
2758 echo "$as_me: failed program was:" >&5
2759 cat conftest.$ac_ext >&5
2760 # Broken: fails on valid input.
2761 continue
2763 rm -f conftest.err conftest.$ac_ext
2765 # OK, works on sane cases. Now check whether non-existent headers
2766 # can be detected and how.
2767 cat >conftest.$ac_ext <<_ACEOF
2768 #line 2768 "configure"
2769 #include "confdefs.h"
2770 #include <ac_nonexistent.h>
2771 _ACEOF
2772 if { (eval echo "$as_me:2772: \"$ac_cpp conftest.$ac_ext\"") >&5
2773 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2774 ac_status=$?
2775 egrep -v '^ *\+' conftest.er1 >conftest.err
2776 rm -f conftest.er1
2777 cat conftest.err >&5
2778 echo "$as_me:2778: \$? = $ac_status" >&5
2779 (exit $ac_status); } >/dev/null; then
2780 if test -s conftest.err; then
2781 ac_cpp_err=$ac_c_preproc_warn_flag
2782 else
2783 ac_cpp_err=
2785 else
2786 ac_cpp_err=yes
2788 if test -z "$ac_cpp_err"; then
2789 # Broken: success on invalid input.
2790 continue
2791 else
2792 echo "$as_me: failed program was:" >&5
2793 cat conftest.$ac_ext >&5
2794 # Passes both tests.
2795 ac_preproc_ok=:
2796 break
2798 rm -f conftest.err conftest.$ac_ext
2800 done
2801 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2802 rm -f conftest.err conftest.$ac_ext
2803 if $ac_preproc_ok; then
2805 else
2806 { { echo "$as_me:2806: error: C preprocessor \"$CPP\" fails sanity check" >&5
2807 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2808 { (exit 1); exit 1; }; }
2811 ac_ext=c
2812 ac_cpp='$CPP $CPPFLAGS'
2813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2817 for ac_header in stdlib.h unistd.h dirent.h limits.h sys/dir.h \
2818 string.h strings.h math.h stdint.h sys/time.h
2820 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2821 echo "$as_me:2821: checking for $ac_header" >&5
2822 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2823 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2824 echo $ECHO_N "(cached) $ECHO_C" >&6
2825 else
2826 cat >conftest.$ac_ext <<_ACEOF
2827 #line 2827 "configure"
2828 #include "confdefs.h"
2829 #include <$ac_header>
2830 _ACEOF
2831 if { (eval echo "$as_me:2831: \"$ac_cpp conftest.$ac_ext\"") >&5
2832 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2833 ac_status=$?
2834 egrep -v '^ *\+' conftest.er1 >conftest.err
2835 rm -f conftest.er1
2836 cat conftest.err >&5
2837 echo "$as_me:2837: \$? = $ac_status" >&5
2838 (exit $ac_status); } >/dev/null; then
2839 if test -s conftest.err; then
2840 ac_cpp_err=$ac_c_preproc_warn_flag
2841 else
2842 ac_cpp_err=
2844 else
2845 ac_cpp_err=yes
2847 if test -z "$ac_cpp_err"; then
2848 eval "$as_ac_Header=yes"
2849 else
2850 echo "$as_me: failed program was:" >&5
2851 cat conftest.$ac_ext >&5
2852 eval "$as_ac_Header=no"
2854 rm -f conftest.err conftest.$ac_ext
2856 echo "$as_me:2856: result: `eval echo '${'$as_ac_Header'}'`" >&5
2857 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2858 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2859 cat >>confdefs.h <<EOF
2860 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2864 done
2866 echo "$as_me:2866: checking for ISC 3.x or 4.x" >&5
2867 echo $ECHO_N "checking for ISC 3.x or 4.x... $ECHO_C" >&6
2868 if grep '[34]\.' /usr/options/cb.name >/dev/null 2>&1
2869 then
2870 echo "$as_me:2870: result: yes" >&5
2871 echo "${ECHO_T}yes" >&6
2873 cat >>confdefs.h <<\EOF
2874 #define _SYSV3 1
2877 else
2878 echo "$as_me:2878: result: no" >&5
2879 echo "${ECHO_T}no" >&6
2881 echo "$as_me:2881: checking whether -D_POSIX_SOURCE is necessary" >&5
2882 echo $ECHO_N "checking whether -D_POSIX_SOURCE is necessary... $ECHO_C" >&6
2883 ac_ext=cc
2884 ac_cpp='$CXXCPP $CPPFLAGS'
2885 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2886 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2887 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2889 cat >conftest.$ac_ext <<_ACEOF
2890 #line 2890 "configure"
2891 #include "confdefs.h"
2892 #include <stdio.h>
2893 extern "C" { void fileno(int); }
2895 main ()
2899 return 0;
2901 _ACEOF
2902 rm -f conftest.$ac_objext
2903 if { (eval echo "$as_me:2903: \"$ac_compile\"") >&5
2904 (eval $ac_compile) 2>&5
2905 ac_status=$?
2906 echo "$as_me:2906: \$? = $ac_status" >&5
2907 (exit $ac_status); } &&
2908 { ac_try='test -s conftest.$ac_objext'
2909 { (eval echo "$as_me:2909: \"$ac_try\"") >&5
2910 (eval $ac_try) 2>&5
2911 ac_status=$?
2912 echo "$as_me:2912: \$? = $ac_status" >&5
2913 (exit $ac_status); }; }; then
2914 echo "$as_me:2914: result: yes" >&5
2915 echo "${ECHO_T}yes" >&6;
2916 cat >>confdefs.h <<\EOF
2917 #define _POSIX_SOURCE 1
2920 else
2921 echo "$as_me: failed program was:" >&5
2922 cat conftest.$ac_ext >&5
2923 echo "$as_me:2923: result: no" >&5
2924 echo "${ECHO_T}no" >&6
2926 rm -f conftest.$ac_objext conftest.$ac_ext
2927 ac_ext=c
2928 ac_cpp='$CPP $CPPFLAGS'
2929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2931 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2933 ac_ext=cc
2934 ac_cpp='$CXXCPP $CPPFLAGS'
2935 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2936 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2937 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2939 echo "$as_me:2939: checking for return type of srand" >&5
2940 echo $ECHO_N "checking for return type of srand... $ECHO_C" >&6
2941 cat >conftest.$ac_ext <<_ACEOF
2942 #line 2942 "configure"
2943 #include "confdefs.h"
2944 #include <stdlib.h>
2945 extern "C" { void srand(unsigned int); }
2947 main ()
2951 return 0;
2953 _ACEOF
2954 rm -f conftest.$ac_objext
2955 if { (eval echo "$as_me:2955: \"$ac_compile\"") >&5
2956 (eval $ac_compile) 2>&5
2957 ac_status=$?
2958 echo "$as_me:2958: \$? = $ac_status" >&5
2959 (exit $ac_status); } &&
2960 { ac_try='test -s conftest.$ac_objext'
2961 { (eval echo "$as_me:2961: \"$ac_try\"") >&5
2962 (eval $ac_try) 2>&5
2963 ac_status=$?
2964 echo "$as_me:2964: \$? = $ac_status" >&5
2965 (exit $ac_status); }; }; then
2966 echo "$as_me:2966: result: void" >&5
2967 echo "${ECHO_T}void" >&6;
2968 cat >>confdefs.h <<\EOF
2969 #define RET_TYPE_SRAND_IS_VOID 1
2972 else
2973 echo "$as_me: failed program was:" >&5
2974 cat conftest.$ac_ext >&5
2975 echo "$as_me:2975: result: int" >&5
2976 echo "${ECHO_T}int" >&6
2978 rm -f conftest.$ac_objext conftest.$ac_ext
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
2985 echo "$as_me:2985: checking whether gettimeofday must be declared" >&5
2986 echo $ECHO_N "checking whether gettimeofday must be declared... $ECHO_C" >&6
2987 ac_ext=cc
2988 ac_cpp='$CXXCPP $CPPFLAGS'
2989 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2990 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2991 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2993 if test "${groff_cv_decl_needed_gettimeofday+set}" = set; then
2994 echo $ECHO_N "(cached) $ECHO_C" >&6
2995 else
2996 cat >conftest.$ac_ext <<_ACEOF
2997 #line 2997 "configure"
2998 #include "confdefs.h"
3000 #include <stdio.h>
3001 #ifdef HAVE_STRING_H
3002 #include <string.h>
3003 #endif
3004 #ifdef HAVE_STRINGS_H
3005 #include <strings.h>
3006 #endif
3007 #ifdef HAVE_STDLIB_H
3008 #include <stdlib.h>
3009 #endif
3010 #ifdef HAVE_SYS_TIME_H
3011 #include <sys/time.h>
3012 #endif
3013 #ifdef HAVE_UNISTD_H
3014 #include <unistd.h>
3015 #endif
3016 #ifdef HAVE_MATH_H
3017 #include <math.h>
3018 #endif
3020 main ()
3022 #ifndef gettimeofday
3023 char *p = (char *) gettimeofday;
3024 #endif
3026 return 0;
3028 _ACEOF
3029 rm -f conftest.$ac_objext
3030 if { (eval echo "$as_me:3030: \"$ac_compile\"") >&5
3031 (eval $ac_compile) 2>&5
3032 ac_status=$?
3033 echo "$as_me:3033: \$? = $ac_status" >&5
3034 (exit $ac_status); } &&
3035 { ac_try='test -s conftest.$ac_objext'
3036 { (eval echo "$as_me:3036: \"$ac_try\"") >&5
3037 (eval $ac_try) 2>&5
3038 ac_status=$?
3039 echo "$as_me:3039: \$? = $ac_status" >&5
3040 (exit $ac_status); }; }; then
3041 groff_cv_decl_needed_gettimeofday=no
3042 else
3043 echo "$as_me: failed program was:" >&5
3044 cat conftest.$ac_ext >&5
3045 groff_cv_decl_needed_gettimeofday=yes
3047 rm -f conftest.$ac_objext conftest.$ac_ext
3050 echo "$as_me:3050: result: $groff_cv_decl_needed_gettimeofday" >&5
3051 echo "${ECHO_T}$groff_cv_decl_needed_gettimeofday" >&6
3052 if test $groff_cv_decl_needed_gettimeofday = yes; then
3054 cat >>confdefs.h <<\EOF
3055 #define NEED_DECLARATION_GETTIMEOFDAY 1
3059 ac_ext=c
3060 ac_cpp='$CPP $CPPFLAGS'
3061 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3062 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3063 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3065 echo "$as_me:3065: checking whether hypot must be declared" >&5
3066 echo $ECHO_N "checking whether hypot must be declared... $ECHO_C" >&6
3067 ac_ext=cc
3068 ac_cpp='$CXXCPP $CPPFLAGS'
3069 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3070 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3071 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3073 if test "${groff_cv_decl_needed_hypot+set}" = set; then
3074 echo $ECHO_N "(cached) $ECHO_C" >&6
3075 else
3076 cat >conftest.$ac_ext <<_ACEOF
3077 #line 3077 "configure"
3078 #include "confdefs.h"
3080 #include <stdio.h>
3081 #ifdef HAVE_STRING_H
3082 #include <string.h>
3083 #endif
3084 #ifdef HAVE_STRINGS_H
3085 #include <strings.h>
3086 #endif
3087 #ifdef HAVE_STDLIB_H
3088 #include <stdlib.h>
3089 #endif
3090 #ifdef HAVE_SYS_TIME_H
3091 #include <sys/time.h>
3092 #endif
3093 #ifdef HAVE_UNISTD_H
3094 #include <unistd.h>
3095 #endif
3096 #ifdef HAVE_MATH_H
3097 #include <math.h>
3098 #endif
3100 main ()
3102 #ifndef hypot
3103 char *p = (char *) hypot;
3104 #endif
3106 return 0;
3108 _ACEOF
3109 rm -f conftest.$ac_objext
3110 if { (eval echo "$as_me:3110: \"$ac_compile\"") >&5
3111 (eval $ac_compile) 2>&5
3112 ac_status=$?
3113 echo "$as_me:3113: \$? = $ac_status" >&5
3114 (exit $ac_status); } &&
3115 { ac_try='test -s conftest.$ac_objext'
3116 { (eval echo "$as_me:3116: \"$ac_try\"") >&5
3117 (eval $ac_try) 2>&5
3118 ac_status=$?
3119 echo "$as_me:3119: \$? = $ac_status" >&5
3120 (exit $ac_status); }; }; then
3121 groff_cv_decl_needed_hypot=no
3122 else
3123 echo "$as_me: failed program was:" >&5
3124 cat conftest.$ac_ext >&5
3125 groff_cv_decl_needed_hypot=yes
3127 rm -f conftest.$ac_objext conftest.$ac_ext
3130 echo "$as_me:3130: result: $groff_cv_decl_needed_hypot" >&5
3131 echo "${ECHO_T}$groff_cv_decl_needed_hypot" >&6
3132 if test $groff_cv_decl_needed_hypot = yes; then
3134 cat >>confdefs.h <<\EOF
3135 #define NEED_DECLARATION_HYPOT 1
3139 ac_ext=c
3140 ac_cpp='$CPP $CPPFLAGS'
3141 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3142 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3143 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3145 echo "$as_me:3145: checking whether popen must be declared" >&5
3146 echo $ECHO_N "checking whether popen must be declared... $ECHO_C" >&6
3147 ac_ext=cc
3148 ac_cpp='$CXXCPP $CPPFLAGS'
3149 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3150 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3151 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3153 if test "${groff_cv_decl_needed_popen+set}" = set; then
3154 echo $ECHO_N "(cached) $ECHO_C" >&6
3155 else
3156 cat >conftest.$ac_ext <<_ACEOF
3157 #line 3157 "configure"
3158 #include "confdefs.h"
3160 #include <stdio.h>
3161 #ifdef HAVE_STRING_H
3162 #include <string.h>
3163 #endif
3164 #ifdef HAVE_STRINGS_H
3165 #include <strings.h>
3166 #endif
3167 #ifdef HAVE_STDLIB_H
3168 #include <stdlib.h>
3169 #endif
3170 #ifdef HAVE_SYS_TIME_H
3171 #include <sys/time.h>
3172 #endif
3173 #ifdef HAVE_UNISTD_H
3174 #include <unistd.h>
3175 #endif
3176 #ifdef HAVE_MATH_H
3177 #include <math.h>
3178 #endif
3180 main ()
3182 #ifndef popen
3183 char *p = (char *) popen;
3184 #endif
3186 return 0;
3188 _ACEOF
3189 rm -f conftest.$ac_objext
3190 if { (eval echo "$as_me:3190: \"$ac_compile\"") >&5
3191 (eval $ac_compile) 2>&5
3192 ac_status=$?
3193 echo "$as_me:3193: \$? = $ac_status" >&5
3194 (exit $ac_status); } &&
3195 { ac_try='test -s conftest.$ac_objext'
3196 { (eval echo "$as_me:3196: \"$ac_try\"") >&5
3197 (eval $ac_try) 2>&5
3198 ac_status=$?
3199 echo "$as_me:3199: \$? = $ac_status" >&5
3200 (exit $ac_status); }; }; then
3201 groff_cv_decl_needed_popen=no
3202 else
3203 echo "$as_me: failed program was:" >&5
3204 cat conftest.$ac_ext >&5
3205 groff_cv_decl_needed_popen=yes
3207 rm -f conftest.$ac_objext conftest.$ac_ext
3210 echo "$as_me:3210: result: $groff_cv_decl_needed_popen" >&5
3211 echo "${ECHO_T}$groff_cv_decl_needed_popen" >&6
3212 if test $groff_cv_decl_needed_popen = yes; then
3214 cat >>confdefs.h <<\EOF
3215 #define NEED_DECLARATION_POPEN 1
3219 ac_ext=c
3220 ac_cpp='$CPP $CPPFLAGS'
3221 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3222 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3223 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3225 echo "$as_me:3225: checking whether pclose must be declared" >&5
3226 echo $ECHO_N "checking whether pclose must be declared... $ECHO_C" >&6
3227 ac_ext=cc
3228 ac_cpp='$CXXCPP $CPPFLAGS'
3229 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3230 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3231 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3233 if test "${groff_cv_decl_needed_pclose+set}" = set; then
3234 echo $ECHO_N "(cached) $ECHO_C" >&6
3235 else
3236 cat >conftest.$ac_ext <<_ACEOF
3237 #line 3237 "configure"
3238 #include "confdefs.h"
3240 #include <stdio.h>
3241 #ifdef HAVE_STRING_H
3242 #include <string.h>
3243 #endif
3244 #ifdef HAVE_STRINGS_H
3245 #include <strings.h>
3246 #endif
3247 #ifdef HAVE_STDLIB_H
3248 #include <stdlib.h>
3249 #endif
3250 #ifdef HAVE_SYS_TIME_H
3251 #include <sys/time.h>
3252 #endif
3253 #ifdef HAVE_UNISTD_H
3254 #include <unistd.h>
3255 #endif
3256 #ifdef HAVE_MATH_H
3257 #include <math.h>
3258 #endif
3260 main ()
3262 #ifndef pclose
3263 char *p = (char *) pclose;
3264 #endif
3266 return 0;
3268 _ACEOF
3269 rm -f conftest.$ac_objext
3270 if { (eval echo "$as_me:3270: \"$ac_compile\"") >&5
3271 (eval $ac_compile) 2>&5
3272 ac_status=$?
3273 echo "$as_me:3273: \$? = $ac_status" >&5
3274 (exit $ac_status); } &&
3275 { ac_try='test -s conftest.$ac_objext'
3276 { (eval echo "$as_me:3276: \"$ac_try\"") >&5
3277 (eval $ac_try) 2>&5
3278 ac_status=$?
3279 echo "$as_me:3279: \$? = $ac_status" >&5
3280 (exit $ac_status); }; }; then
3281 groff_cv_decl_needed_pclose=no
3282 else
3283 echo "$as_me: failed program was:" >&5
3284 cat conftest.$ac_ext >&5
3285 groff_cv_decl_needed_pclose=yes
3287 rm -f conftest.$ac_objext conftest.$ac_ext
3290 echo "$as_me:3290: result: $groff_cv_decl_needed_pclose" >&5
3291 echo "${ECHO_T}$groff_cv_decl_needed_pclose" >&6
3292 if test $groff_cv_decl_needed_pclose = yes; then
3294 cat >>confdefs.h <<\EOF
3295 #define NEED_DECLARATION_PCLOSE 1
3299 ac_ext=c
3300 ac_cpp='$CPP $CPPFLAGS'
3301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3305 echo "$as_me:3305: checking whether putenv must be declared" >&5
3306 echo $ECHO_N "checking whether putenv must be declared... $ECHO_C" >&6
3307 ac_ext=cc
3308 ac_cpp='$CXXCPP $CPPFLAGS'
3309 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3310 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3311 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3313 if test "${groff_cv_decl_needed_putenv+set}" = set; then
3314 echo $ECHO_N "(cached) $ECHO_C" >&6
3315 else
3316 cat >conftest.$ac_ext <<_ACEOF
3317 #line 3317 "configure"
3318 #include "confdefs.h"
3320 #include <stdio.h>
3321 #ifdef HAVE_STRING_H
3322 #include <string.h>
3323 #endif
3324 #ifdef HAVE_STRINGS_H
3325 #include <strings.h>
3326 #endif
3327 #ifdef HAVE_STDLIB_H
3328 #include <stdlib.h>
3329 #endif
3330 #ifdef HAVE_SYS_TIME_H
3331 #include <sys/time.h>
3332 #endif
3333 #ifdef HAVE_UNISTD_H
3334 #include <unistd.h>
3335 #endif
3336 #ifdef HAVE_MATH_H
3337 #include <math.h>
3338 #endif
3340 main ()
3342 #ifndef putenv
3343 char *p = (char *) putenv;
3344 #endif
3346 return 0;
3348 _ACEOF
3349 rm -f conftest.$ac_objext
3350 if { (eval echo "$as_me:3350: \"$ac_compile\"") >&5
3351 (eval $ac_compile) 2>&5
3352 ac_status=$?
3353 echo "$as_me:3353: \$? = $ac_status" >&5
3354 (exit $ac_status); } &&
3355 { ac_try='test -s conftest.$ac_objext'
3356 { (eval echo "$as_me:3356: \"$ac_try\"") >&5
3357 (eval $ac_try) 2>&5
3358 ac_status=$?
3359 echo "$as_me:3359: \$? = $ac_status" >&5
3360 (exit $ac_status); }; }; then
3361 groff_cv_decl_needed_putenv=no
3362 else
3363 echo "$as_me: failed program was:" >&5
3364 cat conftest.$ac_ext >&5
3365 groff_cv_decl_needed_putenv=yes
3367 rm -f conftest.$ac_objext conftest.$ac_ext
3370 echo "$as_me:3370: result: $groff_cv_decl_needed_putenv" >&5
3371 echo "${ECHO_T}$groff_cv_decl_needed_putenv" >&6
3372 if test $groff_cv_decl_needed_putenv = yes; then
3374 cat >>confdefs.h <<\EOF
3375 #define NEED_DECLARATION_PUTENV 1
3379 ac_ext=c
3380 ac_cpp='$CPP $CPPFLAGS'
3381 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3382 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3383 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3385 echo "$as_me:3385: checking whether strcasecmp must be declared" >&5
3386 echo $ECHO_N "checking whether strcasecmp must be declared... $ECHO_C" >&6
3387 ac_ext=cc
3388 ac_cpp='$CXXCPP $CPPFLAGS'
3389 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3390 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3391 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3393 if test "${groff_cv_decl_needed_strcasecmp+set}" = set; then
3394 echo $ECHO_N "(cached) $ECHO_C" >&6
3395 else
3396 cat >conftest.$ac_ext <<_ACEOF
3397 #line 3397 "configure"
3398 #include "confdefs.h"
3400 #include <stdio.h>
3401 #ifdef HAVE_STRING_H
3402 #include <string.h>
3403 #endif
3404 #ifdef HAVE_STRINGS_H
3405 #include <strings.h>
3406 #endif
3407 #ifdef HAVE_STDLIB_H
3408 #include <stdlib.h>
3409 #endif
3410 #ifdef HAVE_SYS_TIME_H
3411 #include <sys/time.h>
3412 #endif
3413 #ifdef HAVE_UNISTD_H
3414 #include <unistd.h>
3415 #endif
3416 #ifdef HAVE_MATH_H
3417 #include <math.h>
3418 #endif
3420 main ()
3422 #ifndef strcasecmp
3423 char *p = (char *) strcasecmp;
3424 #endif
3426 return 0;
3428 _ACEOF
3429 rm -f conftest.$ac_objext
3430 if { (eval echo "$as_me:3430: \"$ac_compile\"") >&5
3431 (eval $ac_compile) 2>&5
3432 ac_status=$?
3433 echo "$as_me:3433: \$? = $ac_status" >&5
3434 (exit $ac_status); } &&
3435 { ac_try='test -s conftest.$ac_objext'
3436 { (eval echo "$as_me:3436: \"$ac_try\"") >&5
3437 (eval $ac_try) 2>&5
3438 ac_status=$?
3439 echo "$as_me:3439: \$? = $ac_status" >&5
3440 (exit $ac_status); }; }; then
3441 groff_cv_decl_needed_strcasecmp=no
3442 else
3443 echo "$as_me: failed program was:" >&5
3444 cat conftest.$ac_ext >&5
3445 groff_cv_decl_needed_strcasecmp=yes
3447 rm -f conftest.$ac_objext conftest.$ac_ext
3450 echo "$as_me:3450: result: $groff_cv_decl_needed_strcasecmp" >&5
3451 echo "${ECHO_T}$groff_cv_decl_needed_strcasecmp" >&6
3452 if test $groff_cv_decl_needed_strcasecmp = yes; then
3454 cat >>confdefs.h <<\EOF
3455 #define NEED_DECLARATION_STRCASECMP 1
3459 ac_ext=c
3460 ac_cpp='$CPP $CPPFLAGS'
3461 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3462 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3463 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3465 echo "$as_me:3465: checking whether strncasecmp must be declared" >&5
3466 echo $ECHO_N "checking whether strncasecmp must be declared... $ECHO_C" >&6
3467 ac_ext=cc
3468 ac_cpp='$CXXCPP $CPPFLAGS'
3469 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3470 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3471 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3473 if test "${groff_cv_decl_needed_strncasecmp+set}" = set; then
3474 echo $ECHO_N "(cached) $ECHO_C" >&6
3475 else
3476 cat >conftest.$ac_ext <<_ACEOF
3477 #line 3477 "configure"
3478 #include "confdefs.h"
3480 #include <stdio.h>
3481 #ifdef HAVE_STRING_H
3482 #include <string.h>
3483 #endif
3484 #ifdef HAVE_STRINGS_H
3485 #include <strings.h>
3486 #endif
3487 #ifdef HAVE_STDLIB_H
3488 #include <stdlib.h>
3489 #endif
3490 #ifdef HAVE_SYS_TIME_H
3491 #include <sys/time.h>
3492 #endif
3493 #ifdef HAVE_UNISTD_H
3494 #include <unistd.h>
3495 #endif
3496 #ifdef HAVE_MATH_H
3497 #include <math.h>
3498 #endif
3500 main ()
3502 #ifndef strncasecmp
3503 char *p = (char *) strncasecmp;
3504 #endif
3506 return 0;
3508 _ACEOF
3509 rm -f conftest.$ac_objext
3510 if { (eval echo "$as_me:3510: \"$ac_compile\"") >&5
3511 (eval $ac_compile) 2>&5
3512 ac_status=$?
3513 echo "$as_me:3513: \$? = $ac_status" >&5
3514 (exit $ac_status); } &&
3515 { ac_try='test -s conftest.$ac_objext'
3516 { (eval echo "$as_me:3516: \"$ac_try\"") >&5
3517 (eval $ac_try) 2>&5
3518 ac_status=$?
3519 echo "$as_me:3519: \$? = $ac_status" >&5
3520 (exit $ac_status); }; }; then
3521 groff_cv_decl_needed_strncasecmp=no
3522 else
3523 echo "$as_me: failed program was:" >&5
3524 cat conftest.$ac_ext >&5
3525 groff_cv_decl_needed_strncasecmp=yes
3527 rm -f conftest.$ac_objext conftest.$ac_ext
3530 echo "$as_me:3530: result: $groff_cv_decl_needed_strncasecmp" >&5
3531 echo "${ECHO_T}$groff_cv_decl_needed_strncasecmp" >&6
3532 if test $groff_cv_decl_needed_strncasecmp = yes; then
3534 cat >>confdefs.h <<\EOF
3535 #define NEED_DECLARATION_STRNCASECMP 1
3539 ac_ext=c
3540 ac_cpp='$CPP $CPPFLAGS'
3541 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3542 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3543 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3545 ac_ext=cc
3546 ac_cpp='$CXXCPP $CPPFLAGS'
3547 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3548 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3549 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3551 echo "$as_me:3551: checking for sys_nerr in <errno.h> or <stdio.h>" >&5
3552 echo $ECHO_N "checking for sys_nerr in <errno.h> or <stdio.h>... $ECHO_C" >&6
3553 cat >conftest.$ac_ext <<_ACEOF
3554 #line 3554 "configure"
3555 #include "confdefs.h"
3556 #include <errno.h>
3557 #include <stdio.h>
3559 main ()
3561 int k; k = sys_nerr;
3563 return 0;
3565 _ACEOF
3566 rm -f conftest.$ac_objext
3567 if { (eval echo "$as_me:3567: \"$ac_compile\"") >&5
3568 (eval $ac_compile) 2>&5
3569 ac_status=$?
3570 echo "$as_me:3570: \$? = $ac_status" >&5
3571 (exit $ac_status); } &&
3572 { ac_try='test -s conftest.$ac_objext'
3573 { (eval echo "$as_me:3573: \"$ac_try\"") >&5
3574 (eval $ac_try) 2>&5
3575 ac_status=$?
3576 echo "$as_me:3576: \$? = $ac_status" >&5
3577 (exit $ac_status); }; }; then
3578 echo "$as_me:3578: result: yes" >&5
3579 echo "${ECHO_T}yes" >&6;
3580 cat >>confdefs.h <<\EOF
3581 #define HAVE_SYS_NERR 1
3584 else
3585 echo "$as_me: failed program was:" >&5
3586 cat conftest.$ac_ext >&5
3587 echo "$as_me:3587: result: no" >&5
3588 echo "${ECHO_T}no" >&6
3590 rm -f conftest.$ac_objext conftest.$ac_ext
3591 ac_ext=c
3592 ac_cpp='$CPP $CPPFLAGS'
3593 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3594 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3595 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3597 echo "$as_me:3597: checking for sys_errlist in <errno.h> or <stdio.h>" >&5
3598 echo $ECHO_N "checking for sys_errlist in <errno.h> or <stdio.h>... $ECHO_C" >&6
3599 cat >conftest.$ac_ext <<_ACEOF
3600 #line 3600 "configure"
3601 #include "confdefs.h"
3602 #include <errno.h>
3603 #include <stdio.h>
3605 main ()
3607 int k; k = (int)sys_errlist[0];
3609 return 0;
3611 _ACEOF
3612 rm -f conftest.$ac_objext
3613 if { (eval echo "$as_me:3613: \"$ac_compile\"") >&5
3614 (eval $ac_compile) 2>&5
3615 ac_status=$?
3616 echo "$as_me:3616: \$? = $ac_status" >&5
3617 (exit $ac_status); } &&
3618 { ac_try='test -s conftest.$ac_objext'
3619 { (eval echo "$as_me:3619: \"$ac_try\"") >&5
3620 (eval $ac_try) 2>&5
3621 ac_status=$?
3622 echo "$as_me:3622: \$? = $ac_status" >&5
3623 (exit $ac_status); }; }; then
3624 echo "$as_me:3624: result: yes" >&5
3625 echo "${ECHO_T}yes" >&6;
3626 cat >>confdefs.h <<\EOF
3627 #define HAVE_SYS_ERRLIST 1
3630 else
3631 echo "$as_me: failed program was:" >&5
3632 cat conftest.$ac_ext >&5
3633 echo "$as_me:3633: result: no" >&5
3634 echo "${ECHO_T}no" >&6
3636 rm -f conftest.$ac_objext conftest.$ac_ext
3637 ac_ext=cc
3638 ac_cpp='$CXXCPP $CPPFLAGS'
3639 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3640 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3641 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3643 echo "$as_me:3643: checking C++ <osfcn.h>" >&5
3644 echo $ECHO_N "checking C++ <osfcn.h>... $ECHO_C" >&6
3645 cat >conftest.$ac_ext <<_ACEOF
3646 #line 3646 "configure"
3647 #include "confdefs.h"
3648 #include <osfcn.h>
3650 main ()
3652 read(0, 0, 0); open(0, 0);
3654 return 0;
3656 _ACEOF
3657 rm -f conftest.$ac_objext
3658 if { (eval echo "$as_me:3658: \"$ac_compile\"") >&5
3659 (eval $ac_compile) 2>&5
3660 ac_status=$?
3661 echo "$as_me:3661: \$? = $ac_status" >&5
3662 (exit $ac_status); } &&
3663 { ac_try='test -s conftest.$ac_objext'
3664 { (eval echo "$as_me:3664: \"$ac_try\"") >&5
3665 (eval $ac_try) 2>&5
3666 ac_status=$?
3667 echo "$as_me:3667: \$? = $ac_status" >&5
3668 (exit $ac_status); }; }; then
3669 echo "$as_me:3669: result: yes" >&5
3670 echo "${ECHO_T}yes" >&6;
3671 cat >>confdefs.h <<\EOF
3672 #define HAVE_CC_OSFCN_H 1
3675 else
3676 echo "$as_me: failed program was:" >&5
3677 cat conftest.$ac_ext >&5
3678 echo "$as_me:3678: result: no" >&5
3679 echo "${ECHO_T}no" >&6
3681 rm -f conftest.$ac_objext conftest.$ac_ext
3682 ac_ext=c
3683 ac_cpp='$CPP $CPPFLAGS'
3684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3686 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3688 ac_ext=cc
3689 ac_cpp='$CXXCPP $CPPFLAGS'
3690 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3691 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3692 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3694 echo "$as_me:3694: checking C++ <limits.h>" >&5
3695 echo $ECHO_N "checking C++ <limits.h>... $ECHO_C" >&6
3696 cat >conftest.$ac_ext <<_ACEOF
3697 #line 3697 "configure"
3698 #include "confdefs.h"
3699 #include <limits.h>
3701 main ()
3703 int x = INT_MIN; int y = INT_MAX; int z = UCHAR_MAX;
3705 return 0;
3707 _ACEOF
3708 rm -f conftest.$ac_objext
3709 if { (eval echo "$as_me:3709: \"$ac_compile\"") >&5
3710 (eval $ac_compile) 2>&5
3711 ac_status=$?
3712 echo "$as_me:3712: \$? = $ac_status" >&5
3713 (exit $ac_status); } &&
3714 { ac_try='test -s conftest.$ac_objext'
3715 { (eval echo "$as_me:3715: \"$ac_try\"") >&5
3716 (eval $ac_try) 2>&5
3717 ac_status=$?
3718 echo "$as_me:3718: \$? = $ac_status" >&5
3719 (exit $ac_status); }; }; then
3720 echo "$as_me:3720: result: yes" >&5
3721 echo "${ECHO_T}yes" >&6;
3722 cat >>confdefs.h <<\EOF
3723 #define HAVE_CC_LIMITS_H 1
3726 else
3727 echo "$as_me: failed program was:" >&5
3728 cat conftest.$ac_ext >&5
3729 echo "$as_me:3729: result: no" >&5
3730 echo "${ECHO_T}no" >&6
3732 rm -f conftest.$ac_objext conftest.$ac_ext
3733 ac_ext=c
3734 ac_cpp='$CPP $CPPFLAGS'
3735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3739 ac_ext=cc
3740 ac_cpp='$CXXCPP $CPPFLAGS'
3741 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3742 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3743 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3745 echo "$as_me:3745: checking for inttypes.h" >&5
3746 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
3747 cat >conftest.$ac_ext <<_ACEOF
3748 #line 3748 "configure"
3749 #include "confdefs.h"
3750 #include <sys/types.h>
3751 #include <inttypes.h>
3753 main ()
3755 uintmax_t i = (uintmax_t)-1;
3757 return 0;
3759 _ACEOF
3760 rm -f conftest.$ac_objext
3761 if { (eval echo "$as_me:3761: \"$ac_compile\"") >&5
3762 (eval $ac_compile) 2>&5
3763 ac_status=$?
3764 echo "$as_me:3764: \$? = $ac_status" >&5
3765 (exit $ac_status); } &&
3766 { ac_try='test -s conftest.$ac_objext'
3767 { (eval echo "$as_me:3767: \"$ac_try\"") >&5
3768 (eval $ac_try) 2>&5
3769 ac_status=$?
3770 echo "$as_me:3770: \$? = $ac_status" >&5
3771 (exit $ac_status); }; }; then
3772 groff_cv_header_inttypes_h=yes
3773 else
3774 echo "$as_me: failed program was:" >&5
3775 cat conftest.$ac_ext >&5
3776 groff_cv_header_inttypes_h=no
3778 rm -f conftest.$ac_objext conftest.$ac_ext
3779 echo "$as_me:3779: result: $groff_cv_header_inttypes_h" >&5
3780 echo "${ECHO_T}$groff_cv_header_inttypes_h" >&6
3781 ac_ext=c
3782 ac_cpp='$CPP $CPPFLAGS'
3783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3787 ac_ext=cc
3788 ac_cpp='$CXXCPP $CPPFLAGS'
3789 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3790 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3791 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3793 echo "$as_me:3793: checking for unsigned long long" >&5
3794 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
3795 cat >conftest.$ac_ext <<_ACEOF
3796 #line 3796 "configure"
3797 #include "confdefs.h"
3798 unsigned long long ull = 1; int i = 63;
3800 main ()
3802 unsigned long long ullmax = (unsigned long long)-1;
3803 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
3805 return 0;
3807 _ACEOF
3808 rm -f conftest.$ac_objext conftest$ac_exeext
3809 if { (eval echo "$as_me:3809: \"$ac_link\"") >&5
3810 (eval $ac_link) 2>&5
3811 ac_status=$?
3812 echo "$as_me:3812: \$? = $ac_status" >&5
3813 (exit $ac_status); } &&
3814 { ac_try='test -s conftest$ac_exeext'
3815 { (eval echo "$as_me:3815: \"$ac_try\"") >&5
3816 (eval $ac_try) 2>&5
3817 ac_status=$?
3818 echo "$as_me:3818: \$? = $ac_status" >&5
3819 (exit $ac_status); }; }; then
3820 groff_cv_type_unsigned_long_long=yes
3821 else
3822 echo "$as_me: failed program was:" >&5
3823 cat conftest.$ac_ext >&5
3824 groff_cv_type_unsigned_long_long=no
3826 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3827 echo "$as_me:3827: result: $groff_cv_type_unsigned_long_long" >&5
3828 echo "${ECHO_T}$groff_cv_type_unsigned_long_long" >&6
3829 ac_ext=c
3830 ac_cpp='$CPP $CPPFLAGS'
3831 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3832 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3833 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3835 if test $groff_cv_header_inttypes_h = no; then
3837 test $groff_cv_type_unsigned_long_long = yes \
3838 && ac_type='unsigned long long' \
3839 || ac_type='unsigned long'
3841 cat >>confdefs.h <<EOF
3842 #define uintmax_t $ac_type
3846 ac_ext=cc
3847 ac_cpp='$CXXCPP $CPPFLAGS'
3848 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3849 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3850 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3852 echo "$as_me:3852: checking for declaration of time_t" >&5
3853 echo $ECHO_N "checking for declaration of time_t... $ECHO_C" >&6
3854 cat >conftest.$ac_ext <<_ACEOF
3855 #line 3855 "configure"
3856 #include "confdefs.h"
3857 #include <time.h>
3859 main ()
3861 time_t t = time(0); struct tm *p = localtime(&t);
3863 return 0;
3865 _ACEOF
3866 rm -f conftest.$ac_objext
3867 if { (eval echo "$as_me:3867: \"$ac_compile\"") >&5
3868 (eval $ac_compile) 2>&5
3869 ac_status=$?
3870 echo "$as_me:3870: \$? = $ac_status" >&5
3871 (exit $ac_status); } &&
3872 { ac_try='test -s conftest.$ac_objext'
3873 { (eval echo "$as_me:3873: \"$ac_try\"") >&5
3874 (eval $ac_try) 2>&5
3875 ac_status=$?
3876 echo "$as_me:3876: \$? = $ac_status" >&5
3877 (exit $ac_status); }; }; then
3878 echo "$as_me:3878: result: yes" >&5
3879 echo "${ECHO_T}yes" >&6
3880 else
3881 echo "$as_me: failed program was:" >&5
3882 cat conftest.$ac_ext >&5
3883 echo "$as_me:3883: result: no" >&5
3884 echo "${ECHO_T}no" >&6;
3885 cat >>confdefs.h <<\EOF
3886 #define LONG_FOR_TIME_T 1
3890 rm -f conftest.$ac_objext conftest.$ac_ext
3891 ac_ext=c
3892 ac_cpp='$CPP $CPPFLAGS'
3893 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3894 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3895 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3897 echo "$as_me:3897: checking return type of signal handlers" >&5
3898 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
3899 if test "${ac_cv_type_signal+set}" = set; then
3900 echo $ECHO_N "(cached) $ECHO_C" >&6
3901 else
3902 cat >conftest.$ac_ext <<_ACEOF
3903 #line 3903 "configure"
3904 #include "confdefs.h"
3905 #include <sys/types.h>
3906 #include <signal.h>
3907 #ifdef signal
3908 # undef signal
3909 #endif
3910 #ifdef __cplusplus
3911 extern "C" void (*signal (int, void (*)(int)))(int);
3912 #else
3913 void (*signal ()) ();
3914 #endif
3917 main ()
3919 int i;
3921 return 0;
3923 _ACEOF
3924 rm -f conftest.$ac_objext
3925 if { (eval echo "$as_me:3925: \"$ac_compile\"") >&5
3926 (eval $ac_compile) 2>&5
3927 ac_status=$?
3928 echo "$as_me:3928: \$? = $ac_status" >&5
3929 (exit $ac_status); } &&
3930 { ac_try='test -s conftest.$ac_objext'
3931 { (eval echo "$as_me:3931: \"$ac_try\"") >&5
3932 (eval $ac_try) 2>&5
3933 ac_status=$?
3934 echo "$as_me:3934: \$? = $ac_status" >&5
3935 (exit $ac_status); }; }; then
3936 ac_cv_type_signal=void
3937 else
3938 echo "$as_me: failed program was:" >&5
3939 cat conftest.$ac_ext >&5
3940 ac_cv_type_signal=int
3942 rm -f conftest.$ac_objext conftest.$ac_ext
3944 echo "$as_me:3944: result: $ac_cv_type_signal" >&5
3945 echo "${ECHO_T}$ac_cv_type_signal" >&6
3947 cat >>confdefs.h <<EOF
3948 #define RETSIGTYPE $ac_cv_type_signal
3951 echo "$as_me:3951: checking struct exception" >&5
3952 echo $ECHO_N "checking struct exception... $ECHO_C" >&6
3953 cat >conftest.$ac_ext <<_ACEOF
3954 #line 3954 "configure"
3955 #include "confdefs.h"
3956 #include <math.h>
3958 main ()
3960 struct exception e;
3962 return 0;
3964 _ACEOF
3965 rm -f conftest.$ac_objext
3966 if { (eval echo "$as_me:3966: \"$ac_compile\"") >&5
3967 (eval $ac_compile) 2>&5
3968 ac_status=$?
3969 echo "$as_me:3969: \$? = $ac_status" >&5
3970 (exit $ac_status); } &&
3971 { ac_try='test -s conftest.$ac_objext'
3972 { (eval echo "$as_me:3972: \"$ac_try\"") >&5
3973 (eval $ac_try) 2>&5
3974 ac_status=$?
3975 echo "$as_me:3975: \$? = $ac_status" >&5
3976 (exit $ac_status); }; }; then
3977 echo "$as_me:3977: result: yes" >&5
3978 echo "${ECHO_T}yes" >&6;
3979 cat >>confdefs.h <<\EOF
3980 #define HAVE_STRUCT_EXCEPTION 1
3983 else
3984 echo "$as_me: failed program was:" >&5
3985 cat conftest.$ac_ext >&5
3986 echo "$as_me:3986: result: no" >&5
3987 echo "${ECHO_T}no" >&6
3989 rm -f conftest.$ac_objext conftest.$ac_ext
3990 echo "$as_me:3990: checking for sin in -lm" >&5
3991 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
3992 if test "${ac_cv_lib_m_sin+set}" = set; then
3993 echo $ECHO_N "(cached) $ECHO_C" >&6
3994 else
3995 ac_check_lib_save_LIBS=$LIBS
3996 LIBS="-lm $LIBS"
3997 cat >conftest.$ac_ext <<_ACEOF
3998 #line 3998 "configure"
3999 #include "confdefs.h"
4001 /* Override any gcc2 internal prototype to avoid an error. */
4002 #ifdef __cplusplus
4003 extern "C"
4004 #endif
4005 /* We use char because int might match the return type of a gcc2
4006 builtin and then its argument prototype would still apply. */
4007 char sin ();
4009 main ()
4011 sin ();
4013 return 0;
4015 _ACEOF
4016 rm -f conftest.$ac_objext conftest$ac_exeext
4017 if { (eval echo "$as_me:4017: \"$ac_link\"") >&5
4018 (eval $ac_link) 2>&5
4019 ac_status=$?
4020 echo "$as_me:4020: \$? = $ac_status" >&5
4021 (exit $ac_status); } &&
4022 { ac_try='test -s conftest$ac_exeext'
4023 { (eval echo "$as_me:4023: \"$ac_try\"") >&5
4024 (eval $ac_try) 2>&5
4025 ac_status=$?
4026 echo "$as_me:4026: \$? = $ac_status" >&5
4027 (exit $ac_status); }; }; then
4028 ac_cv_lib_m_sin=yes
4029 else
4030 echo "$as_me: failed program was:" >&5
4031 cat conftest.$ac_ext >&5
4032 ac_cv_lib_m_sin=no
4034 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4035 LIBS=$ac_check_lib_save_LIBS
4037 echo "$as_me:4037: result: $ac_cv_lib_m_sin" >&5
4038 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
4039 if test $ac_cv_lib_m_sin = yes; then
4040 LIBM=-lm
4043 echo "$as_me:4043: checking for ANSI C header files" >&5
4044 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4045 if test "${ac_cv_header_stdc+set}" = set; then
4046 echo $ECHO_N "(cached) $ECHO_C" >&6
4047 else
4048 cat >conftest.$ac_ext <<_ACEOF
4049 #line 4049 "configure"
4050 #include "confdefs.h"
4051 #include <stdlib.h>
4052 #include <stdarg.h>
4053 #include <string.h>
4054 #include <float.h>
4056 _ACEOF
4057 if { (eval echo "$as_me:4057: \"$ac_cpp conftest.$ac_ext\"") >&5
4058 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4059 ac_status=$?
4060 egrep -v '^ *\+' conftest.er1 >conftest.err
4061 rm -f conftest.er1
4062 cat conftest.err >&5
4063 echo "$as_me:4063: \$? = $ac_status" >&5
4064 (exit $ac_status); } >/dev/null; then
4065 if test -s conftest.err; then
4066 ac_cpp_err=$ac_c_preproc_warn_flag
4067 else
4068 ac_cpp_err=
4070 else
4071 ac_cpp_err=yes
4073 if test -z "$ac_cpp_err"; then
4074 ac_cv_header_stdc=yes
4075 else
4076 echo "$as_me: failed program was:" >&5
4077 cat conftest.$ac_ext >&5
4078 ac_cv_header_stdc=no
4080 rm -f conftest.err conftest.$ac_ext
4082 if test $ac_cv_header_stdc = yes; then
4083 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4084 cat >conftest.$ac_ext <<_ACEOF
4085 #line 4085 "configure"
4086 #include "confdefs.h"
4087 #include <string.h>
4089 _ACEOF
4090 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4091 egrep "memchr" >/dev/null 2>&1; then
4093 else
4094 ac_cv_header_stdc=no
4096 rm -f conftest*
4100 if test $ac_cv_header_stdc = yes; then
4101 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4102 cat >conftest.$ac_ext <<_ACEOF
4103 #line 4103 "configure"
4104 #include "confdefs.h"
4105 #include <stdlib.h>
4107 _ACEOF
4108 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4109 egrep "free" >/dev/null 2>&1; then
4111 else
4112 ac_cv_header_stdc=no
4114 rm -f conftest*
4118 if test $ac_cv_header_stdc = yes; then
4119 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4120 if test "$cross_compiling" = yes; then
4122 else
4123 cat >conftest.$ac_ext <<_ACEOF
4124 #line 4124 "configure"
4125 #include "confdefs.h"
4126 #include <ctype.h>
4127 #if ((' ' & 0x0FF) == 0x020)
4128 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4129 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4130 #else
4131 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4132 || ('j' <= (c) && (c) <= 'r') \
4133 || ('s' <= (c) && (c) <= 'z'))
4134 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4135 #endif
4137 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4139 main ()
4141 int i;
4142 for (i = 0; i < 256; i++)
4143 if (XOR (islower (i), ISLOWER (i))
4144 || toupper (i) != TOUPPER (i))
4145 exit(2);
4146 exit (0);
4148 _ACEOF
4149 rm -f conftest$ac_exeext
4150 if { (eval echo "$as_me:4150: \"$ac_link\"") >&5
4151 (eval $ac_link) 2>&5
4152 ac_status=$?
4153 echo "$as_me:4153: \$? = $ac_status" >&5
4154 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4155 { (eval echo "$as_me:4155: \"$ac_try\"") >&5
4156 (eval $ac_try) 2>&5
4157 ac_status=$?
4158 echo "$as_me:4158: \$? = $ac_status" >&5
4159 (exit $ac_status); }; }; then
4161 else
4162 echo "$as_me: program exited with status $ac_status" >&5
4163 echo "$as_me: failed program was:" >&5
4164 cat conftest.$ac_ext >&5
4165 ac_cv_header_stdc=no
4167 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4171 echo "$as_me:4171: result: $ac_cv_header_stdc" >&5
4172 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4173 if test $ac_cv_header_stdc = yes; then
4175 cat >>confdefs.h <<\EOF
4176 #define STDC_HEADERS 1
4181 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4183 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4184 inttypes.h stdint.h unistd.h
4186 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4187 echo "$as_me:4187: checking for $ac_header" >&5
4188 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4189 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4190 echo $ECHO_N "(cached) $ECHO_C" >&6
4191 else
4192 cat >conftest.$ac_ext <<_ACEOF
4193 #line 4193 "configure"
4194 #include "confdefs.h"
4195 $ac_includes_default
4196 #include <$ac_header>
4197 _ACEOF
4198 rm -f conftest.$ac_objext
4199 if { (eval echo "$as_me:4199: \"$ac_compile\"") >&5
4200 (eval $ac_compile) 2>&5
4201 ac_status=$?
4202 echo "$as_me:4202: \$? = $ac_status" >&5
4203 (exit $ac_status); } &&
4204 { ac_try='test -s conftest.$ac_objext'
4205 { (eval echo "$as_me:4205: \"$ac_try\"") >&5
4206 (eval $ac_try) 2>&5
4207 ac_status=$?
4208 echo "$as_me:4208: \$? = $ac_status" >&5
4209 (exit $ac_status); }; }; then
4210 eval "$as_ac_Header=yes"
4211 else
4212 echo "$as_me: failed program was:" >&5
4213 cat conftest.$ac_ext >&5
4214 eval "$as_ac_Header=no"
4216 rm -f conftest.$ac_objext conftest.$ac_ext
4218 echo "$as_me:4218: result: `eval echo '${'$as_ac_Header'}'`" >&5
4219 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4220 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4221 cat >>confdefs.h <<EOF
4222 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4226 done
4228 for ac_header in stdlib.h unistd.h
4230 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4231 echo "$as_me:4231: checking for $ac_header" >&5
4232 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4233 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4234 echo $ECHO_N "(cached) $ECHO_C" >&6
4235 else
4236 cat >conftest.$ac_ext <<_ACEOF
4237 #line 4237 "configure"
4238 #include "confdefs.h"
4239 #include <$ac_header>
4240 _ACEOF
4241 if { (eval echo "$as_me:4241: \"$ac_cpp conftest.$ac_ext\"") >&5
4242 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4243 ac_status=$?
4244 egrep -v '^ *\+' conftest.er1 >conftest.err
4245 rm -f conftest.er1
4246 cat conftest.err >&5
4247 echo "$as_me:4247: \$? = $ac_status" >&5
4248 (exit $ac_status); } >/dev/null; then
4249 if test -s conftest.err; then
4250 ac_cpp_err=$ac_c_preproc_warn_flag
4251 else
4252 ac_cpp_err=
4254 else
4255 ac_cpp_err=yes
4257 if test -z "$ac_cpp_err"; then
4258 eval "$as_ac_Header=yes"
4259 else
4260 echo "$as_me: failed program was:" >&5
4261 cat conftest.$ac_ext >&5
4262 eval "$as_ac_Header=no"
4264 rm -f conftest.err conftest.$ac_ext
4266 echo "$as_me:4266: result: `eval echo '${'$as_ac_Header'}'`" >&5
4267 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4268 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4269 cat >>confdefs.h <<EOF
4270 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4274 done
4276 for ac_func in getpagesize
4278 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4279 echo "$as_me:4279: checking for $ac_func" >&5
4280 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4281 if eval "test \"\${$as_ac_var+set}\" = set"; then
4282 echo $ECHO_N "(cached) $ECHO_C" >&6
4283 else
4284 cat >conftest.$ac_ext <<_ACEOF
4285 #line 4285 "configure"
4286 #include "confdefs.h"
4287 /* System header to define __stub macros and hopefully few prototypes,
4288 which can conflict with char $ac_func (); below. */
4289 #include <assert.h>
4290 /* Override any gcc2 internal prototype to avoid an error. */
4291 #ifdef __cplusplus
4292 extern "C"
4293 #endif
4294 /* We use char because int might match the return type of a gcc2
4295 builtin and then its argument prototype would still apply. */
4296 char $ac_func ();
4297 char (*f) ();
4300 main ()
4302 /* The GNU C library defines this for functions which it implements
4303 to always fail with ENOSYS. Some functions are actually named
4304 something starting with __ and the normal name is an alias. */
4305 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4306 choke me
4307 #else
4308 f = $ac_func;
4309 #endif
4312 return 0;
4314 _ACEOF
4315 rm -f conftest.$ac_objext conftest$ac_exeext
4316 if { (eval echo "$as_me:4316: \"$ac_link\"") >&5
4317 (eval $ac_link) 2>&5
4318 ac_status=$?
4319 echo "$as_me:4319: \$? = $ac_status" >&5
4320 (exit $ac_status); } &&
4321 { ac_try='test -s conftest$ac_exeext'
4322 { (eval echo "$as_me:4322: \"$ac_try\"") >&5
4323 (eval $ac_try) 2>&5
4324 ac_status=$?
4325 echo "$as_me:4325: \$? = $ac_status" >&5
4326 (exit $ac_status); }; }; then
4327 eval "$as_ac_var=yes"
4328 else
4329 echo "$as_me: failed program was:" >&5
4330 cat conftest.$ac_ext >&5
4331 eval "$as_ac_var=no"
4333 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4335 echo "$as_me:4335: result: `eval echo '${'$as_ac_var'}'`" >&5
4336 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4337 if test `eval echo '${'$as_ac_var'}'` = yes; then
4338 cat >>confdefs.h <<EOF
4339 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4343 done
4345 echo "$as_me:4345: checking for working mmap" >&5
4346 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
4347 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
4348 echo $ECHO_N "(cached) $ECHO_C" >&6
4349 else
4350 if test "$cross_compiling" = yes; then
4351 ac_cv_func_mmap_fixed_mapped=no
4352 else
4353 cat >conftest.$ac_ext <<_ACEOF
4354 #line 4354 "configure"
4355 #include "confdefs.h"
4356 $ac_includes_default
4357 /* Thanks to Mike Haertel and Jim Avera for this test.
4358 Here is a matrix of mmap possibilities:
4359 mmap private not fixed
4360 mmap private fixed at somewhere currently unmapped
4361 mmap private fixed at somewhere already mapped
4362 mmap shared not fixed
4363 mmap shared fixed at somewhere currently unmapped
4364 mmap shared fixed at somewhere already mapped
4365 For private mappings, we should verify that changes cannot be read()
4366 back from the file, nor mmap's back from the file at a different
4367 address. (There have been systems where private was not correctly
4368 implemented like the infamous i386 svr4.0, and systems where the
4369 VM page cache was not coherent with the file system buffer cache
4370 like early versions of FreeBSD and possibly contemporary NetBSD.)
4371 For shared mappings, we should conversely verify that changes get
4372 propogated back to all the places they're supposed to be.
4374 Grep wants private fixed already mapped.
4375 The main things grep needs to know about mmap are:
4376 * does it exist and is it safe to write into the mmap'd area
4377 * how to use it (BSD variants) */
4379 #include <fcntl.h>
4380 #include <sys/mman.h>
4382 #if !STDC_HEADERS && !HAVE_STDLIB_H
4383 char *malloc ();
4384 #endif
4386 /* This mess was copied from the GNU getpagesize.h. */
4387 #if !HAVE_GETPAGESIZE
4388 /* Assume that all systems that can run configure have sys/param.h. */
4389 # if !HAVE_SYS_PARAM_H
4390 # define HAVE_SYS_PARAM_H 1
4391 # endif
4393 # ifdef _SC_PAGESIZE
4394 # define getpagesize() sysconf(_SC_PAGESIZE)
4395 # else /* no _SC_PAGESIZE */
4396 # if HAVE_SYS_PARAM_H
4397 # include <sys/param.h>
4398 # ifdef EXEC_PAGESIZE
4399 # define getpagesize() EXEC_PAGESIZE
4400 # else /* no EXEC_PAGESIZE */
4401 # ifdef NBPG
4402 # define getpagesize() NBPG * CLSIZE
4403 # ifndef CLSIZE
4404 # define CLSIZE 1
4405 # endif /* no CLSIZE */
4406 # else /* no NBPG */
4407 # ifdef NBPC
4408 # define getpagesize() NBPC
4409 # else /* no NBPC */
4410 # ifdef PAGESIZE
4411 # define getpagesize() PAGESIZE
4412 # endif /* PAGESIZE */
4413 # endif /* no NBPC */
4414 # endif /* no NBPG */
4415 # endif /* no EXEC_PAGESIZE */
4416 # else /* no HAVE_SYS_PARAM_H */
4417 # define getpagesize() 8192 /* punt totally */
4418 # endif /* no HAVE_SYS_PARAM_H */
4419 # endif /* no _SC_PAGESIZE */
4421 #endif /* no HAVE_GETPAGESIZE */
4424 main ()
4426 char *data, *data2, *data3;
4427 int i, pagesize;
4428 int fd;
4430 pagesize = getpagesize ();
4432 /* First, make a file with some known garbage in it. */
4433 data = (char *) malloc (pagesize);
4434 if (!data)
4435 exit (1);
4436 for (i = 0; i < pagesize; ++i)
4437 *(data + i) = rand ();
4438 umask (0);
4439 fd = creat ("conftest.mmap", 0600);
4440 if (fd < 0)
4441 exit (1);
4442 if (write (fd, data, pagesize) != pagesize)
4443 exit (1);
4444 close (fd);
4446 /* Next, try to mmap the file at a fixed address which already has
4447 something else allocated at it. If we can, also make sure that
4448 we see the same garbage. */
4449 fd = open ("conftest.mmap", O_RDWR);
4450 if (fd < 0)
4451 exit (1);
4452 data2 = (char *) malloc (2 * pagesize);
4453 if (!data2)
4454 exit (1);
4455 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
4456 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
4457 MAP_PRIVATE | MAP_FIXED, fd, 0L))
4458 exit (1);
4459 for (i = 0; i < pagesize; ++i)
4460 if (*(data + i) != *(data2 + i))
4461 exit (1);
4463 /* Finally, make sure that changes to the mapped area do not
4464 percolate back to the file as seen by read(). (This is a bug on
4465 some variants of i386 svr4.0.) */
4466 for (i = 0; i < pagesize; ++i)
4467 *(data2 + i) = *(data2 + i) + 1;
4468 data3 = (char *) malloc (pagesize);
4469 if (!data3)
4470 exit (1);
4471 if (read (fd, data3, pagesize) != pagesize)
4472 exit (1);
4473 for (i = 0; i < pagesize; ++i)
4474 if (*(data + i) != *(data3 + i))
4475 exit (1);
4476 close (fd);
4477 exit (0);
4479 _ACEOF
4480 rm -f conftest$ac_exeext
4481 if { (eval echo "$as_me:4481: \"$ac_link\"") >&5
4482 (eval $ac_link) 2>&5
4483 ac_status=$?
4484 echo "$as_me:4484: \$? = $ac_status" >&5
4485 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4486 { (eval echo "$as_me:4486: \"$ac_try\"") >&5
4487 (eval $ac_try) 2>&5
4488 ac_status=$?
4489 echo "$as_me:4489: \$? = $ac_status" >&5
4490 (exit $ac_status); }; }; then
4491 ac_cv_func_mmap_fixed_mapped=yes
4492 else
4493 echo "$as_me: program exited with status $ac_status" >&5
4494 echo "$as_me: failed program was:" >&5
4495 cat conftest.$ac_ext >&5
4496 ac_cv_func_mmap_fixed_mapped=no
4498 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4501 echo "$as_me:4501: result: $ac_cv_func_mmap_fixed_mapped" >&5
4502 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
4503 if test $ac_cv_func_mmap_fixed_mapped = yes; then
4505 cat >>confdefs.h <<\EOF
4506 #define HAVE_MMAP 1
4510 rm -f conftest.mmap
4512 saved_libs="$LIBS"
4513 LIBS="$LIBS -lc $LIBM"
4515 for ac_func in fmod getcwd putenv snprintf strerror strtol
4517 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4518 echo "$as_me:4518: checking for $ac_func" >&5
4519 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4520 if eval "test \"\${$as_ac_var+set}\" = set"; then
4521 echo $ECHO_N "(cached) $ECHO_C" >&6
4522 else
4523 cat >conftest.$ac_ext <<_ACEOF
4524 #line 4524 "configure"
4525 #include "confdefs.h"
4526 /* System header to define __stub macros and hopefully few prototypes,
4527 which can conflict with char $ac_func (); below. */
4528 #include <assert.h>
4529 /* Override any gcc2 internal prototype to avoid an error. */
4530 #ifdef __cplusplus
4531 extern "C"
4532 #endif
4533 /* We use char because int might match the return type of a gcc2
4534 builtin and then its argument prototype would still apply. */
4535 char $ac_func ();
4536 char (*f) ();
4539 main ()
4541 /* The GNU C library defines this for functions which it implements
4542 to always fail with ENOSYS. Some functions are actually named
4543 something starting with __ and the normal name is an alias. */
4544 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4545 choke me
4546 #else
4547 f = $ac_func;
4548 #endif
4551 return 0;
4553 _ACEOF
4554 rm -f conftest.$ac_objext conftest$ac_exeext
4555 if { (eval echo "$as_me:4555: \"$ac_link\"") >&5
4556 (eval $ac_link) 2>&5
4557 ac_status=$?
4558 echo "$as_me:4558: \$? = $ac_status" >&5
4559 (exit $ac_status); } &&
4560 { ac_try='test -s conftest$ac_exeext'
4561 { (eval echo "$as_me:4561: \"$ac_try\"") >&5
4562 (eval $ac_try) 2>&5
4563 ac_status=$?
4564 echo "$as_me:4564: \$? = $ac_status" >&5
4565 (exit $ac_status); }; }; then
4566 eval "$as_ac_var=yes"
4567 else
4568 echo "$as_me: failed program was:" >&5
4569 cat conftest.$ac_ext >&5
4570 eval "$as_ac_var=no"
4572 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4574 echo "$as_me:4574: result: `eval echo '${'$as_ac_var'}'`" >&5
4575 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4576 if test `eval echo '${'$as_ac_var'}'` = yes; then
4577 cat >>confdefs.h <<EOF
4578 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4581 else
4582 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
4584 done
4586 LIBS="$saved_libs"
4588 for ac_func in gettimeofday rename strcasecmp strncasecmp strsep
4590 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4591 echo "$as_me:4591: checking for $ac_func" >&5
4592 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4593 if eval "test \"\${$as_ac_var+set}\" = set"; then
4594 echo $ECHO_N "(cached) $ECHO_C" >&6
4595 else
4596 cat >conftest.$ac_ext <<_ACEOF
4597 #line 4597 "configure"
4598 #include "confdefs.h"
4599 /* System header to define __stub macros and hopefully few prototypes,
4600 which can conflict with char $ac_func (); below. */
4601 #include <assert.h>
4602 /* Override any gcc2 internal prototype to avoid an error. */
4603 #ifdef __cplusplus
4604 extern "C"
4605 #endif
4606 /* We use char because int might match the return type of a gcc2
4607 builtin and then its argument prototype would still apply. */
4608 char $ac_func ();
4609 char (*f) ();
4612 main ()
4614 /* The GNU C library defines this for functions which it implements
4615 to always fail with ENOSYS. Some functions are actually named
4616 something starting with __ and the normal name is an alias. */
4617 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4618 choke me
4619 #else
4620 f = $ac_func;
4621 #endif
4624 return 0;
4626 _ACEOF
4627 rm -f conftest.$ac_objext conftest$ac_exeext
4628 if { (eval echo "$as_me:4628: \"$ac_link\"") >&5
4629 (eval $ac_link) 2>&5
4630 ac_status=$?
4631 echo "$as_me:4631: \$? = $ac_status" >&5
4632 (exit $ac_status); } &&
4633 { ac_try='test -s conftest$ac_exeext'
4634 { (eval echo "$as_me:4634: \"$ac_try\"") >&5
4635 (eval $ac_try) 2>&5
4636 ac_status=$?
4637 echo "$as_me:4637: \$? = $ac_status" >&5
4638 (exit $ac_status); }; }; then
4639 eval "$as_ac_var=yes"
4640 else
4641 echo "$as_me: failed program was:" >&5
4642 cat conftest.$ac_ext >&5
4643 eval "$as_ac_var=no"
4645 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4647 echo "$as_me:4647: result: `eval echo '${'$as_ac_var'}'`" >&5
4648 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4649 if test `eval echo '${'$as_ac_var'}'` = yes; then
4650 cat >>confdefs.h <<EOF
4651 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4655 done
4657 echo "$as_me:4657: checking for mkstemp" >&5
4658 echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
4659 ac_ext=cc
4660 ac_cpp='$CXXCPP $CPPFLAGS'
4661 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4662 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4663 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4665 cat >conftest.$ac_ext <<_ACEOF
4666 #line 4666 "configure"
4667 #include "confdefs.h"
4668 #include <stdlib.h>
4669 int (*f) (char *);
4671 main ()
4673 f = mkstemp;
4675 return 0;
4677 _ACEOF
4678 rm -f conftest.$ac_objext conftest$ac_exeext
4679 if { (eval echo "$as_me:4679: \"$ac_link\"") >&5
4680 (eval $ac_link) 2>&5
4681 ac_status=$?
4682 echo "$as_me:4682: \$? = $ac_status" >&5
4683 (exit $ac_status); } &&
4684 { ac_try='test -s conftest$ac_exeext'
4685 { (eval echo "$as_me:4685: \"$ac_try\"") >&5
4686 (eval $ac_try) 2>&5
4687 ac_status=$?
4688 echo "$as_me:4688: \$? = $ac_status" >&5
4689 (exit $ac_status); }; }; then
4690 echo "$as_me:4690: result: yes" >&5
4691 echo "${ECHO_T}yes" >&6;
4692 cat >>confdefs.h <<\EOF
4693 #define HAVE_MKSTEMP 1
4696 else
4697 echo "$as_me: failed program was:" >&5
4698 cat conftest.$ac_ext >&5
4699 echo "$as_me:4699: result: no" >&5
4700 echo "${ECHO_T}no" >&6;LIBOBJS="$LIBOBJS mkstemp.$ac_objext"
4702 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4703 ac_ext=c
4704 ac_cpp='$CPP $CPPFLAGS'
4705 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4706 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4707 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4709 echo "$as_me:4709: checking for sys_siglist declaration in signal.h or unistd.h" >&5
4710 echo $ECHO_N "checking for sys_siglist declaration in signal.h or unistd.h... $ECHO_C" >&6
4711 if test "${ac_cv_decl_sys_siglist+set}" = set; then
4712 echo $ECHO_N "(cached) $ECHO_C" >&6
4713 else
4714 cat >conftest.$ac_ext <<_ACEOF
4715 #line 4715 "configure"
4716 #include "confdefs.h"
4717 #include <sys/types.h>
4718 #include <signal.h>
4719 /* NetBSD declares sys_siglist in unistd.h. */
4720 #if HAVE_UNISTD_H
4721 # include <unistd.h>
4722 #endif
4725 main ()
4727 char *msg = *(sys_siglist + 1);
4729 return 0;
4731 _ACEOF
4732 rm -f conftest.$ac_objext
4733 if { (eval echo "$as_me:4733: \"$ac_compile\"") >&5
4734 (eval $ac_compile) 2>&5
4735 ac_status=$?
4736 echo "$as_me:4736: \$? = $ac_status" >&5
4737 (exit $ac_status); } &&
4738 { ac_try='test -s conftest.$ac_objext'
4739 { (eval echo "$as_me:4739: \"$ac_try\"") >&5
4740 (eval $ac_try) 2>&5
4741 ac_status=$?
4742 echo "$as_me:4742: \$? = $ac_status" >&5
4743 (exit $ac_status); }; }; then
4744 ac_cv_decl_sys_siglist=yes
4745 else
4746 echo "$as_me: failed program was:" >&5
4747 cat conftest.$ac_ext >&5
4748 ac_cv_decl_sys_siglist=no
4750 rm -f conftest.$ac_objext conftest.$ac_ext
4752 echo "$as_me:4752: result: $ac_cv_decl_sys_siglist" >&5
4753 echo "${ECHO_T}$ac_cv_decl_sys_siglist" >&6
4754 if test $ac_cv_decl_sys_siglist = yes; then
4756 cat >>confdefs.h <<\EOF
4757 #define SYS_SIGLIST_DECLARED 1
4762 ac_ext=cc
4763 ac_cpp='$CXXCPP $CPPFLAGS'
4764 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4765 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4766 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4768 echo "$as_me:4768: checking whether ANSI array delete syntax supported" >&5
4769 echo $ECHO_N "checking whether ANSI array delete syntax supported... $ECHO_C" >&6
4770 cat >conftest.$ac_ext <<_ACEOF
4771 #line 4771 "configure"
4772 #include "confdefs.h"
4775 main ()
4777 char *p = new char[5]; delete [] p;
4779 return 0;
4781 _ACEOF
4782 rm -f conftest.$ac_objext
4783 if { (eval echo "$as_me:4783: \"$ac_compile\"") >&5
4784 (eval $ac_compile) 2>&5
4785 ac_status=$?
4786 echo "$as_me:4786: \$? = $ac_status" >&5
4787 (exit $ac_status); } &&
4788 { ac_try='test -s conftest.$ac_objext'
4789 { (eval echo "$as_me:4789: \"$ac_try\"") >&5
4790 (eval $ac_try) 2>&5
4791 ac_status=$?
4792 echo "$as_me:4792: \$? = $ac_status" >&5
4793 (exit $ac_status); }; }; then
4794 echo "$as_me:4794: result: yes" >&5
4795 echo "${ECHO_T}yes" >&6
4796 else
4797 echo "$as_me: failed program was:" >&5
4798 cat conftest.$ac_ext >&5
4799 echo "$as_me:4799: result: no" >&5
4800 echo "${ECHO_T}no" >&6;
4801 cat >>confdefs.h <<\EOF
4802 #define ARRAY_DELETE_NEEDS_SIZE 1
4806 rm -f conftest.$ac_objext conftest.$ac_ext
4807 ac_ext=c
4808 ac_cpp='$CPP $CPPFLAGS'
4809 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4810 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4811 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4813 ac_ext=cc
4814 ac_cpp='$CXXCPP $CPPFLAGS'
4815 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4816 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4817 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4819 echo "$as_me:4819: checking traditional preprocessor" >&5
4820 echo $ECHO_N "checking traditional preprocessor... $ECHO_C" >&6
4821 cat >conftest.$ac_ext <<_ACEOF
4822 #line 4822 "configure"
4823 #include "confdefs.h"
4824 #define name2(a,b) a/**/b
4826 main ()
4828 int name2(foo,bar);
4830 return 0;
4832 _ACEOF
4833 rm -f conftest.$ac_objext
4834 if { (eval echo "$as_me:4834: \"$ac_compile\"") >&5
4835 (eval $ac_compile) 2>&5
4836 ac_status=$?
4837 echo "$as_me:4837: \$? = $ac_status" >&5
4838 (exit $ac_status); } &&
4839 { ac_try='test -s conftest.$ac_objext'
4840 { (eval echo "$as_me:4840: \"$ac_try\"") >&5
4841 (eval $ac_try) 2>&5
4842 ac_status=$?
4843 echo "$as_me:4843: \$? = $ac_status" >&5
4844 (exit $ac_status); }; }; then
4845 echo "$as_me:4845: result: yes" >&5
4846 echo "${ECHO_T}yes" >&6;
4847 cat >>confdefs.h <<\EOF
4848 #define TRADITIONAL_CPP 1
4851 else
4852 echo "$as_me: failed program was:" >&5
4853 cat conftest.$ac_ext >&5
4854 echo "$as_me:4854: result: no" >&5
4855 echo "${ECHO_T}no" >&6
4857 rm -f conftest.$ac_objext conftest.$ac_ext
4858 ac_ext=c
4859 ac_cpp='$CPP $CPPFLAGS'
4860 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4861 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4862 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4864 echo "$as_me:4864: checking w_coredump" >&5
4865 echo $ECHO_N "checking w_coredump... $ECHO_C" >&6
4866 if test "$cross_compiling" = yes; then
4867 echo "$as_me:4867: result: no" >&5
4868 echo "${ECHO_T}no" >&6
4869 else
4870 cat >conftest.$ac_ext <<_ACEOF
4871 #line 4871 "configure"
4872 #include "confdefs.h"
4873 #include <sys/types.h>
4874 #include <sys/wait.h>
4875 main()
4877 #ifdef WCOREFLAG
4878 exit(1);
4879 #else
4880 int i = 0;
4881 ((union wait *)&i)->w_coredump = 1;
4882 exit(i != 0200);
4883 #endif
4885 _ACEOF
4886 rm -f conftest$ac_exeext
4887 if { (eval echo "$as_me:4887: \"$ac_link\"") >&5
4888 (eval $ac_link) 2>&5
4889 ac_status=$?
4890 echo "$as_me:4890: \$? = $ac_status" >&5
4891 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4892 { (eval echo "$as_me:4892: \"$ac_try\"") >&5
4893 (eval $ac_try) 2>&5
4894 ac_status=$?
4895 echo "$as_me:4895: \$? = $ac_status" >&5
4896 (exit $ac_status); }; }; then
4897 echo "$as_me:4897: result: yes" >&5
4898 echo "${ECHO_T}yes" >&6;
4899 cat >>confdefs.h <<\EOF
4900 #define WCOREFLAG 0200
4903 else
4904 echo "$as_me: program exited with status $ac_status" >&5
4905 echo "$as_me: failed program was:" >&5
4906 cat conftest.$ac_ext >&5
4907 echo "$as_me:4907: result: no" >&5
4908 echo "${ECHO_T}no" >&6
4910 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4912 echo "$as_me:4912: checking default value for grops -b option" >&5
4913 echo $ECHO_N "checking default value for grops -b option... $ECHO_C" >&6
4914 test -n "${BROKEN_SPOOLER_FLAGS}" || BROKEN_SPOOLER_FLAGS=7
4915 echo "$as_me:4915: result: $BROKEN_SPOOLER_FLAGS" >&5
4916 echo "${ECHO_T}$BROKEN_SPOOLER_FLAGS" >&6
4918 echo "$as_me:4918: checking default paper size" >&5
4919 echo $ECHO_N "checking default paper size... $ECHO_C" >&6
4920 groff_prefix=$prefix
4921 test "x$prefix" = xNONE && groff_prefix=$ac_default_prefix
4922 if test -z "$PAGE"; then
4923 descfile=
4924 if test -r $groff_prefix/share/groff/font/devps/DESC; then
4925 descfile=$groff_prefix/share/groff/font/devps/DESC
4926 elif test -r $groff_prefix/lib/groff/font/devps/DESC; then
4927 descfile=$groff_prefix/lib/groff/font/devps/DESC
4928 else
4929 for f in $groff_prefix/share/groff/*/font/devps/DESC; do
4930 if test -r $f; then
4931 descfile=$f
4932 break
4934 done
4936 if test -n "$descfile"; then
4937 if grep '^paperlength[ ]\+841890' $descfile
4938 >/dev/null 2>&1; then
4939 PAGE=A4
4940 elif grep '^papersize[ ]\+[aA]4' $descfile \
4941 >/dev/null 2>&1; then
4942 PAGE=A4
4946 if test -z "$PAGE"; then
4947 dom=`awk '($1 == "dom" || $1 == "search") { print $2; exit}' \
4948 /etc/resolv.conf 2>/dev/null`
4949 if test -z "$dom"; then
4950 dom=`(domainname) 2>/dev/null | tr -d '+'`
4951 if test -z "$dom" \
4952 || test "$dom" = '(none)'; then
4953 dom=`(hostname) 2>/dev/null | grep '\.'`
4956 # If the top-level domain is two letters and it's not `us' or `ca'
4957 # then they probably use A4 paper.
4958 case "$dom" in
4959 *.[Uu][Ss]|*.[Cc][Aa]) ;;
4960 *.[A-Za-z][A-Za-z]) PAGE=A4 ;;
4961 esac
4963 test -n "$PAGE" || PAGE=letter
4964 if test "x$PAGE" = "xA4"; then
4966 cat >>confdefs.h <<\EOF
4967 #define PAGEA4 1
4971 echo "$as_me:4971: result: $PAGE" >&5
4972 echo "${ECHO_T}$PAGE" >&6
4974 echo "$as_me:4974: checking for existing troff installation" >&5
4975 echo $ECHO_N "checking for existing troff installation... $ECHO_C" >&6
4976 if test "x`(echo .tm '|n(.g' | tr '|' '\\\\' | troff -z -i 2>&1) 2>/dev/null`" = x0; then
4977 echo "$as_me:4977: result: yes" >&5
4978 echo "${ECHO_T}yes" >&6
4980 else
4981 echo "$as_me:4981: result: no" >&5
4982 echo "${ECHO_T}no" >&6
4986 echo "$as_me:4986: checking for prefix of system macro packages" >&5
4987 echo $ECHO_N "checking for prefix of system macro packages... $ECHO_C" >&6
4988 sys_tmac_prefix=
4989 sys_tmac_file_prefix=
4990 for d in /usr/share/lib/tmac /usr/lib/tmac; do
4991 for t in "" tmac.; do
4992 for m in an s m; do
4993 f=$d/$t$m
4994 if test -z "$sys_tmac_prefix" \
4995 && test -f $f \
4996 && grep '^\.if' $f >/dev/null 2>&1; then
4997 sys_tmac_prefix=$d/$t
4998 sys_tmac_file_prefix=$t
5000 done
5001 done
5002 done
5003 echo "$as_me:5003: result: $sys_tmac_prefix" >&5
5004 echo "${ECHO_T}$sys_tmac_prefix" >&6
5006 tmac_wrap=
5007 echo "$as_me:5007: checking which system macro packages should be made available" >&5
5008 echo $ECHO_N "checking which system macro packages should be made available... $ECHO_C" >&6
5009 if test "x$sys_tmac_file_prefix" = "xtmac."; then
5010 for f in $sys_tmac_prefix*; do
5011 suff=`echo $f | sed -e "s;$sys_tmac_prefix;;"`
5012 case "$suff" in
5013 e) ;;
5015 grep "Copyright.*Free Software Foundation" $f >/dev/null \
5016 || tmac_wrap="$tmac_wrap $suff" ;;
5017 esac
5018 done
5019 elif test -n "$sys_tmac_prefix"; then
5020 files=`echo $sys_tmac_prefix*`
5021 grep "\\.so" $files >conftest.sol
5022 for f in $files; do
5023 case "$f" in
5024 ${sys_tmac_prefix}e) ;;
5025 *.me) ;;
5026 */ms.*) ;;
5028 b=`basename $f`
5029 if grep "\\.so.*/$b\$" conftest.sol >/dev/null \
5030 || grep -l "Copyright.*Free Software Foundation" $f >/dev/null; then
5032 else
5033 suff=`echo $f | sed -e "s;$sys_tmac_prefix;;"`
5034 case "$suff" in
5035 tmac.*) ;;
5036 *) tmac_wrap="$tmac_wrap $suff" ;;
5037 esac
5039 esac
5040 done
5041 rm -f conftest.sol
5043 echo "$as_me:5043: result: $tmac_wrap" >&5
5044 echo "${ECHO_T}$tmac_wrap" >&6
5046 ac_config_files="$ac_config_files stamp-h"
5048 ac_config_files="$ac_config_files Makefile doc/Makefile src/xditview/Imakefile"
5050 cat >confcache <<\_ACEOF
5051 # This file is a shell script that caches the results of configure
5052 # tests run on this system so they can be shared between configure
5053 # scripts and configure runs, see configure's option --config-cache.
5054 # It is not useful on other systems. If it contains results you don't
5055 # want to keep, you may remove or edit it.
5057 # config.status only pays attention to the cache file if you give it
5058 # the --recheck option to rerun configure.
5060 # `ac_cv_env_foo' variables (set or unset) will be overriden when
5061 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5062 # following values.
5064 _ACEOF
5066 # The following way of writing the cache mishandles newlines in values,
5067 # but we know of no workaround that is simple, portable, and efficient.
5068 # So, don't put newlines in cache variables' values.
5069 # Ultrix sh set writes to stderr and can't be redirected directly,
5070 # and sets the high bit in the cache file unless we assign to the vars.
5072 (set) 2>&1 |
5073 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5074 *ac_space=\ *)
5075 # `set' does not quote correctly, so add quotes (double-quote
5076 # substitution turns \\\\ into \\, and sed turns \\ into \).
5077 sed -n \
5078 "s/'/'\\\\''/g;
5079 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5082 # `set' quotes correctly as required by POSIX, so do not add quotes.
5083 sed -n \
5084 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5086 esac;
5088 sed '
5089 t clear
5090 : clear
5091 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5092 t end
5093 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5094 : end' >>confcache
5095 if cmp -s $cache_file confcache; then :; else
5096 if test -w $cache_file; then
5097 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5098 cat confcache >$cache_file
5099 else
5100 echo "not updating unwritable cache $cache_file"
5103 rm -f confcache
5105 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5106 # Let make expand exec_prefix.
5107 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5109 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5110 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5111 # trailing colons and then remove the whole line if VPATH becomes empty
5112 # (actually we leave an empty line to preserve line numbers).
5113 if test "x$srcdir" = x.; then
5114 ac_vpsub='/^[ ]*VPATH[ ]*=/{
5115 s/:*\$(srcdir):*/:/;
5116 s/:*\${srcdir}:*/:/;
5117 s/:*@srcdir@:*/:/;
5118 s/^\([^=]*=[ ]*\):*/\1/;
5119 s/:*$//;
5120 s/^[^=]*=[ ]*$//;
5124 DEFS=-DHAVE_CONFIG_H
5126 : ${CONFIG_STATUS=./config.status}
5127 ac_clean_files_save=$ac_clean_files
5128 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5129 { echo "$as_me:5129: creating $CONFIG_STATUS" >&5
5130 echo "$as_me: creating $CONFIG_STATUS" >&6;}
5131 cat >$CONFIG_STATUS <<_ACEOF
5132 #! $SHELL
5133 # Generated automatically by configure.
5134 # Run this file to recreate the current configuration.
5135 # Compiler output produced by configure, useful for debugging
5136 # configure, is in config.log if it exists.
5138 debug=false
5139 SHELL=\${CONFIG_SHELL-$SHELL}
5140 ac_cs_invocation="\$0 \$@"
5142 _ACEOF
5144 cat >>$CONFIG_STATUS <<\_ACEOF
5145 # Be Bourne compatible
5146 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5147 emulate sh
5148 NULLCMD=:
5149 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5150 set -o posix
5153 # Name of the executable.
5154 as_me=`echo "$0" |sed 's,.*[\\/],,'`
5156 if expr a : '\(a\)' >/dev/null 2>&1; then
5157 as_expr=expr
5158 else
5159 as_expr=false
5162 rm -f conf$$ conf$$.exe conf$$.file
5163 echo >conf$$.file
5164 if ln -s conf$$.file conf$$ 2>/dev/null; then
5165 # We could just check for DJGPP; but this test a) works b) is more generic
5166 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5167 if test -f conf$$.exe; then
5168 # Don't use ln at all; we don't have any links
5169 as_ln_s='cp -p'
5170 else
5171 as_ln_s='ln -s'
5173 elif ln conf$$.file conf$$ 2>/dev/null; then
5174 as_ln_s=ln
5175 else
5176 as_ln_s='cp -p'
5178 rm -f conf$$ conf$$.exe conf$$.file
5180 as_executable_p="test -f"
5182 # Support unset when possible.
5183 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
5184 as_unset=unset
5185 else
5186 as_unset=false
5189 # NLS nuisances.
5190 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
5191 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
5192 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
5193 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
5194 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
5195 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
5196 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
5197 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
5199 # IFS
5200 # We need space, tab and new line, in precisely that order.
5201 as_nl='
5203 IFS=" $as_nl"
5205 # CDPATH.
5206 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
5208 exec 6>&1
5210 _ACEOF
5212 # Files that config.status was made for.
5213 if test -n "$ac_config_files"; then
5214 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5217 if test -n "$ac_config_headers"; then
5218 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5221 if test -n "$ac_config_links"; then
5222 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5225 if test -n "$ac_config_commands"; then
5226 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5229 cat >>$CONFIG_STATUS <<\EOF
5231 ac_cs_usage="\
5232 \`$as_me' instantiates files from templates according to the
5233 current configuration.
5235 Usage: $0 [OPTIONS] [FILE]...
5237 -h, --help print this help, then exit
5238 -V, --version print version number, then exit
5239 -d, --debug don't remove temporary files
5240 --recheck update $as_me by reconfiguring in the same conditions
5241 --file=FILE[:TEMPLATE]
5242 instantiate the configuration file FILE
5243 --header=FILE[:TEMPLATE]
5244 instantiate the configuration header FILE
5246 Configuration files:
5247 $config_files
5249 Configuration headers:
5250 $config_headers
5252 Report bugs to <bug-autoconf@gnu.org>."
5255 cat >>$CONFIG_STATUS <<EOF
5256 ac_cs_version="\\
5257 config.status
5258 configured by $0, generated by GNU Autoconf 2.52,
5259 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5261 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
5262 Free Software Foundation, Inc.
5263 This config.status script is free software; the Free Software Foundation
5264 gives unlimited permission to copy, distribute and modify it."
5265 srcdir=$srcdir
5266 INSTALL="$INSTALL"
5269 cat >>$CONFIG_STATUS <<\EOF
5270 # If no file are specified by the user, then we need to provide default
5271 # value. By we need to know if files were specified by the user.
5272 ac_need_defaults=:
5273 while test $# != 0
5275 case $1 in
5276 --*=*)
5277 ac_option=`expr "x$1" : 'x\([^=]*\)='`
5278 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5279 shift
5280 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
5281 shift
5283 -*);;
5284 *) # This is not an option, so the user has probably given explicit
5285 # arguments.
5286 ac_need_defaults=false;;
5287 esac
5289 case $1 in
5290 # Handling of the options.
5292 cat >>$CONFIG_STATUS <<EOF
5293 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5294 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
5295 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
5297 cat >>$CONFIG_STATUS <<\EOF
5298 --version | --vers* | -V )
5299 echo "$ac_cs_version"; exit 0 ;;
5300 --he | --h)
5301 # Conflict between --help and --header
5302 { { echo "$as_me:5302: error: ambiguous option: $1
5303 Try \`$0 --help' for more information." >&5
5304 echo "$as_me: error: ambiguous option: $1
5305 Try \`$0 --help' for more information." >&2;}
5306 { (exit 1); exit 1; }; };;
5307 --help | --hel | -h )
5308 echo "$ac_cs_usage"; exit 0 ;;
5309 --debug | --d* | -d )
5310 debug=: ;;
5311 --file | --fil | --fi | --f )
5312 shift
5313 CONFIG_FILES="$CONFIG_FILES $1"
5314 ac_need_defaults=false;;
5315 --header | --heade | --head | --hea )
5316 shift
5317 CONFIG_HEADERS="$CONFIG_HEADERS $1"
5318 ac_need_defaults=false;;
5320 # This is an error.
5321 -*) { { echo "$as_me:5321: error: unrecognized option: $1
5322 Try \`$0 --help' for more information." >&5
5323 echo "$as_me: error: unrecognized option: $1
5324 Try \`$0 --help' for more information." >&2;}
5325 { (exit 1); exit 1; }; } ;;
5327 *) ac_config_targets="$ac_config_targets $1" ;;
5329 esac
5330 shift
5331 done
5333 exec 5>>config.log
5334 cat >&5 << _ACEOF
5336 ## ----------------------- ##
5337 ## Running config.status. ##
5338 ## ----------------------- ##
5340 This file was extended by $as_me 2.52, executed with
5341 CONFIG_FILES = $CONFIG_FILES
5342 CONFIG_HEADERS = $CONFIG_HEADERS
5343 CONFIG_LINKS = $CONFIG_LINKS
5344 CONFIG_COMMANDS = $CONFIG_COMMANDS
5345 > $ac_cs_invocation
5346 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5348 _ACEOF
5351 cat >>$CONFIG_STATUS <<\EOF
5352 for ac_config_target in $ac_config_targets
5354 case "$ac_config_target" in
5355 # Handling of arguments.
5356 "stamp-h" ) CONFIG_FILES="$CONFIG_FILES stamp-h" ;;
5357 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5358 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
5359 "src/xditview/Imakefile" ) CONFIG_FILES="$CONFIG_FILES src/xditview/Imakefile" ;;
5360 "src/include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/config.h:src/include/config.hin" ;;
5361 *) { { echo "$as_me:5361: error: invalid argument: $ac_config_target" >&5
5362 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5363 { (exit 1); exit 1; }; };;
5364 esac
5365 done
5367 # If the user did not use the arguments to specify the items to instantiate,
5368 # then the envvar interface is used. Set only those that are not.
5369 # We use the long form for the default assignment because of an extremely
5370 # bizarre bug on SunOS 4.1.3.
5371 if $ac_need_defaults; then
5372 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5373 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5376 # Create a temporary directory, and hook for its removal unless debugging.
5377 $debug ||
5379 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5380 trap '{ (exit 1); exit 1; }' 1 2 13 15
5383 # Create a (secure) tmp directory for tmp files.
5384 : ${TMPDIR=/tmp}
5386 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
5387 test -n "$tmp" && test -d "$tmp"
5388 } ||
5390 tmp=$TMPDIR/cs$$-$RANDOM
5391 (umask 077 && mkdir $tmp)
5392 } ||
5394 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
5395 { (exit 1); exit 1; }
5400 cat >>$CONFIG_STATUS <<EOF
5403 # CONFIG_FILES section.
5406 # No need to generate the scripts if there are no CONFIG_FILES.
5407 # This happens for instance when ./config.status config.h
5408 if test -n "\$CONFIG_FILES"; then
5409 # Protect against being on the right side of a sed subst in config.status.
5410 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5411 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5412 s,@SHELL@,$SHELL,;t t
5413 s,@exec_prefix@,$exec_prefix,;t t
5414 s,@prefix@,$prefix,;t t
5415 s,@program_transform_name@,$program_transform_name,;t t
5416 s,@bindir@,$bindir,;t t
5417 s,@sbindir@,$sbindir,;t t
5418 s,@libexecdir@,$libexecdir,;t t
5419 s,@datadir@,$datadir,;t t
5420 s,@sysconfdir@,$sysconfdir,;t t
5421 s,@sharedstatedir@,$sharedstatedir,;t t
5422 s,@localstatedir@,$localstatedir,;t t
5423 s,@libdir@,$libdir,;t t
5424 s,@includedir@,$includedir,;t t
5425 s,@oldincludedir@,$oldincludedir,;t t
5426 s,@infodir@,$infodir,;t t
5427 s,@mandir@,$mandir,;t t
5428 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5429 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5430 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5431 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5432 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5433 s,@build_alias@,$build_alias,;t t
5434 s,@host_alias@,$host_alias,;t t
5435 s,@target_alias@,$target_alias,;t t
5436 s,@ECHO_C@,$ECHO_C,;t t
5437 s,@ECHO_N@,$ECHO_N,;t t
5438 s,@ECHO_T@,$ECHO_T,;t t
5439 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5440 s,@DEFS@,$DEFS,;t t
5441 s,@LIBS@,$LIBS,;t t
5442 s,@top_builddir@,$top_builddir,;t t
5443 s,@CC@,$CC,;t t
5444 s,@CFLAGS@,$CFLAGS,;t t
5445 s,@LDFLAGS@,$LDFLAGS,;t t
5446 s,@CPPFLAGS@,$CPPFLAGS,;t t
5447 s,@ac_ct_CC@,$ac_ct_CC,;t t
5448 s,@EXEEXT@,$EXEEXT,;t t
5449 s,@OBJEXT@,$OBJEXT,;t t
5450 s,@CXX@,$CXX,;t t
5451 s,@CXXFLAGS@,$CXXFLAGS,;t t
5452 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
5453 s,@TTYDEVDIRS@,$TTYDEVDIRS,;t t
5454 s,@OTHERDEVDIRS@,$OTHERDEVDIRS,;t t
5455 s,@LPR@,$LPR,;t t
5456 s,@LP@,$LP,;t t
5457 s,@LPQ@,$LPQ,;t t
5458 s,@PSPRINT@,$PSPRINT,;t t
5459 s,@DVIPRINT@,$DVIPRINT,;t t
5460 s,@PERLPATH@,$PERLPATH,;t t
5461 s,@YACC@,$YACC,;t t
5462 s,@RANLIB@,$RANLIB,;t t
5463 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
5464 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
5465 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
5466 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
5467 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
5468 s,@LN_S@,$LN_S,;t t
5469 s,@SH_SCRIPT_SED_CMD@,$SH_SCRIPT_SED_CMD,;t t
5470 s,@CPP@,$CPP,;t t
5471 s,@LIBM@,$LIBM,;t t
5472 s,@LIBOBJS@,$LIBOBJS,;t t
5473 s,@BROKEN_SPOOLER_FLAGS@,$BROKEN_SPOOLER_FLAGS,;t t
5474 s,@PAGE@,$PAGE,;t t
5475 s,@g@,$g,;t t
5476 s,@sys_tmac_prefix@,$sys_tmac_prefix,;t t
5477 s,@tmac_wrap@,$tmac_wrap,;t t
5478 CEOF
5482 cat >>$CONFIG_STATUS <<\EOF
5483 # Split the substitutions into bite-sized pieces for seds with
5484 # small command number limits, like on Digital OSF/1 and HP-UX.
5485 ac_max_sed_lines=48
5486 ac_sed_frag=1 # Number of current file.
5487 ac_beg=1 # First line for current file.
5488 ac_end=$ac_max_sed_lines # Line after last line for current file.
5489 ac_more_lines=:
5490 ac_sed_cmds=
5491 while $ac_more_lines; do
5492 if test $ac_beg -gt 1; then
5493 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5494 else
5495 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5497 if test ! -s $tmp/subs.frag; then
5498 ac_more_lines=false
5499 else
5500 # The purpose of the label and of the branching condition is to
5501 # speed up the sed processing (if there are no `@' at all, there
5502 # is no need to browse any of the substitutions).
5503 # These are the two extra sed commands mentioned above.
5504 (echo ':t
5505 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
5506 if test -z "$ac_sed_cmds"; then
5507 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
5508 else
5509 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5511 ac_sed_frag=`expr $ac_sed_frag + 1`
5512 ac_beg=$ac_end
5513 ac_end=`expr $ac_end + $ac_max_sed_lines`
5515 done
5516 if test -z "$ac_sed_cmds"; then
5517 ac_sed_cmds=cat
5519 fi # test -n "$CONFIG_FILES"
5522 cat >>$CONFIG_STATUS <<\EOF
5523 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5524 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5525 case $ac_file in
5526 - | *:- | *:-:* ) # input from stdin
5527 cat >$tmp/stdin
5528 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5529 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5530 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5531 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5532 * ) ac_file_in=$ac_file.in ;;
5533 esac
5535 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5536 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5537 X"$ac_file" : 'X\(//\)[^/]' \| \
5538 X"$ac_file" : 'X\(//\)$' \| \
5539 X"$ac_file" : 'X\(/\)' \| \
5540 . : '\(.\)' 2>/dev/null ||
5541 echo X"$ac_file" |
5542 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5543 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5544 /^X\(\/\/\)$/{ s//\1/; q; }
5545 /^X\(\/\).*/{ s//\1/; q; }
5546 s/.*/./; q'`
5547 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5548 { case "$ac_dir" in
5549 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
5550 *) as_incr_dir=.;;
5551 esac
5552 as_dummy="$ac_dir"
5553 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
5554 case $as_mkdir_dir in
5555 # Skip DOS drivespec
5556 ?:) as_incr_dir=$as_mkdir_dir ;;
5558 as_incr_dir=$as_incr_dir/$as_mkdir_dir
5559 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
5561 esac
5562 done; }
5564 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
5565 # A "../" for each directory in $ac_dir_suffix.
5566 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
5567 else
5568 ac_dir_suffix= ac_dots=
5571 case $srcdir in
5572 .) ac_srcdir=.
5573 if test -z "$ac_dots"; then
5574 ac_top_srcdir=.
5575 else
5576 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
5577 fi ;;
5578 [\\/]* | ?:[\\/]* )
5579 ac_srcdir=$srcdir$ac_dir_suffix;
5580 ac_top_srcdir=$srcdir ;;
5581 *) # Relative path.
5582 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
5583 ac_top_srcdir=$ac_dots$srcdir ;;
5584 esac
5586 case $INSTALL in
5587 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5588 *) ac_INSTALL=$ac_dots$INSTALL ;;
5589 esac
5591 if test x"$ac_file" != x-; then
5592 { echo "$as_me:5592: creating $ac_file" >&5
5593 echo "$as_me: creating $ac_file" >&6;}
5594 rm -f "$ac_file"
5596 # Let's still pretend it is `configure' which instantiates (i.e., don't
5597 # use $as_me), people would be surprised to read:
5598 # /* config.h. Generated automatically by config.status. */
5599 configure_input="Generated automatically from `echo $ac_file_in |
5600 sed 's,.*/,,'` by configure."
5602 # First look for the input files in the build tree, otherwise in the
5603 # src tree.
5604 ac_file_inputs=`IFS=:
5605 for f in $ac_file_in; do
5606 case $f in
5607 -) echo $tmp/stdin ;;
5608 [\\/$]*)
5609 # Absolute (can't be DOS-style, as IFS=:)
5610 test -f "$f" || { { echo "$as_me:5610: error: cannot find input file: $f" >&5
5611 echo "$as_me: error: cannot find input file: $f" >&2;}
5612 { (exit 1); exit 1; }; }
5613 echo $f;;
5614 *) # Relative
5615 if test -f "$f"; then
5616 # Build tree
5617 echo $f
5618 elif test -f "$srcdir/$f"; then
5619 # Source tree
5620 echo $srcdir/$f
5621 else
5622 # /dev/null tree
5623 { { echo "$as_me:5623: error: cannot find input file: $f" >&5
5624 echo "$as_me: error: cannot find input file: $f" >&2;}
5625 { (exit 1); exit 1; }; }
5626 fi;;
5627 esac
5628 done` || { (exit 1); exit 1; }
5630 cat >>$CONFIG_STATUS <<EOF
5631 sed "$ac_vpsub
5632 $extrasub
5634 cat >>$CONFIG_STATUS <<\EOF
5636 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5637 s,@configure_input@,$configure_input,;t t
5638 s,@srcdir@,$ac_srcdir,;t t
5639 s,@top_srcdir@,$ac_top_srcdir,;t t
5640 s,@INSTALL@,$ac_INSTALL,;t t
5641 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5642 rm -f $tmp/stdin
5643 if test x"$ac_file" != x-; then
5644 mv $tmp/out $ac_file
5645 else
5646 cat $tmp/out
5647 rm -f $tmp/out
5650 # Run the commands associated with the file.
5651 case $ac_file in
5652 stamp-h ) echo timestamp > stamp-h ;;
5653 esac
5654 done
5656 cat >>$CONFIG_STATUS <<\EOF
5659 # CONFIG_HEADER section.
5662 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5663 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5665 # ac_d sets the value in "#define NAME VALUE" lines.
5666 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5667 ac_dB='[ ].*$,\1#\2'
5668 ac_dC=' '
5669 ac_dD=',;t'
5670 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5671 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5672 ac_uB='$,\1#\2define\3'
5673 ac_uC=' '
5674 ac_uD=',;t'
5676 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
5677 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5678 case $ac_file in
5679 - | *:- | *:-:* ) # input from stdin
5680 cat >$tmp/stdin
5681 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5682 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5683 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5684 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5685 * ) ac_file_in=$ac_file.in ;;
5686 esac
5688 test x"$ac_file" != x- && { echo "$as_me:5688: creating $ac_file" >&5
5689 echo "$as_me: creating $ac_file" >&6;}
5691 # First look for the input files in the build tree, otherwise in the
5692 # src tree.
5693 ac_file_inputs=`IFS=:
5694 for f in $ac_file_in; do
5695 case $f in
5696 -) echo $tmp/stdin ;;
5697 [\\/$]*)
5698 # Absolute (can't be DOS-style, as IFS=:)
5699 test -f "$f" || { { echo "$as_me:5699: error: cannot find input file: $f" >&5
5700 echo "$as_me: error: cannot find input file: $f" >&2;}
5701 { (exit 1); exit 1; }; }
5702 echo $f;;
5703 *) # Relative
5704 if test -f "$f"; then
5705 # Build tree
5706 echo $f
5707 elif test -f "$srcdir/$f"; then
5708 # Source tree
5709 echo $srcdir/$f
5710 else
5711 # /dev/null tree
5712 { { echo "$as_me:5712: error: cannot find input file: $f" >&5
5713 echo "$as_me: error: cannot find input file: $f" >&2;}
5714 { (exit 1); exit 1; }; }
5715 fi;;
5716 esac
5717 done` || { (exit 1); exit 1; }
5718 # Remove the trailing spaces.
5719 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
5723 # Transform confdefs.h into two sed scripts, `conftest.defines' and
5724 # `conftest.undefs', that substitutes the proper values into
5725 # config.h.in to produce config.h. The first handles `#define'
5726 # templates, and the second `#undef' templates.
5727 # And first: Protect against being on the right side of a sed subst in
5728 # config.status. Protect against being in an unquoted here document
5729 # in config.status.
5730 rm -f conftest.defines conftest.undefs
5731 # Using a here document instead of a string reduces the quoting nightmare.
5732 # Putting comments in sed scripts is not portable.
5734 # `end' is used to avoid that the second main sed command (meant for
5735 # 0-ary CPP macros) applies to n-ary macro definitions.
5736 # See the Autoconf documentation for `clear'.
5737 cat >confdef2sed.sed <<\EOF
5738 s/[\\&,]/\\&/g
5739 s,[\\$`],\\&,g
5740 t clear
5741 : clear
5742 s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
5743 t end
5744 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
5745 : end
5747 # If some macros were called several times there might be several times
5748 # the same #defines, which is useless. Nevertheless, we may not want to
5749 # sort them, since we want the *last* AC-DEFINE to be honored.
5750 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
5751 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
5752 rm -f confdef2sed.sed
5754 # This sed command replaces #undef with comments. This is necessary, for
5755 # example, in the case of _POSIX_SOURCE, which is predefined and required
5756 # on some systems where configure will not decide to define it.
5757 cat >>conftest.undefs <<\EOF
5758 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
5761 # Break up conftest.defines because some shells have a limit on the size
5762 # of here documents, and old seds have small limits too (100 cmds).
5763 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
5764 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
5765 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
5766 echo ' :' >>$CONFIG_STATUS
5767 rm -f conftest.tail
5768 while grep . conftest.defines >/dev/null
5770 # Write a limited-size here document to $tmp/defines.sed.
5771 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
5772 # Speed up: don't consider the non `#define' lines.
5773 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
5774 # Work around the forget-to-reset-the-flag bug.
5775 echo 't clr' >>$CONFIG_STATUS
5776 echo ': clr' >>$CONFIG_STATUS
5777 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
5778 echo 'CEOF
5779 sed -f $tmp/defines.sed $tmp/in >$tmp/out
5780 rm -f $tmp/in
5781 mv $tmp/out $tmp/in
5782 ' >>$CONFIG_STATUS
5783 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
5784 rm -f conftest.defines
5785 mv conftest.tail conftest.defines
5786 done
5787 rm -f conftest.defines
5788 echo ' fi # egrep' >>$CONFIG_STATUS
5789 echo >>$CONFIG_STATUS
5791 # Break up conftest.undefs because some shells have a limit on the size
5792 # of here documents, and old seds have small limits too (100 cmds).
5793 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
5794 rm -f conftest.tail
5795 while grep . conftest.undefs >/dev/null
5797 # Write a limited-size here document to $tmp/undefs.sed.
5798 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
5799 # Speed up: don't consider the non `#undef'
5800 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
5801 # Work around the forget-to-reset-the-flag bug.
5802 echo 't clr' >>$CONFIG_STATUS
5803 echo ': clr' >>$CONFIG_STATUS
5804 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
5805 echo 'CEOF
5806 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
5807 rm -f $tmp/in
5808 mv $tmp/out $tmp/in
5809 ' >>$CONFIG_STATUS
5810 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
5811 rm -f conftest.undefs
5812 mv conftest.tail conftest.undefs
5813 done
5814 rm -f conftest.undefs
5816 cat >>$CONFIG_STATUS <<\EOF
5817 # Let's still pretend it is `configure' which instantiates (i.e., don't
5818 # use $as_me), people would be surprised to read:
5819 # /* config.h. Generated automatically by config.status. */
5820 if test x"$ac_file" = x-; then
5821 echo "/* Generated automatically by configure. */" >$tmp/config.h
5822 else
5823 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
5825 cat $tmp/in >>$tmp/config.h
5826 rm -f $tmp/in
5827 if test x"$ac_file" != x-; then
5828 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
5829 { echo "$as_me:5829: $ac_file is unchanged" >&5
5830 echo "$as_me: $ac_file is unchanged" >&6;}
5831 else
5832 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5833 X"$ac_file" : 'X\(//\)[^/]' \| \
5834 X"$ac_file" : 'X\(//\)$' \| \
5835 X"$ac_file" : 'X\(/\)' \| \
5836 . : '\(.\)' 2>/dev/null ||
5837 echo X"$ac_file" |
5838 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5839 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5840 /^X\(\/\/\)$/{ s//\1/; q; }
5841 /^X\(\/\).*/{ s//\1/; q; }
5842 s/.*/./; q'`
5843 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5844 { case "$ac_dir" in
5845 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
5846 *) as_incr_dir=.;;
5847 esac
5848 as_dummy="$ac_dir"
5849 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
5850 case $as_mkdir_dir in
5851 # Skip DOS drivespec
5852 ?:) as_incr_dir=$as_mkdir_dir ;;
5854 as_incr_dir=$as_incr_dir/$as_mkdir_dir
5855 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
5857 esac
5858 done; }
5861 rm -f $ac_file
5862 mv $tmp/config.h $ac_file
5864 else
5865 cat $tmp/config.h
5866 rm -f $tmp/config.h
5868 done
5871 cat >>$CONFIG_STATUS <<\EOF
5873 { (exit 0); exit 0; }
5875 chmod +x $CONFIG_STATUS
5876 ac_clean_files=$ac_clean_files_save
5878 # configure is writing to config.log, and then calls config.status.
5879 # config.status does its own redirection, appending to config.log.
5880 # Unfortunately, on DOS this fails, as config.log is still kept open
5881 # by configure, so config.status won't be able to write to it; its
5882 # output is simply discarded. So we exec the FD to /dev/null,
5883 # effectively closing config.log, so it can be properly (re)opened and
5884 # appended to by config.status. When coming back to configure, we
5885 # need to make the FD available again.
5886 if test "$no_create" != yes; then
5887 ac_cs_success=:
5888 exec 5>/dev/null
5889 $SHELL $CONFIG_STATUS || ac_cs_success=false
5890 exec 5>>config.log
5891 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5892 # would make configure fail if this is the last instruction.
5893 $ac_cs_success || { (exit 1); exit 1; }
5896 { echo "$as_me:5896:
5898 Configuration completed.
5900 You can now say \`make' to compile the groff package and \`make install'
5901 to install it afterwards.
5903 If you want to compile xditview, change the directory to \`src/xditview'
5904 and follow the instructions given in the file \`INSTALL'.
5905 " >&5
5906 echo "$as_me:
5908 Configuration completed.
5910 You can now say \`make' to compile the groff package and \`make install'
5911 to install it afterwards.
5913 If you want to compile xditview, change the directory to \`src/xditview'
5914 and follow the instructions given in the file \`INSTALL'.
5915 " >&6;}