3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --enable-check Enable extra internal consistency checks (slow)"
17 --enable-profile Enable code profiling"
19 --disable-user-check Do not check for existance of dlife account"
21 --enable-cron[=layout] Install cron script to run dlife net client
22 'layout' may be 'auto' (default), 'standard',
23 or a path to crontab directory starting with /
24 --disable-cron Do not install cron script"
26 --enable-rc[=layout] Install rc script (runs dlife_soup at boot)
27 'layout' may be 'auto' (default), 'standard',
28 or a path to local rc directory starting with /
29 --disable-rc Do not install rc script"
31 --with-spool=DIR Spool directory (default typically /var/spool/dlife)"
33 --with-conf=DIR Config directory (default typically /etc/dlife)"
35 # Initialize some variables set by options.
36 # The variables have the same names as the options, with
37 # dashes changed to underlines.
39 cache_file=./config.cache
48 program_transform_name=s,x,x,
56 bindir='${exec_prefix}/bin'
57 sbindir='${exec_prefix}/sbin'
58 libexecdir='${exec_prefix}/libexec'
59 datadir='${prefix}/share'
60 sysconfdir='${prefix}/etc'
61 sharedstatedir='${prefix}/com'
62 localstatedir='${prefix}/var'
63 libdir='${exec_prefix}/lib'
64 includedir='${prefix}/include'
65 oldincludedir='/usr/include'
66 infodir='${prefix}/info'
67 mandir='${prefix}/man'
69 # Initialize some other variables.
72 SHELL=${CONFIG_SHELL-/bin/sh}
73 # Maximum number of lines to put in a shell here document.
80 # If the previous option needs an argument, assign it.
81 if test -n "$ac_prev"; then
82 eval "$ac_prev=\$ac_option"
88 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
92 # Accept the important Cygnus configure options, so we can diagnose typos.
96 -bindir | --bindir | --bindi | --bind | --bin | --bi)
98 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
99 bindir="$ac_optarg" ;;
101 -build | --build | --buil | --bui | --bu)
103 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
104 build="$ac_optarg" ;;
106 -cache-file | --cache-file | --cache-fil | --cache-fi \
107 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
108 ac_prev=cache_file ;;
109 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
110 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
111 cache_file="$ac_optarg" ;;
113 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
115 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
117 datadir="$ac_optarg" ;;
119 -disable-* | --disable-*)
120 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
121 # Reject names that are not valid shell variable names.
122 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
123 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
125 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
126 eval "enable_${ac_feature}=no" ;;
128 -enable-* | --enable-*)
129 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
130 # Reject names that are not valid shell variable names.
131 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
132 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
134 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
139 eval "enable_${ac_feature}='$ac_optarg'" ;;
141 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
142 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
143 | --exec | --exe | --ex)
144 ac_prev=exec_prefix ;;
145 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
146 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
147 | --exec=* | --exe=* | --ex=*)
148 exec_prefix="$ac_optarg" ;;
150 -gas | --gas | --ga | --g)
151 # Obsolete; use --with-gas.
154 -help | --help | --hel | --he)
155 # Omit some internal or obsolete options to make the list less imposing.
156 # This message is too long to be a string in the A/UX 3.1 sh.
158 Usage: configure [options] [host]
159 Options: [defaults in brackets after descriptions]
161 --cache-file=FILE cache test results in FILE
162 --help print this message
163 --no-create do not create output files
164 --quiet, --silent do not print \`checking...' messages
165 --version print the version of autoconf that created configure
166 Directory and file names:
167 --prefix=PREFIX install architecture-independent files in PREFIX
169 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
171 --bindir=DIR user executables in DIR [EPREFIX/bin]
172 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
173 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
174 --datadir=DIR read-only architecture-independent data in DIR
176 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
177 --sharedstatedir=DIR modifiable architecture-independent data in DIR
179 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
180 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
181 --includedir=DIR C header files in DIR [PREFIX/include]
182 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
183 --infodir=DIR info documentation in DIR [PREFIX/info]
184 --mandir=DIR man documentation in DIR [PREFIX/man]
185 --srcdir=DIR find the sources in DIR [configure dir or ..]
186 --program-prefix=PREFIX prepend PREFIX to installed program names
187 --program-suffix=SUFFIX append SUFFIX to installed program names
188 --program-transform-name=PROGRAM
189 run sed PROGRAM on installed program names
193 --build=BUILD configure for building on BUILD [BUILD=HOST]
194 --host=HOST configure for HOST [guessed]
195 --target=TARGET configure for TARGET [TARGET=HOST]
196 Features and packages:
197 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
198 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
199 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
200 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
201 --x-includes=DIR X include files are in DIR
202 --x-libraries=DIR X library files are in DIR
204 if test -n "$ac_help"; then
205 echo "--enable and --with options recognized:$ac_help"
209 -host | --host | --hos | --ho)
211 -host=* | --host=* | --hos=* | --ho=*)
214 -includedir | --includedir | --includedi | --included | --include \
215 | --includ | --inclu | --incl | --inc)
216 ac_prev=includedir ;;
217 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
218 | --includ=* | --inclu=* | --incl=* | --inc=*)
219 includedir="$ac_optarg" ;;
221 -infodir | --infodir | --infodi | --infod | --info | --inf)
223 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
224 infodir="$ac_optarg" ;;
226 -libdir | --libdir | --libdi | --libd)
228 -libdir=* | --libdir=* | --libdi=* | --libd=*)
229 libdir="$ac_optarg" ;;
231 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
232 | --libexe | --libex | --libe)
233 ac_prev=libexecdir ;;
234 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
235 | --libexe=* | --libex=* | --libe=*)
236 libexecdir="$ac_optarg" ;;
238 -localstatedir | --localstatedir | --localstatedi | --localstated \
239 | --localstate | --localstat | --localsta | --localst \
240 | --locals | --local | --loca | --loc | --lo)
241 ac_prev=localstatedir ;;
242 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
243 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
244 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
245 localstatedir="$ac_optarg" ;;
247 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
249 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
250 mandir="$ac_optarg" ;;
253 # Obsolete; use --without-fp.
256 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
260 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
261 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
264 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
265 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
266 | --oldin | --oldi | --old | --ol | --o)
267 ac_prev=oldincludedir ;;
268 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
269 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
270 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
271 oldincludedir="$ac_optarg" ;;
273 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
275 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
276 prefix="$ac_optarg" ;;
278 -program-prefix | --program-prefix | --program-prefi | --program-pref \
279 | --program-pre | --program-pr | --program-p)
280 ac_prev=program_prefix ;;
281 -program-prefix=* | --program-prefix=* | --program-prefi=* \
282 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
283 program_prefix="$ac_optarg" ;;
285 -program-suffix | --program-suffix | --program-suffi | --program-suff \
286 | --program-suf | --program-su | --program-s)
287 ac_prev=program_suffix ;;
288 -program-suffix=* | --program-suffix=* | --program-suffi=* \
289 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
290 program_suffix="$ac_optarg" ;;
292 -program-transform-name | --program-transform-name \
293 | --program-transform-nam | --program-transform-na \
294 | --program-transform-n | --program-transform- \
295 | --program-transform | --program-transfor \
296 | --program-transfo | --program-transf \
297 | --program-trans | --program-tran \
298 | --progr-tra | --program-tr | --program-t)
299 ac_prev=program_transform_name ;;
300 -program-transform-name=* | --program-transform-name=* \
301 | --program-transform-nam=* | --program-transform-na=* \
302 | --program-transform-n=* | --program-transform-=* \
303 | --program-transform=* | --program-transfor=* \
304 | --program-transfo=* | --program-transf=* \
305 | --program-trans=* | --program-tran=* \
306 | --progr-tra=* | --program-tr=* | --program-t=*)
307 program_transform_name="$ac_optarg" ;;
309 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
310 | -silent | --silent | --silen | --sile | --sil)
313 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
315 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
317 sbindir="$ac_optarg" ;;
319 -sharedstatedir | --sharedstatedir | --sharedstatedi \
320 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
321 | --sharedst | --shareds | --shared | --share | --shar \
323 ac_prev=sharedstatedir ;;
324 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
325 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
326 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
328 sharedstatedir="$ac_optarg" ;;
330 -site | --site | --sit)
332 -site=* | --site=* | --sit=*)
335 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
337 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
338 srcdir="$ac_optarg" ;;
340 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
341 | --syscon | --sysco | --sysc | --sys | --sy)
342 ac_prev=sysconfdir ;;
343 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
344 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
345 sysconfdir="$ac_optarg" ;;
347 -target | --target | --targe | --targ | --tar | --ta | --t)
349 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
350 target="$ac_optarg" ;;
352 -v | -verbose | --verbose | --verbos | --verbo | --verb)
355 -version | --version | --versio | --versi | --vers)
356 echo "configure generated by autoconf version 2.13"
360 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
361 # Reject names that are not valid shell variable names.
362 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
363 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
365 ac_package=`echo $ac_package| sed 's/-/_/g'`
370 eval "with_${ac_package}='$ac_optarg'" ;;
372 -without-* | --without-*)
373 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
374 # Reject names that are not valid shell variable names.
375 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
376 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
378 ac_package=`echo $ac_package| sed 's/-/_/g'`
379 eval "with_${ac_package}=no" ;;
382 # Obsolete; use --with-x.
385 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
386 | --x-incl | --x-inc | --x-in | --x-i)
387 ac_prev=x_includes ;;
388 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
389 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
390 x_includes="$ac_optarg" ;;
392 -x-libraries | --x-libraries | --x-librarie | --x-librari \
393 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
394 ac_prev=x_libraries ;;
395 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
396 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
397 x_libraries="$ac_optarg" ;;
399 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
403 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
404 echo "configure: warning: $ac_option: invalid host type" 1>&2
406 if test "x$nonopt" != xNONE; then
407 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
415 if test -n "$ac_prev"; then
416 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
419 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
421 # File descriptor usage:
424 # 2 errors and warnings
425 # 3 some systems may open it to /dev/tty
426 # 4 used on the Kubota Titan
427 # 6 checking for... messages and results
428 # 5 compiler messages saved in config.log
429 if test "$silent" = yes; then
437 This file contains any messages produced by compilers while
438 running configure, to aid debugging if configure makes a mistake.
441 # Strip out --no-create and --no-recursion so they do not pile up.
442 # Also quote any args containing shell metacharacters.
447 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
448 | --no-cr | --no-c) ;;
449 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
450 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
451 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
452 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
453 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
458 # Only set these to C if already set. These must not be set unconditionally
459 # because not all systems understand e.g. LANG=C (notably SCO).
460 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
461 # Non-C LC_CTYPE values break the ctype check.
462 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
463 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
464 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
465 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
467 # confdefs.h avoids OS command line length limits that DEFS can exceed.
468 rm -rf conftest* confdefs.h
469 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
472 # A filename unique to this package, relative to the directory that
473 # configure is in, which we can look for to find out if srcdir is correct.
474 ac_unique_file=cell.c
476 # Find the source files, if location was not specified.
477 if test -z "$srcdir"; then
478 ac_srcdir_defaulted=yes
479 # Try the directory containing this script, then its parent.
481 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
482 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
484 if test ! -r $srcdir/$ac_unique_file; then
488 ac_srcdir_defaulted=no
490 if test ! -r $srcdir/$ac_unique_file; then
491 if test "$ac_srcdir_defaulted" = yes; then
492 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
494 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
497 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
499 # Prefer explicitly selected file to automatically selected ones.
500 if test -z "$CONFIG_SITE"; then
501 if test "x$prefix" != xNONE; then
502 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
504 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
507 for ac_site_file in $CONFIG_SITE; do
508 if test -r "$ac_site_file"; then
509 echo "loading site script $ac_site_file"
514 if test -r "$cache_file"; then
515 echo "loading cache $cache_file"
518 echo "creating cache $cache_file"
523 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
524 ac_cpp='$CPP $CPPFLAGS'
525 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
526 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
527 cross_compiling=$ac_cv_prog_cc_cross
531 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
532 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
533 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
540 ac_n= ac_c='\c' ac_t=
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.
563 am__api_version="1.4"
564 # Find a good install program. We prefer a C program (faster),
565 # so one script is as good as another. But avoid the broken or
566 # incompatible versions:
567 # SysV /etc/install, /usr/sbin/install
568 # SunOS /usr/etc/install
571 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
572 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
573 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
574 # ./install, which can be erroneously created by make from ./install.sh.
575 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
576 echo "configure:577: checking for a BSD compatible install" >&5
577 if test -z "$INSTALL"; then
578 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
579 echo $ac_n "(cached) $ac_c" 1>&6
581 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
582 for ac_dir in $PATH; do
583 # Account for people who put trailing slashes in PATH elements.
585 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
587 # OSF1 and SCO ODT 3.0 have their own names for install.
588 # Don't use installbsd from OSF since it installs stuff as root
590 for ac_prog in ginstall scoinst install; do
591 if test -f $ac_dir/$ac_prog; then
592 if test $ac_prog = install &&
593 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
594 # AIX install. It has an incompatible calling convention.
597 ac_cv_path_install="$ac_dir/$ac_prog -c"
608 if test "${ac_cv_path_install+set}" = set; then
609 INSTALL="$ac_cv_path_install"
611 # As a last resort, use the slow shell script. We don't cache a
612 # path for INSTALL within a source directory, because that will
613 # break other packages using the cache if that directory is
614 # removed, or if the path is relative.
615 INSTALL="$ac_install_sh"
618 echo "$ac_t""$INSTALL" 1>&6
620 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
621 # It thinks the first close brace ends the variable substitution.
622 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
624 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
626 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
628 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
629 echo "configure:630: checking whether build environment is sane" >&5
632 echo timestamp > conftestfile
633 # Do `set' in a subshell so we don't clobber the current shell's
634 # arguments. Must try -L first in case configure is actually a
635 # symlink; some systems play weird games with the mod time of symlinks
636 # (eg FreeBSD returns the mod time of the symlink's containing
639 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
640 if test "$*" = "X"; then
642 set X `ls -t $srcdir/configure conftestfile`
644 if test "$*" != "X $srcdir/configure conftestfile" \
645 && test "$*" != "X conftestfile $srcdir/configure"; then
647 # If neither matched, then we have a broken ls. This can happen
648 # if, for instance, CONFIG_SHELL is bash and it inherits a
649 # broken ls alias from the environment. This has actually
650 # happened. Such a system could not be considered "sane".
651 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
652 alias in your environment" 1>&2; exit 1; }
655 test "$2" = conftestfile
661 { echo "configure: error: newly created file is older than distributed files!
662 Check your system clock" 1>&2; exit 1; }
665 echo "$ac_t""yes" 1>&6
666 if test "$program_transform_name" = s,x,x,; then
667 program_transform_name=
669 # Double any \ or $. echo might interpret backslashes.
670 cat <<\EOF_SED > conftestsed
671 s,\\,\\\\,g; s,\$,$$,g
673 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
676 test "$program_prefix" != NONE &&
677 program_transform_name="s,^,${program_prefix},; $program_transform_name"
678 # Use a double $ so make ignores it.
679 test "$program_suffix" != NONE &&
680 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
682 # sed with no file args requires a program.
683 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
685 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
686 echo "configure:687: checking whether ${MAKE-make} sets \${MAKE}" >&5
687 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
688 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
689 echo $ac_n "(cached) $ac_c" 1>&6
691 cat > conftestmake <<\EOF
693 @echo 'ac_maketemp="${MAKE}"'
695 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
696 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
697 if test -n "$ac_maketemp"; then
698 eval ac_cv_prog_make_${ac_make}_set=yes
700 eval ac_cv_prog_make_${ac_make}_set=no
704 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
705 echo "$ac_t""yes" 1>&6
708 echo "$ac_t""no" 1>&6
709 SET_MAKE="MAKE=${MAKE-make}"
717 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
718 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
720 cat >> confdefs.h <<EOF
721 #define PACKAGE "$PACKAGE"
724 cat >> confdefs.h <<EOF
725 #define VERSION "$VERSION"
730 missing_dir=`cd $ac_aux_dir && pwd`
731 echo $ac_n "checking for working aclocal-${am__api_version}""... $ac_c" 1>&6
732 echo "configure:733: checking for working aclocal-${am__api_version}" >&5
733 # Run test in a subshell; some versions of sh will print an error if
734 # an executable is not found, even if stderr is redirected.
735 # Redirect stdin to placate older versions of autoconf. Sigh.
736 if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
737 ACLOCAL=aclocal-${am__api_version}
738 echo "$ac_t""found" 1>&6
740 ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
741 echo "$ac_t""missing" 1>&6
744 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
745 echo "configure:746: checking for working autoconf" >&5
746 # Run test in a subshell; some versions of sh will print an error if
747 # an executable is not found, even if stderr is redirected.
748 # Redirect stdin to placate older versions of autoconf. Sigh.
749 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
751 echo "$ac_t""found" 1>&6
753 AUTOCONF="$missing_dir/missing autoconf"
754 echo "$ac_t""missing" 1>&6
757 echo $ac_n "checking for working automake-${am__api_version}""... $ac_c" 1>&6
758 echo "configure:759: checking for working automake-${am__api_version}" >&5
759 # Run test in a subshell; some versions of sh will print an error if
760 # an executable is not found, even if stderr is redirected.
761 # Redirect stdin to placate older versions of autoconf. Sigh.
762 if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
763 AUTOMAKE=automake-${am__api_version}
764 echo "$ac_t""found" 1>&6
766 AUTOMAKE="$missing_dir/missing automake-${am__api_version}"
767 echo "$ac_t""missing" 1>&6
770 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
771 echo "configure:772: checking for working autoheader" >&5
772 # Run test in a subshell; some versions of sh will print an error if
773 # an executable is not found, even if stderr is redirected.
774 # Redirect stdin to placate older versions of autoconf. Sigh.
775 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
776 AUTOHEADER=autoheader
777 echo "$ac_t""found" 1>&6
779 AUTOHEADER="$missing_dir/missing autoheader"
780 echo "$ac_t""missing" 1>&6
783 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
784 echo "configure:785: checking for working makeinfo" >&5
785 # Run test in a subshell; some versions of sh will print an error if
786 # an executable is not found, even if stderr is redirected.
787 # Redirect stdin to placate older versions of autoconf. Sigh.
788 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
790 echo "$ac_t""found" 1>&6
792 MAKEINFO="$missing_dir/missing makeinfo"
793 echo "$ac_t""missing" 1>&6
801 # Extract the first word of "gcc", so it can be a program name with args.
802 set dummy gcc; ac_word=$2
803 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
804 echo "configure:805: checking for $ac_word" >&5
805 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
806 echo $ac_n "(cached) $ac_c" 1>&6
808 if test -n "$CC"; then
809 ac_cv_prog_CC="$CC" # Let the user override the test.
811 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
813 for ac_dir in $ac_dummy; do
814 test -z "$ac_dir" && ac_dir=.
815 if test -f $ac_dir/$ac_word; then
824 if test -n "$CC"; then
825 echo "$ac_t""$CC" 1>&6
827 echo "$ac_t""no" 1>&6
830 if test -z "$CC"; then
831 # Extract the first word of "cc", so it can be a program name with args.
832 set dummy cc; ac_word=$2
833 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
834 echo "configure:835: checking for $ac_word" >&5
835 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
836 echo $ac_n "(cached) $ac_c" 1>&6
838 if test -n "$CC"; then
839 ac_cv_prog_CC="$CC" # Let the user override the test.
841 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
844 for ac_dir in $ac_dummy; do
845 test -z "$ac_dir" && ac_dir=.
846 if test -f $ac_dir/$ac_word; then
847 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
856 if test $ac_prog_rejected = yes; then
857 # We found a bogon in the path, so make sure we never use it.
858 set dummy $ac_cv_prog_CC
860 if test $# -gt 0; then
861 # We chose a different compiler from the bogus one.
862 # However, it has the same basename, so the bogon will be chosen
863 # first if we set CC to just the basename; use the full file name.
865 set dummy "$ac_dir/$ac_word" "$@"
873 if test -n "$CC"; then
874 echo "$ac_t""$CC" 1>&6
876 echo "$ac_t""no" 1>&6
879 if test -z "$CC"; then
882 # Extract the first word of "cl", so it can be a program name with args.
883 set dummy cl; ac_word=$2
884 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
885 echo "configure:886: checking for $ac_word" >&5
886 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
887 echo $ac_n "(cached) $ac_c" 1>&6
889 if test -n "$CC"; then
890 ac_cv_prog_CC="$CC" # Let the user override the test.
892 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
894 for ac_dir in $ac_dummy; do
895 test -z "$ac_dir" && ac_dir=.
896 if test -f $ac_dir/$ac_word; then
905 if test -n "$CC"; then
906 echo "$ac_t""$CC" 1>&6
908 echo "$ac_t""no" 1>&6
913 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
916 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
917 echo "configure:918: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
920 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
921 ac_cpp='$CPP $CPPFLAGS'
922 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
923 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
924 cross_compiling=$ac_cv_prog_cc_cross
926 cat > conftest.$ac_ext << EOF
928 #line 929 "configure"
929 #include "confdefs.h"
933 if { (eval echo configure:934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
934 ac_cv_prog_cc_works=yes
935 # If we can't run a trivial program, we are probably using a cross compiler.
936 if (./conftest; exit) 2>/dev/null; then
937 ac_cv_prog_cc_cross=no
939 ac_cv_prog_cc_cross=yes
942 echo "configure: failed program was:" >&5
943 cat conftest.$ac_ext >&5
944 ac_cv_prog_cc_works=no
948 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
949 ac_cpp='$CPP $CPPFLAGS'
950 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
951 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
952 cross_compiling=$ac_cv_prog_cc_cross
954 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
955 if test $ac_cv_prog_cc_works = no; then
956 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
958 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
959 echo "configure:960: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
960 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
961 cross_compiling=$ac_cv_prog_cc_cross
963 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
964 echo "configure:965: checking whether we are using GNU C" >&5
965 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
966 echo $ac_n "(cached) $ac_c" 1>&6
968 cat > conftest.c <<EOF
973 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:974: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
980 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
982 if test $ac_cv_prog_gcc = yes; then
988 ac_test_CFLAGS="${CFLAGS+set}"
989 ac_save_CFLAGS="$CFLAGS"
991 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
992 echo "configure:993: checking whether ${CC-cc} accepts -g" >&5
993 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
994 echo $ac_n "(cached) $ac_c" 1>&6
996 echo 'void f(){}' > conftest.c
997 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1006 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1007 if test "$ac_test_CFLAGS" = set; then
1008 CFLAGS="$ac_save_CFLAGS"
1009 elif test $ac_cv_prog_cc_g = yes; then
1010 if test "$GCC" = yes; then
1016 if test "$GCC" = yes; then
1023 # Find a good install program. We prefer a C program (faster),
1024 # so one script is as good as another. But avoid the broken or
1025 # incompatible versions:
1026 # SysV /etc/install, /usr/sbin/install
1027 # SunOS /usr/etc/install
1028 # IRIX /sbin/install
1030 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1031 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1032 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1033 # ./install, which can be erroneously created by make from ./install.sh.
1034 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1035 echo "configure:1036: checking for a BSD compatible install" >&5
1036 if test -z "$INSTALL"; then
1037 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1038 echo $ac_n "(cached) $ac_c" 1>&6
1040 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1041 for ac_dir in $PATH; do
1042 # Account for people who put trailing slashes in PATH elements.
1044 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1046 # OSF1 and SCO ODT 3.0 have their own names for install.
1047 # Don't use installbsd from OSF since it installs stuff as root
1049 for ac_prog in ginstall scoinst install; do
1050 if test -f $ac_dir/$ac_prog; then
1051 if test $ac_prog = install &&
1052 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1053 # AIX install. It has an incompatible calling convention.
1056 ac_cv_path_install="$ac_dir/$ac_prog -c"
1067 if test "${ac_cv_path_install+set}" = set; then
1068 INSTALL="$ac_cv_path_install"
1070 # As a last resort, use the slow shell script. We don't cache a
1071 # path for INSTALL within a source directory, because that will
1072 # break other packages using the cache if that directory is
1073 # removed, or if the path is relative.
1074 INSTALL="$ac_install_sh"
1077 echo "$ac_t""$INSTALL" 1>&6
1079 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1080 # It thinks the first close brace ends the variable substitution.
1081 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1083 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1085 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1087 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1088 echo "configure:1089: checking whether ${MAKE-make} sets \${MAKE}" >&5
1089 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1090 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1091 echo $ac_n "(cached) $ac_c" 1>&6
1093 cat > conftestmake <<\EOF
1095 @echo 'ac_maketemp="${MAKE}"'
1097 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1098 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1099 if test -n "$ac_maketemp"; then
1100 eval ac_cv_prog_make_${ac_make}_set=yes
1102 eval ac_cv_prog_make_${ac_make}_set=no
1106 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1107 echo "$ac_t""yes" 1>&6
1110 echo "$ac_t""no" 1>&6
1111 SET_MAKE="MAKE=${MAKE-make}"
1115 if test "$CC" = "gcc"; then
1116 CFLAGS="$CFLAGS -Wall -Werror"
1119 # Check whether --enable-check or --disable-check was given.
1120 if test "${enable_check+set}" = set; then
1121 enableval="$enable_check"
1122 CFLAGS="$CFLAGS -DCHECK=1"
1127 # Check whether --enable-profile or --disable-profile was given.
1128 if test "${enable_profile+set}" = set; then
1129 enableval="$enable_profile"
1130 CFLAGS="$CFLAGS -pg"
1135 # Check whether --enable-user-check or --disable-user-check was given.
1136 if test "${enable_user_check+set}" = set; then
1137 enableval="$enable_user_check"
1145 # Check whether --enable-cron or --disable-cron was given.
1146 if test "${enable_cron+set}" = set; then
1147 enableval="$enable_cron"
1148 install_cron="$enableval"
1155 # Check whether --enable-rc or --disable-rc was given.
1156 if test "${enable_rc+set}" = set; then
1157 enableval="$enable_rc"
1158 install_rc="$enableval"
1165 # Check whether --with-spool or --without-spool was given.
1166 if test "${with_spool+set}" = set; then
1167 withval="$with_spool"
1170 FC_EXPAND_DIR(SPOOLDIR, '${localstatedir}/spool/dlife')
1175 # Check whether --with-conf or --without-conf was given.
1176 if test "${with_conf+set}" = set; then
1177 withval="$with_conf"
1180 FC_EXPAND_DIR(CONFDIR, '${sysconfdir}/dlife')
1185 if test "$user_check" = "yes"; then
1186 echo $ac_n "checking for dlife group""... $ac_c" 1>&6
1187 echo "configure:1188: checking for dlife group" >&5
1188 if ! grep '^dlife:' /etc/group >/dev/null; then
1189 { echo "configure: error: there is no 'dlife' group in /etc/group" 1>&2; exit 1; }
1191 echo "$ac_t""found" 1>&6
1193 echo $ac_n "checking for dlife user""... $ac_c" 1>&6
1194 echo "configure:1195: checking for dlife user" >&5
1195 if ! grep '^dlife:' /etc/passwd >/dev/null; then
1196 { echo "configure: error: there is no 'dlife' user in /etc/passwd" 1>&2; exit 1; }
1198 echo "$ac_t""found" 1>&6
1215 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1216 echo "configure:1217: checking for $ac_func" >&5
1217 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1218 echo $ac_n "(cached) $ac_c" 1>&6
1220 cat > conftest.$ac_ext <<EOF
1221 #line 1222 "configure"
1222 #include "confdefs.h"
1223 /* System header to define __stub macros and hopefully few prototypes,
1224 which can conflict with char $ac_func(); below. */
1226 /* Override any gcc2 internal prototype to avoid an error. */
1227 /* We use char because int might match the return type of a gcc2
1228 builtin and then its argument prototype would still apply. */
1233 /* The GNU C library defines this for functions which it implements
1234 to always fail with ENOSYS. Some functions are actually named
1235 something starting with __ and the normal name is an alias. */
1236 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1244 if { (eval echo configure:1245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1246 eval "ac_cv_func_$ac_func=yes"
1248 echo "configure: failed program was:" >&5
1249 cat conftest.$ac_ext >&5
1251 eval "ac_cv_func_$ac_func=no"
1256 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1257 echo "$ac_t""yes" 1>&6
1258 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1259 cat >> confdefs.h <<EOF
1260 #define $ac_tr_func 1
1264 echo "$ac_t""no" 1>&6
1269 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1270 echo "configure:1271: checking how to run the C preprocessor" >&5
1271 # On Suns, sometimes $CPP names a directory.
1272 if test -n "$CPP" && test -d "$CPP"; then
1275 if test -z "$CPP"; then
1276 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1277 echo $ac_n "(cached) $ac_c" 1>&6
1279 # This must be in double quotes, not single quotes, because CPP may get
1280 # substituted into the Makefile and "${CC-cc}" will confuse make.
1282 # On the NeXT, cc -E runs the code through the compiler's parser,
1283 # not just through cpp.
1284 cat > conftest.$ac_ext <<EOF
1285 #line 1286 "configure"
1286 #include "confdefs.h"
1290 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1291 { (eval echo configure:1292: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1292 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1293 if test -z "$ac_err"; then
1297 echo "configure: failed program was:" >&5
1298 cat conftest.$ac_ext >&5
1300 CPP="${CC-cc} -E -traditional-cpp"
1301 cat > conftest.$ac_ext <<EOF
1302 #line 1303 "configure"
1303 #include "confdefs.h"
1307 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1308 { (eval echo configure:1309: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1309 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1310 if test -z "$ac_err"; then
1314 echo "configure: failed program was:" >&5
1315 cat conftest.$ac_ext >&5
1317 CPP="${CC-cc} -nologo -E"
1318 cat > conftest.$ac_ext <<EOF
1319 #line 1320 "configure"
1320 #include "confdefs.h"
1324 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1325 { (eval echo configure:1326: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1326 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1327 if test -z "$ac_err"; then
1331 echo "configure: failed program was:" >&5
1332 cat conftest.$ac_ext >&5
1341 ac_cv_prog_CPP="$CPP"
1343 CPP="$ac_cv_prog_CPP"
1345 ac_cv_prog_CPP="$CPP"
1347 echo "$ac_t""$CPP" 1>&6
1367 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1368 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1369 echo "configure:1370: checking for $ac_hdr" >&5
1370 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1371 echo $ac_n "(cached) $ac_c" 1>&6
1373 cat > conftest.$ac_ext <<EOF
1374 #line 1375 "configure"
1375 #include "confdefs.h"
1378 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1379 { (eval echo configure:1380: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1380 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1381 if test -z "$ac_err"; then
1383 eval "ac_cv_header_$ac_safe=yes"
1386 echo "configure: failed program was:" >&5
1387 cat conftest.$ac_ext >&5
1389 eval "ac_cv_header_$ac_safe=no"
1393 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1394 echo "$ac_t""yes" 1>&6
1395 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1396 cat >> confdefs.h <<EOF
1397 #define $ac_tr_hdr 1
1401 echo "$ac_t""no" 1>&6
1407 echo $ac_n "checking crontab directory""... $ac_c" 1>&6
1408 echo "configure:1409: checking crontab directory" >&5
1410 case "$install_cron" in
1412 if test -d $sysconfdir/cron.d; then
1413 install_cron=$sysconfdir/cron.d
1415 { echo "configure: error: failed to find a directory to put crontabs in; try --help" 1>&2; exit 1; }
1419 install_cron=/etc/cron.d
1426 { echo "configure: error: unknown parameter given to --enable-cron" 1>&2; exit 1; }
1430 echo "$ac_t""$install_cron" 1>&6
1431 CRONDIR=$install_cron
1435 if test "$install_cron" != "no"; then
1437 INSTALL_CRON_FALSE='#'
1439 INSTALL_CRON_TRUE='#'
1444 echo $ac_n "checking rc directory""... $ac_c" 1>&6
1445 echo "configure:1446: checking rc directory" >&5
1447 case "$install_rc" in
1449 if test -d $sysconfdir/init.d; then
1450 install_rc=$sysconfdir/init.d
1452 { echo "configure: error: failed to find a directory to put rc scripts in; try --help" 1>&2; exit 1; }
1456 install_rc=/etc/init.d
1463 { echo "configure: error: unknown parameter given to --enable-rc" 1>&2; exit 1; }
1467 echo "$ac_t""$install_rc" 1>&6
1472 if test "$install_rc" != "no"; then
1474 INSTALL_RC_FALSE='#'
1480 echo $ac_n "checking spool directory""... $ac_c" 1>&6
1481 echo "configure:1482: checking spool directory" >&5
1482 echo "$ac_t""$SPOOLDIR" 1>&6
1484 echo $ac_n "checking config directory""... $ac_c" 1>&6
1485 echo "configure:1486: checking config directory" >&5
1486 echo "$ac_t""$CONFDIR" 1>&6
1488 echo $ac_n "checking for a place to install documentation""... $ac_c" 1>&6
1489 echo "configure:1490: checking for a place to install documentation" >&5
1490 if test -d $prefix/share/doc; then
1491 DOCDIR=$prefix/share/doc/$PACKAGE-$VERSION
1495 echo "$ac_t""$DOCDIR" 1>&6
1497 RELEASEDATE=`date +"%d %b %Y"`
1506 cat >> confdefs.h <<EOF
1507 #define SPOOLDIR "$SPOOLDIR"
1510 cat >> confdefs.h <<EOF
1511 #define CONFDIR "$CONFDIR"
1516 cat > confcache <<\EOF
1517 # This file is a shell script that caches the results of configure
1518 # tests run on this system so they can be shared between configure
1519 # scripts and configure runs. It is not useful on other systems.
1520 # If it contains results you don't want to keep, you may remove or edit it.
1522 # By default, configure uses ./config.cache as the cache file,
1523 # creating it if it does not exist already. You can give configure
1524 # the --cache-file=FILE option to use a different cache file; that is
1525 # what configure does when it calls configure scripts in
1526 # subdirectories, so they share the cache.
1527 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1528 # config.status only pays attention to the cache file if you give it the
1529 # --recheck option to rerun configure.
1532 # The following way of writing the cache mishandles newlines in values,
1533 # but we know of no workaround that is simple, portable, and efficient.
1534 # So, don't put newlines in cache variables' values.
1535 # Ultrix sh set writes to stderr and can't be redirected directly,
1536 # and sets the high bit in the cache file unless we assign to the vars.
1538 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1540 # `set' does not quote correctly, so add quotes (double-quote substitution
1541 # turns \\\\ into \\, and sed turns \\ into \).
1543 -e "s/'/'\\\\''/g" \
1544 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1547 # `set' quotes correctly as required by POSIX, so do not add quotes.
1548 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1551 if cmp -s $cache_file confcache; then
1554 if test -w $cache_file; then
1555 echo "updating cache $cache_file"
1556 cat confcache > $cache_file
1558 echo "not updating unwritable cache $cache_file"
1563 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1565 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1566 # Let make expand exec_prefix.
1567 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1569 # Any assignment to VPATH causes Sun make to only execute
1570 # the first set of double-colon rules, so remove it if not needed.
1571 # If there is a colon in the path, we need to keep it.
1572 if test "x$srcdir" = x.; then
1573 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1576 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1578 DEFS=-DHAVE_CONFIG_H
1580 # Without the "./", some shells look in PATH for config.status.
1581 : ${CONFIG_STATUS=./config.status}
1583 echo creating $CONFIG_STATUS
1584 rm -f $CONFIG_STATUS
1585 cat > $CONFIG_STATUS <<EOF
1587 # Generated automatically by configure.
1588 # Run this file to recreate the current configuration.
1589 # This directory was configured as follows,
1590 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1592 # $0 $ac_configure_args
1594 # Compiler output produced by configure, useful for debugging
1595 # configure, is in ./config.log if it exists.
1597 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1600 case "\$ac_option" in
1601 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1602 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1603 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1604 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1605 echo "$CONFIG_STATUS generated by autoconf version 2.13"
1607 -help | --help | --hel | --he | --h)
1608 echo "\$ac_cs_usage"; exit 0 ;;
1609 *) echo "\$ac_cs_usage"; exit 1 ;;
1613 ac_given_srcdir=$srcdir
1614 ac_given_INSTALL="$INSTALL"
1616 trap 'rm -fr `echo "
1622 config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1624 cat >> $CONFIG_STATUS <<EOF
1626 # Protect against being on the right side of a sed subst in config.status.
1627 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1628 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1632 s%@CFLAGS@%$CFLAGS%g
1633 s%@CPPFLAGS@%$CPPFLAGS%g
1634 s%@CXXFLAGS@%$CXXFLAGS%g
1635 s%@FFLAGS@%$FFLAGS%g
1637 s%@LDFLAGS@%$LDFLAGS%g
1639 s%@exec_prefix@%$exec_prefix%g
1640 s%@prefix@%$prefix%g
1641 s%@program_transform_name@%$program_transform_name%g
1642 s%@bindir@%$bindir%g
1643 s%@sbindir@%$sbindir%g
1644 s%@libexecdir@%$libexecdir%g
1645 s%@datadir@%$datadir%g
1646 s%@sysconfdir@%$sysconfdir%g
1647 s%@sharedstatedir@%$sharedstatedir%g
1648 s%@localstatedir@%$localstatedir%g
1649 s%@libdir@%$libdir%g
1650 s%@includedir@%$includedir%g
1651 s%@oldincludedir@%$oldincludedir%g
1652 s%@infodir@%$infodir%g
1653 s%@mandir@%$mandir%g
1654 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1655 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
1656 s%@INSTALL_DATA@%$INSTALL_DATA%g
1657 s%@PACKAGE@%$PACKAGE%g
1658 s%@VERSION@%$VERSION%g
1659 s%@ACLOCAL@%$ACLOCAL%g
1660 s%@AUTOCONF@%$AUTOCONF%g
1661 s%@AUTOMAKE@%$AUTOMAKE%g
1662 s%@AUTOHEADER@%$AUTOHEADER%g
1663 s%@MAKEINFO@%$MAKEINFO%g
1664 s%@SET_MAKE@%$SET_MAKE%g
1667 s%@INSTALL_CRON_TRUE@%$INSTALL_CRON_TRUE%g
1668 s%@INSTALL_CRON_FALSE@%$INSTALL_CRON_FALSE%g
1669 s%@INSTALL_RC_TRUE@%$INSTALL_RC_TRUE%g
1670 s%@INSTALL_RC_FALSE@%$INSTALL_RC_FALSE%g
1671 s%@CRONDIR@%$CRONDIR%g
1673 s%@SPOOLDIR@%$SPOOLDIR%g
1674 s%@CONFDIR@%$CONFDIR%g
1675 s%@DOCDIR@%$DOCDIR%g
1676 s%@RELEASEDATE@%$RELEASEDATE%g
1681 cat >> $CONFIG_STATUS <<\EOF
1683 # Split the substitutions into bite-sized pieces for seds with
1684 # small command number limits, like on Digital OSF/1 and HP-UX.
1685 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1686 ac_file=1 # Number of current file.
1687 ac_beg=1 # First line for current file.
1688 ac_end=$ac_max_sed_cmds # Line after last line for current file.
1691 while $ac_more_lines; do
1692 if test $ac_beg -gt 1; then
1693 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1695 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1697 if test ! -s conftest.s$ac_file; then
1699 rm -f conftest.s$ac_file
1701 if test -z "$ac_sed_cmds"; then
1702 ac_sed_cmds="sed -f conftest.s$ac_file"
1704 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1706 ac_file=`expr $ac_file + 1`
1708 ac_end=`expr $ac_end + $ac_max_sed_cmds`
1711 if test -z "$ac_sed_cmds"; then
1716 cat >> $CONFIG_STATUS <<EOF
1718 CONFIG_FILES=\${CONFIG_FILES-"Makefile
1725 cat >> $CONFIG_STATUS <<\EOF
1726 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1727 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1729 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1730 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1731 *) ac_file_in="${ac_file}.in" ;;
1734 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1736 # Remove last slash and all that follows it. Not all systems have dirname.
1737 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1738 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1739 # The file is in a subdirectory.
1740 test ! -d "$ac_dir" && mkdir "$ac_dir"
1741 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1742 # A "../" for each directory in $ac_dir_suffix.
1743 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1745 ac_dir_suffix= ac_dots=
1748 case "$ac_given_srcdir" in
1750 if test -z "$ac_dots"; then top_srcdir=.
1751 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1752 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1754 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1755 top_srcdir="$ac_dots$ac_given_srcdir" ;;
1758 case "$ac_given_INSTALL" in
1759 [/$]*) INSTALL="$ac_given_INSTALL" ;;
1760 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1763 echo creating "$ac_file"
1765 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1767 *Makefile*) ac_comsub="1i\\
1768 # $configure_input" ;;
1772 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1774 s%@configure_input@%$configure_input%g
1775 s%@srcdir@%$srcdir%g
1776 s%@top_srcdir@%$top_srcdir%g
1777 s%@INSTALL@%$INSTALL%g
1778 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1782 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
1783 # NAME is the cpp macro being defined and VALUE is the value it is being given.
1785 # ac_d sets the value in "#define NAME VALUE" lines.
1786 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
1787 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
1790 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
1791 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1792 ac_uB='\([ ]\)%\1#\2define\3'
1795 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
1796 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1797 ac_eB='$%\1#\2define\3'
1801 if test "${CONFIG_HEADERS+set}" != set; then
1803 cat >> $CONFIG_STATUS <<EOF
1804 CONFIG_HEADERS="config.h"
1806 cat >> $CONFIG_STATUS <<\EOF
1808 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
1809 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1811 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1812 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1813 *) ac_file_in="${ac_file}.in" ;;
1816 echo creating $ac_file
1818 rm -f conftest.frag conftest.in conftest.out
1819 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1820 cat $ac_file_inputs > conftest.in
1824 # Transform confdefs.h into a sed script conftest.vals that substitutes
1825 # the proper values into config.h.in to produce config.h. And first:
1826 # Protect against being on the right side of a sed subst in config.status.
1827 # Protect against being in an unquoted here document in config.status.
1829 cat > conftest.hdr <<\EOF
1832 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
1836 sed -n -f conftest.hdr confdefs.h > conftest.vals
1839 # This sed command replaces #undef with comments. This is necessary, for
1840 # example, in the case of _POSIX_SOURCE, which is predefined and required
1841 # on some systems where configure will not decide to define it.
1842 cat >> conftest.vals <<\EOF
1843 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
1846 # Break up conftest.vals because some shells have a limit on
1847 # the size of here documents, and old seds have small limits too.
1852 ac_lines=`grep -c . conftest.vals`
1853 # grep -c gives empty output for an empty file on some AIX systems.
1854 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
1855 # Write a limited-size here document to conftest.frag.
1856 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
1857 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
1859 sed -f conftest.frag conftest.in > conftest.out
1861 mv conftest.out conftest.in
1863 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
1865 mv conftest.tail conftest.vals
1869 cat >> $CONFIG_STATUS <<\EOF
1870 rm -f conftest.frag conftest.h
1871 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
1872 cat conftest.in >> conftest.h
1874 if cmp -s $ac_file conftest.h 2>/dev/null; then
1875 echo "$ac_file is unchanged"
1878 # Remove last slash and all that follows it. Not all systems have dirname.
1879 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1880 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1881 # The file is in a subdirectory.
1882 test ! -d "$ac_dir" && mkdir "$ac_dir"
1885 mv conftest.h $ac_file
1890 cat >> $CONFIG_STATUS <<EOF
1894 cat >> $CONFIG_STATUS <<\EOF
1895 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
1899 chmod +x $CONFIG_STATUS
1900 rm -fr confdefs* $ac_clean_files
1901 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1