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
=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 # Extract the first word of "gcc", so it can be a program name with args.
525 set dummy gcc
; ac_word
=$2
526 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
527 echo "configure:528: checking for $ac_word" >&5
528 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
529 echo $ac_n "(cached) $ac_c" 1>&6
531 if test -n "$CC"; then
532 ac_cv_prog_CC
="$CC" # Let the user override the test.
534 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
536 for ac_dir
in $ac_dummy; do
537 test -z "$ac_dir" && ac_dir
=.
538 if test -f $ac_dir/$ac_word; then
547 if test -n "$CC"; then
548 echo "$ac_t""$CC" 1>&6
550 echo "$ac_t""no" 1>&6
553 if test -z "$CC"; then
554 # Extract the first word of "cc", so it can be a program name with args.
555 set dummy cc
; ac_word
=$2
556 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
557 echo "configure:558: checking for $ac_word" >&5
558 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
559 echo $ac_n "(cached) $ac_c" 1>&6
561 if test -n "$CC"; then
562 ac_cv_prog_CC
="$CC" # Let the user override the test.
564 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
567 for ac_dir
in $ac_dummy; do
568 test -z "$ac_dir" && ac_dir
=.
569 if test -f $ac_dir/$ac_word; then
570 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
579 if test $ac_prog_rejected = yes; then
580 # We found a bogon in the path, so make sure we never use it.
581 set dummy
$ac_cv_prog_CC
583 if test $# -gt 0; then
584 # We chose a different compiler from the bogus one.
585 # However, it has the same basename, so the bogon will be chosen
586 # first if we set CC to just the basename; use the full file name.
588 set dummy
"$ac_dir/$ac_word" "$@"
596 if test -n "$CC"; then
597 echo "$ac_t""$CC" 1>&6
599 echo "$ac_t""no" 1>&6
602 if test -z "$CC"; then
605 # Extract the first word of "cl", so it can be a program name with args.
606 set dummy cl
; ac_word
=$2
607 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
608 echo "configure:609: checking for $ac_word" >&5
609 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
610 echo $ac_n "(cached) $ac_c" 1>&6
612 if test -n "$CC"; then
613 ac_cv_prog_CC
="$CC" # Let the user override the test.
615 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
617 for ac_dir
in $ac_dummy; do
618 test -z "$ac_dir" && ac_dir
=.
619 if test -f $ac_dir/$ac_word; then
628 if test -n "$CC"; then
629 echo "$ac_t""$CC" 1>&6
631 echo "$ac_t""no" 1>&6
636 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
639 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
640 echo "configure:641: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
643 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
644 ac_cpp
='$CPP $CPPFLAGS'
645 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
646 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
647 cross_compiling
=$ac_cv_prog_cc_cross
649 cat > conftest.
$ac_ext << EOF
651 #line 652 "configure"
652 #include "confdefs.h"
656 if { (eval echo configure
:657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
657 ac_cv_prog_cc_works
=yes
658 # If we can't run a trivial program, we are probably using a cross compiler.
659 if (.
/conftest
; exit) 2>/dev
/null
; then
660 ac_cv_prog_cc_cross
=no
662 ac_cv_prog_cc_cross
=yes
665 echo "configure: failed program was:" >&5
666 cat conftest.
$ac_ext >&5
667 ac_cv_prog_cc_works
=no
671 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
672 ac_cpp
='$CPP $CPPFLAGS'
673 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
674 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
675 cross_compiling
=$ac_cv_prog_cc_cross
677 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
678 if test $ac_cv_prog_cc_works = no
; then
679 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
681 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
682 echo "configure:683: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
683 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
684 cross_compiling
=$ac_cv_prog_cc_cross
686 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
687 echo "configure:688: checking whether we are using GNU C" >&5
688 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
689 echo $ac_n "(cached) $ac_c" 1>&6
691 cat > conftest.c
<<EOF
696 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:697: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
703 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
705 if test $ac_cv_prog_gcc = yes; then
711 ac_test_CFLAGS
="${CFLAGS+set}"
712 ac_save_CFLAGS
="$CFLAGS"
714 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
715 echo "configure:716: checking whether ${CC-cc} accepts -g" >&5
716 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
717 echo $ac_n "(cached) $ac_c" 1>&6
719 echo 'void f(){}' > conftest.c
720 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
729 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
730 if test "$ac_test_CFLAGS" = set; then
731 CFLAGS
="$ac_save_CFLAGS"
732 elif test $ac_cv_prog_cc_g = yes; then
733 if test "$GCC" = yes; then
739 if test "$GCC" = yes; then
746 for ac_prog
in $CCC c
++ g
++ gcc CC cxx cc
++ cl
748 # Extract the first word of "$ac_prog", so it can be a program name with args.
749 set dummy
$ac_prog; ac_word
=$2
750 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
751 echo "configure:752: checking for $ac_word" >&5
752 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
753 echo $ac_n "(cached) $ac_c" 1>&6
755 if test -n "$CXX"; then
756 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
758 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
760 for ac_dir
in $ac_dummy; do
761 test -z "$ac_dir" && ac_dir
=.
762 if test -f $ac_dir/$ac_word; then
763 ac_cv_prog_CXX
="$ac_prog"
770 CXX
="$ac_cv_prog_CXX"
771 if test -n "$CXX"; then
772 echo "$ac_t""$CXX" 1>&6
774 echo "$ac_t""no" 1>&6
777 test -n "$CXX" && break
779 test -n "$CXX" || CXX
="gcc"
782 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
783 echo "configure:784: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
786 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
787 ac_cpp
='$CXXCPP $CPPFLAGS'
788 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
789 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
790 cross_compiling
=$ac_cv_prog_cxx_cross
792 cat > conftest.
$ac_ext << EOF
794 #line 795 "configure"
795 #include "confdefs.h"
797 int main(){return(0);}
799 if { (eval echo configure
:800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
800 ac_cv_prog_cxx_works
=yes
801 # If we can't run a trivial program, we are probably using a cross compiler.
802 if (.
/conftest
; exit) 2>/dev
/null
; then
803 ac_cv_prog_cxx_cross
=no
805 ac_cv_prog_cxx_cross
=yes
808 echo "configure: failed program was:" >&5
809 cat conftest.
$ac_ext >&5
810 ac_cv_prog_cxx_works
=no
814 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
815 ac_cpp
='$CPP $CPPFLAGS'
816 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
817 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
818 cross_compiling
=$ac_cv_prog_cc_cross
820 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
821 if test $ac_cv_prog_cxx_works = no
; then
822 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
824 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
825 echo "configure:826: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
826 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
827 cross_compiling
=$ac_cv_prog_cxx_cross
829 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
830 echo "configure:831: checking whether we are using GNU C++" >&5
831 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
832 echo $ac_n "(cached) $ac_c" 1>&6
834 cat > conftest.C
<<EOF
839 if { ac_try
='${CXX-g++} -E conftest.C'; { (eval echo configure
:840: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
846 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
848 if test $ac_cv_prog_gxx = yes; then
854 ac_test_CXXFLAGS
="${CXXFLAGS+set}"
855 ac_save_CXXFLAGS
="$CXXFLAGS"
857 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
858 echo "configure:859: checking whether ${CXX-g++} accepts -g" >&5
859 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
860 echo $ac_n "(cached) $ac_c" 1>&6
862 echo 'void f(){}' > conftest.cc
863 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
872 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
873 if test "$ac_test_CXXFLAGS" = set; then
874 CXXFLAGS
="$ac_save_CXXFLAGS"
875 elif test $ac_cv_prog_cxx_g = yes; then
876 if test "$GXX" = yes; then
882 if test "$GXX" = yes; then
894 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
895 ac_cpp
='$CXXCPP $CPPFLAGS'
896 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
897 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
898 cross_compiling
=$ac_cv_prog_cxx_cross
900 if test "$cross_compiling" = no
; then
901 echo $ac_n "checking that C++ compiler can compile simple program""... $ac_c" 1>&6
902 echo "configure:903: checking that C++ compiler can compile simple program" >&5
904 if test "$cross_compiling" = yes; then
907 cat > conftest.
$ac_ext <<EOF
908 #line 909 "configure"
909 #include "confdefs.h"
911 extern "C" void exit(int);
913 int main() { return 0; }
915 if { (eval echo configure
:916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
917 echo "$ac_t""yes" 1>&6
919 echo "configure: failed program was:" >&5
920 cat conftest.
$ac_ext >&5
922 echo "$ac_t""no" 1>&6;{ echo "configure: error: a working C++ compiler is required" 1>&2; exit 1; }
927 if test "$cross_compiling" = no
; then
928 echo $ac_n "checking that C++ static constructors and destructors are called""... $ac_c" 1>&6
929 echo "configure:930: checking that C++ static constructors and destructors are called" >&5
931 if test "$cross_compiling" = yes; then
934 cat > conftest.
$ac_ext <<EOF
935 #line 936 "configure"
936 #include "confdefs.h"
938 extern "C" void exit(int);
948 ~A() { if (i == 1) _exit(0); }
951 int main() { return 1; }
954 if { (eval echo configure
:955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
956 echo "$ac_t""yes" 1>&6
958 echo "configure: failed program was:" >&5
959 cat conftest.
$ac_ext >&5
961 echo "$ac_t""no" 1>&6;{ echo "configure: error: a working C++ compiler is required" 1>&2; exit 1; }
966 echo $ac_n "checking that header files support C++""... $ac_c" 1>&6
967 echo "configure:968: checking that header files support C++" >&5
968 cat > conftest.
$ac_ext <<EOF
969 #line 970 "configure"
970 #include "confdefs.h"
976 if { (eval echo configure
:977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
978 echo "$ac_t""yes" 1>&6
980 echo "configure: failed program was:" >&5
981 cat conftest.
$ac_ext >&5
983 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; }
987 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
988 ac_cpp
='$CPP $CPPFLAGS'
989 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
990 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
991 cross_compiling
=$ac_cv_prog_cc_cross
994 if test -z "$PSPRINT"; then
997 # Extract the first word of "$ac_prog", so it can be a program name with args.
998 set dummy
$ac_prog; ac_word
=$2
999 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1000 echo "configure:1001: checking for $ac_word" >&5
1001 if eval "test \"`echo '$''{'ac_cv_prog_LPR'+set}'`\" = set"; then
1002 echo $ac_n "(cached) $ac_c" 1>&6
1004 if test -n "$LPR"; then
1005 ac_cv_prog_LPR
="$LPR" # Let the user override the test.
1007 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1009 for ac_dir
in $ac_dummy; do
1010 test -z "$ac_dir" && ac_dir
=.
1011 if test -f $ac_dir/$ac_word; then
1012 ac_cv_prog_LPR
="$ac_prog"
1019 LPR
="$ac_cv_prog_LPR"
1020 if test -n "$LPR"; then
1021 echo "$ac_t""$LPR" 1>&6
1023 echo "$ac_t""no" 1>&6
1026 test -n "$LPR" && break
1031 # Extract the first word of "$ac_prog", so it can be a program name with args.
1032 set dummy
$ac_prog; ac_word
=$2
1033 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1034 echo "configure:1035: checking for $ac_word" >&5
1035 if eval "test \"`echo '$''{'ac_cv_prog_LP'+set}'`\" = set"; then
1036 echo $ac_n "(cached) $ac_c" 1>&6
1038 if test -n "$LP"; then
1039 ac_cv_prog_LP
="$LP" # Let the user override the test.
1041 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1043 for ac_dir
in $ac_dummy; do
1044 test -z "$ac_dir" && ac_dir
=.
1045 if test -f $ac_dir/$ac_word; then
1046 ac_cv_prog_LP
="$ac_prog"
1054 if test -n "$LP"; then
1055 echo "$ac_t""$LP" 1>&6
1057 echo "$ac_t""no" 1>&6
1060 test -n "$LP" && break
1063 if test -n "$LPR" && test -n "$LP"; then
1064 # HP-UX provides an lpr command that emulates lpr using lp,
1065 # but it doesn't have lpq; in this case we want to use lp
1069 # Extract the first word of "$ac_prog", so it can be a program name with args.
1070 set dummy
$ac_prog; ac_word
=$2
1071 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1072 echo "configure:1073: checking for $ac_word" >&5
1073 if eval "test \"`echo '$''{'ac_cv_prog_LPQ'+set}'`\" = set"; then
1074 echo $ac_n "(cached) $ac_c" 1>&6
1076 if test -n "$LPQ"; then
1077 ac_cv_prog_LPQ
="$LPQ" # Let the user override the test.
1079 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1081 for ac_dir
in $ac_dummy; do
1082 test -z "$ac_dir" && ac_dir
=.
1083 if test -f $ac_dir/$ac_word; then
1084 ac_cv_prog_LPQ
="$ac_prog"
1091 LPQ
="$ac_cv_prog_LPQ"
1092 if test -n "$LPQ"; then
1093 echo "$ac_t""$LPQ" 1>&6
1095 echo "$ac_t""no" 1>&6
1098 test -n "$LPQ" && break
1101 test -n "$LPQ" || LPR
=
1103 if test -n "$LPR"; then
1105 elif test -n "$LP"; then
1110 echo $ac_n "checking for command to use for printing PostScript files""... $ac_c" 1>&6
1111 echo "configure:1112: checking for command to use for printing PostScript files" >&5
1112 echo "$ac_t""$PSPRINT" 1>&6
1113 # Figure out DVIPRINT from PSPRINT.
1114 echo $ac_n "checking for command to use for printing dvi files""... $ac_c" 1>&6
1115 echo "configure:1116: checking for command to use for printing dvi files" >&5
1116 if test -n "$PSPRINT" && test -z "$DVIPRINT"; then
1117 if test "X$PSPRINT" = "Xlpr"; then
1124 echo "$ac_t""$DVIPRINT" 1>&6
1125 # Extract the first word of "perl", so it can be a program name with args.
1126 set dummy perl
; ac_word
=$2
1127 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1128 echo "configure:1129: checking for $ac_word" >&5
1129 if eval "test \"`echo '$''{'ac_cv_path_PERLPATH'+set}'`\" = set"; then
1130 echo $ac_n "(cached) $ac_c" 1>&6
1134 ac_cv_path_PERLPATH
="$PERLPATH" # Let the user override the test with a path.
1137 ac_cv_path_PERLPATH
="$PERLPATH" # Let the user override the test with a dos path.
1140 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1142 for ac_dir
in $ac_dummy; do
1143 test -z "$ac_dir" && ac_dir
=.
1144 if test -f $ac_dir/$ac_word; then
1145 ac_cv_path_PERLPATH
="$ac_dir/$ac_word"
1150 test -z "$ac_cv_path_PERLPATH" && ac_cv_path_PERLPATH
="/usr/bin/perl"
1154 PERLPATH
="$ac_cv_path_PERLPATH"
1155 if test -n "$PERLPATH"; then
1156 echo "$ac_t""$PERLPATH" 1>&6
1158 echo "$ac_t""no" 1>&6
1161 for ac_prog
in byacc
'bison -y'
1163 # Extract the first word of "$ac_prog", so it can be a program name with args.
1164 set dummy
$ac_prog; ac_word
=$2
1165 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1166 echo "configure:1167: checking for $ac_word" >&5
1167 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1168 echo $ac_n "(cached) $ac_c" 1>&6
1170 if test -n "$YACC"; then
1171 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
1173 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1175 for ac_dir
in $ac_dummy; do
1176 test -z "$ac_dir" && ac_dir
=.
1177 if test -f $ac_dir/$ac_word; then
1178 ac_cv_prog_YACC
="$ac_prog"
1185 YACC
="$ac_cv_prog_YACC"
1186 if test -n "$YACC"; then
1187 echo "$ac_t""$YACC" 1>&6
1189 echo "$ac_t""no" 1>&6
1192 test -n "$YACC" && break
1194 test -n "$YACC" || YACC
="yacc"
1196 # Extract the first word of "ranlib", so it can be a program name with args.
1197 set dummy ranlib
; ac_word
=$2
1198 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1199 echo "configure:1200: checking for $ac_word" >&5
1200 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1201 echo $ac_n "(cached) $ac_c" 1>&6
1203 if test -n "$RANLIB"; then
1204 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1206 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1208 for ac_dir
in $ac_dummy; do
1209 test -z "$ac_dir" && ac_dir
=.
1210 if test -f $ac_dir/$ac_word; then
1211 ac_cv_prog_RANLIB
="ranlib"
1216 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1219 RANLIB
="$ac_cv_prog_RANLIB"
1220 if test -n "$RANLIB"; then
1221 echo "$ac_t""$RANLIB" 1>&6
1223 echo "$ac_t""no" 1>&6
1227 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
1228 if test -f $ac_dir/install-sh
; then
1230 ac_install_sh
="$ac_aux_dir/install-sh -c"
1232 elif test -f $ac_dir/install.sh
; then
1234 ac_install_sh
="$ac_aux_dir/install.sh -c"
1238 if test -z "$ac_aux_dir"; then
1239 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1241 ac_config_guess
=$ac_aux_dir/config.guess
1242 ac_config_sub
=$ac_aux_dir/config.sub
1243 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
1245 ac_dir
=`cd $ac_aux_dir; pwd`
1246 ac_install_sh
="$ac_dir/install-sh -c"
1248 # Find a good install program. We prefer a C program (faster),
1249 # so one script is as good as another. But avoid the broken or
1250 # incompatible versions:
1251 # SysV /etc/install, /usr/sbin/install
1252 # SunOS /usr/etc/install
1253 # IRIX /sbin/install
1255 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1256 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1257 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1258 # ./install, which can be erroneously created by make from ./install.sh.
1259 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1260 echo "configure:1261: checking for a BSD compatible install" >&5
1261 if test -z "$INSTALL"; then
1262 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1263 echo $ac_n "(cached) $ac_c" 1>&6
1265 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
1266 for ac_dir
in $PATH; do
1267 # Account for people who put trailing slashes in PATH elements.
1269 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1271 # OSF1 and SCO ODT 3.0 have their own names for install.
1272 # Don't use installbsd from OSF since it installs stuff as root
1274 for ac_prog
in ginstall scoinst
install; do
1275 if test -f $ac_dir/$ac_prog; then
1276 if test $ac_prog = install &&
1277 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1278 # AIX install. It has an incompatible calling convention.
1281 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1292 if test "${ac_cv_path_install+set}" = set; then
1293 INSTALL
="$ac_cv_path_install"
1295 # As a last resort, use the slow shell script. We don't cache a
1296 # path for INSTALL within a source directory, because that will
1297 # break other packages using the cache if that directory is
1298 # removed, or if the path is relative.
1299 INSTALL
="$ac_install_sh"
1302 echo "$ac_t""$INSTALL" 1>&6
1304 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1305 # It thinks the first close brace ends the variable substitution.
1306 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1308 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
1310 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1312 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1313 echo "configure:1314: checking whether ln -s works" >&5
1314 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1315 echo $ac_n "(cached) $ac_c" 1>&6
1318 if ln -s X conftestdata
2>/dev
/null
1321 ac_cv_prog_LN_S
="ln -s"
1326 LN_S
="$ac_cv_prog_LN_S"
1327 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1328 echo "$ac_t""yes" 1>&6
1330 echo "$ac_t""no" 1>&6
1333 echo $ac_n "checking for csh hash hack""... $ac_c" 1>&6
1334 echo "configure:1335: checking for csh hash hack" >&5
1335 cat <<EOF >conftest.sh
1338 export PATH || exit 0
1341 chmod +x conftest.sh
1342 if echo .
/conftest.sh |
(csh
>/dev
/null
2>&1) >/dev
/null
2>&1; then
1343 echo "$ac_t""yes" 1>&6; SH_SCRIPT_SED_CMD
='1s/.*/:/'
1345 echo "$ac_t""no" 1>&6; SH_SCRIPT_SED_CMD
=''
1349 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1350 echo "configure:1351: checking how to run the C preprocessor" >&5
1351 # On Suns, sometimes $CPP names a directory.
1352 if test -n "$CPP" && test -d "$CPP"; then
1355 if test -z "$CPP"; then
1356 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1357 echo $ac_n "(cached) $ac_c" 1>&6
1359 # This must be in double quotes, not single quotes, because CPP may get
1360 # substituted into the Makefile and "${CC-cc}" will confuse make.
1362 # On the NeXT, cc -E runs the code through the compiler's parser,
1363 # not just through cpp.
1364 cat > conftest.
$ac_ext <<EOF
1365 #line 1366 "configure"
1366 #include "confdefs.h"
1370 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1371 { (eval echo configure
:1372: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1372 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1373 if test -z "$ac_err"; then
1377 echo "configure: failed program was:" >&5
1378 cat conftest.
$ac_ext >&5
1380 CPP
="${CC-cc} -E -traditional-cpp"
1381 cat > conftest.
$ac_ext <<EOF
1382 #line 1383 "configure"
1383 #include "confdefs.h"
1387 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1388 { (eval echo configure
:1389: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1389 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1390 if test -z "$ac_err"; then
1394 echo "configure: failed program was:" >&5
1395 cat conftest.
$ac_ext >&5
1397 CPP
="${CC-cc} -nologo -E"
1398 cat > conftest.
$ac_ext <<EOF
1399 #line 1400 "configure"
1400 #include "confdefs.h"
1404 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1405 { (eval echo configure
:1406: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1406 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1407 if test -z "$ac_err"; then
1411 echo "configure: failed program was:" >&5
1412 cat conftest.
$ac_ext >&5
1421 ac_cv_prog_CPP
="$CPP"
1423 CPP
="$ac_cv_prog_CPP"
1425 ac_cv_prog_CPP
="$CPP"
1427 echo "$ac_t""$CPP" 1>&6
1429 for ac_hdr
in unistd.h dirent.h limits.h sys
/dir.h stdlib.h
1431 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1432 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1433 echo "configure:1434: checking for $ac_hdr" >&5
1434 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1435 echo $ac_n "(cached) $ac_c" 1>&6
1437 cat > conftest.
$ac_ext <<EOF
1438 #line 1439 "configure"
1439 #include "confdefs.h"
1442 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1443 { (eval echo configure
:1444: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1444 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1445 if test -z "$ac_err"; then
1447 eval "ac_cv_header_$ac_safe=yes"
1450 echo "configure: failed program was:" >&5
1451 cat conftest.
$ac_ext >&5
1453 eval "ac_cv_header_$ac_safe=no"
1457 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1458 echo "$ac_t""yes" 1>&6
1459 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1460 cat >> confdefs.h
<<EOF
1461 #define $ac_tr_hdr 1
1465 echo "$ac_t""no" 1>&6
1469 echo $ac_n "checking for ISC 3.x or 4.x""... $ac_c" 1>&6
1470 echo "configure:1471: checking for ISC 3.x or 4.x" >&5
1471 if grep '[34]\.' /usr
/options
/cb.name
>/dev
/null
2>&1
1473 echo "$ac_t""yes" 1>&6
1474 cat >> confdefs.h
<<\EOF
1479 echo "$ac_t""no" 1>&6
1481 echo $ac_n "checking whether -D_POSIX_SOURCE is necessary""... $ac_c" 1>&6
1482 echo "configure:1483: checking whether -D_POSIX_SOURCE is necessary" >&5
1485 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1486 ac_cpp
='$CXXCPP $CPPFLAGS'
1487 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1488 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1489 cross_compiling
=$ac_cv_prog_cxx_cross
1491 cat > conftest.
$ac_ext <<EOF
1492 #line 1493 "configure"
1493 #include "confdefs.h"
1495 extern "C" { void fileno(int); }
1500 if { (eval echo configure
:1501: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1502 echo "$ac_t""yes" 1>&6;cat >> confdefs.h
<<\EOF
1503 #define _POSIX_SOURCE 1
1507 echo "configure: failed program was:" >&5
1508 cat conftest.
$ac_ext >&5
1510 echo "$ac_t""no" 1>&6
1514 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1515 ac_cpp
='$CPP $CPPFLAGS'
1516 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1517 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1518 cross_compiling
=$ac_cv_prog_cc_cross
1522 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1523 ac_cpp
='$CXXCPP $CPPFLAGS'
1524 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1525 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1526 cross_compiling
=$ac_cv_prog_cxx_cross
1528 echo $ac_n "checking declaration of getopt in stdlib.h""... $ac_c" 1>&6
1529 echo "configure:1530: checking declaration of getopt in stdlib.h" >&5
1530 cat > conftest.
$ac_ext <<EOF
1531 #line 1532 "configure"
1532 #include "confdefs.h"
1534 extern "C" { void getopt(int); }
1539 if { (eval echo configure
:1540: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1541 echo "$ac_t""no" 1>&6
1543 echo "configure: failed program was:" >&5
1544 cat conftest.
$ac_ext >&5
1546 echo "$ac_t""yes" 1>&6;cat >> confdefs.h
<<\EOF
1547 #define STDLIB_H_DECLARES_GETOPT 1
1552 echo $ac_n "checking declaration of getopt in unistd.h""... $ac_c" 1>&6
1553 echo "configure:1554: checking declaration of getopt in unistd.h" >&5
1554 cat > conftest.
$ac_ext <<EOF
1555 #line 1556 "configure"
1556 #include "confdefs.h"
1557 #include <sys/types.h>
1559 extern "C" { void getopt(int); }
1564 if { (eval echo configure
:1565: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1566 echo "$ac_t""no" 1>&6
1568 echo "configure: failed program was:" >&5
1569 cat conftest.
$ac_ext >&5
1571 echo "$ac_t""yes" 1>&6;cat >> confdefs.h
<<\EOF
1572 #define UNISTD_H_DECLARES_GETOPT 1
1578 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1579 ac_cpp
='$CPP $CPPFLAGS'
1580 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1581 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1582 cross_compiling
=$ac_cv_prog_cc_cross
1586 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1587 ac_cpp
='$CXXCPP $CPPFLAGS'
1588 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1589 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1590 cross_compiling
=$ac_cv_prog_cxx_cross
1592 echo $ac_n "checking declaration of putenv""... $ac_c" 1>&6
1593 echo "configure:1594: checking declaration of putenv" >&5
1594 cat > conftest.
$ac_ext <<EOF
1595 #line 1596 "configure"
1596 #include "confdefs.h"
1598 extern "C" { void putenv(int); }
1603 if { (eval echo configure
:1604: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1605 echo "$ac_t""no" 1>&6
1607 echo "configure: failed program was:" >&5
1608 cat conftest.
$ac_ext >&5
1610 echo "$ac_t""yes" 1>&6;cat >> confdefs.h
<<\EOF
1611 #define STDLIB_H_DECLARES_PUTENV 1
1617 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1618 ac_cpp
='$CPP $CPPFLAGS'
1619 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1620 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1621 cross_compiling
=$ac_cv_prog_cc_cross
1625 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1626 ac_cpp
='$CXXCPP $CPPFLAGS'
1627 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1628 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1629 cross_compiling
=$ac_cv_prog_cxx_cross
1631 echo $ac_n "checking declaration of popen""... $ac_c" 1>&6
1632 echo "configure:1633: checking declaration of popen" >&5
1633 cat > conftest.
$ac_ext <<EOF
1634 #line 1635 "configure"
1635 #include "confdefs.h"
1637 extern "C" { void popen(int); }
1642 if { (eval echo configure
:1643: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1644 echo "$ac_t""no" 1>&6
1646 echo "configure: failed program was:" >&5
1647 cat conftest.
$ac_ext >&5
1649 echo "$ac_t""yes" 1>&6;cat >> confdefs.h
<<\EOF
1650 #define STDIO_H_DECLARES_POPEN 1
1656 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1657 ac_cpp
='$CPP $CPPFLAGS'
1658 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1659 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1660 cross_compiling
=$ac_cv_prog_cc_cross
1664 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1665 ac_cpp
='$CXXCPP $CPPFLAGS'
1666 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1667 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1668 cross_compiling
=$ac_cv_prog_cxx_cross
1670 echo $ac_n "checking declaration of pclose""... $ac_c" 1>&6
1671 echo "configure:1672: checking declaration of pclose" >&5
1672 cat > conftest.
$ac_ext <<EOF
1673 #line 1674 "configure"
1674 #include "confdefs.h"
1676 extern "C" { void pclose(int); }
1681 if { (eval echo configure
:1682: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1683 echo "$ac_t""no" 1>&6
1685 echo "configure: failed program was:" >&5
1686 cat conftest.
$ac_ext >&5
1688 echo "$ac_t""yes" 1>&6;cat >> confdefs.h
<<\EOF
1689 #define STDIO_H_DECLARES_PCLOSE 1
1695 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1696 ac_cpp
='$CPP $CPPFLAGS'
1697 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1698 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1699 cross_compiling
=$ac_cv_prog_cc_cross
1703 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1704 ac_cpp
='$CXXCPP $CPPFLAGS'
1705 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1706 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1707 cross_compiling
=$ac_cv_prog_cxx_cross
1709 echo $ac_n "checking for sys_nerr in <errno.h> or <stdio.h>""... $ac_c" 1>&6
1710 echo "configure:1711: checking for sys_nerr in <errno.h> or <stdio.h>" >&5
1711 cat > conftest.
$ac_ext <<EOF
1712 #line 1713 "configure"
1713 #include "confdefs.h"
1717 int k; k = sys_nerr;
1720 if { (eval echo configure
:1721: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1722 echo "$ac_t""yes" 1>&6;cat >> confdefs.h
<<\EOF
1723 #define HAVE_SYS_NERR 1
1727 echo "configure: failed program was:" >&5
1728 cat conftest.
$ac_ext >&5
1730 echo "$ac_t""no" 1>&6
1734 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1735 ac_cpp
='$CPP $CPPFLAGS'
1736 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1737 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1738 cross_compiling
=$ac_cv_prog_cc_cross
1742 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1743 ac_cpp
='$CXXCPP $CPPFLAGS'
1744 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1745 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1746 cross_compiling
=$ac_cv_prog_cxx_cross
1748 echo $ac_n "checking for sys_errlist in <errno.h> or <stdio.h>""... $ac_c" 1>&6
1749 echo "configure:1750: checking for sys_errlist in <errno.h> or <stdio.h>" >&5
1750 cat > conftest.
$ac_ext <<EOF
1751 #line 1752 "configure"
1752 #include "confdefs.h"
1756 int k; k = (int)sys_errlist[0];
1759 if { (eval echo configure
:1760: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1761 echo "$ac_t""yes" 1>&6;cat >> confdefs.h
<<\EOF
1762 #define HAVE_SYS_ERRLIST 1
1766 echo "configure: failed program was:" >&5
1767 cat conftest.
$ac_ext >&5
1769 echo "$ac_t""no" 1>&6
1773 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1774 ac_cpp
='$CPP $CPPFLAGS'
1775 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1776 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1777 cross_compiling
=$ac_cv_prog_cc_cross
1781 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1782 ac_cpp
='$CXXCPP $CPPFLAGS'
1783 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1784 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1785 cross_compiling
=$ac_cv_prog_cxx_cross
1787 echo $ac_n "checking declaration of hypot""... $ac_c" 1>&6
1788 echo "configure:1789: checking declaration of hypot" >&5
1789 cat > conftest.
$ac_ext <<EOF
1790 #line 1791 "configure"
1791 #include "confdefs.h"
1793 extern "C" { double hypot(double,double); }
1798 if { (eval echo configure
:1799: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1800 echo "$ac_t""no" 1>&6
1802 echo "configure: failed program was:" >&5
1803 cat conftest.
$ac_ext >&5
1805 echo "$ac_t""yes" 1>&6;cat >> confdefs.h
<<\EOF
1806 #define MATH_H_DECLARES_HYPOT 1
1812 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1813 ac_cpp
='$CPP $CPPFLAGS'
1814 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1815 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1816 cross_compiling
=$ac_cv_prog_cc_cross
1820 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1821 ac_cpp
='$CXXCPP $CPPFLAGS'
1822 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1823 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1824 cross_compiling
=$ac_cv_prog_cxx_cross
1826 echo $ac_n "checking C++ <osfcn.h>""... $ac_c" 1>&6
1827 echo "configure:1828: checking C++ <osfcn.h>" >&5
1828 cat > conftest.
$ac_ext <<EOF
1829 #line 1830 "configure"
1830 #include "confdefs.h"
1833 read(0, 0, 0); open(0, 0);
1836 if { (eval echo configure
:1837: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1838 echo "$ac_t""yes" 1>&6;cat >> confdefs.h
<<\EOF
1839 #define HAVE_CC_OSFCN_H 1
1843 echo "configure: failed program was:" >&5
1844 cat conftest.
$ac_ext >&5
1846 echo "$ac_t""no" 1>&6
1850 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1851 ac_cpp
='$CPP $CPPFLAGS'
1852 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1853 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1854 cross_compiling
=$ac_cv_prog_cc_cross
1858 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1859 ac_cpp
='$CXXCPP $CPPFLAGS'
1860 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1861 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1862 cross_compiling
=$ac_cv_prog_cxx_cross
1864 echo $ac_n "checking C++ <limits.h>""... $ac_c" 1>&6
1865 echo "configure:1866: checking C++ <limits.h>" >&5
1866 cat > conftest.
$ac_ext <<EOF
1867 #line 1868 "configure"
1868 #include "confdefs.h"
1871 int x = INT_MIN; int y = INT_MAX; int z = UCHAR_MAX;
1874 if { (eval echo configure
:1875: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1876 echo "$ac_t""yes" 1>&6;cat >> confdefs.h
<<\EOF
1877 #define HAVE_CC_LIMITS_H 1
1881 echo "configure: failed program was:" >&5
1882 cat conftest.
$ac_ext >&5
1884 echo "$ac_t""no" 1>&6
1888 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1889 ac_cpp
='$CPP $CPPFLAGS'
1890 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1891 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1892 cross_compiling
=$ac_cv_prog_cc_cross
1896 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1897 ac_cpp
='$CXXCPP $CPPFLAGS'
1898 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1899 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1900 cross_compiling
=$ac_cv_prog_cxx_cross
1902 echo $ac_n "checking for declaration of time_t""... $ac_c" 1>&6
1903 echo "configure:1904: checking for declaration of time_t" >&5
1904 cat > conftest.
$ac_ext <<EOF
1905 #line 1906 "configure"
1906 #include "confdefs.h"
1909 time_t t = time(0); struct tm *p = localtime(&t);
1912 if { (eval echo configure
:1913: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1914 echo "$ac_t""yes" 1>&6
1916 echo "configure: failed program was:" >&5
1917 cat conftest.
$ac_ext >&5
1919 echo "$ac_t""no" 1>&6;cat >> confdefs.h
<<\EOF
1920 #define LONG_FOR_TIME_T 1
1926 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1927 ac_cpp
='$CPP $CPPFLAGS'
1928 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1929 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1930 cross_compiling
=$ac_cv_prog_cc_cross
1932 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
1933 echo "configure:1934: checking return type of signal handlers" >&5
1934 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
1935 echo $ac_n "(cached) $ac_c" 1>&6
1937 cat > conftest.
$ac_ext <<EOF
1938 #line 1939 "configure"
1939 #include "confdefs.h"
1940 #include <sys/types.h>
1946 extern "C" void (*signal (int, void (*)(int)))(int);
1948 void (*signal ()) ();
1955 if { (eval echo configure
:1956: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1957 ac_cv_type_signal
=void
1959 echo "configure: failed program was:" >&5
1960 cat conftest.
$ac_ext >&5
1962 ac_cv_type_signal
=int
1967 echo "$ac_t""$ac_cv_type_signal" 1>&6
1968 cat >> confdefs.h
<<EOF
1969 #define RETSIGTYPE $ac_cv_type_signal
1973 echo $ac_n "checking struct exception""... $ac_c" 1>&6
1974 echo "configure:1975: checking struct exception" >&5
1975 cat > conftest.
$ac_ext <<EOF
1976 #line 1977 "configure"
1977 #include "confdefs.h"
1983 if { (eval echo configure
:1984: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1985 echo "$ac_t""yes" 1>&6;cat >> confdefs.h
<<\EOF
1986 #define HAVE_STRUCT_EXCEPTION 1
1990 echo "configure: failed program was:" >&5
1991 cat conftest.
$ac_ext >&5
1993 echo "$ac_t""no" 1>&6
1996 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
1997 echo "configure:1998: checking for sin in -lm" >&5
1998 ac_lib_var
=`echo m'_'sin | sed 'y%./+-%__p_%'`
1999 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2000 echo $ac_n "(cached) $ac_c" 1>&6
2002 ac_save_LIBS
="$LIBS"
2004 cat > conftest.
$ac_ext <<EOF
2005 #line 2006 "configure"
2006 #include "confdefs.h"
2007 /* Override any gcc2 internal prototype to avoid an error. */
2008 /* We use char because int might match the return type of a gcc2
2009 builtin and then its argument prototype would still apply. */
2016 if { (eval echo configure
:2017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2018 eval "ac_cv_lib_$ac_lib_var=yes"
2020 echo "configure: failed program was:" >&5
2021 cat conftest.
$ac_ext >&5
2023 eval "ac_cv_lib_$ac_lib_var=no"
2026 LIBS
="$ac_save_LIBS"
2029 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2030 echo "$ac_t""yes" 1>&6
2033 echo "$ac_t""no" 1>&6
2038 for ac_hdr
in unistd.h
2040 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2041 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2042 echo "configure:2043: checking for $ac_hdr" >&5
2043 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2044 echo $ac_n "(cached) $ac_c" 1>&6
2046 cat > conftest.
$ac_ext <<EOF
2047 #line 2048 "configure"
2048 #include "confdefs.h"
2051 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2052 { (eval echo configure
:2053: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2053 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2054 if test -z "$ac_err"; then
2056 eval "ac_cv_header_$ac_safe=yes"
2059 echo "configure: failed program was:" >&5
2060 cat conftest.
$ac_ext >&5
2062 eval "ac_cv_header_$ac_safe=no"
2066 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2067 echo "$ac_t""yes" 1>&6
2068 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2069 cat >> confdefs.h
<<EOF
2070 #define $ac_tr_hdr 1
2074 echo "$ac_t""no" 1>&6
2078 for ac_func
in getpagesize
2080 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2081 echo "configure:2082: checking for $ac_func" >&5
2082 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2083 echo $ac_n "(cached) $ac_c" 1>&6
2085 cat > conftest.
$ac_ext <<EOF
2086 #line 2087 "configure"
2087 #include "confdefs.h"
2088 /* System header to define __stub macros and hopefully few prototypes,
2089 which can conflict with char $ac_func(); below. */
2091 /* Override any gcc2 internal prototype to avoid an error. */
2092 /* We use char because int might match the return type of a gcc2
2093 builtin and then its argument prototype would still apply. */
2098 /* The GNU C library defines this for functions which it implements
2099 to always fail with ENOSYS. Some functions are actually named
2100 something starting with __ and the normal name is an alias. */
2101 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2109 if { (eval echo configure
:2110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2111 eval "ac_cv_func_$ac_func=yes"
2113 echo "configure: failed program was:" >&5
2114 cat conftest.
$ac_ext >&5
2116 eval "ac_cv_func_$ac_func=no"
2121 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2122 echo "$ac_t""yes" 1>&6
2123 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2124 cat >> confdefs.h
<<EOF
2125 #define $ac_tr_func 1
2129 echo "$ac_t""no" 1>&6
2133 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2134 echo "configure:2135: checking for working mmap" >&5
2135 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2136 echo $ac_n "(cached) $ac_c" 1>&6
2138 if test "$cross_compiling" = yes; then
2139 ac_cv_func_mmap_fixed_mapped
=no
2141 cat > conftest.
$ac_ext <<EOF
2142 #line 2143 "configure"
2143 #include "confdefs.h"
2145 /* Thanks to Mike Haertel and Jim Avera for this test.
2146 Here is a matrix of mmap possibilities:
2147 mmap private not fixed
2148 mmap private fixed at somewhere currently unmapped
2149 mmap private fixed at somewhere already mapped
2150 mmap shared not fixed
2151 mmap shared fixed at somewhere currently unmapped
2152 mmap shared fixed at somewhere already mapped
2153 For private mappings, we should verify that changes cannot be read()
2154 back from the file, nor mmap's back from the file at a different
2155 address. (There have been systems where private was not correctly
2156 implemented like the infamous i386 svr4.0, and systems where the
2157 VM page cache was not coherent with the filesystem buffer cache
2158 like early versions of FreeBSD and possibly contemporary NetBSD.)
2159 For shared mappings, we should conversely verify that changes get
2160 propogated back to all the places they're supposed to be.
2162 Grep wants private fixed already mapped.
2163 The main things grep needs to know about mmap are:
2164 * does it exist and is it safe to write into the mmap'd area
2165 * how to use it (BSD variants) */
2166 #include <sys/types.h>
2168 #include <sys/mman.h>
2170 /* This mess was copied from the GNU getpagesize.h. */
2171 #ifndef HAVE_GETPAGESIZE
2172 # ifdef HAVE_UNISTD_H
2173 # include <unistd.h>
2176 /* Assume that all systems that can run configure have sys/param.h. */
2177 # ifndef HAVE_SYS_PARAM_H
2178 # define HAVE_SYS_PARAM_H 1
2181 # ifdef _SC_PAGESIZE
2182 # define getpagesize() sysconf(_SC_PAGESIZE)
2183 # else /* no _SC_PAGESIZE */
2184 # ifdef HAVE_SYS_PARAM_H
2185 # include <sys/param.h>
2186 # ifdef EXEC_PAGESIZE
2187 # define getpagesize() EXEC_PAGESIZE
2188 # else /* no EXEC_PAGESIZE */
2190 # define getpagesize() NBPG * CLSIZE
2193 # endif /* no CLSIZE */
2194 # else /* no NBPG */
2196 # define getpagesize() NBPC
2197 # else /* no NBPC */
2199 # define getpagesize() PAGESIZE
2200 # endif /* PAGESIZE */
2201 # endif /* no NBPC */
2202 # endif /* no NBPG */
2203 # endif /* no EXEC_PAGESIZE */
2204 # else /* no HAVE_SYS_PARAM_H */
2205 # define getpagesize() 8192 /* punt totally */
2206 # endif /* no HAVE_SYS_PARAM_H */
2207 # endif /* no _SC_PAGESIZE */
2209 #endif /* no HAVE_GETPAGESIZE */
2212 extern "C" { void *malloc(unsigned); }
2220 char *data, *data2, *data3;
2224 pagesize = getpagesize();
2227 * First, make a file with some known garbage in it.
2229 data = malloc(pagesize);
2232 for (i = 0; i < pagesize; ++i)
2233 *(data + i) = rand();
2235 fd = creat("conftestmmap", 0600);
2238 if (write(fd, data, pagesize) != pagesize)
2243 * Next, try to mmap the file at a fixed address which
2244 * already has something else allocated at it. If we can,
2245 * also make sure that we see the same garbage.
2247 fd = open("conftestmmap", O_RDWR);
2250 data2 = malloc(2 * pagesize);
2253 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2254 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2255 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2257 for (i = 0; i < pagesize; ++i)
2258 if (*(data + i) != *(data2 + i))
2262 * Finally, make sure that changes to the mapped area
2263 * do not percolate back to the file as seen by read().
2264 * (This is a bug on some variants of i386 svr4.0.)
2266 for (i = 0; i < pagesize; ++i)
2267 *(data2 + i) = *(data2 + i) + 1;
2268 data3 = malloc(pagesize);
2271 if (read(fd, data3, pagesize) != pagesize)
2273 for (i = 0; i < pagesize; ++i)
2274 if (*(data + i) != *(data3 + i))
2277 unlink("conftestmmap");
2282 if { (eval echo configure
:2283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2284 ac_cv_func_mmap_fixed_mapped
=yes
2286 echo "configure: failed program was:" >&5
2287 cat conftest.
$ac_ext >&5
2289 ac_cv_func_mmap_fixed_mapped
=no
2296 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2297 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2298 cat >> confdefs.h
<<\EOF
2305 LIBS
="$LIBS -lc $LIBM"
2306 for ac_func
in fmod strtol getcwd strerror putenv
2308 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2309 echo "configure:2310: checking for $ac_func" >&5
2310 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2311 echo $ac_n "(cached) $ac_c" 1>&6
2313 cat > conftest.
$ac_ext <<EOF
2314 #line 2315 "configure"
2315 #include "confdefs.h"
2316 /* System header to define __stub macros and hopefully few prototypes,
2317 which can conflict with char $ac_func(); below. */
2319 /* Override any gcc2 internal prototype to avoid an error. */
2320 /* We use char because int might match the return type of a gcc2
2321 builtin and then its argument prototype would still apply. */
2326 /* The GNU C library defines this for functions which it implements
2327 to always fail with ENOSYS. Some functions are actually named
2328 something starting with __ and the normal name is an alias. */
2329 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2337 if { (eval echo configure
:2338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2339 eval "ac_cv_func_$ac_func=yes"
2341 echo "configure: failed program was:" >&5
2342 cat conftest.
$ac_ext >&5
2344 eval "ac_cv_func_$ac_func=no"
2349 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2350 echo "$ac_t""yes" 1>&6
2351 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2352 cat >> confdefs.h
<<EOF
2353 #define $ac_tr_func 1
2357 echo "$ac_t""no" 1>&6
2358 LIBOBJS
="$LIBOBJS ${ac_func}.${ac_objext}"
2364 for ac_func
in rename mkstemp
2366 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2367 echo "configure:2368: checking for $ac_func" >&5
2368 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2369 echo $ac_n "(cached) $ac_c" 1>&6
2371 cat > conftest.
$ac_ext <<EOF
2372 #line 2373 "configure"
2373 #include "confdefs.h"
2374 /* System header to define __stub macros and hopefully few prototypes,
2375 which can conflict with char $ac_func(); below. */
2377 /* Override any gcc2 internal prototype to avoid an error. */
2378 /* We use char because int might match the return type of a gcc2
2379 builtin and then its argument prototype would still apply. */
2384 /* The GNU C library defines this for functions which it implements
2385 to always fail with ENOSYS. Some functions are actually named
2386 something starting with __ and the normal name is an alias. */
2387 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2395 if { (eval echo configure
:2396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2397 eval "ac_cv_func_$ac_func=yes"
2399 echo "configure: failed program was:" >&5
2400 cat conftest.
$ac_ext >&5
2402 eval "ac_cv_func_$ac_func=no"
2407 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2408 echo "$ac_t""yes" 1>&6
2409 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2410 cat >> confdefs.h
<<EOF
2411 #define $ac_tr_func 1
2415 echo "$ac_t""no" 1>&6
2419 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
2420 echo "configure:2421: checking for sys_siglist declaration in signal.h or unistd.h" >&5
2421 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
2422 echo $ac_n "(cached) $ac_c" 1>&6
2424 cat > conftest.
$ac_ext <<EOF
2425 #line 2426 "configure"
2426 #include "confdefs.h"
2427 #include <sys/types.h>
2429 /* NetBSD declares sys_siglist in unistd.h. */
2430 #ifdef HAVE_UNISTD_H
2434 char *msg = *(sys_siglist + 1);
2437 if { (eval echo configure
:2438: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2439 ac_cv_decl_sys_siglist
=yes
2441 echo "configure: failed program was:" >&5
2442 cat conftest.
$ac_ext >&5
2444 ac_cv_decl_sys_siglist
=no
2449 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
2450 if test $ac_cv_decl_sys_siglist = yes; then
2451 cat >> confdefs.h
<<\EOF
2452 #define SYS_SIGLIST_DECLARED 1
2459 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2460 ac_cpp
='$CXXCPP $CPPFLAGS'
2461 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2462 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2463 cross_compiling
=$ac_cv_prog_cxx_cross
2465 echo $ac_n "checking whether ANSI array delete syntax supported""... $ac_c" 1>&6
2466 echo "configure:2467: checking whether ANSI array delete syntax supported" >&5
2467 cat > conftest.
$ac_ext <<EOF
2468 #line 2469 "configure"
2469 #include "confdefs.h"
2472 char *p = new char[5]; delete [] p;
2475 if { (eval echo configure
:2476: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2477 echo "$ac_t""yes" 1>&6
2479 echo "configure: failed program was:" >&5
2480 cat conftest.
$ac_ext >&5
2482 echo "$ac_t""no" 1>&6;cat >> confdefs.h
<<\EOF
2483 #define ARRAY_DELETE_NEEDS_SIZE 1
2489 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2490 ac_cpp
='$CPP $CPPFLAGS'
2491 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2492 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2493 cross_compiling
=$ac_cv_prog_cc_cross
2497 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2498 ac_cpp
='$CXXCPP $CPPFLAGS'
2499 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2500 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2501 cross_compiling
=$ac_cv_prog_cxx_cross
2503 echo $ac_n "checking traditional preprocessor""... $ac_c" 1>&6
2504 echo "configure:2505: checking traditional preprocessor" >&5
2505 cat > conftest.
$ac_ext <<EOF
2506 #line 2507 "configure"
2507 #include "confdefs.h"
2508 #define name2(a,b) a/**/b
2513 if { (eval echo configure
:2514: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2515 echo "$ac_t""yes" 1>&6;cat >> confdefs.h
<<\EOF
2516 #define TRADITIONAL_CPP 1
2520 echo "configure: failed program was:" >&5
2521 cat conftest.
$ac_ext >&5
2523 echo "$ac_t""no" 1>&6
2527 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2528 ac_cpp
='$CPP $CPPFLAGS'
2529 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2530 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2531 cross_compiling
=$ac_cv_prog_cc_cross
2533 echo $ac_n "checking w_coredump""... $ac_c" 1>&6
2534 echo "configure:2535: checking w_coredump" >&5
2535 if test "$cross_compiling" = yes; then
2536 echo "$ac_t""no" 1>&6
2538 cat > conftest.
$ac_ext <<EOF
2539 #line 2540 "configure"
2540 #include "confdefs.h"
2541 #include <sys/types.h>
2542 #include <sys/wait.h>
2549 ((union wait *)&i)->w_coredump = 1;
2554 if { (eval echo configure
:2555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2556 echo "$ac_t""yes" 1>&6;cat >> confdefs.h
<<\EOF
2557 #define WCOREFLAG 0200
2561 echo "configure: failed program was:" >&5
2562 cat conftest.
$ac_ext >&5
2564 echo "$ac_t""no" 1>&6
2569 echo $ac_n "checking default value for grops -b option""... $ac_c" 1>&6
2570 echo "configure:2571: checking default value for grops -b option" >&5
2571 test -n "${BROKEN_SPOOLER_FLAGS}" || BROKEN_SPOOLER_FLAGS
=7
2572 echo "$ac_t""$BROKEN_SPOOLER_FLAGS" 1>&6
2574 echo $ac_n "checking default paper size""... $ac_c" 1>&6
2575 echo "configure:2576: checking default paper size" >&5
2576 if test -z "$PAGE"; then
2578 if test -r $prefix/share
/groff
/font
/devps
/DESC
; then
2579 descfile
=$prefix/share
/groff
/font
/devps
/DESC
2580 elif test -r $prefix/lib
/groff
/font
/devps
/DESC
; then
2581 descfile
=$prefix/lib
/groff
/font
/devps
/DESC
2583 if test -n "$descfile" \
2584 && grep "^paperlength 841890" $descfile >/dev
/null
2>&1; then
2590 if test -z "$PAGE"; then
2591 dom
=`awk '($1 == "dom" || $1 == "search") { print $2; exit}' \
2592 /etc/resolv.conf 2>/dev/null`
2593 if test -z "$dom"; then
2594 dom
=`(domainname) 2>/dev/null | tr -d '+'`
2595 if test -z "$dom"; then
2596 dom
=`(hostname) 2>/dev/null | grep '\.'`
2599 # If the top-level domain is two letters and it's not `us' or `ca'
2600 # then they probably use A4 paper.
2602 *.
[Uu
][Ss
]|
*.
[Cc
][Aa
]) ;;
2603 *.
[A-Za-z
][A-Za-z
]) PAGE
=A4
;;
2606 test -n "$PAGE" || PAGE
=letter
2607 echo "$ac_t""$PAGE" 1>&6
2609 echo $ac_n "checking for existing troff installation""... $ac_c" 1>&6
2610 echo "configure:2611: checking for existing troff installation" >&5
2611 if test "x`(echo .tm '|n(.g' | tr '|' '\\\\' | troff -z -i 2>&1) 2>/dev/null`" = x0
; then
2612 echo "$ac_t""yes" 1>&6
2615 echo "$ac_t""no" 1>&6
2620 echo $ac_n "checking for prefix of system macro packages""... $ac_c" 1>&6
2621 echo "configure:2622: checking for prefix of system macro packages" >&5
2623 sys_tmac_file_prefix
=
2624 for d
in /usr
/share
/lib
/tmac
/usr
/lib
/tmac
; do
2625 for t
in "" tmac.
; do
2628 if test -z "$sys_tmac_prefix" \
2630 && grep '^\.if' $f >/dev
/null
2>&1; then
2631 sys_tmac_prefix
=$d/$t
2632 sys_tmac_file_prefix
=$t
2637 echo "$ac_t""$sys_tmac_prefix" 1>&6
2640 echo $ac_n "checking which system macro packages should be made available""... $ac_c" 1>&6
2641 echo "configure:2642: checking which system macro packages should be made available" >&5
2642 if test "x$sys_tmac_file_prefix" = "xtmac."; then
2643 for f
in $sys_tmac_prefix*; do
2644 suff
=`echo $f | sed -e "s;$sys_tmac_prefix;;"`
2648 grep "Copyright.*Free Software Foundation" $f >/dev
/null \
2649 || tmac_wrap
="$tmac_wrap $suff" ;;
2652 elif test -n "$sys_tmac_prefix"; then
2653 files
=`echo $sys_tmac_prefix*`
2654 grep "\\.so" $files >conftest.sol
2657 ${sys_tmac_prefix}e
) ;;
2662 if grep "\\.so.*/$b\$" conftest.sol
>/dev
/null \
2663 ||
grep -l "Copyright.*Free Software Foundation" $f >/dev
/null
; then
2666 suff
=`echo $f | sed -e "s;$sys_tmac_prefix;;"`
2669 *) tmac_wrap
="$tmac_wrap $suff" ;;
2676 echo "$ac_t""$tmac_wrap" 1>&6
2680 cat > confcache
<<\EOF
2681 # This file is a shell script that caches the results of configure
2682 # tests run on this system so they can be shared between configure
2683 # scripts and configure runs. It is not useful on other systems.
2684 # If it contains results you don't want to keep, you may remove or edit it.
2686 # By default, configure uses ./config.cache as the cache file,
2687 # creating it if it does not exist already. You can give configure
2688 # the --cache-file=FILE option to use a different cache file; that is
2689 # what configure does when it calls configure scripts in
2690 # subdirectories, so they share the cache.
2691 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2692 # config.status only pays attention to the cache file if you give it the
2693 # --recheck option to rerun configure.
2696 # The following way of writing the cache mishandles newlines in values,
2697 # but we know of no workaround that is simple, portable, and efficient.
2698 # So, don't put newlines in cache variables' values.
2699 # Ultrix sh set writes to stderr and can't be redirected directly,
2700 # and sets the high bit in the cache file unless we assign to the vars.
2702 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2704 # `set' does not quote correctly, so add quotes (double-quote substitution
2705 # turns \\\\ into \\, and sed turns \\ into \).
2707 -e "s/'/'\\\\''/g" \
2708 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2711 # `set' quotes correctly as required by POSIX, so do not add quotes.
2712 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2715 if cmp -s $cache_file confcache
; then
2718 if test -w $cache_file; then
2719 echo "updating cache $cache_file"
2720 cat confcache
> $cache_file
2722 echo "not updating unwritable cache $cache_file"
2727 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2729 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
2730 # Let make expand exec_prefix.
2731 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
2733 # Any assignment to VPATH causes Sun make to only execute
2734 # the first set of double-colon rules, so remove it if not needed.
2735 # If there is a colon in the path, we need to keep it.
2736 if test "x$srcdir" = x.
; then
2737 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
2740 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2742 # Transform confdefs.h into DEFS.
2743 # Protect against shell expansion while executing Makefile rules.
2744 # Protect against Makefile macro expansion.
2745 cat > conftest.defs
<<\EOF
2746 s
%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
2747 s
%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
2752 DEFS=`sed -f conftest.defs confdefs.h |
tr '\012' ' '`
2756 # Without the "./", some shells look in PATH for config.status.
2757 : ${CONFIG_STATUS=./config.status}
2759 echo creating $CONFIG_STATUS
2760 rm -f $CONFIG_STATUS
2761 cat > $CONFIG_STATUS <<EOF
2763 # Generated automatically by configure.
2764 # Run this file to recreate the current configuration.
2765 # This directory was configured as follows,
2766 # on host `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`:
2768 # $0 $ac_configure_args
2770 # Compiler output produced by configure, useful for debugging
2771 # configure, is in ./config.log if it exists.
2773 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2776 case "\$ac_option" in
2777 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2778 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2779 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2780 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2781 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2783 -help | --help | --hel | --he | --h)
2784 echo "\$ac_cs_usage"; exit 0 ;;
2785 *) echo "\$ac_cs_usage"; exit 1 ;;
2789 ac_given_srcdir=$srcdir
2790 ac_given_INSTALL="$INSTALL"
2792 trap 'rm -fr `echo "Makefile" |
sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2794 cat >> $CONFIG_STATUS <<EOF
2796 # Protect against being on the right side of a sed subst in config.status.
2797 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2798 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2802 s%@CFLAGS@%$CFLAGS%g
2803 s%@CPPFLAGS@%$CPPFLAGS%g
2804 s%@CXXFLAGS@%$CXXFLAGS%g
2805 s%@FFLAGS@%$FFLAGS%g
2807 s%@LDFLAGS@%$LDFLAGS%g
2809 s%@exec_prefix@%$exec_prefix%g
2810 s%@prefix@%$prefix%g
2811 s%@program_transform_name@%$program_transform_name%g
2812 s%@bindir@%$bindir%g
2813 s%@sbindir@%$sbindir%g
2814 s%@libexecdir@%$libexecdir%g
2815 s%@datadir@%$datadir%g
2816 s%@sysconfdir@%$sysconfdir%g
2817 s%@sharedstatedir@%$sharedstatedir%g
2818 s%@localstatedir@%$localstatedir%g
2819 s%@libdir@%$libdir%g
2820 s%@includedir@%$includedir%g
2821 s%@oldincludedir@%$oldincludedir%g
2822 s%@infodir@%$infodir%g
2823 s%@mandir@%$mandir%g
2829 s%@PSPRINT@%$PSPRINT%g
2830 s%@DVIPRINT@%$DVIPRINT%g
2831 s%@PERLPATH@%$PERLPATH%g
2833 s%@RANLIB@%$RANLIB%g
2834 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2835 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2836 s%@INSTALL_DATA@%$INSTALL_DATA%g
2838 s%@SH_SCRIPT_SED_CMD@%$SH_SCRIPT_SED_CMD%g
2841 s%@LIBOBJS@%$LIBOBJS%g
2842 s%@BROKEN_SPOOLER_FLAGS@%$BROKEN_SPOOLER_FLAGS%g
2845 s%@sys_tmac_prefix@%$sys_tmac_prefix%g
2846 s%@tmac_wrap@%$tmac_wrap%g
2851 cat >> $CONFIG_STATUS <<\EOF
2853 # Split the substitutions into bite-sized pieces for seds with
2854 # small command number limits, like on Digital OSF/1 and HP-UX.
2855 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2856 ac_file=1 # Number of current file.
2857 ac_beg=1 # First line for current file.
2858 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2861 while $ac_more_lines; do
2862 if test $ac_beg -gt 1; then
2863 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2865 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2867 if test ! -s conftest.s$ac_file; then
2869 rm -f conftest.s$ac_file
2871 if test -z "$ac_sed_cmds"; then
2872 ac_sed_cmds="sed -f conftest.s$ac_file"
2874 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2876 ac_file=`expr $ac_file + 1`
2878 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2881 if test -z "$ac_sed_cmds"; then
2886 cat >> $CONFIG_STATUS <<EOF
2888 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
2890 cat >> $CONFIG_STATUS <<\EOF
2891 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2892 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2894 *:*) ac_file_in=`echo "$ac_file"|
sed 's%[^:]*:%%'`
2895 ac_file=`echo "$ac_file"|
sed 's%:.*%%'` ;;
2896 *) ac_file_in="${ac_file}.in" ;;
2899 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2901 # Remove last slash and all that follows it. Not all systems have dirname.
2902 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
2903 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2904 # The file is in a subdirectory.
2905 test ! -d "$ac_dir" && mkdir "$ac_dir"
2906 ac_dir_suffix="/`echo $ac_dir|
sed 's%^\./%%'`"
2907 # A "../" for each directory in $ac_dir_suffix.
2908 ac_dots=`echo $ac_dir_suffix|
sed 's%/[^/]*%../%g'`
2910 ac_dir_suffix= ac_dots=
2913 case "$ac_given_srcdir" in
2915 if test -z "$ac_dots"; then top_srcdir=.
2916 else top_srcdir=`echo $ac_dots|
sed 's%/$%%'`; fi ;;
2917 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2919 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2920 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2923 case "$ac_given_INSTALL" in
2924 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2925 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2928 echo creating "$ac_file"
2930 configure_input="Generated automatically from `echo $ac_file_in|
sed 's%.*/%%'` by configure."
2932 *Makefile*) ac_comsub="1i\\
2933 # $configure_input" ;;
2937 ac_file_inputs=`echo $ac_file_in|
sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2939 s%@configure_input@%$configure_input%g
2940 s%@srcdir@%$srcdir%g
2941 s%@top_srcdir@%$top_srcdir%g
2942 s%@INSTALL@%$INSTALL%g
2943 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2948 cat >> $CONFIG_STATUS <<EOF
2951 cat >> $CONFIG_STATUS <<\EOF
2955 chmod +x $CONFIG_STATUS
2956 rm -fr confdefs* $ac_clean_files
2957 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1