3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.7
5 # Copyright (C) 1992, 1993, 1994 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:
16 # Initialize some variables set by options.
17 # The variables have the same names as the options, with
18 # dashes changed to underlines.
20 cache_file
=.
/config.cache
29 program_transform_name
=s
,x
,x
,
37 bindir
='${exec_prefix}/bin'
38 sbindir
='${exec_prefix}/sbin'
39 libexecdir
='${exec_prefix}/libexec'
40 datadir
='${prefix}/share'
41 sysconfdir
='${prefix}/etc'
42 sharedstatedir
='${prefix}/com'
43 localstatedir
='${prefix}/var'
44 libdir
='${exec_prefix}/lib'
45 includedir
='${prefix}/include'
46 oldincludedir
='/usr/include'
47 infodir
='${prefix}/info'
48 mandir
='${prefix}/man'
50 # Initialize some other variables.
58 # If the previous option needs an argument, assign it.
59 if test -n "$ac_prev"; then
60 eval "$ac_prev=\$ac_option"
66 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
70 # Accept the important Cygnus configure options, so we can diagnose typos.
74 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
76 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
77 bindir
="$ac_optarg" ;;
79 -build |
--build |
--buil |
--bui |
--bu)
81 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
84 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
85 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
87 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
88 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
89 cache_file
="$ac_optarg" ;;
91 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
93 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
95 datadir
="$ac_optarg" ;;
97 -disable-* |
--disable-*)
98 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
99 # Reject names that are not valid shell variable names.
100 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
101 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
103 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
104 eval "enable_${ac_feature}=no" ;;
106 -enable-* |
--enable-*)
107 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
108 # Reject names that are not valid shell variable names.
109 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
110 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
112 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
117 eval "enable_${ac_feature}='$ac_optarg'" ;;
119 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
120 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
121 |
--exec |
--exe |
--ex)
122 ac_prev
=exec_prefix
;;
123 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
124 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
125 |
--exec=* |
--exe=* |
--ex=*)
126 exec_prefix
="$ac_optarg" ;;
128 -gas |
--gas |
--ga |
--g)
129 # Obsolete; use --with-gas.
132 -help |
--help |
--hel |
--he)
133 # Omit some internal or obsolete options to make the list less imposing.
134 # This message is too long to be a string in the A/UX 3.1 sh.
136 Usage: configure [options] [host]
137 Options: [defaults in brackets after descriptions]
139 --cache-file=FILE cache test results in FILE
140 --help print this message
141 --no-create do not create output files
142 --quiet, --silent do not print \`checking...' messages
143 --version print the version of autoconf that created configure
144 Directory and file names:
145 --prefix=PREFIX install architecture-independent files in PREFIX
147 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
149 --bindir=DIR user executables in DIR [EPREFIX/bin]
150 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
151 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
152 --datadir=DIR read-only architecture-independent data in DIR
154 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
155 --sharedstatedir=DIR modifiable architecture-independent data in DIR
157 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
158 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
159 --includedir=DIR C header files in DIR [PREFIX/include]
160 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
161 --infodir=DIR info documentation in DIR [PREFIX/info]
162 --mandir=DIR man documentation in DIR [PREFIX/man]
163 --srcdir=DIR find the sources in DIR [configure dir or ..]
164 --program-prefix=PREFIX prepend PREFIX to installed program names
165 --program-suffix=SUFFIX append SUFFIX to installed program names
166 --program-transform-name=PROGRAM
167 run sed PROGRAM on installed program names
171 --build=BUILD configure for building on BUILD [BUILD=HOST]
172 --host=HOST configure for HOST [guessed]
173 --target=TARGET configure for TARGET [TARGET=HOST]
174 Features and packages:
175 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
176 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
177 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
178 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
179 --x-includes=DIR X include files are in DIR
180 --x-libraries=DIR X library files are in DIR
182 if test -n "$ac_help"; then
183 echo "--enable and --with options recognized:$ac_help"
187 -host |
--host |
--hos |
--ho)
189 -host=* |
--host=* |
--hos=* |
--ho=*)
192 -includedir |
--includedir |
--includedi |
--included |
--include \
193 |
--includ |
--inclu |
--incl |
--inc)
194 ac_prev
=includedir
;;
195 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
196 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
197 includedir
="$ac_optarg" ;;
199 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
201 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
202 infodir
="$ac_optarg" ;;
204 -libdir |
--libdir |
--libdi |
--libd)
206 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
207 libdir
="$ac_optarg" ;;
209 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
210 |
--libexe |
--libex |
--libe)
211 ac_prev
=libexecdir
;;
212 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
213 |
--libexe=* |
--libex=* |
--libe=*)
214 libexecdir
="$ac_optarg" ;;
216 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
217 |
--localstate |
--localstat |
--localsta |
--localst \
218 |
--locals |
--local |
--loca |
--loc |
--lo)
219 ac_prev
=localstatedir
;;
220 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
221 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
222 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
223 localstatedir
="$ac_optarg" ;;
225 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
227 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
228 mandir
="$ac_optarg" ;;
231 # Obsolete; use --without-fp.
234 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
238 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
239 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
242 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
243 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
244 |
--oldin |
--oldi |
--old |
--ol |
--o)
245 ac_prev
=oldincludedir
;;
246 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
247 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
248 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
249 oldincludedir
="$ac_optarg" ;;
251 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
253 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
254 prefix
="$ac_optarg" ;;
256 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
257 |
--program-pre |
--program-pr |
--program-p)
258 ac_prev
=program_prefix
;;
259 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
260 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
261 program_prefix
="$ac_optarg" ;;
263 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
264 |
--program-suf |
--program-su |
--program-s)
265 ac_prev
=program_suffix
;;
266 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
267 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
268 program_suffix
="$ac_optarg" ;;
270 -program-transform-name |
--program-transform-name \
271 |
--program-transform-nam |
--program-transform-na \
272 |
--program-transform-n |
--program-transform- \
273 |
--program-transform |
--program-transfor \
274 |
--program-transfo |
--program-transf \
275 |
--program-trans |
--program-tran \
276 |
--progr-tra |
--program-tr |
--program-t)
277 ac_prev
=program_transform_name
;;
278 -program-transform-name=* |
--program-transform-name=* \
279 |
--program-transform-nam=* |
--program-transform-na=* \
280 |
--program-transform-n=* |
--program-transform-=* \
281 |
--program-transform=* |
--program-transfor=* \
282 |
--program-transfo=* |
--program-transf=* \
283 |
--program-trans=* |
--program-tran=* \
284 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
285 program_transform_name
="$ac_optarg" ;;
287 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
288 |
-silent |
--silent |
--silen |
--sile |
--sil)
291 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
293 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
295 sbindir
="$ac_optarg" ;;
297 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
298 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
299 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
301 ac_prev
=sharedstatedir
;;
302 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
303 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
304 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
306 sharedstatedir
="$ac_optarg" ;;
308 -site |
--site |
--sit)
310 -site=* |
--site=* |
--sit=*)
313 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
315 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
316 srcdir
="$ac_optarg" ;;
318 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
319 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
320 ac_prev
=sysconfdir
;;
321 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
322 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
323 sysconfdir
="$ac_optarg" ;;
325 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
327 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
328 target
="$ac_optarg" ;;
330 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
333 -version |
--version |
--versio |
--versi |
--vers)
334 echo "configure generated by autoconf version 2.7"
338 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
339 # Reject names that are not valid shell variable names.
340 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
341 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
343 ac_package
=`echo $ac_package| sed 's/-/_/g'`
348 eval "with_${ac_package}='$ac_optarg'" ;;
350 -without-* |
--without-*)
351 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
352 # Reject names that are not valid shell variable names.
353 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
354 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
356 ac_package
=`echo $ac_package| sed 's/-/_/g'`
357 eval "with_${ac_package}=no" ;;
360 # Obsolete; use --with-x.
363 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
364 |
--x-incl |
--x-inc |
--x-in |
--x-i)
365 ac_prev
=x_includes
;;
366 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
367 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
368 x_includes
="$ac_optarg" ;;
370 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
371 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
372 ac_prev
=x_libraries
;;
373 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
374 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
375 x_libraries
="$ac_optarg" ;;
377 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
381 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
382 echo "configure: warning: $ac_option: invalid host type" 1>&2
384 if test "x$nonopt" != xNONE
; then
385 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
393 if test -n "$ac_prev"; then
394 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
397 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
399 # File descriptor usage:
402 # 2 errors and warnings
403 # 3 some systems may open it to /dev/tty
404 # 4 used on the Kubota Titan
405 # 6 checking for... messages and results
406 # 5 compiler messages saved in config.log
407 if test "$silent" = yes; then
415 This file contains any messages produced by compilers while
416 running configure, to aid debugging if configure makes a mistake.
419 # Strip out --no-create and --no-recursion so they do not pile up.
420 # Also quote any args containing shell metacharacters.
425 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
426 |
--no-cr |
--no-c) ;;
427 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
428 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
429 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
430 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
431 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
436 # Only set LANG and LC_ALL to C if already set.
437 # These must not be set unconditionally because not all systems understand
438 # e.g. LANG=C (notably SCO).
439 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
440 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
442 # confdefs.h avoids OS command line length limits that DEFS can exceed.
443 rm -rf conftest
* confdefs.h
444 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
447 # A filename unique to this package, relative to the directory that
448 # configure is in, which we can look for to find out if srcdir is correct.
449 ac_unique_file
=webclient.c
451 # Find the source files, if location was not specified.
452 if test -z "$srcdir"; then
453 ac_srcdir_defaulted
=yes
454 # Try the directory containing this script, then its parent.
456 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
457 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
459 if test ! -r $srcdir/$ac_unique_file; then
463 ac_srcdir_defaulted
=no
465 if test ! -r $srcdir/$ac_unique_file; then
466 if test "$ac_srcdir_defaulted" = yes; then
467 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
469 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
472 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
474 # Prefer explicitly selected file to automatically selected ones.
475 if test -z "$CONFIG_SITE"; then
476 if test "x$prefix" != xNONE
; then
477 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
479 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
482 for ac_site_file
in $CONFIG_SITE; do
483 if test -r "$ac_site_file"; then
484 echo "loading site script $ac_site_file"
489 if test -r "$cache_file"; then
490 echo "loading cache $cache_file"
493 echo "creating cache $cache_file"
498 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
499 ac_cpp
='echo $CPP $CPPFLAGS 1>&5;
501 ac_compile
='echo ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5;
502 ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5 2>&5'
503 ac_link
='echo ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5;
504 ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5 2>&5'
506 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
507 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
508 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
515 ac_n
= ac_c
='\c' ac_t
=
522 cat >> confdefs.h
<<EOF
523 #define PRODUCT "$PRODUCT"
526 cat >> confdefs.h
<<EOF
527 #define VERSION "$VERSION"
536 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
537 if test -f $ac_dir/install-sh
; then
539 ac_install_sh
="$ac_aux_dir/install-sh -c"
541 elif test -f $ac_dir/install.sh
; then
543 ac_install_sh
="$ac_aux_dir/install.sh -c"
547 if test -z "$ac_aux_dir"; then
548 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
550 ac_config_guess
=$ac_aux_dir/config.guess
551 ac_config_sub
=$ac_aux_dir/config.sub
552 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
555 # Do some error checking and defaulting for the host and target type.
557 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
560 # 1. You are not allowed to specify --host, --target, and nonopt at the
562 # 2. Host defaults to nonopt.
563 # 3. If nonopt is not specified, then host defaults to the current host,
564 # as determined by config.guess.
565 # 4. Target and build default to nonopt.
566 # 5. If nonopt is not specified, then target and build default to host.
568 # The aliases save the names the user supplied, while $host etc.
569 # will get canonicalized.
570 case $host---$target---$nonopt in
571 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
572 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
576 # Make sure we can run config.sub.
577 if $ac_config_sub sun4
>/dev
/null
2>&1; then :
578 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
581 echo $ac_n "checking host system type""... $ac_c" 1>&6
584 case "$host_alias" in
588 if host_alias
=`$ac_config_guess`; then :
589 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
591 *) host_alias
=$nonopt ;;
595 host=`$ac_config_sub $host_alias`
596 host_cpu
=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
597 host_vendor
=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
598 host_os
=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
599 echo "$ac_t""$host" 1>&6
601 echo $ac_n "checking target system type""... $ac_c" 1>&6
604 case "$target_alias" in
607 NONE
) target_alias
=$host_alias ;;
608 *) target_alias
=$nonopt ;;
612 target
=`$ac_config_sub $target_alias`
613 target_cpu
=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
614 target_vendor
=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
615 target_os
=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
616 echo "$ac_t""$target" 1>&6
618 echo $ac_n "checking build system type""... $ac_c" 1>&6
621 case "$build_alias" in
624 NONE
) build_alias
=$host_alias ;;
625 *) build_alias
=$nonopt ;;
629 build
=`$ac_config_sub $build_alias`
630 build_cpu
=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
631 build_vendor
=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
632 build_os
=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
633 echo "$ac_t""$build" 1>&6
635 test "$host_alias" != "$target_alias" &&
636 test "$program_prefix$program_suffix$program_transform_name" = \
638 program_prefix
=${target_alias}-
642 # checks for programs
644 # Extract the first word of "gcc", so it can be a program name with args.
645 set dummy gcc
; ac_word
=$2
646 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
647 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
648 echo $ac_n "(cached) $ac_c" 1>&6
650 if test -n "$CC"; then
651 ac_cv_prog_CC
="$CC" # Let the user override the test.
653 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
654 for ac_dir
in $PATH; do
655 test -z "$ac_dir" && ac_dir
=.
656 if test -f $ac_dir/$ac_word; then
662 test -z "$ac_cv_prog_CC" && ac_cv_prog_CC
="cc"
666 if test -n "$CC"; then
667 echo "$ac_t""$CC" 1>&6
669 echo "$ac_t""no" 1>&6
673 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
674 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
675 echo $ac_n "(cached) $ac_c" 1>&6
677 cat > conftest.c
<<EOF
682 if ${CC-cc} -E conftest.c
2>&5 |
egrep yes >/dev
/null
2>&1; then
689 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
690 if test $ac_cv_prog_gcc = yes; then
692 if test "${CFLAGS+set}" != set; then
693 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
694 if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then
695 echo $ac_n "(cached) $ac_c" 1>&6
697 echo 'void f(){}' > conftest.c
698 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
707 echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
708 if test $ac_cv_prog_gcc_g = yes; then
716 test "${CFLAGS+set}" = set || CFLAGS
="-g"
719 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
720 set dummy
${MAKE-make}; ac_make
=$2
721 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
722 echo $ac_n "(cached) $ac_c" 1>&6
724 cat > conftestmake
<<\EOF
726 @
echo 'ac_maketemp="${MAKE}"'
728 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
729 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
730 if test -n "$ac_maketemp"; then
731 eval ac_cv_prog_make_
${ac_make}_set
=yes
733 eval ac_cv_prog_make_
${ac_make}_set
=no
737 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
738 echo "$ac_t""yes" 1>&6
741 echo "$ac_t""no" 1>&6
742 SET_MAKE
="MAKE=${MAKE-make}"
745 for ac_prog
in mawk gawk nawk
awk
747 # Extract the first word of "$ac_prog", so it can be a program name with args.
748 set dummy
$ac_prog; ac_word
=$2
749 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
750 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
751 echo $ac_n "(cached) $ac_c" 1>&6
753 if test -n "$AWK"; then
754 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
756 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
757 for ac_dir
in $PATH; do
758 test -z "$ac_dir" && ac_dir
=.
759 if test -f $ac_dir/$ac_word; then
760 ac_cv_prog_AWK
="$ac_prog"
767 AWK
="$ac_cv_prog_AWK"
768 if test -n "$AWK"; then
769 echo "$ac_t""$AWK" 1>&6
771 echo "$ac_t""no" 1>&6
774 test -n "$AWK" && break
779 # We use a path for perl so the #! line in bin/wscollect.pl will work.
780 # Extract the first word of "perl", so it can be a program name with args.
781 set dummy perl
; ac_word
=$2
782 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
783 if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
784 echo $ac_n "(cached) $ac_c" 1>&6
788 ac_cv_path_PERL
="$PERL" # Let the user override the test with a path.
791 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
792 for ac_dir
in $PATH; do
793 test -z "$ac_dir" && ac_dir
=.
794 if test -f $ac_dir/$ac_word; then
795 ac_cv_path_PERL
="$ac_dir/$ac_word"
800 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL
="no"
804 PERL
="$ac_cv_path_PERL"
805 if test -n "$PERL"; then
806 echo "$ac_t""$PERL" 1>&6
808 echo "$ac_t""no" 1>&6
813 if test "$PERL" != no
; then
814 PERL_SCRIPTS
="bin/wscollect.pl"
816 echo "configure: warning: Some functions may work correctly" 1>&2
820 # checks for libraries
822 # Replace `main' with a function in -lm:
823 echo $ac_n "checking for -lm""... $ac_c" 1>&6
824 ac_lib_var
=`echo m | tr '.-/+' '___p'`
825 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
826 echo $ac_n "(cached) $ac_c" 1>&6
830 cat > conftest.
$ac_ext <<EOF
831 #line 832 "configure"
832 #include "confdefs.h"
834 int main() { return 0; }
839 if eval $ac_link; then
841 eval "ac_cv_lib_$ac_lib_var=yes"
844 eval "ac_cv_lib_$ac_lib_var=no"
850 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
851 echo "$ac_t""yes" 1>&6
852 ac_tr_lib
=HAVE_LIB
`echo m | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
853 cat >> confdefs.h
<<EOF
860 echo "$ac_t""no" 1>&6
863 echo $ac_n "checking for -lcompat""... $ac_c" 1>&6
864 ac_lib_var
=`echo compat | tr '.-/+' '___p'`
865 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
866 echo $ac_n "(cached) $ac_c" 1>&6
869 LIBS
="-lcompat $LIBS"
870 cat > conftest.
$ac_ext <<EOF
871 #line 872 "configure"
872 #include "confdefs.h"
874 int main() { return 0; }
879 if eval $ac_link; then
881 eval "ac_cv_lib_$ac_lib_var=yes"
884 eval "ac_cv_lib_$ac_lib_var=no"
890 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
891 echo "$ac_t""yes" 1>&6
892 ac_tr_lib
=HAVE_LIB
`echo compat | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
893 cat >> confdefs.h
<<EOF
897 LIBS
="-lcompat $LIBS"
900 echo "$ac_t""no" 1>&6
903 echo $ac_n "checking for -lucb""... $ac_c" 1>&6
904 ac_lib_var
=`echo ucb | tr '.-/+' '___p'`
905 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
906 echo $ac_n "(cached) $ac_c" 1>&6
910 cat > conftest.
$ac_ext <<EOF
911 #line 912 "configure"
912 #include "confdefs.h"
914 int main() { return 0; }
919 if eval $ac_link; then
921 eval "ac_cv_lib_$ac_lib_var=yes"
924 eval "ac_cv_lib_$ac_lib_var=no"
930 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
931 echo "$ac_t""yes" 1>&6
932 ac_tr_lib
=HAVE_LIB
`echo ucb | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
933 cat >> confdefs.h
<<EOF
940 echo "$ac_t""no" 1>&6
943 echo $ac_n "checking for -lsocket""... $ac_c" 1>&6
944 ac_lib_var
=`echo socket | tr '.-/+' '___p'`
945 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
946 echo $ac_n "(cached) $ac_c" 1>&6
949 LIBS
="-lsocket -lnsl $LIBS"
950 cat > conftest.
$ac_ext <<EOF
951 #line 952 "configure"
952 #include "confdefs.h"
954 int main() { return 0; }
959 if eval $ac_link; then
961 eval "ac_cv_lib_$ac_lib_var=yes"
964 eval "ac_cv_lib_$ac_lib_var=no"
970 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
971 echo "$ac_t""yes" 1>&6
972 ac_tr_lib
=HAVE_LIB
`echo socket | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
973 cat >> confdefs.h
<<EOF
977 LIBS
="-lsocket $LIBS"
980 echo "$ac_t""no" 1>&6
985 # checks for header files
987 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
988 # On Suns, sometimes $CPP names a directory.
989 if test -n "$CPP" && test -d "$CPP"; then
992 if test -z "$CPP"; then
993 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
994 echo $ac_n "(cached) $ac_c" 1>&6
996 # This must be in double quotes, not single quotes, because CPP may get
997 # substituted into the Makefile and "${CC-cc}" will confuse make.
999 # On the NeXT, cc -E runs the code through the compiler's parser,
1000 # not just through cpp.
1001 cat > conftest.
$ac_ext <<EOF
1002 #line 1003 "configure"
1003 #include "confdefs.h"
1007 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1008 ac_err
=`grep -v '^ *+' conftest.out`
1009 if test -z "$ac_err"; then
1014 CPP
="${CC-cc} -E -traditional-cpp"
1015 cat > conftest.
$ac_ext <<EOF
1016 #line 1017 "configure"
1017 #include "confdefs.h"
1021 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1022 ac_err
=`grep -v '^ *+' conftest.out`
1023 if test -z "$ac_err"; then
1033 ac_cv_prog_CPP
="$CPP"
1035 CPP
="$ac_cv_prog_CPP"
1037 ac_cv_prog_CPP
="$CPP"
1039 echo "$ac_t""$CPP" 1>&6
1041 # If we cannot run a trivial program, we must be cross compiling.
1042 echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6
1043 if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then
1044 echo $ac_n "(cached) $ac_c" 1>&6
1046 if test "$cross_compiling" = yes; then
1049 cat > conftest.
$ac_ext <<EOF
1050 #line 1051 "configure"
1051 #include "confdefs.h"
1055 if test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
; then
1064 echo "$ac_t""$ac_cv_c_cross" 1>&6
1065 cross_compiling
=$ac_cv_c_cross
1067 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1068 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1069 echo $ac_n "(cached) $ac_c" 1>&6
1071 cat > conftest.
$ac_ext <<EOF
1072 #line 1073 "configure"
1073 #include "confdefs.h"
1079 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1080 ac_err
=`grep -v '^ *+' conftest.out`
1081 if test -z "$ac_err"; then
1083 ac_cv_header_stdc
=yes
1087 ac_cv_header_stdc
=no
1091 if test $ac_cv_header_stdc = yes; then
1092 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1093 cat > conftest.
$ac_ext <<EOF
1094 #line 1095 "configure"
1095 #include "confdefs.h"
1098 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1099 egrep "memchr" >/dev
/null
2>&1; then
1103 ac_cv_header_stdc
=no
1109 if test $ac_cv_header_stdc = yes; then
1110 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1111 cat > conftest.
$ac_ext <<EOF
1112 #line 1113 "configure"
1113 #include "confdefs.h"
1116 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1117 egrep "free" >/dev
/null
2>&1; then
1121 ac_cv_header_stdc
=no
1127 if test $ac_cv_header_stdc = yes; then
1128 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1129 if test "$cross_compiling" = yes; then
1132 cat > conftest.
$ac_ext <<EOF
1133 #line 1134 "configure"
1134 #include "confdefs.h"
1136 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1137 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1138 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1139 int main () { int i; for (i = 0; i < 256; i++)
1140 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1145 if test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
; then
1148 ac_cv_header_stdc
=no
1155 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1156 if test $ac_cv_header_stdc = yes; then
1157 cat >> confdefs.h
<<\EOF
1158 #define STDC_HEADERS 1
1163 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1164 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1165 echo $ac_n "(cached) $ac_c" 1>&6
1167 cat > conftest.
$ac_ext <<EOF
1168 #line 1169 "configure"
1169 #include "confdefs.h"
1170 #include <sys/types.h>
1171 #include <sys/wait.h>
1173 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1176 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1178 int main() { return 0; }
1182 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1185 if eval $ac_compile; then
1187 ac_cv_header_sys_wait_h
=yes
1190 ac_cv_header_sys_wait_h
=no
1196 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1197 if test $ac_cv_header_sys_wait_h = yes; then
1198 cat >> confdefs.h
<<\EOF
1199 #define HAVE_SYS_WAIT_H 1
1204 for ac_hdr
in fcntl.h limits.h sgtty.h sys
/time.h unistd.h
1206 ac_safe
=`echo "$ac_hdr" | tr './\055' '___'`
1207 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1208 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1209 echo $ac_n "(cached) $ac_c" 1>&6
1211 cat > conftest.
$ac_ext <<EOF
1212 #line 1213 "configure"
1213 #include "confdefs.h"
1216 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1217 ac_err
=`grep -v '^ *+' conftest.out`
1218 if test -z "$ac_err"; then
1220 eval "ac_cv_header_$ac_safe=yes"
1224 eval "ac_cv_header_$ac_safe=no"
1228 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1229 echo "$ac_t""yes" 1>&6
1230 ac_tr_hdr
=HAVE_
`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
1231 cat >> confdefs.h
<<EOF
1232 #define $ac_tr_hdr 1
1236 echo "$ac_t""no" 1>&6
1242 # checks for typedefs, structures, and compiler characteristics
1244 echo $ac_n "checking for working const""... $ac_c" 1>&6
1245 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1246 echo $ac_n "(cached) $ac_c" 1>&6
1248 cat > conftest.
$ac_ext <<EOF
1249 #line 1250 "configure"
1250 #include "confdefs.h"
1252 int main() { return 0; }
1255 /* Ultrix mips cc rejects this. */
1256 typedef int charset[2]; const charset x;
1257 /* SunOS 4.1.1 cc rejects this. */
1258 char const *const *ccp;
1260 /* NEC SVR4.0.2 mips cc rejects this. */
1261 struct point {int x, y;};
1262 static struct point const zero = {0,0};
1263 /* AIX XL C 1.02.0.0 rejects this.
1264 It does not let you subtract one const X* pointer from another in an arm
1265 of an if-expression whose if-part is not a constant expression */
1266 const char *g = "string";
1267 ccp = &g + (g ? g-g : 0);
1268 /* HPUX 7.0 cc rejects these. */
1271 ccp = (char const *const *) p;
1272 { /* SCO 3.2v4 cc rejects this. */
1274 char const *s = 0 ? (char *) 0 : (char const *) 0;
1278 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1280 const int *foo = &x[0];
1283 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1284 typedef const int *iptr;
1288 { /* AIX XL C 1.02.0.0 rejects this saying
1289 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1290 struct s { int j; const int *ap[3]; };
1291 struct s *b; b->j = 5;
1293 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1299 if eval $ac_compile; then
1310 echo "$ac_t""$ac_cv_c_const" 1>&6
1311 if test $ac_cv_c_const = no
; then
1312 cat >> confdefs.h
<<\EOF
1318 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1319 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1320 echo $ac_n "(cached) $ac_c" 1>&6
1322 cat > conftest.
$ac_ext <<EOF
1323 #line 1324 "configure"
1324 #include "confdefs.h"
1325 #include <sys/types.h>
1330 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1331 egrep "size_t" >/dev
/null
2>&1; then
1333 ac_cv_type_size_t
=yes
1336 ac_cv_type_size_t
=no
1341 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1342 if test $ac_cv_type_size_t = no
; then
1343 cat >> confdefs.h
<<\EOF
1344 #define size_t unsigned
1349 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
1350 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
1351 echo $ac_n "(cached) $ac_c" 1>&6
1353 cat > conftest.
$ac_ext <<EOF
1354 #line 1355 "configure"
1355 #include "confdefs.h"
1356 #include <sys/types.h>
1362 extern "C" void (*signal (int, void (*)(int)))(int);
1364 void (*signal ()) ();
1367 int main() { return 0; }
1372 if eval $ac_compile; then
1374 ac_cv_type_signal
=void
1377 ac_cv_type_signal
=int
1383 echo "$ac_t""$ac_cv_type_signal" 1>&6
1384 cat >> confdefs.h
<<EOF
1385 #define RETSIGTYPE $ac_cv_type_signal
1389 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1390 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1391 echo $ac_n "(cached) $ac_c" 1>&6
1393 cat > conftest.
$ac_ext <<EOF
1394 #line 1395 "configure"
1395 #include "confdefs.h"
1396 #include <sys/types.h>
1397 #include <sys/time.h>
1399 int main() { return 0; }
1404 if eval $ac_compile; then
1406 ac_cv_header_time
=yes
1409 ac_cv_header_time
=no
1415 echo "$ac_t""$ac_cv_header_time" 1>&6
1416 if test $ac_cv_header_time = yes; then
1417 cat >> confdefs.h
<<\EOF
1418 #define TIME_WITH_SYS_TIME 1
1423 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
1424 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
1425 echo $ac_n "(cached) $ac_c" 1>&6
1427 cat > conftest.
$ac_ext <<EOF
1428 #line 1429 "configure"
1429 #include "confdefs.h"
1430 #include <sys/types.h>
1432 int main() { return 0; }
1434 struct tm *tp; tp->tm_sec;
1437 if eval $ac_compile; then
1439 ac_cv_struct_tm
=time.h
1442 ac_cv_struct_tm
=sys
/time.h
1448 echo "$ac_t""$ac_cv_struct_tm" 1>&6
1449 if test $ac_cv_struct_tm = sys
/time.h
; then
1450 cat >> confdefs.h
<<\EOF
1451 #define TM_IN_SYS_TIME 1
1456 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
1457 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
1458 echo $ac_n "(cached) $ac_c" 1>&6
1460 cat > conftest.
$ac_ext <<EOF
1461 #line 1462 "configure"
1462 #include "confdefs.h"
1463 #include <sys/types.h>
1464 #include <$ac_cv_struct_tm>
1465 int main() { return 0; }
1467 struct tm tm; tm.tm_zone;
1470 if eval $ac_compile; then
1472 ac_cv_struct_tm_zone
=yes
1475 ac_cv_struct_tm_zone
=no
1481 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
1482 if test "$ac_cv_struct_tm_zone" = yes; then
1483 cat >> confdefs.h
<<\EOF
1484 #define HAVE_TM_ZONE 1
1488 echo $ac_n "checking for tzname""... $ac_c" 1>&6
1489 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
1490 echo $ac_n "(cached) $ac_c" 1>&6
1492 cat > conftest.
$ac_ext <<EOF
1493 #line 1494 "configure"
1494 #include "confdefs.h"
1496 #ifndef tzname /* For SGI. */
1497 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
1499 int main() { return 0; }
1504 if eval $ac_link; then
1506 ac_cv_var_tzname
=yes
1515 echo "$ac_t""$ac_cv_var_tzname" 1>&6
1516 if test $ac_cv_var_tzname = yes; then
1517 cat >> confdefs.h
<<\EOF
1518 #define HAVE_TZNAME 1
1524 cat > conftest.
$ac_ext <<EOF
1525 #line 1526 "configure"
1526 #include "confdefs.h"
1527 #include <sys/time.h>
1528 int main() { return 0; }
1530 struct timeval thetime; struct timezone thezone;
1531 gettimeofday(&thetime, &thezone);
1534 if eval $ac_compile; then
1536 cat >> confdefs.h
<<\EOF
1537 #define USE_TIMEZONE 1
1545 # checks for library functions
1547 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
1548 if eval "test \"`echo '$''{'ac_cv_func_memcmp'+set}'`\" = set"; then
1549 echo $ac_n "(cached) $ac_c" 1>&6
1551 if test "$cross_compiling" = yes; then
1552 ac_cv_func_memcmp
=no
1554 cat > conftest.
$ac_ext <<EOF
1555 #line 1556 "configure"
1556 #include "confdefs.h"
1560 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
1561 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
1566 if test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
; then
1567 ac_cv_func_memcmp
=yes
1569 ac_cv_func_memcmp
=no
1575 echo "$ac_t""$ac_cv_func_memcmp" 1>&6
1576 test $ac_cv_func_memcmp = no
&& LIBOBJS
="$LIBOBJS memcmp.o"
1578 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
1579 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
1580 echo $ac_n "(cached) $ac_c" 1>&6
1582 cat > conftest.
$ac_ext <<EOF
1583 #line 1584 "configure"
1584 #include "confdefs.h"
1585 #include <sys/types.h>
1591 extern "C" void (*signal (int, void (*)(int)))(int);
1593 void (*signal ()) ();
1596 int main() { return 0; }
1601 if eval $ac_compile; then
1603 ac_cv_type_signal
=void
1606 ac_cv_type_signal
=int
1612 echo "$ac_t""$ac_cv_type_signal" 1>&6
1613 cat >> confdefs.h
<<EOF
1614 #define RETSIGTYPE $ac_cv_type_signal
1618 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
1619 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
1620 echo $ac_n "(cached) $ac_c" 1>&6
1622 cat > conftest.
$ac_ext <<EOF
1623 #line 1624 "configure"
1624 #include "confdefs.h"
1625 /* System header to define __stub macros and hopefully few prototypes,
1626 which can conflict with char vprintf(); below. */
1628 /* Override any gcc2 internal prototype to avoid an error. */
1631 int main() { return 0; }
1634 /* The GNU C library defines this for functions which it implements
1635 to always fail with ENOSYS. Some functions are actually named
1636 something starting with __ and the normal name is an alias. */
1637 #if defined (__stub_vprintf) || defined (__stub___vprintf)
1645 if eval $ac_link; then
1647 eval "ac_cv_func_vprintf=yes"
1650 eval "ac_cv_func_vprintf=no"
1655 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
1656 echo "$ac_t""yes" 1>&6
1657 cat >> confdefs.h
<<\EOF
1658 #define HAVE_VPRINTF 1
1662 echo "$ac_t""no" 1>&6
1665 if test "$ac_cv_func_vprintf" != yes; then
1666 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
1667 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
1668 echo $ac_n "(cached) $ac_c" 1>&6
1670 cat > conftest.
$ac_ext <<EOF
1671 #line 1672 "configure"
1672 #include "confdefs.h"
1673 /* System header to define __stub macros and hopefully few prototypes,
1674 which can conflict with char _doprnt(); below. */
1676 /* Override any gcc2 internal prototype to avoid an error. */
1679 int main() { return 0; }
1682 /* The GNU C library defines this for functions which it implements
1683 to always fail with ENOSYS. Some functions are actually named
1684 something starting with __ and the normal name is an alias. */
1685 #if defined (__stub__doprnt) || defined (__stub____doprnt)
1693 if eval $ac_link; then
1695 eval "ac_cv_func__doprnt=yes"
1698 eval "ac_cv_func__doprnt=no"
1703 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
1704 echo "$ac_t""yes" 1>&6
1705 cat >> confdefs.h
<<\EOF
1706 #define HAVE_DOPRNT 1
1710 echo "$ac_t""no" 1>&6
1715 echo $ac_n "checking for wait3 that fills in rusage""... $ac_c" 1>&6
1716 if eval "test \"`echo '$''{'ac_cv_func_wait3'+set}'`\" = set"; then
1717 echo $ac_n "(cached) $ac_c" 1>&6
1719 if test "$cross_compiling" = yes; then
1722 cat > conftest.
$ac_ext <<EOF
1723 #line 1724 "configure"
1724 #include "confdefs.h"
1725 #include <sys/types.h>
1726 #include <sys/time.h>
1727 #include <sys/resource.h>
1729 /* HP-UX has wait3 but does not fill in rusage at all. */
1733 /* Use a field that we can force nonzero --
1734 voluntary context switches.
1735 For systems like NeXT and OSF/1 that don't set it,
1736 also use the system CPU time. And page faults (I/O) for Linux. */
1738 r.ru_stime.tv_sec = 0;
1739 r.ru_stime.tv_usec = 0;
1740 r.ru_majflt = r.ru_minflt = 0;
1742 case 0: /* Child. */
1743 sleep(1); /* Give up the CPU. */
1745 case -1: _exit(0); /* What can we do? */
1746 default: /* Parent. */
1748 sleep(2); /* Avoid "text file busy" from rm on fast HP-UX machines. */
1749 exit(r.ru_nvcsw == 0 && r.ru_majflt == 0 && r.ru_minflt == 0
1750 && r.ru_stime.tv_sec == 0 && r.ru_stime.tv_usec == 0);
1755 if test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
; then
1756 ac_cv_func_wait3
=yes
1764 echo "$ac_t""$ac_cv_func_wait3" 1>&6
1765 if test $ac_cv_func_wait3 = yes; then
1766 cat >> confdefs.h
<<\EOF
1767 #define HAVE_WAIT3 1
1772 for ac_func
in gethostname gettimeofday
select socket strerror
1774 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1775 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1776 echo $ac_n "(cached) $ac_c" 1>&6
1778 cat > conftest.
$ac_ext <<EOF
1779 #line 1780 "configure"
1780 #include "confdefs.h"
1781 /* System header to define __stub macros and hopefully few prototypes,
1782 which can conflict with char $ac_func(); below. */
1784 /* Override any gcc2 internal prototype to avoid an error. */
1787 int main() { return 0; }
1790 /* The GNU C library defines this for functions which it implements
1791 to always fail with ENOSYS. Some functions are actually named
1792 something starting with __ and the normal name is an alias. */
1793 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1801 if eval $ac_link; then
1803 eval "ac_cv_func_$ac_func=yes"
1806 eval "ac_cv_func_$ac_func=no"
1811 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1812 echo "$ac_t""yes" 1>&6
1813 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1814 cat >> confdefs.h
<<EOF
1815 #define $ac_tr_func 1
1819 echo "$ac_t""no" 1>&6
1825 # checks for system services
1832 cat > confcache
<<\EOF
1833 # This file is a shell script that caches the results of configure
1834 # tests run on this system so they can be shared between configure
1835 # scripts and configure runs. It is not useful on other systems.
1836 # If it contains results you don't want to keep, you may remove or edit it.
1838 # By default, configure uses ./config.cache as the cache file,
1839 # creating it if it does not exist already. You can give configure
1840 # the --cache-file=FILE option to use a different cache file; that is
1841 # what configure does when it calls configure scripts in
1842 # subdirectories, so they share the cache.
1843 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1844 # config.status only pays attention to the cache file if you give it the
1845 # --recheck option to rerun configure.
1848 # Ultrix sh set writes to stderr and can't be redirected directly,
1849 # and sets the high bit in the cache file unless we assign to the vars.
1851 sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
1853 if cmp -s $cache_file confcache
; then
1856 if test -w $cache_file; then
1857 echo "updating cache $cache_file"
1858 cat confcache
> $cache_file
1860 echo "not updating unwritable cache $cache_file"
1865 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1867 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
1868 # Let make expand exec_prefix.
1869 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
1871 # Any assignment to VPATH causes Sun make to only execute
1872 # the first set of double-colon rules, so remove it if not needed.
1873 # If there is a colon in the path, we need to keep it.
1874 if test "x$srcdir" = x.
; then
1875 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
1878 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1880 DEFS
=-DHAVE_CONFIG_H
1882 # Without the "./", some shells look in PATH for config.status.
1883 : ${CONFIG_STATUS=./config.status}
1885 echo creating
$CONFIG_STATUS
1886 rm -f $CONFIG_STATUS
1887 cat > $CONFIG_STATUS <<EOF
1889 # Generated automatically by configure.
1890 # Run this file to recreate the current configuration.
1891 # This directory was configured as follows,
1892 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1894 # $0 $ac_configure_args
1896 # Compiler output produced by configure, useful for debugging
1897 # configure, is in ./config.log if it exists.
1899 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1902 case "\$ac_option" in
1903 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1904 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1905 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1906 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1907 echo "$CONFIG_STATUS generated by autoconf version 2.7"
1909 -help | --help | --hel | --he | --h)
1910 echo "\$ac_cs_usage"; exit 0 ;;
1911 *) echo "\$ac_cs_usage"; exit 1 ;;
1915 ac_given_srcdir=$srcdir
1917 trap 'rm -fr `echo "Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1919 cat >> $CONFIG_STATUS <<EOF
1921 # Protect against being on the right side of a sed subst in config.status.
1922 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1923 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1926 s%@CFLAGS@%$CFLAGS%g
1927 s%@CPPFLAGS@%$CPPFLAGS%g
1928 s%@CXXFLAGS@%$CXXFLAGS%g
1930 s%@LDFLAGS@%$LDFLAGS%g
1932 s%@exec_prefix@%$exec_prefix%g
1933 s%@prefix@%$prefix%g
1934 s%@program_transform_name@%$program_transform_name%g
1935 s%@bindir@%$bindir%g
1936 s%@sbindir@%$sbindir%g
1937 s%@libexecdir@%$libexecdir%g
1938 s%@datadir@%$datadir%g
1939 s%@sysconfdir@%$sysconfdir%g
1940 s%@sharedstatedir@%$sharedstatedir%g
1941 s%@localstatedir@%$localstatedir%g
1942 s%@libdir@%$libdir%g
1943 s%@includedir@%$includedir%g
1944 s%@oldincludedir@%$oldincludedir%g
1945 s%@infodir@%$infodir%g
1946 s%@mandir@%$mandir%g
1947 s%@PRODUCT@%$PRODUCT%g
1948 s%@VERSION@%$VERSION%g
1950 s%@host_alias@%$host_alias%g
1951 s%@host_cpu@%$host_cpu%g
1952 s%@host_vendor@%$host_vendor%g
1953 s%@host_os@%$host_os%g
1954 s%@target@%$target%g
1955 s%@target_alias@%$target_alias%g
1956 s%@target_cpu@%$target_cpu%g
1957 s%@target_vendor@%$target_vendor%g
1958 s%@target_os@%$target_os%g
1960 s%@build_alias@%$build_alias%g
1961 s%@build_cpu@%$build_cpu%g
1962 s%@build_vendor@%$build_vendor%g
1963 s%@build_os@%$build_os%g
1965 s%@SET_MAKE@%$SET_MAKE%g
1968 s%@PERL_SCRIPTS@%$PERL_SCRIPTS%g
1970 s%@LIBOBJS@%$LIBOBJS%g
1974 cat >> $CONFIG_STATUS <<EOF
1976 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
1978 cat >> $CONFIG_STATUS <<\EOF
1979 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
1980 # Support "outfile[:infile]", defaulting infile="outfile.in".
1982 *:*) ac_file_in
=`echo "$ac_file"|sed 's%.*:%%'`
1983 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
1984 *) ac_file_in
="${ac_file}.in" ;;
1987 # Adjust relative srcdir, etc. for subdirectories.
1989 # Remove last slash and all that follows it. Not all systems have dirname.
1990 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1991 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
1992 # The file is in a subdirectory.
1993 test ! -d "$ac_dir" && mkdir
"$ac_dir"
1994 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
1995 # A "../" for each directory in $ac_dir_suffix.
1996 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1998 ac_dir_suffix
= ac_dots
=
2001 case "$ac_given_srcdir" in
2003 if test -z "$ac_dots"; then top_srcdir
=.
2004 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2005 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
2007 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2008 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
2011 echo creating
"$ac_file"
2013 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2015 *Makefile
*) ac_comsub
="1i\\
2016 # $configure_input" ;;
2020 s%@configure_input@%$configure_input%g
2021 s%@srcdir@%$srcdir%g
2022 s%@top_srcdir@%$top_srcdir%g
2023 " -f conftest.subs
$ac_given_srcdir/$ac_file_in > $ac_file
2027 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2028 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2030 # ac_d sets the value in "#define NAME VALUE" lines.
2031 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2032 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
2035 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2036 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2037 ac_uB
='\([ ]\)%\1#\2define\3'
2040 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2041 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2042 ac_eB
='$%\1#\2define\3'
2046 CONFIG_HEADERS
=${CONFIG_HEADERS-"config.h"}
2047 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
2048 # Support "outfile[:infile]", defaulting infile="outfile.in".
2050 *:*) ac_file_in
=`echo "$ac_file"|sed 's%.*:%%'`
2051 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
2052 *) ac_file_in
="${ac_file}.in" ;;
2055 echo creating
$ac_file
2057 rm -f conftest.frag conftest.
in conftest.out
2058 cp $ac_given_srcdir/$ac_file_in conftest.
in
2062 # Transform confdefs.h into a sed script conftest.vals that substitutes
2063 # the proper values into config.h.in to produce config.h. And first:
2064 # Protect against being on the right side of a sed subst in config.status.
2065 # Protect against being in an unquoted here document in config.status.
2067 cat > conftest.hdr
<<\EOF
2070 s%#define \([A-Za-z_][A-Za-z0-9_]*\) \(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2074 sed -n -f conftest.hdr confdefs.h > conftest.vals
2077 # This sed command replaces #undef with comments. This is necessary, for
2078 # example, in the case of _POSIX_SOURCE, which is predefined and required
2079 # on some systems where configure will not decide to define it.
2080 cat >> conftest.vals <<\EOF
2081 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2084 # Break up conftest.vals because some shells have a limit on
2085 # the size of here documents, and old seds have small limits too.
2086 # Maximum number of lines to put in a single here document.
2087 ac_max_here_lines=12
2092 ac_lines=`grep -c . conftest.vals
`
2093 # grep -c gives empty output for an empty file on some AIX systems.
2094 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2095 # Write a limited-size here document to conftest.frag.
2096 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2097 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2099 sed -f conftest.frag conftest.in > conftest.out
2101 mv conftest.out conftest.in
2103 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2105 mv conftest.tail conftest.vals
2109 cat >> $CONFIG_STATUS <<\EOF
2110 rm -f conftest.frag conftest.h
2111 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2112 cat conftest.in >> conftest.h
2114 if cmp -s $ac_file conftest.h 2>/dev/null; then
2115 echo "$ac_file is unchanged"
2119 mv conftest.h $ac_file
2127 chmod +x $CONFIG_STATUS
2128 rm -fr confdefs* $ac_clean_files
2129 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1