3 # From configure.in Id: configure.in,v 1.49 1995/08/17 19:09:57 roland Exp
4 # Guess values for system-dependent variables and create Makefiles.
5 # Generated automatically using autoconf version 2.5
6 # Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
13 ac_default_prefix
=/usr
/local
14 # Any additions from configure.in:
16 export jobs with the Customs daemon (NOT SUPPORTED)"
18 # Initialize some variables set by options.
19 # The variables have the same names as the options, with
20 # dashes changed to underlines.
22 cache_file
=.
/config.cache
31 program_transform_name
=s
,x
,x
,
39 bindir
='${exec_prefix}/bin'
40 sbindir
='${exec_prefix}/sbin'
41 libexecdir
='${exec_prefix}/libexec'
42 datadir
='${prefix}/share'
43 sysconfdir
='${prefix}/etc'
44 sharedstatedir
='${prefix}/com'
45 localstatedir
='${prefix}/var'
46 libdir
='${exec_prefix}/lib'
47 includedir
='${prefix}/include'
48 oldincludedir
='/usr/include'
49 infodir
='${prefix}/info'
50 mandir
='${prefix}/man'
52 # Initialize some other variables.
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 [PREFIX/share]
155 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
156 --sharedstatedir=DIR modifiable architecture-independent data in DIR [PREFIX/com]
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 run sed PROGRAM on installed program names
170 --build=BUILD configure for building on BUILD [BUILD=HOST]
171 --host=HOST configure for HOST [guessed]
172 --target=TARGET configure for TARGET [TARGET=HOST]
173 Features and packages:
174 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
175 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
176 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
177 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
178 --x-includes=DIR X include files are in DIR
179 --x-libraries=DIR X library files are in DIR
180 --enable and --with options recognized:$ac_help
184 -host |
--host |
--hos |
--ho)
186 -host=* |
--host=* |
--hos=* |
--ho=*)
189 -includedir |
--includedir |
--includedi |
--included |
--include \
190 |
--includ |
--inclu |
--incl |
--inc)
191 ac_prev
=includedir
;;
192 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
193 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
194 includedir
="$ac_optarg" ;;
196 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
198 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
199 infodir
="$ac_optarg" ;;
201 -libdir |
--libdir |
--libdi |
--libd)
203 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
204 libdir
="$ac_optarg" ;;
206 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
207 |
--libexe |
--libex |
--libe)
208 ac_prev
=libexecdir
;;
209 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
210 |
--libexe=* |
--libex=* |
--libe=*)
211 libexecdir
="$ac_optarg" ;;
213 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
214 |
--localstate |
--localstat |
--localsta |
--localst \
215 |
--locals |
--local |
--loca |
--loc |
--lo)
216 ac_prev
=localstatedir
;;
217 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
218 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
219 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
220 localstatedir
="$ac_optarg" ;;
222 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
224 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
225 mandir
="$ac_optarg" ;;
228 # Obsolete; use --without-fp.
231 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
235 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
236 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
239 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
240 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
241 |
--oldin |
--oldi |
--old |
--ol |
--o)
242 ac_prev
=oldincludedir
;;
243 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
244 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
245 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
246 oldincludedir
="$ac_optarg" ;;
248 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
250 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
251 prefix
="$ac_optarg" ;;
253 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
254 |
--program-pre |
--program-pr |
--program-p)
255 ac_prev
=program_prefix
;;
256 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
257 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
258 program_prefix
="$ac_optarg" ;;
260 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
261 |
--program-suf |
--program-su |
--program-s)
262 ac_prev
=program_suffix
;;
263 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
264 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
265 program_suffix
="$ac_optarg" ;;
267 -program-transform-name |
--program-transform-name \
268 |
--program-transform-nam |
--program-transform-na \
269 |
--program-transform-n |
--program-transform- \
270 |
--program-transform |
--program-transfor \
271 |
--program-transfo |
--program-transf \
272 |
--program-trans |
--program-tran \
273 |
--progr-tra |
--program-tr |
--program-t)
274 ac_prev
=program_transform_name
;;
275 -program-transform-name=* |
--program-transform-name=* \
276 |
--program-transform-nam=* |
--program-transform-na=* \
277 |
--program-transform-n=* |
--program-transform-=* \
278 |
--program-transform=* |
--program-transfor=* \
279 |
--program-transfo=* |
--program-transf=* \
280 |
--program-trans=* |
--program-tran=* \
281 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
282 program_transform_name
="$ac_optarg" ;;
284 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
285 |
-silent |
--silent |
--silen |
--sile |
--sil)
288 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
290 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
292 sbindir
="$ac_optarg" ;;
294 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
295 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
296 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
298 ac_prev
=sharedstatedir
;;
299 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
300 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
301 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
303 sharedstatedir
="$ac_optarg" ;;
305 -site |
--site |
--sit)
307 -site=* |
--site=* |
--sit=*)
310 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
312 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
313 srcdir
="$ac_optarg" ;;
315 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
316 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
317 ac_prev
=sysconfdir
;;
318 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
319 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
320 sysconfdir
="$ac_optarg" ;;
322 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
324 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
325 target
="$ac_optarg" ;;
327 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
330 -version |
--version |
--versio |
--versi |
--vers)
331 echo "configure generated by autoconf version 2.5"
335 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
336 # Reject names that are not valid shell variable names.
337 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
338 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
340 ac_package
=`echo $ac_package| sed 's/-/_/g'`
345 eval "with_${ac_package}='$ac_optarg'" ;;
347 -without-* |
--without-*)
348 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
349 # Reject names that are not valid shell variable names.
350 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
351 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
353 ac_package
=`echo $ac_package| sed 's/-/_/g'`
354 eval "with_${ac_package}=no" ;;
357 # Obsolete; use --with-x.
360 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
361 |
--x-incl |
--x-inc |
--x-in |
--x-i)
362 ac_prev
=x_includes
;;
363 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
364 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
365 x_includes
="$ac_optarg" ;;
367 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
368 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
369 ac_prev
=x_libraries
;;
370 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
371 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
372 x_libraries
="$ac_optarg" ;;
374 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
378 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
379 echo "configure: warning: $ac_option: invalid host type" 1>&2
381 if test "x$nonopt" != xNONE
; then
382 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
390 if test -n "$ac_prev"; then
391 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
394 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
396 # File descriptor usage:
399 # 2 errors and warnings
400 # 3 some systems may open it to /dev/tty
401 # 4 used on the Kubota Titan
402 # 6 checking for... messages and results
403 # 5 compiler messages saved in config.log
404 if test "$silent" = yes; then
412 This file contains any messages produced by compilers while
413 running configure, to aid debugging if configure makes a mistake.
416 # Strip out --no-create and --no-recursion so they do not pile up.
417 # Also quote any args containing shell metacharacters.
422 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
423 |
--no-cr |
--no-c) ;;
424 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
425 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
426 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
427 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
428 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
433 # Only set LANG and LC_ALL to C if already set.
434 # These must not be set unconditionally because not all systems understand
435 # e.g. LANG=C (notably SCO).
436 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
437 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
439 # confdefs.h avoids OS command line length limits that DEFS can exceed.
440 rm -rf conftest
* confdefs.h
441 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
444 # A filename unique to this package, relative to the directory that
445 # configure is in, which we can look for to find out if srcdir is correct.
446 ac_unique_file
=vpath.c
448 # Find the source files, if location was not specified.
449 if test -z "$srcdir"; then
450 ac_srcdir_defaulted
=yes
451 # Try the directory containing this script, then its parent.
453 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
454 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
456 if test ! -r $srcdir/$ac_unique_file; then
460 ac_srcdir_defaulted
=no
462 if test ! -r $srcdir/$ac_unique_file; then
463 if test "$ac_srcdir_defaulted" = yes; then
464 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
466 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
469 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
471 # Prefer explicitly selected file to automatically selected ones.
472 if test -z "$CONFIG_SITE"; then
473 if test "x$prefix" != xNONE
; then
474 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
476 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
479 for ac_site_file
in $CONFIG_SITE; do
480 if test -r "$ac_site_file"; then
481 echo "loading site script $ac_site_file"
486 if test -r "$cache_file"; then
487 echo "loading cache $cache_file"
490 echo "creating cache $cache_file"
495 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
496 ac_cpp
='echo $CPP $CPPFLAGS 1>&5;
498 ac_compile
='echo ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5;
499 ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5 2>&5'
500 ac_link
='echo ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5;
501 ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5 2>&5'
503 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
504 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
505 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
512 ac_n
= ac_c
='\c' ac_t
=
517 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
518 if test -f $ac_dir/install-sh
; then
520 ac_install_sh
="$ac_aux_dir/install-sh -c"
522 elif test -f $ac_dir/install.sh
; then
524 ac_install_sh
="$ac_aux_dir/install.sh -c"
528 if test -z "$ac_aux_dir"; then
529 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
531 ac_config_guess
=$ac_aux_dir/config.guess
532 ac_config_sub
=$ac_aux_dir/config.sub
533 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
537 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
538 set dummy
${MAKE-make}; ac_make
=$2
539 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
540 echo $ac_n "(cached) $ac_c" 1>&6
542 cat > conftestmake
<<\EOF
544 @
echo 'ac_maketemp="${MAKE}"'
546 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
547 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
548 if test -n "$ac_maketemp"; then
549 eval ac_cv_prog_make_
${ac_make}_set
=yes
551 eval ac_cv_prog_make_
${ac_make}_set
=no
555 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
556 echo "$ac_t""yes" 1>&6
559 echo "$ac_t""no" 1>&6
560 SET_MAKE
="MAKE=${MAKE-make}"
563 # Extract the first word of "gcc", so it can be a program name with args.
564 set dummy gcc
; ac_word
=$2
565 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
566 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
567 echo $ac_n "(cached) $ac_c" 1>&6
569 if test -n "$CC"; then
570 ac_cv_prog_CC
="$CC" # Let the user override the test.
572 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
573 for ac_dir
in $PATH; do
574 test -z "$ac_dir" && ac_dir
=.
575 if test -f $ac_dir/$ac_word; then
581 test -z "$ac_cv_prog_CC" && ac_cv_prog_CC
="cc"
585 if test -n "$CC"; then
586 echo "$ac_t""$CC" 1>&6
588 echo "$ac_t""no" 1>&6
592 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
593 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
594 echo $ac_n "(cached) $ac_c" 1>&6
596 cat > conftest.c
<<EOF
601 if ${CC-cc} -E conftest.c
2>&5 |
egrep yes >/dev
/null
2>&1; then
608 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
609 if test $ac_cv_prog_gcc = yes; then
611 if test "${CFLAGS+set}" != set; then
612 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
613 if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then
614 echo $ac_n "(cached) $ac_c" 1>&6
616 echo 'void f(){}' > conftest.c
617 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
626 echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
627 if test $ac_cv_prog_gcc_g = yes; then
635 test "${CFLAGS+set}" = set || CFLAGS
="-g"
638 # Find a good install program. We prefer a C program (faster),
639 # so one script is as good as another. But avoid the broken or
640 # incompatible versions:
641 # SysV /etc/install, /usr/sbin/install
642 # SunOS /usr/etc/install
645 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
646 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
647 # ./install, which can be erroneously created by make from ./install.sh.
648 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
649 if test -z "$INSTALL"; then
650 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
651 echo $ac_n "(cached) $ac_c" 1>&6
653 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
654 for ac_dir
in $PATH; do
655 # Account for people who put trailing slashes in PATH elements.
657 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
659 # OSF1 and SCO ODT 3.0 have their own names for install.
660 for ac_prog
in ginstall installbsd scoinst
install; do
661 if test -f $ac_dir/$ac_prog; then
662 if test $ac_prog = install &&
663 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
664 # AIX install. It has an incompatible calling convention.
665 # OSF/1 installbsd also uses dspmsg, but is usable.
668 ac_cv_path_install
="$ac_dir/$ac_prog -c"
679 if test "${ac_cv_path_install+set}" = set; then
680 INSTALL
="$ac_cv_path_install"
682 # As a last resort, use the slow shell script. We don't cache a
683 # path for INSTALL within a source directory, because that will
684 # break other packages using the cache if that directory is
685 # removed, or if the path is relative.
686 INSTALL
="$ac_install_sh"
689 echo "$ac_t""$INSTALL" 1>&6
691 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
692 # It thinks the first close brace ends the variable substitution.
693 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
695 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
697 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
698 # On Suns, sometimes $CPP names a directory.
699 if test -n "$CPP" && test -d "$CPP"; then
702 if test -z "$CPP"; then
703 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
704 echo $ac_n "(cached) $ac_c" 1>&6
706 # This must be in double quotes, not single quotes, because CPP may get
707 # substituted into the Makefile and "${CC-cc}" will confuse make.
709 # On the NeXT, cc -E runs the code through the compiler's parser,
710 # not just through cpp.
711 cat > conftest.
$ac_ext <<EOF
712 #line 713 "configure"
713 #include "confdefs.h"
717 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
718 ac_err
=`grep -v '^ *+' conftest.out`
719 if test -z "$ac_err"; then
724 CPP
="${CC-cc} -E -traditional-cpp"
725 cat > conftest.
$ac_ext <<EOF
726 #line 727 "configure"
727 #include "confdefs.h"
731 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
732 ac_err
=`grep -v '^ *+' conftest.out`
733 if test -z "$ac_err"; then
743 ac_cv_prog_CPP
="$CPP"
745 CPP
="$ac_cv_prog_CPP"
747 ac_cv_prog_CPP
="$CPP"
749 echo "$ac_t""$CPP" 1>&6
750 echo $ac_n "checking for AIX""... $ac_c" 1>&6
751 cat > conftest.
$ac_ext <<EOF
752 #line 753 "configure"
753 #include "confdefs.h"
759 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
760 egrep "yes" >/dev
/null
2>&1; then
762 echo "$ac_t""yes" 1>&6; cat >> confdefs.h
<<\EOF
763 #define _ALL_SOURCE 1
768 echo "$ac_t""no" 1>&6
773 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
774 if test -d /etc
/conf
/kconfig.d
&&
775 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
777 echo "$ac_t""yes" 1>&6
778 ISC
=yes # If later tests want to check for ISC.
779 cat >> confdefs.h
<<\EOF
780 #define _POSIX_SOURCE 1
783 if test "$GCC" = yes; then
789 echo "$ac_t""no" 1>&6
793 ac_safe
=`echo "minix/config.h" | tr './\055' '___'`
794 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
795 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
796 echo $ac_n "(cached) $ac_c" 1>&6
798 cat > conftest.
$ac_ext <<EOF
799 #line 800 "configure"
800 #include "confdefs.h"
801 #include <minix/config.h>
803 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
804 ac_err
=`grep -v '^ *+' conftest.out`
805 if test -z "$ac_err"; then
807 eval "ac_cv_header_$ac_safe=yes"
811 eval "ac_cv_header_$ac_safe=no"
815 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
816 echo "$ac_t""yes" 1>&6
819 echo "$ac_t""no" 1>&6
823 if test "$MINIX" = yes; then
824 cat >> confdefs.h
<<\EOF
825 #define _POSIX_SOURCE 1
828 cat >> confdefs.h
<<\EOF
829 #define _POSIX_1_SOURCE 2
832 cat >> confdefs.h
<<\EOF
838 # If we cannot run a trivial program, we must be cross compiling.
839 echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6
840 if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then
841 echo $ac_n "(cached) $ac_c" 1>&6
843 if test "$cross_compiling" = yes; then
846 cat > conftest.
$ac_ext <<EOF
847 #line 848 "configure"
848 #include "confdefs.h"
852 if test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
; then
861 echo "$ac_t""$ac_cv_c_cross" 1>&6
862 cross_compiling
=$ac_cv_c_cross
864 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
865 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
866 echo $ac_n "(cached) $ac_c" 1>&6
868 cat > conftest.
$ac_ext <<EOF
869 #line 870 "configure"
870 #include "confdefs.h"
876 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
877 ac_err
=`grep -v '^ *+' conftest.out`
878 if test -z "$ac_err"; then
880 ac_cv_header_stdc
=yes
888 if test $ac_cv_header_stdc = yes; then
889 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
890 cat > conftest.
$ac_ext <<EOF
891 #line 892 "configure"
892 #include "confdefs.h"
895 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
896 egrep "memchr" >/dev
/null
2>&1; then
906 if test $ac_cv_header_stdc = yes; then
907 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
908 cat > conftest.
$ac_ext <<EOF
909 #line 910 "configure"
910 #include "confdefs.h"
913 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
914 egrep "free" >/dev
/null
2>&1; then
924 if test $ac_cv_header_stdc = yes; then
925 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
926 if test "$cross_compiling" = yes; then
929 cat > conftest.
$ac_ext <<EOF
930 #line 931 "configure"
931 #include "confdefs.h"
933 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
934 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
935 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
936 int main () { int i; for (i = 0; i < 256; i++)
937 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
942 if test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
; then
952 echo "$ac_t""$ac_cv_header_stdc" 1>&6
953 if test $ac_cv_header_stdc = yes; then
954 cat >> confdefs.h
<<\EOF
955 #define STDC_HEADERS 1
961 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
963 ac_safe
=`echo "$ac_hdr" | tr './\055' '___'`
964 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
965 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
966 echo $ac_n "(cached) $ac_c" 1>&6
968 cat > conftest.
$ac_ext <<EOF
969 #line 970 "configure"
970 #include "confdefs.h"
971 #include <sys/types.h>
973 int main() { return 0; }
978 if eval $ac_compile; then
980 eval "ac_cv_header_dirent_$ac_safe=yes"
983 eval "ac_cv_header_dirent_$ac_safe=no"
988 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
989 echo "$ac_t""yes" 1>&6
990 ac_tr_hdr
=HAVE_
`echo $ac_hdr | tr 'abcdedfghijklmnopqrstuvwxyz./\055' 'ABCDEDFGHIJKLMNOPQRSTUVWXYZ___'`
991 cat >> confdefs.h
<<EOF
994 ac_header_dirent
=$ac_hdr; break
996 echo "$ac_t""no" 1>&6
999 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1000 if test $ac_header_dirent = dirent.h
; then
1001 echo $ac_n "checking for -ldir""... $ac_c" 1>&6
1002 ac_lib_var
=`echo dir | tr './+' '__p'`
1003 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1004 echo $ac_n "(cached) $ac_c" 1>&6
1006 ac_save_LIBS
="$LIBS"
1008 cat > conftest.
$ac_ext <<EOF
1009 #line 1010 "configure"
1010 #include "confdefs.h"
1012 int main() { return 0; }
1017 if eval $ac_link; then
1019 eval "ac_cv_lib_$ac_lib_var=yes"
1022 eval "ac_cv_lib_$ac_lib_var=no"
1025 LIBS
="$ac_save_LIBS"
1028 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1029 echo "$ac_t""yes" 1>&6
1032 echo "$ac_t""no" 1>&6
1036 echo $ac_n "checking for -lx""... $ac_c" 1>&6
1037 ac_lib_var
=`echo x | tr './+' '__p'`
1038 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1039 echo $ac_n "(cached) $ac_c" 1>&6
1041 ac_save_LIBS
="$LIBS"
1043 cat > conftest.
$ac_ext <<EOF
1044 #line 1045 "configure"
1045 #include "confdefs.h"
1047 int main() { return 0; }
1052 if eval $ac_link; then
1054 eval "ac_cv_lib_$ac_lib_var=yes"
1057 eval "ac_cv_lib_$ac_lib_var=no"
1060 LIBS
="$ac_save_LIBS"
1063 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1064 echo "$ac_t""yes" 1>&6
1067 echo "$ac_t""no" 1>&6
1072 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
1073 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
1074 echo $ac_n "(cached) $ac_c" 1>&6
1076 cat > conftest.
$ac_ext <<EOF
1077 #line 1078 "configure"
1078 #include "confdefs.h"
1079 #include <sys/types.h>
1081 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1082 egrep "uid_t" >/dev
/null
2>&1; then
1084 ac_cv_type_uid_t
=yes
1093 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
1094 if test $ac_cv_type_uid_t = no
; then
1095 cat >> confdefs.h
<<\EOF
1099 cat >> confdefs.h
<<\EOF
1104 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
1105 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
1106 echo $ac_n "(cached) $ac_c" 1>&6
1108 cat > conftest.
$ac_ext <<EOF
1109 #line 1110 "configure"
1110 #include "confdefs.h"
1111 #include <sys/types.h>
1116 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1117 egrep "pid_t" >/dev
/null
2>&1; then
1119 ac_cv_type_pid_t
=yes
1127 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
1128 if test $ac_cv_type_pid_t = no
; then
1129 cat >> confdefs.h
<<\EOF
1135 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
1136 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
1137 echo $ac_n "(cached) $ac_c" 1>&6
1139 cat > conftest.
$ac_ext <<EOF
1140 #line 1141 "configure"
1141 #include "confdefs.h"
1142 #include <sys/types.h>
1150 void (*signal ()) ();
1151 int main() { return 0; }
1156 if eval $ac_compile; then
1158 ac_cv_type_signal
=void
1161 ac_cv_type_signal
=int
1167 echo "$ac_t""$ac_cv_type_signal" 1>&6
1168 cat >> confdefs.h
<<EOF
1169 #define RETSIGTYPE $ac_cv_type_signal
1173 for ac_hdr
in unistd.h limits.h sys
/param.h fcntl.h string.h memory.h \
1176 ac_safe
=`echo "$ac_hdr" | tr './\055' '___'`
1177 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1178 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1179 echo $ac_n "(cached) $ac_c" 1>&6
1181 cat > conftest.
$ac_ext <<EOF
1182 #line 1183 "configure"
1183 #include "confdefs.h"
1186 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1187 ac_err
=`grep -v '^ *+' conftest.out`
1188 if test -z "$ac_err"; then
1190 eval "ac_cv_header_$ac_safe=yes"
1194 eval "ac_cv_header_$ac_safe=no"
1198 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1199 echo "$ac_t""yes" 1>&6
1200 ac_tr_hdr
=HAVE_
`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
1201 cat >> confdefs.h
<<EOF
1202 #define $ac_tr_hdr 1
1206 echo "$ac_t""no" 1>&6
1210 if test "x$CC" != xcc
; then
1211 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1213 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1215 set dummy
$CC; ac_cc
="`echo $2 |
1216 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1217 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1218 echo $ac_n "(cached) $ac_c" 1>&6
1220 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1221 echo 'foo(){}' > conftest.c
1222 # Make sure it works both with $CC and with simple cc.
1223 # We do the test twice because some compilers refuse to overwrite an
1224 # existing .o file with -o, though they will create one.
1225 if ${CC-cc} -c conftest.c
-o conftest.o
1>&5 2>&5 &&
1226 test -f conftest.o
&& ${CC-cc} -c conftest.c
-o conftest.o
1>&5 2>&5
1228 if test "x$CC" != xcc
; then
1229 # Test first that cc exists at all.
1230 if cc
-c conftest.c
1>&5 2>&5
1232 if cc
-c conftest.c
-o conftest2.o
1>&5 2>&5 &&
1233 test -f conftest2.o
&& cc
-c conftest.c
-o conftest2.o
1>&5 2>&5
1235 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
1238 # There is no cc, so we don't care about it.
1239 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
1246 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1247 echo "$ac_t""yes" 1>&6
1249 echo "$ac_t""no" 1>&6
1250 cat >> confdefs.h
<<\EOF
1251 #define NO_MINUS_C_MINUS_O 1
1256 echo $ac_n "checking for working const""... $ac_c" 1>&6
1257 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1258 echo $ac_n "(cached) $ac_c" 1>&6
1260 cat > conftest.
$ac_ext <<EOF
1261 #line 1262 "configure"
1262 #include "confdefs.h"
1264 int main() { return 0; }
1267 /* Ultrix mips cc rejects this. */
1268 typedef int charset[2]; const charset x;
1269 /* SunOS 4.1.1 cc rejects this. */
1270 char const *const *ccp;
1272 /* NEC SVR4.0.2 mips cc rejects this. */
1273 struct point {int x, y;};
1274 static struct point const zero;
1275 /* AIX XL C 1.02.0.0 rejects this.
1276 It does not let you subtract one const X* pointer from another in an arm
1277 of an if-expression whose if-part is not a constant expression */
1278 const char *g = "string";
1279 ccp = &g + (g ? g-g : 0);
1280 /* HPUX 7.0 cc rejects these. */
1283 ccp = (char const *const *) p;
1284 { /* SCO 3.2v4 cc rejects this. */
1286 char const *s = 0 ? (char *) 0 : (char const *) 0;
1290 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1292 const int *foo = &x[0];
1295 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1296 typedef const int *iptr;
1300 { /* AIX XL C 1.02.0.0 rejects this saying
1301 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1302 struct s { int j; const int *ap[3]; };
1303 struct s *b; b->j = 5;
1305 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1311 if eval $ac_compile; then
1322 echo "$ac_t""$ac_cv_c_const" 1>&6
1323 if test $ac_cv_c_const = no
; then
1324 cat >> confdefs.h
<<\EOF
1329 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
1330 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
1331 echo $ac_n "(cached) $ac_c" 1>&6
1333 cat > conftest.
$ac_ext <<EOF
1334 #line 1335 "configure"
1335 #include "confdefs.h"
1336 #include <sys/types.h>
1337 #include <sys/stat.h>
1339 #if defined(S_ISBLK) && defined(S_IFDIR)
1340 # if S_ISBLK (S_IFDIR)
1345 #if defined(S_ISBLK) && defined(S_IFCHR)
1346 # if S_ISBLK (S_IFCHR)
1351 #if defined(S_ISLNK) && defined(S_IFREG)
1352 # if S_ISLNK (S_IFREG)
1357 #if defined(S_ISSOCK) && defined(S_IFREG)
1358 # if S_ISSOCK (S_IFREG)
1364 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1365 egrep "You lose" >/dev
/null
2>&1; then
1367 ac_cv_header_stat_broken
=yes
1370 ac_cv_header_stat_broken
=no
1376 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
1377 if test $ac_cv_header_stat_broken = yes; then
1378 cat >> confdefs.h
<<\EOF
1379 #define STAT_MACROS_BROKEN 1
1388 for ac_func
in psignal mktemp \
1389 dup2 getcwd sigsetmask getgroups setlinebuf \
1390 seteuid setegid setreuid setregid strerror strsignal
1392 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1393 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1394 echo $ac_n "(cached) $ac_c" 1>&6
1396 cat > conftest.
$ac_ext <<EOF
1397 #line 1398 "configure"
1398 #include "confdefs.h"
1399 /* System header to define __stub macros and hopefully few prototypes,
1400 which can conflict with char $ac_func(); below. */
1402 /* Override any gcc2 internal prototype to avoid an error. */
1405 int main() { return 0; }
1408 /* The GNU C library defines this for functions which it implements
1409 to always fail with ENOSYS. Some functions are actually named
1410 something starting with __ and the normal name is an alias. */
1411 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1419 if eval $ac_link; then
1421 eval "ac_cv_func_$ac_func=yes"
1424 eval "ac_cv_func_$ac_func=no"
1429 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1430 echo "$ac_t""yes" 1>&6
1431 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1432 cat >> confdefs.h
<<EOF
1433 #define $ac_tr_func 1
1437 echo "$ac_t""no" 1>&6
1441 echo $ac_n "checking for sys_siglist""... $ac_c" 1>&6
1442 if eval "test \"`echo '$''{'ac_cv_check_symbol_sys_siglist'+set}'`\" = set"; then
1443 echo $ac_n "(cached) $ac_c" 1>&6
1445 cat > conftest.
$ac_ext <<EOF
1446 #line 1447 "configure"
1447 #include "confdefs.h"
1449 int main() { return 0; }
1451 extern char *sys_siglist[]; puts(*sys_siglist);
1454 if eval $ac_link; then
1456 ac_cv_check_symbol_sys_siglist
=yes
1459 ac_cv_check_symbol_sys_siglist
=no
1465 if test "$ac_cv_check_symbol_sys_siglist" = yes; then
1466 ac_tr_symbol
=`echo sys_siglist | tr '[a-z]' '[A-Z]'`
1467 cat >> confdefs.h
<<EOF
1468 #define HAVE_${ac_tr_symbol} 1
1472 echo "$ac_t""$ac_cv_check_symbol_sys_siglist" 1>&6
1473 echo $ac_n "checking for _sys_siglist""... $ac_c" 1>&6
1474 if eval "test \"`echo '$''{'ac_cv_check_symbol__sys_siglist'+set}'`\" = set"; then
1475 echo $ac_n "(cached) $ac_c" 1>&6
1477 cat > conftest.
$ac_ext <<EOF
1478 #line 1479 "configure"
1479 #include "confdefs.h"
1481 int main() { return 0; }
1483 extern char *_sys_siglist[]; puts(*_sys_siglist);
1486 if eval $ac_link; then
1488 ac_cv_check_symbol__sys_siglist
=yes
1491 ac_cv_check_symbol__sys_siglist
=no
1497 if test "$ac_cv_check_symbol__sys_siglist" = yes; then
1498 ac_tr_symbol
=`echo _sys_siglist | tr '[a-z]' '[A-Z]'`
1499 cat >> confdefs.h
<<EOF
1500 #define HAVE_${ac_tr_symbol} 1
1504 echo "$ac_t""$ac_cv_check_symbol__sys_siglist" 1>&6
1505 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1506 # for constant arguments. Useless!
1507 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1508 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1509 echo $ac_n "(cached) $ac_c" 1>&6
1511 cat > conftest.
$ac_ext <<EOF
1512 #line 1513 "configure"
1513 #include "confdefs.h"
1515 int main() { return 0; }
1517 char *p = alloca(2 * sizeof(int));
1520 if eval $ac_link; then
1522 ac_cv_header_alloca_h
=yes
1525 ac_cv_header_alloca_h
=no
1531 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1532 if test $ac_cv_header_alloca_h = yes; then
1533 cat >> confdefs.h
<<\EOF
1534 #define HAVE_ALLOCA_H 1
1539 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1540 if eval "test \"`echo '$''{'ac_cv_func_alloca'+set}'`\" = set"; then
1541 echo $ac_n "(cached) $ac_c" 1>&6
1543 cat > conftest.
$ac_ext <<EOF
1544 #line 1545 "configure"
1545 #include "confdefs.h"
1548 # define alloca __builtin_alloca
1551 # include <alloca.h>
1556 # ifndef alloca /* predefined by HP cc +Olibcalls */
1563 int main() { return 0; }
1565 char *p = (char *) alloca(1);
1568 if eval $ac_link; then
1570 ac_cv_func_alloca
=yes
1573 ac_cv_func_alloca
=no
1579 echo "$ac_t""$ac_cv_func_alloca" 1>&6
1580 if test $ac_cv_func_alloca = yes; then
1581 cat >> confdefs.h
<<\EOF
1582 #define HAVE_ALLOCA 1
1587 if test $ac_cv_func_alloca = no
; then
1588 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1589 # that cause trouble. Some versions do not even contain alloca or
1590 # contain a buggy version. If you still want to use their alloca,
1591 # use ar to extract alloca.o from them instead of compiling alloca.c.
1593 cat >> confdefs.h
<<\EOF
1598 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1599 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1600 echo $ac_n "(cached) $ac_c" 1>&6
1602 cat > conftest.
$ac_ext <<EOF
1603 #line 1604 "configure"
1604 #include "confdefs.h"
1605 #if defined(CRAY) && ! defined(CRAY2)
1612 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1613 egrep "webecray" >/dev
/null
2>&1; then
1624 echo "$ac_t""$ac_cv_os_cray" 1>&6
1625 if test $ac_cv_os_cray = yes; then
1626 for ac_func
in _getb67 GETB67 getb67
; do
1627 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1628 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1629 echo $ac_n "(cached) $ac_c" 1>&6
1631 cat > conftest.
$ac_ext <<EOF
1632 #line 1633 "configure"
1633 #include "confdefs.h"
1634 /* System header to define __stub macros and hopefully few prototypes,
1635 which can conflict with char $ac_func(); below. */
1637 /* Override any gcc2 internal prototype to avoid an error. */
1640 int main() { return 0; }
1643 /* The GNU C library defines this for functions which it implements
1644 to always fail with ENOSYS. Some functions are actually named
1645 something starting with __ and the normal name is an alias. */
1646 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1654 if eval $ac_link; then
1656 eval "ac_cv_func_$ac_func=yes"
1659 eval "ac_cv_func_$ac_func=no"
1664 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1665 echo "$ac_t""yes" 1>&6
1666 cat >> confdefs.h
<<EOF
1667 #define CRAY_STACKSEG_END $ac_func
1672 echo "$ac_t""no" 1>&6
1678 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1679 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1680 echo $ac_n "(cached) $ac_c" 1>&6
1682 if test "$cross_compiling" = yes; then
1683 ac_cv_c_stack_direction
=0
1685 cat > conftest.
$ac_ext <<EOF
1686 #line 1687 "configure"
1687 #include "confdefs.h"
1688 find_stack_direction ()
1690 static char *addr = 0;
1695 return find_stack_direction ();
1698 return (&dummy > addr) ? 1 : -1;
1702 exit (find_stack_direction() < 0);
1706 if test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
; then
1707 ac_cv_c_stack_direction
=1
1709 ac_cv_c_stack_direction
=-1
1715 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1716 cat >> confdefs.h
<<EOF
1717 #define STACK_DIRECTION $ac_cv_c_stack_direction
1722 ac_safe
=`echo "vfork.h" | tr './\055' '___'`
1723 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
1724 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1725 echo $ac_n "(cached) $ac_c" 1>&6
1727 cat > conftest.
$ac_ext <<EOF
1728 #line 1729 "configure"
1729 #include "confdefs.h"
1732 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1733 ac_err
=`grep -v '^ *+' conftest.out`
1734 if test -z "$ac_err"; then
1736 eval "ac_cv_header_$ac_safe=yes"
1740 eval "ac_cv_header_$ac_safe=no"
1744 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1745 echo "$ac_t""yes" 1>&6
1746 cat >> confdefs.h
<<\EOF
1747 #define HAVE_VFORK_H 1
1751 echo "$ac_t""no" 1>&6
1754 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
1755 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
1756 echo $ac_n "(cached) $ac_c" 1>&6
1758 if test "$cross_compiling" = yes; then
1761 cat > conftest.
$ac_ext <<EOF
1762 #line 1763 "configure"
1763 #include "confdefs.h"
1764 /* Thanks to Paul Eggert for this test. */
1766 #include <sys/types.h>
1767 #include <sys/stat.h>
1768 #ifdef HAVE_UNISTD_H
1774 /* On some sparc systems, changes by the child to local and incoming
1775 argument registers are propagated back to the parent.
1776 The compiler is told about this with #include <vfork.h>,
1777 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
1778 Test for this by using a static variable whose address
1779 is put into a register that is clobbered by the vfork. */
1782 sparc_address_test (int arg)
1784 sparc_address_test (arg) int arg;
1800 pid_t parent = getpid ();
1803 sparc_address_test ();
1808 /* Here is another test for sparc vfork register problems.
1809 This test uses lots of local variables, at least
1810 as many local variables as main has allocated so far
1811 including compiler temporaries. 4 locals are enough for
1812 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
1813 A buggy compiler should reuse the register of parent
1814 for one of the local variables, since it will think that
1815 parent can't possibly be used any more in this routine.
1816 Assigning to the local variable will thus munge parent
1817 in the parent process. */
1819 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
1820 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
1821 /* Convince the compiler that p..p7 are live; otherwise, it might
1822 use the same hardware register for all 8 local variables. */
1823 if (p != p1 || p != p2 || p != p3 || p != p4
1824 || p != p5 || p != p6 || p != p7)
1827 /* On some systems (e.g. IRIX 3.3),
1828 vfork doesn't separate parent from child file descriptors.
1829 If the child closes a descriptor before it execs or exits,
1830 this munges the parent's descriptor as well.
1831 Test for this by closing stdout in the child. */
1832 _exit(close(fileno(stdout)) != 0);
1837 while (wait(&status) != child)
1840 /* Was there some problem with vforking? */
1843 /* Did the child fail? (This shouldn't happen.) */
1846 /* Did the vfork/compiler bug occur? */
1847 || parent != getpid()
1849 /* Did the file descriptor bug occur? */
1850 || fstat(fileno(stdout), &st) != 0
1856 if test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
; then
1857 ac_cv_func_vfork
=yes
1865 echo "$ac_t""$ac_cv_func_vfork" 1>&6
1866 if test $ac_cv_func_vfork = no
; then
1867 cat >> confdefs.h
<<\EOF
1873 echo $ac_n "checking whether setvbuf arguments are reversed""... $ac_c" 1>&6
1874 if eval "test \"`echo '$''{'ac_cv_func_setvbuf_reversed'+set}'`\" = set"; then
1875 echo $ac_n "(cached) $ac_c" 1>&6
1877 if test "$cross_compiling" = yes; then
1878 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1880 cat > conftest.
$ac_ext <<EOF
1881 #line 1882 "configure"
1882 #include "confdefs.h"
1884 /* If setvbuf has the reversed format, exit 0. */
1886 /* This call has the arguments reversed.
1887 A reversed system may check and see that the address of main
1888 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
1889 if (setvbuf(stdout, _IOLBF, (char *) main, BUFSIZ) != 0)
1892 exit(0); /* Non-reversed systems segv here. */
1896 if test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
; then
1897 ac_cv_func_setvbuf_reversed
=yes
1899 ac_cv_func_setvbuf_reversed
=no
1903 rm -f core core.
* *.core
1906 echo "$ac_t""$ac_cv_func_setvbuf_reversed" 1>&6
1907 if test $ac_cv_func_setvbuf_reversed = yes; then
1908 cat >> confdefs.h
<<\EOF
1909 #define SETVBUF_REVERSED 1
1914 ac_have_func
=no
# yes means we've found a way to get the load average.
1916 # Some systems with -lutil have (and need) -lkvm as well, some do not.
1917 # On Solaris, -lkvm requires nlist from -lelf, so check that first
1918 # to get the right answer into the cache.
1919 echo $ac_n "checking for -lelf""... $ac_c" 1>&6
1920 ac_lib_var
=`echo elf | tr './+' '__p'`
1921 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1922 echo $ac_n "(cached) $ac_c" 1>&6
1924 ac_save_LIBS
="$LIBS"
1926 cat > conftest.
$ac_ext <<EOF
1927 #line 1928 "configure"
1928 #include "confdefs.h"
1930 int main() { return 0; }
1935 if eval $ac_link; then
1937 eval "ac_cv_lib_$ac_lib_var=yes"
1940 eval "ac_cv_lib_$ac_lib_var=no"
1943 LIBS
="$ac_save_LIBS"
1946 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1947 echo "$ac_t""yes" 1>&6
1950 echo "$ac_t""no" 1>&6
1953 echo $ac_n "checking for -lkvm""... $ac_c" 1>&6
1954 ac_lib_var
=`echo kvm | tr './+' '__p'`
1955 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1956 echo $ac_n "(cached) $ac_c" 1>&6
1958 ac_save_LIBS
="$LIBS"
1960 cat > conftest.
$ac_ext <<EOF
1961 #line 1962 "configure"
1962 #include "confdefs.h"
1964 int main() { return 0; }
1969 if eval $ac_link; then
1971 eval "ac_cv_lib_$ac_lib_var=yes"
1974 eval "ac_cv_lib_$ac_lib_var=no"
1977 LIBS
="$ac_save_LIBS"
1980 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1981 echo "$ac_t""yes" 1>&6
1984 echo "$ac_t""no" 1>&6
1987 # Check for the 4.4BSD definition of getloadavg.
1988 echo $ac_n "checking for -lutil""... $ac_c" 1>&6
1989 ac_lib_var
=`echo util | tr './+' '__p'`
1990 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1991 echo $ac_n "(cached) $ac_c" 1>&6
1993 ac_save_LIBS
="$LIBS"
1995 cat > conftest.
$ac_ext <<EOF
1996 #line 1997 "configure"
1997 #include "confdefs.h"
1999 int main() { return 0; }
2004 if eval $ac_link; then
2006 eval "ac_cv_lib_$ac_lib_var=yes"
2009 eval "ac_cv_lib_$ac_lib_var=no"
2012 LIBS
="$ac_save_LIBS"
2015 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2016 echo "$ac_t""yes" 1>&6
2017 LIBS
="-lutil $LIBS" ac_have_func
=yes ac_cv_func_getloadavg_setgid
=yes
2019 echo "$ac_t""no" 1>&6
2023 if test $ac_have_func = no
; then
2024 # There is a commonly available library for RS/6000 AIX.
2025 # Since it is not a standard part of AIX, it might be installed locally.
2026 ac_save_LIBS
="$LIBS" LIBS
="-L/usr/local/lib $LIBS"
2027 echo $ac_n "checking for -lgetloadavg""... $ac_c" 1>&6
2028 ac_lib_var
=`echo getloadavg | tr './+' '__p'`
2029 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2030 echo $ac_n "(cached) $ac_c" 1>&6
2032 ac_save_LIBS
="$LIBS"
2033 LIBS
="-lgetloadavg $LIBS"
2034 cat > conftest.
$ac_ext <<EOF
2035 #line 2036 "configure"
2036 #include "confdefs.h"
2038 int main() { return 0; }
2043 if eval $ac_link; then
2045 eval "ac_cv_lib_$ac_lib_var=yes"
2048 eval "ac_cv_lib_$ac_lib_var=no"
2051 LIBS
="$ac_save_LIBS"
2054 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2055 echo "$ac_t""yes" 1>&6
2056 LIBS
="-lgetloadavg $LIBS"
2058 echo "$ac_t""no" 1>&6
2059 LIBS
="$ac_save_LIBS"
2064 # Make sure it is really in the library, if we think we found it.
2065 for ac_func
in getloadavg
2067 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2068 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2069 echo $ac_n "(cached) $ac_c" 1>&6
2071 cat > conftest.
$ac_ext <<EOF
2072 #line 2073 "configure"
2073 #include "confdefs.h"
2074 /* System header to define __stub macros and hopefully few prototypes,
2075 which can conflict with char $ac_func(); below. */
2077 /* Override any gcc2 internal prototype to avoid an error. */
2080 int main() { return 0; }
2083 /* The GNU C library defines this for functions which it implements
2084 to always fail with ENOSYS. Some functions are actually named
2085 something starting with __ and the normal name is an alias. */
2086 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2094 if eval $ac_link; then
2096 eval "ac_cv_func_$ac_func=yes"
2099 eval "ac_cv_func_$ac_func=no"
2104 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2105 echo "$ac_t""yes" 1>&6
2108 echo "$ac_t""no" 1>&6
2109 LIBOBJS
="$LIBOBJS ${ac_func}.o"
2115 if test $ac_cv_func_getloadavg = yes; then
2116 cat >> confdefs.h
<<\EOF
2117 #define HAVE_GETLOADAVG 1
2122 # Figure out what our getloadavg.c needs.
2124 ac_safe
=`echo "sys/dg_sys_info.h" | tr './\055' '___'`
2125 echo $ac_n "checking for sys/dg_sys_info.h""... $ac_c" 1>&6
2126 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2127 echo $ac_n "(cached) $ac_c" 1>&6
2129 cat > conftest.
$ac_ext <<EOF
2130 #line 2131 "configure"
2131 #include "confdefs.h"
2132 #include <sys/dg_sys_info.h>
2134 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2135 ac_err
=`grep -v '^ *+' conftest.out`
2136 if test -z "$ac_err"; then
2138 eval "ac_cv_header_$ac_safe=yes"
2142 eval "ac_cv_header_$ac_safe=no"
2146 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2147 echo "$ac_t""yes" 1>&6
2148 ac_have_func
=yes; cat >> confdefs.h
<<\EOF
2152 echo $ac_n "checking for -ldgc""... $ac_c" 1>&6
2153 ac_lib_var
=`echo dgc | tr './+' '__p'`
2154 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2155 echo $ac_n "(cached) $ac_c" 1>&6
2157 ac_save_LIBS
="$LIBS"
2159 cat > conftest.
$ac_ext <<EOF
2160 #line 2161 "configure"
2161 #include "confdefs.h"
2163 int main() { return 0; }
2168 if eval $ac_link; then
2170 eval "ac_cv_lib_$ac_lib_var=yes"
2173 eval "ac_cv_lib_$ac_lib_var=no"
2176 LIBS
="$ac_save_LIBS"
2179 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2180 echo "$ac_t""yes" 1>&6
2181 ac_tr_lib
=HAVE_LIB
`echo dgc | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2182 cat >> confdefs.h
<<EOF
2183 #define $ac_tr_lib 1
2189 echo "$ac_t""no" 1>&6
2193 echo "$ac_t""no" 1>&6
2197 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
2198 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
2199 # Irix 4.0.5F has the header but not the library.
2200 if test $ac_have_func = no
&& test $ac_cv_lib_elf = yes; then
2201 ac_have_func
=yes; cat >> confdefs.h
<<\EOF
2207 if test $ac_have_func = no
; then
2208 ac_safe
=`echo "inq_stats/cpustats.h" | tr './\055' '___'`
2209 echo $ac_n "checking for inq_stats/cpustats.h""... $ac_c" 1>&6
2210 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2211 echo $ac_n "(cached) $ac_c" 1>&6
2213 cat > conftest.
$ac_ext <<EOF
2214 #line 2215 "configure"
2215 #include "confdefs.h"
2216 #include <inq_stats/cpustats.h>
2218 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2219 ac_err
=`grep -v '^ *+' conftest.out`
2220 if test -z "$ac_err"; then
2222 eval "ac_cv_header_$ac_safe=yes"
2226 eval "ac_cv_header_$ac_safe=no"
2230 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2231 echo "$ac_t""yes" 1>&6
2232 ac_have_func
=yes; cat >> confdefs.h
<<\EOF
2236 cat >> confdefs.h
<<\EOF
2241 echo "$ac_t""no" 1>&6
2246 if test $ac_have_func = no
; then
2247 ac_safe
=`echo "sys/cpustats.h" | tr './\055' '___'`
2248 echo $ac_n "checking for sys/cpustats.h""... $ac_c" 1>&6
2249 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2250 echo $ac_n "(cached) $ac_c" 1>&6
2252 cat > conftest.
$ac_ext <<EOF
2253 #line 2254 "configure"
2254 #include "confdefs.h"
2255 #include <sys/cpustats.h>
2257 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2258 ac_err
=`grep -v '^ *+' conftest.out`
2259 if test -z "$ac_err"; then
2261 eval "ac_cv_header_$ac_safe=yes"
2265 eval "ac_cv_header_$ac_safe=no"
2269 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2270 echo "$ac_t""yes" 1>&6
2271 ac_have_func
=yes; cat >> confdefs.h
<<\EOF
2276 echo "$ac_t""no" 1>&6
2281 if test $ac_have_func = no
; then
2282 for ac_hdr
in mach
/mach.h
2284 ac_safe
=`echo "$ac_hdr" | tr './\055' '___'`
2285 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2286 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2287 echo $ac_n "(cached) $ac_c" 1>&6
2289 cat > conftest.
$ac_ext <<EOF
2290 #line 2291 "configure"
2291 #include "confdefs.h"
2294 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2295 ac_err
=`grep -v '^ *+' conftest.out`
2296 if test -z "$ac_err"; then
2298 eval "ac_cv_header_$ac_safe=yes"
2302 eval "ac_cv_header_$ac_safe=no"
2306 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2307 echo "$ac_t""yes" 1>&6
2308 ac_tr_hdr
=HAVE_
`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
2309 cat >> confdefs.h
<<EOF
2310 #define $ac_tr_hdr 1
2314 echo "$ac_t""no" 1>&6
2320 ac_safe
=`echo "nlist.h" | tr './\055' '___'`
2321 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
2322 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2323 echo $ac_n "(cached) $ac_c" 1>&6
2325 cat > conftest.
$ac_ext <<EOF
2326 #line 2327 "configure"
2327 #include "confdefs.h"
2330 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2331 ac_err
=`grep -v '^ *+' conftest.out`
2332 if test -z "$ac_err"; then
2334 eval "ac_cv_header_$ac_safe=yes"
2338 eval "ac_cv_header_$ac_safe=no"
2342 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2343 echo "$ac_t""yes" 1>&6
2344 cat >> confdefs.h
<<\EOF
2345 #define NLIST_STRUCT 1
2348 echo $ac_n "checking for n_un in struct nlist""... $ac_c" 1>&6
2349 if eval "test \"`echo '$''{'ac_cv_struct_nlist_n_un'+set}'`\" = set"; then
2350 echo $ac_n "(cached) $ac_c" 1>&6
2352 cat > conftest.
$ac_ext <<EOF
2353 #line 2354 "configure"
2354 #include "confdefs.h"
2356 int main() { return 0; }
2358 struct nlist n; n.n_un.n_name = 0;
2361 if eval $ac_compile; then
2363 ac_cv_struct_nlist_n_un
=yes
2366 ac_cv_struct_nlist_n_un
=no
2372 echo "$ac_t""$ac_cv_struct_nlist_n_un" 1>&6
2373 if test $ac_cv_struct_nlist_n_un = yes; then
2374 cat >> confdefs.h
<<\EOF
2375 #define NLIST_NAME_UNION 1
2381 echo "$ac_t""no" 1>&6
2383 fi # Do not have getloadavg in system libraries.
2385 # Some definitions of getloadavg require that the program be installed setgid.
2386 echo $ac_n "checking whether getloadavg requires setgid""... $ac_c" 1>&6
2387 if eval "test \"`echo '$''{'ac_cv_func_getloadavg_setgid'+set}'`\" = set"; then
2388 echo $ac_n "(cached) $ac_c" 1>&6
2390 cat > conftest.
$ac_ext <<EOF
2391 #line 2392 "configure"
2392 #include "confdefs.h"
2393 #include "$srcdir/getloadavg.c"
2394 #ifdef LDAV_PRIVILEGED
2395 Yowza Am I SETGID yet
2398 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2399 egrep "Yowza Am I SETGID yet" >/dev
/null
2>&1; then
2401 ac_cv_func_getloadavg_setgid
=yes
2404 ac_cv_func_getloadavg_setgid
=no
2410 echo "$ac_t""$ac_cv_func_getloadavg_setgid" 1>&6
2411 if test $ac_cv_func_getloadavg_setgid = yes; then
2412 NEED_SETGID
=true
; cat >> confdefs.h
<<\EOF
2413 #define GETLOADAVG_PRIVILEGED 1
2420 if test $ac_cv_func_getloadavg_setgid = yes; then
2421 echo $ac_n "checking group of /dev/kmem""... $ac_c" 1>&6
2422 if eval "test \"`echo '$''{'ac_cv_group_kmem'+set}'`\" = set"; then
2423 echo $ac_n "(cached) $ac_c" 1>&6
2425 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
2426 ac_ls_output
=`ls -lgL /dev/kmem 2>/dev/null`
2427 # If we got an error (system does not support symlinks), try without -L.
2428 test -z "$ac_ls_output" && ac_ls_output
=`ls -lg /dev/kmem`
2429 ac_cv_group_kmem
=`echo $ac_ls_output \
2430 | sed -ne 's/[ ][ ]*/ /g;
2431 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
2436 echo "$ac_t""$ac_cv_group_kmem" 1>&6
2437 KMEM_GROUP
=$ac_cv_group_kmem
2440 echo $ac_n "checking for strcoll""... $ac_c" 1>&6
2441 if eval "test \"`echo '$''{'ac_cv_func_strcoll'+set}'`\" = set"; then
2442 echo $ac_n "(cached) $ac_c" 1>&6
2444 if test "$cross_compiling" = yes; then
2445 ac_cv_func_strcoll
=no
2447 cat > conftest.
$ac_ext <<EOF
2448 #line 2449 "configure"
2449 #include "confdefs.h"
2453 exit (strcoll ("abc", "def") >= 0 ||
2454 strcoll ("ABC", "DEF") >= 0 ||
2455 strcoll ("123", "456") >= 0);
2459 if test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
; then
2460 ac_cv_func_strcoll
=yes
2462 ac_cv_func_strcoll
=no
2468 echo "$ac_t""$ac_cv_func_strcoll" 1>&6
2469 if test $ac_cv_func_strcoll = yes; then
2470 cat >> confdefs.h
<<\EOF
2471 #define HAVE_STRCOLL 1
2477 if test $ac_cv_func_getdtablesize = no
; then
2478 echo $ac_n "checking for sysconf (_SC_OPEN_MAX)""... $ac_c" 1>&6
2479 if eval "test \"`echo '$''{'make_cv_sysconf_open_max'+set}'`\" = set"; then
2480 echo $ac_n "(cached) $ac_c" 1>&6
2482 cat > conftest.
$ac_ext <<EOF
2483 #line 2484 "configure"
2484 #include "confdefs.h"
2486 int main() { return 0; }
2488 int max = sysconf (_SC_OPEN_MAX);
2491 if eval $ac_link; then
2493 make_cv_sysconf_open_max
=yes
2496 make_cv_sysconf_open_max
=no
2502 if test $make_cv_sysconf_open_max = yes; then
2503 cat >> confdefs.h
<<\EOF
2504 #define HAVE_SYSCONF_OPEN_MAX 1
2508 echo "$ac_t""$make_cv_sysconf_open_max" 1>&6
2511 # Check out the wait reality.
2512 for ac_hdr
in sys
/wait.h
2514 ac_safe
=`echo "$ac_hdr" | tr './\055' '___'`
2515 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2516 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2517 echo $ac_n "(cached) $ac_c" 1>&6
2519 cat > conftest.
$ac_ext <<EOF
2520 #line 2521 "configure"
2521 #include "confdefs.h"
2524 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2525 ac_err
=`grep -v '^ *+' conftest.out`
2526 if test -z "$ac_err"; then
2528 eval "ac_cv_header_$ac_safe=yes"
2532 eval "ac_cv_header_$ac_safe=no"
2536 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2537 echo "$ac_t""yes" 1>&6
2538 ac_tr_hdr
=HAVE_
`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
2539 cat >> confdefs.h
<<EOF
2540 #define $ac_tr_hdr 1
2544 echo "$ac_t""no" 1>&6
2547 for ac_func
in waitpid wait3
2549 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2550 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2551 echo $ac_n "(cached) $ac_c" 1>&6
2553 cat > conftest.
$ac_ext <<EOF
2554 #line 2555 "configure"
2555 #include "confdefs.h"
2556 /* System header to define __stub macros and hopefully few prototypes,
2557 which can conflict with char $ac_func(); below. */
2559 /* Override any gcc2 internal prototype to avoid an error. */
2562 int main() { return 0; }
2565 /* The GNU C library defines this for functions which it implements
2566 to always fail with ENOSYS. Some functions are actually named
2567 something starting with __ and the normal name is an alias. */
2568 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2576 if eval $ac_link; then
2578 eval "ac_cv_func_$ac_func=yes"
2581 eval "ac_cv_func_$ac_func=no"
2586 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2587 echo "$ac_t""yes" 1>&6
2588 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2589 cat >> confdefs.h
<<EOF
2590 #define $ac_tr_func 1
2594 echo "$ac_t""no" 1>&6
2598 echo $ac_n "checking for union wait""... $ac_c" 1>&6
2599 if eval "test \"`echo '$''{'make_cv_union_wait'+set}'`\" = set"; then
2600 echo $ac_n "(cached) $ac_c" 1>&6
2602 cat > conftest.
$ac_ext <<EOF
2603 #line 2604 "configure"
2604 #include "confdefs.h"
2605 #include <sys/types.h>
2606 #include <sys/wait.h>
2607 int main() { return 0; }
2609 union wait status; int pid; pid = wait (&status);
2611 /* Some POSIXoid systems have both the new-style macros and the old
2612 union wait type, and they do not work together. If union wait
2613 conflicts with WEXITSTATUS et al, we don't want to use it at all. */
2614 if (WEXITSTATUS (status) != 0) pid = -1;
2616 /* If we have WEXITSTATUS and WTERMSIG, just use them on ints. */
2617 -- blow chunks here --
2621 /* Make sure union wait works with waitpid. */
2622 pid = waitpid (-1, &status, 0);
2627 if eval $ac_link; then
2629 make_cv_union_wait
=yes
2632 make_cv_union_wait
=no
2638 if test "$make_cv_union_wait" = yes; then
2639 cat >> confdefs.h
<<\EOF
2640 #define HAVE_UNION_WAIT 1
2644 echo "$ac_t""$make_cv_union_wait" 1>&6
2646 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
2647 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
2648 echo $ac_n "(cached) $ac_c" 1>&6
2650 cat > conftest.
$ac_ext <<EOF
2651 #line 2652 "configure"
2652 #include "confdefs.h"
2653 #include <sys/types.h>
2655 /* NetBSD declares sys_siglist in unistd.h. */
2656 #ifdef HAVE_UNISTD_H
2659 int main() { return 0; }
2661 char *msg = *(sys_siglist + 1);
2664 if eval $ac_compile; then
2666 ac_cv_decl_sys_siglist
=yes
2669 ac_cv_decl_sys_siglist
=no
2675 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
2676 if test $ac_cv_decl_sys_siglist = yes; then
2677 cat >> confdefs.h
<<\EOF
2678 #define SYS_SIGLIST_DECLARED 1
2684 # The presence of the following is not meant to imply
2685 # that make necessarily works on those systems.
2686 echo $ac_n "checking for -lsun""... $ac_c" 1>&6
2687 ac_lib_var
=`echo sun | tr './+' '__p'`
2688 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2689 echo $ac_n "(cached) $ac_c" 1>&6
2691 ac_save_LIBS
="$LIBS"
2693 cat > conftest.
$ac_ext <<EOF
2694 #line 2695 "configure"
2695 #include "confdefs.h"
2697 int main() { return 0; }
2702 if eval $ac_link; then
2704 eval "ac_cv_lib_$ac_lib_var=yes"
2707 eval "ac_cv_lib_$ac_lib_var=no"
2710 LIBS
="$ac_save_LIBS"
2713 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2714 echo "$ac_t""yes" 1>&6
2715 ac_tr_lib
=HAVE_LIB
`echo sun | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2716 cat >> confdefs.h
<<EOF
2717 #define $ac_tr_lib 1
2723 echo "$ac_t""no" 1>&6
2728 # Check whether --with-customs or --without-customs was given.
2729 if test "${with_customs+set}" = set; then
2730 withval
="$with_customs"
2731 REMOTE
=cstms LIBS
="$LIBS libcustoms.a"
2735 echo checking
for location of SCCS get
command
2736 if test -f /usr
/sccs
/get
; then
2737 SCCS_GET
=/usr
/sccs
/get
2738 cat >> confdefs.h
<<\EOF
2739 #define SCCS_GET "/usr/sccs/get"
2744 cat >> confdefs.h
<<\EOF
2745 #define SCCS_GET "get"
2749 ac_clean_files
="$ac_clean_files s.conftest conftoast" # Remove these later.
2750 if ( /usr
/sccs
/admin
-n s.conftest || admin
-n s.conftest
) >/dev
/null
2>&1 &&
2751 test -f s.conftest
; then
2752 # We successfully created an SCCS file.
2753 echo checking
if SCCS get
command understands
-G
2754 if $SCCS_GET -Gconftoast s.conftest
>/dev
/null
2>&1 &&
2755 test -f conftoast
; then
2756 cat >> confdefs.h
<<\EOF
2757 #define SCCS_GET_MINUS_G 1
2762 rm -f s.conftest conftoast
2765 cat > confcache
<<\EOF
2766 # This file is a shell script that caches the results of configure
2767 # tests run on this system so they can be shared between configure
2768 # scripts and configure runs. It is not useful on other systems.
2769 # If it contains results you don't want to keep, you may remove or edit it.
2771 # By default, configure uses ./config.cache as the cache file,
2772 # creating it if it does not exist already. You can give configure
2773 # the --cache-file=FILE option to use a different cache file; that is
2774 # what configure does when it calls configure scripts in
2775 # subdirectories, so they share the cache.
2776 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2777 # config.status only pays attention to the cache file if you give it the
2778 # --recheck option to rerun configure.
2781 # Ultrix sh set writes to stderr and can't be redirected directly,
2782 # and sets the high bit in the cache file unless we assign to the vars.
2784 sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
2786 if cmp -s $cache_file confcache
; then
2789 if test -w $cache_file; then
2790 echo "updating cache $cache_file"
2791 cat confcache
> $cache_file
2793 echo "not updating unwritable cache $cache_file"
2798 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2800 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
2801 # Let make expand exec_prefix.
2802 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
2804 # Any assignment to VPATH causes Sun make to only execute
2805 # the first set of double-colon rules, so remove it if not needed.
2806 # If there is a colon in the path, we need to keep it.
2807 if test "x$srcdir" = x.
; then
2808 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
2811 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2813 DEFS
=-DHAVE_CONFIG_H
2815 # Without the "./", some shells look in PATH for config.status.
2816 : ${CONFIG_STATUS=./config.status}
2818 echo creating
$CONFIG_STATUS
2819 rm -f $CONFIG_STATUS
2820 cat > $CONFIG_STATUS <<EOF
2822 # Generated automatically by configure.
2823 # Run this file to recreate the current configuration.
2824 # This directory was configured as follows,
2825 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2827 # $0 $ac_configure_args
2829 # Compiler output produced by configure, useful for debugging
2830 # configure, is in ./config.log if it exists.
2832 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2835 case "\$ac_option" in
2836 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2837 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2838 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2839 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2840 echo "$CONFIG_STATUS generated by autoconf version 2.5"
2842 -help | --help | --hel | --he | --h)
2843 echo "\$ac_cs_usage"; exit 0 ;;
2844 *) echo "\$ac_cs_usage"; exit 1 ;;
2848 ac_given_srcdir=$srcdir
2849 ac_given_INSTALL="$INSTALL"
2851 trap 'rm -fr `echo "Makefile build.sh config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2853 # Protect against being on the right side of a sed subst in config.status.
2854 sed 's/%@/@@/; s/@%/@@/; s/%g$/@g/; /@g$/s/[\\\\&%]/\\\\&/g;
2855 s/@@/%@/; s/@@/@%/; s/@g$/%g/' > conftest.subs <<\CEOF
2858 s%@CFLAGS@%$CFLAGS%g
2859 s%@CPPFLAGS@%$CPPFLAGS%g
2860 s%@CXXFLAGS@%$CXXFLAGS%g
2862 s%@LDFLAGS@%$LDFLAGS%g
2864 s%@exec_prefix@%$exec_prefix%g
2865 s%@prefix@%$prefix%g
2866 s%@program_transform_name@%$program_transform_name%g
2867 s%@bindir@%$bindir%g
2868 s%@sbindir@%$sbindir%g
2869 s%@libexecdir@%$libexecdir%g
2870 s%@datadir@%$datadir%g
2871 s%@sysconfdir@%$sysconfdir%g
2872 s%@sharedstatedir@%$sharedstatedir%g
2873 s%@localstatedir@%$localstatedir%g
2874 s%@libdir@%$libdir%g
2875 s%@includedir@%$includedir%g
2876 s%@oldincludedir@%$oldincludedir%g
2877 s%@infodir@%$infodir%g
2878 s%@mandir@%$mandir%g
2879 s%@subdirs@%$subdirs%g
2880 s%@SET_MAKE@%$SET_MAKE%g
2882 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2883 s%@INSTALL_DATA@%$INSTALL_DATA%g
2885 s%@LIBOBJS@%$LIBOBJS%g
2886 s%@ALLOCA@%$ALLOCA%g
2887 s%@NEED_SETGID@%$NEED_SETGID%g
2888 s%@KMEM_GROUP@%$KMEM_GROUP%g
2889 s%@REMOTE@%$REMOTE%g
2893 cat >> $CONFIG_STATUS <<EOF
2895 CONFIG_FILES=\${CONFIG_FILES-"Makefile build.sh"}
2897 cat >> $CONFIG_STATUS <<\EOF
2898 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
2899 # Support "outfile[:infile]", defaulting infile="outfile.in".
2901 *:*) ac_file_in
=`echo "$ac_file"|sed 's%.*:%%'`
2902 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
2903 *) ac_file_in
="${ac_file}.in" ;;
2906 # Adjust relative srcdir, etc. for subdirectories.
2908 # Remove last slash and all that follows it. Not all systems have dirname.
2909 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2910 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
2911 # The file is in a subdirectory.
2912 test ! -d "$ac_dir" && mkdir
"$ac_dir"
2913 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
2914 # A "../" for each directory in $ac_dir_suffix.
2915 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2917 ac_dir_suffix
= ac_dots
=
2920 case "$ac_given_srcdir" in
2922 if test -z "$ac_dots"; then top_srcdir
=.
2923 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2924 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
2926 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2927 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
2930 case "$ac_given_INSTALL" in
2931 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
2932 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
2934 echo creating
"$ac_file"
2936 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2938 *Makefile
*) ac_comsub
="1i\\
2939 # $configure_input" ;;
2943 s%@configure_input@%$configure_input%g
2944 s%@srcdir@%$srcdir%g
2945 s%@top_srcdir@%$top_srcdir%g
2946 s%@INSTALL@%$INSTALL%g
2947 " -f conftest.subs
$ac_given_srcdir/$ac_file_in > $ac_file
2951 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2952 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2954 # ac_d sets the value in "#define NAME VALUE" lines.
2955 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2956 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
2959 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2960 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2961 ac_uB
='\([ ]\)%\1#\2define\3'
2964 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2965 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2966 ac_eB
='$%\1#\2define\3'
2970 CONFIG_HEADERS
=${CONFIG_HEADERS-"config.h"}
2971 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
2972 # Support "outfile[:infile]", defaulting infile="outfile.in".
2974 *:*) ac_file_in
=`echo "$ac_file"|sed 's%.*:%%'`
2975 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
2976 *) ac_file_in
="${ac_file}.in" ;;
2979 echo creating
$ac_file
2981 rm -f conftest.frag conftest.
in conftest.out
2982 cp $ac_given_srcdir/$ac_file_in conftest.
in
2986 # Transform confdefs.h into a sed script conftest.vals that substitutes
2987 # the proper values into config.h.in to produce config.h. And first:
2988 # Protect against being on the right side of a sed subst in config.status.
2989 # Protect against being in an unquoted here document in config.status.
2991 cat > conftest.hdr
<<\EOF
2994 s%#define \([A-Za-z_][A-Za-z0-9_]*\) \(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2998 sed -n -f conftest.hdr confdefs.h > conftest.vals
3001 # This sed command replaces #undef with comments. This is necessary, for
3002 # example, in the case of _POSIX_SOURCE, which is predefined and required
3003 # on some systems where configure will not decide to define it.
3004 cat >> conftest.vals <<\EOF
3005 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3008 # Break up conftest.vals because some shells have a limit on
3009 # the size of here documents, and old seds have small limits too.
3010 # Maximum number of lines to put in a single here document.
3011 ac_max_here_lines=12
3016 ac_lines=`grep -c . conftest.vals
`
3017 # grep -c gives empty output for an empty file on some AIX systems.
3018 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3019 # Write a limited-size here document to conftest.frag.
3020 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3021 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3023 sed -f conftest.frag conftest.in > conftest.out
3025 mv conftest.out conftest.in
3027 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3029 mv conftest.tail conftest.vals
3033 cat >> $CONFIG_STATUS <<\EOF
3034 rm -f conftest.frag conftest.h
3035 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3036 cat conftest.in >> conftest.h
3038 if cmp -s $ac_file conftest.h 2>/dev/null; then
3039 echo "$ac_file is unchanged"
3043 mv conftest.h $ac_file
3049 # Makefile uses this timestamp file to know when to remake Makefile,
3050 # build.sh, and glob/Makefile.
3054 chmod +x $CONFIG_STATUS
3055 rm -fr confdefs* $ac_clean_files
3056 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3058 if test "$no_recursion" != yes; then
3060 # Remove --cache-file and --srcdir arguments so they do not pile up.
3061 ac_sub_configure_args=
3063 for ac_arg in $ac_configure_args; do
3064 if test -n "$ac_prev"; then
3069 -cache-file | --cache-file | --cache-fil | --cache-fi \
3070 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
3071 ac_prev=cache_file ;;
3072 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
3073 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
3075 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
3077 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
3079 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
3083 for ac_config_dir in glob; do
3085 # Do not complain, so a configure script can configure whichever
3086 # parts of a large source tree are present.
3087 if test ! -d $srcdir/$ac_config_dir; then
3091 echo configuring in $ac_config_dir
3096 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
3098 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
3107 .) # No --srcdir option. We are building in place.
3108 ac_sub_srcdir=$srcdir ;;
3109 /*) # Absolute path.
3110 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
3112 ac_sub_srcdir=../$srcdir/$ac_config_dir ;;
3115 # Check for guested configure; otherwise get Cygnus style configure.
3116 if test -f $ac_sub_srcdir/configure; then
3117 ac_sub_configure=$ac_sub_srcdir/configure
3118 elif test -f $ac_sub_srcdir/configure.in; then
3119 ac_sub_configure=$ac_configure
3121 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
3125 # The recursion is here.
3126 if test -n "$ac_sub_configure"; then
3128 # Make the cache file name correct relative to the subdirectory.
3129 # A "../" for each directory in /$ac_config_dir.
3130 ac_dots=`echo $ac_config_dir|
sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
3131 case "$cache_file" in
3132 /*) ac_sub_cache_file=$cache_file ;;
3134 ac_sub_cache_file="$ac_dots$cache_file" ;;
3136 case "$ac_given_INSTALL" in
3137 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3138 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3141 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
3142 # The eval makes quoting arguments work.
3143 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
3146 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }