* fonts/devcp1047/R.proto, fonts/devlatin1/R.proto,
[s-roff.git] / configure
blobdcea3da4646b4a5aad908793c2343e1cb7aa8f41
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 # Find a good install program. We prefer a C program (faster),
2479 # so one script is as good as another. But avoid the broken or
2480 # incompatible versions:
2481 # SysV /etc/install, /usr/sbin/install
2482 # SunOS /usr/etc/install
2483 # IRIX /sbin/install
2484 # AIX /bin/install
2485 # AmigaOS /C/install, which installs bootblocks on floppy discs
2486 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2487 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2488 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2489 # ./install, which can be erroneously created by make from ./install.sh.
2490 echo "$as_me:2490: checking for a BSD compatible install" >&5
2491 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
2492 if test -z "$INSTALL"; then
2493 if test "${ac_cv_path_install+set}" = set; then
2494 echo $ECHO_N "(cached) $ECHO_C" >&6
2495 else
2496 ac_save_IFS=$IFS; IFS=$ac_path_separator
2497 for ac_dir in $PATH; do
2498 IFS=$ac_save_IFS
2499 # Account for people who put trailing slashes in PATH elements.
2500 case $ac_dir/ in
2501 / | ./ | .// | /cC/* \
2502 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
2503 | /usr/ucb/* ) ;;
2505 # OSF1 and SCO ODT 3.0 have their own names for install.
2506 # Don't use installbsd from OSF since it installs stuff as root
2507 # by default.
2508 for ac_prog in ginstall scoinst install; do
2509 if $as_executable_p "$ac_dir/$ac_prog"; then
2510 if test $ac_prog = install &&
2511 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2512 # AIX install. It has an incompatible calling convention.
2514 elif test $ac_prog = install &&
2515 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2516 # program-specific install script used by HP pwplus--don't use.
2518 else
2519 ac_cv_path_install="$ac_dir/$ac_prog -c"
2520 break 2
2523 done
2525 esac
2526 done
2529 if test "${ac_cv_path_install+set}" = set; then
2530 INSTALL=$ac_cv_path_install
2531 else
2532 # As a last resort, use the slow shell script. We don't cache a
2533 # path for INSTALL within a source directory, because that will
2534 # break other packages using the cache if that directory is
2535 # removed, or if the path is relative.
2536 INSTALL=$ac_install_sh
2539 echo "$as_me:2539: result: $INSTALL" >&5
2540 echo "${ECHO_T}$INSTALL" >&6
2542 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2543 # It thinks the first close brace ends the variable substitution.
2544 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2546 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2548 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2550 echo "$as_me:2550: checking whether ln -s works" >&5
2551 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2552 LN_S=$as_ln_s
2553 if test "$LN_S" = "ln -s"; then
2554 echo "$as_me:2554: result: yes" >&5
2555 echo "${ECHO_T}yes" >&6
2556 else
2557 echo "$as_me:2557: result: no, using $LN_S" >&5
2558 echo "${ECHO_T}no, using $LN_S" >&6
2561 echo "$as_me:2561: checking for csh hash hack" >&5
2562 echo $ECHO_N "checking for csh hash hack... $ECHO_C" >&6
2563 cat <<EOF >conftest.sh
2564 #!/bin/sh
2565 true || exit 0
2566 export PATH || exit 0
2567 exit 1
2569 chmod +x conftest.sh
2570 if echo ./conftest.sh | (csh >/dev/null 2>&1) >/dev/null 2>&1; then
2571 echo "$as_me:2571: result: yes" >&5
2572 echo "${ECHO_T}yes" >&6; SH_SCRIPT_SED_CMD='1s/.*/:/'
2573 else
2574 echo "$as_me:2574: result: no" >&5
2575 echo "${ECHO_T}no" >&6; SH_SCRIPT_SED_CMD='1s/a/a/'
2577 rm -f conftest.sh
2579 ac_ext=c
2580 ac_cpp='$CPP $CPPFLAGS'
2581 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2582 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2583 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2584 echo "$as_me:2584: checking how to run the C preprocessor" >&5
2585 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2586 # On Suns, sometimes $CPP names a directory.
2587 if test -n "$CPP" && test -d "$CPP"; then
2588 CPP=
2590 if test -z "$CPP"; then
2591 if test "${ac_cv_prog_CPP+set}" = set; then
2592 echo $ECHO_N "(cached) $ECHO_C" >&6
2593 else
2594 # Double quotes because CPP needs to be expanded
2595 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2597 ac_preproc_ok=false
2598 for ac_c_preproc_warn_flag in '' yes
2600 # Use a header file that comes with gcc, so configuring glibc
2601 # with a fresh cross-compiler works.
2602 # On the NeXT, cc -E runs the code through the compiler's parser,
2603 # not just through cpp. "Syntax error" is here to catch this case.
2604 cat >conftest.$ac_ext <<_ACEOF
2605 #line 2605 "configure"
2606 #include "confdefs.h"
2607 #include <assert.h>
2608 Syntax error
2609 _ACEOF
2610 if { (eval echo "$as_me:2610: \"$ac_cpp conftest.$ac_ext\"") >&5
2611 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2612 ac_status=$?
2613 egrep -v '^ *\+' conftest.er1 >conftest.err
2614 rm -f conftest.er1
2615 cat conftest.err >&5
2616 echo "$as_me:2616: \$? = $ac_status" >&5
2617 (exit $ac_status); } >/dev/null; then
2618 if test -s conftest.err; then
2619 ac_cpp_err=$ac_c_preproc_warn_flag
2620 else
2621 ac_cpp_err=
2623 else
2624 ac_cpp_err=yes
2626 if test -z "$ac_cpp_err"; then
2628 else
2629 echo "$as_me: failed program was:" >&5
2630 cat conftest.$ac_ext >&5
2631 # Broken: fails on valid input.
2632 continue
2634 rm -f conftest.err conftest.$ac_ext
2636 # OK, works on sane cases. Now check whether non-existent headers
2637 # can be detected and how.
2638 cat >conftest.$ac_ext <<_ACEOF
2639 #line 2639 "configure"
2640 #include "confdefs.h"
2641 #include <ac_nonexistent.h>
2642 _ACEOF
2643 if { (eval echo "$as_me:2643: \"$ac_cpp conftest.$ac_ext\"") >&5
2644 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2645 ac_status=$?
2646 egrep -v '^ *\+' conftest.er1 >conftest.err
2647 rm -f conftest.er1
2648 cat conftest.err >&5
2649 echo "$as_me:2649: \$? = $ac_status" >&5
2650 (exit $ac_status); } >/dev/null; then
2651 if test -s conftest.err; then
2652 ac_cpp_err=$ac_c_preproc_warn_flag
2653 else
2654 ac_cpp_err=
2656 else
2657 ac_cpp_err=yes
2659 if test -z "$ac_cpp_err"; then
2660 # Broken: success on invalid input.
2661 continue
2662 else
2663 echo "$as_me: failed program was:" >&5
2664 cat conftest.$ac_ext >&5
2665 # Passes both tests.
2666 ac_preproc_ok=:
2667 break
2669 rm -f conftest.err conftest.$ac_ext
2671 done
2672 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2673 rm -f conftest.err conftest.$ac_ext
2674 if $ac_preproc_ok; then
2675 break
2678 done
2679 ac_cv_prog_CPP=$CPP
2682 CPP=$ac_cv_prog_CPP
2683 else
2684 ac_cv_prog_CPP=$CPP
2686 echo "$as_me:2686: result: $CPP" >&5
2687 echo "${ECHO_T}$CPP" >&6
2688 ac_preproc_ok=false
2689 for ac_c_preproc_warn_flag in '' yes
2691 # Use a header file that comes with gcc, so configuring glibc
2692 # with a fresh cross-compiler works.
2693 # On the NeXT, cc -E runs the code through the compiler's parser,
2694 # not just through cpp. "Syntax error" is here to catch this case.
2695 cat >conftest.$ac_ext <<_ACEOF
2696 #line 2696 "configure"
2697 #include "confdefs.h"
2698 #include <assert.h>
2699 Syntax error
2700 _ACEOF
2701 if { (eval echo "$as_me:2701: \"$ac_cpp conftest.$ac_ext\"") >&5
2702 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2703 ac_status=$?
2704 egrep -v '^ *\+' conftest.er1 >conftest.err
2705 rm -f conftest.er1
2706 cat conftest.err >&5
2707 echo "$as_me:2707: \$? = $ac_status" >&5
2708 (exit $ac_status); } >/dev/null; then
2709 if test -s conftest.err; then
2710 ac_cpp_err=$ac_c_preproc_warn_flag
2711 else
2712 ac_cpp_err=
2714 else
2715 ac_cpp_err=yes
2717 if test -z "$ac_cpp_err"; then
2719 else
2720 echo "$as_me: failed program was:" >&5
2721 cat conftest.$ac_ext >&5
2722 # Broken: fails on valid input.
2723 continue
2725 rm -f conftest.err conftest.$ac_ext
2727 # OK, works on sane cases. Now check whether non-existent headers
2728 # can be detected and how.
2729 cat >conftest.$ac_ext <<_ACEOF
2730 #line 2730 "configure"
2731 #include "confdefs.h"
2732 #include <ac_nonexistent.h>
2733 _ACEOF
2734 if { (eval echo "$as_me:2734: \"$ac_cpp conftest.$ac_ext\"") >&5
2735 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2736 ac_status=$?
2737 egrep -v '^ *\+' conftest.er1 >conftest.err
2738 rm -f conftest.er1
2739 cat conftest.err >&5
2740 echo "$as_me:2740: \$? = $ac_status" >&5
2741 (exit $ac_status); } >/dev/null; then
2742 if test -s conftest.err; then
2743 ac_cpp_err=$ac_c_preproc_warn_flag
2744 else
2745 ac_cpp_err=
2747 else
2748 ac_cpp_err=yes
2750 if test -z "$ac_cpp_err"; then
2751 # Broken: success on invalid input.
2752 continue
2753 else
2754 echo "$as_me: failed program was:" >&5
2755 cat conftest.$ac_ext >&5
2756 # Passes both tests.
2757 ac_preproc_ok=:
2758 break
2760 rm -f conftest.err conftest.$ac_ext
2762 done
2763 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2764 rm -f conftest.err conftest.$ac_ext
2765 if $ac_preproc_ok; then
2767 else
2768 { { echo "$as_me:2768: error: C preprocessor \"$CPP\" fails sanity check" >&5
2769 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2770 { (exit 1); exit 1; }; }
2773 ac_ext=c
2774 ac_cpp='$CPP $CPPFLAGS'
2775 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2776 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2777 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2779 for ac_header in stdlib.h unistd.h dirent.h limits.h sys/dir.h \
2780 string.h strings.h math.h stdint.h sys/time.h
2782 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2783 echo "$as_me:2783: checking for $ac_header" >&5
2784 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2785 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2786 echo $ECHO_N "(cached) $ECHO_C" >&6
2787 else
2788 cat >conftest.$ac_ext <<_ACEOF
2789 #line 2789 "configure"
2790 #include "confdefs.h"
2791 #include <$ac_header>
2792 _ACEOF
2793 if { (eval echo "$as_me:2793: \"$ac_cpp conftest.$ac_ext\"") >&5
2794 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2795 ac_status=$?
2796 egrep -v '^ *\+' conftest.er1 >conftest.err
2797 rm -f conftest.er1
2798 cat conftest.err >&5
2799 echo "$as_me:2799: \$? = $ac_status" >&5
2800 (exit $ac_status); } >/dev/null; then
2801 if test -s conftest.err; then
2802 ac_cpp_err=$ac_c_preproc_warn_flag
2803 else
2804 ac_cpp_err=
2806 else
2807 ac_cpp_err=yes
2809 if test -z "$ac_cpp_err"; then
2810 eval "$as_ac_Header=yes"
2811 else
2812 echo "$as_me: failed program was:" >&5
2813 cat conftest.$ac_ext >&5
2814 eval "$as_ac_Header=no"
2816 rm -f conftest.err conftest.$ac_ext
2818 echo "$as_me:2818: result: `eval echo '${'$as_ac_Header'}'`" >&5
2819 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2820 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2821 cat >>confdefs.h <<EOF
2822 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2826 done
2828 echo "$as_me:2828: checking for ISC 3.x or 4.x" >&5
2829 echo $ECHO_N "checking for ISC 3.x or 4.x... $ECHO_C" >&6
2830 if grep '[34]\.' /usr/options/cb.name >/dev/null 2>&1
2831 then
2832 echo "$as_me:2832: result: yes" >&5
2833 echo "${ECHO_T}yes" >&6
2835 cat >>confdefs.h <<\EOF
2836 #define _SYSV3 1
2839 else
2840 echo "$as_me:2840: result: no" >&5
2841 echo "${ECHO_T}no" >&6
2843 echo "$as_me:2843: checking whether -D_POSIX_SOURCE is necessary" >&5
2844 echo $ECHO_N "checking whether -D_POSIX_SOURCE is necessary... $ECHO_C" >&6
2845 ac_ext=cc
2846 ac_cpp='$CXXCPP $CPPFLAGS'
2847 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2848 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2849 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2851 cat >conftest.$ac_ext <<_ACEOF
2852 #line 2852 "configure"
2853 #include "confdefs.h"
2854 #include <stdio.h>
2855 extern "C" { void fileno(int); }
2857 main ()
2861 return 0;
2863 _ACEOF
2864 rm -f conftest.$ac_objext
2865 if { (eval echo "$as_me:2865: \"$ac_compile\"") >&5
2866 (eval $ac_compile) 2>&5
2867 ac_status=$?
2868 echo "$as_me:2868: \$? = $ac_status" >&5
2869 (exit $ac_status); } &&
2870 { ac_try='test -s conftest.$ac_objext'
2871 { (eval echo "$as_me:2871: \"$ac_try\"") >&5
2872 (eval $ac_try) 2>&5
2873 ac_status=$?
2874 echo "$as_me:2874: \$? = $ac_status" >&5
2875 (exit $ac_status); }; }; then
2876 echo "$as_me:2876: result: yes" >&5
2877 echo "${ECHO_T}yes" >&6;
2878 cat >>confdefs.h <<\EOF
2879 #define _POSIX_SOURCE 1
2882 else
2883 echo "$as_me: failed program was:" >&5
2884 cat conftest.$ac_ext >&5
2885 echo "$as_me:2885: result: no" >&5
2886 echo "${ECHO_T}no" >&6
2888 rm -f conftest.$ac_objext conftest.$ac_ext
2889 ac_ext=c
2890 ac_cpp='$CPP $CPPFLAGS'
2891 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2892 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2893 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2895 ac_ext=cc
2896 ac_cpp='$CXXCPP $CPPFLAGS'
2897 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2898 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2899 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2901 echo "$as_me:2901: checking for return type of srand" >&5
2902 echo $ECHO_N "checking for return type of srand... $ECHO_C" >&6
2903 cat >conftest.$ac_ext <<_ACEOF
2904 #line 2904 "configure"
2905 #include "confdefs.h"
2906 #include <stdlib.h>
2907 extern "C" { void srand(unsigned int); }
2909 main ()
2913 return 0;
2915 _ACEOF
2916 rm -f conftest.$ac_objext
2917 if { (eval echo "$as_me:2917: \"$ac_compile\"") >&5
2918 (eval $ac_compile) 2>&5
2919 ac_status=$?
2920 echo "$as_me:2920: \$? = $ac_status" >&5
2921 (exit $ac_status); } &&
2922 { ac_try='test -s conftest.$ac_objext'
2923 { (eval echo "$as_me:2923: \"$ac_try\"") >&5
2924 (eval $ac_try) 2>&5
2925 ac_status=$?
2926 echo "$as_me:2926: \$? = $ac_status" >&5
2927 (exit $ac_status); }; }; then
2928 echo "$as_me:2928: result: void" >&5
2929 echo "${ECHO_T}void" >&6;
2930 cat >>confdefs.h <<\EOF
2931 #define RET_TYPE_SRAND_IS_VOID 1
2934 else
2935 echo "$as_me: failed program was:" >&5
2936 cat conftest.$ac_ext >&5
2937 echo "$as_me:2937: result: int" >&5
2938 echo "${ECHO_T}int" >&6
2940 rm -f conftest.$ac_objext conftest.$ac_ext
2941 ac_ext=c
2942 ac_cpp='$CPP $CPPFLAGS'
2943 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2944 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2945 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2947 echo "$as_me:2947: checking whether gettimeofday must be declared" >&5
2948 echo $ECHO_N "checking whether gettimeofday must be declared... $ECHO_C" >&6
2949 ac_ext=cc
2950 ac_cpp='$CXXCPP $CPPFLAGS'
2951 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2952 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2953 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2955 if test "${groff_cv_decl_needed_gettimeofday+set}" = set; then
2956 echo $ECHO_N "(cached) $ECHO_C" >&6
2957 else
2958 cat >conftest.$ac_ext <<_ACEOF
2959 #line 2959 "configure"
2960 #include "confdefs.h"
2962 #include <stdio.h>
2963 #ifdef HAVE_STRING_H
2964 #include <string.h>
2965 #endif
2966 #ifdef HAVE_STRINGS_H
2967 #include <strings.h>
2968 #endif
2969 #ifdef HAVE_STDLIB_H
2970 #include <stdlib.h>
2971 #endif
2972 #ifdef HAVE_SYS_TIME_H
2973 #include <sys/time.h>
2974 #endif
2975 #ifdef HAVE_UNISTD_H
2976 #include <unistd.h>
2977 #endif
2978 #ifdef HAVE_MATH_H
2979 #include <math.h>
2980 #endif
2982 main ()
2984 #ifndef gettimeofday
2985 char *p = (char *) gettimeofday;
2986 #endif
2988 return 0;
2990 _ACEOF
2991 rm -f conftest.$ac_objext
2992 if { (eval echo "$as_me:2992: \"$ac_compile\"") >&5
2993 (eval $ac_compile) 2>&5
2994 ac_status=$?
2995 echo "$as_me:2995: \$? = $ac_status" >&5
2996 (exit $ac_status); } &&
2997 { ac_try='test -s conftest.$ac_objext'
2998 { (eval echo "$as_me:2998: \"$ac_try\"") >&5
2999 (eval $ac_try) 2>&5
3000 ac_status=$?
3001 echo "$as_me:3001: \$? = $ac_status" >&5
3002 (exit $ac_status); }; }; then
3003 groff_cv_decl_needed_gettimeofday=no
3004 else
3005 echo "$as_me: failed program was:" >&5
3006 cat conftest.$ac_ext >&5
3007 groff_cv_decl_needed_gettimeofday=yes
3009 rm -f conftest.$ac_objext conftest.$ac_ext
3012 echo "$as_me:3012: result: $groff_cv_decl_needed_gettimeofday" >&5
3013 echo "${ECHO_T}$groff_cv_decl_needed_gettimeofday" >&6
3014 if test $groff_cv_decl_needed_gettimeofday = yes; then
3016 cat >>confdefs.h <<\EOF
3017 #define NEED_DECLARATION_GETTIMEOFDAY 1
3021 ac_ext=c
3022 ac_cpp='$CPP $CPPFLAGS'
3023 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3024 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3025 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3027 echo "$as_me:3027: checking whether hypot must be declared" >&5
3028 echo $ECHO_N "checking whether hypot must be declared... $ECHO_C" >&6
3029 ac_ext=cc
3030 ac_cpp='$CXXCPP $CPPFLAGS'
3031 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3032 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3033 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3035 if test "${groff_cv_decl_needed_hypot+set}" = set; then
3036 echo $ECHO_N "(cached) $ECHO_C" >&6
3037 else
3038 cat >conftest.$ac_ext <<_ACEOF
3039 #line 3039 "configure"
3040 #include "confdefs.h"
3042 #include <stdio.h>
3043 #ifdef HAVE_STRING_H
3044 #include <string.h>
3045 #endif
3046 #ifdef HAVE_STRINGS_H
3047 #include <strings.h>
3048 #endif
3049 #ifdef HAVE_STDLIB_H
3050 #include <stdlib.h>
3051 #endif
3052 #ifdef HAVE_SYS_TIME_H
3053 #include <sys/time.h>
3054 #endif
3055 #ifdef HAVE_UNISTD_H
3056 #include <unistd.h>
3057 #endif
3058 #ifdef HAVE_MATH_H
3059 #include <math.h>
3060 #endif
3062 main ()
3064 #ifndef hypot
3065 char *p = (char *) hypot;
3066 #endif
3068 return 0;
3070 _ACEOF
3071 rm -f conftest.$ac_objext
3072 if { (eval echo "$as_me:3072: \"$ac_compile\"") >&5
3073 (eval $ac_compile) 2>&5
3074 ac_status=$?
3075 echo "$as_me:3075: \$? = $ac_status" >&5
3076 (exit $ac_status); } &&
3077 { ac_try='test -s conftest.$ac_objext'
3078 { (eval echo "$as_me:3078: \"$ac_try\"") >&5
3079 (eval $ac_try) 2>&5
3080 ac_status=$?
3081 echo "$as_me:3081: \$? = $ac_status" >&5
3082 (exit $ac_status); }; }; then
3083 groff_cv_decl_needed_hypot=no
3084 else
3085 echo "$as_me: failed program was:" >&5
3086 cat conftest.$ac_ext >&5
3087 groff_cv_decl_needed_hypot=yes
3089 rm -f conftest.$ac_objext conftest.$ac_ext
3092 echo "$as_me:3092: result: $groff_cv_decl_needed_hypot" >&5
3093 echo "${ECHO_T}$groff_cv_decl_needed_hypot" >&6
3094 if test $groff_cv_decl_needed_hypot = yes; then
3096 cat >>confdefs.h <<\EOF
3097 #define NEED_DECLARATION_HYPOT 1
3101 ac_ext=c
3102 ac_cpp='$CPP $CPPFLAGS'
3103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3107 echo "$as_me:3107: checking whether popen must be declared" >&5
3108 echo $ECHO_N "checking whether popen must be declared... $ECHO_C" >&6
3109 ac_ext=cc
3110 ac_cpp='$CXXCPP $CPPFLAGS'
3111 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3112 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3113 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3115 if test "${groff_cv_decl_needed_popen+set}" = set; then
3116 echo $ECHO_N "(cached) $ECHO_C" >&6
3117 else
3118 cat >conftest.$ac_ext <<_ACEOF
3119 #line 3119 "configure"
3120 #include "confdefs.h"
3122 #include <stdio.h>
3123 #ifdef HAVE_STRING_H
3124 #include <string.h>
3125 #endif
3126 #ifdef HAVE_STRINGS_H
3127 #include <strings.h>
3128 #endif
3129 #ifdef HAVE_STDLIB_H
3130 #include <stdlib.h>
3131 #endif
3132 #ifdef HAVE_SYS_TIME_H
3133 #include <sys/time.h>
3134 #endif
3135 #ifdef HAVE_UNISTD_H
3136 #include <unistd.h>
3137 #endif
3138 #ifdef HAVE_MATH_H
3139 #include <math.h>
3140 #endif
3142 main ()
3144 #ifndef popen
3145 char *p = (char *) popen;
3146 #endif
3148 return 0;
3150 _ACEOF
3151 rm -f conftest.$ac_objext
3152 if { (eval echo "$as_me:3152: \"$ac_compile\"") >&5
3153 (eval $ac_compile) 2>&5
3154 ac_status=$?
3155 echo "$as_me:3155: \$? = $ac_status" >&5
3156 (exit $ac_status); } &&
3157 { ac_try='test -s conftest.$ac_objext'
3158 { (eval echo "$as_me:3158: \"$ac_try\"") >&5
3159 (eval $ac_try) 2>&5
3160 ac_status=$?
3161 echo "$as_me:3161: \$? = $ac_status" >&5
3162 (exit $ac_status); }; }; then
3163 groff_cv_decl_needed_popen=no
3164 else
3165 echo "$as_me: failed program was:" >&5
3166 cat conftest.$ac_ext >&5
3167 groff_cv_decl_needed_popen=yes
3169 rm -f conftest.$ac_objext conftest.$ac_ext
3172 echo "$as_me:3172: result: $groff_cv_decl_needed_popen" >&5
3173 echo "${ECHO_T}$groff_cv_decl_needed_popen" >&6
3174 if test $groff_cv_decl_needed_popen = yes; then
3176 cat >>confdefs.h <<\EOF
3177 #define NEED_DECLARATION_POPEN 1
3181 ac_ext=c
3182 ac_cpp='$CPP $CPPFLAGS'
3183 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3184 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3185 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3187 echo "$as_me:3187: checking whether pclose must be declared" >&5
3188 echo $ECHO_N "checking whether pclose must be declared... $ECHO_C" >&6
3189 ac_ext=cc
3190 ac_cpp='$CXXCPP $CPPFLAGS'
3191 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3192 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3193 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3195 if test "${groff_cv_decl_needed_pclose+set}" = set; then
3196 echo $ECHO_N "(cached) $ECHO_C" >&6
3197 else
3198 cat >conftest.$ac_ext <<_ACEOF
3199 #line 3199 "configure"
3200 #include "confdefs.h"
3202 #include <stdio.h>
3203 #ifdef HAVE_STRING_H
3204 #include <string.h>
3205 #endif
3206 #ifdef HAVE_STRINGS_H
3207 #include <strings.h>
3208 #endif
3209 #ifdef HAVE_STDLIB_H
3210 #include <stdlib.h>
3211 #endif
3212 #ifdef HAVE_SYS_TIME_H
3213 #include <sys/time.h>
3214 #endif
3215 #ifdef HAVE_UNISTD_H
3216 #include <unistd.h>
3217 #endif
3218 #ifdef HAVE_MATH_H
3219 #include <math.h>
3220 #endif
3222 main ()
3224 #ifndef pclose
3225 char *p = (char *) pclose;
3226 #endif
3228 return 0;
3230 _ACEOF
3231 rm -f conftest.$ac_objext
3232 if { (eval echo "$as_me:3232: \"$ac_compile\"") >&5
3233 (eval $ac_compile) 2>&5
3234 ac_status=$?
3235 echo "$as_me:3235: \$? = $ac_status" >&5
3236 (exit $ac_status); } &&
3237 { ac_try='test -s conftest.$ac_objext'
3238 { (eval echo "$as_me:3238: \"$ac_try\"") >&5
3239 (eval $ac_try) 2>&5
3240 ac_status=$?
3241 echo "$as_me:3241: \$? = $ac_status" >&5
3242 (exit $ac_status); }; }; then
3243 groff_cv_decl_needed_pclose=no
3244 else
3245 echo "$as_me: failed program was:" >&5
3246 cat conftest.$ac_ext >&5
3247 groff_cv_decl_needed_pclose=yes
3249 rm -f conftest.$ac_objext conftest.$ac_ext
3252 echo "$as_me:3252: result: $groff_cv_decl_needed_pclose" >&5
3253 echo "${ECHO_T}$groff_cv_decl_needed_pclose" >&6
3254 if test $groff_cv_decl_needed_pclose = yes; then
3256 cat >>confdefs.h <<\EOF
3257 #define NEED_DECLARATION_PCLOSE 1
3261 ac_ext=c
3262 ac_cpp='$CPP $CPPFLAGS'
3263 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3264 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3265 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3267 echo "$as_me:3267: checking whether putenv must be declared" >&5
3268 echo $ECHO_N "checking whether putenv must be declared... $ECHO_C" >&6
3269 ac_ext=cc
3270 ac_cpp='$CXXCPP $CPPFLAGS'
3271 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3272 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3273 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3275 if test "${groff_cv_decl_needed_putenv+set}" = set; then
3276 echo $ECHO_N "(cached) $ECHO_C" >&6
3277 else
3278 cat >conftest.$ac_ext <<_ACEOF
3279 #line 3279 "configure"
3280 #include "confdefs.h"
3282 #include <stdio.h>
3283 #ifdef HAVE_STRING_H
3284 #include <string.h>
3285 #endif
3286 #ifdef HAVE_STRINGS_H
3287 #include <strings.h>
3288 #endif
3289 #ifdef HAVE_STDLIB_H
3290 #include <stdlib.h>
3291 #endif
3292 #ifdef HAVE_SYS_TIME_H
3293 #include <sys/time.h>
3294 #endif
3295 #ifdef HAVE_UNISTD_H
3296 #include <unistd.h>
3297 #endif
3298 #ifdef HAVE_MATH_H
3299 #include <math.h>
3300 #endif
3302 main ()
3304 #ifndef putenv
3305 char *p = (char *) putenv;
3306 #endif
3308 return 0;
3310 _ACEOF
3311 rm -f conftest.$ac_objext
3312 if { (eval echo "$as_me:3312: \"$ac_compile\"") >&5
3313 (eval $ac_compile) 2>&5
3314 ac_status=$?
3315 echo "$as_me:3315: \$? = $ac_status" >&5
3316 (exit $ac_status); } &&
3317 { ac_try='test -s conftest.$ac_objext'
3318 { (eval echo "$as_me:3318: \"$ac_try\"") >&5
3319 (eval $ac_try) 2>&5
3320 ac_status=$?
3321 echo "$as_me:3321: \$? = $ac_status" >&5
3322 (exit $ac_status); }; }; then
3323 groff_cv_decl_needed_putenv=no
3324 else
3325 echo "$as_me: failed program was:" >&5
3326 cat conftest.$ac_ext >&5
3327 groff_cv_decl_needed_putenv=yes
3329 rm -f conftest.$ac_objext conftest.$ac_ext
3332 echo "$as_me:3332: result: $groff_cv_decl_needed_putenv" >&5
3333 echo "${ECHO_T}$groff_cv_decl_needed_putenv" >&6
3334 if test $groff_cv_decl_needed_putenv = yes; then
3336 cat >>confdefs.h <<\EOF
3337 #define NEED_DECLARATION_PUTENV 1
3341 ac_ext=c
3342 ac_cpp='$CPP $CPPFLAGS'
3343 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3344 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3345 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3347 echo "$as_me:3347: checking whether strcasecmp must be declared" >&5
3348 echo $ECHO_N "checking whether strcasecmp must be declared... $ECHO_C" >&6
3349 ac_ext=cc
3350 ac_cpp='$CXXCPP $CPPFLAGS'
3351 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3352 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3353 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3355 if test "${groff_cv_decl_needed_strcasecmp+set}" = set; then
3356 echo $ECHO_N "(cached) $ECHO_C" >&6
3357 else
3358 cat >conftest.$ac_ext <<_ACEOF
3359 #line 3359 "configure"
3360 #include "confdefs.h"
3362 #include <stdio.h>
3363 #ifdef HAVE_STRING_H
3364 #include <string.h>
3365 #endif
3366 #ifdef HAVE_STRINGS_H
3367 #include <strings.h>
3368 #endif
3369 #ifdef HAVE_STDLIB_H
3370 #include <stdlib.h>
3371 #endif
3372 #ifdef HAVE_SYS_TIME_H
3373 #include <sys/time.h>
3374 #endif
3375 #ifdef HAVE_UNISTD_H
3376 #include <unistd.h>
3377 #endif
3378 #ifdef HAVE_MATH_H
3379 #include <math.h>
3380 #endif
3382 main ()
3384 #ifndef strcasecmp
3385 char *p = (char *) strcasecmp;
3386 #endif
3388 return 0;
3390 _ACEOF
3391 rm -f conftest.$ac_objext
3392 if { (eval echo "$as_me:3392: \"$ac_compile\"") >&5
3393 (eval $ac_compile) 2>&5
3394 ac_status=$?
3395 echo "$as_me:3395: \$? = $ac_status" >&5
3396 (exit $ac_status); } &&
3397 { ac_try='test -s conftest.$ac_objext'
3398 { (eval echo "$as_me:3398: \"$ac_try\"") >&5
3399 (eval $ac_try) 2>&5
3400 ac_status=$?
3401 echo "$as_me:3401: \$? = $ac_status" >&5
3402 (exit $ac_status); }; }; then
3403 groff_cv_decl_needed_strcasecmp=no
3404 else
3405 echo "$as_me: failed program was:" >&5
3406 cat conftest.$ac_ext >&5
3407 groff_cv_decl_needed_strcasecmp=yes
3409 rm -f conftest.$ac_objext conftest.$ac_ext
3412 echo "$as_me:3412: result: $groff_cv_decl_needed_strcasecmp" >&5
3413 echo "${ECHO_T}$groff_cv_decl_needed_strcasecmp" >&6
3414 if test $groff_cv_decl_needed_strcasecmp = yes; then
3416 cat >>confdefs.h <<\EOF
3417 #define NEED_DECLARATION_STRCASECMP 1
3421 ac_ext=c
3422 ac_cpp='$CPP $CPPFLAGS'
3423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3427 echo "$as_me:3427: checking whether strncasecmp must be declared" >&5
3428 echo $ECHO_N "checking whether strncasecmp must be declared... $ECHO_C" >&6
3429 ac_ext=cc
3430 ac_cpp='$CXXCPP $CPPFLAGS'
3431 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3432 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3433 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3435 if test "${groff_cv_decl_needed_strncasecmp+set}" = set; then
3436 echo $ECHO_N "(cached) $ECHO_C" >&6
3437 else
3438 cat >conftest.$ac_ext <<_ACEOF
3439 #line 3439 "configure"
3440 #include "confdefs.h"
3442 #include <stdio.h>
3443 #ifdef HAVE_STRING_H
3444 #include <string.h>
3445 #endif
3446 #ifdef HAVE_STRINGS_H
3447 #include <strings.h>
3448 #endif
3449 #ifdef HAVE_STDLIB_H
3450 #include <stdlib.h>
3451 #endif
3452 #ifdef HAVE_SYS_TIME_H
3453 #include <sys/time.h>
3454 #endif
3455 #ifdef HAVE_UNISTD_H
3456 #include <unistd.h>
3457 #endif
3458 #ifdef HAVE_MATH_H
3459 #include <math.h>
3460 #endif
3462 main ()
3464 #ifndef strncasecmp
3465 char *p = (char *) strncasecmp;
3466 #endif
3468 return 0;
3470 _ACEOF
3471 rm -f conftest.$ac_objext
3472 if { (eval echo "$as_me:3472: \"$ac_compile\"") >&5
3473 (eval $ac_compile) 2>&5
3474 ac_status=$?
3475 echo "$as_me:3475: \$? = $ac_status" >&5
3476 (exit $ac_status); } &&
3477 { ac_try='test -s conftest.$ac_objext'
3478 { (eval echo "$as_me:3478: \"$ac_try\"") >&5
3479 (eval $ac_try) 2>&5
3480 ac_status=$?
3481 echo "$as_me:3481: \$? = $ac_status" >&5
3482 (exit $ac_status); }; }; then
3483 groff_cv_decl_needed_strncasecmp=no
3484 else
3485 echo "$as_me: failed program was:" >&5
3486 cat conftest.$ac_ext >&5
3487 groff_cv_decl_needed_strncasecmp=yes
3489 rm -f conftest.$ac_objext conftest.$ac_ext
3492 echo "$as_me:3492: result: $groff_cv_decl_needed_strncasecmp" >&5
3493 echo "${ECHO_T}$groff_cv_decl_needed_strncasecmp" >&6
3494 if test $groff_cv_decl_needed_strncasecmp = yes; then
3496 cat >>confdefs.h <<\EOF
3497 #define NEED_DECLARATION_STRNCASECMP 1
3501 ac_ext=c
3502 ac_cpp='$CPP $CPPFLAGS'
3503 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3504 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3505 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3507 ac_ext=cc
3508 ac_cpp='$CXXCPP $CPPFLAGS'
3509 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3510 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3511 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3513 echo "$as_me:3513: checking for sys_nerr in <errno.h> or <stdio.h>" >&5
3514 echo $ECHO_N "checking for sys_nerr in <errno.h> or <stdio.h>... $ECHO_C" >&6
3515 cat >conftest.$ac_ext <<_ACEOF
3516 #line 3516 "configure"
3517 #include "confdefs.h"
3518 #include <errno.h>
3519 #include <stdio.h>
3521 main ()
3523 int k; k = sys_nerr;
3525 return 0;
3527 _ACEOF
3528 rm -f conftest.$ac_objext
3529 if { (eval echo "$as_me:3529: \"$ac_compile\"") >&5
3530 (eval $ac_compile) 2>&5
3531 ac_status=$?
3532 echo "$as_me:3532: \$? = $ac_status" >&5
3533 (exit $ac_status); } &&
3534 { ac_try='test -s conftest.$ac_objext'
3535 { (eval echo "$as_me:3535: \"$ac_try\"") >&5
3536 (eval $ac_try) 2>&5
3537 ac_status=$?
3538 echo "$as_me:3538: \$? = $ac_status" >&5
3539 (exit $ac_status); }; }; then
3540 echo "$as_me:3540: result: yes" >&5
3541 echo "${ECHO_T}yes" >&6;
3542 cat >>confdefs.h <<\EOF
3543 #define HAVE_SYS_NERR 1
3546 else
3547 echo "$as_me: failed program was:" >&5
3548 cat conftest.$ac_ext >&5
3549 echo "$as_me:3549: result: no" >&5
3550 echo "${ECHO_T}no" >&6
3552 rm -f conftest.$ac_objext conftest.$ac_ext
3553 ac_ext=c
3554 ac_cpp='$CPP $CPPFLAGS'
3555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3559 echo "$as_me:3559: checking for sys_errlist in <errno.h> or <stdio.h>" >&5
3560 echo $ECHO_N "checking for sys_errlist in <errno.h> or <stdio.h>... $ECHO_C" >&6
3561 cat >conftest.$ac_ext <<_ACEOF
3562 #line 3562 "configure"
3563 #include "confdefs.h"
3564 #include <errno.h>
3565 #include <stdio.h>
3567 main ()
3569 int k; k = (int)sys_errlist[0];
3571 return 0;
3573 _ACEOF
3574 rm -f conftest.$ac_objext
3575 if { (eval echo "$as_me:3575: \"$ac_compile\"") >&5
3576 (eval $ac_compile) 2>&5
3577 ac_status=$?
3578 echo "$as_me:3578: \$? = $ac_status" >&5
3579 (exit $ac_status); } &&
3580 { ac_try='test -s conftest.$ac_objext'
3581 { (eval echo "$as_me:3581: \"$ac_try\"") >&5
3582 (eval $ac_try) 2>&5
3583 ac_status=$?
3584 echo "$as_me:3584: \$? = $ac_status" >&5
3585 (exit $ac_status); }; }; then
3586 echo "$as_me:3586: result: yes" >&5
3587 echo "${ECHO_T}yes" >&6;
3588 cat >>confdefs.h <<\EOF
3589 #define HAVE_SYS_ERRLIST 1
3592 else
3593 echo "$as_me: failed program was:" >&5
3594 cat conftest.$ac_ext >&5
3595 echo "$as_me:3595: result: no" >&5
3596 echo "${ECHO_T}no" >&6
3598 rm -f conftest.$ac_objext conftest.$ac_ext
3599 ac_ext=cc
3600 ac_cpp='$CXXCPP $CPPFLAGS'
3601 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3602 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3603 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3605 echo "$as_me:3605: checking C++ <osfcn.h>" >&5
3606 echo $ECHO_N "checking C++ <osfcn.h>... $ECHO_C" >&6
3607 cat >conftest.$ac_ext <<_ACEOF
3608 #line 3608 "configure"
3609 #include "confdefs.h"
3610 #include <osfcn.h>
3612 main ()
3614 read(0, 0, 0); open(0, 0);
3616 return 0;
3618 _ACEOF
3619 rm -f conftest.$ac_objext
3620 if { (eval echo "$as_me:3620: \"$ac_compile\"") >&5
3621 (eval $ac_compile) 2>&5
3622 ac_status=$?
3623 echo "$as_me:3623: \$? = $ac_status" >&5
3624 (exit $ac_status); } &&
3625 { ac_try='test -s conftest.$ac_objext'
3626 { (eval echo "$as_me:3626: \"$ac_try\"") >&5
3627 (eval $ac_try) 2>&5
3628 ac_status=$?
3629 echo "$as_me:3629: \$? = $ac_status" >&5
3630 (exit $ac_status); }; }; then
3631 echo "$as_me:3631: result: yes" >&5
3632 echo "${ECHO_T}yes" >&6;
3633 cat >>confdefs.h <<\EOF
3634 #define HAVE_CC_OSFCN_H 1
3637 else
3638 echo "$as_me: failed program was:" >&5
3639 cat conftest.$ac_ext >&5
3640 echo "$as_me:3640: result: no" >&5
3641 echo "${ECHO_T}no" >&6
3643 rm -f conftest.$ac_objext conftest.$ac_ext
3644 ac_ext=c
3645 ac_cpp='$CPP $CPPFLAGS'
3646 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3647 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3648 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3650 ac_ext=cc
3651 ac_cpp='$CXXCPP $CPPFLAGS'
3652 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3653 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3654 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3656 echo "$as_me:3656: checking C++ <limits.h>" >&5
3657 echo $ECHO_N "checking C++ <limits.h>... $ECHO_C" >&6
3658 cat >conftest.$ac_ext <<_ACEOF
3659 #line 3659 "configure"
3660 #include "confdefs.h"
3661 #include <limits.h>
3663 main ()
3665 int x = INT_MIN; int y = INT_MAX; int z = UCHAR_MAX;
3667 return 0;
3669 _ACEOF
3670 rm -f conftest.$ac_objext
3671 if { (eval echo "$as_me:3671: \"$ac_compile\"") >&5
3672 (eval $ac_compile) 2>&5
3673 ac_status=$?
3674 echo "$as_me:3674: \$? = $ac_status" >&5
3675 (exit $ac_status); } &&
3676 { ac_try='test -s conftest.$ac_objext'
3677 { (eval echo "$as_me:3677: \"$ac_try\"") >&5
3678 (eval $ac_try) 2>&5
3679 ac_status=$?
3680 echo "$as_me:3680: \$? = $ac_status" >&5
3681 (exit $ac_status); }; }; then
3682 echo "$as_me:3682: result: yes" >&5
3683 echo "${ECHO_T}yes" >&6;
3684 cat >>confdefs.h <<\EOF
3685 #define HAVE_CC_LIMITS_H 1
3688 else
3689 echo "$as_me: failed program was:" >&5
3690 cat conftest.$ac_ext >&5
3691 echo "$as_me:3691: result: no" >&5
3692 echo "${ECHO_T}no" >&6
3694 rm -f conftest.$ac_objext conftest.$ac_ext
3695 ac_ext=c
3696 ac_cpp='$CPP $CPPFLAGS'
3697 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3698 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3699 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3701 ac_ext=cc
3702 ac_cpp='$CXXCPP $CPPFLAGS'
3703 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3704 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3705 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3707 echo "$as_me:3707: checking for inttypes.h" >&5
3708 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
3709 cat >conftest.$ac_ext <<_ACEOF
3710 #line 3710 "configure"
3711 #include "confdefs.h"
3712 #include <sys/types.h>
3713 #include <inttypes.h>
3715 main ()
3717 uintmax_t i = (uintmax_t)-1;
3719 return 0;
3721 _ACEOF
3722 rm -f conftest.$ac_objext
3723 if { (eval echo "$as_me:3723: \"$ac_compile\"") >&5
3724 (eval $ac_compile) 2>&5
3725 ac_status=$?
3726 echo "$as_me:3726: \$? = $ac_status" >&5
3727 (exit $ac_status); } &&
3728 { ac_try='test -s conftest.$ac_objext'
3729 { (eval echo "$as_me:3729: \"$ac_try\"") >&5
3730 (eval $ac_try) 2>&5
3731 ac_status=$?
3732 echo "$as_me:3732: \$? = $ac_status" >&5
3733 (exit $ac_status); }; }; then
3734 groff_cv_header_inttypes_h=yes
3735 else
3736 echo "$as_me: failed program was:" >&5
3737 cat conftest.$ac_ext >&5
3738 groff_cv_header_inttypes_h=no
3740 rm -f conftest.$ac_objext conftest.$ac_ext
3741 echo "$as_me:3741: result: $groff_cv_header_inttypes_h" >&5
3742 echo "${ECHO_T}$groff_cv_header_inttypes_h" >&6
3743 ac_ext=c
3744 ac_cpp='$CPP $CPPFLAGS'
3745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3749 ac_ext=cc
3750 ac_cpp='$CXXCPP $CPPFLAGS'
3751 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3752 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3753 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3755 echo "$as_me:3755: checking for unsigned long long" >&5
3756 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
3757 cat >conftest.$ac_ext <<_ACEOF
3758 #line 3758 "configure"
3759 #include "confdefs.h"
3760 unsigned long long ull = 1; int i = 63;
3762 main ()
3764 unsigned long long ullmax = (unsigned long long)-1;
3765 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
3767 return 0;
3769 _ACEOF
3770 rm -f conftest.$ac_objext conftest$ac_exeext
3771 if { (eval echo "$as_me:3771: \"$ac_link\"") >&5
3772 (eval $ac_link) 2>&5
3773 ac_status=$?
3774 echo "$as_me:3774: \$? = $ac_status" >&5
3775 (exit $ac_status); } &&
3776 { ac_try='test -s conftest$ac_exeext'
3777 { (eval echo "$as_me:3777: \"$ac_try\"") >&5
3778 (eval $ac_try) 2>&5
3779 ac_status=$?
3780 echo "$as_me:3780: \$? = $ac_status" >&5
3781 (exit $ac_status); }; }; then
3782 groff_cv_type_unsigned_long_long=yes
3783 else
3784 echo "$as_me: failed program was:" >&5
3785 cat conftest.$ac_ext >&5
3786 groff_cv_type_unsigned_long_long=no
3788 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3789 echo "$as_me:3789: result: $groff_cv_type_unsigned_long_long" >&5
3790 echo "${ECHO_T}$groff_cv_type_unsigned_long_long" >&6
3791 ac_ext=c
3792 ac_cpp='$CPP $CPPFLAGS'
3793 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3794 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3795 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3797 if test $groff_cv_header_inttypes_h = no; then
3799 test $groff_cv_type_unsigned_long_long = yes \
3800 && ac_type='unsigned long long' \
3801 || ac_type='unsigned long'
3803 cat >>confdefs.h <<EOF
3804 #define uintmax_t $ac_type
3808 ac_ext=cc
3809 ac_cpp='$CXXCPP $CPPFLAGS'
3810 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3811 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3812 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3814 echo "$as_me:3814: checking for declaration of time_t" >&5
3815 echo $ECHO_N "checking for declaration of time_t... $ECHO_C" >&6
3816 cat >conftest.$ac_ext <<_ACEOF
3817 #line 3817 "configure"
3818 #include "confdefs.h"
3819 #include <time.h>
3821 main ()
3823 time_t t = time(0); struct tm *p = localtime(&t);
3825 return 0;
3827 _ACEOF
3828 rm -f conftest.$ac_objext
3829 if { (eval echo "$as_me:3829: \"$ac_compile\"") >&5
3830 (eval $ac_compile) 2>&5
3831 ac_status=$?
3832 echo "$as_me:3832: \$? = $ac_status" >&5
3833 (exit $ac_status); } &&
3834 { ac_try='test -s conftest.$ac_objext'
3835 { (eval echo "$as_me:3835: \"$ac_try\"") >&5
3836 (eval $ac_try) 2>&5
3837 ac_status=$?
3838 echo "$as_me:3838: \$? = $ac_status" >&5
3839 (exit $ac_status); }; }; then
3840 echo "$as_me:3840: result: yes" >&5
3841 echo "${ECHO_T}yes" >&6
3842 else
3843 echo "$as_me: failed program was:" >&5
3844 cat conftest.$ac_ext >&5
3845 echo "$as_me:3845: result: no" >&5
3846 echo "${ECHO_T}no" >&6;
3847 cat >>confdefs.h <<\EOF
3848 #define LONG_FOR_TIME_T 1
3852 rm -f conftest.$ac_objext conftest.$ac_ext
3853 ac_ext=c
3854 ac_cpp='$CPP $CPPFLAGS'
3855 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3856 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3857 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3859 echo "$as_me:3859: checking return type of signal handlers" >&5
3860 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
3861 if test "${ac_cv_type_signal+set}" = set; then
3862 echo $ECHO_N "(cached) $ECHO_C" >&6
3863 else
3864 cat >conftest.$ac_ext <<_ACEOF
3865 #line 3865 "configure"
3866 #include "confdefs.h"
3867 #include <sys/types.h>
3868 #include <signal.h>
3869 #ifdef signal
3870 # undef signal
3871 #endif
3872 #ifdef __cplusplus
3873 extern "C" void (*signal (int, void (*)(int)))(int);
3874 #else
3875 void (*signal ()) ();
3876 #endif
3879 main ()
3881 int i;
3883 return 0;
3885 _ACEOF
3886 rm -f conftest.$ac_objext
3887 if { (eval echo "$as_me:3887: \"$ac_compile\"") >&5
3888 (eval $ac_compile) 2>&5
3889 ac_status=$?
3890 echo "$as_me:3890: \$? = $ac_status" >&5
3891 (exit $ac_status); } &&
3892 { ac_try='test -s conftest.$ac_objext'
3893 { (eval echo "$as_me:3893: \"$ac_try\"") >&5
3894 (eval $ac_try) 2>&5
3895 ac_status=$?
3896 echo "$as_me:3896: \$? = $ac_status" >&5
3897 (exit $ac_status); }; }; then
3898 ac_cv_type_signal=void
3899 else
3900 echo "$as_me: failed program was:" >&5
3901 cat conftest.$ac_ext >&5
3902 ac_cv_type_signal=int
3904 rm -f conftest.$ac_objext conftest.$ac_ext
3906 echo "$as_me:3906: result: $ac_cv_type_signal" >&5
3907 echo "${ECHO_T}$ac_cv_type_signal" >&6
3909 cat >>confdefs.h <<EOF
3910 #define RETSIGTYPE $ac_cv_type_signal
3913 echo "$as_me:3913: checking struct exception" >&5
3914 echo $ECHO_N "checking struct exception... $ECHO_C" >&6
3915 cat >conftest.$ac_ext <<_ACEOF
3916 #line 3916 "configure"
3917 #include "confdefs.h"
3918 #include <math.h>
3920 main ()
3922 struct exception e;
3924 return 0;
3926 _ACEOF
3927 rm -f conftest.$ac_objext
3928 if { (eval echo "$as_me:3928: \"$ac_compile\"") >&5
3929 (eval $ac_compile) 2>&5
3930 ac_status=$?
3931 echo "$as_me:3931: \$? = $ac_status" >&5
3932 (exit $ac_status); } &&
3933 { ac_try='test -s conftest.$ac_objext'
3934 { (eval echo "$as_me:3934: \"$ac_try\"") >&5
3935 (eval $ac_try) 2>&5
3936 ac_status=$?
3937 echo "$as_me:3937: \$? = $ac_status" >&5
3938 (exit $ac_status); }; }; then
3939 echo "$as_me:3939: result: yes" >&5
3940 echo "${ECHO_T}yes" >&6;
3941 cat >>confdefs.h <<\EOF
3942 #define HAVE_STRUCT_EXCEPTION 1
3945 else
3946 echo "$as_me: failed program was:" >&5
3947 cat conftest.$ac_ext >&5
3948 echo "$as_me:3948: result: no" >&5
3949 echo "${ECHO_T}no" >&6
3951 rm -f conftest.$ac_objext conftest.$ac_ext
3952 echo "$as_me:3952: checking for sin in -lm" >&5
3953 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
3954 if test "${ac_cv_lib_m_sin+set}" = set; then
3955 echo $ECHO_N "(cached) $ECHO_C" >&6
3956 else
3957 ac_check_lib_save_LIBS=$LIBS
3958 LIBS="-lm $LIBS"
3959 cat >conftest.$ac_ext <<_ACEOF
3960 #line 3960 "configure"
3961 #include "confdefs.h"
3963 /* Override any gcc2 internal prototype to avoid an error. */
3964 #ifdef __cplusplus
3965 extern "C"
3966 #endif
3967 /* We use char because int might match the return type of a gcc2
3968 builtin and then its argument prototype would still apply. */
3969 char sin ();
3971 main ()
3973 sin ();
3975 return 0;
3977 _ACEOF
3978 rm -f conftest.$ac_objext conftest$ac_exeext
3979 if { (eval echo "$as_me:3979: \"$ac_link\"") >&5
3980 (eval $ac_link) 2>&5
3981 ac_status=$?
3982 echo "$as_me:3982: \$? = $ac_status" >&5
3983 (exit $ac_status); } &&
3984 { ac_try='test -s conftest$ac_exeext'
3985 { (eval echo "$as_me:3985: \"$ac_try\"") >&5
3986 (eval $ac_try) 2>&5
3987 ac_status=$?
3988 echo "$as_me:3988: \$? = $ac_status" >&5
3989 (exit $ac_status); }; }; then
3990 ac_cv_lib_m_sin=yes
3991 else
3992 echo "$as_me: failed program was:" >&5
3993 cat conftest.$ac_ext >&5
3994 ac_cv_lib_m_sin=no
3996 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3997 LIBS=$ac_check_lib_save_LIBS
3999 echo "$as_me:3999: result: $ac_cv_lib_m_sin" >&5
4000 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
4001 if test $ac_cv_lib_m_sin = yes; then
4002 LIBM=-lm
4005 echo "$as_me:4005: checking for ANSI C header files" >&5
4006 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4007 if test "${ac_cv_header_stdc+set}" = set; then
4008 echo $ECHO_N "(cached) $ECHO_C" >&6
4009 else
4010 cat >conftest.$ac_ext <<_ACEOF
4011 #line 4011 "configure"
4012 #include "confdefs.h"
4013 #include <stdlib.h>
4014 #include <stdarg.h>
4015 #include <string.h>
4016 #include <float.h>
4018 _ACEOF
4019 if { (eval echo "$as_me:4019: \"$ac_cpp conftest.$ac_ext\"") >&5
4020 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4021 ac_status=$?
4022 egrep -v '^ *\+' conftest.er1 >conftest.err
4023 rm -f conftest.er1
4024 cat conftest.err >&5
4025 echo "$as_me:4025: \$? = $ac_status" >&5
4026 (exit $ac_status); } >/dev/null; then
4027 if test -s conftest.err; then
4028 ac_cpp_err=$ac_c_preproc_warn_flag
4029 else
4030 ac_cpp_err=
4032 else
4033 ac_cpp_err=yes
4035 if test -z "$ac_cpp_err"; then
4036 ac_cv_header_stdc=yes
4037 else
4038 echo "$as_me: failed program was:" >&5
4039 cat conftest.$ac_ext >&5
4040 ac_cv_header_stdc=no
4042 rm -f conftest.err conftest.$ac_ext
4044 if test $ac_cv_header_stdc = yes; then
4045 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4046 cat >conftest.$ac_ext <<_ACEOF
4047 #line 4047 "configure"
4048 #include "confdefs.h"
4049 #include <string.h>
4051 _ACEOF
4052 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4053 egrep "memchr" >/dev/null 2>&1; then
4055 else
4056 ac_cv_header_stdc=no
4058 rm -f conftest*
4062 if test $ac_cv_header_stdc = yes; then
4063 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4064 cat >conftest.$ac_ext <<_ACEOF
4065 #line 4065 "configure"
4066 #include "confdefs.h"
4067 #include <stdlib.h>
4069 _ACEOF
4070 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4071 egrep "free" >/dev/null 2>&1; then
4073 else
4074 ac_cv_header_stdc=no
4076 rm -f conftest*
4080 if test $ac_cv_header_stdc = yes; then
4081 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4082 if test "$cross_compiling" = yes; then
4084 else
4085 cat >conftest.$ac_ext <<_ACEOF
4086 #line 4086 "configure"
4087 #include "confdefs.h"
4088 #include <ctype.h>
4089 #if ((' ' & 0x0FF) == 0x020)
4090 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4091 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4092 #else
4093 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4094 || ('j' <= (c) && (c) <= 'r') \
4095 || ('s' <= (c) && (c) <= 'z'))
4096 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4097 #endif
4099 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4101 main ()
4103 int i;
4104 for (i = 0; i < 256; i++)
4105 if (XOR (islower (i), ISLOWER (i))
4106 || toupper (i) != TOUPPER (i))
4107 exit(2);
4108 exit (0);
4110 _ACEOF
4111 rm -f conftest$ac_exeext
4112 if { (eval echo "$as_me:4112: \"$ac_link\"") >&5
4113 (eval $ac_link) 2>&5
4114 ac_status=$?
4115 echo "$as_me:4115: \$? = $ac_status" >&5
4116 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4117 { (eval echo "$as_me:4117: \"$ac_try\"") >&5
4118 (eval $ac_try) 2>&5
4119 ac_status=$?
4120 echo "$as_me:4120: \$? = $ac_status" >&5
4121 (exit $ac_status); }; }; then
4123 else
4124 echo "$as_me: program exited with status $ac_status" >&5
4125 echo "$as_me: failed program was:" >&5
4126 cat conftest.$ac_ext >&5
4127 ac_cv_header_stdc=no
4129 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4133 echo "$as_me:4133: result: $ac_cv_header_stdc" >&5
4134 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4135 if test $ac_cv_header_stdc = yes; then
4137 cat >>confdefs.h <<\EOF
4138 #define STDC_HEADERS 1
4143 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4145 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4146 inttypes.h stdint.h unistd.h
4148 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4149 echo "$as_me:4149: checking for $ac_header" >&5
4150 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4151 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4152 echo $ECHO_N "(cached) $ECHO_C" >&6
4153 else
4154 cat >conftest.$ac_ext <<_ACEOF
4155 #line 4155 "configure"
4156 #include "confdefs.h"
4157 $ac_includes_default
4158 #include <$ac_header>
4159 _ACEOF
4160 rm -f conftest.$ac_objext
4161 if { (eval echo "$as_me:4161: \"$ac_compile\"") >&5
4162 (eval $ac_compile) 2>&5
4163 ac_status=$?
4164 echo "$as_me:4164: \$? = $ac_status" >&5
4165 (exit $ac_status); } &&
4166 { ac_try='test -s conftest.$ac_objext'
4167 { (eval echo "$as_me:4167: \"$ac_try\"") >&5
4168 (eval $ac_try) 2>&5
4169 ac_status=$?
4170 echo "$as_me:4170: \$? = $ac_status" >&5
4171 (exit $ac_status); }; }; then
4172 eval "$as_ac_Header=yes"
4173 else
4174 echo "$as_me: failed program was:" >&5
4175 cat conftest.$ac_ext >&5
4176 eval "$as_ac_Header=no"
4178 rm -f conftest.$ac_objext conftest.$ac_ext
4180 echo "$as_me:4180: result: `eval echo '${'$as_ac_Header'}'`" >&5
4181 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4182 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4183 cat >>confdefs.h <<EOF
4184 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4188 done
4190 for ac_header in stdlib.h unistd.h
4192 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4193 echo "$as_me:4193: checking for $ac_header" >&5
4194 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4195 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4196 echo $ECHO_N "(cached) $ECHO_C" >&6
4197 else
4198 cat >conftest.$ac_ext <<_ACEOF
4199 #line 4199 "configure"
4200 #include "confdefs.h"
4201 #include <$ac_header>
4202 _ACEOF
4203 if { (eval echo "$as_me:4203: \"$ac_cpp conftest.$ac_ext\"") >&5
4204 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4205 ac_status=$?
4206 egrep -v '^ *\+' conftest.er1 >conftest.err
4207 rm -f conftest.er1
4208 cat conftest.err >&5
4209 echo "$as_me:4209: \$? = $ac_status" >&5
4210 (exit $ac_status); } >/dev/null; then
4211 if test -s conftest.err; then
4212 ac_cpp_err=$ac_c_preproc_warn_flag
4213 else
4214 ac_cpp_err=
4216 else
4217 ac_cpp_err=yes
4219 if test -z "$ac_cpp_err"; then
4220 eval "$as_ac_Header=yes"
4221 else
4222 echo "$as_me: failed program was:" >&5
4223 cat conftest.$ac_ext >&5
4224 eval "$as_ac_Header=no"
4226 rm -f conftest.err conftest.$ac_ext
4228 echo "$as_me:4228: result: `eval echo '${'$as_ac_Header'}'`" >&5
4229 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4230 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4231 cat >>confdefs.h <<EOF
4232 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4236 done
4238 for ac_func in getpagesize
4240 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4241 echo "$as_me:4241: checking for $ac_func" >&5
4242 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4243 if eval "test \"\${$as_ac_var+set}\" = set"; then
4244 echo $ECHO_N "(cached) $ECHO_C" >&6
4245 else
4246 cat >conftest.$ac_ext <<_ACEOF
4247 #line 4247 "configure"
4248 #include "confdefs.h"
4249 /* System header to define __stub macros and hopefully few prototypes,
4250 which can conflict with char $ac_func (); below. */
4251 #include <assert.h>
4252 /* Override any gcc2 internal prototype to avoid an error. */
4253 #ifdef __cplusplus
4254 extern "C"
4255 #endif
4256 /* We use char because int might match the return type of a gcc2
4257 builtin and then its argument prototype would still apply. */
4258 char $ac_func ();
4259 char (*f) ();
4262 main ()
4264 /* The GNU C library defines this for functions which it implements
4265 to always fail with ENOSYS. Some functions are actually named
4266 something starting with __ and the normal name is an alias. */
4267 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4268 choke me
4269 #else
4270 f = $ac_func;
4271 #endif
4274 return 0;
4276 _ACEOF
4277 rm -f conftest.$ac_objext conftest$ac_exeext
4278 if { (eval echo "$as_me:4278: \"$ac_link\"") >&5
4279 (eval $ac_link) 2>&5
4280 ac_status=$?
4281 echo "$as_me:4281: \$? = $ac_status" >&5
4282 (exit $ac_status); } &&
4283 { ac_try='test -s conftest$ac_exeext'
4284 { (eval echo "$as_me:4284: \"$ac_try\"") >&5
4285 (eval $ac_try) 2>&5
4286 ac_status=$?
4287 echo "$as_me:4287: \$? = $ac_status" >&5
4288 (exit $ac_status); }; }; then
4289 eval "$as_ac_var=yes"
4290 else
4291 echo "$as_me: failed program was:" >&5
4292 cat conftest.$ac_ext >&5
4293 eval "$as_ac_var=no"
4295 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4297 echo "$as_me:4297: result: `eval echo '${'$as_ac_var'}'`" >&5
4298 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4299 if test `eval echo '${'$as_ac_var'}'` = yes; then
4300 cat >>confdefs.h <<EOF
4301 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4305 done
4307 echo "$as_me:4307: checking for working mmap" >&5
4308 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
4309 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
4310 echo $ECHO_N "(cached) $ECHO_C" >&6
4311 else
4312 if test "$cross_compiling" = yes; then
4313 ac_cv_func_mmap_fixed_mapped=no
4314 else
4315 cat >conftest.$ac_ext <<_ACEOF
4316 #line 4316 "configure"
4317 #include "confdefs.h"
4318 $ac_includes_default
4319 /* Thanks to Mike Haertel and Jim Avera for this test.
4320 Here is a matrix of mmap possibilities:
4321 mmap private not fixed
4322 mmap private fixed at somewhere currently unmapped
4323 mmap private fixed at somewhere already mapped
4324 mmap shared not fixed
4325 mmap shared fixed at somewhere currently unmapped
4326 mmap shared fixed at somewhere already mapped
4327 For private mappings, we should verify that changes cannot be read()
4328 back from the file, nor mmap's back from the file at a different
4329 address. (There have been systems where private was not correctly
4330 implemented like the infamous i386 svr4.0, and systems where the
4331 VM page cache was not coherent with the file system buffer cache
4332 like early versions of FreeBSD and possibly contemporary NetBSD.)
4333 For shared mappings, we should conversely verify that changes get
4334 propogated back to all the places they're supposed to be.
4336 Grep wants private fixed already mapped.
4337 The main things grep needs to know about mmap are:
4338 * does it exist and is it safe to write into the mmap'd area
4339 * how to use it (BSD variants) */
4341 #include <fcntl.h>
4342 #include <sys/mman.h>
4344 #if !STDC_HEADERS && !HAVE_STDLIB_H
4345 char *malloc ();
4346 #endif
4348 /* This mess was copied from the GNU getpagesize.h. */
4349 #if !HAVE_GETPAGESIZE
4350 /* Assume that all systems that can run configure have sys/param.h. */
4351 # if !HAVE_SYS_PARAM_H
4352 # define HAVE_SYS_PARAM_H 1
4353 # endif
4355 # ifdef _SC_PAGESIZE
4356 # define getpagesize() sysconf(_SC_PAGESIZE)
4357 # else /* no _SC_PAGESIZE */
4358 # if HAVE_SYS_PARAM_H
4359 # include <sys/param.h>
4360 # ifdef EXEC_PAGESIZE
4361 # define getpagesize() EXEC_PAGESIZE
4362 # else /* no EXEC_PAGESIZE */
4363 # ifdef NBPG
4364 # define getpagesize() NBPG * CLSIZE
4365 # ifndef CLSIZE
4366 # define CLSIZE 1
4367 # endif /* no CLSIZE */
4368 # else /* no NBPG */
4369 # ifdef NBPC
4370 # define getpagesize() NBPC
4371 # else /* no NBPC */
4372 # ifdef PAGESIZE
4373 # define getpagesize() PAGESIZE
4374 # endif /* PAGESIZE */
4375 # endif /* no NBPC */
4376 # endif /* no NBPG */
4377 # endif /* no EXEC_PAGESIZE */
4378 # else /* no HAVE_SYS_PARAM_H */
4379 # define getpagesize() 8192 /* punt totally */
4380 # endif /* no HAVE_SYS_PARAM_H */
4381 # endif /* no _SC_PAGESIZE */
4383 #endif /* no HAVE_GETPAGESIZE */
4386 main ()
4388 char *data, *data2, *data3;
4389 int i, pagesize;
4390 int fd;
4392 pagesize = getpagesize ();
4394 /* First, make a file with some known garbage in it. */
4395 data = (char *) malloc (pagesize);
4396 if (!data)
4397 exit (1);
4398 for (i = 0; i < pagesize; ++i)
4399 *(data + i) = rand ();
4400 umask (0);
4401 fd = creat ("conftest.mmap", 0600);
4402 if (fd < 0)
4403 exit (1);
4404 if (write (fd, data, pagesize) != pagesize)
4405 exit (1);
4406 close (fd);
4408 /* Next, try to mmap the file at a fixed address which already has
4409 something else allocated at it. If we can, also make sure that
4410 we see the same garbage. */
4411 fd = open ("conftest.mmap", O_RDWR);
4412 if (fd < 0)
4413 exit (1);
4414 data2 = (char *) malloc (2 * pagesize);
4415 if (!data2)
4416 exit (1);
4417 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
4418 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
4419 MAP_PRIVATE | MAP_FIXED, fd, 0L))
4420 exit (1);
4421 for (i = 0; i < pagesize; ++i)
4422 if (*(data + i) != *(data2 + i))
4423 exit (1);
4425 /* Finally, make sure that changes to the mapped area do not
4426 percolate back to the file as seen by read(). (This is a bug on
4427 some variants of i386 svr4.0.) */
4428 for (i = 0; i < pagesize; ++i)
4429 *(data2 + i) = *(data2 + i) + 1;
4430 data3 = (char *) malloc (pagesize);
4431 if (!data3)
4432 exit (1);
4433 if (read (fd, data3, pagesize) != pagesize)
4434 exit (1);
4435 for (i = 0; i < pagesize; ++i)
4436 if (*(data + i) != *(data3 + i))
4437 exit (1);
4438 close (fd);
4439 exit (0);
4441 _ACEOF
4442 rm -f conftest$ac_exeext
4443 if { (eval echo "$as_me:4443: \"$ac_link\"") >&5
4444 (eval $ac_link) 2>&5
4445 ac_status=$?
4446 echo "$as_me:4446: \$? = $ac_status" >&5
4447 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4448 { (eval echo "$as_me:4448: \"$ac_try\"") >&5
4449 (eval $ac_try) 2>&5
4450 ac_status=$?
4451 echo "$as_me:4451: \$? = $ac_status" >&5
4452 (exit $ac_status); }; }; then
4453 ac_cv_func_mmap_fixed_mapped=yes
4454 else
4455 echo "$as_me: program exited with status $ac_status" >&5
4456 echo "$as_me: failed program was:" >&5
4457 cat conftest.$ac_ext >&5
4458 ac_cv_func_mmap_fixed_mapped=no
4460 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4463 echo "$as_me:4463: result: $ac_cv_func_mmap_fixed_mapped" >&5
4464 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
4465 if test $ac_cv_func_mmap_fixed_mapped = yes; then
4467 cat >>confdefs.h <<\EOF
4468 #define HAVE_MMAP 1
4472 rm -f conftest.mmap
4474 saved_libs="$LIBS"
4475 LIBS="$LIBS -lc $LIBM"
4477 for ac_func in fmod getcwd putenv snprintf strerror strtol
4479 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4480 echo "$as_me:4480: checking for $ac_func" >&5
4481 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4482 if eval "test \"\${$as_ac_var+set}\" = set"; then
4483 echo $ECHO_N "(cached) $ECHO_C" >&6
4484 else
4485 cat >conftest.$ac_ext <<_ACEOF
4486 #line 4486 "configure"
4487 #include "confdefs.h"
4488 /* System header to define __stub macros and hopefully few prototypes,
4489 which can conflict with char $ac_func (); below. */
4490 #include <assert.h>
4491 /* Override any gcc2 internal prototype to avoid an error. */
4492 #ifdef __cplusplus
4493 extern "C"
4494 #endif
4495 /* We use char because int might match the return type of a gcc2
4496 builtin and then its argument prototype would still apply. */
4497 char $ac_func ();
4498 char (*f) ();
4501 main ()
4503 /* The GNU C library defines this for functions which it implements
4504 to always fail with ENOSYS. Some functions are actually named
4505 something starting with __ and the normal name is an alias. */
4506 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4507 choke me
4508 #else
4509 f = $ac_func;
4510 #endif
4513 return 0;
4515 _ACEOF
4516 rm -f conftest.$ac_objext conftest$ac_exeext
4517 if { (eval echo "$as_me:4517: \"$ac_link\"") >&5
4518 (eval $ac_link) 2>&5
4519 ac_status=$?
4520 echo "$as_me:4520: \$? = $ac_status" >&5
4521 (exit $ac_status); } &&
4522 { ac_try='test -s conftest$ac_exeext'
4523 { (eval echo "$as_me:4523: \"$ac_try\"") >&5
4524 (eval $ac_try) 2>&5
4525 ac_status=$?
4526 echo "$as_me:4526: \$? = $ac_status" >&5
4527 (exit $ac_status); }; }; then
4528 eval "$as_ac_var=yes"
4529 else
4530 echo "$as_me: failed program was:" >&5
4531 cat conftest.$ac_ext >&5
4532 eval "$as_ac_var=no"
4534 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4536 echo "$as_me:4536: result: `eval echo '${'$as_ac_var'}'`" >&5
4537 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4538 if test `eval echo '${'$as_ac_var'}'` = yes; then
4539 cat >>confdefs.h <<EOF
4540 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4543 else
4544 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
4546 done
4548 LIBS="$saved_libs"
4550 for ac_func in gettimeofday rename strcasecmp strncasecmp strsep
4552 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4553 echo "$as_me:4553: checking for $ac_func" >&5
4554 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4555 if eval "test \"\${$as_ac_var+set}\" = set"; then
4556 echo $ECHO_N "(cached) $ECHO_C" >&6
4557 else
4558 cat >conftest.$ac_ext <<_ACEOF
4559 #line 4559 "configure"
4560 #include "confdefs.h"
4561 /* System header to define __stub macros and hopefully few prototypes,
4562 which can conflict with char $ac_func (); below. */
4563 #include <assert.h>
4564 /* Override any gcc2 internal prototype to avoid an error. */
4565 #ifdef __cplusplus
4566 extern "C"
4567 #endif
4568 /* We use char because int might match the return type of a gcc2
4569 builtin and then its argument prototype would still apply. */
4570 char $ac_func ();
4571 char (*f) ();
4574 main ()
4576 /* The GNU C library defines this for functions which it implements
4577 to always fail with ENOSYS. Some functions are actually named
4578 something starting with __ and the normal name is an alias. */
4579 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4580 choke me
4581 #else
4582 f = $ac_func;
4583 #endif
4586 return 0;
4588 _ACEOF
4589 rm -f conftest.$ac_objext conftest$ac_exeext
4590 if { (eval echo "$as_me:4590: \"$ac_link\"") >&5
4591 (eval $ac_link) 2>&5
4592 ac_status=$?
4593 echo "$as_me:4593: \$? = $ac_status" >&5
4594 (exit $ac_status); } &&
4595 { ac_try='test -s conftest$ac_exeext'
4596 { (eval echo "$as_me:4596: \"$ac_try\"") >&5
4597 (eval $ac_try) 2>&5
4598 ac_status=$?
4599 echo "$as_me:4599: \$? = $ac_status" >&5
4600 (exit $ac_status); }; }; then
4601 eval "$as_ac_var=yes"
4602 else
4603 echo "$as_me: failed program was:" >&5
4604 cat conftest.$ac_ext >&5
4605 eval "$as_ac_var=no"
4607 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4609 echo "$as_me:4609: result: `eval echo '${'$as_ac_var'}'`" >&5
4610 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4611 if test `eval echo '${'$as_ac_var'}'` = yes; then
4612 cat >>confdefs.h <<EOF
4613 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4617 done
4619 echo "$as_me:4619: checking for mkstemp" >&5
4620 echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
4621 ac_ext=cc
4622 ac_cpp='$CXXCPP $CPPFLAGS'
4623 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4624 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4625 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4627 cat >conftest.$ac_ext <<_ACEOF
4628 #line 4628 "configure"
4629 #include "confdefs.h"
4630 #include <stdlib.h>
4631 int (*f) (char *);
4633 main ()
4635 f = mkstemp;
4637 return 0;
4639 _ACEOF
4640 rm -f conftest.$ac_objext conftest$ac_exeext
4641 if { (eval echo "$as_me:4641: \"$ac_link\"") >&5
4642 (eval $ac_link) 2>&5
4643 ac_status=$?
4644 echo "$as_me:4644: \$? = $ac_status" >&5
4645 (exit $ac_status); } &&
4646 { ac_try='test -s conftest$ac_exeext'
4647 { (eval echo "$as_me:4647: \"$ac_try\"") >&5
4648 (eval $ac_try) 2>&5
4649 ac_status=$?
4650 echo "$as_me:4650: \$? = $ac_status" >&5
4651 (exit $ac_status); }; }; then
4652 echo "$as_me:4652: result: yes" >&5
4653 echo "${ECHO_T}yes" >&6;
4654 cat >>confdefs.h <<\EOF
4655 #define HAVE_MKSTEMP 1
4658 else
4659 echo "$as_me: failed program was:" >&5
4660 cat conftest.$ac_ext >&5
4661 echo "$as_me:4661: result: no" >&5
4662 echo "${ECHO_T}no" >&6;LIBOBJS="$LIBOBJS mkstemp.$ac_objext"
4664 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4665 ac_ext=c
4666 ac_cpp='$CPP $CPPFLAGS'
4667 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4668 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4669 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4671 echo "$as_me:4671: checking for sys_siglist declaration in signal.h or unistd.h" >&5
4672 echo $ECHO_N "checking for sys_siglist declaration in signal.h or unistd.h... $ECHO_C" >&6
4673 if test "${ac_cv_decl_sys_siglist+set}" = set; then
4674 echo $ECHO_N "(cached) $ECHO_C" >&6
4675 else
4676 cat >conftest.$ac_ext <<_ACEOF
4677 #line 4677 "configure"
4678 #include "confdefs.h"
4679 #include <sys/types.h>
4680 #include <signal.h>
4681 /* NetBSD declares sys_siglist in unistd.h. */
4682 #if HAVE_UNISTD_H
4683 # include <unistd.h>
4684 #endif
4687 main ()
4689 char *msg = *(sys_siglist + 1);
4691 return 0;
4693 _ACEOF
4694 rm -f conftest.$ac_objext
4695 if { (eval echo "$as_me:4695: \"$ac_compile\"") >&5
4696 (eval $ac_compile) 2>&5
4697 ac_status=$?
4698 echo "$as_me:4698: \$? = $ac_status" >&5
4699 (exit $ac_status); } &&
4700 { ac_try='test -s conftest.$ac_objext'
4701 { (eval echo "$as_me:4701: \"$ac_try\"") >&5
4702 (eval $ac_try) 2>&5
4703 ac_status=$?
4704 echo "$as_me:4704: \$? = $ac_status" >&5
4705 (exit $ac_status); }; }; then
4706 ac_cv_decl_sys_siglist=yes
4707 else
4708 echo "$as_me: failed program was:" >&5
4709 cat conftest.$ac_ext >&5
4710 ac_cv_decl_sys_siglist=no
4712 rm -f conftest.$ac_objext conftest.$ac_ext
4714 echo "$as_me:4714: result: $ac_cv_decl_sys_siglist" >&5
4715 echo "${ECHO_T}$ac_cv_decl_sys_siglist" >&6
4716 if test $ac_cv_decl_sys_siglist = yes; then
4718 cat >>confdefs.h <<\EOF
4719 #define SYS_SIGLIST_DECLARED 1
4724 ac_ext=cc
4725 ac_cpp='$CXXCPP $CPPFLAGS'
4726 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4727 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4728 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4730 echo "$as_me:4730: checking whether ANSI array delete syntax supported" >&5
4731 echo $ECHO_N "checking whether ANSI array delete syntax supported... $ECHO_C" >&6
4732 cat >conftest.$ac_ext <<_ACEOF
4733 #line 4733 "configure"
4734 #include "confdefs.h"
4737 main ()
4739 char *p = new char[5]; delete [] p;
4741 return 0;
4743 _ACEOF
4744 rm -f conftest.$ac_objext
4745 if { (eval echo "$as_me:4745: \"$ac_compile\"") >&5
4746 (eval $ac_compile) 2>&5
4747 ac_status=$?
4748 echo "$as_me:4748: \$? = $ac_status" >&5
4749 (exit $ac_status); } &&
4750 { ac_try='test -s conftest.$ac_objext'
4751 { (eval echo "$as_me:4751: \"$ac_try\"") >&5
4752 (eval $ac_try) 2>&5
4753 ac_status=$?
4754 echo "$as_me:4754: \$? = $ac_status" >&5
4755 (exit $ac_status); }; }; then
4756 echo "$as_me:4756: result: yes" >&5
4757 echo "${ECHO_T}yes" >&6
4758 else
4759 echo "$as_me: failed program was:" >&5
4760 cat conftest.$ac_ext >&5
4761 echo "$as_me:4761: result: no" >&5
4762 echo "${ECHO_T}no" >&6;
4763 cat >>confdefs.h <<\EOF
4764 #define ARRAY_DELETE_NEEDS_SIZE 1
4768 rm -f conftest.$ac_objext conftest.$ac_ext
4769 ac_ext=c
4770 ac_cpp='$CPP $CPPFLAGS'
4771 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4772 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4773 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4775 ac_ext=cc
4776 ac_cpp='$CXXCPP $CPPFLAGS'
4777 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4778 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4779 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4781 echo "$as_me:4781: checking traditional preprocessor" >&5
4782 echo $ECHO_N "checking traditional preprocessor... $ECHO_C" >&6
4783 cat >conftest.$ac_ext <<_ACEOF
4784 #line 4784 "configure"
4785 #include "confdefs.h"
4786 #define name2(a,b) a/**/b
4788 main ()
4790 int name2(foo,bar);
4792 return 0;
4794 _ACEOF
4795 rm -f conftest.$ac_objext
4796 if { (eval echo "$as_me:4796: \"$ac_compile\"") >&5
4797 (eval $ac_compile) 2>&5
4798 ac_status=$?
4799 echo "$as_me:4799: \$? = $ac_status" >&5
4800 (exit $ac_status); } &&
4801 { ac_try='test -s conftest.$ac_objext'
4802 { (eval echo "$as_me:4802: \"$ac_try\"") >&5
4803 (eval $ac_try) 2>&5
4804 ac_status=$?
4805 echo "$as_me:4805: \$? = $ac_status" >&5
4806 (exit $ac_status); }; }; then
4807 echo "$as_me:4807: result: yes" >&5
4808 echo "${ECHO_T}yes" >&6;
4809 cat >>confdefs.h <<\EOF
4810 #define TRADITIONAL_CPP 1
4813 else
4814 echo "$as_me: failed program was:" >&5
4815 cat conftest.$ac_ext >&5
4816 echo "$as_me:4816: result: no" >&5
4817 echo "${ECHO_T}no" >&6
4819 rm -f conftest.$ac_objext conftest.$ac_ext
4820 ac_ext=c
4821 ac_cpp='$CPP $CPPFLAGS'
4822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4826 echo "$as_me:4826: checking w_coredump" >&5
4827 echo $ECHO_N "checking w_coredump... $ECHO_C" >&6
4828 if test "$cross_compiling" = yes; then
4829 echo "$as_me:4829: result: no" >&5
4830 echo "${ECHO_T}no" >&6
4831 else
4832 cat >conftest.$ac_ext <<_ACEOF
4833 #line 4833 "configure"
4834 #include "confdefs.h"
4835 #include <sys/types.h>
4836 #include <sys/wait.h>
4837 main()
4839 #ifdef WCOREFLAG
4840 exit(1);
4841 #else
4842 int i = 0;
4843 ((union wait *)&i)->w_coredump = 1;
4844 exit(i != 0200);
4845 #endif
4847 _ACEOF
4848 rm -f conftest$ac_exeext
4849 if { (eval echo "$as_me:4849: \"$ac_link\"") >&5
4850 (eval $ac_link) 2>&5
4851 ac_status=$?
4852 echo "$as_me:4852: \$? = $ac_status" >&5
4853 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4854 { (eval echo "$as_me:4854: \"$ac_try\"") >&5
4855 (eval $ac_try) 2>&5
4856 ac_status=$?
4857 echo "$as_me:4857: \$? = $ac_status" >&5
4858 (exit $ac_status); }; }; then
4859 echo "$as_me:4859: result: yes" >&5
4860 echo "${ECHO_T}yes" >&6;
4861 cat >>confdefs.h <<\EOF
4862 #define WCOREFLAG 0200
4865 else
4866 echo "$as_me: program exited with status $ac_status" >&5
4867 echo "$as_me: failed program was:" >&5
4868 cat conftest.$ac_ext >&5
4869 echo "$as_me:4869: result: no" >&5
4870 echo "${ECHO_T}no" >&6
4872 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4874 echo "$as_me:4874: checking default value for grops -b option" >&5
4875 echo $ECHO_N "checking default value for grops -b option... $ECHO_C" >&6
4876 test -n "${BROKEN_SPOOLER_FLAGS}" || BROKEN_SPOOLER_FLAGS=7
4877 echo "$as_me:4877: result: $BROKEN_SPOOLER_FLAGS" >&5
4878 echo "${ECHO_T}$BROKEN_SPOOLER_FLAGS" >&6
4880 echo "$as_me:4880: checking default paper size" >&5
4881 echo $ECHO_N "checking default paper size... $ECHO_C" >&6
4882 if test -z "$PAGE"; then
4883 descfile=
4884 if test -r $prefix/share/groff/font/devps/DESC; then
4885 descfile=$prefix/share/groff/font/devps/DESC
4886 elif test -r $prefix/lib/groff/font/devps/DESC; then
4887 descfile=$prefix/lib/groff/font/devps/DESC
4888 else
4889 for f in $prefix/share/groff/*/font/devps/DESC; do
4890 if test -r $f; then
4891 descfile=$f
4892 break
4894 done
4896 if test -n "$descfile" \
4897 && grep "^paperlength 841890" $descfile >/dev/null 2>&1; then
4898 PAGE=A4
4901 if test -z "$PAGE"; then
4902 dom=`awk '($1 == "dom" || $1 == "search") { print $2; exit}' \
4903 /etc/resolv.conf 2>/dev/null`
4904 if test -z "$dom"; then
4905 dom=`(domainname) 2>/dev/null | tr -d '+'`
4906 if test -z "$dom" \
4907 || test "$dom" = '(none)'; then
4908 dom=`(hostname) 2>/dev/null | grep '\.'`
4911 # If the top-level domain is two letters and it's not `us' or `ca'
4912 # then they probably use A4 paper.
4913 case "$dom" in
4914 *.[Uu][Ss]|*.[Cc][Aa]) ;;
4915 *.[A-Za-z][A-Za-z]) PAGE=A4 ;;
4916 esac
4918 test -n "$PAGE" || PAGE=letter
4919 if test "x$PAGE" = "xA4"; then
4921 cat >>confdefs.h <<\EOF
4922 #define PAGEA4 1
4926 echo "$as_me:4926: result: $PAGE" >&5
4927 echo "${ECHO_T}$PAGE" >&6
4929 echo "$as_me:4929: checking for existing troff installation" >&5
4930 echo $ECHO_N "checking for existing troff installation... $ECHO_C" >&6
4931 if test "x`(echo .tm '|n(.g' | tr '|' '\\\\' | troff -z -i 2>&1) 2>/dev/null`" = x0; then
4932 echo "$as_me:4932: result: yes" >&5
4933 echo "${ECHO_T}yes" >&6
4935 else
4936 echo "$as_me:4936: result: no" >&5
4937 echo "${ECHO_T}no" >&6
4941 echo "$as_me:4941: checking for prefix of system macro packages" >&5
4942 echo $ECHO_N "checking for prefix of system macro packages... $ECHO_C" >&6
4943 sys_tmac_prefix=
4944 sys_tmac_file_prefix=
4945 for d in /usr/share/lib/tmac /usr/lib/tmac; do
4946 for t in "" tmac.; do
4947 for m in an s m; do
4948 f=$d/$t$m
4949 if test -z "$sys_tmac_prefix" \
4950 && test -f $f \
4951 && grep '^\.if' $f >/dev/null 2>&1; then
4952 sys_tmac_prefix=$d/$t
4953 sys_tmac_file_prefix=$t
4955 done
4956 done
4957 done
4958 echo "$as_me:4958: result: $sys_tmac_prefix" >&5
4959 echo "${ECHO_T}$sys_tmac_prefix" >&6
4961 tmac_wrap=
4962 echo "$as_me:4962: checking which system macro packages should be made available" >&5
4963 echo $ECHO_N "checking which system macro packages should be made available... $ECHO_C" >&6
4964 if test "x$sys_tmac_file_prefix" = "xtmac."; then
4965 for f in $sys_tmac_prefix*; do
4966 suff=`echo $f | sed -e "s;$sys_tmac_prefix;;"`
4967 case "$suff" in
4968 e) ;;
4970 grep "Copyright.*Free Software Foundation" $f >/dev/null \
4971 || tmac_wrap="$tmac_wrap $suff" ;;
4972 esac
4973 done
4974 elif test -n "$sys_tmac_prefix"; then
4975 files=`echo $sys_tmac_prefix*`
4976 grep "\\.so" $files >conftest.sol
4977 for f in $files; do
4978 case "$f" in
4979 ${sys_tmac_prefix}e) ;;
4980 *.me) ;;
4981 */ms.*) ;;
4983 b=`basename $f`
4984 if grep "\\.so.*/$b\$" conftest.sol >/dev/null \
4985 || grep -l "Copyright.*Free Software Foundation" $f >/dev/null; then
4987 else
4988 suff=`echo $f | sed -e "s;$sys_tmac_prefix;;"`
4989 case "$suff" in
4990 tmac.*) ;;
4991 *) tmac_wrap="$tmac_wrap $suff" ;;
4992 esac
4994 esac
4995 done
4996 rm -f conftest.sol
4998 echo "$as_me:4998: result: $tmac_wrap" >&5
4999 echo "${ECHO_T}$tmac_wrap" >&6
5001 ac_config_files="$ac_config_files stamp-h"
5003 ac_config_files="$ac_config_files Makefile src/xditview/Imakefile"
5005 cat >confcache <<\_ACEOF
5006 # This file is a shell script that caches the results of configure
5007 # tests run on this system so they can be shared between configure
5008 # scripts and configure runs, see configure's option --config-cache.
5009 # It is not useful on other systems. If it contains results you don't
5010 # want to keep, you may remove or edit it.
5012 # config.status only pays attention to the cache file if you give it
5013 # the --recheck option to rerun configure.
5015 # `ac_cv_env_foo' variables (set or unset) will be overriden when
5016 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5017 # following values.
5019 _ACEOF
5021 # The following way of writing the cache mishandles newlines in values,
5022 # but we know of no workaround that is simple, portable, and efficient.
5023 # So, don't put newlines in cache variables' values.
5024 # Ultrix sh set writes to stderr and can't be redirected directly,
5025 # and sets the high bit in the cache file unless we assign to the vars.
5027 (set) 2>&1 |
5028 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5029 *ac_space=\ *)
5030 # `set' does not quote correctly, so add quotes (double-quote
5031 # substitution turns \\\\ into \\, and sed turns \\ into \).
5032 sed -n \
5033 "s/'/'\\\\''/g;
5034 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5037 # `set' quotes correctly as required by POSIX, so do not add quotes.
5038 sed -n \
5039 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5041 esac;
5043 sed '
5044 t clear
5045 : clear
5046 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5047 t end
5048 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5049 : end' >>confcache
5050 if cmp -s $cache_file confcache; then :; else
5051 if test -w $cache_file; then
5052 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5053 cat confcache >$cache_file
5054 else
5055 echo "not updating unwritable cache $cache_file"
5058 rm -f confcache
5060 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5061 # Let make expand exec_prefix.
5062 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5064 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5065 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5066 # trailing colons and then remove the whole line if VPATH becomes empty
5067 # (actually we leave an empty line to preserve line numbers).
5068 if test "x$srcdir" = x.; then
5069 ac_vpsub='/^[ ]*VPATH[ ]*=/{
5070 s/:*\$(srcdir):*/:/;
5071 s/:*\${srcdir}:*/:/;
5072 s/:*@srcdir@:*/:/;
5073 s/^\([^=]*=[ ]*\):*/\1/;
5074 s/:*$//;
5075 s/^[^=]*=[ ]*$//;
5079 DEFS=-DHAVE_CONFIG_H
5081 : ${CONFIG_STATUS=./config.status}
5082 ac_clean_files_save=$ac_clean_files
5083 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5084 { echo "$as_me:5084: creating $CONFIG_STATUS" >&5
5085 echo "$as_me: creating $CONFIG_STATUS" >&6;}
5086 cat >$CONFIG_STATUS <<_ACEOF
5087 #! $SHELL
5088 # Generated automatically by configure.
5089 # Run this file to recreate the current configuration.
5090 # Compiler output produced by configure, useful for debugging
5091 # configure, is in config.log if it exists.
5093 debug=false
5094 SHELL=\${CONFIG_SHELL-$SHELL}
5095 ac_cs_invocation="\$0 \$@"
5097 _ACEOF
5099 cat >>$CONFIG_STATUS <<\_ACEOF
5100 # Be Bourne compatible
5101 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5102 emulate sh
5103 NULLCMD=:
5104 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5105 set -o posix
5108 # Name of the executable.
5109 as_me=`echo "$0" |sed 's,.*[\\/],,'`
5111 if expr a : '\(a\)' >/dev/null 2>&1; then
5112 as_expr=expr
5113 else
5114 as_expr=false
5117 rm -f conf$$ conf$$.exe conf$$.file
5118 echo >conf$$.file
5119 if ln -s conf$$.file conf$$ 2>/dev/null; then
5120 # We could just check for DJGPP; but this test a) works b) is more generic
5121 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5122 if test -f conf$$.exe; then
5123 # Don't use ln at all; we don't have any links
5124 as_ln_s='cp -p'
5125 else
5126 as_ln_s='ln -s'
5128 elif ln conf$$.file conf$$ 2>/dev/null; then
5129 as_ln_s=ln
5130 else
5131 as_ln_s='cp -p'
5133 rm -f conf$$ conf$$.exe conf$$.file
5135 as_executable_p="test -f"
5137 # Support unset when possible.
5138 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
5139 as_unset=unset
5140 else
5141 as_unset=false
5144 # NLS nuisances.
5145 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
5146 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
5147 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
5148 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
5149 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
5150 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
5151 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
5152 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
5154 # IFS
5155 # We need space, tab and new line, in precisely that order.
5156 as_nl='
5158 IFS=" $as_nl"
5160 # CDPATH.
5161 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
5163 exec 6>&1
5165 _ACEOF
5167 # Files that config.status was made for.
5168 if test -n "$ac_config_files"; then
5169 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5172 if test -n "$ac_config_headers"; then
5173 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5176 if test -n "$ac_config_links"; then
5177 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5180 if test -n "$ac_config_commands"; then
5181 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5184 cat >>$CONFIG_STATUS <<\EOF
5186 ac_cs_usage="\
5187 \`$as_me' instantiates files from templates according to the
5188 current configuration.
5190 Usage: $0 [OPTIONS] [FILE]...
5192 -h, --help print this help, then exit
5193 -V, --version print version number, then exit
5194 -d, --debug don't remove temporary files
5195 --recheck update $as_me by reconfiguring in the same conditions
5196 --file=FILE[:TEMPLATE]
5197 instantiate the configuration file FILE
5198 --header=FILE[:TEMPLATE]
5199 instantiate the configuration header FILE
5201 Configuration files:
5202 $config_files
5204 Configuration headers:
5205 $config_headers
5207 Report bugs to <bug-autoconf@gnu.org>."
5210 cat >>$CONFIG_STATUS <<EOF
5211 ac_cs_version="\\
5212 config.status
5213 configured by $0, generated by GNU Autoconf 2.52,
5214 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5216 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
5217 Free Software Foundation, Inc.
5218 This config.status script is free software; the Free Software Foundation
5219 gives unlimited permission to copy, distribute and modify it."
5220 srcdir=$srcdir
5221 INSTALL="$INSTALL"
5224 cat >>$CONFIG_STATUS <<\EOF
5225 # If no file are specified by the user, then we need to provide default
5226 # value. By we need to know if files were specified by the user.
5227 ac_need_defaults=:
5228 while test $# != 0
5230 case $1 in
5231 --*=*)
5232 ac_option=`expr "x$1" : 'x\([^=]*\)='`
5233 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5234 shift
5235 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
5236 shift
5238 -*);;
5239 *) # This is not an option, so the user has probably given explicit
5240 # arguments.
5241 ac_need_defaults=false;;
5242 esac
5244 case $1 in
5245 # Handling of the options.
5247 cat >>$CONFIG_STATUS <<EOF
5248 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5249 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
5250 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
5252 cat >>$CONFIG_STATUS <<\EOF
5253 --version | --vers* | -V )
5254 echo "$ac_cs_version"; exit 0 ;;
5255 --he | --h)
5256 # Conflict between --help and --header
5257 { { echo "$as_me:5257: error: ambiguous option: $1
5258 Try \`$0 --help' for more information." >&5
5259 echo "$as_me: error: ambiguous option: $1
5260 Try \`$0 --help' for more information." >&2;}
5261 { (exit 1); exit 1; }; };;
5262 --help | --hel | -h )
5263 echo "$ac_cs_usage"; exit 0 ;;
5264 --debug | --d* | -d )
5265 debug=: ;;
5266 --file | --fil | --fi | --f )
5267 shift
5268 CONFIG_FILES="$CONFIG_FILES $1"
5269 ac_need_defaults=false;;
5270 --header | --heade | --head | --hea )
5271 shift
5272 CONFIG_HEADERS="$CONFIG_HEADERS $1"
5273 ac_need_defaults=false;;
5275 # This is an error.
5276 -*) { { echo "$as_me:5276: error: unrecognized option: $1
5277 Try \`$0 --help' for more information." >&5
5278 echo "$as_me: error: unrecognized option: $1
5279 Try \`$0 --help' for more information." >&2;}
5280 { (exit 1); exit 1; }; } ;;
5282 *) ac_config_targets="$ac_config_targets $1" ;;
5284 esac
5285 shift
5286 done
5288 exec 5>>config.log
5289 cat >&5 << _ACEOF
5291 ## ----------------------- ##
5292 ## Running config.status. ##
5293 ## ----------------------- ##
5295 This file was extended by $as_me 2.52, executed with
5296 CONFIG_FILES = $CONFIG_FILES
5297 CONFIG_HEADERS = $CONFIG_HEADERS
5298 CONFIG_LINKS = $CONFIG_LINKS
5299 CONFIG_COMMANDS = $CONFIG_COMMANDS
5300 > $ac_cs_invocation
5301 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5303 _ACEOF
5306 cat >>$CONFIG_STATUS <<\EOF
5307 for ac_config_target in $ac_config_targets
5309 case "$ac_config_target" in
5310 # Handling of arguments.
5311 "stamp-h" ) CONFIG_FILES="$CONFIG_FILES stamp-h" ;;
5312 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5313 "src/xditview/Imakefile" ) CONFIG_FILES="$CONFIG_FILES src/xditview/Imakefile" ;;
5314 "src/include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/config.h:src/include/config.hin" ;;
5315 *) { { echo "$as_me:5315: error: invalid argument: $ac_config_target" >&5
5316 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5317 { (exit 1); exit 1; }; };;
5318 esac
5319 done
5321 # If the user did not use the arguments to specify the items to instantiate,
5322 # then the envvar interface is used. Set only those that are not.
5323 # We use the long form for the default assignment because of an extremely
5324 # bizarre bug on SunOS 4.1.3.
5325 if $ac_need_defaults; then
5326 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5327 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5330 # Create a temporary directory, and hook for its removal unless debugging.
5331 $debug ||
5333 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5334 trap '{ (exit 1); exit 1; }' 1 2 13 15
5337 # Create a (secure) tmp directory for tmp files.
5338 : ${TMPDIR=/tmp}
5340 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
5341 test -n "$tmp" && test -d "$tmp"
5342 } ||
5344 tmp=$TMPDIR/cs$$-$RANDOM
5345 (umask 077 && mkdir $tmp)
5346 } ||
5348 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
5349 { (exit 1); exit 1; }
5354 cat >>$CONFIG_STATUS <<EOF
5357 # CONFIG_FILES section.
5360 # No need to generate the scripts if there are no CONFIG_FILES.
5361 # This happens for instance when ./config.status config.h
5362 if test -n "\$CONFIG_FILES"; then
5363 # Protect against being on the right side of a sed subst in config.status.
5364 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5365 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5366 s,@SHELL@,$SHELL,;t t
5367 s,@exec_prefix@,$exec_prefix,;t t
5368 s,@prefix@,$prefix,;t t
5369 s,@program_transform_name@,$program_transform_name,;t t
5370 s,@bindir@,$bindir,;t t
5371 s,@sbindir@,$sbindir,;t t
5372 s,@libexecdir@,$libexecdir,;t t
5373 s,@datadir@,$datadir,;t t
5374 s,@sysconfdir@,$sysconfdir,;t t
5375 s,@sharedstatedir@,$sharedstatedir,;t t
5376 s,@localstatedir@,$localstatedir,;t t
5377 s,@libdir@,$libdir,;t t
5378 s,@includedir@,$includedir,;t t
5379 s,@oldincludedir@,$oldincludedir,;t t
5380 s,@infodir@,$infodir,;t t
5381 s,@mandir@,$mandir,;t t
5382 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5383 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5384 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5385 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5386 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5387 s,@build_alias@,$build_alias,;t t
5388 s,@host_alias@,$host_alias,;t t
5389 s,@target_alias@,$target_alias,;t t
5390 s,@ECHO_C@,$ECHO_C,;t t
5391 s,@ECHO_N@,$ECHO_N,;t t
5392 s,@ECHO_T@,$ECHO_T,;t t
5393 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5394 s,@DEFS@,$DEFS,;t t
5395 s,@LIBS@,$LIBS,;t t
5396 s,@top_builddir@,$top_builddir,;t t
5397 s,@CC@,$CC,;t t
5398 s,@CFLAGS@,$CFLAGS,;t t
5399 s,@LDFLAGS@,$LDFLAGS,;t t
5400 s,@CPPFLAGS@,$CPPFLAGS,;t t
5401 s,@ac_ct_CC@,$ac_ct_CC,;t t
5402 s,@EXEEXT@,$EXEEXT,;t t
5403 s,@OBJEXT@,$OBJEXT,;t t
5404 s,@CXX@,$CXX,;t t
5405 s,@CXXFLAGS@,$CXXFLAGS,;t t
5406 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
5407 s,@TTYDEVDIRS@,$TTYDEVDIRS,;t t
5408 s,@OTHERDEVDIRS@,$OTHERDEVDIRS,;t t
5409 s,@LPR@,$LPR,;t t
5410 s,@LP@,$LP,;t t
5411 s,@LPQ@,$LPQ,;t t
5412 s,@PSPRINT@,$PSPRINT,;t t
5413 s,@DVIPRINT@,$DVIPRINT,;t t
5414 s,@PERLPATH@,$PERLPATH,;t t
5415 s,@YACC@,$YACC,;t t
5416 s,@RANLIB@,$RANLIB,;t t
5417 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
5418 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
5419 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
5420 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
5421 s,@LN_S@,$LN_S,;t t
5422 s,@SH_SCRIPT_SED_CMD@,$SH_SCRIPT_SED_CMD,;t t
5423 s,@CPP@,$CPP,;t t
5424 s,@LIBM@,$LIBM,;t t
5425 s,@LIBOBJS@,$LIBOBJS,;t t
5426 s,@BROKEN_SPOOLER_FLAGS@,$BROKEN_SPOOLER_FLAGS,;t t
5427 s,@PAGE@,$PAGE,;t t
5428 s,@g@,$g,;t t
5429 s,@sys_tmac_prefix@,$sys_tmac_prefix,;t t
5430 s,@tmac_wrap@,$tmac_wrap,;t t
5431 CEOF
5435 cat >>$CONFIG_STATUS <<\EOF
5436 # Split the substitutions into bite-sized pieces for seds with
5437 # small command number limits, like on Digital OSF/1 and HP-UX.
5438 ac_max_sed_lines=48
5439 ac_sed_frag=1 # Number of current file.
5440 ac_beg=1 # First line for current file.
5441 ac_end=$ac_max_sed_lines # Line after last line for current file.
5442 ac_more_lines=:
5443 ac_sed_cmds=
5444 while $ac_more_lines; do
5445 if test $ac_beg -gt 1; then
5446 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5447 else
5448 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5450 if test ! -s $tmp/subs.frag; then
5451 ac_more_lines=false
5452 else
5453 # The purpose of the label and of the branching condition is to
5454 # speed up the sed processing (if there are no `@' at all, there
5455 # is no need to browse any of the substitutions).
5456 # These are the two extra sed commands mentioned above.
5457 (echo ':t
5458 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
5459 if test -z "$ac_sed_cmds"; then
5460 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
5461 else
5462 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5464 ac_sed_frag=`expr $ac_sed_frag + 1`
5465 ac_beg=$ac_end
5466 ac_end=`expr $ac_end + $ac_max_sed_lines`
5468 done
5469 if test -z "$ac_sed_cmds"; then
5470 ac_sed_cmds=cat
5472 fi # test -n "$CONFIG_FILES"
5475 cat >>$CONFIG_STATUS <<\EOF
5476 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5477 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5478 case $ac_file in
5479 - | *:- | *:-:* ) # input from stdin
5480 cat >$tmp/stdin
5481 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5482 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5483 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5484 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5485 * ) ac_file_in=$ac_file.in ;;
5486 esac
5488 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5489 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5490 X"$ac_file" : 'X\(//\)[^/]' \| \
5491 X"$ac_file" : 'X\(//\)$' \| \
5492 X"$ac_file" : 'X\(/\)' \| \
5493 . : '\(.\)' 2>/dev/null ||
5494 echo X"$ac_file" |
5495 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5496 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5497 /^X\(\/\/\)$/{ s//\1/; q; }
5498 /^X\(\/\).*/{ s//\1/; q; }
5499 s/.*/./; q'`
5500 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5501 { case "$ac_dir" in
5502 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
5503 *) as_incr_dir=.;;
5504 esac
5505 as_dummy="$ac_dir"
5506 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
5507 case $as_mkdir_dir in
5508 # Skip DOS drivespec
5509 ?:) as_incr_dir=$as_mkdir_dir ;;
5511 as_incr_dir=$as_incr_dir/$as_mkdir_dir
5512 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
5514 esac
5515 done; }
5517 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
5518 # A "../" for each directory in $ac_dir_suffix.
5519 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
5520 else
5521 ac_dir_suffix= ac_dots=
5524 case $srcdir in
5525 .) ac_srcdir=.
5526 if test -z "$ac_dots"; then
5527 ac_top_srcdir=.
5528 else
5529 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
5530 fi ;;
5531 [\\/]* | ?:[\\/]* )
5532 ac_srcdir=$srcdir$ac_dir_suffix;
5533 ac_top_srcdir=$srcdir ;;
5534 *) # Relative path.
5535 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
5536 ac_top_srcdir=$ac_dots$srcdir ;;
5537 esac
5539 case $INSTALL in
5540 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5541 *) ac_INSTALL=$ac_dots$INSTALL ;;
5542 esac
5544 if test x"$ac_file" != x-; then
5545 { echo "$as_me:5545: creating $ac_file" >&5
5546 echo "$as_me: creating $ac_file" >&6;}
5547 rm -f "$ac_file"
5549 # Let's still pretend it is `configure' which instantiates (i.e., don't
5550 # use $as_me), people would be surprised to read:
5551 # /* config.h. Generated automatically by config.status. */
5552 configure_input="Generated automatically from `echo $ac_file_in |
5553 sed 's,.*/,,'` by configure."
5555 # First look for the input files in the build tree, otherwise in the
5556 # src tree.
5557 ac_file_inputs=`IFS=:
5558 for f in $ac_file_in; do
5559 case $f in
5560 -) echo $tmp/stdin ;;
5561 [\\/$]*)
5562 # Absolute (can't be DOS-style, as IFS=:)
5563 test -f "$f" || { { echo "$as_me:5563: error: cannot find input file: $f" >&5
5564 echo "$as_me: error: cannot find input file: $f" >&2;}
5565 { (exit 1); exit 1; }; }
5566 echo $f;;
5567 *) # Relative
5568 if test -f "$f"; then
5569 # Build tree
5570 echo $f
5571 elif test -f "$srcdir/$f"; then
5572 # Source tree
5573 echo $srcdir/$f
5574 else
5575 # /dev/null tree
5576 { { echo "$as_me:5576: error: cannot find input file: $f" >&5
5577 echo "$as_me: error: cannot find input file: $f" >&2;}
5578 { (exit 1); exit 1; }; }
5579 fi;;
5580 esac
5581 done` || { (exit 1); exit 1; }
5583 cat >>$CONFIG_STATUS <<EOF
5584 sed "$ac_vpsub
5585 $extrasub
5587 cat >>$CONFIG_STATUS <<\EOF
5589 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5590 s,@configure_input@,$configure_input,;t t
5591 s,@srcdir@,$ac_srcdir,;t t
5592 s,@top_srcdir@,$ac_top_srcdir,;t t
5593 s,@INSTALL@,$ac_INSTALL,;t t
5594 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5595 rm -f $tmp/stdin
5596 if test x"$ac_file" != x-; then
5597 mv $tmp/out $ac_file
5598 else
5599 cat $tmp/out
5600 rm -f $tmp/out
5603 # Run the commands associated with the file.
5604 case $ac_file in
5605 stamp-h ) echo timestamp > stamp-h ;;
5606 esac
5607 done
5609 cat >>$CONFIG_STATUS <<\EOF
5612 # CONFIG_HEADER section.
5615 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5616 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5618 # ac_d sets the value in "#define NAME VALUE" lines.
5619 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5620 ac_dB='[ ].*$,\1#\2'
5621 ac_dC=' '
5622 ac_dD=',;t'
5623 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5624 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5625 ac_uB='$,\1#\2define\3'
5626 ac_uC=' '
5627 ac_uD=',;t'
5629 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
5630 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5631 case $ac_file in
5632 - | *:- | *:-:* ) # input from stdin
5633 cat >$tmp/stdin
5634 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5635 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5636 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5637 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5638 * ) ac_file_in=$ac_file.in ;;
5639 esac
5641 test x"$ac_file" != x- && { echo "$as_me:5641: creating $ac_file" >&5
5642 echo "$as_me: creating $ac_file" >&6;}
5644 # First look for the input files in the build tree, otherwise in the
5645 # src tree.
5646 ac_file_inputs=`IFS=:
5647 for f in $ac_file_in; do
5648 case $f in
5649 -) echo $tmp/stdin ;;
5650 [\\/$]*)
5651 # Absolute (can't be DOS-style, as IFS=:)
5652 test -f "$f" || { { echo "$as_me:5652: error: cannot find input file: $f" >&5
5653 echo "$as_me: error: cannot find input file: $f" >&2;}
5654 { (exit 1); exit 1; }; }
5655 echo $f;;
5656 *) # Relative
5657 if test -f "$f"; then
5658 # Build tree
5659 echo $f
5660 elif test -f "$srcdir/$f"; then
5661 # Source tree
5662 echo $srcdir/$f
5663 else
5664 # /dev/null tree
5665 { { echo "$as_me:5665: error: cannot find input file: $f" >&5
5666 echo "$as_me: error: cannot find input file: $f" >&2;}
5667 { (exit 1); exit 1; }; }
5668 fi;;
5669 esac
5670 done` || { (exit 1); exit 1; }
5671 # Remove the trailing spaces.
5672 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
5676 # Transform confdefs.h into two sed scripts, `conftest.defines' and
5677 # `conftest.undefs', that substitutes the proper values into
5678 # config.h.in to produce config.h. The first handles `#define'
5679 # templates, and the second `#undef' templates.
5680 # And first: Protect against being on the right side of a sed subst in
5681 # config.status. Protect against being in an unquoted here document
5682 # in config.status.
5683 rm -f conftest.defines conftest.undefs
5684 # Using a here document instead of a string reduces the quoting nightmare.
5685 # Putting comments in sed scripts is not portable.
5687 # `end' is used to avoid that the second main sed command (meant for
5688 # 0-ary CPP macros) applies to n-ary macro definitions.
5689 # See the Autoconf documentation for `clear'.
5690 cat >confdef2sed.sed <<\EOF
5691 s/[\\&,]/\\&/g
5692 s,[\\$`],\\&,g
5693 t clear
5694 : clear
5695 s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
5696 t end
5697 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
5698 : end
5700 # If some macros were called several times there might be several times
5701 # the same #defines, which is useless. Nevertheless, we may not want to
5702 # sort them, since we want the *last* AC-DEFINE to be honored.
5703 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
5704 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
5705 rm -f confdef2sed.sed
5707 # This sed command replaces #undef with comments. This is necessary, for
5708 # example, in the case of _POSIX_SOURCE, which is predefined and required
5709 # on some systems where configure will not decide to define it.
5710 cat >>conftest.undefs <<\EOF
5711 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
5714 # Break up conftest.defines because some shells have a limit on the size
5715 # of here documents, and old seds have small limits too (100 cmds).
5716 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
5717 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
5718 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
5719 echo ' :' >>$CONFIG_STATUS
5720 rm -f conftest.tail
5721 while grep . conftest.defines >/dev/null
5723 # Write a limited-size here document to $tmp/defines.sed.
5724 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
5725 # Speed up: don't consider the non `#define' lines.
5726 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
5727 # Work around the forget-to-reset-the-flag bug.
5728 echo 't clr' >>$CONFIG_STATUS
5729 echo ': clr' >>$CONFIG_STATUS
5730 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
5731 echo 'CEOF
5732 sed -f $tmp/defines.sed $tmp/in >$tmp/out
5733 rm -f $tmp/in
5734 mv $tmp/out $tmp/in
5735 ' >>$CONFIG_STATUS
5736 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
5737 rm -f conftest.defines
5738 mv conftest.tail conftest.defines
5739 done
5740 rm -f conftest.defines
5741 echo ' fi # egrep' >>$CONFIG_STATUS
5742 echo >>$CONFIG_STATUS
5744 # Break up conftest.undefs because some shells have a limit on the size
5745 # of here documents, and old seds have small limits too (100 cmds).
5746 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
5747 rm -f conftest.tail
5748 while grep . conftest.undefs >/dev/null
5750 # Write a limited-size here document to $tmp/undefs.sed.
5751 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
5752 # Speed up: don't consider the non `#undef'
5753 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
5754 # Work around the forget-to-reset-the-flag bug.
5755 echo 't clr' >>$CONFIG_STATUS
5756 echo ': clr' >>$CONFIG_STATUS
5757 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
5758 echo 'CEOF
5759 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
5760 rm -f $tmp/in
5761 mv $tmp/out $tmp/in
5762 ' >>$CONFIG_STATUS
5763 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
5764 rm -f conftest.undefs
5765 mv conftest.tail conftest.undefs
5766 done
5767 rm -f conftest.undefs
5769 cat >>$CONFIG_STATUS <<\EOF
5770 # Let's still pretend it is `configure' which instantiates (i.e., don't
5771 # use $as_me), people would be surprised to read:
5772 # /* config.h. Generated automatically by config.status. */
5773 if test x"$ac_file" = x-; then
5774 echo "/* Generated automatically by configure. */" >$tmp/config.h
5775 else
5776 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
5778 cat $tmp/in >>$tmp/config.h
5779 rm -f $tmp/in
5780 if test x"$ac_file" != x-; then
5781 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
5782 { echo "$as_me:5782: $ac_file is unchanged" >&5
5783 echo "$as_me: $ac_file is unchanged" >&6;}
5784 else
5785 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5786 X"$ac_file" : 'X\(//\)[^/]' \| \
5787 X"$ac_file" : 'X\(//\)$' \| \
5788 X"$ac_file" : 'X\(/\)' \| \
5789 . : '\(.\)' 2>/dev/null ||
5790 echo X"$ac_file" |
5791 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5792 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5793 /^X\(\/\/\)$/{ s//\1/; q; }
5794 /^X\(\/\).*/{ s//\1/; q; }
5795 s/.*/./; q'`
5796 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5797 { case "$ac_dir" in
5798 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
5799 *) as_incr_dir=.;;
5800 esac
5801 as_dummy="$ac_dir"
5802 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
5803 case $as_mkdir_dir in
5804 # Skip DOS drivespec
5805 ?:) as_incr_dir=$as_mkdir_dir ;;
5807 as_incr_dir=$as_incr_dir/$as_mkdir_dir
5808 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
5810 esac
5811 done; }
5814 rm -f $ac_file
5815 mv $tmp/config.h $ac_file
5817 else
5818 cat $tmp/config.h
5819 rm -f $tmp/config.h
5821 done
5824 cat >>$CONFIG_STATUS <<\EOF
5826 { (exit 0); exit 0; }
5828 chmod +x $CONFIG_STATUS
5829 ac_clean_files=$ac_clean_files_save
5831 # configure is writing to config.log, and then calls config.status.
5832 # config.status does its own redirection, appending to config.log.
5833 # Unfortunately, on DOS this fails, as config.log is still kept open
5834 # by configure, so config.status won't be able to write to it; its
5835 # output is simply discarded. So we exec the FD to /dev/null,
5836 # effectively closing config.log, so it can be properly (re)opened and
5837 # appended to by config.status. When coming back to configure, we
5838 # need to make the FD available again.
5839 if test "$no_create" != yes; then
5840 ac_cs_success=:
5841 exec 5>/dev/null
5842 $SHELL $CONFIG_STATUS || ac_cs_success=false
5843 exec 5>>config.log
5844 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5845 # would make configure fail if this is the last instruction.
5846 $ac_cs_success || { (exit 1); exit 1; }
5849 { echo "$as_me:5849:
5851 Configuration completed.
5853 You can now say \`make' to compile the groff package and \`make install'
5854 to install it afterwards.
5856 If you want to compile xditview, change the directory to \`src/xditview'
5857 and follow the instructions given in the file \`INSTALL'.
5858 " >&5
5859 echo "$as_me:
5861 Configuration completed.
5863 You can now say \`make' to compile the groff package and \`make install'
5864 to install it afterwards.
5866 If you want to compile xditview, change the directory to \`src/xditview'
5867 and follow the instructions given in the file \`INSTALL'.
5868 " >&6;}