3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.10
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_default_prefix=/usr
16 --with-etcdir=PATH Directory containing permission files (default /etc)."
18 --with-jobdir=PATH Directory containing at jobs (default SPOOLDIR/atjobs)."
20 --with-atspool=PATH Directory containing at spool (default SPOOLDIR/atspool)."
22 --with-atqueue=DEFAULT_AT_QUEUE Default queue for at (default a). "
24 --with-batchqueue=DEFAULT_BATCH_QUEUE Default queue for batch (default b). "
26 --with-loadavg_mx=LOADAVG_MX Default max. load average for batch (default 0.8). "
28 --with-daemon_username=DAEMON_USERNAME Username to run under (default daemon) "
30 --with-daemon_groupname=DAEMON_GROUPNAME Groupname to run under (default daemon) "
32 # Initialize some variables set by options.
33 # The variables have the same names as the options, with
34 # dashes changed to underlines.
36 cache_file=./config.cache
45 program_transform_name=s,x,x,
53 bindir='${exec_prefix}/bin'
54 sbindir='${exec_prefix}/sbin'
55 libexecdir='${exec_prefix}/libexec'
56 datadir='${prefix}/share'
57 sysconfdir='${prefix}/etc'
58 sharedstatedir='${prefix}/com'
59 localstatedir='${prefix}/var'
60 libdir='${exec_prefix}/lib'
61 includedir='${prefix}/include'
62 oldincludedir='/usr/include'
63 infodir='${prefix}/info'
64 mandir='${prefix}/man'
66 # Initialize some other variables.
74 # If the previous option needs an argument, assign it.
75 if test -n "$ac_prev"; then
76 eval "$ac_prev=\$ac_option"
82 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
86 # Accept the important Cygnus configure options, so we can diagnose typos.
90 -bindir | --bindir | --bindi | --bind | --bin | --bi)
92 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
93 bindir="$ac_optarg" ;;
95 -build | --build | --buil | --bui | --bu)
97 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
100 -cache-file | --cache-file | --cache-fil | --cache-fi \
101 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
102 ac_prev=cache_file ;;
103 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
104 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
105 cache_file="$ac_optarg" ;;
107 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
109 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
111 datadir="$ac_optarg" ;;
113 -disable-* | --disable-*)
114 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
115 # Reject names that are not valid shell variable names.
116 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
117 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
119 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
120 eval "enable_${ac_feature}=no" ;;
122 -enable-* | --enable-*)
123 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
124 # Reject names that are not valid shell variable names.
125 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
126 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
128 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
133 eval "enable_${ac_feature}='$ac_optarg'" ;;
135 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
136 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
137 | --exec | --exe | --ex)
138 ac_prev=exec_prefix ;;
139 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
140 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
141 | --exec=* | --exe=* | --ex=*)
142 exec_prefix="$ac_optarg" ;;
144 -gas | --gas | --ga | --g)
145 # Obsolete; use --with-gas.
148 -help | --help | --hel | --he)
149 # Omit some internal or obsolete options to make the list less imposing.
150 # This message is too long to be a string in the A/UX 3.1 sh.
152 Usage: configure [options] [host]
153 Options: [defaults in brackets after descriptions]
155 --cache-file=FILE cache test results in FILE
156 --help print this message
157 --no-create do not create output files
158 --quiet, --silent do not print \`checking...' messages
159 --version print the version of autoconf that created configure
160 Directory and file names:
161 --prefix=PREFIX install architecture-independent files in PREFIX
163 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
165 --bindir=DIR user executables in DIR [EPREFIX/bin]
166 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
167 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
168 --datadir=DIR read-only architecture-independent data in DIR
170 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
171 --sharedstatedir=DIR modifiable architecture-independent data in DIR
173 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
174 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
175 --includedir=DIR C header files in DIR [PREFIX/include]
176 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
177 --infodir=DIR info documentation in DIR [PREFIX/info]
178 --mandir=DIR man documentation in DIR [PREFIX/man]
179 --srcdir=DIR find the sources in DIR [configure dir or ..]
180 --program-prefix=PREFIX prepend PREFIX to installed program names
181 --program-suffix=SUFFIX append SUFFIX to installed program names
182 --program-transform-name=PROGRAM
183 run sed PROGRAM on installed program names
187 --build=BUILD configure for building on BUILD [BUILD=HOST]
188 --host=HOST configure for HOST [guessed]
189 --target=TARGET configure for TARGET [TARGET=HOST]
190 Features and packages:
191 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
192 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
193 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
194 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
195 --x-includes=DIR X include files are in DIR
196 --x-libraries=DIR X library files are in DIR
198 if test -n "$ac_help"; then
199 echo "--enable and --with options recognized:$ac_help"
203 -host | --host | --hos | --ho)
205 -host=* | --host=* | --hos=* | --ho=*)
208 -includedir | --includedir | --includedi | --included | --include \
209 | --includ | --inclu | --incl | --inc)
210 ac_prev=includedir ;;
211 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
212 | --includ=* | --inclu=* | --incl=* | --inc=*)
213 includedir="$ac_optarg" ;;
215 -infodir | --infodir | --infodi | --infod | --info | --inf)
217 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
218 infodir="$ac_optarg" ;;
220 -libdir | --libdir | --libdi | --libd)
222 -libdir=* | --libdir=* | --libdi=* | --libd=*)
223 libdir="$ac_optarg" ;;
225 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
226 | --libexe | --libex | --libe)
227 ac_prev=libexecdir ;;
228 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
229 | --libexe=* | --libex=* | --libe=*)
230 libexecdir="$ac_optarg" ;;
232 -localstatedir | --localstatedir | --localstatedi | --localstated \
233 | --localstate | --localstat | --localsta | --localst \
234 | --locals | --local | --loca | --loc | --lo)
235 ac_prev=localstatedir ;;
236 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
237 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
238 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
239 localstatedir="$ac_optarg" ;;
241 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
243 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
244 mandir="$ac_optarg" ;;
247 # Obsolete; use --without-fp.
250 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
254 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
255 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
258 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
259 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
260 | --oldin | --oldi | --old | --ol | --o)
261 ac_prev=oldincludedir ;;
262 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
263 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
264 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
265 oldincludedir="$ac_optarg" ;;
267 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
269 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
270 prefix="$ac_optarg" ;;
272 -program-prefix | --program-prefix | --program-prefi | --program-pref \
273 | --program-pre | --program-pr | --program-p)
274 ac_prev=program_prefix ;;
275 -program-prefix=* | --program-prefix=* | --program-prefi=* \
276 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
277 program_prefix="$ac_optarg" ;;
279 -program-suffix | --program-suffix | --program-suffi | --program-suff \
280 | --program-suf | --program-su | --program-s)
281 ac_prev=program_suffix ;;
282 -program-suffix=* | --program-suffix=* | --program-suffi=* \
283 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
284 program_suffix="$ac_optarg" ;;
286 -program-transform-name | --program-transform-name \
287 | --program-transform-nam | --program-transform-na \
288 | --program-transform-n | --program-transform- \
289 | --program-transform | --program-transfor \
290 | --program-transfo | --program-transf \
291 | --program-trans | --program-tran \
292 | --progr-tra | --program-tr | --program-t)
293 ac_prev=program_transform_name ;;
294 -program-transform-name=* | --program-transform-name=* \
295 | --program-transform-nam=* | --program-transform-na=* \
296 | --program-transform-n=* | --program-transform-=* \
297 | --program-transform=* | --program-transfor=* \
298 | --program-transfo=* | --program-transf=* \
299 | --program-trans=* | --program-tran=* \
300 | --progr-tra=* | --program-tr=* | --program-t=*)
301 program_transform_name="$ac_optarg" ;;
303 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
304 | -silent | --silent | --silen | --sile | --sil)
307 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
309 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
311 sbindir="$ac_optarg" ;;
313 -sharedstatedir | --sharedstatedir | --sharedstatedi \
314 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
315 | --sharedst | --shareds | --shared | --share | --shar \
317 ac_prev=sharedstatedir ;;
318 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
319 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
320 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
322 sharedstatedir="$ac_optarg" ;;
324 -site | --site | --sit)
326 -site=* | --site=* | --sit=*)
329 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
331 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
332 srcdir="$ac_optarg" ;;
334 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
335 | --syscon | --sysco | --sysc | --sys | --sy)
336 ac_prev=sysconfdir ;;
337 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
338 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
339 sysconfdir="$ac_optarg" ;;
341 -target | --target | --targe | --targ | --tar | --ta | --t)
343 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
344 target="$ac_optarg" ;;
346 -v | -verbose | --verbose | --verbos | --verbo | --verb)
349 -version | --version | --versio | --versi | --vers)
350 echo "configure generated by autoconf version 2.10"
354 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
355 # Reject names that are not valid shell variable names.
356 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
357 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
359 ac_package=`echo $ac_package| sed 's/-/_/g'`
364 eval "with_${ac_package}='$ac_optarg'" ;;
366 -without-* | --without-*)
367 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
368 # Reject names that are not valid shell variable names.
369 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
370 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
372 ac_package=`echo $ac_package| sed 's/-/_/g'`
373 eval "with_${ac_package}=no" ;;
376 # Obsolete; use --with-x.
379 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
380 | --x-incl | --x-inc | --x-in | --x-i)
381 ac_prev=x_includes ;;
382 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
383 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
384 x_includes="$ac_optarg" ;;
386 -x-libraries | --x-libraries | --x-librarie | --x-librari \
387 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
388 ac_prev=x_libraries ;;
389 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
390 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
391 x_libraries="$ac_optarg" ;;
393 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
397 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
398 echo "configure: warning: $ac_option: invalid host type" 1>&2
400 if test "x$nonopt" != xNONE; then
401 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
409 if test -n "$ac_prev"; then
410 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
413 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
415 # File descriptor usage:
418 # 2 errors and warnings
419 # 3 some systems may open it to /dev/tty
420 # 4 used on the Kubota Titan
421 # 6 checking for... messages and results
422 # 5 compiler messages saved in config.log
423 if test "$silent" = yes; then
431 This file contains any messages produced by compilers while
432 running configure, to aid debugging if configure makes a mistake.
435 # Strip out --no-create and --no-recursion so they do not pile up.
436 # Also quote any args containing shell metacharacters.
441 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
442 | --no-cr | --no-c) ;;
443 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
444 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
445 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
446 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
447 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
452 # Only set LANG and LC_ALL to C if already set.
453 # These must not be set unconditionally because not all systems understand
454 # e.g. LANG=C (notably SCO).
455 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
456 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
458 # confdefs.h avoids OS command line length limits that DEFS can exceed.
459 rm -rf conftest* confdefs.h
460 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
463 # A filename unique to this package, relative to the directory that
464 # configure is in, which we can look for to find out if srcdir is correct.
467 # Find the source files, if location was not specified.
468 if test -z "$srcdir"; then
469 ac_srcdir_defaulted=yes
470 # Try the directory containing this script, then its parent.
472 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
473 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
475 if test ! -r $srcdir/$ac_unique_file; then
479 ac_srcdir_defaulted=no
481 if test ! -r $srcdir/$ac_unique_file; then
482 if test "$ac_srcdir_defaulted" = yes; then
483 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
485 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
488 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
490 # Prefer explicitly selected file to automatically selected ones.
491 if test -z "$CONFIG_SITE"; then
492 if test "x$prefix" != xNONE; then
493 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
495 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
498 for ac_site_file in $CONFIG_SITE; do
499 if test -r "$ac_site_file"; then
500 echo "loading site script $ac_site_file"
505 if test -r "$cache_file"; then
506 echo "loading cache $cache_file"
509 echo "creating cache $cache_file"
514 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
515 ac_cpp='$CPP $CPPFLAGS'
516 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
517 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
519 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
520 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
521 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
528 ac_n= ac_c='\c' ac_t=
538 if test "X$CFLAGS" = "X"; then
545 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
546 if test -f $ac_dir/install-sh; then
548 ac_install_sh="$ac_aux_dir/install-sh -c"
550 elif test -f $ac_dir/install.sh; then
552 ac_install_sh="$ac_aux_dir/install.sh -c"
556 if test -z "$ac_aux_dir"; then
557 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
559 ac_config_guess=$ac_aux_dir/config.guess
560 ac_config_sub=$ac_aux_dir/config.sub
561 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
564 # Make sure we can run config.sub.
565 if $ac_config_sub sun4 >/dev/null 2>&1; then :
566 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
569 echo $ac_n "checking host system type""... $ac_c" 1>&6
572 case "$host_alias" in
576 if host_alias=`$ac_config_guess`; then :
577 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
579 *) host_alias=$nonopt ;;
583 host=`$ac_config_sub $host_alias`
584 host_cpu=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
585 host_vendor=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
586 host_os=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
587 echo "$ac_t""$host" 1>&6
591 # If we cannot run a trivial program, we must be cross compiling.
592 echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6
593 if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then
594 echo $ac_n "(cached) $ac_c" 1>&6
596 if test "$cross_compiling" = yes; then
599 cat > conftest.$ac_ext <<EOF
600 #line 601 "configure"
601 #include "confdefs.h"
604 { (eval echo configure:605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
605 if test -s conftest && (./conftest; exit) 2>/dev/null; then
614 echo "$ac_t""$ac_cv_c_cross" 1>&6
615 cross_compiling=$ac_cv_c_cross
617 # Extract the first word of "gcc", so it can be a program name with args.
618 set dummy gcc; ac_word=$2
619 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
620 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
621 echo $ac_n "(cached) $ac_c" 1>&6
623 if test -n "$CC"; then
624 ac_cv_prog_CC="$CC" # Let the user override the test.
626 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
627 for ac_dir in $PATH; do
628 test -z "$ac_dir" && ac_dir=.
629 if test -f $ac_dir/$ac_word; then
638 if test -n "$CC"; then
639 echo "$ac_t""$CC" 1>&6
641 echo "$ac_t""no" 1>&6
644 if test -z "$CC"; then
645 # Extract the first word of "cc", so it can be a program name with args.
646 set dummy cc; ac_word=$2
647 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
648 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
649 echo $ac_n "(cached) $ac_c" 1>&6
651 if test -n "$CC"; then
652 ac_cv_prog_CC="$CC" # Let the user override the test.
654 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
656 for ac_dir in $PATH; do
657 test -z "$ac_dir" && ac_dir=.
658 if test -f $ac_dir/$ac_word; then
659 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
668 if test $ac_prog_rejected = yes; then
669 # We found a bogon in the path, so make sure we never use it.
670 set dummy $ac_cv_prog_CC
672 if test $# -gt 0; then
673 # We chose a different compiler from the bogus one.
674 # However, it has the same basename, so the bogon will be chosen
675 # first if we set CC to just the basename; use the full file name.
677 set dummy "$ac_dir/$ac_word" "$@"
685 if test -n "$CC"; then
686 echo "$ac_t""$CC" 1>&6
688 echo "$ac_t""no" 1>&6
691 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
694 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
695 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
696 echo $ac_n "(cached) $ac_c" 1>&6
698 cat > conftest.c <<EOF
703 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:704: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
710 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
711 if test $ac_cv_prog_gcc = yes; then
713 if test "${CFLAGS+set}" != set; then
714 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
715 if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then
716 echo $ac_n "(cached) $ac_c" 1>&6
718 echo 'void f(){}' > conftest.c
719 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
728 echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
729 if test $ac_cv_prog_gcc_g = yes; then
737 test "${CFLAGS+set}" = set || CFLAGS="-g"
740 # Find a good install program. We prefer a C program (faster),
741 # so one script is as good as another. But avoid the broken or
742 # incompatible versions:
743 # SysV /etc/install, /usr/sbin/install
744 # SunOS /usr/etc/install
747 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
748 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
749 # ./install, which can be erroneously created by make from ./install.sh.
750 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
751 if test -z "$INSTALL"; then
752 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
753 echo $ac_n "(cached) $ac_c" 1>&6
755 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
756 for ac_dir in $PATH; do
757 # Account for people who put trailing slashes in PATH elements.
759 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
761 # OSF1 and SCO ODT 3.0 have their own names for install.
762 for ac_prog in ginstall installbsd scoinst install; do
763 if test -f $ac_dir/$ac_prog; then
764 if test $ac_prog = install &&
765 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
766 # AIX install. It has an incompatible calling convention.
767 # OSF/1 installbsd also uses dspmsg, but is usable.
770 ac_cv_path_install="$ac_dir/$ac_prog -c"
781 if test "${ac_cv_path_install+set}" = set; then
782 INSTALL="$ac_cv_path_install"
784 # As a last resort, use the slow shell script. We don't cache a
785 # path for INSTALL within a source directory, because that will
786 # break other packages using the cache if that directory is
787 # removed, or if the path is relative.
788 INSTALL="$ac_install_sh"
791 echo "$ac_t""$INSTALL" 1>&6
793 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
794 # It thinks the first close brace ends the variable substitution.
795 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
797 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
799 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
800 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
801 echo $ac_n "(cached) $ac_c" 1>&6
804 if ln -s X conftestdata 2>/dev/null
807 ac_cv_prog_LN_S="ln -s"
812 LN_S="$ac_cv_prog_LN_S"
813 if test "$ac_cv_prog_LN_S" = "ln -s"; then
814 echo "$ac_t""yes" 1>&6
816 echo "$ac_t""no" 1>&6
819 for ac_prog in 'bison -y' byacc
821 # Extract the first word of "$ac_prog", so it can be a program name with args.
822 set dummy $ac_prog; ac_word=$2
823 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
824 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
825 echo $ac_n "(cached) $ac_c" 1>&6
827 if test -n "$YACC"; then
828 ac_cv_prog_YACC="$YACC" # Let the user override the test.
830 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
831 for ac_dir in $PATH; do
832 test -z "$ac_dir" && ac_dir=.
833 if test -f $ac_dir/$ac_word; then
834 ac_cv_prog_YACC="$ac_prog"
841 YACC="$ac_cv_prog_YACC"
842 if test -n "$YACC"; then
843 echo "$ac_t""$YACC" 1>&6
845 echo "$ac_t""no" 1>&6
848 test -n "$YACC" && break
850 test -n "$YACC" || YACC="yacc"
852 # Extract the first word of "flex", so it can be a program name with args.
853 set dummy flex; ac_word=$2
854 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
855 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
856 echo $ac_n "(cached) $ac_c" 1>&6
858 if test -n "$LEX"; then
859 ac_cv_prog_LEX="$LEX" # Let the user override the test.
861 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
862 for ac_dir in $PATH; do
863 test -z "$ac_dir" && ac_dir=.
864 if test -f $ac_dir/$ac_word; then
865 ac_cv_prog_LEX="flex"
870 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
873 LEX="$ac_cv_prog_LEX"
874 if test -n "$LEX"; then
875 echo "$ac_t""$LEX" 1>&6
877 echo "$ac_t""no" 1>&6
886 echo $ac_n "checking for -l$ac_lib""... $ac_c" 1>&6
887 ac_lib_var=`echo $ac_lib'_'yywrap | tr './+\055' '__p_'`
888 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
889 echo $ac_n "(cached) $ac_c" 1>&6
892 LIBS="-l$ac_lib $LIBS"
893 cat > conftest.$ac_ext <<EOF
894 #line 895 "configure"
895 #include "confdefs.h"
896 /* Override any gcc2 internal prototype to avoid an error. */
897 /* We use char because int might match the return type of a gcc2
898 builtin and then its argument prototype would still apply. */
901 int main() { return 0; }
906 if { (eval echo configure:907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
908 eval "ac_cv_lib_$ac_lib_var=yes"
911 eval "ac_cv_lib_$ac_lib_var=no"
917 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
918 echo "$ac_t""yes" 1>&6
921 echo "$ac_t""no" 1>&6
928 echo $ac_n "checking Checking for HP-UX -Aa""... $ac_c" 1>&6
932 # HPUX flags from jgotts@engin.umich.edu
933 if test -z "$GCC"; then
934 CFLAGS="$CFLAGS -Aa -D_HPUX_SOURCE"
936 echo "$ac_t""yes" 1>&6
939 echo "$ac_t""no" 1>&6
942 echo $ac_n "checking Trying to compile a trivial ANSI C program""... $ac_c" 1>&6
943 if test "$cross_compiling" = yes; then
944 { echo "configure: error: Could not compile and run even a trivial ANSI C program - check CC." 1>&2; exit 1; }
946 cat > conftest.$ac_ext <<EOF
947 #line 948 "configure"
948 #include "confdefs.h"
949 main(int ac, char **av) { return 0; }
951 { (eval echo configure:952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
952 if test -s conftest && (./conftest; exit) 2>/dev/null; then
953 echo "$ac_t""yes" 1>&6
955 echo "$ac_t""no" 1>&6
956 { echo "configure: error: Could not compile and run even a trivial ANSI C program - check CC." 1>&2; exit 1; }
961 echo $ac_n "checking __attribute__((noreturn))""... $ac_c" 1>&6
962 cat > conftest.$ac_ext <<EOF
963 #line 964 "configure"
964 #include "confdefs.h"
966 int main() { return 0; }
968 void __attribute__((noreturn)) panic(void);
971 if { (eval echo configure:972: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
973 echo "$ac_t""yes" 1>&6
974 cat >> confdefs.h <<\EOF
975 #define HAVE_ATTRIBUTE_NORETURN 1
980 echo "$ac_t""no" 1>&6
986 echo $ac_n "checking for -lfl""... $ac_c" 1>&6
987 ac_lib_var=`echo fl'_'yywrap | tr './+\055' '__p_'`
988 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
989 echo $ac_n "(cached) $ac_c" 1>&6
993 cat > conftest.$ac_ext <<EOF
994 #line 995 "configure"
995 #include "confdefs.h"
996 /* Override any gcc2 internal prototype to avoid an error. */
997 /* We use char because int might match the return type of a gcc2
998 builtin and then its argument prototype would still apply. */
1001 int main() { return 0; }
1006 if { (eval echo configure:1007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1008 eval "ac_cv_lib_$ac_lib_var=yes"
1011 eval "ac_cv_lib_$ac_lib_var=no"
1014 LIBS="$ac_save_LIBS"
1017 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1018 echo "$ac_t""yes" 1>&6
1019 ac_tr_lib=HAVE_LIB`echo fl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1020 cat >> confdefs.h <<EOF
1021 #define $ac_tr_lib 1
1027 echo "$ac_t""no" 1>&6
1028 cat >> confdefs.h <<\EOF
1029 #define NEED_YYWRAP 1
1037 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1039 ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
1040 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1041 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1042 echo $ac_n "(cached) $ac_c" 1>&6
1044 cat > conftest.$ac_ext <<EOF
1045 #line 1046 "configure"
1046 #include "confdefs.h"
1047 #include <sys/types.h>
1049 int main() { return 0; }
1054 if { (eval echo configure:1055: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1056 eval "ac_cv_header_dirent_$ac_safe=yes"
1059 eval "ac_cv_header_dirent_$ac_safe=no"
1064 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1065 echo "$ac_t""yes" 1>&6
1066 ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdedfghijklmnopqrstuvwxyz./\055' 'ABCDEDFGHIJKLMNOPQRSTUVWXYZ___'`
1067 cat >> confdefs.h <<EOF
1068 #define $ac_tr_hdr 1
1070 ac_header_dirent=$ac_hdr; break
1072 echo "$ac_t""no" 1>&6
1075 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1076 if test $ac_header_dirent = dirent.h; then
1077 echo $ac_n "checking for -ldir""... $ac_c" 1>&6
1078 ac_lib_var=`echo dir'_'opendir | tr './+\055' '__p_'`
1079 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1080 echo $ac_n "(cached) $ac_c" 1>&6
1082 ac_save_LIBS="$LIBS"
1084 cat > conftest.$ac_ext <<EOF
1085 #line 1086 "configure"
1086 #include "confdefs.h"
1087 /* Override any gcc2 internal prototype to avoid an error. */
1088 /* We use char because int might match the return type of a gcc2
1089 builtin and then its argument prototype would still apply. */
1092 int main() { return 0; }
1097 if { (eval echo configure:1098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1099 eval "ac_cv_lib_$ac_lib_var=yes"
1102 eval "ac_cv_lib_$ac_lib_var=no"
1105 LIBS="$ac_save_LIBS"
1108 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1109 echo "$ac_t""yes" 1>&6
1112 echo "$ac_t""no" 1>&6
1116 echo $ac_n "checking for -lx""... $ac_c" 1>&6
1117 ac_lib_var=`echo x'_'opendir | tr './+\055' '__p_'`
1118 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1119 echo $ac_n "(cached) $ac_c" 1>&6
1121 ac_save_LIBS="$LIBS"
1123 cat > conftest.$ac_ext <<EOF
1124 #line 1125 "configure"
1125 #include "confdefs.h"
1126 /* Override any gcc2 internal prototype to avoid an error. */
1127 /* We use char because int might match the return type of a gcc2
1128 builtin and then its argument prototype would still apply. */
1131 int main() { return 0; }
1136 if { (eval echo configure:1137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1138 eval "ac_cv_lib_$ac_lib_var=yes"
1141 eval "ac_cv_lib_$ac_lib_var=no"
1144 LIBS="$ac_save_LIBS"
1147 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1148 echo "$ac_t""yes" 1>&6
1151 echo "$ac_t""no" 1>&6
1156 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1157 # On Suns, sometimes $CPP names a directory.
1158 if test -n "$CPP" && test -d "$CPP"; then
1161 if test -z "$CPP"; then
1162 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1163 echo $ac_n "(cached) $ac_c" 1>&6
1165 # This must be in double quotes, not single quotes, because CPP may get
1166 # substituted into the Makefile and "${CC-cc}" will confuse make.
1168 # On the NeXT, cc -E runs the code through the compiler's parser,
1169 # not just through cpp.
1170 cat > conftest.$ac_ext <<EOF
1171 #line 1172 "configure"
1172 #include "confdefs.h"
1176 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1177 { (eval echo configure:1178: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1178 ac_err=`grep -v '^ *+' conftest.out`
1179 if test -z "$ac_err"; then
1184 CPP="${CC-cc} -E -traditional-cpp"
1185 cat > conftest.$ac_ext <<EOF
1186 #line 1187 "configure"
1187 #include "confdefs.h"
1191 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1192 { (eval echo configure:1193: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1193 ac_err=`grep -v '^ *+' conftest.out`
1194 if test -z "$ac_err"; then
1204 ac_cv_prog_CPP="$CPP"
1206 CPP="$ac_cv_prog_CPP"
1208 ac_cv_prog_CPP="$CPP"
1210 echo "$ac_t""$CPP" 1>&6
1212 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1213 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1214 echo $ac_n "(cached) $ac_c" 1>&6
1216 cat > conftest.$ac_ext <<EOF
1217 #line 1218 "configure"
1218 #include "confdefs.h"
1224 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1225 { (eval echo configure:1226: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1226 ac_err=`grep -v '^ *+' conftest.out`
1227 if test -z "$ac_err"; then
1229 ac_cv_header_stdc=yes
1233 ac_cv_header_stdc=no
1237 if test $ac_cv_header_stdc = yes; then
1238 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1239 cat > conftest.$ac_ext <<EOF
1240 #line 1241 "configure"
1241 #include "confdefs.h"
1244 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1245 egrep "memchr" >/dev/null 2>&1; then
1249 ac_cv_header_stdc=no
1255 if test $ac_cv_header_stdc = yes; then
1256 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1257 cat > conftest.$ac_ext <<EOF
1258 #line 1259 "configure"
1259 #include "confdefs.h"
1262 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1263 egrep "free" >/dev/null 2>&1; then
1267 ac_cv_header_stdc=no
1273 if test $ac_cv_header_stdc = yes; then
1274 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1275 if test "$cross_compiling" = yes; then
1278 cat > conftest.$ac_ext <<EOF
1279 #line 1280 "configure"
1280 #include "confdefs.h"
1282 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1283 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1284 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1285 int main () { int i; for (i = 0; i < 256; i++)
1286 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1290 { (eval echo configure:1291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
1291 if test -s conftest && (./conftest; exit) 2>/dev/null; then
1294 ac_cv_header_stdc=no
1301 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1302 if test $ac_cv_header_stdc = yes; then
1303 cat >> confdefs.h <<\EOF
1304 #define STDC_HEADERS 1
1309 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1310 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1311 echo $ac_n "(cached) $ac_c" 1>&6
1313 cat > conftest.$ac_ext <<EOF
1314 #line 1315 "configure"
1315 #include "confdefs.h"
1316 #include <sys/types.h>
1317 #include <sys/wait.h>
1319 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1322 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1324 int main() { return 0; }
1328 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1331 if { (eval echo configure:1332: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1333 ac_cv_header_sys_wait_h=yes
1336 ac_cv_header_sys_wait_h=no
1342 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1343 if test $ac_cv_header_sys_wait_h = yes; then
1344 cat >> confdefs.h <<\EOF
1345 #define HAVE_SYS_WAIT_H 1
1350 for ac_hdr in fcntl.h syslog.h unistd.h errno.h sys/fcntl.h getopt.h
1352 ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
1353 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1354 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1355 echo $ac_n "(cached) $ac_c" 1>&6
1357 cat > conftest.$ac_ext <<EOF
1358 #line 1359 "configure"
1359 #include "confdefs.h"
1362 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1363 { (eval echo configure:1364: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1364 ac_err=`grep -v '^ *+' conftest.out`
1365 if test -z "$ac_err"; then
1367 eval "ac_cv_header_$ac_safe=yes"
1371 eval "ac_cv_header_$ac_safe=no"
1375 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1376 echo "$ac_t""yes" 1>&6
1377 ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
1378 cat >> confdefs.h <<EOF
1379 #define $ac_tr_hdr 1
1383 echo "$ac_t""no" 1>&6
1387 for ac_hdr in stdarg.h
1389 ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
1390 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1391 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1392 echo $ac_n "(cached) $ac_c" 1>&6
1394 cat > conftest.$ac_ext <<EOF
1395 #line 1396 "configure"
1396 #include "confdefs.h"
1399 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1400 { (eval echo configure:1401: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1401 ac_err=`grep -v '^ *+' conftest.out`
1402 if test -z "$ac_err"; then
1404 eval "ac_cv_header_$ac_safe=yes"
1408 eval "ac_cv_header_$ac_safe=no"
1412 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1413 echo "$ac_t""yes" 1>&6
1414 ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
1415 cat >> confdefs.h <<EOF
1416 #define $ac_tr_hdr 1
1420 echo "$ac_t""no" 1>&6
1425 echo $ac_n "checking for working const""... $ac_c" 1>&6
1426 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1427 echo $ac_n "(cached) $ac_c" 1>&6
1429 cat > conftest.$ac_ext <<EOF
1430 #line 1431 "configure"
1431 #include "confdefs.h"
1433 int main() { return 0; }
1436 /* Ultrix mips cc rejects this. */
1437 typedef int charset[2]; const charset x;
1438 /* SunOS 4.1.1 cc rejects this. */
1439 char const *const *ccp;
1441 /* NEC SVR4.0.2 mips cc rejects this. */
1442 struct point {int x, y;};
1443 static struct point const zero = {0,0};
1444 /* AIX XL C 1.02.0.0 rejects this.
1445 It does not let you subtract one const X* pointer from another in an arm
1446 of an if-expression whose if-part is not a constant expression */
1447 const char *g = "string";
1448 ccp = &g + (g ? g-g : 0);
1449 /* HPUX 7.0 cc rejects these. */
1452 ccp = (char const *const *) p;
1453 { /* SCO 3.2v4 cc rejects this. */
1455 char const *s = 0 ? (char *) 0 : (char const *) 0;
1459 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1461 const int *foo = &x[0];
1464 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1465 typedef const int *iptr;
1469 { /* AIX XL C 1.02.0.0 rejects this saying
1470 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1471 struct s { int j; const int *ap[3]; };
1472 struct s *b; b->j = 5;
1474 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1480 if { (eval echo configure:1481: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1491 echo "$ac_t""$ac_cv_c_const" 1>&6
1492 if test $ac_cv_c_const = no; then
1493 cat >> confdefs.h <<\EOF
1499 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
1500 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
1501 echo $ac_n "(cached) $ac_c" 1>&6
1503 cat > conftest.$ac_ext <<EOF
1504 #line 1505 "configure"
1505 #include "confdefs.h"
1506 #include <sys/types.h>
1512 extern "C" void (*signal (int, void (*)(int)))(int);
1514 void (*signal ()) ();
1517 int main() { return 0; }
1522 if { (eval echo configure:1523: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1524 ac_cv_type_signal=void
1527 ac_cv_type_signal=int
1533 echo "$ac_t""$ac_cv_type_signal" 1>&6
1534 cat >> confdefs.h <<EOF
1535 #define RETSIGTYPE $ac_cv_type_signal
1539 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
1540 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+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"
1546 #include <sys/types.h>
1548 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1549 egrep "uid_t" >/dev/null 2>&1; then
1551 ac_cv_type_uid_t=yes
1560 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
1561 if test $ac_cv_type_uid_t = no; then
1562 cat >> confdefs.h <<\EOF
1566 cat >> confdefs.h <<\EOF
1572 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
1573 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
1574 echo $ac_n "(cached) $ac_c" 1>&6
1576 cat > conftest.$ac_ext <<EOF
1577 #line 1578 "configure"
1578 #include "confdefs.h"
1579 #include <sys/types.h>
1584 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1585 egrep "mode_t" >/dev/null 2>&1; then
1587 ac_cv_type_mode_t=yes
1590 ac_cv_type_mode_t=no
1595 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
1596 if test $ac_cv_type_mode_t = no; then
1597 cat >> confdefs.h <<\EOF
1603 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1604 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1605 echo $ac_n "(cached) $ac_c" 1>&6
1607 cat > conftest.$ac_ext <<EOF
1608 #line 1609 "configure"
1609 #include "confdefs.h"
1610 #include <sys/types.h>
1615 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1616 egrep "off_t" >/dev/null 2>&1; then
1618 ac_cv_type_off_t=yes
1626 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1627 if test $ac_cv_type_off_t = no; then
1628 cat >> confdefs.h <<\EOF
1634 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
1635 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
1636 echo $ac_n "(cached) $ac_c" 1>&6
1638 cat > conftest.$ac_ext <<EOF
1639 #line 1640 "configure"
1640 #include "confdefs.h"
1641 #include <sys/types.h>
1646 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1647 egrep "pid_t" >/dev/null 2>&1; then
1649 ac_cv_type_pid_t=yes
1657 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
1658 if test $ac_cv_type_pid_t = no; then
1659 cat >> confdefs.h <<\EOF
1665 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1666 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1667 echo $ac_n "(cached) $ac_c" 1>&6
1669 cat > conftest.$ac_ext <<EOF
1670 #line 1671 "configure"
1671 #include "confdefs.h"
1672 #include <sys/types.h>
1677 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1678 egrep "size_t" >/dev/null 2>&1; then
1680 ac_cv_type_size_t=yes
1683 ac_cv_type_size_t=no
1688 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1689 if test $ac_cv_type_size_t = no; then
1690 cat >> confdefs.h <<\EOF
1691 #define size_t unsigned
1696 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
1697 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
1698 echo $ac_n "(cached) $ac_c" 1>&6
1700 cat > conftest.$ac_ext <<EOF
1701 #line 1702 "configure"
1702 #include "confdefs.h"
1703 #include <sys/types.h>
1705 int main() { return 0; }
1707 struct tm *tp; tp->tm_sec;
1710 if { (eval echo configure:1711: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1712 ac_cv_struct_tm=time.h
1715 ac_cv_struct_tm=sys/time.h
1721 echo "$ac_t""$ac_cv_struct_tm" 1>&6
1722 if test $ac_cv_struct_tm = sys/time.h; then
1723 cat >> confdefs.h <<\EOF
1724 #define TM_IN_SYS_TIME 1
1731 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
1732 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
1733 echo $ac_n "(cached) $ac_c" 1>&6
1735 cat > conftest.$ac_ext <<EOF
1736 #line 1737 "configure"
1737 #include "confdefs.h"
1738 /* System header to define __stub macros and hopefully few prototypes,
1739 which can conflict with char vprintf(); below. */
1741 /* Override any gcc2 internal prototype to avoid an error. */
1742 /* We use char because int might match the return type of a gcc2
1743 builtin and then its argument prototype would still apply. */
1746 int main() { return 0; }
1749 /* The GNU C library defines this for functions which it implements
1750 to always fail with ENOSYS. Some functions are actually named
1751 something starting with __ and the normal name is an alias. */
1752 #if defined (__stub_vprintf) || defined (__stub___vprintf)
1760 if { (eval echo configure:1761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1762 eval "ac_cv_func_vprintf=yes"
1765 eval "ac_cv_func_vprintf=no"
1770 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
1771 echo "$ac_t""yes" 1>&6
1772 cat >> confdefs.h <<\EOF
1773 #define HAVE_VPRINTF 1
1777 echo "$ac_t""no" 1>&6
1780 if test "$ac_cv_func_vprintf" != yes; then
1781 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
1782 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
1783 echo $ac_n "(cached) $ac_c" 1>&6
1785 cat > conftest.$ac_ext <<EOF
1786 #line 1787 "configure"
1787 #include "confdefs.h"
1788 /* System header to define __stub macros and hopefully few prototypes,
1789 which can conflict with char _doprnt(); below. */
1791 /* Override any gcc2 internal prototype to avoid an error. */
1792 /* We use char because int might match the return type of a gcc2
1793 builtin and then its argument prototype would still apply. */
1796 int main() { return 0; }
1799 /* The GNU C library defines this for functions which it implements
1800 to always fail with ENOSYS. Some functions are actually named
1801 something starting with __ and the normal name is an alias. */
1802 #if defined (__stub__doprnt) || defined (__stub____doprnt)
1810 if { (eval echo configure:1811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1812 eval "ac_cv_func__doprnt=yes"
1815 eval "ac_cv_func__doprnt=no"
1820 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
1821 echo "$ac_t""yes" 1>&6
1822 cat >> confdefs.h <<\EOF
1823 #define HAVE_DOPRNT 1
1827 echo "$ac_t""no" 1>&6
1832 ac_have_func=no # yes means we've found a way to get the load average.
1834 # Some systems with -lutil have (and need) -lkvm as well, some do not.
1835 # On Solaris, -lkvm requires nlist from -lelf, so check that first
1836 # to get the right answer into the cache.
1837 echo $ac_n "checking for -lelf""... $ac_c" 1>&6
1838 ac_lib_var=`echo elf'_'elf_begin | tr './+\055' '__p_'`
1839 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1840 echo $ac_n "(cached) $ac_c" 1>&6
1842 ac_save_LIBS="$LIBS"
1844 cat > conftest.$ac_ext <<EOF
1845 #line 1846 "configure"
1846 #include "confdefs.h"
1847 /* Override any gcc2 internal prototype to avoid an error. */
1848 /* We use char because int might match the return type of a gcc2
1849 builtin and then its argument prototype would still apply. */
1852 int main() { return 0; }
1857 if { (eval echo configure:1858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1859 eval "ac_cv_lib_$ac_lib_var=yes"
1862 eval "ac_cv_lib_$ac_lib_var=no"
1865 LIBS="$ac_save_LIBS"
1868 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1869 echo "$ac_t""yes" 1>&6
1872 echo "$ac_t""no" 1>&6
1875 echo $ac_n "checking for -lkvm""... $ac_c" 1>&6
1876 ac_lib_var=`echo kvm'_'kvm_open | tr './+\055' '__p_'`
1877 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1878 echo $ac_n "(cached) $ac_c" 1>&6
1880 ac_save_LIBS="$LIBS"
1882 cat > conftest.$ac_ext <<EOF
1883 #line 1884 "configure"
1884 #include "confdefs.h"
1885 /* Override any gcc2 internal prototype to avoid an error. */
1886 /* We use char because int might match the return type of a gcc2
1887 builtin and then its argument prototype would still apply. */
1890 int main() { return 0; }
1895 if { (eval echo configure:1896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1897 eval "ac_cv_lib_$ac_lib_var=yes"
1900 eval "ac_cv_lib_$ac_lib_var=no"
1903 LIBS="$ac_save_LIBS"
1906 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1907 echo "$ac_t""yes" 1>&6
1910 echo "$ac_t""no" 1>&6
1913 # Check for the 4.4BSD definition of getloadavg.
1914 echo $ac_n "checking for -lutil""... $ac_c" 1>&6
1915 ac_lib_var=`echo util'_'getloadavg | tr './+\055' '__p_'`
1916 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1917 echo $ac_n "(cached) $ac_c" 1>&6
1919 ac_save_LIBS="$LIBS"
1921 cat > conftest.$ac_ext <<EOF
1922 #line 1923 "configure"
1923 #include "confdefs.h"
1924 /* Override any gcc2 internal prototype to avoid an error. */
1925 /* We use char because int might match the return type of a gcc2
1926 builtin and then its argument prototype would still apply. */
1929 int main() { return 0; }
1934 if { (eval echo configure:1935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1936 eval "ac_cv_lib_$ac_lib_var=yes"
1939 eval "ac_cv_lib_$ac_lib_var=no"
1942 LIBS="$ac_save_LIBS"
1945 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1946 echo "$ac_t""yes" 1>&6
1947 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
1949 echo "$ac_t""no" 1>&6
1953 if test $ac_have_func = no; then
1954 # There is a commonly available library for RS/6000 AIX.
1955 # Since it is not a standard part of AIX, it might be installed locally.
1956 ac_save_LIBS="$LIBS" LIBS="-L/usr/local/lib $LIBS"
1957 echo $ac_n "checking for -lgetloadavg""... $ac_c" 1>&6
1958 ac_lib_var=`echo getloadavg'_'getloadavg | tr './+\055' '__p_'`
1959 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1960 echo $ac_n "(cached) $ac_c" 1>&6
1962 ac_save_LIBS="$LIBS"
1963 LIBS="-lgetloadavg $LIBS"
1964 cat > conftest.$ac_ext <<EOF
1965 #line 1966 "configure"
1966 #include "confdefs.h"
1967 /* Override any gcc2 internal prototype to avoid an error. */
1968 /* We use char because int might match the return type of a gcc2
1969 builtin and then its argument prototype would still apply. */
1972 int main() { return 0; }
1977 if { (eval echo configure:1978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1979 eval "ac_cv_lib_$ac_lib_var=yes"
1982 eval "ac_cv_lib_$ac_lib_var=no"
1985 LIBS="$ac_save_LIBS"
1988 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1989 echo "$ac_t""yes" 1>&6
1990 LIBS="-lgetloadavg $LIBS"
1992 echo "$ac_t""no" 1>&6
1993 LIBS="$ac_save_LIBS"
1998 # Make sure it is really in the library, if we think we found it.
1999 for ac_func in getloadavg
2001 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2002 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2003 echo $ac_n "(cached) $ac_c" 1>&6
2005 cat > conftest.$ac_ext <<EOF
2006 #line 2007 "configure"
2007 #include "confdefs.h"
2008 /* System header to define __stub macros and hopefully few prototypes,
2009 which can conflict with char $ac_func(); below. */
2011 /* Override any gcc2 internal prototype to avoid an error. */
2012 /* We use char because int might match the return type of a gcc2
2013 builtin and then its argument prototype would still apply. */
2016 int main() { return 0; }
2019 /* The GNU C library defines this for functions which it implements
2020 to always fail with ENOSYS. Some functions are actually named
2021 something starting with __ and the normal name is an alias. */
2022 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2030 if { (eval echo configure:2031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2032 eval "ac_cv_func_$ac_func=yes"
2035 eval "ac_cv_func_$ac_func=no"
2040 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2041 echo "$ac_t""yes" 1>&6
2044 echo "$ac_t""no" 1>&6
2045 LIBOBJS="$LIBOBJS ${ac_func}.o"
2051 if test $ac_cv_func_getloadavg = yes; then
2052 cat >> confdefs.h <<\EOF
2053 #define HAVE_GETLOADAVG 1
2058 # Figure out what our getloadavg.c needs.
2060 ac_safe=`echo "sys/dg_sys_info.h" | tr './\055' '___'`
2061 echo $ac_n "checking for sys/dg_sys_info.h""... $ac_c" 1>&6
2062 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2063 echo $ac_n "(cached) $ac_c" 1>&6
2065 cat > conftest.$ac_ext <<EOF
2066 #line 2067 "configure"
2067 #include "confdefs.h"
2068 #include <sys/dg_sys_info.h>
2070 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2071 { (eval echo configure:2072: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2072 ac_err=`grep -v '^ *+' conftest.out`
2073 if test -z "$ac_err"; then
2075 eval "ac_cv_header_$ac_safe=yes"
2079 eval "ac_cv_header_$ac_safe=no"
2083 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2084 echo "$ac_t""yes" 1>&6
2085 ac_have_func=yes; cat >> confdefs.h <<\EOF
2089 echo $ac_n "checking for -ldgc""... $ac_c" 1>&6
2090 ac_lib_var=`echo dgc'_'dg_sys_info | tr './+\055' '__p_'`
2091 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2092 echo $ac_n "(cached) $ac_c" 1>&6
2094 ac_save_LIBS="$LIBS"
2096 cat > conftest.$ac_ext <<EOF
2097 #line 2098 "configure"
2098 #include "confdefs.h"
2099 /* Override any gcc2 internal prototype to avoid an error. */
2100 /* We use char because int might match the return type of a gcc2
2101 builtin and then its argument prototype would still apply. */
2104 int main() { return 0; }
2109 if { (eval echo configure:2110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2111 eval "ac_cv_lib_$ac_lib_var=yes"
2114 eval "ac_cv_lib_$ac_lib_var=no"
2117 LIBS="$ac_save_LIBS"
2120 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2121 echo "$ac_t""yes" 1>&6
2122 ac_tr_lib=HAVE_LIB`echo dgc | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2123 cat >> confdefs.h <<EOF
2124 #define $ac_tr_lib 1
2130 echo "$ac_t""no" 1>&6
2134 echo "$ac_t""no" 1>&6
2138 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
2139 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
2140 # Irix 4.0.5F has the header but not the library.
2141 if test $ac_have_func = no && test $ac_cv_lib_elf_elf_begin = yes; then
2142 ac_have_func=yes; cat >> confdefs.h <<\EOF
2148 if test $ac_have_func = no; then
2149 ac_safe=`echo "inq_stats/cpustats.h" | tr './\055' '___'`
2150 echo $ac_n "checking for inq_stats/cpustats.h""... $ac_c" 1>&6
2151 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2152 echo $ac_n "(cached) $ac_c" 1>&6
2154 cat > conftest.$ac_ext <<EOF
2155 #line 2156 "configure"
2156 #include "confdefs.h"
2157 #include <inq_stats/cpustats.h>
2159 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2160 { (eval echo configure:2161: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2161 ac_err=`grep -v '^ *+' conftest.out`
2162 if test -z "$ac_err"; then
2164 eval "ac_cv_header_$ac_safe=yes"
2168 eval "ac_cv_header_$ac_safe=no"
2172 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2173 echo "$ac_t""yes" 1>&6
2174 ac_have_func=yes; cat >> confdefs.h <<\EOF
2178 cat >> confdefs.h <<\EOF
2183 echo "$ac_t""no" 1>&6
2188 if test $ac_have_func = no; then
2189 ac_safe=`echo "sys/cpustats.h" | tr './\055' '___'`
2190 echo $ac_n "checking for sys/cpustats.h""... $ac_c" 1>&6
2191 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2192 echo $ac_n "(cached) $ac_c" 1>&6
2194 cat > conftest.$ac_ext <<EOF
2195 #line 2196 "configure"
2196 #include "confdefs.h"
2197 #include <sys/cpustats.h>
2199 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2200 { (eval echo configure:2201: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2201 ac_err=`grep -v '^ *+' conftest.out`
2202 if test -z "$ac_err"; then
2204 eval "ac_cv_header_$ac_safe=yes"
2208 eval "ac_cv_header_$ac_safe=no"
2212 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2213 echo "$ac_t""yes" 1>&6
2214 ac_have_func=yes; cat >> confdefs.h <<\EOF
2219 echo "$ac_t""no" 1>&6
2224 if test $ac_have_func = no; then
2225 for ac_hdr in mach/mach.h
2227 ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
2228 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2229 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2230 echo $ac_n "(cached) $ac_c" 1>&6
2232 cat > conftest.$ac_ext <<EOF
2233 #line 2234 "configure"
2234 #include "confdefs.h"
2237 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2238 { (eval echo configure:2239: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2239 ac_err=`grep -v '^ *+' conftest.out`
2240 if test -z "$ac_err"; then
2242 eval "ac_cv_header_$ac_safe=yes"
2246 eval "ac_cv_header_$ac_safe=no"
2250 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2251 echo "$ac_t""yes" 1>&6
2252 ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
2253 cat >> confdefs.h <<EOF
2254 #define $ac_tr_hdr 1
2258 echo "$ac_t""no" 1>&6
2264 ac_safe=`echo "nlist.h" | tr './\055' '___'`
2265 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
2266 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2267 echo $ac_n "(cached) $ac_c" 1>&6
2269 cat > conftest.$ac_ext <<EOF
2270 #line 2271 "configure"
2271 #include "confdefs.h"
2274 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2275 { (eval echo configure:2276: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2276 ac_err=`grep -v '^ *+' conftest.out`
2277 if test -z "$ac_err"; then
2279 eval "ac_cv_header_$ac_safe=yes"
2283 eval "ac_cv_header_$ac_safe=no"
2287 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2288 echo "$ac_t""yes" 1>&6
2289 cat >> confdefs.h <<\EOF
2290 #define NLIST_STRUCT 1
2293 echo $ac_n "checking for n_un in struct nlist""... $ac_c" 1>&6
2294 if eval "test \"`echo '$''{'ac_cv_struct_nlist_n_un'+set}'`\" = set"; then
2295 echo $ac_n "(cached) $ac_c" 1>&6
2297 cat > conftest.$ac_ext <<EOF
2298 #line 2299 "configure"
2299 #include "confdefs.h"
2301 int main() { return 0; }
2303 struct nlist n; n.n_un.n_name = 0;
2306 if { (eval echo configure:2307: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2308 ac_cv_struct_nlist_n_un=yes
2311 ac_cv_struct_nlist_n_un=no
2317 echo "$ac_t""$ac_cv_struct_nlist_n_un" 1>&6
2318 if test $ac_cv_struct_nlist_n_un = yes; then
2319 cat >> confdefs.h <<\EOF
2320 #define NLIST_NAME_UNION 1
2326 echo "$ac_t""no" 1>&6
2328 fi # Do not have getloadavg in system libraries.
2330 # Some definitions of getloadavg require that the program be installed setgid.
2331 echo $ac_n "checking whether getloadavg requires setgid""... $ac_c" 1>&6
2332 if eval "test \"`echo '$''{'ac_cv_func_getloadavg_setgid'+set}'`\" = set"; then
2333 echo $ac_n "(cached) $ac_c" 1>&6
2335 cat > conftest.$ac_ext <<EOF
2336 #line 2337 "configure"
2337 #include "confdefs.h"
2338 #include "$srcdir/getloadavg.c"
2339 #ifdef LDAV_PRIVILEGED
2340 Yowza Am I SETGID yet
2343 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2344 egrep "Yowza Am I SETGID yet" >/dev/null 2>&1; then
2346 ac_cv_func_getloadavg_setgid=yes
2349 ac_cv_func_getloadavg_setgid=no
2355 echo "$ac_t""$ac_cv_func_getloadavg_setgid" 1>&6
2356 if test $ac_cv_func_getloadavg_setgid = yes; then
2357 NEED_SETGID=true; cat >> confdefs.h <<\EOF
2358 #define GETLOADAVG_PRIVILEGED 1
2365 if test $ac_cv_func_getloadavg_setgid = yes; then
2366 echo $ac_n "checking group of /dev/kmem""... $ac_c" 1>&6
2367 if eval "test \"`echo '$''{'ac_cv_group_kmem'+set}'`\" = set"; then
2368 echo $ac_n "(cached) $ac_c" 1>&6
2370 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
2371 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
2372 # If we got an error (system does not support symlinks), try without -L.
2373 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
2374 ac_cv_group_kmem=`echo $ac_ls_output \
2375 | sed -ne 's/[ ][ ]*/ /g;
2376 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
2381 echo "$ac_t""$ac_cv_group_kmem" 1>&6
2382 KMEM_GROUP=$ac_cv_group_kmem
2385 for ac_func in getcwd mktime strftime setreuid setresuid sigaction
2387 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2388 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2389 echo $ac_n "(cached) $ac_c" 1>&6
2391 cat > conftest.$ac_ext <<EOF
2392 #line 2393 "configure"
2393 #include "confdefs.h"
2394 /* System header to define __stub macros and hopefully few prototypes,
2395 which can conflict with char $ac_func(); below. */
2397 /* Override any gcc2 internal prototype to avoid an error. */
2398 /* We use char because int might match the return type of a gcc2
2399 builtin and then its argument prototype would still apply. */
2402 int main() { return 0; }
2405 /* The GNU C library defines this for functions which it implements
2406 to always fail with ENOSYS. Some functions are actually named
2407 something starting with __ and the normal name is an alias. */
2408 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2416 if { (eval echo configure:2417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2418 eval "ac_cv_func_$ac_func=yes"
2421 eval "ac_cv_func_$ac_func=no"
2426 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2427 echo "$ac_t""yes" 1>&6
2428 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2429 cat >> confdefs.h <<EOF
2430 #define $ac_tr_func 1
2434 echo "$ac_t""no" 1>&6
2438 for ac_func in waitpid
2440 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2441 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2442 echo $ac_n "(cached) $ac_c" 1>&6
2444 cat > conftest.$ac_ext <<EOF
2445 #line 2446 "configure"
2446 #include "confdefs.h"
2447 /* System header to define __stub macros and hopefully few prototypes,
2448 which can conflict with char $ac_func(); below. */
2450 /* Override any gcc2 internal prototype to avoid an error. */
2451 /* We use char because int might match the return type of a gcc2
2452 builtin and then its argument prototype would still apply. */
2455 int main() { return 0; }
2458 /* The GNU C library defines this for functions which it implements
2459 to always fail with ENOSYS. Some functions are actually named
2460 something starting with __ and the normal name is an alias. */
2461 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2469 if { (eval echo configure:2470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2471 eval "ac_cv_func_$ac_func=yes"
2474 eval "ac_cv_func_$ac_func=no"
2479 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2480 echo "$ac_t""yes" 1>&6
2481 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2482 cat >> confdefs.h <<EOF
2483 #define $ac_tr_func 1
2487 echo "$ac_t""no" 1>&6
2493 # Extract the first word of "mailx", so it can be a program name with args.
2494 set dummy mailx; ac_word=$2
2495 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2496 if eval "test \"`echo '$''{'ac_cv_path_MAILX'+set}'`\" = set"; then
2497 echo $ac_n "(cached) $ac_c" 1>&6
2501 ac_cv_path_MAILX="$MAILX" # Let the user override the test with a path.
2504 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2505 for ac_dir in $PATH; do
2506 test -z "$ac_dir" && ac_dir=.
2507 if test -f $ac_dir/$ac_word; then
2508 ac_cv_path_MAILX="$ac_dir/$ac_word"
2516 MAILX="$ac_cv_path_MAILX"
2517 if test -n "$MAILX"; then
2518 echo "$ac_t""$MAILX" 1>&6
2520 echo "$ac_t""no" 1>&6
2523 if test "$ac_cv_path_MAILX" != "" ; then
2524 cat >> confdefs.h <<EOF
2525 #define MAILX "$ac_cv_path_MAILX"
2528 MAIL_CMD="$ac_cv_path_MAILX"
2531 # Extract the first word of "mail", so it can be a program name with args.
2532 set dummy mail; ac_word=$2
2533 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2534 if eval "test \"`echo '$''{'ac_cv_path_MAILC'+set}'`\" = set"; then
2535 echo $ac_n "(cached) $ac_c" 1>&6
2539 ac_cv_path_MAILC="$MAILC" # Let the user override the test with a path.
2542 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2543 for ac_dir in $PATH; do
2544 test -z "$ac_dir" && ac_dir=.
2545 if test -f $ac_dir/$ac_word; then
2546 ac_cv_path_MAILC="$ac_dir/$ac_word"
2554 MAILC="$ac_cv_path_MAILC"
2555 if test -n "$MAILC"; then
2556 echo "$ac_t""$MAILC" 1>&6
2558 echo "$ac_t""no" 1>&6
2561 if test "$ac_cv_path_MAILC" != "" ; then
2562 cat >> confdefs.h <<EOF
2563 #define MAILC "$ac_cv_path_MAILC"
2566 MAIL_CMD="$ac_cv_path_MAILC"
2569 # Extract the first word of "sendmail", so it can be a program name with args.
2570 set dummy sendmail; ac_word=$2
2571 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2572 if eval "test \"`echo '$''{'ac_cv_path_SENDMAIL'+set}'`\" = set"; then
2573 echo $ac_n "(cached) $ac_c" 1>&6
2577 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
2580 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2581 for ac_dir in $PATH:/usr/lib:/usr/sbin ; do
2582 test -z "$ac_dir" && ac_dir=.
2583 if test -f $ac_dir/$ac_word; then
2584 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
2592 SENDMAIL="$ac_cv_path_SENDMAIL"
2593 if test -n "$SENDMAIL"; then
2594 echo "$ac_t""$SENDMAIL" 1>&6
2596 echo "$ac_t""no" 1>&6
2599 if test "$ac_cv_path_SENDMAIL" != "" ; then
2600 cat >> confdefs.h <<EOF
2601 #define SENDMAIL "$ac_cv_path_SENDMAIL"
2604 MAIL_CMD="$ac_cv_path_SENDMAIL"
2609 echo $ac_n "checking etcdir""... $ac_c" 1>&6
2610 # Check whether --with-etcdir or --without-etcdir was given.
2611 if test "${with_etcdir+set}" = set; then
2612 withval="$with_etcdir"
2615 { echo "configure: error: Need ETCDIR." 1>&2; exit 1; }
2619 echo "$ac_t""/etc" 1>&6
2623 echo "$ac_t""$withval" 1>&6
2628 echo "$ac_t""/etc" 1>&6
2634 echo $ac_n "checking location of pid file""... $ac_c" 1>&6
2635 if test -d /var/run ; then
2636 cat >> confdefs.h <<EOF
2637 #define PIDFILE "/var/run/atd.pid"
2640 echo "$ac_t""/var/run" 1>&6
2641 elif test -d /usr/run ; then
2642 cat >> confdefs.h <<EOF
2643 #define PIDFILE "/usr/run/atd.pid"
2646 echo "$ac_t""/usr/run" 1>&6
2648 cat >> confdefs.h <<EOF
2649 #define PIDFILE "$ETCDIR/atd.pid"
2652 echo "$ac_t""/etc" 1>&6
2655 echo $ac_n "checking location of spool directory""... $ac_c" 1>&6
2656 if test -d /var/spool/atjobs ; then
2658 cat >> confdefs.h <<\EOF
2659 #define SPOOLDIR "/var/spool"
2662 echo "$ac_t""Using existing /var/spool/at{jobs|run}" 1>&6
2663 elif test -d /var/spool/cron ; then
2665 cat >> confdefs.h <<\EOF
2666 #define SPOOLDIR "/var/spool/cron"
2669 echo "$ac_t""/var/spool/cron" 1>&6
2670 elif test -d /usr/spool/cron ; then
2672 cat >> confdefs.h <<\EOF
2673 #define SPOOLDIR "/usr/spool/cron"
2676 echo "$ac_t""/usr/spool/cron" 1>&6
2678 { echo "configure: error: Cannot determine value for spool directory" 1>&2; exit 1; }
2681 echo $ac_n "checking jobdir""... $ac_c" 1>&6
2682 # Check whether --with-jobdir or --without-jobdir was given.
2683 if test "${with_jobdir+set}" = set; then
2684 withval="$with_jobdir"
2687 { echo "configure: error: Need JOBDIR." 1>&2; exit 1; }
2690 cat >> confdefs.h <<EOF
2691 #define ATJOB_DIR "$sp/atjobs"
2694 echo "$ac_t""$ATJOB_DIR" 1>&6
2698 cat >> confdefs.h <<EOF
2699 #define ATJOB_DIR "$withval"
2702 echo "$ac_t""$withval" 1>&6
2707 cat >> confdefs.h <<EOF
2708 #define ATJOB_DIR "$sp/atjobs"
2711 echo "$ac_t""$sp/atjobs" 1>&6
2718 echo $ac_n "checking atspool""... $ac_c" 1>&6
2719 # Check whether --with-atspool or --without-atspool was given.
2720 if test "${with_atspool+set}" = set; then
2721 withval="$with_atspool"
2724 { echo "configure: error: Need ATSPOOL." 1>&2; exit 1; }
2727 cat >> confdefs.h <<EOF
2728 #define ATSPOOL_DIR "$sp/atspool"
2731 echo "$ac_t""$sp/atspool" 1>&6
2735 cat >> confdefs.h <<EOF
2736 #define ATSPOOL_DIR "$withval"
2739 echo "$ac_t""$withval" 1>&6
2744 cat >> confdefs.h <<EOF
2745 #define ATSPOOL_DIR "$sp/atspool"
2748 echo "$ac_t""$sp/atspool" 1>&6
2755 echo $ac_n "checking default at queue""... $ac_c" 1>&6
2756 # Check whether --with-atqueue or --without-atqueue was given.
2757 if test "${with_atqueue+set}" = set; then
2758 withval="$with_atqueue"
2761 { echo "configure: error: Need DEFAULT_AT_QUEUE." 1>&2; exit 1; }
2764 cat >> confdefs.h <<EOF
2765 #define DEFAULT_AT_QUEUE 'a'
2768 echo "$ac_t""a" 1>&6
2772 cat >> confdefs.h <<EOF
2773 #define DEFAULT_AT_QUEUE "$withval"
2776 echo "$ac_t""$withval" 1>&6
2781 cat >> confdefs.h <<EOF
2782 #define DEFAULT_AT_QUEUE 'a'
2785 echo "$ac_t""a" 1>&6
2793 echo $ac_n "checking default batch queue""... $ac_c" 1>&6
2794 # Check whether --with-batchqueue or --without-batchqueue was given.
2795 if test "${with_batchqueue+set}" = set; then
2796 withval="$with_batchqueue"
2799 { echo "configure: error: Need DEFAULT_BATCH_QUEUE." 1>&2; exit 1; }
2802 cat >> confdefs.h <<EOF
2803 #define DEFAULT_BATCH_QUEUE 'b'
2806 echo "$ac_t""b" 1>&6
2810 cat >> confdefs.h <<EOF
2811 #define DEFAULT_BATCH_QUEUE "$withval"
2814 echo "$ac_t""$withval" 1>&6
2819 cat >> confdefs.h <<EOF
2820 #define DEFAULT_BATCH_QUEUE 'b'
2823 echo "$ac_t""b" 1>&6
2831 echo $ac_n "checking maximum load average for batch to start jobs""... $ac_c" 1>&6
2832 # Check whether --with-loadavg_mx or --without-loadavg_mx was given.
2833 if test "${with_loadavg_mx+set}" = set; then
2834 withval="$with_loadavg_mx"
2837 { echo "configure: error: Need LOADAVG_MX." 1>&2; exit 1; }
2841 echo "$ac_t""0.8" 1>&6
2844 LOADAVG_MX="$withval";
2845 echo "$ac_t""$withval" 1>&6
2850 echo "$ac_t""0.8" 1>&6
2856 echo $ac_n "checking username to run under""... $ac_c" 1>&6
2857 # Check whether --with-daemon_username or --without-daemon_username was given.
2858 if test "${with_daemon_username+set}" = set; then
2859 withval="$with_daemon_username"
2862 { echo "configure: error: Need DAEMON_USERNAME." 1>&2; exit 1; }
2865 DAEMON_USERNAME=daemon
2866 echo "$ac_t""daemon" 1>&6
2869 DAEMON_USERNAME="$withval";
2870 echo "$ac_t""$withval" 1>&6
2874 DAEMON_USERNAME=daemon
2875 echo "$ac_t""daemon" 1>&6
2881 echo $ac_n "checking groupname to run under""... $ac_c" 1>&6
2882 # Check whether --with-daemon_groupname or --without-daemon_groupname was given.
2883 if test "${with_daemon_groupname+set}" = set; then
2884 withval="$with_daemon_groupname"
2887 { echo "configure: error: Need DAEMON_GROUPNAME." 1>&2; exit 1; }
2890 DAEMON_GROUPNAME=daemon
2891 echo "$ac_t""daemon" 1>&6
2894 DAEMON_GROUPNAME="$withval";
2895 echo "$ac_t""$withval" 1>&6
2899 DAEMON_GROUPNAME=daemon
2900 echo "$ac_t""daemon" 1>&6
2907 cat > confcache <<\EOF
2908 # This file is a shell script that caches the results of configure
2909 # tests run on this system so they can be shared between configure
2910 # scripts and configure runs. It is not useful on other systems.
2911 # If it contains results you don't want to keep, you may remove or edit it.
2913 # By default, configure uses ./config.cache as the cache file,
2914 # creating it if it does not exist already. You can give configure
2915 # the --cache-file=FILE option to use a different cache file; that is
2916 # what configure does when it calls configure scripts in
2917 # subdirectories, so they share the cache.
2918 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2919 # config.status only pays attention to the cache file if you give it the
2920 # --recheck option to rerun configure.
2923 # Ultrix sh set writes to stderr and can't be redirected directly,
2924 # and sets the high bit in the cache file unless we assign to the vars.
2926 sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
2928 if cmp -s $cache_file confcache; then
2931 if test -w $cache_file; then
2932 echo "updating cache $cache_file"
2933 cat confcache > $cache_file
2935 echo "not updating unwritable cache $cache_file"
2940 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2942 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2943 # Let make expand exec_prefix.
2944 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2946 # Any assignment to VPATH causes Sun make to only execute
2947 # the first set of double-colon rules, so remove it if not needed.
2948 # If there is a colon in the path, we need to keep it.
2949 if test "x$srcdir" = x.; then
2950 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2953 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2955 DEFS=-DHAVE_CONFIG_H
2957 # Without the "./", some shells look in PATH for config.status.
2958 : ${CONFIG_STATUS=./config.status}
2960 echo creating $CONFIG_STATUS
2961 rm -f $CONFIG_STATUS
2962 cat > $CONFIG_STATUS <<EOF
2964 # Generated automatically by configure.
2965 # Run this file to recreate the current configuration.
2966 # This directory was configured as follows,
2967 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2969 # $0 $ac_configure_args
2971 # Compiler output produced by configure, useful for debugging
2972 # configure, is in ./config.log if it exists.
2974 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2977 case "\$ac_option" in
2978 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2979 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2980 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2981 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2982 echo "$CONFIG_STATUS generated by autoconf version 2.10"
2984 -help | --help | --hel | --he | --h)
2985 echo "\$ac_cs_usage"; exit 0 ;;
2986 *) echo "\$ac_cs_usage"; exit 1 ;;
2990 ac_given_srcdir=$srcdir
2991 ac_given_INSTALL="$INSTALL"
2993 trap 'rm -fr `echo "Makefile atrun atd.8 atrun.8 at.1 batch config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2995 cat >> $CONFIG_STATUS <<EOF
2997 # Protect against being on the right side of a sed subst in config.status.
2998 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2999 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3002 s%@CFLAGS@%$CFLAGS%g
3003 s%@CPPFLAGS@%$CPPFLAGS%g
3004 s%@CXXFLAGS@%$CXXFLAGS%g
3006 s%@LDFLAGS@%$LDFLAGS%g
3008 s%@exec_prefix@%$exec_prefix%g
3009 s%@prefix@%$prefix%g
3010 s%@program_transform_name@%$program_transform_name%g
3011 s%@bindir@%$bindir%g
3012 s%@sbindir@%$sbindir%g
3013 s%@libexecdir@%$libexecdir%g
3014 s%@datadir@%$datadir%g
3015 s%@sysconfdir@%$sysconfdir%g
3016 s%@sharedstatedir@%$sharedstatedir%g
3017 s%@localstatedir@%$localstatedir%g
3018 s%@libdir@%$libdir%g
3019 s%@includedir@%$includedir%g
3020 s%@oldincludedir@%$oldincludedir%g
3021 s%@infodir@%$infodir%g
3022 s%@mandir@%$mandir%g
3023 s%@VERSION@%$VERSION%g
3025 s%@host_alias@%$host_alias%g
3026 s%@host_cpu@%$host_cpu%g
3027 s%@host_vendor@%$host_vendor%g
3028 s%@host_os@%$host_os%g
3030 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3031 s%@INSTALL_DATA@%$INSTALL_DATA%g
3035 s%@LEXLIB@%$LEXLIB%g
3037 s%@LIBOBJS@%$LIBOBJS%g
3038 s%@NEED_SETGID@%$NEED_SETGID%g
3039 s%@KMEM_GROUP@%$KMEM_GROUP%g
3042 s%@SENDMAIL@%$SENDMAIL%g
3043 s%@MAIL_CMD@%$MAIL_CMD%g
3044 s%@ETCDIR@%$ETCDIR%g
3047 s%@DEFATQ@%$DEFATQ%g
3049 s%@LOADAVG_MX@%$LOADAVG_MX%g
3050 s%@DAEMON_USERNAME@%$DAEMON_USERNAME%g
3051 s%@DAEMON_GROUPNAME@%$DAEMON_GROUPNAME%g
3055 cat >> $CONFIG_STATUS <<EOF
3057 CONFIG_FILES=\${CONFIG_FILES-"Makefile atrun atd.8 atrun.8 at.1 batch"}
3059 cat >> $CONFIG_STATUS <<\EOF
3060 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3061 # Support "outfile[:infile]", defaulting infile="outfile.in".
3063 *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
3064 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3065 *) ac_file_in="${ac_file}.in" ;;
3068 # Adjust relative srcdir, etc. for subdirectories.
3070 # Remove last slash and all that follows it. Not all systems have dirname.
3071 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3072 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3073 # The file is in a subdirectory.
3074 test ! -d "$ac_dir" && mkdir "$ac_dir"
3075 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3076 # A "../" for each directory in $ac_dir_suffix.
3077 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3079 ac_dir_suffix= ac_dots=
3082 case "$ac_given_srcdir" in
3084 if test -z "$ac_dots"; then top_srcdir=.
3085 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3086 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3088 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3089 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3092 case "$ac_given_INSTALL" in
3093 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3094 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3096 echo creating "$ac_file"
3098 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3100 *Makefile*) ac_comsub="1i\\
3101 # $configure_input" ;;
3105 s%@configure_input@%$configure_input%g
3106 s%@srcdir@%$srcdir%g
3107 s%@top_srcdir@%$top_srcdir%g
3108 s%@INSTALL@%$INSTALL%g
3109 " -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
3113 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3114 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3116 # ac_d sets the value in "#define NAME VALUE" lines.
3117 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3118 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3121 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3122 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3123 ac_uB='\([ ]\)%\1#\2define\3'
3126 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3127 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3128 ac_eB='$%\1#\2define\3'
3132 CONFIG_HEADERS=${CONFIG_HEADERS-"config.h"}
3133 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3134 # Support "outfile[:infile]", defaulting infile="outfile.in".
3136 *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
3137 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3138 *) ac_file_in="${ac_file}.in" ;;
3141 echo creating $ac_file
3143 rm -f conftest.frag conftest.in conftest.out
3144 cp $ac_given_srcdir/$ac_file_in conftest.in
3148 # Transform confdefs.h into a sed script conftest.vals that substitutes
3149 # the proper values into config.h.in to produce config.h. And first:
3150 # Protect against being on the right side of a sed subst in config.status.
3151 # Protect against being in an unquoted here document in config.status.
3153 cat > conftest.hdr <<\EOF
3156 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3160 sed -n -f conftest.hdr confdefs.h > conftest.vals
3163 # This sed command replaces #undef with comments. This is necessary, for
3164 # example, in the case of _POSIX_SOURCE, which is predefined and required
3165 # on some systems where configure will not decide to define it.
3166 cat >> conftest.vals <<\EOF
3167 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3170 # Break up conftest.vals because some shells have a limit on
3171 # the size of here documents, and old seds have small limits too.
3172 # Maximum number of lines to put in a single here document.
3173 ac_max_here_lines=12
3178 ac_lines=`grep -c . conftest.vals`
3179 # grep -c gives empty output for an empty file on some AIX systems.
3180 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3181 # Write a limited-size here document to conftest.frag.
3182 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3183 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3185 sed -f conftest.frag conftest.in > conftest.out
3187 mv conftest.out conftest.in
3189 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3191 mv conftest.tail conftest.vals
3195 cat >> $CONFIG_STATUS <<\EOF
3196 rm -f conftest.frag conftest.h
3197 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3198 cat conftest.in >> conftest.h
3200 if cmp -s $ac_file conftest.h 2>/dev/null; then
3201 echo "$ac_file is unchanged"
3204 # Remove last slash and all that follows it. Not all systems have dirname.
3205 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3206 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3207 # The file is in a subdirectory.
3208 test ! -d "$ac_dir" && mkdir "$ac_dir"
3211 mv conftest.h $ac_file
3219 chmod +x $CONFIG_STATUS
3220 rm -fr confdefs* $ac_clean_files
3221 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1