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`
528 # Extract the first word of "gcc", so it can be a program name with args.
529 set dummy gcc
; ac_word
=$2
530 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
531 echo "configure:532: checking for $ac_word" >&5
532 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
533 echo $ac_n "(cached) $ac_c" 1>&6
535 if test -n "$CC"; then
536 ac_cv_prog_CC
="$CC" # Let the user override the test.
538 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
540 for ac_dir
in $ac_dummy; do
541 test -z "$ac_dir" && ac_dir
=.
542 if test -f $ac_dir/$ac_word; then
551 if test -n "$CC"; then
552 echo "$ac_t""$CC" 1>&6
554 echo "$ac_t""no" 1>&6
557 if test -z "$CC"; then
558 # Extract the first word of "cc", so it can be a program name with args.
559 set dummy cc
; ac_word
=$2
560 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
561 echo "configure:562: checking for $ac_word" >&5
562 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
563 echo $ac_n "(cached) $ac_c" 1>&6
565 if test -n "$CC"; then
566 ac_cv_prog_CC
="$CC" # Let the user override the test.
568 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
571 for ac_dir
in $ac_dummy; do
572 test -z "$ac_dir" && ac_dir
=.
573 if test -f $ac_dir/$ac_word; then
574 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
583 if test $ac_prog_rejected = yes; then
584 # We found a bogon in the path, so make sure we never use it.
585 set dummy
$ac_cv_prog_CC
587 if test $# -gt 0; then
588 # We chose a different compiler from the bogus one.
589 # However, it has the same basename, so the bogon will be chosen
590 # first if we set CC to just the basename; use the full file name.
592 set dummy
"$ac_dir/$ac_word" "$@"
600 if test -n "$CC"; then
601 echo "$ac_t""$CC" 1>&6
603 echo "$ac_t""no" 1>&6
606 if test -z "$CC"; then
609 # Extract the first word of "cl", so it can be a program name with args.
610 set dummy cl
; ac_word
=$2
611 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
612 echo "configure:613: checking for $ac_word" >&5
613 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
614 echo $ac_n "(cached) $ac_c" 1>&6
616 if test -n "$CC"; then
617 ac_cv_prog_CC
="$CC" # Let the user override the test.
619 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
621 for ac_dir
in $ac_dummy; do
622 test -z "$ac_dir" && ac_dir
=.
623 if test -f $ac_dir/$ac_word; then
632 if test -n "$CC"; then
633 echo "$ac_t""$CC" 1>&6
635 echo "$ac_t""no" 1>&6
640 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
643 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
644 echo "configure:645: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
647 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
648 ac_cpp
='$CPP $CPPFLAGS'
649 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
650 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
651 cross_compiling
=$ac_cv_prog_cc_cross
653 cat > conftest.
$ac_ext << EOF
655 #line 656 "configure"
656 #include "confdefs.h"
660 if { (eval echo configure
:661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
661 ac_cv_prog_cc_works
=yes
662 # If we can't run a trivial program, we are probably using a cross compiler.
663 if (.
/conftest
; exit) 2>/dev
/null
; then
664 ac_cv_prog_cc_cross
=no
666 ac_cv_prog_cc_cross
=yes
669 echo "configure: failed program was:" >&5
670 cat conftest.
$ac_ext >&5
671 ac_cv_prog_cc_works
=no
675 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
676 ac_cpp
='$CPP $CPPFLAGS'
677 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
678 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
679 cross_compiling
=$ac_cv_prog_cc_cross
681 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
682 if test $ac_cv_prog_cc_works = no
; then
683 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
685 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
686 echo "configure:687: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
687 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
688 cross_compiling
=$ac_cv_prog_cc_cross
690 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
691 echo "configure:692: checking whether we are using GNU C" >&5
692 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
693 echo $ac_n "(cached) $ac_c" 1>&6
695 cat > conftest.c
<<EOF
700 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:701: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
707 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
709 if test $ac_cv_prog_gcc = yes; then
715 ac_test_CFLAGS
="${CFLAGS+set}"
716 ac_save_CFLAGS
="$CFLAGS"
718 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
719 echo "configure:720: checking whether ${CC-cc} accepts -g" >&5
720 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
721 echo $ac_n "(cached) $ac_c" 1>&6
723 echo 'void f(){}' > conftest.c
724 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
733 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
734 if test "$ac_test_CFLAGS" = set; then
735 CFLAGS
="$ac_save_CFLAGS"
736 elif test $ac_cv_prog_cc_g = yes; then
737 if test "$GCC" = yes; then
743 if test "$GCC" = yes; then
750 for ac_prog
in $CCC c
++ g
++ gcc CC cxx cc
++ cl
752 # Extract the first word of "$ac_prog", so it can be a program name with args.
753 set dummy
$ac_prog; ac_word
=$2
754 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
755 echo "configure:756: checking for $ac_word" >&5
756 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
757 echo $ac_n "(cached) $ac_c" 1>&6
759 if test -n "$CXX"; then
760 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
762 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
764 for ac_dir
in $ac_dummy; do
765 test -z "$ac_dir" && ac_dir
=.
766 if test -f $ac_dir/$ac_word; then
767 ac_cv_prog_CXX
="$ac_prog"
774 CXX
="$ac_cv_prog_CXX"
775 if test -n "$CXX"; then
776 echo "$ac_t""$CXX" 1>&6
778 echo "$ac_t""no" 1>&6
781 test -n "$CXX" && break
783 test -n "$CXX" || CXX
="gcc"
786 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
787 echo "configure:788: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
790 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
791 ac_cpp
='$CXXCPP $CPPFLAGS'
792 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
793 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
794 cross_compiling
=$ac_cv_prog_cxx_cross
796 cat > conftest.
$ac_ext << EOF
798 #line 799 "configure"
799 #include "confdefs.h"
801 int main(){return(0);}
803 if { (eval echo configure
:804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
804 ac_cv_prog_cxx_works
=yes
805 # If we can't run a trivial program, we are probably using a cross compiler.
806 if (.
/conftest
; exit) 2>/dev
/null
; then
807 ac_cv_prog_cxx_cross
=no
809 ac_cv_prog_cxx_cross
=yes
812 echo "configure: failed program was:" >&5
813 cat conftest.
$ac_ext >&5
814 ac_cv_prog_cxx_works
=no
818 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
819 ac_cpp
='$CPP $CPPFLAGS'
820 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
821 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
822 cross_compiling
=$ac_cv_prog_cc_cross
824 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
825 if test $ac_cv_prog_cxx_works = no
; then
826 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
828 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
829 echo "configure:830: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
830 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
831 cross_compiling
=$ac_cv_prog_cxx_cross
833 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
834 echo "configure:835: checking whether we are using GNU C++" >&5
835 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
836 echo $ac_n "(cached) $ac_c" 1>&6
838 cat > conftest.C
<<EOF
843 if { ac_try
='${CXX-g++} -E conftest.C'; { (eval echo configure
:844: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
850 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
852 if test $ac_cv_prog_gxx = yes; then
858 ac_test_CXXFLAGS
="${CXXFLAGS+set}"
859 ac_save_CXXFLAGS
="$CXXFLAGS"
861 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
862 echo "configure:863: checking whether ${CXX-g++} accepts -g" >&5
863 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
864 echo $ac_n "(cached) $ac_c" 1>&6
866 echo 'void f(){}' > conftest.cc
867 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
876 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
877 if test "$ac_test_CXXFLAGS" = set; then
878 CXXFLAGS
="$ac_save_CXXFLAGS"
879 elif test $ac_cv_prog_cxx_g = yes; then
880 if test "$GXX" = yes; then
886 if test "$GXX" = yes; then
898 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
899 ac_cpp
='$CXXCPP $CPPFLAGS'
900 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
901 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
902 cross_compiling
=$ac_cv_prog_cxx_cross
904 if test "$cross_compiling" = no
; then
905 echo $ac_n "checking that C++ compiler can compile simple program""... $ac_c" 1>&6
906 echo "configure:907: checking that C++ compiler can compile simple program" >&5
908 if test "$cross_compiling" = yes; then
911 cat > conftest.
$ac_ext <<EOF
912 #line 913 "configure"
913 #include "confdefs.h"
915 extern "C" void exit(int);
917 int main() { return 0; }
919 if { (eval echo configure
:920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
921 echo "$ac_t""yes" 1>&6
923 echo "configure: failed program was:" >&5
924 cat conftest.
$ac_ext >&5
926 echo "$ac_t""no" 1>&6;{ echo "configure: error: a working C++ compiler is required" 1>&2; exit 1; }
931 if test "$cross_compiling" = no
; then
932 echo $ac_n "checking that C++ static constructors and destructors are called""... $ac_c" 1>&6
933 echo "configure:934: checking that C++ static constructors and destructors are called" >&5
935 if test "$cross_compiling" = yes; then
938 cat > conftest.
$ac_ext <<EOF
939 #line 940 "configure"
940 #include "confdefs.h"
942 extern "C" void exit(int);
952 ~A() { if (i == 1) _exit(0); }
955 int main() { return 1; }
958 if { (eval echo configure
:959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
960 echo "$ac_t""yes" 1>&6
962 echo "configure: failed program was:" >&5
963 cat conftest.
$ac_ext >&5
965 echo "$ac_t""no" 1>&6;{ echo "configure: error: a working C++ compiler is required" 1>&2; exit 1; }
970 echo $ac_n "checking that header files support C++""... $ac_c" 1>&6
971 echo "configure:972: checking that header files support C++" >&5
972 cat > conftest.
$ac_ext <<EOF
973 #line 974 "configure"
974 #include "confdefs.h"
980 if { (eval echo configure
:981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
982 echo "$ac_t""yes" 1>&6
984 echo "configure: failed program was:" >&5
985 cat conftest.
$ac_ext >&5
987 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; }
991 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
992 ac_cpp
='$CPP $CPPFLAGS'
993 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
994 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
995 cross_compiling
=$ac_cv_prog_cc_cross
997 echo $ac_n "checking whether character set is EBCDIC""... $ac_c" 1>&6
998 echo "configure:999: checking whether character set is EBCDIC" >&5
999 cat > conftest.
$ac_ext <<EOF
1000 #line 1001 "configure"
1001 #include "confdefs.h"
1004 /* Treat any failure as ASCII for compatibility with existing art.
1005 Use compile-time rather than run-time tests for cross-compiler
1008 make an error "Character set is not EBCDIC"
1012 if { (eval echo configure
:1013: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1014 groff_cv_ebcdic
="yes";echo "$ac_t""yes" 1>&6;cat >> confdefs.h
<<\EOF
1015 #define IS_EBCDIC_HOST 1
1019 echo "configure: failed program was:" >&5
1020 cat conftest.
$ac_ext >&5
1022 groff_cv_ebcdic
="no";echo "$ac_t""no" 1>&6
1026 if test "$groff_cv_ebcdic" = "yes"; then
1027 echo $ac_n "checking for OS/390 Unix""... $ac_c" 1>&6
1028 echo "configure:1029: checking for OS/390 Unix" >&5
1031 CFLAGS
="$CFLAGS -D_ALL_SOURCE -D_X_OPEN_SOURCE_EXTENDED=1"
1032 groff_cv_os390
="yes"
1033 echo "$ac_t""yes" 1>&6 ;;
1035 echo "$ac_t""no" 1>&6 ;;
1038 if test -z "$PSPRINT"; then
1041 # Extract the first word of "$ac_prog", so it can be a program name with args.
1042 set dummy
$ac_prog; ac_word
=$2
1043 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1044 echo "configure:1045: checking for $ac_word" >&5
1045 if eval "test \"`echo '$''{'ac_cv_prog_LPR'+set}'`\" = set"; then
1046 echo $ac_n "(cached) $ac_c" 1>&6
1048 if test -n "$LPR"; then
1049 ac_cv_prog_LPR
="$LPR" # Let the user override the test.
1051 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1053 for ac_dir
in $ac_dummy; do
1054 test -z "$ac_dir" && ac_dir
=.
1055 if test -f $ac_dir/$ac_word; then
1056 ac_cv_prog_LPR
="$ac_prog"
1063 LPR
="$ac_cv_prog_LPR"
1064 if test -n "$LPR"; then
1065 echo "$ac_t""$LPR" 1>&6
1067 echo "$ac_t""no" 1>&6
1070 test -n "$LPR" && break
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_LP'+set}'`\" = set"; then
1080 echo $ac_n "(cached) $ac_c" 1>&6
1082 if test -n "$LP"; then
1083 ac_cv_prog_LP
="$LP" # 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_LP
="$ac_prog"
1098 if test -n "$LP"; then
1099 echo "$ac_t""$LP" 1>&6
1101 echo "$ac_t""no" 1>&6
1104 test -n "$LP" && break
1107 if test -n "$LPR" && test -n "$LP"; then
1108 # HP-UX provides an lpr command that emulates lpr using lp,
1109 # but it doesn't have lpq; in this case we want to use lp
1113 # Extract the first word of "$ac_prog", so it can be a program name with args.
1114 set dummy
$ac_prog; ac_word
=$2
1115 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1116 echo "configure:1117: checking for $ac_word" >&5
1117 if eval "test \"`echo '$''{'ac_cv_prog_LPQ'+set}'`\" = set"; then
1118 echo $ac_n "(cached) $ac_c" 1>&6
1120 if test -n "$LPQ"; then
1121 ac_cv_prog_LPQ
="$LPQ" # Let the user override the test.
1123 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1125 for ac_dir
in $ac_dummy; do
1126 test -z "$ac_dir" && ac_dir
=.
1127 if test -f $ac_dir/$ac_word; then
1128 ac_cv_prog_LPQ
="$ac_prog"
1135 LPQ
="$ac_cv_prog_LPQ"
1136 if test -n "$LPQ"; then
1137 echo "$ac_t""$LPQ" 1>&6
1139 echo "$ac_t""no" 1>&6
1142 test -n "$LPQ" && break
1145 test -n "$LPQ" || LPR
=
1147 if test -n "$LPR"; then
1149 elif test -n "$LP"; then
1154 echo $ac_n "checking for command to use for printing PostScript files""... $ac_c" 1>&6
1155 echo "configure:1156: checking for command to use for printing PostScript files" >&5
1156 echo "$ac_t""$PSPRINT" 1>&6
1157 # Figure out DVIPRINT from PSPRINT.
1158 echo $ac_n "checking for command to use for printing dvi files""... $ac_c" 1>&6
1159 echo "configure:1160: checking for command to use for printing dvi files" >&5
1160 if test -n "$PSPRINT" && test -z "$DVIPRINT"; then
1161 if test "X$PSPRINT" = "Xlpr"; then
1168 echo "$ac_t""$DVIPRINT" 1>&6
1169 # Extract the first word of "perl", so it can be a program name with args.
1170 set dummy perl
; 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_path_PERLPATH'+set}'`\" = set"; then
1174 echo $ac_n "(cached) $ac_c" 1>&6
1178 ac_cv_path_PERLPATH
="$PERLPATH" # Let the user override the test with a path.
1181 ac_cv_path_PERLPATH
="$PERLPATH" # Let the user override the test with a dos path.
1184 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1186 for ac_dir
in $ac_dummy; do
1187 test -z "$ac_dir" && ac_dir
=.
1188 if test -f $ac_dir/$ac_word; then
1189 ac_cv_path_PERLPATH
="$ac_dir/$ac_word"
1194 test -z "$ac_cv_path_PERLPATH" && ac_cv_path_PERLPATH
="/usr/bin/perl"
1198 PERLPATH
="$ac_cv_path_PERLPATH"
1199 if test -n "$PERLPATH"; then
1200 echo "$ac_t""$PERLPATH" 1>&6
1202 echo "$ac_t""no" 1>&6
1205 for ac_prog
in byacc
'bison -y'
1207 # Extract the first word of "$ac_prog", so it can be a program name with args.
1208 set dummy
$ac_prog; ac_word
=$2
1209 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1210 echo "configure:1211: checking for $ac_word" >&5
1211 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1212 echo $ac_n "(cached) $ac_c" 1>&6
1214 if test -n "$YACC"; then
1215 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
1217 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1219 for ac_dir
in $ac_dummy; do
1220 test -z "$ac_dir" && ac_dir
=.
1221 if test -f $ac_dir/$ac_word; then
1222 ac_cv_prog_YACC
="$ac_prog"
1229 YACC
="$ac_cv_prog_YACC"
1230 if test -n "$YACC"; then
1231 echo "$ac_t""$YACC" 1>&6
1233 echo "$ac_t""no" 1>&6
1236 test -n "$YACC" && break
1238 test -n "$YACC" || YACC
="yacc"
1240 # Extract the first word of "ranlib", so it can be a program name with args.
1241 set dummy ranlib
; ac_word
=$2
1242 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1243 echo "configure:1244: checking for $ac_word" >&5
1244 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1245 echo $ac_n "(cached) $ac_c" 1>&6
1247 if test -n "$RANLIB"; then
1248 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1250 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1252 for ac_dir
in $ac_dummy; do
1253 test -z "$ac_dir" && ac_dir
=.
1254 if test -f $ac_dir/$ac_word; then
1255 ac_cv_prog_RANLIB
="ranlib"
1260 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1263 RANLIB
="$ac_cv_prog_RANLIB"
1264 if test -n "$RANLIB"; then
1265 echo "$ac_t""$RANLIB" 1>&6
1267 echo "$ac_t""no" 1>&6
1271 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
1272 if test -f $ac_dir/install-sh
; then
1274 ac_install_sh
="$ac_aux_dir/install-sh -c"
1276 elif test -f $ac_dir/install.sh
; then
1278 ac_install_sh
="$ac_aux_dir/install.sh -c"
1282 if test -z "$ac_aux_dir"; then
1283 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1285 ac_config_guess
=$ac_aux_dir/config.guess
1286 ac_config_sub
=$ac_aux_dir/config.sub
1287 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
1289 ac_dir
=`cd $ac_aux_dir; pwd`
1290 ac_install_sh
="$ac_dir/install-sh -c"
1291 # Find a good install program. We prefer a C program (faster),
1292 # so one script is as good as another. But avoid the broken or
1293 # incompatible versions:
1294 # SysV /etc/install, /usr/sbin/install
1295 # SunOS /usr/etc/install
1296 # IRIX /sbin/install
1298 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1299 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1300 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1301 # ./install, which can be erroneously created by make from ./install.sh.
1302 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1303 echo "configure:1304: checking for a BSD compatible install" >&5
1304 if test -z "$INSTALL"; then
1305 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1306 echo $ac_n "(cached) $ac_c" 1>&6
1308 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
1309 for ac_dir
in $PATH; do
1310 # Account for people who put trailing slashes in PATH elements.
1312 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1314 # OSF1 and SCO ODT 3.0 have their own names for install.
1315 # Don't use installbsd from OSF since it installs stuff as root
1317 for ac_prog
in ginstall scoinst
install; do
1318 if test -f $ac_dir/$ac_prog; then
1319 if test $ac_prog = install &&
1320 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1321 # AIX install. It has an incompatible calling convention.
1324 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1335 if test "${ac_cv_path_install+set}" = set; then
1336 INSTALL
="$ac_cv_path_install"
1338 # As a last resort, use the slow shell script. We don't cache a
1339 # path for INSTALL within a source directory, because that will
1340 # break other packages using the cache if that directory is
1341 # removed, or if the path is relative.
1342 INSTALL
="$ac_install_sh"
1345 echo "$ac_t""$INSTALL" 1>&6
1347 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1348 # It thinks the first close brace ends the variable substitution.
1349 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1351 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
1353 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1355 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1356 echo "configure:1357: checking whether ln -s works" >&5
1357 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1358 echo $ac_n "(cached) $ac_c" 1>&6
1361 if ln -s X conftestdata
2>/dev
/null
1364 ac_cv_prog_LN_S
="ln -s"
1369 LN_S
="$ac_cv_prog_LN_S"
1370 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1371 echo "$ac_t""yes" 1>&6
1373 echo "$ac_t""no" 1>&6
1376 echo $ac_n "checking for csh hash hack""... $ac_c" 1>&6
1377 echo "configure:1378: checking for csh hash hack" >&5
1378 cat <<EOF >conftest.sh
1381 export PATH || exit 0
1384 chmod +x conftest.sh
1385 if echo .
/conftest.sh |
(csh
>/dev
/null
2>&1) >/dev
/null
2>&1; then
1386 echo "$ac_t""yes" 1>&6; SH_SCRIPT_SED_CMD
='1s/.*/:/'
1388 echo "$ac_t""no" 1>&6; SH_SCRIPT_SED_CMD
=''
1392 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1393 echo "configure:1394: checking how to run the C preprocessor" >&5
1394 # On Suns, sometimes $CPP names a directory.
1395 if test -n "$CPP" && test -d "$CPP"; then
1398 if test -z "$CPP"; then
1399 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1400 echo $ac_n "(cached) $ac_c" 1>&6
1402 # This must be in double quotes, not single quotes, because CPP may get
1403 # substituted into the Makefile and "${CC-cc}" will confuse make.
1405 # On the NeXT, cc -E runs the code through the compiler's parser,
1406 # not just through cpp.
1407 cat > conftest.
$ac_ext <<EOF
1408 #line 1409 "configure"
1409 #include "confdefs.h"
1413 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1414 { (eval echo configure
:1415: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1415 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1416 if test -z "$ac_err"; then
1420 echo "configure: failed program was:" >&5
1421 cat conftest.
$ac_ext >&5
1423 CPP
="${CC-cc} -E -traditional-cpp"
1424 cat > conftest.
$ac_ext <<EOF
1425 #line 1426 "configure"
1426 #include "confdefs.h"
1430 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1431 { (eval echo configure
:1432: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1432 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1433 if test -z "$ac_err"; then
1437 echo "configure: failed program was:" >&5
1438 cat conftest.
$ac_ext >&5
1440 CPP
="${CC-cc} -nologo -E"
1441 cat > conftest.
$ac_ext <<EOF
1442 #line 1443 "configure"
1443 #include "confdefs.h"
1447 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1448 { (eval echo configure
:1449: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1449 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1450 if test -z "$ac_err"; then
1454 echo "configure: failed program was:" >&5
1455 cat conftest.
$ac_ext >&5
1464 ac_cv_prog_CPP
="$CPP"
1466 CPP
="$ac_cv_prog_CPP"
1468 ac_cv_prog_CPP
="$CPP"
1470 echo "$ac_t""$CPP" 1>&6
1472 for ac_hdr
in unistd.h dirent.h limits.h sys
/dir.h stdlib.h
1474 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1475 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1476 echo "configure:1477: checking for $ac_hdr" >&5
1477 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1478 echo $ac_n "(cached) $ac_c" 1>&6
1480 cat > conftest.
$ac_ext <<EOF
1481 #line 1482 "configure"
1482 #include "confdefs.h"
1485 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1486 { (eval echo configure
:1487: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1487 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1488 if test -z "$ac_err"; then
1490 eval "ac_cv_header_$ac_safe=yes"
1493 echo "configure: failed program was:" >&5
1494 cat conftest.
$ac_ext >&5
1496 eval "ac_cv_header_$ac_safe=no"
1500 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1501 echo "$ac_t""yes" 1>&6
1502 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1503 cat >> confdefs.h
<<EOF
1504 #define $ac_tr_hdr 1
1508 echo "$ac_t""no" 1>&6
1512 echo $ac_n "checking for ISC 3.x or 4.x""... $ac_c" 1>&6
1513 echo "configure:1514: checking for ISC 3.x or 4.x" >&5
1514 if grep '[34]\.' /usr
/options
/cb.name
>/dev
/null
2>&1
1516 echo "$ac_t""yes" 1>&6
1517 cat >> confdefs.h
<<\EOF
1522 echo "$ac_t""no" 1>&6
1524 echo $ac_n "checking whether -D_POSIX_SOURCE is necessary""... $ac_c" 1>&6
1525 echo "configure:1526: checking whether -D_POSIX_SOURCE is necessary" >&5
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 cat > conftest.
$ac_ext <<EOF
1535 #line 1536 "configure"
1536 #include "confdefs.h"
1538 extern "C" { void fileno(int); }
1543 if { (eval echo configure
:1544: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1545 echo "$ac_t""yes" 1>&6;cat >> confdefs.h
<<\EOF
1546 #define _POSIX_SOURCE 1
1550 echo "configure: failed program was:" >&5
1551 cat conftest.
$ac_ext >&5
1553 echo "$ac_t""no" 1>&6
1557 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1558 ac_cpp
='$CPP $CPPFLAGS'
1559 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1560 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1561 cross_compiling
=$ac_cv_prog_cc_cross
1565 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1566 ac_cpp
='$CXXCPP $CPPFLAGS'
1567 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1568 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1569 cross_compiling
=$ac_cv_prog_cxx_cross
1571 echo $ac_n "checking declaration of putenv""... $ac_c" 1>&6
1572 echo "configure:1573: checking declaration of putenv" >&5
1573 cat > conftest.
$ac_ext <<EOF
1574 #line 1575 "configure"
1575 #include "confdefs.h"
1577 extern "C" { void putenv(int); }
1582 if { (eval echo configure
:1583: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1584 echo "$ac_t""no" 1>&6
1586 echo "configure: failed program was:" >&5
1587 cat conftest.
$ac_ext >&5
1589 echo "$ac_t""yes" 1>&6;cat >> confdefs.h
<<\EOF
1590 #define STDLIB_H_DECLARES_PUTENV 1
1596 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1597 ac_cpp
='$CPP $CPPFLAGS'
1598 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1599 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1600 cross_compiling
=$ac_cv_prog_cc_cross
1604 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1605 ac_cpp
='$CXXCPP $CPPFLAGS'
1606 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1607 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1608 cross_compiling
=$ac_cv_prog_cxx_cross
1610 echo $ac_n "checking declaration of popen""... $ac_c" 1>&6
1611 echo "configure:1612: checking declaration of popen" >&5
1612 cat > conftest.
$ac_ext <<EOF
1613 #line 1614 "configure"
1614 #include "confdefs.h"
1616 extern "C" { void popen(int); }
1621 if { (eval echo configure
:1622: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1623 echo "$ac_t""no" 1>&6
1625 echo "configure: failed program was:" >&5
1626 cat conftest.
$ac_ext >&5
1628 echo "$ac_t""yes" 1>&6;cat >> confdefs.h
<<\EOF
1629 #define STDIO_H_DECLARES_POPEN 1
1635 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1636 ac_cpp
='$CPP $CPPFLAGS'
1637 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1638 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1639 cross_compiling
=$ac_cv_prog_cc_cross
1643 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1644 ac_cpp
='$CXXCPP $CPPFLAGS'
1645 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1646 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1647 cross_compiling
=$ac_cv_prog_cxx_cross
1649 echo $ac_n "checking declaration of pclose""... $ac_c" 1>&6
1650 echo "configure:1651: checking declaration of pclose" >&5
1651 cat > conftest.
$ac_ext <<EOF
1652 #line 1653 "configure"
1653 #include "confdefs.h"
1655 extern "C" { void pclose(int); }
1660 if { (eval echo configure
:1661: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1662 echo "$ac_t""no" 1>&6
1664 echo "configure: failed program was:" >&5
1665 cat conftest.
$ac_ext >&5
1667 echo "$ac_t""yes" 1>&6;cat >> confdefs.h
<<\EOF
1668 #define STDIO_H_DECLARES_PCLOSE 1
1674 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1675 ac_cpp
='$CPP $CPPFLAGS'
1676 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1677 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1678 cross_compiling
=$ac_cv_prog_cc_cross
1682 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1683 ac_cpp
='$CXXCPP $CPPFLAGS'
1684 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1685 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1686 cross_compiling
=$ac_cv_prog_cxx_cross
1688 echo $ac_n "checking for sys_nerr in <errno.h> or <stdio.h>""... $ac_c" 1>&6
1689 echo "configure:1690: checking for sys_nerr in <errno.h> or <stdio.h>" >&5
1690 cat > conftest.
$ac_ext <<EOF
1691 #line 1692 "configure"
1692 #include "confdefs.h"
1696 int k; k = sys_nerr;
1699 if { (eval echo configure
:1700: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1701 echo "$ac_t""yes" 1>&6;cat >> confdefs.h
<<\EOF
1702 #define HAVE_SYS_NERR 1
1706 echo "configure: failed program was:" >&5
1707 cat conftest.
$ac_ext >&5
1709 echo "$ac_t""no" 1>&6
1713 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1714 ac_cpp
='$CPP $CPPFLAGS'
1715 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1716 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1717 cross_compiling
=$ac_cv_prog_cc_cross
1721 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1722 ac_cpp
='$CXXCPP $CPPFLAGS'
1723 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1724 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1725 cross_compiling
=$ac_cv_prog_cxx_cross
1727 echo $ac_n "checking for sys_errlist in <errno.h> or <stdio.h>""... $ac_c" 1>&6
1728 echo "configure:1729: checking for sys_errlist in <errno.h> or <stdio.h>" >&5
1729 cat > conftest.
$ac_ext <<EOF
1730 #line 1731 "configure"
1731 #include "confdefs.h"
1735 int k; k = (int)sys_errlist[0];
1738 if { (eval echo configure
:1739: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1740 echo "$ac_t""yes" 1>&6;cat >> confdefs.h
<<\EOF
1741 #define HAVE_SYS_ERRLIST 1
1745 echo "configure: failed program was:" >&5
1746 cat conftest.
$ac_ext >&5
1748 echo "$ac_t""no" 1>&6
1752 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1753 ac_cpp
='$CPP $CPPFLAGS'
1754 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1755 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1756 cross_compiling
=$ac_cv_prog_cc_cross
1760 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1761 ac_cpp
='$CXXCPP $CPPFLAGS'
1762 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1763 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1764 cross_compiling
=$ac_cv_prog_cxx_cross
1766 echo $ac_n "checking declaration of hypot""... $ac_c" 1>&6
1767 echo "configure:1768: checking declaration of hypot" >&5
1768 cat > conftest.
$ac_ext <<EOF
1769 #line 1770 "configure"
1770 #include "confdefs.h"
1772 extern "C" { double hypot(double,double); }
1777 if { (eval echo configure
:1778: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1779 echo "$ac_t""no" 1>&6
1781 echo "configure: failed program was:" >&5
1782 cat conftest.
$ac_ext >&5
1784 echo "$ac_t""yes" 1>&6;cat >> confdefs.h
<<\EOF
1785 #define MATH_H_DECLARES_HYPOT 1
1791 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1792 ac_cpp
='$CPP $CPPFLAGS'
1793 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1794 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1795 cross_compiling
=$ac_cv_prog_cc_cross
1799 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1800 ac_cpp
='$CXXCPP $CPPFLAGS'
1801 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1802 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1803 cross_compiling
=$ac_cv_prog_cxx_cross
1805 echo $ac_n "checking C++ <osfcn.h>""... $ac_c" 1>&6
1806 echo "configure:1807: checking C++ <osfcn.h>" >&5
1807 cat > conftest.
$ac_ext <<EOF
1808 #line 1809 "configure"
1809 #include "confdefs.h"
1812 read(0, 0, 0); open(0, 0);
1815 if { (eval echo configure
:1816: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1817 echo "$ac_t""yes" 1>&6;cat >> confdefs.h
<<\EOF
1818 #define HAVE_CC_OSFCN_H 1
1822 echo "configure: failed program was:" >&5
1823 cat conftest.
$ac_ext >&5
1825 echo "$ac_t""no" 1>&6
1829 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1830 ac_cpp
='$CPP $CPPFLAGS'
1831 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1832 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1833 cross_compiling
=$ac_cv_prog_cc_cross
1837 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1838 ac_cpp
='$CXXCPP $CPPFLAGS'
1839 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1840 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1841 cross_compiling
=$ac_cv_prog_cxx_cross
1843 echo $ac_n "checking C++ <limits.h>""... $ac_c" 1>&6
1844 echo "configure:1845: checking C++ <limits.h>" >&5
1845 cat > conftest.
$ac_ext <<EOF
1846 #line 1847 "configure"
1847 #include "confdefs.h"
1850 int x = INT_MIN; int y = INT_MAX; int z = UCHAR_MAX;
1853 if { (eval echo configure
:1854: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1855 echo "$ac_t""yes" 1>&6;cat >> confdefs.h
<<\EOF
1856 #define HAVE_CC_LIMITS_H 1
1860 echo "configure: failed program was:" >&5
1861 cat conftest.
$ac_ext >&5
1863 echo "$ac_t""no" 1>&6
1867 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1868 ac_cpp
='$CPP $CPPFLAGS'
1869 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1870 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1871 cross_compiling
=$ac_cv_prog_cc_cross
1875 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1876 ac_cpp
='$CXXCPP $CPPFLAGS'
1877 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1878 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1879 cross_compiling
=$ac_cv_prog_cxx_cross
1881 echo $ac_n "checking for declaration of time_t""... $ac_c" 1>&6
1882 echo "configure:1883: checking for declaration of time_t" >&5
1883 cat > conftest.
$ac_ext <<EOF
1884 #line 1885 "configure"
1885 #include "confdefs.h"
1888 time_t t = time(0); struct tm *p = localtime(&t);
1891 if { (eval echo configure
:1892: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1893 echo "$ac_t""yes" 1>&6
1895 echo "configure: failed program was:" >&5
1896 cat conftest.
$ac_ext >&5
1898 echo "$ac_t""no" 1>&6;cat >> confdefs.h
<<\EOF
1899 #define LONG_FOR_TIME_T 1
1905 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1906 ac_cpp
='$CPP $CPPFLAGS'
1907 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1908 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1909 cross_compiling
=$ac_cv_prog_cc_cross
1911 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
1912 echo "configure:1913: checking return type of signal handlers" >&5
1913 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
1914 echo $ac_n "(cached) $ac_c" 1>&6
1916 cat > conftest.
$ac_ext <<EOF
1917 #line 1918 "configure"
1918 #include "confdefs.h"
1919 #include <sys/types.h>
1925 extern "C" void (*signal (int, void (*)(int)))(int);
1927 void (*signal ()) ();
1934 if { (eval echo configure
:1935: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1936 ac_cv_type_signal
=void
1938 echo "configure: failed program was:" >&5
1939 cat conftest.
$ac_ext >&5
1941 ac_cv_type_signal
=int
1946 echo "$ac_t""$ac_cv_type_signal" 1>&6
1947 cat >> confdefs.h
<<EOF
1948 #define RETSIGTYPE $ac_cv_type_signal
1952 echo $ac_n "checking struct exception""... $ac_c" 1>&6
1953 echo "configure:1954: checking struct exception" >&5
1954 cat > conftest.
$ac_ext <<EOF
1955 #line 1956 "configure"
1956 #include "confdefs.h"
1962 if { (eval echo configure
:1963: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1964 echo "$ac_t""yes" 1>&6;cat >> confdefs.h
<<\EOF
1965 #define HAVE_STRUCT_EXCEPTION 1
1969 echo "configure: failed program was:" >&5
1970 cat conftest.
$ac_ext >&5
1972 echo "$ac_t""no" 1>&6
1975 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
1976 echo "configure:1977: checking for sin in -lm" >&5
1977 ac_lib_var
=`echo m'_'sin | sed 'y%./+-%__p_%'`
1978 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1979 echo $ac_n "(cached) $ac_c" 1>&6
1981 ac_save_LIBS
="$LIBS"
1983 cat > conftest.
$ac_ext <<EOF
1984 #line 1985 "configure"
1985 #include "confdefs.h"
1986 /* Override any gcc2 internal prototype to avoid an error. */
1987 /* We use char because int might match the return type of a gcc2
1988 builtin and then its argument prototype would still apply. */
1995 if { (eval echo configure
:1996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1997 eval "ac_cv_lib_$ac_lib_var=yes"
1999 echo "configure: failed program was:" >&5
2000 cat conftest.
$ac_ext >&5
2002 eval "ac_cv_lib_$ac_lib_var=no"
2005 LIBS
="$ac_save_LIBS"
2008 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2009 echo "$ac_t""yes" 1>&6
2012 echo "$ac_t""no" 1>&6
2016 for ac_hdr
in unistd.h
2018 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2019 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2020 echo "configure:2021: checking for $ac_hdr" >&5
2021 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2022 echo $ac_n "(cached) $ac_c" 1>&6
2024 cat > conftest.
$ac_ext <<EOF
2025 #line 2026 "configure"
2026 #include "confdefs.h"
2029 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2030 { (eval echo configure
:2031: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2031 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2032 if test -z "$ac_err"; then
2034 eval "ac_cv_header_$ac_safe=yes"
2037 echo "configure: failed program was:" >&5
2038 cat conftest.
$ac_ext >&5
2040 eval "ac_cv_header_$ac_safe=no"
2044 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2045 echo "$ac_t""yes" 1>&6
2046 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2047 cat >> confdefs.h
<<EOF
2048 #define $ac_tr_hdr 1
2052 echo "$ac_t""no" 1>&6
2056 for ac_func
in getpagesize
2058 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2059 echo "configure:2060: checking for $ac_func" >&5
2060 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2061 echo $ac_n "(cached) $ac_c" 1>&6
2063 cat > conftest.
$ac_ext <<EOF
2064 #line 2065 "configure"
2065 #include "confdefs.h"
2066 /* System header to define __stub macros and hopefully few prototypes,
2067 which can conflict with char $ac_func(); below. */
2069 /* Override any gcc2 internal prototype to avoid an error. */
2070 /* We use char because int might match the return type of a gcc2
2071 builtin and then its argument prototype would still apply. */
2076 /* The GNU C library defines this for functions which it implements
2077 to always fail with ENOSYS. Some functions are actually named
2078 something starting with __ and the normal name is an alias. */
2079 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2087 if { (eval echo configure
:2088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2089 eval "ac_cv_func_$ac_func=yes"
2091 echo "configure: failed program was:" >&5
2092 cat conftest.
$ac_ext >&5
2094 eval "ac_cv_func_$ac_func=no"
2099 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2100 echo "$ac_t""yes" 1>&6
2101 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2102 cat >> confdefs.h
<<EOF
2103 #define $ac_tr_func 1
2107 echo "$ac_t""no" 1>&6
2111 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2112 echo "configure:2113: checking for working mmap" >&5
2113 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2114 echo $ac_n "(cached) $ac_c" 1>&6
2116 if test "$cross_compiling" = yes; then
2117 ac_cv_func_mmap_fixed_mapped
=no
2119 cat > conftest.
$ac_ext <<EOF
2120 #line 2121 "configure"
2121 #include "confdefs.h"
2123 /* Thanks to Mike Haertel and Jim Avera for this test.
2124 Here is a matrix of mmap possibilities:
2125 mmap private not fixed
2126 mmap private fixed at somewhere currently unmapped
2127 mmap private fixed at somewhere already mapped
2128 mmap shared not fixed
2129 mmap shared fixed at somewhere currently unmapped
2130 mmap shared fixed at somewhere already mapped
2131 For private mappings, we should verify that changes cannot be read()
2132 back from the file, nor mmap's back from the file at a different
2133 address. (There have been systems where private was not correctly
2134 implemented like the infamous i386 svr4.0, and systems where the
2135 VM page cache was not coherent with the filesystem buffer cache
2136 like early versions of FreeBSD and possibly contemporary NetBSD.)
2137 For shared mappings, we should conversely verify that changes get
2138 propogated back to all the places they're supposed to be.
2140 Grep wants private fixed already mapped.
2141 The main things grep needs to know about mmap are:
2142 * does it exist and is it safe to write into the mmap'd area
2143 * how to use it (BSD variants) */
2144 #include <sys/types.h>
2146 #include <sys/mman.h>
2148 /* This mess was copied from the GNU getpagesize.h. */
2149 #ifndef HAVE_GETPAGESIZE
2150 # ifdef HAVE_UNISTD_H
2151 # include <unistd.h>
2154 /* Assume that all systems that can run configure have sys/param.h. */
2155 # ifndef HAVE_SYS_PARAM_H
2156 # define HAVE_SYS_PARAM_H 1
2159 # ifdef _SC_PAGESIZE
2160 # define getpagesize() sysconf(_SC_PAGESIZE)
2161 # else /* no _SC_PAGESIZE */
2162 # ifdef HAVE_SYS_PARAM_H
2163 # include <sys/param.h>
2164 # ifdef EXEC_PAGESIZE
2165 # define getpagesize() EXEC_PAGESIZE
2166 # else /* no EXEC_PAGESIZE */
2168 # define getpagesize() NBPG * CLSIZE
2171 # endif /* no CLSIZE */
2172 # else /* no NBPG */
2174 # define getpagesize() NBPC
2175 # else /* no NBPC */
2177 # define getpagesize() PAGESIZE
2178 # endif /* PAGESIZE */
2179 # endif /* no NBPC */
2180 # endif /* no NBPG */
2181 # endif /* no EXEC_PAGESIZE */
2182 # else /* no HAVE_SYS_PARAM_H */
2183 # define getpagesize() 8192 /* punt totally */
2184 # endif /* no HAVE_SYS_PARAM_H */
2185 # endif /* no _SC_PAGESIZE */
2187 #endif /* no HAVE_GETPAGESIZE */
2190 extern "C" { void *malloc(unsigned); }
2198 char *data, *data2, *data3;
2202 pagesize = getpagesize();
2205 * First, make a file with some known garbage in it.
2207 data = malloc(pagesize);
2210 for (i = 0; i < pagesize; ++i)
2211 *(data + i) = rand();
2213 fd = creat("conftestmmap", 0600);
2216 if (write(fd, data, pagesize) != pagesize)
2221 * Next, try to mmap the file at a fixed address which
2222 * already has something else allocated at it. If we can,
2223 * also make sure that we see the same garbage.
2225 fd = open("conftestmmap", O_RDWR);
2228 data2 = malloc(2 * pagesize);
2231 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2232 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2233 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2235 for (i = 0; i < pagesize; ++i)
2236 if (*(data + i) != *(data2 + i))
2240 * Finally, make sure that changes to the mapped area
2241 * do not percolate back to the file as seen by read().
2242 * (This is a bug on some variants of i386 svr4.0.)
2244 for (i = 0; i < pagesize; ++i)
2245 *(data2 + i) = *(data2 + i) + 1;
2246 data3 = malloc(pagesize);
2249 if (read(fd, data3, pagesize) != pagesize)
2251 for (i = 0; i < pagesize; ++i)
2252 if (*(data + i) != *(data3 + i))
2255 unlink("conftestmmap");
2260 if { (eval echo configure
:2261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2262 ac_cv_func_mmap_fixed_mapped
=yes
2264 echo "configure: failed program was:" >&5
2265 cat conftest.
$ac_ext >&5
2267 ac_cv_func_mmap_fixed_mapped
=no
2274 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2275 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2276 cat >> confdefs.h
<<\EOF
2283 LIBS
="$LIBS -lc $LIBM"
2284 for ac_func
in fmod strtol getcwd strerror putenv
2286 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2287 echo "configure:2288: checking for $ac_func" >&5
2288 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2289 echo $ac_n "(cached) $ac_c" 1>&6
2291 cat > conftest.
$ac_ext <<EOF
2292 #line 2293 "configure"
2293 #include "confdefs.h"
2294 /* System header to define __stub macros and hopefully few prototypes,
2295 which can conflict with char $ac_func(); below. */
2297 /* Override any gcc2 internal prototype to avoid an error. */
2298 /* We use char because int might match the return type of a gcc2
2299 builtin and then its argument prototype would still apply. */
2304 /* The GNU C library defines this for functions which it implements
2305 to always fail with ENOSYS. Some functions are actually named
2306 something starting with __ and the normal name is an alias. */
2307 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2315 if { (eval echo configure
:2316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2317 eval "ac_cv_func_$ac_func=yes"
2319 echo "configure: failed program was:" >&5
2320 cat conftest.
$ac_ext >&5
2322 eval "ac_cv_func_$ac_func=no"
2327 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2328 echo "$ac_t""yes" 1>&6
2329 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2330 cat >> confdefs.h
<<EOF
2331 #define $ac_tr_func 1
2335 echo "$ac_t""no" 1>&6
2336 LIBOBJS
="$LIBOBJS ${ac_func}.${ac_objext}"
2342 for ac_func
in rename mkstemp strcasecmp strsep strdup
2344 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2345 echo "configure:2346: checking for $ac_func" >&5
2346 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2347 echo $ac_n "(cached) $ac_c" 1>&6
2349 cat > conftest.
$ac_ext <<EOF
2350 #line 2351 "configure"
2351 #include "confdefs.h"
2352 /* System header to define __stub macros and hopefully few prototypes,
2353 which can conflict with char $ac_func(); below. */
2355 /* Override any gcc2 internal prototype to avoid an error. */
2356 /* We use char because int might match the return type of a gcc2
2357 builtin and then its argument prototype would still apply. */
2362 /* The GNU C library defines this for functions which it implements
2363 to always fail with ENOSYS. Some functions are actually named
2364 something starting with __ and the normal name is an alias. */
2365 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2373 if { (eval echo configure
:2374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2375 eval "ac_cv_func_$ac_func=yes"
2377 echo "configure: failed program was:" >&5
2378 cat conftest.
$ac_ext >&5
2380 eval "ac_cv_func_$ac_func=no"
2385 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2386 echo "$ac_t""yes" 1>&6
2387 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2388 cat >> confdefs.h
<<EOF
2389 #define $ac_tr_func 1
2393 echo "$ac_t""no" 1>&6
2397 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
2398 echo "configure:2399: checking for sys_siglist declaration in signal.h or unistd.h" >&5
2399 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
2400 echo $ac_n "(cached) $ac_c" 1>&6
2402 cat > conftest.
$ac_ext <<EOF
2403 #line 2404 "configure"
2404 #include "confdefs.h"
2405 #include <sys/types.h>
2407 /* NetBSD declares sys_siglist in unistd.h. */
2408 #ifdef HAVE_UNISTD_H
2412 char *msg = *(sys_siglist + 1);
2415 if { (eval echo configure
:2416: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2417 ac_cv_decl_sys_siglist
=yes
2419 echo "configure: failed program was:" >&5
2420 cat conftest.
$ac_ext >&5
2422 ac_cv_decl_sys_siglist
=no
2427 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
2428 if test $ac_cv_decl_sys_siglist = yes; then
2429 cat >> confdefs.h
<<\EOF
2430 #define SYS_SIGLIST_DECLARED 1
2437 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2438 ac_cpp
='$CXXCPP $CPPFLAGS'
2439 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2440 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2441 cross_compiling
=$ac_cv_prog_cxx_cross
2443 echo $ac_n "checking whether ANSI array delete syntax supported""... $ac_c" 1>&6
2444 echo "configure:2445: checking whether ANSI array delete syntax supported" >&5
2445 cat > conftest.
$ac_ext <<EOF
2446 #line 2447 "configure"
2447 #include "confdefs.h"
2450 char *p = new char[5]; delete [] p;
2453 if { (eval echo configure
:2454: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2455 echo "$ac_t""yes" 1>&6
2457 echo "configure: failed program was:" >&5
2458 cat conftest.
$ac_ext >&5
2460 echo "$ac_t""no" 1>&6;cat >> confdefs.h
<<\EOF
2461 #define ARRAY_DELETE_NEEDS_SIZE 1
2467 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2468 ac_cpp
='$CPP $CPPFLAGS'
2469 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2470 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2471 cross_compiling
=$ac_cv_prog_cc_cross
2475 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2476 ac_cpp
='$CXXCPP $CPPFLAGS'
2477 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2478 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2479 cross_compiling
=$ac_cv_prog_cxx_cross
2481 echo $ac_n "checking traditional preprocessor""... $ac_c" 1>&6
2482 echo "configure:2483: checking traditional preprocessor" >&5
2483 cat > conftest.
$ac_ext <<EOF
2484 #line 2485 "configure"
2485 #include "confdefs.h"
2486 #define name2(a,b) a/**/b
2491 if { (eval echo configure
:2492: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2493 echo "$ac_t""yes" 1>&6;cat >> confdefs.h
<<\EOF
2494 #define TRADITIONAL_CPP 1
2498 echo "configure: failed program was:" >&5
2499 cat conftest.
$ac_ext >&5
2501 echo "$ac_t""no" 1>&6
2505 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2506 ac_cpp
='$CPP $CPPFLAGS'
2507 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2508 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2509 cross_compiling
=$ac_cv_prog_cc_cross
2511 echo $ac_n "checking w_coredump""... $ac_c" 1>&6
2512 echo "configure:2513: checking w_coredump" >&5
2513 if test "$cross_compiling" = yes; then
2514 echo "$ac_t""no" 1>&6
2516 cat > conftest.
$ac_ext <<EOF
2517 #line 2518 "configure"
2518 #include "confdefs.h"
2519 #include <sys/types.h>
2520 #include <sys/wait.h>
2527 ((union wait *)&i)->w_coredump = 1;
2532 if { (eval echo configure
:2533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2534 echo "$ac_t""yes" 1>&6;cat >> confdefs.h
<<\EOF
2535 #define WCOREFLAG 0200
2539 echo "configure: failed program was:" >&5
2540 cat conftest.
$ac_ext >&5
2542 echo "$ac_t""no" 1>&6
2547 echo $ac_n "checking default value for grops -b option""... $ac_c" 1>&6
2548 echo "configure:2549: checking default value for grops -b option" >&5
2549 test -n "${BROKEN_SPOOLER_FLAGS}" || BROKEN_SPOOLER_FLAGS
=7
2550 echo "$ac_t""$BROKEN_SPOOLER_FLAGS" 1>&6
2552 echo $ac_n "checking default paper size""... $ac_c" 1>&6
2553 echo "configure:2554: checking default paper size" >&5
2554 if test -z "$PAGE"; then
2556 if test -r $prefix/share
/groff
/font
/devps
/DESC
; then
2557 descfile
=$prefix/share
/groff
/font
/devps
/DESC
2558 elif test -r $prefix/lib
/groff
/font
/devps
/DESC
; then
2559 descfile
=$prefix/lib
/groff
/font
/devps
/DESC
2561 if test -n "$descfile" \
2562 && grep "^paperlength 841890" $descfile >/dev
/null
2>&1; then
2568 if test -z "$PAGE"; then
2569 dom
=`awk '($1 == "dom" || $1 == "search") { print $2; exit}' \
2570 /etc/resolv.conf 2>/dev/null`
2571 if test -z "$dom"; then
2572 dom
=`(domainname) 2>/dev/null | tr -d '+'`
2573 if test -z "$dom"; then
2574 dom
=`(hostname) 2>/dev/null | grep '\.'`
2577 # If the top-level domain is two letters and it's not `us' or `ca'
2578 # then they probably use A4 paper.
2580 *.
[Uu
][Ss
]|
*.
[Cc
][Aa
]) ;;
2581 *.
[A-Za-z
][A-Za-z
]) PAGE
=A4
;;
2584 test -n "$PAGE" || PAGE
=letter
2585 echo "$ac_t""$PAGE" 1>&6
2587 echo $ac_n "checking for existing troff installation""... $ac_c" 1>&6
2588 echo "configure:2589: checking for existing troff installation" >&5
2589 if test "x`(echo .tm '|n(.g' | tr '|' '\\\\' | troff -z -i 2>&1) 2>/dev/null`" = x0
; then
2590 echo "$ac_t""yes" 1>&6
2593 echo "$ac_t""no" 1>&6
2597 echo $ac_n "checking for prefix of system macro packages""... $ac_c" 1>&6
2598 echo "configure:2599: checking for prefix of system macro packages" >&5
2600 sys_tmac_file_prefix
=
2601 for d
in /usr
/share
/lib
/tmac
/usr
/lib
/tmac
; do
2602 for t
in "" tmac.
; do
2605 if test -z "$sys_tmac_prefix" \
2607 && grep '^\.if' $f >/dev
/null
2>&1; then
2608 sys_tmac_prefix
=$d/$t
2609 sys_tmac_file_prefix
=$t
2614 echo "$ac_t""$sys_tmac_prefix" 1>&6
2617 echo $ac_n "checking which system macro packages should be made available""... $ac_c" 1>&6
2618 echo "configure:2619: checking which system macro packages should be made available" >&5
2619 if test "x$sys_tmac_file_prefix" = "xtmac."; then
2620 for f
in $sys_tmac_prefix*; do
2621 suff
=`echo $f | sed -e "s;$sys_tmac_prefix;;"`
2625 grep "Copyright.*Free Software Foundation" $f >/dev
/null \
2626 || tmac_wrap
="$tmac_wrap $suff" ;;
2629 elif test -n "$sys_tmac_prefix"; then
2630 files
=`echo $sys_tmac_prefix*`
2631 grep "\\.so" $files >conftest.sol
2634 ${sys_tmac_prefix}e
) ;;
2639 if grep "\\.so.*/$b\$" conftest.sol
>/dev
/null \
2640 ||
grep -l "Copyright.*Free Software Foundation" $f >/dev
/null
; then
2643 suff
=`echo $f | sed -e "s;$sys_tmac_prefix;;"`
2646 *) tmac_wrap
="$tmac_wrap $suff" ;;
2653 echo "$ac_t""$tmac_wrap" 1>&6
2655 $srcdir/mkinstalldirs src
/xditview
2657 cat > confcache
<<\EOF
2658 # This file is a shell script that caches the results of configure
2659 # tests run on this system so they can be shared between configure
2660 # scripts and configure runs. It is not useful on other systems.
2661 # If it contains results you don't want to keep, you may remove or edit it.
2663 # By default, configure uses ./config.cache as the cache file,
2664 # creating it if it does not exist already. You can give configure
2665 # the --cache-file=FILE option to use a different cache file; that is
2666 # what configure does when it calls configure scripts in
2667 # subdirectories, so they share the cache.
2668 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2669 # config.status only pays attention to the cache file if you give it the
2670 # --recheck option to rerun configure.
2673 # The following way of writing the cache mishandles newlines in values,
2674 # but we know of no workaround that is simple, portable, and efficient.
2675 # So, don't put newlines in cache variables' values.
2676 # Ultrix sh set writes to stderr and can't be redirected directly,
2677 # and sets the high bit in the cache file unless we assign to the vars.
2679 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2681 # `set' does not quote correctly, so add quotes (double-quote substitution
2682 # turns \\\\ into \\, and sed turns \\ into \).
2684 -e "s/'/'\\\\''/g" \
2685 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2688 # `set' quotes correctly as required by POSIX, so do not add quotes.
2689 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2692 if cmp -s $cache_file confcache
; then
2695 if test -w $cache_file; then
2696 echo "updating cache $cache_file"
2697 cat confcache
> $cache_file
2699 echo "not updating unwritable cache $cache_file"
2704 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2706 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
2707 # Let make expand exec_prefix.
2708 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
2710 # Any assignment to VPATH causes Sun make to only execute
2711 # the first set of double-colon rules, so remove it if not needed.
2712 # If there is a colon in the path, we need to keep it.
2713 if test "x$srcdir" = x.
; then
2714 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
2717 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2719 # Transform confdefs.h into DEFS.
2720 # Protect against shell expansion while executing Makefile rules.
2721 # Protect against Makefile macro expansion.
2722 cat > conftest.defs
<<\EOF
2723 s
%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
2724 s
%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
2729 if test "$groff_cv_os390" = "yes"; then
2730 DEFS=`sed -f conftest.defs confdefs.h |
tr '\n' ' '`
2732 DEFS=`sed -f conftest.defs confdefs.h |
tr '\012' ' '`
2737 # Without the "./", some shells look in PATH for config.status.
2738 : ${CONFIG_STATUS=./config.status}
2740 echo creating $CONFIG_STATUS
2741 rm -f $CONFIG_STATUS
2742 cat > $CONFIG_STATUS <<EOF
2744 # Generated automatically by configure.
2745 # Run this file to recreate the current configuration.
2746 # This directory was configured as follows,
2747 # on host `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`:
2749 # $0 $ac_configure_args
2751 # Compiler output produced by configure, useful for debugging
2752 # configure, is in ./config.log if it exists.
2754 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2757 case "\$ac_option" in
2758 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2759 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2760 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2761 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2762 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2764 -help | --help | --hel | --he | --h)
2765 echo "\$ac_cs_usage"; exit 0 ;;
2766 *) echo "\$ac_cs_usage"; exit 1 ;;
2770 ac_given_srcdir=$srcdir
2771 ac_given_INSTALL="$INSTALL"
2773 trap 'rm -fr `echo "Makefile src/xditview/Imakefile" |
sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2775 cat >> $CONFIG_STATUS <<EOF
2777 # Protect against being on the right side of a sed subst in config.status.
2778 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2779 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2783 s%@CFLAGS@%$CFLAGS%g
2784 s%@CPPFLAGS@%$CPPFLAGS%g
2785 s%@CXXFLAGS@%$CXXFLAGS%g
2786 s%@FFLAGS@%$FFLAGS%g
2788 s%@LDFLAGS@%$LDFLAGS%g
2790 s%@exec_prefix@%$exec_prefix%g
2791 s%@prefix@%$prefix%g
2792 s%@program_transform_name@%$program_transform_name%g
2793 s%@bindir@%$bindir%g
2794 s%@sbindir@%$sbindir%g
2795 s%@libexecdir@%$libexecdir%g
2796 s%@datadir@%$datadir%g
2797 s%@sysconfdir@%$sysconfdir%g
2798 s%@sharedstatedir@%$sharedstatedir%g
2799 s%@localstatedir@%$localstatedir%g
2800 s%@libdir@%$libdir%g
2801 s%@includedir@%$includedir%g
2802 s%@oldincludedir@%$oldincludedir%g
2803 s%@infodir@%$infodir%g
2804 s%@mandir@%$mandir%g
2805 s%@top_builddir@%$top_builddir%g
2811 s%@PSPRINT@%$PSPRINT%g
2812 s%@DVIPRINT@%$DVIPRINT%g
2813 s%@PERLPATH@%$PERLPATH%g
2815 s%@RANLIB@%$RANLIB%g
2816 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2817 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2818 s%@INSTALL_DATA@%$INSTALL_DATA%g
2820 s%@SH_SCRIPT_SED_CMD@%$SH_SCRIPT_SED_CMD%g
2823 s%@LIBOBJS@%$LIBOBJS%g
2824 s%@BROKEN_SPOOLER_FLAGS@%$BROKEN_SPOOLER_FLAGS%g
2827 s%@sys_tmac_prefix@%$sys_tmac_prefix%g
2828 s%@tmac_wrap@%$tmac_wrap%g
2833 cat >> $CONFIG_STATUS <<\EOF
2835 # Split the substitutions into bite-sized pieces for seds with
2836 # small command number limits, like on Digital OSF/1 and HP-UX.
2837 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2838 ac_file=1 # Number of current file.
2839 ac_beg=1 # First line for current file.
2840 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2843 while $ac_more_lines; do
2844 if test $ac_beg -gt 1; then
2845 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2847 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2849 if test ! -s conftest.s$ac_file; then
2851 rm -f conftest.s$ac_file
2853 if test -z "$ac_sed_cmds"; then
2854 ac_sed_cmds="sed -f conftest.s$ac_file"
2856 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2858 ac_file=`expr $ac_file + 1`
2860 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2863 if test -z "$ac_sed_cmds"; then
2868 cat >> $CONFIG_STATUS <<EOF
2870 CONFIG_FILES=\${CONFIG_FILES-"Makefile src/xditview/Imakefile"}
2872 cat >> $CONFIG_STATUS <<\EOF
2873 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2874 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2876 *:*) ac_file_in=`echo "$ac_file"|
sed 's%[^:]*:%%'`
2877 ac_file=`echo "$ac_file"|
sed 's%:.*%%'` ;;
2878 *) ac_file_in="${ac_file}.in" ;;
2881 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2883 # Remove last slash and all that follows it. Not all systems have dirname.
2884 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
2885 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2886 # The file is in a subdirectory.
2887 test ! -d "$ac_dir" && mkdir "$ac_dir"
2888 ac_dir_suffix="/`echo $ac_dir|
sed 's%^\./%%'`"
2889 # A "../" for each directory in $ac_dir_suffix.
2890 ac_dots=`echo $ac_dir_suffix|
sed 's%/[^/]*%../%g'`
2892 ac_dir_suffix= ac_dots=
2895 case "$ac_given_srcdir" in
2897 if test -z "$ac_dots"; then top_srcdir=.
2898 else top_srcdir=`echo $ac_dots|
sed 's%/$%%'`; fi ;;
2899 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2901 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2902 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2905 case "$ac_given_INSTALL" in
2906 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2907 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2910 echo creating "$ac_file"
2912 configure_input="Generated automatically from `echo $ac_file_in|
sed 's%.*/%%'` by configure."
2914 *Makefile*) ac_comsub="1i\\
2915 # $configure_input" ;;
2919 ac_file_inputs=`echo $ac_file_in|
sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2921 s%@configure_input@%$configure_input%g
2922 s%@srcdir@%$srcdir%g
2923 s%@top_srcdir@%$top_srcdir%g
2924 s%@INSTALL@%$INSTALL%g
2925 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2930 cat >> $CONFIG_STATUS <<EOF
2933 cat >> $CONFIG_STATUS <<\EOF
2937 chmod +x $CONFIG_STATUS
2938 rm -fr confdefs* $ac_clean_files
2939 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1