3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 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.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
15 # Initialize some variables set by options.
16 # The variables have the same names as the options, with
17 # dashes changed to underlines.
19 cache_file
=.
/config.cache
28 program_transform_name
=s
,x
,x
,
36 bindir
='${exec_prefix}/bin'
37 sbindir
='${exec_prefix}/sbin'
38 libexecdir
='${exec_prefix}/libexec'
39 datadir
='${prefix}/share'
40 sysconfdir
='${prefix}/etc'
41 sharedstatedir
='${prefix}/com'
42 localstatedir
='${prefix}/var'
43 libdir
='${exec_prefix}/lib'
44 includedir
='${prefix}/include'
45 oldincludedir
='/usr/include'
46 infodir
='${prefix}/info'
47 mandir
='${prefix}/man'
49 # Initialize some other variables.
52 SHELL
=${CONFIG_SHELL-/bin/sh}
53 # Maximum number of lines to put in a shell here document.
60 # If the previous option needs an argument, assign it.
61 if test -n "$ac_prev"; then
62 eval "$ac_prev=\$ac_option"
68 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
72 # Accept the important Cygnus configure options, so we can diagnose typos.
76 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
78 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
79 bindir
="$ac_optarg" ;;
81 -build |
--build |
--buil |
--bui |
--bu)
83 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
86 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
87 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
89 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
90 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
91 cache_file
="$ac_optarg" ;;
93 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
95 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
97 datadir
="$ac_optarg" ;;
99 -disable-* |
--disable-*)
100 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
101 # Reject names that are not valid shell variable names.
102 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
103 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
105 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
106 eval "enable_${ac_feature}=no" ;;
108 -enable-* |
--enable-*)
109 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
110 # Reject names that are not valid shell variable names.
111 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
112 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
114 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
119 eval "enable_${ac_feature}='$ac_optarg'" ;;
121 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
122 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
123 |
--exec |
--exe |
--ex)
124 ac_prev
=exec_prefix
;;
125 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
126 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
127 |
--exec=* |
--exe=* |
--ex=*)
128 exec_prefix
="$ac_optarg" ;;
130 -gas |
--gas |
--ga |
--g)
131 # Obsolete; use --with-gas.
134 -help |
--help |
--hel |
--he)
135 # Omit some internal or obsolete options to make the list less imposing.
136 # This message is too long to be a string in the A/UX 3.1 sh.
138 Usage: configure [options] [host]
139 Options: [defaults in brackets after descriptions]
141 --cache-file=FILE cache test results in FILE
142 --help print this message
143 --no-create do not create output files
144 --quiet, --silent do not print \`checking...' messages
145 --version print the version of autoconf that created configure
146 Directory and file names:
147 --prefix=PREFIX install architecture-independent files in PREFIX
149 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
151 --bindir=DIR user executables in DIR [EPREFIX/bin]
152 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
153 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
154 --datadir=DIR read-only architecture-independent data in DIR
156 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
157 --sharedstatedir=DIR modifiable architecture-independent data in DIR
159 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
160 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
161 --includedir=DIR C header files in DIR [PREFIX/include]
162 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
163 --infodir=DIR info documentation in DIR [PREFIX/info]
164 --mandir=DIR man documentation in DIR [PREFIX/man]
165 --srcdir=DIR find the sources in DIR [configure dir or ..]
166 --program-prefix=PREFIX prepend PREFIX to installed program names
167 --program-suffix=SUFFIX append SUFFIX to installed program names
168 --program-transform-name=PROGRAM
169 run sed PROGRAM on installed program names
173 --build=BUILD configure for building on BUILD [BUILD=HOST]
174 --host=HOST configure for HOST [guessed]
175 --target=TARGET configure for TARGET [TARGET=HOST]
176 Features and packages:
177 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
178 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
179 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
180 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
181 --x-includes=DIR X include files are in DIR
182 --x-libraries=DIR X library files are in DIR
184 if test -n "$ac_help"; then
185 echo "--enable and --with options recognized:$ac_help"
189 -host |
--host |
--hos |
--ho)
191 -host=* |
--host=* |
--hos=* |
--ho=*)
194 -includedir |
--includedir |
--includedi |
--included |
--include \
195 |
--includ |
--inclu |
--incl |
--inc)
196 ac_prev
=includedir
;;
197 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
198 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
199 includedir
="$ac_optarg" ;;
201 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
203 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
204 infodir
="$ac_optarg" ;;
206 -libdir |
--libdir |
--libdi |
--libd)
208 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
209 libdir
="$ac_optarg" ;;
211 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
212 |
--libexe |
--libex |
--libe)
213 ac_prev
=libexecdir
;;
214 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
215 |
--libexe=* |
--libex=* |
--libe=*)
216 libexecdir
="$ac_optarg" ;;
218 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
219 |
--localstate |
--localstat |
--localsta |
--localst \
220 |
--locals |
--local |
--loca |
--loc |
--lo)
221 ac_prev
=localstatedir
;;
222 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
223 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
224 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
225 localstatedir
="$ac_optarg" ;;
227 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
229 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
230 mandir
="$ac_optarg" ;;
233 # Obsolete; use --without-fp.
236 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
240 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
241 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
244 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
245 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
246 |
--oldin |
--oldi |
--old |
--ol |
--o)
247 ac_prev
=oldincludedir
;;
248 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
249 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
250 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
251 oldincludedir
="$ac_optarg" ;;
253 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
255 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
256 prefix
="$ac_optarg" ;;
258 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
259 |
--program-pre |
--program-pr |
--program-p)
260 ac_prev
=program_prefix
;;
261 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
262 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
263 program_prefix
="$ac_optarg" ;;
265 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
266 |
--program-suf |
--program-su |
--program-s)
267 ac_prev
=program_suffix
;;
268 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
269 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
270 program_suffix
="$ac_optarg" ;;
272 -program-transform-name |
--program-transform-name \
273 |
--program-transform-nam |
--program-transform-na \
274 |
--program-transform-n |
--program-transform- \
275 |
--program-transform |
--program-transfor \
276 |
--program-transfo |
--program-transf \
277 |
--program-trans |
--program-tran \
278 |
--progr-tra |
--program-tr |
--program-t)
279 ac_prev
=program_transform_name
;;
280 -program-transform-name=* |
--program-transform-name=* \
281 |
--program-transform-nam=* |
--program-transform-na=* \
282 |
--program-transform-n=* |
--program-transform-=* \
283 |
--program-transform=* |
--program-transfor=* \
284 |
--program-transfo=* |
--program-transf=* \
285 |
--program-trans=* |
--program-tran=* \
286 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
287 program_transform_name
="$ac_optarg" ;;
289 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
290 |
-silent |
--silent |
--silen |
--sile |
--sil)
293 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
295 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
297 sbindir
="$ac_optarg" ;;
299 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
300 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
301 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
303 ac_prev
=sharedstatedir
;;
304 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
305 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
306 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
308 sharedstatedir
="$ac_optarg" ;;
310 -site |
--site |
--sit)
312 -site=* |
--site=* |
--sit=*)
315 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
317 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
318 srcdir
="$ac_optarg" ;;
320 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
321 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
322 ac_prev
=sysconfdir
;;
323 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
324 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
325 sysconfdir
="$ac_optarg" ;;
327 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
329 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
330 target
="$ac_optarg" ;;
332 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
335 -version |
--version |
--versio |
--versi |
--vers)
336 echo "configure generated by autoconf version 2.13"
340 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
341 # Reject names that are not valid shell variable names.
342 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
343 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
345 ac_package
=`echo $ac_package| sed 's/-/_/g'`
350 eval "with_${ac_package}='$ac_optarg'" ;;
352 -without-* |
--without-*)
353 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
354 # Reject names that are not valid shell variable names.
355 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
356 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
358 ac_package
=`echo $ac_package| sed 's/-/_/g'`
359 eval "with_${ac_package}=no" ;;
362 # Obsolete; use --with-x.
365 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
366 |
--x-incl |
--x-inc |
--x-in |
--x-i)
367 ac_prev
=x_includes
;;
368 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
369 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
370 x_includes
="$ac_optarg" ;;
372 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
373 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
374 ac_prev
=x_libraries
;;
375 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
376 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
377 x_libraries
="$ac_optarg" ;;
379 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
383 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
384 echo "configure: warning: $ac_option: invalid host type" 1>&2
386 if test "x$nonopt" != xNONE
; then
387 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
395 if test -n "$ac_prev"; then
396 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
399 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
401 # File descriptor usage:
404 # 2 errors and warnings
405 # 3 some systems may open it to /dev/tty
406 # 4 used on the Kubota Titan
407 # 6 checking for... messages and results
408 # 5 compiler messages saved in config.log
409 if test "$silent" = yes; then
417 This file contains any messages produced by compilers while
418 running configure, to aid debugging if configure makes a mistake.
421 # Strip out --no-create and --no-recursion so they do not pile up.
422 # Also quote any args containing shell metacharacters.
427 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
428 |
--no-cr |
--no-c) ;;
429 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
430 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
431 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
432 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
433 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
438 # Only set these to C if already set. These must not be set unconditionally
439 # because not all systems understand e.g. LANG=C (notably SCO).
440 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
441 # Non-C LC_CTYPE values break the ctype check.
442 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
443 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
444 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
445 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
447 # confdefs.h avoids OS command line length limits that DEFS can exceed.
448 rm -rf conftest
* confdefs.h
449 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
452 # A filename unique to this package, relative to the directory that
453 # configure is in, which we can look for to find out if srcdir is correct.
454 ac_unique_file
=src
/roff
/groff
/groff.cc
456 # Find the source files, if location was not specified.
457 if test -z "$srcdir"; then
458 ac_srcdir_defaulted
=yes
459 # Try the directory containing this script, then its parent.
461 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
462 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
464 if test ! -r $srcdir/$ac_unique_file; then
468 ac_srcdir_defaulted
=no
470 if test ! -r $srcdir/$ac_unique_file; then
471 if test "$ac_srcdir_defaulted" = yes; then
472 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
474 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
477 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
479 # Prefer explicitly selected file to automatically selected ones.
480 if test -z "$CONFIG_SITE"; then
481 if test "x$prefix" != xNONE
; then
482 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
484 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
487 for ac_site_file
in $CONFIG_SITE; do
488 if test -r "$ac_site_file"; then
489 echo "loading site script $ac_site_file"
494 if test -r "$cache_file"; then
495 echo "loading cache $cache_file"
498 echo "creating cache $cache_file"
503 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
504 ac_cpp
='$CPP $CPPFLAGS'
505 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
506 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
507 cross_compiling
=$ac_cv_prog_cc_cross
511 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
512 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
513 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
520 ac_n
= ac_c
='\c' ac_t
=
524 ac_srcdir_defaulted
=no
525 srcdir
=`cd $srcdir; pwd`
530 # Extract the first word of "gcc", so it can be a program name with args.
531 set dummy gcc
; ac_word
=$2
532 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
533 echo "configure:534: checking for $ac_word" >&5
534 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
535 echo $ac_n "(cached) $ac_c" 1>&6
537 if test -n "$CC"; then
538 ac_cv_prog_CC
="$CC" # Let the user override the test.
540 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
542 for ac_dir
in $ac_dummy; do
543 test -z "$ac_dir" && ac_dir
=.
544 if test -f $ac_dir/$ac_word; then
553 if test -n "$CC"; then
554 echo "$ac_t""$CC" 1>&6
556 echo "$ac_t""no" 1>&6
559 if test -z "$CC"; then
560 # Extract the first word of "cc", so it can be a program name with args.
561 set dummy cc
; ac_word
=$2
562 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
563 echo "configure:564: checking for $ac_word" >&5
564 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
565 echo $ac_n "(cached) $ac_c" 1>&6
567 if test -n "$CC"; then
568 ac_cv_prog_CC
="$CC" # Let the user override the test.
570 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
573 for ac_dir
in $ac_dummy; do
574 test -z "$ac_dir" && ac_dir
=.
575 if test -f $ac_dir/$ac_word; then
576 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
585 if test $ac_prog_rejected = yes; then
586 # We found a bogon in the path, so make sure we never use it.
587 set dummy
$ac_cv_prog_CC
589 if test $# -gt 0; then
590 # We chose a different compiler from the bogus one.
591 # However, it has the same basename, so the bogon will be chosen
592 # first if we set CC to just the basename; use the full file name.
594 set dummy
"$ac_dir/$ac_word" "$@"
602 if test -n "$CC"; then
603 echo "$ac_t""$CC" 1>&6
605 echo "$ac_t""no" 1>&6
608 if test -z "$CC"; then
611 # Extract the first word of "cl", so it can be a program name with args.
612 set dummy cl
; ac_word
=$2
613 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
614 echo "configure:615: checking for $ac_word" >&5
615 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
616 echo $ac_n "(cached) $ac_c" 1>&6
618 if test -n "$CC"; then
619 ac_cv_prog_CC
="$CC" # Let the user override the test.
621 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
623 for ac_dir
in $ac_dummy; do
624 test -z "$ac_dir" && ac_dir
=.
625 if test -f $ac_dir/$ac_word; then
634 if test -n "$CC"; then
635 echo "$ac_t""$CC" 1>&6
637 echo "$ac_t""no" 1>&6
642 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
645 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
646 echo "configure:647: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
649 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
650 ac_cpp
='$CPP $CPPFLAGS'
651 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
652 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
653 cross_compiling
=$ac_cv_prog_cc_cross
655 cat > conftest.
$ac_ext << EOF
657 #line 658 "configure"
658 #include "confdefs.h"
662 if { (eval echo configure
:663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
663 ac_cv_prog_cc_works
=yes
664 # If we can't run a trivial program, we are probably using a cross compiler.
665 if (.
/conftest
; exit) 2>/dev
/null
; then
666 ac_cv_prog_cc_cross
=no
668 ac_cv_prog_cc_cross
=yes
671 echo "configure: failed program was:" >&5
672 cat conftest.
$ac_ext >&5
673 ac_cv_prog_cc_works
=no
677 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
678 ac_cpp
='$CPP $CPPFLAGS'
679 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
680 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
681 cross_compiling
=$ac_cv_prog_cc_cross
683 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
684 if test $ac_cv_prog_cc_works = no
; then
685 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
687 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
688 echo "configure:689: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
689 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
690 cross_compiling
=$ac_cv_prog_cc_cross
692 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
693 echo "configure:694: checking whether we are using GNU C" >&5
694 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
695 echo $ac_n "(cached) $ac_c" 1>&6
697 cat > conftest.c
<<EOF
702 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:703: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
709 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
711 if test $ac_cv_prog_gcc = yes; then
717 ac_test_CFLAGS
="${CFLAGS+set}"
718 ac_save_CFLAGS
="$CFLAGS"
720 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
721 echo "configure:722: checking whether ${CC-cc} accepts -g" >&5
722 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
723 echo $ac_n "(cached) $ac_c" 1>&6
725 echo 'void f(){}' > conftest.c
726 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
735 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
736 if test "$ac_test_CFLAGS" = set; then
737 CFLAGS
="$ac_save_CFLAGS"
738 elif test $ac_cv_prog_cc_g = yes; then
739 if test "$GCC" = yes; then
745 if test "$GCC" = yes; then
752 for ac_prog
in $CCC c
++ g
++ gcc CC cxx cc
++ cl
754 # Extract the first word of "$ac_prog", so it can be a program name with args.
755 set dummy
$ac_prog; ac_word
=$2
756 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
757 echo "configure:758: checking for $ac_word" >&5
758 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
759 echo $ac_n "(cached) $ac_c" 1>&6
761 if test -n "$CXX"; then
762 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
764 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
766 for ac_dir
in $ac_dummy; do
767 test -z "$ac_dir" && ac_dir
=.
768 if test -f $ac_dir/$ac_word; then
769 ac_cv_prog_CXX
="$ac_prog"
776 CXX
="$ac_cv_prog_CXX"
777 if test -n "$CXX"; then
778 echo "$ac_t""$CXX" 1>&6
780 echo "$ac_t""no" 1>&6
783 test -n "$CXX" && break
785 test -n "$CXX" || CXX
="gcc"
788 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
789 echo "configure:790: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
792 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
793 ac_cpp
='$CXXCPP $CPPFLAGS'
794 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
795 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
796 cross_compiling
=$ac_cv_prog_cxx_cross
798 cat > conftest.
$ac_ext << EOF
800 #line 801 "configure"
801 #include "confdefs.h"
803 int main(){return(0);}
805 if { (eval echo configure
:806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
806 ac_cv_prog_cxx_works
=yes
807 # If we can't run a trivial program, we are probably using a cross compiler.
808 if (.
/conftest
; exit) 2>/dev
/null
; then
809 ac_cv_prog_cxx_cross
=no
811 ac_cv_prog_cxx_cross
=yes
814 echo "configure: failed program was:" >&5
815 cat conftest.
$ac_ext >&5
816 ac_cv_prog_cxx_works
=no
820 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
821 ac_cpp
='$CPP $CPPFLAGS'
822 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
823 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
824 cross_compiling
=$ac_cv_prog_cc_cross
826 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
827 if test $ac_cv_prog_cxx_works = no
; then
828 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
830 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
831 echo "configure:832: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
832 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
833 cross_compiling
=$ac_cv_prog_cxx_cross
835 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
836 echo "configure:837: checking whether we are using GNU C++" >&5
837 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
838 echo $ac_n "(cached) $ac_c" 1>&6
840 cat > conftest.C
<<EOF
845 if { ac_try
='${CXX-g++} -E conftest.C'; { (eval echo configure
:846: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
852 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
854 if test $ac_cv_prog_gxx = yes; then
860 ac_test_CXXFLAGS
="${CXXFLAGS+set}"
861 ac_save_CXXFLAGS
="$CXXFLAGS"
863 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
864 echo "configure:865: checking whether ${CXX-g++} accepts -g" >&5
865 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
866 echo $ac_n "(cached) $ac_c" 1>&6
868 echo 'void f(){}' > conftest.cc
869 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
878 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
879 if test "$ac_test_CXXFLAGS" = set; then
880 CXXFLAGS
="$ac_save_CXXFLAGS"
881 elif test $ac_cv_prog_cxx_g = yes; then
882 if test "$GXX" = yes; then
888 if test "$GXX" = yes; then
900 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
901 ac_cpp
='$CXXCPP $CPPFLAGS'
902 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
903 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
904 cross_compiling
=$ac_cv_prog_cxx_cross
906 if test "$cross_compiling" = no
; then
907 echo $ac_n "checking that C++ compiler can compile simple program""... $ac_c" 1>&6
908 echo "configure:909: checking that C++ compiler can compile simple program" >&5
910 if test "$cross_compiling" = yes; then
913 cat > conftest.
$ac_ext <<EOF
914 #line 915 "configure"
915 #include "confdefs.h"
917 extern "C" void exit(int);
919 int main() { return 0; }
921 if { (eval echo configure
:922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
923 echo "$ac_t""yes" 1>&6
925 echo "configure: failed program was:" >&5
926 cat conftest.
$ac_ext >&5
928 echo "$ac_t""no" 1>&6;{ echo "configure: error: a working C++ compiler is required" 1>&2; exit 1; }
933 if test "$cross_compiling" = no
; then
934 echo $ac_n "checking that C++ static constructors and destructors are called""... $ac_c" 1>&6
935 echo "configure:936: checking that C++ static constructors and destructors are called" >&5
937 if test "$cross_compiling" = yes; then
940 cat > conftest.
$ac_ext <<EOF
941 #line 942 "configure"
942 #include "confdefs.h"
944 extern "C" void exit(int);
954 ~A() { if (i == 1) _exit(0); }
957 int main() { return 1; }
960 if { (eval echo configure
:961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
962 echo "$ac_t""yes" 1>&6
964 echo "configure: failed program was:" >&5
965 cat conftest.
$ac_ext >&5
967 echo "$ac_t""no" 1>&6;{ echo "configure: error: a working C++ compiler is required" 1>&2; exit 1; }
972 echo $ac_n "checking that header files support C++""... $ac_c" 1>&6
973 echo "configure:974: checking that header files support C++" >&5
974 cat > conftest.
$ac_ext <<EOF
975 #line 976 "configure"
976 #include "confdefs.h"
982 if { (eval echo configure
:983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
984 echo "$ac_t""yes" 1>&6
986 echo "configure: failed program was:" >&5
987 cat conftest.
$ac_ext >&5
989 echo "$ac_t""no" 1>&6;{ echo "configure: error: header files do not support C++ (if you are using a version of gcc/g++ earlier than 2.5, you should install libg++)" 1>&2; exit 1; }
993 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
994 ac_cpp
='$CPP $CPPFLAGS'
995 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
996 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
997 cross_compiling
=$ac_cv_prog_cc_cross
1000 if test -z "$PSPRINT"; then
1003 # Extract the first word of "$ac_prog", so it can be a program name with args.
1004 set dummy
$ac_prog; ac_word
=$2
1005 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1006 echo "configure:1007: checking for $ac_word" >&5
1007 if eval "test \"`echo '$''{'ac_cv_prog_LPR'+set}'`\" = set"; then
1008 echo $ac_n "(cached) $ac_c" 1>&6
1010 if test -n "$LPR"; then
1011 ac_cv_prog_LPR
="$LPR" # Let the user override the test.
1013 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1015 for ac_dir
in $ac_dummy; do
1016 test -z "$ac_dir" && ac_dir
=.
1017 if test -f $ac_dir/$ac_word; then
1018 ac_cv_prog_LPR
="$ac_prog"
1025 LPR
="$ac_cv_prog_LPR"
1026 if test -n "$LPR"; then
1027 echo "$ac_t""$LPR" 1>&6
1029 echo "$ac_t""no" 1>&6
1032 test -n "$LPR" && break
1037 # Extract the first word of "$ac_prog", so it can be a program name with args.
1038 set dummy
$ac_prog; ac_word
=$2
1039 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1040 echo "configure:1041: checking for $ac_word" >&5
1041 if eval "test \"`echo '$''{'ac_cv_prog_LP'+set}'`\" = set"; then
1042 echo $ac_n "(cached) $ac_c" 1>&6
1044 if test -n "$LP"; then
1045 ac_cv_prog_LP
="$LP" # Let the user override the test.
1047 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1049 for ac_dir
in $ac_dummy; do
1050 test -z "$ac_dir" && ac_dir
=.
1051 if test -f $ac_dir/$ac_word; then
1052 ac_cv_prog_LP
="$ac_prog"
1060 if test -n "$LP"; then
1061 echo "$ac_t""$LP" 1>&6
1063 echo "$ac_t""no" 1>&6
1066 test -n "$LP" && break
1069 if test -n "$LPR" && test -n "$LP"; then
1070 # HP-UX provides an lpr command that emulates lpr using lp,
1071 # but it doesn't have lpq; in this case we want to use lp
1075 # Extract the first word of "$ac_prog", so it can be a program name with args.
1076 set dummy
$ac_prog; ac_word
=$2
1077 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1078 echo "configure:1079: checking for $ac_word" >&5
1079 if eval "test \"`echo '$''{'ac_cv_prog_LPQ'+set}'`\" = set"; then
1080 echo $ac_n "(cached) $ac_c" 1>&6
1082 if test -n "$LPQ"; then
1083 ac_cv_prog_LPQ
="$LPQ" # Let the user override the test.
1085 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1087 for ac_dir
in $ac_dummy; do
1088 test -z "$ac_dir" && ac_dir
=.
1089 if test -f $ac_dir/$ac_word; then
1090 ac_cv_prog_LPQ
="$ac_prog"
1097 LPQ
="$ac_cv_prog_LPQ"
1098 if test -n "$LPQ"; then
1099 echo "$ac_t""$LPQ" 1>&6
1101 echo "$ac_t""no" 1>&6
1104 test -n "$LPQ" && break
1107 test -n "$LPQ" || LPR
=
1109 if test -n "$LPR"; then
1111 elif test -n "$LP"; then
1116 echo $ac_n "checking for command to use for printing PostScript files""... $ac_c" 1>&6
1117 echo "configure:1118: checking for command to use for printing PostScript files" >&5
1118 echo "$ac_t""$PSPRINT" 1>&6
1119 # Figure out DVIPRINT from PSPRINT.
1120 echo $ac_n "checking for command to use for printing dvi files""... $ac_c" 1>&6
1121 echo "configure:1122: checking for command to use for printing dvi files" >&5
1122 if test -n "$PSPRINT" && test -z "$DVIPRINT"; then
1123 if test "X$PSPRINT" = "Xlpr"; then
1130 echo "$ac_t""$DVIPRINT" 1>&6
1131 # Extract the first word of "perl", so it can be a program name with args.
1132 set dummy perl
; ac_word
=$2
1133 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1134 echo "configure:1135: checking for $ac_word" >&5
1135 if eval "test \"`echo '$''{'ac_cv_path_PERLPATH'+set}'`\" = set"; then
1136 echo $ac_n "(cached) $ac_c" 1>&6
1140 ac_cv_path_PERLPATH
="$PERLPATH" # Let the user override the test with a path.
1143 ac_cv_path_PERLPATH
="$PERLPATH" # Let the user override the test with a dos path.
1146 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1148 for ac_dir
in $ac_dummy; do
1149 test -z "$ac_dir" && ac_dir
=.
1150 if test -f $ac_dir/$ac_word; then
1151 ac_cv_path_PERLPATH
="$ac_dir/$ac_word"
1156 test -z "$ac_cv_path_PERLPATH" && ac_cv_path_PERLPATH
="/usr/bin/perl"
1160 PERLPATH
="$ac_cv_path_PERLPATH"
1161 if test -n "$PERLPATH"; then
1162 echo "$ac_t""$PERLPATH" 1>&6
1164 echo "$ac_t""no" 1>&6
1167 for ac_prog
in byacc
'bison -y'
1169 # Extract the first word of "$ac_prog", so it can be a program name with args.
1170 set dummy
$ac_prog; ac_word
=$2
1171 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1172 echo "configure:1173: checking for $ac_word" >&5
1173 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1174 echo $ac_n "(cached) $ac_c" 1>&6
1176 if test -n "$YACC"; then
1177 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
1179 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1181 for ac_dir
in $ac_dummy; do
1182 test -z "$ac_dir" && ac_dir
=.
1183 if test -f $ac_dir/$ac_word; then
1184 ac_cv_prog_YACC
="$ac_prog"
1191 YACC
="$ac_cv_prog_YACC"
1192 if test -n "$YACC"; then
1193 echo "$ac_t""$YACC" 1>&6
1195 echo "$ac_t""no" 1>&6
1198 test -n "$YACC" && break
1200 test -n "$YACC" || YACC
="yacc"
1202 # Extract the first word of "ranlib", so it can be a program name with args.
1203 set dummy ranlib
; ac_word
=$2
1204 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1205 echo "configure:1206: checking for $ac_word" >&5
1206 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1207 echo $ac_n "(cached) $ac_c" 1>&6
1209 if test -n "$RANLIB"; then
1210 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1212 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1214 for ac_dir
in $ac_dummy; do
1215 test -z "$ac_dir" && ac_dir
=.
1216 if test -f $ac_dir/$ac_word; then
1217 ac_cv_prog_RANLIB
="ranlib"
1222 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1225 RANLIB
="$ac_cv_prog_RANLIB"
1226 if test -n "$RANLIB"; then
1227 echo "$ac_t""$RANLIB" 1>&6
1229 echo "$ac_t""no" 1>&6
1233 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
1234 if test -f $ac_dir/install-sh
; then
1236 ac_install_sh
="$ac_aux_dir/install-sh -c"
1238 elif test -f $ac_dir/install.sh
; then
1240 ac_install_sh
="$ac_aux_dir/install.sh -c"
1244 if test -z "$ac_aux_dir"; then
1245 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1247 ac_config_guess
=$ac_aux_dir/config.guess
1248 ac_config_sub
=$ac_aux_dir/config.sub
1249 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
1251 ac_dir
=`cd $ac_aux_dir; pwd`
1252 ac_install_sh
="$ac_dir/install-sh -c"
1254 # Find a good install program. We prefer a C program (faster),
1255 # so one script is as good as another. But avoid the broken or
1256 # incompatible versions:
1257 # SysV /etc/install, /usr/sbin/install
1258 # SunOS /usr/etc/install
1259 # IRIX /sbin/install
1261 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1262 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1263 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1264 # ./install, which can be erroneously created by make from ./install.sh.
1265 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1266 echo "configure:1267: checking for a BSD compatible install" >&5
1267 if test -z "$INSTALL"; then
1268 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1269 echo $ac_n "(cached) $ac_c" 1>&6
1271 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
1272 for ac_dir
in $PATH; do
1273 # Account for people who put trailing slashes in PATH elements.
1275 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1277 # OSF1 and SCO ODT 3.0 have their own names for install.
1278 # Don't use installbsd from OSF since it installs stuff as root
1280 for ac_prog
in ginstall scoinst
install; do
1281 if test -f $ac_dir/$ac_prog; then
1282 if test $ac_prog = install &&
1283 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1284 # AIX install. It has an incompatible calling convention.
1287 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1298 if test "${ac_cv_path_install+set}" = set; then
1299 INSTALL
="$ac_cv_path_install"
1301 # As a last resort, use the slow shell script. We don't cache a
1302 # path for INSTALL within a source directory, because that will
1303 # break other packages using the cache if that directory is
1304 # removed, or if the path is relative.
1305 INSTALL
="$ac_install_sh"
1308 echo "$ac_t""$INSTALL" 1>&6
1310 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1311 # It thinks the first close brace ends the variable substitution.
1312 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1314 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
1316 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1318 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1319 echo "configure:1320: checking whether ln -s works" >&5
1320 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1321 echo $ac_n "(cached) $ac_c" 1>&6
1324 if ln -s X conftestdata
2>/dev
/null
1327 ac_cv_prog_LN_S
="ln -s"
1332 LN_S
="$ac_cv_prog_LN_S"
1333 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1334 echo "$ac_t""yes" 1>&6
1336 echo "$ac_t""no" 1>&6
1339 echo $ac_n "checking for csh hash hack""... $ac_c" 1>&6
1340 echo "configure:1341: checking for csh hash hack" >&5
1341 cat <<EOF >conftest.sh
1344 export PATH || exit 0
1347 chmod +x conftest.sh
1348 if echo .
/conftest.sh |
(csh
>/dev
/null
2>&1) >/dev
/null
2>&1; then
1349 echo "$ac_t""yes" 1>&6; SH_SCRIPT_SED_CMD
='1s/.*/:/'
1351 echo "$ac_t""no" 1>&6; SH_SCRIPT_SED_CMD
=''
1355 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1356 echo "configure:1357: checking how to run the C preprocessor" >&5
1357 # On Suns, sometimes $CPP names a directory.
1358 if test -n "$CPP" && test -d "$CPP"; then
1361 if test -z "$CPP"; then
1362 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1363 echo $ac_n "(cached) $ac_c" 1>&6
1365 # This must be in double quotes, not single quotes, because CPP may get
1366 # substituted into the Makefile and "${CC-cc}" will confuse make.
1368 # On the NeXT, cc -E runs the code through the compiler's parser,
1369 # not just through cpp.
1370 cat > conftest.
$ac_ext <<EOF
1371 #line 1372 "configure"
1372 #include "confdefs.h"
1376 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1377 { (eval echo configure
:1378: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1378 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1379 if test -z "$ac_err"; then
1383 echo "configure: failed program was:" >&5
1384 cat conftest.
$ac_ext >&5
1386 CPP
="${CC-cc} -E -traditional-cpp"
1387 cat > conftest.
$ac_ext <<EOF
1388 #line 1389 "configure"
1389 #include "confdefs.h"
1393 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1394 { (eval echo configure
:1395: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1395 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1396 if test -z "$ac_err"; then
1400 echo "configure: failed program was:" >&5
1401 cat conftest.
$ac_ext >&5
1403 CPP
="${CC-cc} -nologo -E"
1404 cat > conftest.
$ac_ext <<EOF
1405 #line 1406 "configure"
1406 #include "confdefs.h"
1410 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1411 { (eval echo configure
:1412: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1412 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1413 if test -z "$ac_err"; then
1417 echo "configure: failed program was:" >&5
1418 cat conftest.
$ac_ext >&5
1427 ac_cv_prog_CPP
="$CPP"
1429 CPP
="$ac_cv_prog_CPP"
1431 ac_cv_prog_CPP
="$CPP"
1433 echo "$ac_t""$CPP" 1>&6
1435 for ac_hdr
in unistd.h dirent.h limits.h sys
/dir.h stdlib.h
1437 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1438 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1439 echo "configure:1440: checking for $ac_hdr" >&5
1440 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1441 echo $ac_n "(cached) $ac_c" 1>&6
1443 cat > conftest.
$ac_ext <<EOF
1444 #line 1445 "configure"
1445 #include "confdefs.h"
1448 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1449 { (eval echo configure
:1450: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1450 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1451 if test -z "$ac_err"; then
1453 eval "ac_cv_header_$ac_safe=yes"
1456 echo "configure: failed program was:" >&5
1457 cat conftest.
$ac_ext >&5
1459 eval "ac_cv_header_$ac_safe=no"
1463 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1464 echo "$ac_t""yes" 1>&6
1465 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1466 cat >> confdefs.h
<<EOF
1467 #define $ac_tr_hdr 1
1471 echo "$ac_t""no" 1>&6
1475 echo $ac_n "checking for ISC 3.x or 4.x""... $ac_c" 1>&6
1476 echo "configure:1477: checking for ISC 3.x or 4.x" >&5
1477 if grep '[34]\.' /usr
/options
/cb.name
>/dev
/null
2>&1
1479 echo "$ac_t""yes" 1>&6
1480 cat >> confdefs.h
<<\EOF
1485 echo "$ac_t""no" 1>&6
1487 echo $ac_n "checking whether -D_POSIX_SOURCE is necessary""... $ac_c" 1>&6
1488 echo "configure:1489: checking whether -D_POSIX_SOURCE is necessary" >&5
1491 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1492 ac_cpp
='$CXXCPP $CPPFLAGS'
1493 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1494 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1495 cross_compiling
=$ac_cv_prog_cxx_cross
1497 cat > conftest.
$ac_ext <<EOF
1498 #line 1499 "configure"
1499 #include "confdefs.h"
1501 extern "C" { void fileno(int); }
1506 if { (eval echo configure
:1507: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1508 echo "$ac_t""yes" 1>&6;cat >> confdefs.h
<<\EOF
1509 #define _POSIX_SOURCE 1
1513 echo "configure: failed program was:" >&5
1514 cat conftest.
$ac_ext >&5
1516 echo "$ac_t""no" 1>&6
1520 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1521 ac_cpp
='$CPP $CPPFLAGS'
1522 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1523 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1524 cross_compiling
=$ac_cv_prog_cc_cross
1528 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1529 ac_cpp
='$CXXCPP $CPPFLAGS'
1530 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1531 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1532 cross_compiling
=$ac_cv_prog_cxx_cross
1534 echo $ac_n "checking declaration of getopt in stdlib.h""... $ac_c" 1>&6
1535 echo "configure:1536: checking declaration of getopt in stdlib.h" >&5
1536 cat > conftest.
$ac_ext <<EOF
1537 #line 1538 "configure"
1538 #include "confdefs.h"
1540 extern "C" { void getopt(int); }
1545 if { (eval echo configure
:1546: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1547 echo "$ac_t""no" 1>&6
1549 echo "configure: failed program was:" >&5
1550 cat conftest.
$ac_ext >&5
1552 echo "$ac_t""yes" 1>&6;cat >> confdefs.h
<<\EOF
1553 #define STDLIB_H_DECLARES_GETOPT 1
1558 echo $ac_n "checking declaration of getopt in unistd.h""... $ac_c" 1>&6
1559 echo "configure:1560: checking declaration of getopt in unistd.h" >&5
1560 cat > conftest.
$ac_ext <<EOF
1561 #line 1562 "configure"
1562 #include "confdefs.h"
1563 #include <sys/types.h>
1565 extern "C" { void getopt(int); }
1570 if { (eval echo configure
:1571: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1572 echo "$ac_t""no" 1>&6
1574 echo "configure: failed program was:" >&5
1575 cat conftest.
$ac_ext >&5
1577 echo "$ac_t""yes" 1>&6;cat >> confdefs.h
<<\EOF
1578 #define UNISTD_H_DECLARES_GETOPT 1
1584 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1585 ac_cpp
='$CPP $CPPFLAGS'
1586 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1587 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1588 cross_compiling
=$ac_cv_prog_cc_cross
1592 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1593 ac_cpp
='$CXXCPP $CPPFLAGS'
1594 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1595 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1596 cross_compiling
=$ac_cv_prog_cxx_cross
1598 echo $ac_n "checking declaration of putenv""... $ac_c" 1>&6
1599 echo "configure:1600: checking declaration of putenv" >&5
1600 cat > conftest.
$ac_ext <<EOF
1601 #line 1602 "configure"
1602 #include "confdefs.h"
1604 extern "C" { void putenv(int); }
1609 if { (eval echo configure
:1610: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1611 echo "$ac_t""no" 1>&6
1613 echo "configure: failed program was:" >&5
1614 cat conftest.
$ac_ext >&5
1616 echo "$ac_t""yes" 1>&6;cat >> confdefs.h
<<\EOF
1617 #define STDLIB_H_DECLARES_PUTENV 1
1623 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1624 ac_cpp
='$CPP $CPPFLAGS'
1625 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1626 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1627 cross_compiling
=$ac_cv_prog_cc_cross
1631 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1632 ac_cpp
='$CXXCPP $CPPFLAGS'
1633 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1634 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1635 cross_compiling
=$ac_cv_prog_cxx_cross
1637 echo $ac_n "checking declaration of popen""... $ac_c" 1>&6
1638 echo "configure:1639: checking declaration of popen" >&5
1639 cat > conftest.
$ac_ext <<EOF
1640 #line 1641 "configure"
1641 #include "confdefs.h"
1643 extern "C" { void popen(int); }
1648 if { (eval echo configure
:1649: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1650 echo "$ac_t""no" 1>&6
1652 echo "configure: failed program was:" >&5
1653 cat conftest.
$ac_ext >&5
1655 echo "$ac_t""yes" 1>&6;cat >> confdefs.h
<<\EOF
1656 #define STDIO_H_DECLARES_POPEN 1
1662 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1663 ac_cpp
='$CPP $CPPFLAGS'
1664 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1665 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1666 cross_compiling
=$ac_cv_prog_cc_cross
1670 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1671 ac_cpp
='$CXXCPP $CPPFLAGS'
1672 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1673 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1674 cross_compiling
=$ac_cv_prog_cxx_cross
1676 echo $ac_n "checking declaration of pclose""... $ac_c" 1>&6
1677 echo "configure:1678: checking declaration of pclose" >&5
1678 cat > conftest.
$ac_ext <<EOF
1679 #line 1680 "configure"
1680 #include "confdefs.h"
1682 extern "C" { void pclose(int); }
1687 if { (eval echo configure
:1688: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1689 echo "$ac_t""no" 1>&6
1691 echo "configure: failed program was:" >&5
1692 cat conftest.
$ac_ext >&5
1694 echo "$ac_t""yes" 1>&6;cat >> confdefs.h
<<\EOF
1695 #define STDIO_H_DECLARES_PCLOSE 1
1701 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1702 ac_cpp
='$CPP $CPPFLAGS'
1703 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1704 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1705 cross_compiling
=$ac_cv_prog_cc_cross
1709 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1710 ac_cpp
='$CXXCPP $CPPFLAGS'
1711 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1712 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1713 cross_compiling
=$ac_cv_prog_cxx_cross
1715 echo $ac_n "checking for sys_nerr in <errno.h> or <stdio.h>""... $ac_c" 1>&6
1716 echo "configure:1717: checking for sys_nerr in <errno.h> or <stdio.h>" >&5
1717 cat > conftest.
$ac_ext <<EOF
1718 #line 1719 "configure"
1719 #include "confdefs.h"
1723 int k; k = sys_nerr;
1726 if { (eval echo configure
:1727: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1728 echo "$ac_t""yes" 1>&6;cat >> confdefs.h
<<\EOF
1729 #define HAVE_SYS_NERR 1
1733 echo "configure: failed program was:" >&5
1734 cat conftest.
$ac_ext >&5
1736 echo "$ac_t""no" 1>&6
1740 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1741 ac_cpp
='$CPP $CPPFLAGS'
1742 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1743 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1744 cross_compiling
=$ac_cv_prog_cc_cross
1748 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1749 ac_cpp
='$CXXCPP $CPPFLAGS'
1750 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1751 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1752 cross_compiling
=$ac_cv_prog_cxx_cross
1754 echo $ac_n "checking for sys_errlist in <errno.h> or <stdio.h>""... $ac_c" 1>&6
1755 echo "configure:1756: checking for sys_errlist in <errno.h> or <stdio.h>" >&5
1756 cat > conftest.
$ac_ext <<EOF
1757 #line 1758 "configure"
1758 #include "confdefs.h"
1762 int k; k = (int)sys_errlist[0];
1765 if { (eval echo configure
:1766: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1767 echo "$ac_t""yes" 1>&6;cat >> confdefs.h
<<\EOF
1768 #define HAVE_SYS_ERRLIST 1
1772 echo "configure: failed program was:" >&5
1773 cat conftest.
$ac_ext >&5
1775 echo "$ac_t""no" 1>&6
1779 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1780 ac_cpp
='$CPP $CPPFLAGS'
1781 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1782 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1783 cross_compiling
=$ac_cv_prog_cc_cross
1787 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1788 ac_cpp
='$CXXCPP $CPPFLAGS'
1789 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1790 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1791 cross_compiling
=$ac_cv_prog_cxx_cross
1793 echo $ac_n "checking declaration of hypot""... $ac_c" 1>&6
1794 echo "configure:1795: checking declaration of hypot" >&5
1795 cat > conftest.
$ac_ext <<EOF
1796 #line 1797 "configure"
1797 #include "confdefs.h"
1799 extern "C" { double hypot(double,double); }
1804 if { (eval echo configure
:1805: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1806 echo "$ac_t""no" 1>&6
1808 echo "configure: failed program was:" >&5
1809 cat conftest.
$ac_ext >&5
1811 echo "$ac_t""yes" 1>&6;cat >> confdefs.h
<<\EOF
1812 #define MATH_H_DECLARES_HYPOT 1
1818 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1819 ac_cpp
='$CPP $CPPFLAGS'
1820 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1821 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1822 cross_compiling
=$ac_cv_prog_cc_cross
1826 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1827 ac_cpp
='$CXXCPP $CPPFLAGS'
1828 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1829 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1830 cross_compiling
=$ac_cv_prog_cxx_cross
1832 echo $ac_n "checking C++ <osfcn.h>""... $ac_c" 1>&6
1833 echo "configure:1834: checking C++ <osfcn.h>" >&5
1834 cat > conftest.
$ac_ext <<EOF
1835 #line 1836 "configure"
1836 #include "confdefs.h"
1839 read(0, 0, 0); open(0, 0);
1842 if { (eval echo configure
:1843: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1844 echo "$ac_t""yes" 1>&6;cat >> confdefs.h
<<\EOF
1845 #define HAVE_CC_OSFCN_H 1
1849 echo "configure: failed program was:" >&5
1850 cat conftest.
$ac_ext >&5
1852 echo "$ac_t""no" 1>&6
1856 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1857 ac_cpp
='$CPP $CPPFLAGS'
1858 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1859 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1860 cross_compiling
=$ac_cv_prog_cc_cross
1864 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1865 ac_cpp
='$CXXCPP $CPPFLAGS'
1866 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1867 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1868 cross_compiling
=$ac_cv_prog_cxx_cross
1870 echo $ac_n "checking C++ <limits.h>""... $ac_c" 1>&6
1871 echo "configure:1872: checking C++ <limits.h>" >&5
1872 cat > conftest.
$ac_ext <<EOF
1873 #line 1874 "configure"
1874 #include "confdefs.h"
1877 int x = INT_MIN; int y = INT_MAX; int z = UCHAR_MAX;
1880 if { (eval echo configure
:1881: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1882 echo "$ac_t""yes" 1>&6;cat >> confdefs.h
<<\EOF
1883 #define HAVE_CC_LIMITS_H 1
1887 echo "configure: failed program was:" >&5
1888 cat conftest.
$ac_ext >&5
1890 echo "$ac_t""no" 1>&6
1894 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1895 ac_cpp
='$CPP $CPPFLAGS'
1896 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1897 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1898 cross_compiling
=$ac_cv_prog_cc_cross
1902 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1903 ac_cpp
='$CXXCPP $CPPFLAGS'
1904 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1905 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1906 cross_compiling
=$ac_cv_prog_cxx_cross
1908 echo $ac_n "checking for declaration of time_t""... $ac_c" 1>&6
1909 echo "configure:1910: checking for declaration of time_t" >&5
1910 cat > conftest.
$ac_ext <<EOF
1911 #line 1912 "configure"
1912 #include "confdefs.h"
1915 time_t t = time(0); struct tm *p = localtime(&t);
1918 if { (eval echo configure
:1919: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1920 echo "$ac_t""yes" 1>&6
1922 echo "configure: failed program was:" >&5
1923 cat conftest.
$ac_ext >&5
1925 echo "$ac_t""no" 1>&6;cat >> confdefs.h
<<\EOF
1926 #define LONG_FOR_TIME_T 1
1932 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1933 ac_cpp
='$CPP $CPPFLAGS'
1934 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1935 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1936 cross_compiling
=$ac_cv_prog_cc_cross
1938 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
1939 echo "configure:1940: checking return type of signal handlers" >&5
1940 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
1941 echo $ac_n "(cached) $ac_c" 1>&6
1943 cat > conftest.
$ac_ext <<EOF
1944 #line 1945 "configure"
1945 #include "confdefs.h"
1946 #include <sys/types.h>
1952 extern "C" void (*signal (int, void (*)(int)))(int);
1954 void (*signal ()) ();
1961 if { (eval echo configure
:1962: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1963 ac_cv_type_signal
=void
1965 echo "configure: failed program was:" >&5
1966 cat conftest.
$ac_ext >&5
1968 ac_cv_type_signal
=int
1973 echo "$ac_t""$ac_cv_type_signal" 1>&6
1974 cat >> confdefs.h
<<EOF
1975 #define RETSIGTYPE $ac_cv_type_signal
1979 echo $ac_n "checking struct exception""... $ac_c" 1>&6
1980 echo "configure:1981: checking struct exception" >&5
1981 cat > conftest.
$ac_ext <<EOF
1982 #line 1983 "configure"
1983 #include "confdefs.h"
1989 if { (eval echo configure
:1990: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1991 echo "$ac_t""yes" 1>&6;cat >> confdefs.h
<<\EOF
1992 #define HAVE_STRUCT_EXCEPTION 1
1996 echo "configure: failed program was:" >&5
1997 cat conftest.
$ac_ext >&5
1999 echo "$ac_t""no" 1>&6
2002 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
2003 echo "configure:2004: checking for sin in -lm" >&5
2004 ac_lib_var
=`echo m'_'sin | sed 'y%./+-%__p_%'`
2005 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2006 echo $ac_n "(cached) $ac_c" 1>&6
2008 ac_save_LIBS
="$LIBS"
2010 cat > conftest.
$ac_ext <<EOF
2011 #line 2012 "configure"
2012 #include "confdefs.h"
2013 /* Override any gcc2 internal prototype to avoid an error. */
2014 /* We use char because int might match the return type of a gcc2
2015 builtin and then its argument prototype would still apply. */
2022 if { (eval echo configure
:2023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2024 eval "ac_cv_lib_$ac_lib_var=yes"
2026 echo "configure: failed program was:" >&5
2027 cat conftest.
$ac_ext >&5
2029 eval "ac_cv_lib_$ac_lib_var=no"
2032 LIBS
="$ac_save_LIBS"
2035 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2036 echo "$ac_t""yes" 1>&6
2039 echo "$ac_t""no" 1>&6
2044 for ac_hdr
in unistd.h
2046 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2047 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2048 echo "configure:2049: checking for $ac_hdr" >&5
2049 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2050 echo $ac_n "(cached) $ac_c" 1>&6
2052 cat > conftest.
$ac_ext <<EOF
2053 #line 2054 "configure"
2054 #include "confdefs.h"
2057 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2058 { (eval echo configure
:2059: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2059 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2060 if test -z "$ac_err"; then
2062 eval "ac_cv_header_$ac_safe=yes"
2065 echo "configure: failed program was:" >&5
2066 cat conftest.
$ac_ext >&5
2068 eval "ac_cv_header_$ac_safe=no"
2072 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2073 echo "$ac_t""yes" 1>&6
2074 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2075 cat >> confdefs.h
<<EOF
2076 #define $ac_tr_hdr 1
2080 echo "$ac_t""no" 1>&6
2084 for ac_func
in getpagesize
2086 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2087 echo "configure:2088: checking for $ac_func" >&5
2088 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2089 echo $ac_n "(cached) $ac_c" 1>&6
2091 cat > conftest.
$ac_ext <<EOF
2092 #line 2093 "configure"
2093 #include "confdefs.h"
2094 /* System header to define __stub macros and hopefully few prototypes,
2095 which can conflict with char $ac_func(); below. */
2097 /* Override any gcc2 internal prototype to avoid an error. */
2098 /* We use char because int might match the return type of a gcc2
2099 builtin and then its argument prototype would still apply. */
2104 /* The GNU C library defines this for functions which it implements
2105 to always fail with ENOSYS. Some functions are actually named
2106 something starting with __ and the normal name is an alias. */
2107 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2115 if { (eval echo configure
:2116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2117 eval "ac_cv_func_$ac_func=yes"
2119 echo "configure: failed program was:" >&5
2120 cat conftest.
$ac_ext >&5
2122 eval "ac_cv_func_$ac_func=no"
2127 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2128 echo "$ac_t""yes" 1>&6
2129 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2130 cat >> confdefs.h
<<EOF
2131 #define $ac_tr_func 1
2135 echo "$ac_t""no" 1>&6
2139 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2140 echo "configure:2141: checking for working mmap" >&5
2141 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2142 echo $ac_n "(cached) $ac_c" 1>&6
2144 if test "$cross_compiling" = yes; then
2145 ac_cv_func_mmap_fixed_mapped
=no
2147 cat > conftest.
$ac_ext <<EOF
2148 #line 2149 "configure"
2149 #include "confdefs.h"
2151 /* Thanks to Mike Haertel and Jim Avera for this test.
2152 Here is a matrix of mmap possibilities:
2153 mmap private not fixed
2154 mmap private fixed at somewhere currently unmapped
2155 mmap private fixed at somewhere already mapped
2156 mmap shared not fixed
2157 mmap shared fixed at somewhere currently unmapped
2158 mmap shared fixed at somewhere already mapped
2159 For private mappings, we should verify that changes cannot be read()
2160 back from the file, nor mmap's back from the file at a different
2161 address. (There have been systems where private was not correctly
2162 implemented like the infamous i386 svr4.0, and systems where the
2163 VM page cache was not coherent with the filesystem buffer cache
2164 like early versions of FreeBSD and possibly contemporary NetBSD.)
2165 For shared mappings, we should conversely verify that changes get
2166 propogated back to all the places they're supposed to be.
2168 Grep wants private fixed already mapped.
2169 The main things grep needs to know about mmap are:
2170 * does it exist and is it safe to write into the mmap'd area
2171 * how to use it (BSD variants) */
2172 #include <sys/types.h>
2174 #include <sys/mman.h>
2176 /* This mess was copied from the GNU getpagesize.h. */
2177 #ifndef HAVE_GETPAGESIZE
2178 # ifdef HAVE_UNISTD_H
2179 # include <unistd.h>
2182 /* Assume that all systems that can run configure have sys/param.h. */
2183 # ifndef HAVE_SYS_PARAM_H
2184 # define HAVE_SYS_PARAM_H 1
2187 # ifdef _SC_PAGESIZE
2188 # define getpagesize() sysconf(_SC_PAGESIZE)
2189 # else /* no _SC_PAGESIZE */
2190 # ifdef HAVE_SYS_PARAM_H
2191 # include <sys/param.h>
2192 # ifdef EXEC_PAGESIZE
2193 # define getpagesize() EXEC_PAGESIZE
2194 # else /* no EXEC_PAGESIZE */
2196 # define getpagesize() NBPG * CLSIZE
2199 # endif /* no CLSIZE */
2200 # else /* no NBPG */
2202 # define getpagesize() NBPC
2203 # else /* no NBPC */
2205 # define getpagesize() PAGESIZE
2206 # endif /* PAGESIZE */
2207 # endif /* no NBPC */
2208 # endif /* no NBPG */
2209 # endif /* no EXEC_PAGESIZE */
2210 # else /* no HAVE_SYS_PARAM_H */
2211 # define getpagesize() 8192 /* punt totally */
2212 # endif /* no HAVE_SYS_PARAM_H */
2213 # endif /* no _SC_PAGESIZE */
2215 #endif /* no HAVE_GETPAGESIZE */
2218 extern "C" { void *malloc(unsigned); }
2226 char *data, *data2, *data3;
2230 pagesize = getpagesize();
2233 * First, make a file with some known garbage in it.
2235 data = malloc(pagesize);
2238 for (i = 0; i < pagesize; ++i)
2239 *(data + i) = rand();
2241 fd = creat("conftestmmap", 0600);
2244 if (write(fd, data, pagesize) != pagesize)
2249 * Next, try to mmap the file at a fixed address which
2250 * already has something else allocated at it. If we can,
2251 * also make sure that we see the same garbage.
2253 fd = open("conftestmmap", O_RDWR);
2256 data2 = malloc(2 * pagesize);
2259 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2260 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2261 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2263 for (i = 0; i < pagesize; ++i)
2264 if (*(data + i) != *(data2 + i))
2268 * Finally, make sure that changes to the mapped area
2269 * do not percolate back to the file as seen by read().
2270 * (This is a bug on some variants of i386 svr4.0.)
2272 for (i = 0; i < pagesize; ++i)
2273 *(data2 + i) = *(data2 + i) + 1;
2274 data3 = malloc(pagesize);
2277 if (read(fd, data3, pagesize) != pagesize)
2279 for (i = 0; i < pagesize; ++i)
2280 if (*(data + i) != *(data3 + i))
2283 unlink("conftestmmap");
2288 if { (eval echo configure
:2289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2290 ac_cv_func_mmap_fixed_mapped
=yes
2292 echo "configure: failed program was:" >&5
2293 cat conftest.
$ac_ext >&5
2295 ac_cv_func_mmap_fixed_mapped
=no
2302 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2303 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2304 cat >> confdefs.h
<<\EOF
2311 LIBS
="$LIBS -lc $LIBM"
2312 for ac_func
in fmod strtol getcwd strerror putenv
2314 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2315 echo "configure:2316: checking for $ac_func" >&5
2316 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2317 echo $ac_n "(cached) $ac_c" 1>&6
2319 cat > conftest.
$ac_ext <<EOF
2320 #line 2321 "configure"
2321 #include "confdefs.h"
2322 /* System header to define __stub macros and hopefully few prototypes,
2323 which can conflict with char $ac_func(); below. */
2325 /* Override any gcc2 internal prototype to avoid an error. */
2326 /* We use char because int might match the return type of a gcc2
2327 builtin and then its argument prototype would still apply. */
2332 /* The GNU C library defines this for functions which it implements
2333 to always fail with ENOSYS. Some functions are actually named
2334 something starting with __ and the normal name is an alias. */
2335 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2343 if { (eval echo configure
:2344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2345 eval "ac_cv_func_$ac_func=yes"
2347 echo "configure: failed program was:" >&5
2348 cat conftest.
$ac_ext >&5
2350 eval "ac_cv_func_$ac_func=no"
2355 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2356 echo "$ac_t""yes" 1>&6
2357 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2358 cat >> confdefs.h
<<EOF
2359 #define $ac_tr_func 1
2363 echo "$ac_t""no" 1>&6
2364 LIBOBJS
="$LIBOBJS ${ac_func}.${ac_objext}"
2370 for ac_func
in rename mkstemp strcasecmp
2372 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2373 echo "configure:2374: checking for $ac_func" >&5
2374 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2375 echo $ac_n "(cached) $ac_c" 1>&6
2377 cat > conftest.
$ac_ext <<EOF
2378 #line 2379 "configure"
2379 #include "confdefs.h"
2380 /* System header to define __stub macros and hopefully few prototypes,
2381 which can conflict with char $ac_func(); below. */
2383 /* Override any gcc2 internal prototype to avoid an error. */
2384 /* We use char because int might match the return type of a gcc2
2385 builtin and then its argument prototype would still apply. */
2390 /* The GNU C library defines this for functions which it implements
2391 to always fail with ENOSYS. Some functions are actually named
2392 something starting with __ and the normal name is an alias. */
2393 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2401 if { (eval echo configure
:2402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2403 eval "ac_cv_func_$ac_func=yes"
2405 echo "configure: failed program was:" >&5
2406 cat conftest.
$ac_ext >&5
2408 eval "ac_cv_func_$ac_func=no"
2413 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2414 echo "$ac_t""yes" 1>&6
2415 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2416 cat >> confdefs.h
<<EOF
2417 #define $ac_tr_func 1
2421 echo "$ac_t""no" 1>&6
2425 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
2426 echo "configure:2427: checking for sys_siglist declaration in signal.h or unistd.h" >&5
2427 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
2428 echo $ac_n "(cached) $ac_c" 1>&6
2430 cat > conftest.
$ac_ext <<EOF
2431 #line 2432 "configure"
2432 #include "confdefs.h"
2433 #include <sys/types.h>
2435 /* NetBSD declares sys_siglist in unistd.h. */
2436 #ifdef HAVE_UNISTD_H
2440 char *msg = *(sys_siglist + 1);
2443 if { (eval echo configure
:2444: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2445 ac_cv_decl_sys_siglist
=yes
2447 echo "configure: failed program was:" >&5
2448 cat conftest.
$ac_ext >&5
2450 ac_cv_decl_sys_siglist
=no
2455 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
2456 if test $ac_cv_decl_sys_siglist = yes; then
2457 cat >> confdefs.h
<<\EOF
2458 #define SYS_SIGLIST_DECLARED 1
2465 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2466 ac_cpp
='$CXXCPP $CPPFLAGS'
2467 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2468 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2469 cross_compiling
=$ac_cv_prog_cxx_cross
2471 echo $ac_n "checking whether ANSI array delete syntax supported""... $ac_c" 1>&6
2472 echo "configure:2473: checking whether ANSI array delete syntax supported" >&5
2473 cat > conftest.
$ac_ext <<EOF
2474 #line 2475 "configure"
2475 #include "confdefs.h"
2478 char *p = new char[5]; delete [] p;
2481 if { (eval echo configure
:2482: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2483 echo "$ac_t""yes" 1>&6
2485 echo "configure: failed program was:" >&5
2486 cat conftest.
$ac_ext >&5
2488 echo "$ac_t""no" 1>&6;cat >> confdefs.h
<<\EOF
2489 #define ARRAY_DELETE_NEEDS_SIZE 1
2495 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2496 ac_cpp
='$CPP $CPPFLAGS'
2497 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2498 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2499 cross_compiling
=$ac_cv_prog_cc_cross
2503 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2504 ac_cpp
='$CXXCPP $CPPFLAGS'
2505 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2506 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2507 cross_compiling
=$ac_cv_prog_cxx_cross
2509 echo $ac_n "checking traditional preprocessor""... $ac_c" 1>&6
2510 echo "configure:2511: checking traditional preprocessor" >&5
2511 cat > conftest.
$ac_ext <<EOF
2512 #line 2513 "configure"
2513 #include "confdefs.h"
2514 #define name2(a,b) a/**/b
2519 if { (eval echo configure
:2520: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2521 echo "$ac_t""yes" 1>&6;cat >> confdefs.h
<<\EOF
2522 #define TRADITIONAL_CPP 1
2526 echo "configure: failed program was:" >&5
2527 cat conftest.
$ac_ext >&5
2529 echo "$ac_t""no" 1>&6
2533 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2534 ac_cpp
='$CPP $CPPFLAGS'
2535 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2536 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2537 cross_compiling
=$ac_cv_prog_cc_cross
2539 echo $ac_n "checking w_coredump""... $ac_c" 1>&6
2540 echo "configure:2541: checking w_coredump" >&5
2541 if test "$cross_compiling" = yes; then
2542 echo "$ac_t""no" 1>&6
2544 cat > conftest.
$ac_ext <<EOF
2545 #line 2546 "configure"
2546 #include "confdefs.h"
2547 #include <sys/types.h>
2548 #include <sys/wait.h>
2555 ((union wait *)&i)->w_coredump = 1;
2560 if { (eval echo configure
:2561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2562 echo "$ac_t""yes" 1>&6;cat >> confdefs.h
<<\EOF
2563 #define WCOREFLAG 0200
2567 echo "configure: failed program was:" >&5
2568 cat conftest.
$ac_ext >&5
2570 echo "$ac_t""no" 1>&6
2575 echo $ac_n "checking default value for grops -b option""... $ac_c" 1>&6
2576 echo "configure:2577: checking default value for grops -b option" >&5
2577 test -n "${BROKEN_SPOOLER_FLAGS}" || BROKEN_SPOOLER_FLAGS
=7
2578 echo "$ac_t""$BROKEN_SPOOLER_FLAGS" 1>&6
2580 echo $ac_n "checking default paper size""... $ac_c" 1>&6
2581 echo "configure:2582: checking default paper size" >&5
2582 if test -z "$PAGE"; then
2584 if test -r $prefix/share
/groff
/font
/devps
/DESC
; then
2585 descfile
=$prefix/share
/groff
/font
/devps
/DESC
2586 elif test -r $prefix/lib
/groff
/font
/devps
/DESC
; then
2587 descfile
=$prefix/lib
/groff
/font
/devps
/DESC
2589 if test -n "$descfile" \
2590 && grep "^paperlength 841890" $descfile >/dev
/null
2>&1; then
2596 if test -z "$PAGE"; then
2597 dom
=`awk '($1 == "dom" || $1 == "search") { print $2; exit}' \
2598 /etc/resolv.conf 2>/dev/null`
2599 if test -z "$dom"; then
2600 dom
=`(domainname) 2>/dev/null | tr -d '+'`
2601 if test -z "$dom"; then
2602 dom
=`(hostname) 2>/dev/null | grep '\.'`
2605 # If the top-level domain is two letters and it's not `us' or `ca'
2606 # then they probably use A4 paper.
2608 *.
[Uu
][Ss
]|
*.
[Cc
][Aa
]) ;;
2609 *.
[A-Za-z
][A-Za-z
]) PAGE
=A4
;;
2612 test -n "$PAGE" || PAGE
=letter
2613 echo "$ac_t""$PAGE" 1>&6
2615 echo $ac_n "checking for existing troff installation""... $ac_c" 1>&6
2616 echo "configure:2617: checking for existing troff installation" >&5
2617 if test "x`(echo .tm '|n(.g' | tr '|' '\\\\' | troff -z -i 2>&1) 2>/dev/null`" = x0
; then
2618 echo "$ac_t""yes" 1>&6
2621 echo "$ac_t""no" 1>&6
2626 echo $ac_n "checking for prefix of system macro packages""... $ac_c" 1>&6
2627 echo "configure:2628: checking for prefix of system macro packages" >&5
2629 sys_tmac_file_prefix
=
2630 for d
in /usr
/share
/lib
/tmac
/usr
/lib
/tmac
; do
2631 for t
in "" tmac.
; do
2634 if test -z "$sys_tmac_prefix" \
2636 && grep '^\.if' $f >/dev
/null
2>&1; then
2637 sys_tmac_prefix
=$d/$t
2638 sys_tmac_file_prefix
=$t
2643 echo "$ac_t""$sys_tmac_prefix" 1>&6
2646 echo $ac_n "checking which system macro packages should be made available""... $ac_c" 1>&6
2647 echo "configure:2648: checking which system macro packages should be made available" >&5
2648 if test "x$sys_tmac_file_prefix" = "xtmac."; then
2649 for f
in $sys_tmac_prefix*; do
2650 suff
=`echo $f | sed -e "s;$sys_tmac_prefix;;"`
2654 grep "Copyright.*Free Software Foundation" $f >/dev
/null \
2655 || tmac_wrap
="$tmac_wrap $suff" ;;
2658 elif test -n "$sys_tmac_prefix"; then
2659 files
=`echo $sys_tmac_prefix*`
2660 grep "\\.so" $files >conftest.sol
2663 ${sys_tmac_prefix}e
) ;;
2668 if grep "\\.so.*/$b\$" conftest.sol
>/dev
/null \
2669 ||
grep -l "Copyright.*Free Software Foundation" $f >/dev
/null
; then
2672 suff
=`echo $f | sed -e "s;$sys_tmac_prefix;;"`
2675 *) tmac_wrap
="$tmac_wrap $suff" ;;
2682 echo "$ac_t""$tmac_wrap" 1>&6
2686 cat > confcache
<<\EOF
2687 # This file is a shell script that caches the results of configure
2688 # tests run on this system so they can be shared between configure
2689 # scripts and configure runs. It is not useful on other systems.
2690 # If it contains results you don't want to keep, you may remove or edit it.
2692 # By default, configure uses ./config.cache as the cache file,
2693 # creating it if it does not exist already. You can give configure
2694 # the --cache-file=FILE option to use a different cache file; that is
2695 # what configure does when it calls configure scripts in
2696 # subdirectories, so they share the cache.
2697 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2698 # config.status only pays attention to the cache file if you give it the
2699 # --recheck option to rerun configure.
2702 # The following way of writing the cache mishandles newlines in values,
2703 # but we know of no workaround that is simple, portable, and efficient.
2704 # So, don't put newlines in cache variables' values.
2705 # Ultrix sh set writes to stderr and can't be redirected directly,
2706 # and sets the high bit in the cache file unless we assign to the vars.
2708 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2710 # `set' does not quote correctly, so add quotes (double-quote substitution
2711 # turns \\\\ into \\, and sed turns \\ into \).
2713 -e "s/'/'\\\\''/g" \
2714 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2717 # `set' quotes correctly as required by POSIX, so do not add quotes.
2718 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2721 if cmp -s $cache_file confcache
; then
2724 if test -w $cache_file; then
2725 echo "updating cache $cache_file"
2726 cat confcache
> $cache_file
2728 echo "not updating unwritable cache $cache_file"
2733 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2735 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
2736 # Let make expand exec_prefix.
2737 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
2739 # Any assignment to VPATH causes Sun make to only execute
2740 # the first set of double-colon rules, so remove it if not needed.
2741 # If there is a colon in the path, we need to keep it.
2742 if test "x$srcdir" = x.
; then
2743 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
2746 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2748 # Transform confdefs.h into DEFS.
2749 # Protect against shell expansion while executing Makefile rules.
2750 # Protect against Makefile macro expansion.
2751 cat > conftest.defs
<<\EOF
2752 s
%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
2753 s
%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
2758 DEFS=`sed -f conftest.defs confdefs.h |
tr '\012' ' '`
2762 # Without the "./", some shells look in PATH for config.status.
2763 : ${CONFIG_STATUS=./config.status}
2765 echo creating $CONFIG_STATUS
2766 rm -f $CONFIG_STATUS
2767 cat > $CONFIG_STATUS <<EOF
2769 # Generated automatically by configure.
2770 # Run this file to recreate the current configuration.
2771 # This directory was configured as follows,
2772 # on host `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`:
2774 # $0 $ac_configure_args
2776 # Compiler output produced by configure, useful for debugging
2777 # configure, is in ./config.log if it exists.
2779 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2782 case "\$ac_option" in
2783 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2784 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2785 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2786 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2787 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2789 -help | --help | --hel | --he | --h)
2790 echo "\$ac_cs_usage"; exit 0 ;;
2791 *) echo "\$ac_cs_usage"; exit 1 ;;
2795 ac_given_srcdir=$srcdir
2796 ac_given_INSTALL="$INSTALL"
2798 trap 'rm -fr `echo "Makefile" |
sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2800 cat >> $CONFIG_STATUS <<EOF
2802 # Protect against being on the right side of a sed subst in config.status.
2803 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2804 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2808 s%@CFLAGS@%$CFLAGS%g
2809 s%@CPPFLAGS@%$CPPFLAGS%g
2810 s%@CXXFLAGS@%$CXXFLAGS%g
2811 s%@FFLAGS@%$FFLAGS%g
2813 s%@LDFLAGS@%$LDFLAGS%g
2815 s%@exec_prefix@%$exec_prefix%g
2816 s%@prefix@%$prefix%g
2817 s%@program_transform_name@%$program_transform_name%g
2818 s%@bindir@%$bindir%g
2819 s%@sbindir@%$sbindir%g
2820 s%@libexecdir@%$libexecdir%g
2821 s%@datadir@%$datadir%g
2822 s%@sysconfdir@%$sysconfdir%g
2823 s%@sharedstatedir@%$sharedstatedir%g
2824 s%@localstatedir@%$localstatedir%g
2825 s%@libdir@%$libdir%g
2826 s%@includedir@%$includedir%g
2827 s%@oldincludedir@%$oldincludedir%g
2828 s%@infodir@%$infodir%g
2829 s%@mandir@%$mandir%g
2830 s%@top_builddir@%$top_builddir%g
2836 s%@PSPRINT@%$PSPRINT%g
2837 s%@DVIPRINT@%$DVIPRINT%g
2838 s%@PERLPATH@%$PERLPATH%g
2840 s%@RANLIB@%$RANLIB%g
2841 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2842 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2843 s%@INSTALL_DATA@%$INSTALL_DATA%g
2845 s%@SH_SCRIPT_SED_CMD@%$SH_SCRIPT_SED_CMD%g
2848 s%@LIBOBJS@%$LIBOBJS%g
2849 s%@BROKEN_SPOOLER_FLAGS@%$BROKEN_SPOOLER_FLAGS%g
2852 s%@sys_tmac_prefix@%$sys_tmac_prefix%g
2853 s%@tmac_wrap@%$tmac_wrap%g
2858 cat >> $CONFIG_STATUS <<\EOF
2860 # Split the substitutions into bite-sized pieces for seds with
2861 # small command number limits, like on Digital OSF/1 and HP-UX.
2862 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2863 ac_file=1 # Number of current file.
2864 ac_beg=1 # First line for current file.
2865 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2868 while $ac_more_lines; do
2869 if test $ac_beg -gt 1; then
2870 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2872 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2874 if test ! -s conftest.s$ac_file; then
2876 rm -f conftest.s$ac_file
2878 if test -z "$ac_sed_cmds"; then
2879 ac_sed_cmds="sed -f conftest.s$ac_file"
2881 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2883 ac_file=`expr $ac_file + 1`
2885 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2888 if test -z "$ac_sed_cmds"; then
2893 cat >> $CONFIG_STATUS <<EOF
2895 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
2897 cat >> $CONFIG_STATUS <<\EOF
2898 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2899 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2901 *:*) ac_file_in=`echo "$ac_file"|
sed 's%[^:]*:%%'`
2902 ac_file=`echo "$ac_file"|
sed 's%:.*%%'` ;;
2903 *) ac_file_in="${ac_file}.in" ;;
2906 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2908 # Remove last slash and all that follows it. Not all systems have dirname.
2909 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
2910 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2911 # The file is in a subdirectory.
2912 test ! -d "$ac_dir" && mkdir "$ac_dir"
2913 ac_dir_suffix="/`echo $ac_dir|
sed 's%^\./%%'`"
2914 # A "../" for each directory in $ac_dir_suffix.
2915 ac_dots=`echo $ac_dir_suffix|
sed 's%/[^/]*%../%g'`
2917 ac_dir_suffix= ac_dots=
2920 case "$ac_given_srcdir" in
2922 if test -z "$ac_dots"; then top_srcdir=.
2923 else top_srcdir=`echo $ac_dots|
sed 's%/$%%'`; fi ;;
2924 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2926 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2927 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2930 case "$ac_given_INSTALL" in
2931 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2932 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2935 echo creating "$ac_file"
2937 configure_input="Generated automatically from `echo $ac_file_in|
sed 's%.*/%%'` by configure."
2939 *Makefile*) ac_comsub="1i\\
2940 # $configure_input" ;;
2944 ac_file_inputs=`echo $ac_file_in|
sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2946 s%@configure_input@%$configure_input%g
2947 s%@srcdir@%$srcdir%g
2948 s%@top_srcdir@%$top_srcdir%g
2949 s%@INSTALL@%$INSTALL%g
2950 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2955 cat >> $CONFIG_STATUS <<EOF
2958 cat >> $CONFIG_STATUS <<\EOF
2962 chmod +x $CONFIG_STATUS
2963 rm -fr confdefs* $ac_clean_files
2964 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1