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-gnome enable build of gnome-console GUI [disabled]"
17 --with-gnome-includes Specify location of GNOME headers"
19 --with-gnome-libs Specify location of GNOME libs"
21 --with-gnome Specify prefix for GNOME files"
23 --enable-smartalloc enable smartalloc debugging support [disabled]"
25 --enable-static-tools enable static tape tools [disabled]"
27 --enable-static-fd enable static File daemon [disabled]"
29 --enable-static-sd enable static Storage daemon [disabled]"
31 --enable-static-dir enable static Director [disabled]"
33 --enable-static-cons enable static Console [disabled]"
35 --enable-client-only build client (File daemon) only [disabled]"
37 --disable-readline disable readline support [enabled]
40 --with-readline=DIR specify readline library directory"
42 --with-tcp-wrappers=DIR enable tcpwrappers support"
44 --with-working-dir=PATH specify path of Bacula working directory"
46 --with-scriptdir=PATH specify path of Bacula scripts directory"
48 --with-dump-email=EMAIL dump email address"
50 --with-job-email=EMAIL job output email address"
52 --with-smtp-host=HOST SMTP mail host address"
54 --with-pid-dir=PATH specify location of Bacula pid files"
56 --with-subsys-dir=PATH specify location of Bacula subsys file"
58 --with-baseport=PORT specify base port address for daemons"
60 --with-dir-password=PASSWORD specify Director's password"
62 --with-fd-password=PASSWORD specify Client's password"
64 --with-sd-password=PASSWORD specify Storage daemon's password"
67 Which DBMS do you want to use (please select only one):
68 --with-mysql[=DIR] Include MySQL support. DIR is the MySQL base
69 install directory, default is to search through
70 a number of common places for the MySQL files."
73 Which DBMS do you want to use (please select only one):
74 --with-embedded-mysql[=DIR] Include MySQL support. DIR is the MySQL base
75 install directory, default is to search through
76 a number of common places for the MySQL files."
79 Which DBMS do you want to use (please select only one):
80 --with-sqlite[=DIR] Include SQLite support. DIR is the SQLite base
81 install directory, default is to search through
82 a number of common places for the SQLite files."
84 --disable-largefile omit support for large files"
86 --with-x use the X Window System"
88 # Initialize some variables set by options.
89 # The variables have the same names as the options, with
90 # dashes changed to underlines.
92 cache_file=./config.cache
101 program_transform_name=s,x,x,
109 bindir='${exec_prefix}/bin'
110 sbindir='${exec_prefix}/sbin'
111 libexecdir='${exec_prefix}/libexec'
112 datadir='${prefix}/share'
113 sysconfdir='${prefix}/etc'
114 sharedstatedir='${prefix}/com'
115 localstatedir='${prefix}/var'
116 libdir='${exec_prefix}/lib'
117 includedir='${prefix}/include'
118 oldincludedir='/usr/include'
119 infodir='${prefix}/info'
120 mandir='${prefix}/man'
122 # Initialize some other variables.
125 SHELL=${CONFIG_SHELL-/bin/sh}
126 # Maximum number of lines to put in a shell here document.
133 # If the previous option needs an argument, assign it.
134 if test -n "$ac_prev"; then
135 eval "$ac_prev=\$ac_option"
141 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
145 # Accept the important Cygnus configure options, so we can diagnose typos.
149 -bindir | --bindir | --bindi | --bind | --bin | --bi)
151 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
152 bindir="$ac_optarg" ;;
154 -build | --build | --buil | --bui | --bu)
156 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
157 build="$ac_optarg" ;;
159 -cache-file | --cache-file | --cache-fil | --cache-fi \
160 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
161 ac_prev=cache_file ;;
162 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
163 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
164 cache_file="$ac_optarg" ;;
166 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
168 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
170 datadir="$ac_optarg" ;;
172 -disable-* | --disable-*)
173 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
174 # Reject names that are not valid shell variable names.
175 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
176 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
178 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
179 eval "enable_${ac_feature}=no" ;;
181 -enable-* | --enable-*)
182 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
183 # Reject names that are not valid shell variable names.
184 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
185 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
187 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
192 eval "enable_${ac_feature}='$ac_optarg'" ;;
194 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
195 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
196 | --exec | --exe | --ex)
197 ac_prev=exec_prefix ;;
198 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
199 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
200 | --exec=* | --exe=* | --ex=*)
201 exec_prefix="$ac_optarg" ;;
203 -gas | --gas | --ga | --g)
204 # Obsolete; use --with-gas.
207 -help | --help | --hel | --he)
208 # Omit some internal or obsolete options to make the list less imposing.
209 # This message is too long to be a string in the A/UX 3.1 sh.
211 Usage: configure [options] [host]
212 Options: [defaults in brackets after descriptions]
214 --cache-file=FILE cache test results in FILE
215 --help print this message
216 --no-create do not create output files
217 --quiet, --silent do not print \`checking...' messages
218 --version print the version of autoconf that created configure
219 Directory and file names:
220 --prefix=PREFIX install architecture-independent files in PREFIX
222 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
224 --bindir=DIR user executables in DIR [EPREFIX/bin]
225 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
226 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
227 --datadir=DIR read-only architecture-independent data in DIR
229 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
230 --sharedstatedir=DIR modifiable architecture-independent data in DIR
232 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
233 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
234 --includedir=DIR C header files in DIR [PREFIX/include]
235 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
236 --infodir=DIR info documentation in DIR [PREFIX/info]
237 --mandir=DIR man documentation in DIR [PREFIX/man]
238 --srcdir=DIR find the sources in DIR [configure dir or ..]
239 --program-prefix=PREFIX prepend PREFIX to installed program names
240 --program-suffix=SUFFIX append SUFFIX to installed program names
241 --program-transform-name=PROGRAM
242 run sed PROGRAM on installed program names
246 --build=BUILD configure for building on BUILD [BUILD=HOST]
247 --host=HOST configure for HOST [guessed]
248 --target=TARGET configure for TARGET [TARGET=HOST]
249 Features and packages:
250 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
251 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
252 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
253 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
254 --x-includes=DIR X include files are in DIR
255 --x-libraries=DIR X library files are in DIR
257 if test -n "$ac_help"; then
258 echo "--enable and --with options recognized:$ac_help"
262 -host | --host | --hos | --ho)
264 -host=* | --host=* | --hos=* | --ho=*)
267 -includedir | --includedir | --includedi | --included | --include \
268 | --includ | --inclu | --incl | --inc)
269 ac_prev=includedir ;;
270 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
271 | --includ=* | --inclu=* | --incl=* | --inc=*)
272 includedir="$ac_optarg" ;;
274 -infodir | --infodir | --infodi | --infod | --info | --inf)
276 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
277 infodir="$ac_optarg" ;;
279 -libdir | --libdir | --libdi | --libd)
281 -libdir=* | --libdir=* | --libdi=* | --libd=*)
282 libdir="$ac_optarg" ;;
284 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
285 | --libexe | --libex | --libe)
286 ac_prev=libexecdir ;;
287 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
288 | --libexe=* | --libex=* | --libe=*)
289 libexecdir="$ac_optarg" ;;
291 -localstatedir | --localstatedir | --localstatedi | --localstated \
292 | --localstate | --localstat | --localsta | --localst \
293 | --locals | --local | --loca | --loc | --lo)
294 ac_prev=localstatedir ;;
295 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
296 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
297 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
298 localstatedir="$ac_optarg" ;;
300 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
302 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
303 mandir="$ac_optarg" ;;
306 # Obsolete; use --without-fp.
309 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
313 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
314 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
317 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
318 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
319 | --oldin | --oldi | --old | --ol | --o)
320 ac_prev=oldincludedir ;;
321 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
322 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
323 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
324 oldincludedir="$ac_optarg" ;;
326 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
328 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
329 prefix="$ac_optarg" ;;
331 -program-prefix | --program-prefix | --program-prefi | --program-pref \
332 | --program-pre | --program-pr | --program-p)
333 ac_prev=program_prefix ;;
334 -program-prefix=* | --program-prefix=* | --program-prefi=* \
335 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
336 program_prefix="$ac_optarg" ;;
338 -program-suffix | --program-suffix | --program-suffi | --program-suff \
339 | --program-suf | --program-su | --program-s)
340 ac_prev=program_suffix ;;
341 -program-suffix=* | --program-suffix=* | --program-suffi=* \
342 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
343 program_suffix="$ac_optarg" ;;
345 -program-transform-name | --program-transform-name \
346 | --program-transform-nam | --program-transform-na \
347 | --program-transform-n | --program-transform- \
348 | --program-transform | --program-transfor \
349 | --program-transfo | --program-transf \
350 | --program-trans | --program-tran \
351 | --progr-tra | --program-tr | --program-t)
352 ac_prev=program_transform_name ;;
353 -program-transform-name=* | --program-transform-name=* \
354 | --program-transform-nam=* | --program-transform-na=* \
355 | --program-transform-n=* | --program-transform-=* \
356 | --program-transform=* | --program-transfor=* \
357 | --program-transfo=* | --program-transf=* \
358 | --program-trans=* | --program-tran=* \
359 | --progr-tra=* | --program-tr=* | --program-t=*)
360 program_transform_name="$ac_optarg" ;;
362 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
363 | -silent | --silent | --silen | --sile | --sil)
366 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
368 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
370 sbindir="$ac_optarg" ;;
372 -sharedstatedir | --sharedstatedir | --sharedstatedi \
373 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
374 | --sharedst | --shareds | --shared | --share | --shar \
376 ac_prev=sharedstatedir ;;
377 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
378 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
379 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
381 sharedstatedir="$ac_optarg" ;;
383 -site | --site | --sit)
385 -site=* | --site=* | --sit=*)
388 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
390 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
391 srcdir="$ac_optarg" ;;
393 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
394 | --syscon | --sysco | --sysc | --sys | --sy)
395 ac_prev=sysconfdir ;;
396 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
397 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
398 sysconfdir="$ac_optarg" ;;
400 -target | --target | --targe | --targ | --tar | --ta | --t)
402 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
403 target="$ac_optarg" ;;
405 -v | -verbose | --verbose | --verbos | --verbo | --verb)
408 -version | --version | --versio | --versi | --vers)
409 echo "configure generated by autoconf version 2.13"
413 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
414 # Reject names that are not valid shell variable names.
415 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
416 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
418 ac_package=`echo $ac_package| sed 's/-/_/g'`
423 eval "with_${ac_package}='$ac_optarg'" ;;
425 -without-* | --without-*)
426 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
427 # Reject names that are not valid shell variable names.
428 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
429 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
431 ac_package=`echo $ac_package| sed 's/-/_/g'`
432 eval "with_${ac_package}=no" ;;
435 # Obsolete; use --with-x.
438 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
439 | --x-incl | --x-inc | --x-in | --x-i)
440 ac_prev=x_includes ;;
441 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
442 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
443 x_includes="$ac_optarg" ;;
445 -x-libraries | --x-libraries | --x-librarie | --x-librari \
446 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
447 ac_prev=x_libraries ;;
448 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
449 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
450 x_libraries="$ac_optarg" ;;
452 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
456 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
457 echo "configure: warning: $ac_option: invalid host type" 1>&2
459 if test "x$nonopt" != xNONE; then
460 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
468 if test -n "$ac_prev"; then
469 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
472 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
474 # File descriptor usage:
477 # 2 errors and warnings
478 # 3 some systems may open it to /dev/tty
479 # 4 used on the Kubota Titan
480 # 6 checking for... messages and results
481 # 5 compiler messages saved in config.log
482 if test "$silent" = yes; then
490 This file contains any messages produced by compilers while
491 running configure, to aid debugging if configure makes a mistake.
494 # Strip out --no-create and --no-recursion so they do not pile up.
495 # Also quote any args containing shell metacharacters.
500 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
501 | --no-cr | --no-c) ;;
502 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
503 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
504 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
505 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
506 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
511 # Only set these to C if already set. These must not be set unconditionally
512 # because not all systems understand e.g. LANG=C (notably SCO).
513 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
514 # Non-C LC_CTYPE values break the ctype check.
515 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
516 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
517 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
518 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
520 # confdefs.h avoids OS command line length limits that DEFS can exceed.
521 rm -rf conftest* confdefs.h
522 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
525 # A filename unique to this package, relative to the directory that
526 # configure is in, which we can look for to find out if srcdir is correct.
527 ac_unique_file=src/version.h
529 # Find the source files, if location was not specified.
530 if test -z "$srcdir"; then
531 ac_srcdir_defaulted=yes
532 # Try the directory containing this script, then its parent.
534 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
535 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
537 if test ! -r $srcdir/$ac_unique_file; then
541 ac_srcdir_defaulted=no
543 if test ! -r $srcdir/$ac_unique_file; then
544 if test "$ac_srcdir_defaulted" = yes; then
545 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
547 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
550 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
552 # Prefer explicitly selected file to automatically selected ones.
553 if test -z "$CONFIG_SITE"; then
554 if test "x$prefix" != xNONE; then
555 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
557 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
560 for ac_site_file in $CONFIG_SITE; do
561 if test -r "$ac_site_file"; then
562 echo "loading site script $ac_site_file"
567 if test -r "$cache_file"; then
568 echo "loading cache $cache_file"
571 echo "creating cache $cache_file"
576 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
577 ac_cpp='$CPP $CPPFLAGS'
578 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
579 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
580 cross_compiling=$ac_cv_prog_cc_cross
584 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
585 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
586 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
593 ac_n= ac_c='\c' ac_t=
603 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
604 if test -f $ac_dir/install-sh; then
606 ac_install_sh="$ac_aux_dir/install-sh -c"
608 elif test -f $ac_dir/install.sh; then
610 ac_install_sh="$ac_aux_dir/install.sh -c"
614 if test -z "$ac_aux_dir"; then
615 { echo "configure: error: can not find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" 1>&2; exit 1; }
617 ac_config_guess=$ac_aux_dir/config.guess
618 ac_config_sub=$ac_aux_dir/config.sub
619 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
628 # Extract the first word of "$ac_prog", so it can be a program name with args.
629 set dummy $ac_prog; ac_word=$2
630 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
631 echo "configure:632: checking for $ac_word" >&5
632 if eval "test \"`echo '$''{'ac_cv_path_TRUEPRG'+set}'`\" = set"; then
633 echo $ac_n "(cached) $ac_c" 1>&6
637 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
640 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a dos path.
643 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
645 for ac_dir in $ac_dummy; do
646 test -z "$ac_dir" && ac_dir=.
647 if test -f $ac_dir/$ac_word; then
648 ac_cv_path_TRUEPRG="$ac_dir/$ac_word"
656 TRUEPRG="$ac_cv_path_TRUEPRG"
657 if test -n "$TRUEPRG"; then
658 echo "$ac_t""$TRUEPRG" 1>&6
660 echo "$ac_t""no" 1>&6
663 test -n "$TRUEPRG" && break
665 test -n "$TRUEPRG" || TRUEPRG=":"
669 # Extract the first word of "$ac_prog", so it can be a program name with args.
670 set dummy $ac_prog; ac_word=$2
671 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
672 echo "configure:673: checking for $ac_word" >&5
673 if eval "test \"`echo '$''{'ac_cv_path_FALSEPRG'+set}'`\" = set"; then
674 echo $ac_n "(cached) $ac_c" 1>&6
678 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
681 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a dos path.
684 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
686 for ac_dir in $ac_dummy; do
687 test -z "$ac_dir" && ac_dir=.
688 if test -f $ac_dir/$ac_word; then
689 ac_cv_path_FALSEPRG="$ac_dir/$ac_word"
697 FALSEPRG="$ac_cv_path_FALSEPRG"
698 if test -n "$FALSEPRG"; then
699 echo "$ac_t""$FALSEPRG" 1>&6
701 echo "$ac_t""no" 1>&6
704 test -n "$FALSEPRG" && break
706 test -n "$FALSEPRG" || FALSEPRG=":"
710 # Make sure we can run config.sub.
711 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
712 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
715 echo $ac_n "checking host system type""... $ac_c" 1>&6
716 echo "configure:717: checking host system type" >&5
719 case "$host_alias" in
723 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
724 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
726 *) host_alias=$nonopt ;;
730 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
731 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
732 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
733 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
734 echo "$ac_t""$host" 1>&6
737 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
738 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
739 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
740 echo "configuring for bacula $VERSION ($DATE)"
744 # Extract the first word of "gcc", so it can be a program name with args.
745 set dummy gcc; ac_word=$2
746 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
747 echo "configure:748: checking for $ac_word" >&5
748 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
749 echo $ac_n "(cached) $ac_c" 1>&6
751 if test -n "$CC"; then
752 ac_cv_prog_CC="$CC" # Let the user override the test.
754 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
756 for ac_dir in $ac_dummy; do
757 test -z "$ac_dir" && ac_dir=.
758 if test -f $ac_dir/$ac_word; then
767 if test -n "$CC"; then
768 echo "$ac_t""$CC" 1>&6
770 echo "$ac_t""no" 1>&6
773 if test -z "$CC"; then
774 # Extract the first word of "cc", so it can be a program name with args.
775 set dummy cc; ac_word=$2
776 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
777 echo "configure:778: checking for $ac_word" >&5
778 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
779 echo $ac_n "(cached) $ac_c" 1>&6
781 if test -n "$CC"; then
782 ac_cv_prog_CC="$CC" # Let the user override the test.
784 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
787 for ac_dir in $ac_dummy; do
788 test -z "$ac_dir" && ac_dir=.
789 if test -f $ac_dir/$ac_word; then
790 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
799 if test $ac_prog_rejected = yes; then
800 # We found a bogon in the path, so make sure we never use it.
801 set dummy $ac_cv_prog_CC
803 if test $# -gt 0; then
804 # We chose a different compiler from the bogus one.
805 # However, it has the same basename, so the bogon will be chosen
806 # first if we set CC to just the basename; use the full file name.
808 set dummy "$ac_dir/$ac_word" "$@"
816 if test -n "$CC"; then
817 echo "$ac_t""$CC" 1>&6
819 echo "$ac_t""no" 1>&6
822 if test -z "$CC"; then
825 # Extract the first word of "cl", so it can be a program name with args.
826 set dummy cl; ac_word=$2
827 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
828 echo "configure:829: checking for $ac_word" >&5
829 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
830 echo $ac_n "(cached) $ac_c" 1>&6
832 if test -n "$CC"; then
833 ac_cv_prog_CC="$CC" # Let the user override the test.
835 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
837 for ac_dir in $ac_dummy; do
838 test -z "$ac_dir" && ac_dir=.
839 if test -f $ac_dir/$ac_word; then
848 if test -n "$CC"; then
849 echo "$ac_t""$CC" 1>&6
851 echo "$ac_t""no" 1>&6
856 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
859 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
860 echo "configure:861: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
863 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
864 ac_cpp='$CPP $CPPFLAGS'
865 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
866 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
867 cross_compiling=$ac_cv_prog_cc_cross
869 cat > conftest.$ac_ext << EOF
871 #line 872 "configure"
872 #include "confdefs.h"
876 if { (eval echo configure:877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
877 ac_cv_prog_cc_works=yes
878 # If we can't run a trivial program, we are probably using a cross compiler.
879 if (./conftest; exit) 2>/dev/null; then
880 ac_cv_prog_cc_cross=no
882 ac_cv_prog_cc_cross=yes
885 echo "configure: failed program was:" >&5
886 cat conftest.$ac_ext >&5
887 ac_cv_prog_cc_works=no
891 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
892 ac_cpp='$CPP $CPPFLAGS'
893 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
894 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
895 cross_compiling=$ac_cv_prog_cc_cross
897 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
898 if test $ac_cv_prog_cc_works = no; then
899 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
901 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
902 echo "configure:903: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
903 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
904 cross_compiling=$ac_cv_prog_cc_cross
906 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
907 echo "configure:908: checking whether we are using GNU C" >&5
908 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
909 echo $ac_n "(cached) $ac_c" 1>&6
911 cat > conftest.c <<EOF
916 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:917: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
923 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
925 if test $ac_cv_prog_gcc = yes; then
931 ac_test_CFLAGS="${CFLAGS+set}"
932 ac_save_CFLAGS="$CFLAGS"
934 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
935 echo "configure:936: checking whether ${CC-cc} accepts -g" >&5
936 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
937 echo $ac_n "(cached) $ac_c" 1>&6
939 echo 'void f(){}' > conftest.c
940 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
949 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
950 if test "$ac_test_CFLAGS" = set; then
951 CFLAGS="$ac_save_CFLAGS"
952 elif test $ac_cv_prog_cc_g = yes; then
953 if test "$GCC" = yes; then
959 if test "$GCC" = yes; then
966 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
968 # Extract the first word of "$ac_prog", so it can be a program name with args.
969 set dummy $ac_prog; ac_word=$2
970 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
971 echo "configure:972: checking for $ac_word" >&5
972 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
973 echo $ac_n "(cached) $ac_c" 1>&6
975 if test -n "$CXX"; then
976 ac_cv_prog_CXX="$CXX" # Let the user override the test.
978 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
980 for ac_dir in $ac_dummy; do
981 test -z "$ac_dir" && ac_dir=.
982 if test -f $ac_dir/$ac_word; then
983 ac_cv_prog_CXX="$ac_prog"
990 CXX="$ac_cv_prog_CXX"
991 if test -n "$CXX"; then
992 echo "$ac_t""$CXX" 1>&6
994 echo "$ac_t""no" 1>&6
997 test -n "$CXX" && break
999 test -n "$CXX" || CXX="gcc"
1002 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1003 echo "configure:1004: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1006 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1007 ac_cpp='$CXXCPP $CPPFLAGS'
1008 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1009 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1010 cross_compiling=$ac_cv_prog_cxx_cross
1012 cat > conftest.$ac_ext << EOF
1014 #line 1015 "configure"
1015 #include "confdefs.h"
1017 int main(){return(0);}
1019 if { (eval echo configure:1020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1020 ac_cv_prog_cxx_works=yes
1021 # If we can't run a trivial program, we are probably using a cross compiler.
1022 if (./conftest; exit) 2>/dev/null; then
1023 ac_cv_prog_cxx_cross=no
1025 ac_cv_prog_cxx_cross=yes
1028 echo "configure: failed program was:" >&5
1029 cat conftest.$ac_ext >&5
1030 ac_cv_prog_cxx_works=no
1034 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1035 ac_cpp='$CPP $CPPFLAGS'
1036 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1037 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1038 cross_compiling=$ac_cv_prog_cc_cross
1040 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1041 if test $ac_cv_prog_cxx_works = no; then
1042 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1044 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1045 echo "configure:1046: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1046 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1047 cross_compiling=$ac_cv_prog_cxx_cross
1049 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1050 echo "configure:1051: checking whether we are using GNU C++" >&5
1051 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1052 echo $ac_n "(cached) $ac_c" 1>&6
1054 cat > conftest.C <<EOF
1059 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1060: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1066 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1068 if test $ac_cv_prog_gxx = yes; then
1074 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1075 ac_save_CXXFLAGS="$CXXFLAGS"
1077 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1078 echo "configure:1079: checking whether ${CXX-g++} accepts -g" >&5
1079 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1080 echo $ac_n "(cached) $ac_c" 1>&6
1082 echo 'void f(){}' > conftest.cc
1083 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1084 ac_cv_prog_cxx_g=yes
1092 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1093 if test "$ac_test_CXXFLAGS" = set; then
1094 CXXFLAGS="$ac_save_CXXFLAGS"
1095 elif test $ac_cv_prog_cxx_g = yes; then
1096 if test "$GXX" = yes; then
1102 if test "$GXX" = yes; then
1109 for ac_declaration in \
1111 '#include <stdlib.h>' \
1112 'extern "C" void std::exit (int) throw (); using std::exit;' \
1113 'extern "C" void std::exit (int); using std::exit;' \
1114 'extern "C" void exit (int) throw ();' \
1115 'extern "C" void exit (int);' \
1118 cat > conftest.$ac_ext <<EOF
1119 #line 1120 "configure"
1120 #include "confdefs.h"
1127 if { (eval echo configure:1128: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1130 echo "configure: failed program was:" >&5
1131 cat conftest.$ac_ext >&5
1136 cat > conftest.$ac_ext <<EOF
1137 #line 1138 "configure"
1138 #include "confdefs.h"
1144 if { (eval echo configure:1145: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1148 echo "configure: failed program was:" >&5
1149 cat conftest.$ac_ext >&5
1153 if test -n "$ac_declaration"; then
1154 echo '#ifdef __cplusplus' >>confdefs.h
1155 echo $ac_declaration >>confdefs.h
1156 echo '#endif' >>confdefs.h
1160 if test "x$CC" != xcc; then
1161 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1162 echo "configure:1163: checking whether $CC and cc understand -c and -o together" >&5
1164 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1165 echo "configure:1166: checking whether cc understands -c and -o together" >&5
1167 set dummy $CC; ac_cc="`echo $2 |
1168 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1169 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1170 echo $ac_n "(cached) $ac_c" 1>&6
1172 echo 'foo(){}' > conftest.c
1173 # Make sure it works both with $CC and with simple cc.
1174 # We do the test twice because some compilers refuse to overwrite an
1175 # existing .o file with -o, though they will create one.
1176 ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1177 if { (eval echo configure:1178: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1178 test -f conftest.o && { (eval echo configure:1179: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1180 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
1181 if test "x$CC" != xcc; then
1182 # Test first that cc exists at all.
1183 if { ac_try='cc -c conftest.c 1>&5'; { (eval echo configure:1184: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1184 ac_try='cc -c conftest.c -o conftest.o 1>&5'
1185 if { (eval echo configure:1186: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1186 test -f conftest.o && { (eval echo configure:1187: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1191 # cc exists but doesn't like -o.
1192 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1197 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1202 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1203 echo "$ac_t""yes" 1>&6
1205 echo "$ac_t""no" 1>&6
1206 cat >> confdefs.h <<\EOF
1207 #define NO_MINUS_C_MINUS_O 1
1211 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1212 echo "configure:1213: checking how to run the C preprocessor" >&5
1213 # On Suns, sometimes $CPP names a directory.
1214 if test -n "$CPP" && test -d "$CPP"; then
1217 if test -z "$CPP"; then
1218 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1219 echo $ac_n "(cached) $ac_c" 1>&6
1221 # This must be in double quotes, not single quotes, because CPP may get
1222 # substituted into the Makefile and "${CC-cc}" will confuse make.
1224 # On the NeXT, cc -E runs the code through the compiler's parser,
1225 # not just through cpp.
1226 cat > conftest.$ac_ext <<EOF
1227 #line 1228 "configure"
1228 #include "confdefs.h"
1232 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1233 { (eval echo configure:1234: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1234 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1235 if test -z "$ac_err"; then
1239 echo "configure: failed program was:" >&5
1240 cat conftest.$ac_ext >&5
1242 CPP="${CC-cc} -E -traditional-cpp"
1243 cat > conftest.$ac_ext <<EOF
1244 #line 1245 "configure"
1245 #include "confdefs.h"
1249 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1250 { (eval echo configure:1251: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1251 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1252 if test -z "$ac_err"; then
1256 echo "configure: failed program was:" >&5
1257 cat conftest.$ac_ext >&5
1259 CPP="${CC-cc} -nologo -E"
1260 cat > conftest.$ac_ext <<EOF
1261 #line 1262 "configure"
1262 #include "confdefs.h"
1266 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1267 { (eval echo configure:1268: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1268 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1269 if test -z "$ac_err"; then
1273 echo "configure: failed program was:" >&5
1274 cat conftest.$ac_ext >&5
1283 ac_cv_prog_CPP="$CPP"
1285 CPP="$ac_cv_prog_CPP"
1287 ac_cv_prog_CPP="$CPP"
1289 echo "$ac_t""$CPP" 1>&6
1291 if test $ac_cv_prog_gcc = yes; then
1292 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1293 echo "configure:1294: checking whether ${CC-cc} needs -traditional" >&5
1294 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
1295 echo $ac_n "(cached) $ac_c" 1>&6
1297 ac_pattern="Autoconf.*'x'"
1298 cat > conftest.$ac_ext <<EOF
1299 #line 1300 "configure"
1300 #include "confdefs.h"
1304 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1305 egrep "$ac_pattern" >/dev/null 2>&1; then
1307 ac_cv_prog_gcc_traditional=yes
1310 ac_cv_prog_gcc_traditional=no
1315 if test $ac_cv_prog_gcc_traditional = no; then
1316 cat > conftest.$ac_ext <<EOF
1317 #line 1318 "configure"
1318 #include "confdefs.h"
1322 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1323 egrep "$ac_pattern" >/dev/null 2>&1; then
1325 ac_cv_prog_gcc_traditional=yes
1332 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
1333 if test $ac_cv_prog_gcc_traditional = yes; then
1334 CC="$CC -traditional"
1340 cat >> confdefs.h <<\EOF
1346 # Find a good install program. We prefer a C program (faster),
1347 # so one script is as good as another. But avoid the broken or
1348 # incompatible versions:
1349 # SysV /etc/install, /usr/sbin/install
1350 # SunOS /usr/etc/install
1351 # IRIX /sbin/install
1353 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1354 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1355 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1356 # ./install, which can be erroneously created by make from ./install.sh.
1357 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1358 echo "configure:1359: checking for a BSD compatible install" >&5
1359 if test -z "$INSTALL"; then
1360 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1361 echo $ac_n "(cached) $ac_c" 1>&6
1363 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1364 for ac_dir in $PATH; do
1365 # Account for people who put trailing slashes in PATH elements.
1367 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1369 # OSF1 and SCO ODT 3.0 have their own names for install.
1370 # Don't use installbsd from OSF since it installs stuff as root
1372 for ac_prog in ginstall scoinst install; do
1373 if test -f $ac_dir/$ac_prog; then
1374 if test $ac_prog = install &&
1375 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1376 # AIX install. It has an incompatible calling convention.
1379 ac_cv_path_install="$ac_dir/$ac_prog -c"
1390 if test "${ac_cv_path_install+set}" = set; then
1391 INSTALL="$ac_cv_path_install"
1393 # As a last resort, use the slow shell script. We don't cache a
1394 # path for INSTALL within a source directory, because that will
1395 # break other packages using the cache if that directory is
1396 # removed, or if the path is relative.
1397 INSTALL="$ac_install_sh"
1400 echo "$ac_t""$INSTALL" 1>&6
1402 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1403 # It thinks the first close brace ends the variable substitution.
1404 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1406 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1408 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1410 # Extract the first word of "ranlib", so it can be a program name with args.
1411 set dummy ranlib; ac_word=$2
1412 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1413 echo "configure:1414: checking for $ac_word" >&5
1414 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1415 echo $ac_n "(cached) $ac_c" 1>&6
1417 if test -n "$RANLIB"; then
1418 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1420 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1422 for ac_dir in $ac_dummy; do
1423 test -z "$ac_dir" && ac_dir=.
1424 if test -f $ac_dir/$ac_word; then
1425 ac_cv_prog_RANLIB="ranlib"
1430 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1433 RANLIB="$ac_cv_prog_RANLIB"
1434 if test -n "$RANLIB"; then
1435 echo "$ac_t""$RANLIB" 1>&6
1437 echo "$ac_t""no" 1>&6
1440 # Extract the first word of "mv", so it can be a program name with args.
1441 set dummy mv; ac_word=$2
1442 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1443 echo "configure:1444: checking for $ac_word" >&5
1444 if eval "test \"`echo '$''{'ac_cv_path_MV'+set}'`\" = set"; then
1445 echo $ac_n "(cached) $ac_c" 1>&6
1449 ac_cv_path_MV="$MV" # Let the user override the test with a path.
1452 ac_cv_path_MV="$MV" # Let the user override the test with a dos path.
1455 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1457 for ac_dir in $ac_dummy; do
1458 test -z "$ac_dir" && ac_dir=.
1459 if test -f $ac_dir/$ac_word; then
1460 ac_cv_path_MV="$ac_dir/$ac_word"
1465 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
1470 if test -n "$MV"; then
1471 echo "$ac_t""$MV" 1>&6
1473 echo "$ac_t""no" 1>&6
1476 # Extract the first word of "rm", so it can be a program name with args.
1477 set dummy rm; ac_word=$2
1478 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1479 echo "configure:1480: checking for $ac_word" >&5
1480 if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then
1481 echo $ac_n "(cached) $ac_c" 1>&6
1485 ac_cv_path_RM="$RM" # Let the user override the test with a path.
1488 ac_cv_path_RM="$RM" # Let the user override the test with a dos path.
1491 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1493 for ac_dir in $ac_dummy; do
1494 test -z "$ac_dir" && ac_dir=.
1495 if test -f $ac_dir/$ac_word; then
1496 ac_cv_path_RM="$ac_dir/$ac_word"
1501 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
1506 if test -n "$RM"; then
1507 echo "$ac_t""$RM" 1>&6
1509 echo "$ac_t""no" 1>&6
1512 # Extract the first word of "cp", so it can be a program name with args.
1513 set dummy cp; ac_word=$2
1514 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1515 echo "configure:1516: checking for $ac_word" >&5
1516 if eval "test \"`echo '$''{'ac_cv_path_CP'+set}'`\" = set"; then
1517 echo $ac_n "(cached) $ac_c" 1>&6
1521 ac_cv_path_CP="$CP" # Let the user override the test with a path.
1524 ac_cv_path_CP="$CP" # Let the user override the test with a dos path.
1527 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1529 for ac_dir in $ac_dummy; do
1530 test -z "$ac_dir" && ac_dir=.
1531 if test -f $ac_dir/$ac_word; then
1532 ac_cv_path_CP="$ac_dir/$ac_word"
1537 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
1542 if test -n "$CP"; then
1543 echo "$ac_t""$CP" 1>&6
1545 echo "$ac_t""no" 1>&6
1548 # Extract the first word of "sed", so it can be a program name with args.
1549 set dummy sed; ac_word=$2
1550 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1551 echo "configure:1552: checking for $ac_word" >&5
1552 if eval "test \"`echo '$''{'ac_cv_path_SED'+set}'`\" = set"; then
1553 echo $ac_n "(cached) $ac_c" 1>&6
1557 ac_cv_path_SED="$SED" # Let the user override the test with a path.
1560 ac_cv_path_SED="$SED" # Let the user override the test with a dos path.
1563 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1565 for ac_dir in $ac_dummy; do
1566 test -z "$ac_dir" && ac_dir=.
1567 if test -f $ac_dir/$ac_word; then
1568 ac_cv_path_SED="$ac_dir/$ac_word"
1573 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
1577 SED="$ac_cv_path_SED"
1578 if test -n "$SED"; then
1579 echo "$ac_t""$SED" 1>&6
1581 echo "$ac_t""no" 1>&6
1584 # Extract the first word of "awk", so it can be a program name with args.
1585 set dummy awk; ac_word=$2
1586 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1587 echo "configure:1588: checking for $ac_word" >&5
1588 if eval "test \"`echo '$''{'ac_cv_path_AWK'+set}'`\" = set"; then
1589 echo $ac_n "(cached) $ac_c" 1>&6
1593 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
1596 ac_cv_path_AWK="$AWK" # Let the user override the test with a dos path.
1599 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1601 for ac_dir in $ac_dummy; do
1602 test -z "$ac_dir" && ac_dir=.
1603 if test -f $ac_dir/$ac_word; then
1604 ac_cv_path_AWK="$ac_dir/$ac_word"
1609 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
1613 AWK="$ac_cv_path_AWK"
1614 if test -n "$AWK"; then
1615 echo "$ac_t""$AWK" 1>&6
1617 echo "$ac_t""no" 1>&6
1620 # Extract the first word of "echo", so it can be a program name with args.
1621 set dummy echo; ac_word=$2
1622 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1623 echo "configure:1624: checking for $ac_word" >&5
1624 if eval "test \"`echo '$''{'ac_cv_path_ECHO'+set}'`\" = set"; then
1625 echo $ac_n "(cached) $ac_c" 1>&6
1629 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
1632 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a dos path.
1635 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1637 for ac_dir in $ac_dummy; do
1638 test -z "$ac_dir" && ac_dir=.
1639 if test -f $ac_dir/$ac_word; then
1640 ac_cv_path_ECHO="$ac_dir/$ac_word"
1645 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
1649 ECHO="$ac_cv_path_ECHO"
1650 if test -n "$ECHO"; then
1651 echo "$ac_t""$ECHO" 1>&6
1653 echo "$ac_t""no" 1>&6
1656 # Extract the first word of "cmp", so it can be a program name with args.
1657 set dummy cmp; ac_word=$2
1658 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1659 echo "configure:1660: checking for $ac_word" >&5
1660 if eval "test \"`echo '$''{'ac_cv_path_CMP'+set}'`\" = set"; then
1661 echo $ac_n "(cached) $ac_c" 1>&6
1665 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
1668 ac_cv_path_CMP="$CMP" # Let the user override the test with a dos path.
1671 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1673 for ac_dir in $ac_dummy; do
1674 test -z "$ac_dir" && ac_dir=.
1675 if test -f $ac_dir/$ac_word; then
1676 ac_cv_path_CMP="$ac_dir/$ac_word"
1681 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
1685 CMP="$ac_cv_path_CMP"
1686 if test -n "$CMP"; then
1687 echo "$ac_t""$CMP" 1>&6
1689 echo "$ac_t""no" 1>&6
1692 # Extract the first word of "tbl", so it can be a program name with args.
1693 set dummy tbl; ac_word=$2
1694 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1695 echo "configure:1696: checking for $ac_word" >&5
1696 if eval "test \"`echo '$''{'ac_cv_path_TBL'+set}'`\" = set"; then
1697 echo $ac_n "(cached) $ac_c" 1>&6
1701 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
1704 ac_cv_path_TBL="$TBL" # Let the user override the test with a dos path.
1707 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1709 for ac_dir in $ac_dummy; do
1710 test -z "$ac_dir" && ac_dir=.
1711 if test -f $ac_dir/$ac_word; then
1712 ac_cv_path_TBL="$ac_dir/$ac_word"
1717 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
1721 TBL="$ac_cv_path_TBL"
1722 if test -n "$TBL"; then
1723 echo "$ac_t""$TBL" 1>&6
1725 echo "$ac_t""no" 1>&6
1728 # Extract the first word of "ar", so it can be a program name with args.
1729 set dummy ar; ac_word=$2
1730 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1731 echo "configure:1732: checking for $ac_word" >&5
1732 if eval "test \"`echo '$''{'ac_cv_path_AR'+set}'`\" = set"; then
1733 echo $ac_n "(cached) $ac_c" 1>&6
1737 ac_cv_path_AR="$AR" # Let the user override the test with a path.
1740 ac_cv_path_AR="$AR" # Let the user override the test with a dos path.
1743 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1745 for ac_dir in $ac_dummy; do
1746 test -z "$ac_dir" && ac_dir=.
1747 if test -f $ac_dir/$ac_word; then
1748 ac_cv_path_AR="$ac_dir/$ac_word"
1753 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
1758 if test -n "$AR"; then
1759 echo "$ac_t""$AR" 1>&6
1761 echo "$ac_t""no" 1>&6
1764 # Extract the first word of "ranlib", so it can be a program name with args.
1765 set dummy ranlib; ac_word=$2
1766 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1767 echo "configure:1768: checking for $ac_word" >&5
1768 if eval "test \"`echo '$''{'ac_cv_path_RANLIB'+set}'`\" = set"; then
1769 echo $ac_n "(cached) $ac_c" 1>&6
1773 ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a path.
1776 ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a dos path.
1779 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1781 for ac_dir in $ac_dummy; do
1782 test -z "$ac_dir" && ac_dir=.
1783 if test -f $ac_dir/$ac_word; then
1784 ac_cv_path_RANLIB="$ac_dir/$ac_word"
1789 test -z "$ac_cv_path_RANLIB" && ac_cv_path_RANLIB="ranlib"
1793 RANLIB="$ac_cv_path_RANLIB"
1794 if test -n "$RANLIB"; then
1795 echo "$ac_t""$RANLIB" 1>&6
1797 echo "$ac_t""no" 1>&6
1800 # Extract the first word of "openssl", so it can be a program name with args.
1801 set dummy openssl; ac_word=$2
1802 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1803 echo "configure:1804: checking for $ac_word" >&5
1804 if eval "test \"`echo '$''{'ac_cv_path_OPENSSL'+set}'`\" = set"; then
1805 echo $ac_n "(cached) $ac_c" 1>&6
1809 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
1812 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a dos path.
1815 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1817 for ac_dir in $ac_dummy; do
1818 test -z "$ac_dir" && ac_dir=.
1819 if test -f $ac_dir/$ac_word; then
1820 ac_cv_path_OPENSSL="$ac_dir/$ac_word"
1825 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
1829 OPENSSL="$ac_cv_path_OPENSSL"
1830 if test -n "$OPENSSL"; then
1831 echo "$ac_t""$OPENSSL" 1>&6
1833 echo "$ac_t""no" 1>&6
1836 # Extract the first word of "mtx", so it can be a program name with args.
1837 set dummy mtx; ac_word=$2
1838 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1839 echo "configure:1840: checking for $ac_word" >&5
1840 if eval "test \"`echo '$''{'ac_cv_path_MTX'+set}'`\" = set"; then
1841 echo $ac_n "(cached) $ac_c" 1>&6
1845 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
1848 ac_cv_path_MTX="$MTX" # Let the user override the test with a dos path.
1851 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1853 for ac_dir in $ac_dummy; do
1854 test -z "$ac_dir" && ac_dir=.
1855 if test -f $ac_dir/$ac_word; then
1856 ac_cv_path_MTX="$ac_dir/$ac_word"
1861 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
1865 MTX="$ac_cv_path_MTX"
1866 if test -n "$MTX"; then
1867 echo "$ac_t""$MTX" 1>&6
1869 echo "$ac_t""no" 1>&6
1873 test -n "$ARFLAG" || ARFLAGS="cr"
1886 echo $ac_n "checking for Operating System""... $ac_c" 1>&6
1887 echo "configure:1888: checking for Operating System" >&5
1888 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1889 echo "configure:1890: checking for Cygwin environment" >&5
1890 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1891 echo $ac_n "(cached) $ac_c" 1>&6
1893 cat > conftest.$ac_ext <<EOF
1894 #line 1895 "configure"
1895 #include "confdefs.h"
1900 #define __CYGWIN__ __CYGWIN32__
1905 if { (eval echo configure:1906: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1909 echo "configure: failed program was:" >&5
1910 cat conftest.$ac_ext >&5
1918 echo "$ac_t""$ac_cv_cygwin" 1>&6
1920 test "$ac_cv_cygwin" = yes && CYGWIN=yes
1921 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
1927 HAVE_SUN_OS_FALSE='#'
1929 HAVE_SUN_OS_TRUE='#'
1932 cat >> confdefs.h <<\EOF
1933 #define HAVE_SUN_OS 1
1941 HAVE_SUN_OS_FALSE='#'
1943 HAVE_SUN_OS_TRUE='#'
1948 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
1954 HAVE_OSF1_OS_FALSE='#'
1956 HAVE_OSF1_OS_TRUE='#'
1959 cat >> confdefs.h <<\EOF
1960 #define HAVE_OSF1_OS 1
1968 HAVE_OSF1_OS_FALSE='#'
1970 HAVE_OSF1_OS_TRUE='#'
1975 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
1981 HAVE_AIX_OS_FALSE='#'
1983 HAVE_AIX_OS_TRUE='#'
1986 cat >> confdefs.h <<\EOF
1987 #define HAVE_AIX_OS 1
1995 HAVE_AIX_OS_FALSE='#'
1997 HAVE_AIX_OS_TRUE='#'
2002 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
2008 HAVE_HPUX_OS_FALSE='#'
2010 HAVE_HPUX_OS_TRUE='#'
2013 cat >> confdefs.h <<\EOF
2014 #define HAVE_HPUX_OS 1
2022 HAVE_HPUX_OS_FALSE='#'
2024 HAVE_HPUX_OS_TRUE='#'
2029 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
2035 HAVE_LINUX_OS_FALSE='#'
2037 HAVE_LINUX_OS_TRUE='#'
2038 HAVE_LINUX_OS_FALSE=
2040 cat >> confdefs.h <<\EOF
2041 #define HAVE_LINUX_OS 1
2049 HAVE_LINUX_OS_FALSE='#'
2051 HAVE_LINUX_OS_TRUE='#'
2052 HAVE_LINUX_OS_FALSE=
2056 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
2061 HAVE_FREEBSD_OS_TRUE=
2062 HAVE_FREEBSD_OS_FALSE='#'
2064 HAVE_FREEBSD_OS_TRUE='#'
2065 HAVE_FREEBSD_OS_FALSE=
2067 cat >> confdefs.h <<\EOF
2068 #define HAVE_FREEBSD_OS 1
2075 HAVE_FREEBSD_OS_TRUE=
2076 HAVE_FREEBSD_OS_FALSE='#'
2078 HAVE_FREEBSD_OS_TRUE='#'
2079 HAVE_FREEBSD_OS_FALSE=
2083 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
2088 HAVE_NETBSD_OS_TRUE=
2089 HAVE_NETBSD_OS_FALSE='#'
2091 HAVE_NETBSD_OS_TRUE='#'
2092 HAVE_NETBSD_OS_FALSE=
2094 cat >> confdefs.h <<\EOF
2095 #define HAVE_NETBSD_OS 1
2102 HAVE_NETBSD_OS_TRUE=
2103 HAVE_NETBSD_OS_FALSE='#'
2105 HAVE_NETBSD_OS_TRUE='#'
2106 HAVE_NETBSD_OS_FALSE=
2110 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
2115 HAVE_OPENBSD_OS_TRUE=
2116 HAVE_OPENBSD_OS_FALSE='#'
2118 HAVE_OPENBSD_OS_TRUE='#'
2119 HAVE_OPENBSD_OS_FALSE=
2121 cat >> confdefs.h <<\EOF
2122 #define HAVE_OPENBSD_OS 1
2129 HAVE_OPENBSD_OS_TRUE=
2130 HAVE_OPENBSD_OS_FALSE='#'
2132 HAVE_OPENBSD_OS_TRUE='#'
2133 HAVE_OPENBSD_OS_FALSE=
2137 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
2143 HAVE_BSDI_OS_FALSE='#'
2145 HAVE_BSDI_OS_TRUE='#'
2148 cat >> confdefs.h <<\EOF
2149 #define HAVE_BSDI_OS 1
2157 HAVE_BSDI_OS_FALSE='#'
2159 HAVE_BSDI_OS_TRUE='#'
2164 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
2170 HAVE_SGI_OS_FALSE='#'
2172 HAVE_SGI_OS_TRUE='#'
2175 cat >> confdefs.h <<\EOF
2176 #define HAVE_SGI_OS 1
2184 HAVE_SGI_OS_FALSE='#'
2186 HAVE_SGI_OS_TRUE='#'
2191 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
2197 HAVE_IRIX_OS_FALSE='#'
2199 HAVE_IRIX_OS_TRUE='#'
2202 cat >> confdefs.h <<\EOF
2203 #define HAVE_IRIX_OS 1
2211 HAVE_IRIX_OS_FALSE='#'
2213 HAVE_IRIX_OS_TRUE='#'
2218 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
2223 HAVE_DARWIN_OS_TRUE=
2224 HAVE_DARWIN_OS_FALSE='#'
2226 HAVE_DARWIN_OS_TRUE='#'
2227 HAVE_DARWIN_OS_FALSE=
2229 cat >> confdefs.h <<\EOF
2230 #define HAVE_DARWIN_OS 1
2237 HAVE_DARWIN_OS_TRUE=
2238 HAVE_DARWIN_OS_FALSE='#'
2240 HAVE_DARWIN_OS_TRUE='#'
2241 HAVE_DARWIN_OS_FALSE=
2245 echo "$ac_t""" "" 1>&6
2248 # -----------------------------------------------------------
2249 # ----------------------------------------------------------
2250 echo $ac_n "checking for Operating System Distribution""... $ac_c" 1>&6
2251 echo "configure:2252: checking for Operating System Distribution" >&5
2252 if test "x$DISTNAME" != "x"
2254 echo "distname set to $DISTNAME"
2255 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
2258 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
2261 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
2264 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
2267 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
2270 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
2273 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
2276 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
2279 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
2282 elif test -f /etc/SuSE-release
2285 elif test -d /etc/SuSEconfig
2288 elif test -f /etc/mandrake-release
2291 elif test -f /etc/redhat-release
2294 elif test -f /etc/gentoo-release
2297 elif test -f /etc/debian_version
2300 elif test -f /etc/slackware-version
2303 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
2306 elif test -f /etc/engarde-version
2309 elif test "$ac_cv_cygwin" = yes
2312 cat >> confdefs.h <<\EOF
2313 #define HAVE_CYGWIN 1
2319 echo "$ac_t""" "" 1>&6
2322 # -----------------------------------------------------------
2323 # ----------------------------------------------------------
2328 INSIDE_GNOME_COMMON_TRUE=
2329 INSIDE_GNOME_COMMON_FALSE='#'
2331 INSIDE_GNOME_COMMON_TRUE='#'
2332 INSIDE_GNOME_COMMON_FALSE=
2335 test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
2337 for k in gnome-macros ; do ACLOCAL="$ACLOCAL -I $k" ; done
2340 # ------------------------------------------------------------------
2341 # If the user has not set --prefix, we set our default to nothing.
2342 # In this case, if the user has not set --sysconfdir, we set it
2343 # to the package default of /etc/bacula. If either --prefix or
2344 # --sysconfdir is set, we leave sysconfdir alone except to eval it.
2345 # ------------------------------------------------------------------
2346 if test x${prefix} = xNONE ; then
2347 if test `eval echo ${sysconfdir}` = NONE/etc ; then
2348 sysconfdir=/etc/bacula
2352 sysconfdir=`eval echo ${sysconfdir}`
2354 # -------------------------------------------------------------------------
2355 # If the user has not set --exec-prefix, we default to ${prefix}
2356 # -------------------------------------------------------------------------
2357 if test x${exec_prefix} = xNONE ; then
2358 exec_prefix=${prefix}
2361 # ------------------------------------------------------------------
2362 # If the user has not set --sbindir, we set our default as /sbin
2363 # ------------------------------------------------------------------
2364 if test x$sbindir = x'${exec_prefix}/sbin' ; then
2365 sbindir=${exec_prefix}/sbin
2367 sbindir=`eval echo ${sbindir}`
2369 # ------------------------------------------------------------------
2370 # All list of languages for which a translation exist. Each
2371 # language is separated by a space.
2372 # ------------------------------------------------------------------
2375 for ac_prog in msgfmt
2377 # Extract the first word of "$ac_prog", so it can be a program name with args.
2378 set dummy $ac_prog; ac_word=$2
2379 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2380 echo "configure:2381: checking for $ac_word" >&5
2381 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2382 echo $ac_n "(cached) $ac_c" 1>&6
2386 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2389 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a dos path.
2392 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2394 for ac_dir in $ac_dummy; do
2395 test -z "$ac_dir" && ac_dir=.
2396 if test -f $ac_dir/$ac_word; then
2397 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2405 MSGFMT="$ac_cv_path_MSGFMT"
2406 if test -n "$MSGFMT"; then
2407 echo "$ac_t""$MSGFMT" 1>&6
2409 echo "$ac_t""no" 1>&6
2412 test -n "$MSGFMT" && break
2414 test -n "$MSGFMT" || MSGFMT="no"
2416 if test "$MSGFMT" = "no"
2418 echo 'msgfmt program not found, disabling NLS !'
2420 USE_INCLUDED_LIBINTL=no
2428 support_smartalloc=yes
2429 support_readline=yes
2431 support_static_tools=no
2432 support_static_fd=no
2433 support_static_sd=no
2434 support_static_dir=no
2435 support_static_cons=no
2436 build_client_only=no
2442 # -------------------------------------------
2443 # gnome (default off)
2444 # -------------------------------------------
2445 # Check whether --enable-gnome or --disable-gnome was given.
2446 if test "${enable_gnome+set}" = set; then
2447 enableval="$enable_gnome"
2448 if test x$enableval = xyes; then
2455 if test x$support_gnome = xyes; then
2466 # Check whether --with-gnome-includes or --without-gnome-includes was given.
2467 if test "${with_gnome_includes+set}" = set; then
2468 withval="$with_gnome_includes"
2470 CFLAGS="$CFLAGS -I$withval"
2475 # Check whether --with-gnome-libs or --without-gnome-libs was given.
2476 if test "${with_gnome_libs+set}" = set; then
2477 withval="$with_gnome_libs"
2479 LDFLAGS="$LDFLAGS -L$withval"
2480 gnome_prefix=$withval
2485 # Check whether --with-gnome or --without-gnome was given.
2486 if test "${with_gnome+set}" = set; then
2487 withval="$with_gnome"
2488 if test x$withval = xyes; then
2492 if test "x$withval" = xno; then
2496 LDFLAGS="$LDFLAGS -L$withval/lib"
2497 CFLAGS="$CFLAGS -I$withval/include"
2498 gnome_prefix=$withval/lib
2506 if test "x$want_gnome" = xyes; then
2508 # Extract the first word of "gnome-config", so it can be a program name with args.
2509 set dummy gnome-config; ac_word=$2
2510 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2511 echo "configure:2512: checking for $ac_word" >&5
2512 if eval "test \"`echo '$''{'ac_cv_path_GNOME_CONFIG'+set}'`\" = set"; then
2513 echo $ac_n "(cached) $ac_c" 1>&6
2515 case "$GNOME_CONFIG" in
2517 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
2520 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a dos path.
2523 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2525 for ac_dir in $ac_dummy; do
2526 test -z "$ac_dir" && ac_dir=.
2527 if test -f $ac_dir/$ac_word; then
2528 ac_cv_path_GNOME_CONFIG="$ac_dir/$ac_word"
2533 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
2537 GNOME_CONFIG="$ac_cv_path_GNOME_CONFIG"
2538 if test -n "$GNOME_CONFIG"; then
2539 echo "$ac_t""$GNOME_CONFIG" 1>&6
2541 echo "$ac_t""no" 1>&6
2544 if test "$GNOME_CONFIG" = "no"; then
2545 no_gnome_config="yes"
2547 echo $ac_n "checking if $GNOME_CONFIG works""... $ac_c" 1>&6
2548 echo "configure:2549: checking if $GNOME_CONFIG works" >&5
2549 if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
2550 echo "$ac_t""yes" 1>&6
2553 # Extract the first word of "orbit-config", so it can be a program name with args.
2554 set dummy orbit-config; ac_word=$2
2555 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2556 echo "configure:2557: checking for $ac_word" >&5
2557 if eval "test \"`echo '$''{'ac_cv_path_ORBIT_CONFIG'+set}'`\" = set"; then
2558 echo $ac_n "(cached) $ac_c" 1>&6
2560 case "$ORBIT_CONFIG" in
2562 ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a path.
2565 ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a dos path.
2568 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2570 for ac_dir in $ac_dummy; do
2571 test -z "$ac_dir" && ac_dir=.
2572 if test -f $ac_dir/$ac_word; then
2573 ac_cv_path_ORBIT_CONFIG="$ac_dir/$ac_word"
2578 test -z "$ac_cv_path_ORBIT_CONFIG" && ac_cv_path_ORBIT_CONFIG="no"
2582 ORBIT_CONFIG="$ac_cv_path_ORBIT_CONFIG"
2583 if test -n "$ORBIT_CONFIG"; then
2584 echo "$ac_t""$ORBIT_CONFIG" 1>&6
2586 echo "$ac_t""no" 1>&6
2589 # Extract the first word of "orbit-idl", so it can be a program name with args.
2590 set dummy orbit-idl; ac_word=$2
2591 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2592 echo "configure:2593: checking for $ac_word" >&5
2593 if eval "test \"`echo '$''{'ac_cv_path_ORBIT_IDL'+set}'`\" = set"; then
2594 echo $ac_n "(cached) $ac_c" 1>&6
2596 case "$ORBIT_IDL" in
2598 ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a path.
2601 ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a dos path.
2604 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2606 for ac_dir in $ac_dummy; do
2607 test -z "$ac_dir" && ac_dir=.
2608 if test -f $ac_dir/$ac_word; then
2609 ac_cv_path_ORBIT_IDL="$ac_dir/$ac_word"
2614 test -z "$ac_cv_path_ORBIT_IDL" && ac_cv_path_ORBIT_IDL="no"
2618 ORBIT_IDL="$ac_cv_path_ORBIT_IDL"
2619 if test -n "$ORBIT_IDL"; then
2620 echo "$ac_t""$ORBIT_IDL" 1>&6
2622 echo "$ac_t""no" 1>&6
2625 echo $ac_n "checking for working ORBit environment""... $ac_c" 1>&6
2626 echo "configure:2627: checking for working ORBit environment" >&5
2627 if eval "test \"`echo '$''{'gnome_cv_orbit_found'+set}'`\" = set"; then
2628 echo $ac_n "(cached) $ac_c" 1>&6
2631 if test x$ORBIT_CONFIG = xno -o x$ORBIT_IDL = xno; then
2632 gnome_cv_orbit_found=no
2634 gnome_cv_orbit_found=yes
2639 echo "$ac_t""$gnome_cv_orbit_found" 1>&6
2642 if test x$gnome_cv_orbit_found = xyes; then
2644 HAVE_ORBIT_FALSE='#'
2649 if test x$gnome_cv_orbit_found = xyes; then
2651 ORBIT_CFLAGS=`orbit-config --cflags client server`
2652 ORBIT_LIBS=`orbit-config --use-service=name --libs client server`
2656 if test xfail = xfailure; then
2657 { echo "configure: error: ORBit not installed or installation problem" 1>&2; exit 1; }
2661 echo $ac_n "checking for gnorba libraries""... $ac_c" 1>&6
2662 echo "configure:2663: checking for gnorba libraries" >&5
2663 if eval "test \"`echo '$''{'gnome_cv_gnorba_found'+set}'`\" = set"; then
2664 echo $ac_n "(cached) $ac_c" 1>&6
2667 gnome_cv_gnorba_found=no
2668 if test x$gnome_cv_orbit_found = xyes; then
2669 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
2670 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
2671 if test -n "$GNORBA_LIBS"; then
2672 gnome_cv_gnorba_found=yes
2678 echo "$ac_t""$gnome_cv_gnorba_found" 1>&6
2681 if test x$gnome_cv_gnorba_found = xyes; then
2683 HAVE_GNORBA_FALSE='#'
2685 HAVE_GNORBA_TRUE='#'
2688 if test x$gnome_cv_orbit_found = xyes; then
2690 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
2691 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
2695 if test xfail = xfailure; then
2696 { echo "configure: error: gnorba library not installed or installation problem" 1>&2; exit 1; }
2700 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome`"
2701 GNOMEUI_LIBS="`$GNOME_CONFIG --libs-only-l gnomeui`"
2702 GNOMEGNORBA_LIBS="`$GNOME_CONFIG --libs-only-l gnorba gnomeui`"
2703 GTKXMHTML_LIBS="`$GNOME_CONFIG --libs-only-l gtkxmhtml`"
2704 ZVT_LIBS="`$GNOME_CONFIG --libs-only-l zvt`"
2705 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
2706 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
2709 echo "$ac_t""no" 1>&6
2710 no_gnome_config="yes"
2714 if test x$exec_prefix = xNONE; then
2715 if test x$prefix = xNONE; then
2716 gnome_prefix=$ac_default_prefix/lib
2718 gnome_prefix=$prefix/lib
2721 gnome_prefix=`eval echo \`echo $libdir\``
2724 if test "$no_gnome_config" = "yes"; then
2725 echo $ac_n "checking for gnomeConf.sh file in $gnome_prefix""... $ac_c" 1>&6
2726 echo "configure:2727: checking for gnomeConf.sh file in $gnome_prefix" >&5
2727 if test -f $gnome_prefix/gnomeConf.sh; then
2728 echo "$ac_t""found" 1>&6
2729 echo "loading gnome configuration from" \
2730 "$gnome_prefix/gnomeConf.sh"
2731 . $gnome_prefix/gnomeConf.sh
2734 echo "$ac_t""not found" 1>&6
2735 if test xfail = xfail; then
2736 { echo "configure: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" 1>&2; exit 1; }
2745 echo $ac_n "checking extra library \"$i\"""... $ac_c" 1>&6
2746 echo "configure:2747: checking extra library \"$i\"" >&5
2750 GNOME_APPLETS_LIBS=`$GNOME_CONFIG --libs-only-l applets`
2751 echo "$ac_t""$GNOME_APPLETS_LIBS" 1>&6;;
2754 GNOME_DOCKLETS_LIBS=`$GNOME_CONFIG --libs-only-l docklets`
2755 echo "$ac_t""$GNOME_DOCKLETS_LIBS" 1>&6;;
2758 GNOME_CAPPLET_LIBS=`$GNOME_CONFIG --libs-only-l capplet`
2759 echo "$ac_t""$GNOME_CAPPLET_LIBS" 1>&6;;
2761 echo "$ac_t""unknown library" 1>&6
2763 EXTRA_INCLUDEDIR=`$GNOME_CONFIG --cflags $i`
2764 GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR $EXTRA_INCLUDEDIR"
2769 GNOME_DIR=src/gnome-console
2774 # -------------------------------------------
2775 # smartalloc (default off)
2776 # -------------------------------------------
2777 # Check whether --enable-smartalloc or --disable-smartalloc was given.
2778 if test "${enable_smartalloc+set}" = set; then
2779 enableval="$enable_smartalloc"
2780 if test x$enableval = xno; then
2781 support_smartalloc=no
2786 if test x$support_smartalloc = xyes; then
2787 cat >> confdefs.h <<\EOF
2788 #define SMARTALLOC 1
2793 # -------------------------------------------
2794 # static-tools (default off)
2795 # -------------------------------------------
2796 # Check whether --enable-static-tools or --disable-static-tools was given.
2797 if test "${enable_static_tools+set}" = set; then
2798 enableval="$enable_static_tools"
2799 if test x$enableval = xyes; then
2800 support_static_tools=yes
2806 if test x$support_static_tools = xyes; then
2807 TTOOL_LDFLAGS="-static"
2811 # -------------------------------------------
2812 # static-fd (default off)
2813 # -------------------------------------------
2814 # Check whether --enable-static-fd or --disable-static-fd was given.
2815 if test "${enable_static_fd+set}" = set; then
2816 enableval="$enable_static_fd"
2817 if test x$enableval = xyes; then
2818 support_static_fd=yes
2824 if test x$support_static_fd = xyes; then
2825 STATIC_FD="static-bacula-fd"
2829 # -------------------------------------------
2830 # static-sd (default off)
2831 # -------------------------------------------
2832 # Check whether --enable-static-sd or --disable-static-sd was given.
2833 if test "${enable_static_sd+set}" = set; then
2834 enableval="$enable_static_sd"
2835 if test x$enableval = xyes; then
2836 support_static_sd=yes
2842 if test x$support_static_sd = xyes; then
2843 STATIC_SD="static-bacula-sd"
2847 # -------------------------------------------
2848 # static-dir (default off)
2849 # -------------------------------------------
2850 # Check whether --enable-static-dir or --disable-static-dir was given.
2851 if test "${enable_static_dir+set}" = set; then
2852 enableval="$enable_static_dir"
2853 if test x$enableval = xyes; then
2854 support_static_dir=yes
2860 if test x$support_static_dir = xyes; then
2861 STATIC_DIR="static-bacula-dir"
2865 # -------------------------------------------
2866 # static-cons (default off)
2867 # -------------------------------------------
2868 # Check whether --enable-static-cons or --disable-static-cons was given.
2869 if test "${enable_static_cons+set}" = set; then
2870 enableval="$enable_static_cons"
2871 if test x$enableval = xyes; then
2872 support_static_cons=yes
2878 if test x$support_static_cons = xyes; then
2879 STATIC_CONS="static-console"
2883 # -------------------------------------------
2884 # client_only (default off)
2885 # -------------------------------------------
2886 # Check whether --enable-client-only or --disable-client-only was given.
2887 if test "${enable_client_only+set}" = set; then
2888 enableval="$enable_client_only"
2889 if test x$enableval = xyes; then
2890 build_client_only=yes
2894 if test x$build_client_only = xno; then
2901 # ---------------------------------------------------
2902 # Check for readline support/directory (default on)
2903 # ---------------------------------------------------
2904 # this allows you to turn it completely off
2905 # Check whether --enable-readline or --disable-readline was given.
2906 if test "${enable_readline+set}" = set; then
2907 enableval="$enable_readline"
2908 if test x$enableval = xno; then
2916 if test x$support_readline = xyes; then
2917 # Check whether --with-readline or --without-readline was given.
2918 if test "${with_readline+set}" = set; then
2919 withval="$with_readline"
2921 case "$with_readline" in
2924 if test "$with_readline" != "yes"; then
2925 CONS_INC="-I${with_readline}"
2926 CONS_LDFLAGS="-L$with_readline"
2928 with_readline="/usr/include/readline"
2930 ac_safe=`echo "${with_readline}/readline.h" | sed 'y%./+-%__p_%'`
2931 echo $ac_n "checking for ${with_readline}/readline.h""... $ac_c" 1>&6
2932 echo "configure:2933: checking for ${with_readline}/readline.h" >&5
2933 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2934 echo $ac_n "(cached) $ac_c" 1>&6
2936 cat > conftest.$ac_ext <<EOF
2937 #line 2938 "configure"
2938 #include "confdefs.h"
2939 #include <${with_readline}/readline.h>
2941 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2942 { (eval echo configure:2943: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2943 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2944 if test -z "$ac_err"; then
2946 eval "ac_cv_header_$ac_safe=yes"
2949 echo "configure: failed program was:" >&5
2950 cat conftest.$ac_ext >&5
2952 eval "ac_cv_header_$ac_safe=no"
2956 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2957 echo "$ac_t""yes" 1>&6
2958 cat >> confdefs.h <<\EOF
2959 #define HAVE_READLINE 1
2962 CONS_LIBS="-lreadline -ltermcap"
2966 echo "$ac_t""no" 1>&6
2967 { echo "configure: error: *** readline library missing" 1>&2; exit 1; }
2977 # check for standard readline library
2978 ac_safe=`echo "/usr/include/readline/readline.h" | sed 'y%./+-%__p_%'`
2979 echo $ac_n "checking for /usr/include/readline/readline.h""... $ac_c" 1>&6
2980 echo "configure:2981: checking for /usr/include/readline/readline.h" >&5
2981 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2982 echo $ac_n "(cached) $ac_c" 1>&6
2984 cat > conftest.$ac_ext <<EOF
2985 #line 2986 "configure"
2986 #include "confdefs.h"
2987 #include </usr/include/readline/readline.h>
2989 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2990 { (eval echo configure:2991: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2991 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2992 if test -z "$ac_err"; then
2994 eval "ac_cv_header_$ac_safe=yes"
2997 echo "configure: failed program was:" >&5
2998 cat conftest.$ac_ext >&5
3000 eval "ac_cv_header_$ac_safe=no"
3004 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3005 echo "$ac_t""yes" 1>&6
3006 cat >> confdefs.h <<\EOF
3007 #define HAVE_READLINE 1
3011 CONS_INC="-I/usr/include/readline"
3012 CONS_LIBS="-lreadline -ltermcap"
3015 echo "$ac_t""no" 1>&6
3017 # Did not find standard library, so try Bacula's default
3018 ac_safe=`echo "${TOP_DIR}/depkgs/readline/readline.h" | sed 'y%./+-%__p_%'`
3019 echo $ac_n "checking for ${TOP_DIR}/depkgs/readline/readline.h""... $ac_c" 1>&6
3020 echo "configure:3021: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
3021 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3022 echo $ac_n "(cached) $ac_c" 1>&6
3024 cat > conftest.$ac_ext <<EOF
3025 #line 3026 "configure"
3026 #include "confdefs.h"
3027 #include <${TOP_DIR}/depkgs/readline/readline.h>
3029 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3030 { (eval echo configure:3031: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3031 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3032 if test -z "$ac_err"; then
3034 eval "ac_cv_header_$ac_safe=yes"
3037 echo "configure: failed program was:" >&5
3038 cat conftest.$ac_ext >&5
3040 eval "ac_cv_header_$ac_safe=no"
3044 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3045 echo "$ac_t""yes" 1>&6
3046 cat >> confdefs.h <<\EOF
3047 #define HAVE_READLINE 1
3051 CONS_INC="-I${TOP_DIR}/depkgs/readline"
3052 CONS_LIBS="-lreadline -lhistory -ltermcap"
3053 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
3054 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
3057 echo "$ac_t""no" 1>&6
3058 { echo "configure: error: *** readline library missing" 1>&2; exit 1; }
3077 # Minimal stuff for readline Makefile configuration
3081 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
3082 echo "configure:3083: checking whether stat file-mode macros are broken" >&5
3083 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
3084 echo $ac_n "(cached) $ac_c" 1>&6
3086 cat > conftest.$ac_ext <<EOF
3087 #line 3088 "configure"
3088 #include "confdefs.h"
3089 #include <sys/types.h>
3090 #include <sys/stat.h>
3092 #if defined(S_ISBLK) && defined(S_IFDIR)
3093 # if S_ISBLK (S_IFDIR)
3098 #if defined(S_ISBLK) && defined(S_IFCHR)
3099 # if S_ISBLK (S_IFCHR)
3104 #if defined(S_ISLNK) && defined(S_IFREG)
3105 # if S_ISLNK (S_IFREG)
3110 #if defined(S_ISSOCK) && defined(S_IFREG)
3111 # if S_ISSOCK (S_IFREG)
3117 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3118 egrep "You lose" >/dev/null 2>&1; then
3120 ac_cv_header_stat_broken=yes
3123 ac_cv_header_stat_broken=no
3129 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
3130 if test $ac_cv_header_stat_broken = yes; then
3131 cat >> confdefs.h <<\EOF
3132 #define STAT_MACROS_BROKEN 1
3138 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
3140 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3141 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
3142 echo "configure:3143: checking for $ac_hdr that defines DIR" >&5
3143 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
3144 echo $ac_n "(cached) $ac_c" 1>&6
3146 cat > conftest.$ac_ext <<EOF
3147 #line 3148 "configure"
3148 #include "confdefs.h"
3149 #include <sys/types.h>
3155 if { (eval echo configure:3156: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3157 eval "ac_cv_header_dirent_$ac_safe=yes"
3159 echo "configure: failed program was:" >&5
3160 cat conftest.$ac_ext >&5
3162 eval "ac_cv_header_dirent_$ac_safe=no"
3166 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
3167 echo "$ac_t""yes" 1>&6
3168 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3169 cat >> confdefs.h <<EOF
3170 #define $ac_tr_hdr 1
3172 ac_header_dirent=$ac_hdr; break
3174 echo "$ac_t""no" 1>&6
3177 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3178 if test $ac_header_dirent = dirent.h; then
3179 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
3180 echo "configure:3181: checking for opendir in -ldir" >&5
3181 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
3182 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3183 echo $ac_n "(cached) $ac_c" 1>&6
3185 ac_save_LIBS="$LIBS"
3187 cat > conftest.$ac_ext <<EOF
3188 #line 3189 "configure"
3189 #include "confdefs.h"
3190 /* Override any gcc2 internal prototype to avoid an error. */
3191 /* We use char because int might match the return type of a gcc2
3192 builtin and then its argument prototype would still apply. */
3199 if { (eval echo configure:3200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3201 eval "ac_cv_lib_$ac_lib_var=yes"
3203 echo "configure: failed program was:" >&5
3204 cat conftest.$ac_ext >&5
3206 eval "ac_cv_lib_$ac_lib_var=no"
3209 LIBS="$ac_save_LIBS"
3212 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3213 echo "$ac_t""yes" 1>&6
3216 echo "$ac_t""no" 1>&6
3220 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
3221 echo "configure:3222: checking for opendir in -lx" >&5
3222 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
3223 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3224 echo $ac_n "(cached) $ac_c" 1>&6
3226 ac_save_LIBS="$LIBS"
3228 cat > conftest.$ac_ext <<EOF
3229 #line 3230 "configure"
3230 #include "confdefs.h"
3231 /* Override any gcc2 internal prototype to avoid an error. */
3232 /* We use char because int might match the return type of a gcc2
3233 builtin and then its argument prototype would still apply. */
3240 if { (eval echo configure:3241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3242 eval "ac_cv_lib_$ac_lib_var=yes"
3244 echo "configure: failed program was:" >&5
3245 cat conftest.$ac_ext >&5
3247 eval "ac_cv_lib_$ac_lib_var=no"
3250 LIBS="$ac_save_LIBS"
3253 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3254 echo "$ac_t""yes" 1>&6
3257 echo "$ac_t""no" 1>&6
3263 for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat lchown
3265 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3266 echo "configure:3267: checking for $ac_func" >&5
3267 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3268 echo $ac_n "(cached) $ac_c" 1>&6
3270 cat > conftest.$ac_ext <<EOF
3271 #line 3272 "configure"
3272 #include "confdefs.h"
3273 /* System header to define __stub macros and hopefully few prototypes,
3274 which can conflict with char $ac_func(); below. */
3276 /* Override any gcc2 internal prototype to avoid an error. */
3277 /* We use char because int might match the return type of a gcc2
3278 builtin and then its argument prototype would still apply. */
3283 /* The GNU C library defines this for functions which it implements
3284 to always fail with ENOSYS. Some functions are actually named
3285 something starting with __ and the normal name is an alias. */
3286 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3294 if { (eval echo configure:3295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3296 eval "ac_cv_func_$ac_func=yes"
3298 echo "configure: failed program was:" >&5
3299 cat conftest.$ac_ext >&5
3301 eval "ac_cv_func_$ac_func=no"
3306 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3307 echo "$ac_t""yes" 1>&6
3308 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3309 cat >> confdefs.h <<EOF
3310 #define $ac_tr_func 1
3314 echo "$ac_t""no" 1>&6
3318 for ac_func in nanosleep
3320 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3321 echo "configure:3322: checking for $ac_func" >&5
3322 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3323 echo $ac_n "(cached) $ac_c" 1>&6
3325 cat > conftest.$ac_ext <<EOF
3326 #line 3327 "configure"
3327 #include "confdefs.h"
3328 /* System header to define __stub macros and hopefully few prototypes,
3329 which can conflict with char $ac_func(); below. */
3331 /* Override any gcc2 internal prototype to avoid an error. */
3332 /* We use char because int might match the return type of a gcc2
3333 builtin and then its argument prototype would still apply. */
3338 /* The GNU C library defines this for functions which it implements
3339 to always fail with ENOSYS. Some functions are actually named
3340 something starting with __ and the normal name is an alias. */
3341 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3349 if { (eval echo configure:3350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3351 eval "ac_cv_func_$ac_func=yes"
3353 echo "configure: failed program was:" >&5
3354 cat conftest.$ac_ext >&5
3356 eval "ac_cv_func_$ac_func=no"
3361 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3362 echo "$ac_t""yes" 1>&6
3363 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3364 cat >> confdefs.h <<EOF
3365 #define $ac_tr_func 1
3369 echo "$ac_t""no" 1>&6
3374 #AC_CHECK_FUNC(getopt_long, AC_DEFINE(HAVE_GETOPT_LONG),
3375 # [LIBEXTRAOBJ="$LIBEXTRAOBJ getopt.o getopt1.o"
3376 # EXTRAOBJ="$EXTRAOBJ lib/getopt.o lib/getopt1.o"])
3378 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
3379 echo "configure:3380: checking for getopt_long" >&5
3380 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
3381 echo $ac_n "(cached) $ac_c" 1>&6
3383 cat > conftest.$ac_ext <<EOF
3384 #line 3385 "configure"
3385 #include "confdefs.h"
3386 /* System header to define __stub macros and hopefully few prototypes,
3387 which can conflict with char getopt_long(); below. */
3389 /* Override any gcc2 internal prototype to avoid an error. */
3390 /* We use char because int might match the return type of a gcc2
3391 builtin and then its argument prototype would still apply. */
3396 /* The GNU C library defines this for functions which it implements
3397 to always fail with ENOSYS. Some functions are actually named
3398 something starting with __ and the normal name is an alias. */
3399 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
3407 if { (eval echo configure:3408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3409 eval "ac_cv_func_getopt_long=yes"
3411 echo "configure: failed program was:" >&5
3412 cat conftest.$ac_ext >&5
3414 eval "ac_cv_func_getopt_long=no"
3419 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
3420 echo "$ac_t""yes" 1>&6
3421 cat >> confdefs.h <<\EOF
3422 #define HAVE_GETOPT_LONG 1
3426 echo "$ac_t""no" 1>&6
3431 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
3432 echo "configure:3433: checking for working strcoll" >&5
3433 if eval "test \"`echo '$''{'ac_cv_func_strcoll_works'+set}'`\" = set"; then
3434 echo $ac_n "(cached) $ac_c" 1>&6
3436 if test "$cross_compiling" = yes; then
3437 ac_cv_func_strcoll_works=no
3439 cat > conftest.$ac_ext <<EOF
3440 #line 3441 "configure"
3441 #include "confdefs.h"
3445 exit (strcoll ("abc", "def") >= 0 ||
3446 strcoll ("ABC", "DEF") >= 0 ||
3447 strcoll ("123", "456") >= 0);
3450 if { (eval echo configure:3451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3452 ac_cv_func_strcoll_works=yes
3454 echo "configure: failed program was:" >&5
3455 cat conftest.$ac_ext >&5
3457 ac_cv_func_strcoll_works=no
3464 echo "$ac_t""$ac_cv_func_strcoll_works" 1>&6
3465 if test $ac_cv_func_strcoll_works = yes; then
3466 cat >> confdefs.h <<\EOF
3467 #define HAVE_STRCOLL 1
3473 for ac_hdr in varargs.h \
3474 sys/ptem.h sys/pte.h sys/stream.h
3476 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3477 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3478 echo "configure:3479: checking for $ac_hdr" >&5
3479 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3480 echo $ac_n "(cached) $ac_c" 1>&6
3482 cat > conftest.$ac_ext <<EOF
3483 #line 3484 "configure"
3484 #include "confdefs.h"
3487 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3488 { (eval echo configure:3489: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3489 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3490 if test -z "$ac_err"; then
3492 eval "ac_cv_header_$ac_safe=yes"
3495 echo "configure: failed program was:" >&5
3496 cat conftest.$ac_ext >&5
3498 eval "ac_cv_header_$ac_safe=no"
3502 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3503 echo "$ac_t""yes" 1>&6
3504 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3505 cat >> confdefs.h <<EOF
3506 #define $ac_tr_hdr 1
3510 echo "$ac_t""no" 1>&6
3515 # End of readline stuff
3516 # -----------------------------------------------------------------------
3519 # ---------------------------------------------------
3520 # Check for GMP support/directory
3521 # ---------------------------------------------------
3525 # [ --with-gmp[=DIR] Specify gmp library directory],
3527 # case "$with_gmp" in
3530 # if test "$with_gmp" != "yes"; then
3531 # GMP_INC="-I$with_gmp"
3533 # GMP_LDFLAGS="-L$with_gmp"
3535 # with_gmp="/usr/include"
3537 # AC_CHECK_HEADER($with_gmp/gmp.h,
3538 # [ AC_MSG_RESULT(yes)
3539 # AC_DEFINE(HAVE_GMP)
3543 # [ AC_MSG_ERROR([*** gmp library missing])
3549 # # check for standard gmp library
3550 # AC_CHECK_HEADER(/usr/include/gmp.h,
3551 # [ AC_MSG_RESULT(yes)
3552 # AC_DEFINE(HAVE_GMP)
3557 # # Did not find standard library, so use our own
3558 # AC_MSG_RESULT(yes)
3559 # AC_DEFINE(HAVE_GMP)
3562 # GMP_INC="-I${TOP_DIR}/depkgs/gmp"
3564 # GMP_LDFLAGS="-L${TOP_DIR}/depkgs/gmp"
3565 # GMP_SRC="${TOP_DIR}/depkgs/gmp"
3571 #AC_SUBST(GMP_LDFLAGS)
3575 # -----------------------------------------------------------------------
3578 # ---------------------------------------------------
3579 # Check for CWEB support/directory
3580 # ---------------------------------------------------
3585 # [ --with-cweb[=DIR] Specify cweb library directory],
3587 # case "$with_cweb" in
3590 # if test "$with_cweb" != "yes"; then
3591 # CWEB_INC="-I$with_cweb"
3592 # CWEB_LIBS="-lcweb"
3593 # CWEB_LDFLAGS="-L$with_cweb"
3595 # with_cweb="/usr/include"
3597 # AC_CHECK_HEADER($with_cweb/cweb.h,
3598 # [ AC_MSG_RESULT(yes)
3599 # AC_DEFINE(HAVE_CWEB)
3600 # CWEB_LIBS="-lcweb"
3603 # [ AC_MSG_ERROR([*** cweb library missing])
3609 # # check for standard cweb library
3610 # AC_CHECK_HEADER(/usr/include/cweb.h,
3611 # [ AC_MSG_RESULT(yes)
3612 # AC_DEFINE(HAVE_CWEB)
3615 # CWEB_LIBS="-lcweb"
3617 # # Did not find starndard library, so use our own
3618 # AC_MSG_RESULT(yes)
3619 # AC_DEFINE(HAVE_CWEB)
3622 # CWEB=${TOP_DIR}/depkgs/cweb
3623 # CWEB_INC="-I${TOP_DIR}/depkgs/cweb"
3624 # CWEB_LIBS="-lcweb"
3625 # CWEB_LDFLAGS="-L${TOP_DIR}/depkgs/cweb"
3626 # CWEB_SRC="${TOP_DIR}/depkgs/cweb"
3632 #AC_SUBST(CWEB_LIBS)
3633 #AC_SUBST(CWEB_LDFLAGS)
3637 # -----------------------------------------------------------------------
3641 # -----------------------------------------------------------
3642 # Check whether user wants TCP wrappers support (default off)
3643 # -----------------------------------------------------------
3645 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
3646 if test "${with_tcp_wrappers+set}" = set; then
3647 withval="$with_tcp_wrappers"
3649 if test "x$withval" != "xno" ; then
3651 LIBS="$LIBS -lwrap -lnsl"
3652 echo $ac_n "checking for libwrap""... $ac_c" 1>&6
3653 echo "configure:3654: checking for libwrap" >&5
3654 cat > conftest.$ac_ext <<EOF
3655 #line 3656 "configure"
3656 #include "confdefs.h"
3658 int deny_severity = 0;
3659 int allow_severity = 0;
3660 struct request_info *req;
3665 if { (eval echo configure:3666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3668 echo "$ac_t""yes" 1>&6
3669 cat >> confdefs.h <<\EOF
3670 #define HAVE_LIBWRAP 1
3676 echo "configure: failed program was:" >&5
3677 cat conftest.$ac_ext >&5
3679 { echo "configure: error: *** libwrap missing" 1>&2; exit 1; }
3689 # ------------------------------------------
3690 # Where to place working dir
3691 # ------------------------------------------
3692 working_dir=`eval echo ${sysconfdir}/working`
3693 # Check whether --with-working-dir or --without-working-dir was given.
3694 if test "${with_working_dir+set}" = set; then
3695 withval="$with_working_dir"
3697 if test "x$withval" != "xno" ; then
3698 working_dir=$withval
3708 # ------------------------------------------
3709 # Where to place scriptdir (script files)
3710 # ------------------------------------------
3711 scriptdir=`eval echo ${sysconfdir}`
3712 # Check whether --with-scriptdir or --without-scriptdir was given.
3713 if test "${with_scriptdir+set}" = set; then
3714 withval="$with_scriptdir"
3716 if test "x$withval" != "xno" ; then
3727 # ------------------------------------------
3728 # Where to send dump email
3729 # ------------------------------------------
3730 dump_email=root@localhost
3731 # Check whether --with-dump-email or --without-dump-email was given.
3732 if test "${with_dump_email+set}" = set; then
3733 withval="$with_dump_email"
3735 if test "x$withval" != "xno" ; then
3745 # ------------------------------------------
3746 # Where to send job email
3747 # ------------------------------------------
3748 job_email=root@localhost
3749 # Check whether --with-job-email or --without-job-email was given.
3750 if test "${with_job_email+set}" = set; then
3751 withval="$with_job_email"
3753 if test "x$withval" != "xno" ; then
3763 # ------------------------------------------
3764 # Where to find smtp host
3765 # ------------------------------------------
3767 # Check whether --with-smtp_host or --without-smtp_host was given.
3768 if test "${with_smtp_host+set}" = set; then
3769 withval="$with_smtp_host"
3771 if test "x$withval" != "xno" ; then
3782 # ------------------------------------
3783 # Where to place pid files
3784 # ------------------------------------
3786 # Check whether --with-pid-dir or --without-pid-dir was given.
3787 if test "${with_pid_dir+set}" = set; then
3788 withval="$with_pid_dir"
3790 if test "x$withval" != "xno" ; then
3798 cat >> confdefs.h <<EOF
3799 #define _PATH_BACULA_PIDDIR "$piddir"
3805 # ------------------------------------
3806 # Where to place subsys "lock file"
3807 # ------------------------------------
3808 subsysdir=/var/run/subsys
3809 # Check whether --with-subsys-dir or --without-subsys-dir was given.
3810 if test "${with_subsys_dir+set}" = set; then
3811 withval="$with_subsys_dir"
3813 if test "x$withval" != "xno" ; then
3825 # ------------------------------------
3826 # Where to start assigning ports
3827 # ------------------------------------
3829 # Check whether --with-baseport or --without-baseport was given.
3830 if test "${with_baseport+set}" = set; then
3831 withval="$with_baseport"
3833 if test "x$withval" != "xno" ; then
3842 dir_port=`expr $baseport`
3843 fd_port=`expr $baseport + 1`
3844 sd_port=`expr $fd_port + 1`
3851 # ------------------------------------------
3852 # Generate passwords
3853 # ------------------------------------------
3855 # Check whether --with-dir-password or --without-dir-password was given.
3856 if test "${with_dir_password+set}" = set; then
3857 withval="$with_dir_password"
3859 if test "x$withval" != "xno" ; then
3860 dir_password=$withval
3867 if test "x$dir_password" = "x" ; then
3868 if test "x$OPENSSL" = "xnone" ; then
3869 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
3870 key=`autoconf/randpass 33`
3872 key=`openssl rand -base64 33`
3878 # Check whether --with-fd-password or --without-fd-password was given.
3879 if test "${with_fd_password+set}" = set; then
3880 withval="$with_fd_password"
3882 if test "x$withval" != "xno" ; then
3883 fd_password=$withval
3890 if test "x$fd_password" = "x" ; then
3891 if test "x$OPENSSL" = "xnone" ; then
3892 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
3893 key=`autoconf/randpass 37`
3895 key=`openssl rand -base64 33`
3901 # Check whether --with-sd-password or --without-sd-password was given.
3902 if test "${with_sd_password+set}" = set; then
3903 withval="$with_sd_password"
3905 if test "x$withval" != "xno" ; then
3906 sd_password=$withval
3913 if test "x$sd_password" = "x" ; then
3914 if test "x$OPENSSL" = "xnone" ; then
3915 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
3916 key=`autoconf/randpass 41`
3918 key=`openssl rand -base64 33`
3931 # ------------------------------------------------
3932 # Bacula check for various SQL database engines
3933 # ------------------------------------------------
3936 echo $ac_n "checking for MySQL support""... $ac_c" 1>&6
3937 echo "configure:3938: checking for MySQL support" >&5
3938 # Check whether --with-mysql or --without-mysql was given.
3939 if test "${with_mysql+set}" = set; then
3940 withval="$with_mysql"
3942 if test "$withval" != "no"; then
3943 if test "$withval" = "yes"; then
3944 if test -f /usr/local/mysql/include/mysql/mysql.h; then
3945 MYSQL_INCDIR=/usr/local/mysql/include/mysql
3946 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
3947 MYSQL_BINDIR=/usr/local/mysql/bin
3948 elif test -f /usr/include/mysql/mysql.h; then
3949 MYSQL_INCDIR=/usr/include/mysql
3950 MYSQL_LIBDIR=/usr/lib/mysql
3951 MYSQL_BINDIR=/usr/bin
3952 elif test -f /usr/include/mysql.h; then
3953 MYSQL_INCDIR=/usr/include
3954 MYSQL_LIBDIR=/usr/lib
3955 MYSQL_BINDIR=/usr/bin
3956 elif test -f /usr/local/include/mysql/mysql.h; then
3957 MYSQL_INCDIR=/usr/local/include/mysql
3958 MYSQL_LIBDIR=/usr/local/lib/mysql
3959 MYSQL_BINDIR=/usr/local/bin
3960 elif test -f /usr/local/include/mysql.h; then
3961 MYSQL_INCDIR=/usr/local/include
3962 MYSQL_LIBDIR=/usr/local/lib
3963 MYSQL_BINDIR=/usr/local/bin
3965 echo "$ac_t""no" 1>&6
3966 { echo "configure: error: Unable to find mysql.h in standard locations" 1>&2; exit 1; }
3969 if test -f $withval/include/mysql/mysql.h; then
3970 MYSQL_INCDIR=$withval/include/mysql
3971 MYSQL_LIBDIR=$withval/lib/mysql
3972 MYSQL_BINDIR=$withval/bin
3973 elif test -f $withval/include/mysql.h; then
3974 MYSQL_INCDIR=$withval/include
3975 MYSQL_LIBDIR=$withval/lib
3976 MYSQL_BINDIR=$withval/bin
3978 echo "$ac_t""no" 1>&6
3979 { echo "configure: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" 1>&2; exit 1; }
3982 SQL_INCLUDE=-I$MYSQL_INCDIR
3983 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
3984 SQL_BINDIR=$MYSQL_BINDIR
3986 cat >> confdefs.h <<\EOF
3987 #define HAVE_MYSQL 1
3990 echo "$ac_t""yes" 1>&6
3997 echo "$ac_t""no" 1>&6
4002 echo "$ac_t""no" 1>&6
4007 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
4008 if test "${with_embedded_mysql+set}" = set; then
4009 withval="$with_embedded_mysql"
4011 if test "$withval" != "no"; then
4012 if test "$withval" = "yes"; then
4013 if test -f /usr/local/mysql/include/mysql/mysql.h; then
4014 MYSQL_INCDIR=/usr/local/mysql/include/mysql
4015 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
4016 MYSQL_BINDIR=/usr/local/mysql/bin
4017 elif test -f /usr/include/mysql/mysql.h; then
4018 MYSQL_INCDIR=/usr/include/mysql
4019 MYSQL_LIBDIR=/usr/lib/mysql
4020 MYSQL_BINDIR=/usr/bin
4021 elif test -f /usr/include/mysql.h; then
4022 MYSQL_INCDIR=/usr/include
4023 MYSQL_LIBDIR=/usr/lib
4024 MYSQL_BINDIR=/usr/bin
4025 elif test -f /usr/local/include/mysql/mysql.h; then
4026 MYSQL_INCDIR=/usr/local/include/mysql
4027 MYSQL_LIBDIR=/usr/local/lib/mysql
4028 MYSQL_BINDIR=/usr/local/bin
4029 elif test -f /usr/local/include/mysql.h; then
4030 MYSQL_INCDIR=/usr/local/include
4031 MYSQL_LIBDIR=/usr/local/lib
4032 MYSQL_BINDIR=/usr/local/bin
4034 echo "$ac_t""no" 1>&6
4035 { echo "configure: error: Unable to find mysql.h in standard locations" 1>&2; exit 1; }
4038 if test -f $withval/include/mysql/mysql.h; then
4039 MYSQL_INCDIR=$withval/include/mysql
4040 MYSQL_LIBDIR=$withval/lib/mysql
4041 MYSQL_BINDIR=$withval/bin
4042 elif test -f $withval/include/mysql.h; then
4043 MYSQL_INCDIR=$withval/include
4044 MYSQL_LIBDIR=$withval/lib
4045 MYSQL_BINDIR=$withval/bin
4047 echo "$ac_t""no" 1>&6
4048 { echo "configure: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" 1>&2; exit 1; }
4051 SQL_INCLUDE=-I$MYSQL_INCDIR
4052 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
4053 SQL_BINDIR=$MYSQL_BINDIR
4055 cat >> confdefs.h <<\EOF
4056 #define HAVE_MYSQL 1
4059 cat >> confdefs.h <<\EOF
4060 #define HAVE_EMBEDDED_MYSQL 1
4063 echo "$ac_t""yes" 1>&6
4070 echo "$ac_t""no" 1>&6
4075 echo "$ac_t""no" 1>&6
4088 # ------------------------------------------------
4089 # Bacula check for various SQL database engines
4090 # ------------------------------------------------
4093 echo $ac_n "checking for SQLite support""... $ac_c" 1>&6
4094 echo "configure:4095: checking for SQLite support" >&5
4095 # Check whether --with-sqlite or --without-sqlite was given.
4096 if test "${with_sqlite+set}" = set; then
4097 withval="$with_sqlite"
4099 if test "$withval" != "no"; then
4100 if test "$withval" = "yes"; then
4101 if test -f /usr/local/include/sqlite.h; then
4102 SQLITE_INCDIR=/usr/local/include
4103 SQLITE_LIBDIR=/usr/local/lib
4104 SQLITE_BINDIR=/usr/local/bin
4105 elif test -f /usr/include/sqlite.h; then
4106 SQLITE_INCDIR=/usr/include
4107 SQLITE_LIBDIR=/usr/lib
4108 SQLITE_BINDIR=/usr/bin
4110 echo "$ac_t""no" 1>&6
4111 { echo "configure: error: Unable to find sqlite.h in standard locations" 1>&2; exit 1; }
4114 if test -f $withval/sqlite.h; then
4115 SQLITE_INCDIR=$withval
4116 SQLITE_LIBDIR=$withval
4117 SQLITE_BINDIR=$withval
4119 echo "$ac_t""no" 1>&6
4120 { echo "configure: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" 1>&2; exit 1; }
4123 SQL_INCLUDE=-I$SQLITE_INCDIR
4124 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
4125 SQL_BINDIR=$SQLITE_BINDIR
4127 cat >> confdefs.h <<\EOF
4128 #define HAVE_SQLITE 1
4131 echo "$ac_t""yes" 1>&6
4138 echo "$ac_t""no" 1>&6
4143 echo "$ac_t""no" 1>&6
4156 cat >> confdefs.h <<\EOF
4157 #define PROTOTYPES 1
4161 if test -z "$CFLAGS"; then
4162 if test -z "$CCOPTS"; then
4169 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
4170 echo "configure:4171: checking for mingw32 environment" >&5
4171 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
4172 echo $ac_n "(cached) $ac_c" 1>&6
4174 cat > conftest.$ac_ext <<EOF
4175 #line 4176 "configure"
4176 #include "confdefs.h"
4182 if { (eval echo configure:4183: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4186 echo "configure: failed program was:" >&5
4187 cat conftest.$ac_ext >&5
4195 echo "$ac_t""$ac_cv_mingw32" 1>&6
4197 test "$ac_cv_mingw32" = yes && MINGW32=yes
4200 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
4201 echo "configure:4202: checking for executable suffix" >&5
4202 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
4203 echo $ac_n "(cached) $ac_c" 1>&6
4205 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4209 echo 'int main () { return 0; }' > conftest.$ac_ext
4211 if { (eval echo configure:4212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
4212 for file in conftest.*; do
4214 *.c | *.o | *.obj) ;;
4215 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
4219 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
4222 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
4227 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
4228 echo "$ac_t""${ac_cv_exeext}" 1>&6
4232 largefile_support="no"
4233 echo $ac_n "checking build system type""... $ac_c" 1>&6
4234 echo "configure:4235: checking build system type" >&5
4237 case "$build_alias" in
4240 NONE) build_alias=$host_alias ;;
4241 *) build_alias=$nonopt ;;
4245 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
4246 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4247 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4248 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4249 echo "$ac_t""$build" 1>&6
4251 if test $host != $build; then
4252 ac_tool_prefix=${host_alias}-
4258 # Check whether --enable-largefile or --disable-largefile was given.
4259 if test "${enable_largefile+set}" = set; then
4260 enableval="$enable_largefile"
4264 if test "$enable_largefile" != no; then
4265 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
4266 set dummy ${ac_tool_prefix}getconf; ac_word=$2
4267 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4268 echo "configure:4269: checking for $ac_word" >&5
4269 if eval "test \"`echo '$''{'ac_cv_prog_GETCONF'+set}'`\" = set"; then
4270 echo $ac_n "(cached) $ac_c" 1>&6
4272 if test -n "$GETCONF"; then
4273 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
4275 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4277 for ac_dir in $ac_dummy; do
4278 test -z "$ac_dir" && ac_dir=.
4279 if test -f $ac_dir/$ac_word; then
4280 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
4285 test -z "$ac_cv_prog_GETCONF" && ac_cv_prog_GETCONF="getconf"
4288 GETCONF="$ac_cv_prog_GETCONF"
4289 if test -n "$GETCONF"; then
4290 echo "$ac_t""$GETCONF" 1>&6
4292 echo "$ac_t""no" 1>&6
4297 echo $ac_n "checking for CFLAGS value to request large file support""... $ac_c" 1>&6
4298 echo "configure:4299: checking for CFLAGS value to request large file support" >&5
4299 if eval "test \"`echo '$''{'ac_cv_sys_largefile_CFLAGS'+set}'`\" = set"; then
4300 echo $ac_n "(cached) $ac_c" 1>&6
4302 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
4303 ac_cv_sys_largefile_CFLAGS=no
4305 # IRIX 6.2 and later require cc -n32.
4306 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
4307 if test "$GCC" != yes; then
4308 ac_cv_sys_largefile_CFLAGS=-n32
4311 CC="$CC $ac_cv_sys_largefile_CFLAGS"
4312 cat > conftest.$ac_ext <<EOF
4313 #line 4314 "configure"
4314 #include "confdefs.h"
4320 if { (eval echo configure:4321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4323 echo "configure: failed program was:" >&5
4324 cat conftest.$ac_ext >&5
4326 ac_cv_sys_largefile_CFLAGS=no
4334 echo "$ac_t""$ac_cv_sys_largefile_CFLAGS" 1>&6
4335 echo $ac_n "checking for LDFLAGS value to request large file support""... $ac_c" 1>&6
4336 echo "configure:4337: checking for LDFLAGS value to request large file support" >&5
4337 if eval "test \"`echo '$''{'ac_cv_sys_largefile_LDFLAGS'+set}'`\" = set"; then
4338 echo $ac_n "(cached) $ac_c" 1>&6
4340 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
4341 ac_cv_sys_largefile_LDFLAGS=no
4346 echo "$ac_t""$ac_cv_sys_largefile_LDFLAGS" 1>&6
4347 echo $ac_n "checking for LIBS value to request large file support""... $ac_c" 1>&6
4348 echo "configure:4349: checking for LIBS value to request large file support" >&5
4349 if eval "test \"`echo '$''{'ac_cv_sys_largefile_LIBS'+set}'`\" = set"; then
4350 echo $ac_n "(cached) $ac_c" 1>&6
4352 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
4353 ac_cv_sys_largefile_LIBS=no
4358 echo "$ac_t""$ac_cv_sys_largefile_LIBS" 1>&6
4360 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
4363 -D_FILE_OFFSET_BITS=*) ;;
4364 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
4365 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
4371 '') CPPFLAGS="$ac_flag" ;;
4372 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
4380 '') CFLAGS="$ac_flag" ;;
4381 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
4386 case "$ac_cv_sys_largefile_LDFLAGS" in
4390 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
4391 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
4394 case "$ac_cv_sys_largefile_LIBS" in
4398 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
4399 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
4402 echo $ac_n "checking for _FILE_OFFSET_BITS""... $ac_c" 1>&6
4403 echo "configure:4404: checking for _FILE_OFFSET_BITS" >&5
4404 if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then
4405 echo $ac_n "(cached) $ac_c" 1>&6
4407 ac_cv_sys_file_offset_bits=no
4409 # HP-UX 10.20 and later
4410 hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
4411 ac_cv_sys_file_offset_bits=64 ;;
4413 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
4415 -D_FILE_OFFSET_BITS)
4416 ac_cv_sys_file_offset_bits=1 ;;
4417 -D_FILE_OFFSET_BITS=*)
4418 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
4424 echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6
4425 if test "$ac_cv_sys_file_offset_bits" != no; then
4426 cat >> confdefs.h <<EOF
4427 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4431 echo $ac_n "checking for _LARGEFILE_SOURCE""... $ac_c" 1>&6
4432 echo "configure:4433: checking for _LARGEFILE_SOURCE" >&5
4433 if eval "test \"`echo '$''{'ac_cv_sys_largefile_source'+set}'`\" = set"; then
4434 echo $ac_n "(cached) $ac_c" 1>&6
4436 ac_cv_sys_largefile_source=no
4438 # HP-UX 10.20 and later
4439 hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
4440 ac_cv_sys_largefile_source=1 ;;
4442 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
4444 -D_LARGEFILE_SOURCE)
4445 ac_cv_sys_largefile_source=1 ;;
4446 -D_LARGEFILE_SOURCE=*)
4447 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
4453 echo "$ac_t""$ac_cv_sys_largefile_source" 1>&6
4454 if test "$ac_cv_sys_largefile_source" != no; then
4455 cat >> confdefs.h <<EOF
4456 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
4460 echo $ac_n "checking for _LARGE_FILES""... $ac_c" 1>&6
4461 echo "configure:4462: checking for _LARGE_FILES" >&5
4462 if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then
4463 echo $ac_n "(cached) $ac_c" 1>&6
4465 ac_cv_sys_large_files=no
4468 aix4.[2-9]* | aix4.1[0-9]* | aix[5-9].* | aix[1-9][0-9]*)
4469 ac_cv_sys_large_files=1 ;;
4471 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
4474 ac_cv_sys_large_files=1 ;;
4476 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
4482 echo "$ac_t""$ac_cv_sys_large_files" 1>&6
4483 if test "$ac_cv_sys_large_files" != no; then
4484 cat >> confdefs.h <<EOF
4485 #define _LARGE_FILES $ac_cv_sys_large_files
4493 # If we find X, set shell vars x_includes and x_libraries to the
4494 # paths, otherwise set no_x=yes.
4495 # Uses ac_ vars as temps to allow command line to override cache and checks.
4496 # --without-x overrides everything else, but does not touch the cache.
4497 echo $ac_n "checking for X""... $ac_c" 1>&6
4498 echo "configure:4499: checking for X" >&5
4500 # Check whether --with-x or --without-x was given.
4501 if test "${with_x+set}" = set; then
4506 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4507 if test "x$with_x" = xno; then
4508 # The user explicitly disabled X.
4511 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
4512 # Both variables are already set.
4515 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
4516 echo $ac_n "(cached) $ac_c" 1>&6
4518 # One or both of the vars are not set, and there is no cached value.
4519 ac_x_includes=NO ac_x_libraries=NO
4521 if mkdir conftestdir; then
4523 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
4524 cat > Imakefile <<'EOF'
4526 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
4528 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
4529 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4530 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
4531 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4532 for ac_extension in a so sl; do
4533 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
4534 test -f $ac_im_libdir/libX11.$ac_extension; then
4535 ac_im_usrlibdir=$ac_im_libdir; break
4538 # Screen out bogus values from the imake configuration. They are
4539 # bogus both because they are the default anyway, and because
4540 # using them would break gcc on systems where it needs fixed includes.
4541 case "$ac_im_incroot" in
4543 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
4545 case "$ac_im_usrlibdir" in
4547 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
4554 if test "$ac_x_includes" = NO; then
4555 # Guess where to find include files, by looking for this one X11 .h file.
4556 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
4558 # First, try using that file with no special directory specified.
4559 cat > conftest.$ac_ext <<EOF
4560 #line 4561 "configure"
4561 #include "confdefs.h"
4562 #include <$x_direct_test_include>
4564 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4565 { (eval echo configure:4566: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4566 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4567 if test -z "$ac_err"; then
4569 # We can compile using X headers with no special include directory.
4573 echo "configure: failed program was:" >&5
4574 cat conftest.$ac_ext >&5
4576 # Look for the header file in a standard set of common directories.
4577 # Check X11 before X11Rn because it is often a symlink to the current release.
4580 /usr/X11R6/include \
4581 /usr/X11R5/include \
4582 /usr/X11R4/include \
4585 /usr/include/X11R6 \
4586 /usr/include/X11R5 \
4587 /usr/include/X11R4 \
4589 /usr/local/X11/include \
4590 /usr/local/X11R6/include \
4591 /usr/local/X11R5/include \
4592 /usr/local/X11R4/include \
4594 /usr/local/include/X11 \
4595 /usr/local/include/X11R6 \
4596 /usr/local/include/X11R5 \
4597 /usr/local/include/X11R4 \
4601 /usr/XFree86/include/X11 \
4604 /usr/local/include \
4605 /usr/unsupported/include \
4606 /usr/athena/include \
4607 /usr/local/x11r5/include \
4608 /usr/lpp/Xamples/include \
4610 /usr/openwin/include \
4611 /usr/openwin/share/include \
4614 if test -r "$ac_dir/$x_direct_test_include"; then
4615 ac_x_includes=$ac_dir
4621 fi # $ac_x_includes = NO
4623 if test "$ac_x_libraries" = NO; then
4624 # Check for the libraries.
4626 test -z "$x_direct_test_library" && x_direct_test_library=Xt
4627 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
4629 # See if we find them without any special options.
4630 # Don't add to $LIBS permanently.
4631 ac_save_LIBS="$LIBS"
4632 LIBS="-l$x_direct_test_library $LIBS"
4633 cat > conftest.$ac_ext <<EOF
4634 #line 4635 "configure"
4635 #include "confdefs.h"
4638 ${x_direct_test_function}()
4641 if { (eval echo configure:4642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4643 LIBS="$ac_save_LIBS"
4644 # We can link X programs with no special library path.
4647 echo "configure: failed program was:" >&5
4648 cat conftest.$ac_ext >&5
4650 LIBS="$ac_save_LIBS"
4651 # First see if replacing the include by lib works.
4652 # Check X11 before X11Rn because it is often a symlink to the current release.
4653 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
4664 /usr/local/X11/lib \
4665 /usr/local/X11R6/lib \
4666 /usr/local/X11R5/lib \
4667 /usr/local/X11R4/lib \
4669 /usr/local/lib/X11 \
4670 /usr/local/lib/X11R6 \
4671 /usr/local/lib/X11R5 \
4672 /usr/local/lib/X11R4 \
4676 /usr/XFree86/lib/X11 \
4680 /usr/unsupported/lib \
4682 /usr/local/x11r5/lib \
4683 /usr/lpp/Xamples/lib \
4687 /usr/openwin/share/lib \
4690 for ac_extension in a so sl; do
4691 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
4692 ac_x_libraries=$ac_dir
4699 fi # $ac_x_libraries = NO
4701 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
4702 # Didn't find X anywhere. Cache the known absence of X.
4703 ac_cv_have_x="have_x=no"
4705 # Record where we found X for the cache.
4706 ac_cv_have_x="have_x=yes \
4707 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
4711 eval "$ac_cv_have_x"
4714 if test "$have_x" != yes; then
4715 echo "$ac_t""$have_x" 1>&6
4718 # If each of the values was on the command line, it overrides each guess.
4719 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4720 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4721 # Update the cache value to reflect the command line values.
4722 ac_cv_have_x="have_x=yes \
4723 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
4724 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
4727 if test "$no_x" = yes; then
4728 # Not all programs may use this symbol, but it does not hurt to define it.
4729 cat >> confdefs.h <<\EOF
4730 #define X_DISPLAY_MISSING 1
4733 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
4735 if test -n "$x_includes"; then
4736 X_CFLAGS="$X_CFLAGS -I$x_includes"
4739 # It would also be nice to do this for all -L options, not just this one.
4740 if test -n "$x_libraries"; then
4741 X_LIBS="$X_LIBS -L$x_libraries"
4742 # For Solaris; some versions of Sun CC require a space after -R and
4743 # others require no space. Words are not sufficient . . . .
4744 case "`(uname -sr) 2>/dev/null`" in
4746 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
4747 echo "configure:4748: checking whether -R must be followed by a space" >&5
4748 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
4749 cat > conftest.$ac_ext <<EOF
4750 #line 4751 "configure"
4751 #include "confdefs.h"
4757 if { (eval echo configure:4758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4761 echo "configure: failed program was:" >&5
4762 cat conftest.$ac_ext >&5
4767 if test $ac_R_nospace = yes; then
4768 echo "$ac_t""no" 1>&6
4769 X_LIBS="$X_LIBS -R$x_libraries"
4771 LIBS="$ac_xsave_LIBS -R $x_libraries"
4772 cat > conftest.$ac_ext <<EOF
4773 #line 4774 "configure"
4774 #include "confdefs.h"
4780 if { (eval echo configure:4781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4784 echo "configure: failed program was:" >&5
4785 cat conftest.$ac_ext >&5
4790 if test $ac_R_space = yes; then
4791 echo "$ac_t""yes" 1>&6
4792 X_LIBS="$X_LIBS -R $x_libraries"
4794 echo "$ac_t""neither works" 1>&6
4797 LIBS="$ac_xsave_LIBS"
4801 # Check for system-dependent libraries X programs must link with.
4802 # Do this before checking for the system-independent R6 libraries
4803 # (-lICE), since we may need -lsocket or whatever for X linking.
4805 if test "$ISC" = yes; then
4806 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4808 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
4809 # libraries were built with DECnet support. And karl@cs.umb.edu says
4810 # the Alpha needs dnet_stub (dnet does not exist).
4811 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
4812 echo "configure:4813: checking for dnet_ntoa in -ldnet" >&5
4813 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
4814 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4815 echo $ac_n "(cached) $ac_c" 1>&6
4817 ac_save_LIBS="$LIBS"
4819 cat > conftest.$ac_ext <<EOF
4820 #line 4821 "configure"
4821 #include "confdefs.h"
4822 /* Override any gcc2 internal prototype to avoid an error. */
4823 /* We use char because int might match the return type of a gcc2
4824 builtin and then its argument prototype would still apply. */
4831 if { (eval echo configure:4832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4833 eval "ac_cv_lib_$ac_lib_var=yes"
4835 echo "configure: failed program was:" >&5
4836 cat conftest.$ac_ext >&5
4838 eval "ac_cv_lib_$ac_lib_var=no"
4841 LIBS="$ac_save_LIBS"
4844 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4845 echo "$ac_t""yes" 1>&6
4846 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
4848 echo "$ac_t""no" 1>&6
4851 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4852 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
4853 echo "configure:4854: checking for dnet_ntoa in -ldnet_stub" >&5
4854 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
4855 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4856 echo $ac_n "(cached) $ac_c" 1>&6
4858 ac_save_LIBS="$LIBS"
4859 LIBS="-ldnet_stub $LIBS"
4860 cat > conftest.$ac_ext <<EOF
4861 #line 4862 "configure"
4862 #include "confdefs.h"
4863 /* Override any gcc2 internal prototype to avoid an error. */
4864 /* We use char because int might match the return type of a gcc2
4865 builtin and then its argument prototype would still apply. */
4872 if { (eval echo configure:4873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4874 eval "ac_cv_lib_$ac_lib_var=yes"
4876 echo "configure: failed program was:" >&5
4877 cat conftest.$ac_ext >&5
4879 eval "ac_cv_lib_$ac_lib_var=no"
4882 LIBS="$ac_save_LIBS"
4885 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4886 echo "$ac_t""yes" 1>&6
4887 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
4889 echo "$ac_t""no" 1>&6
4894 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
4895 # to get the SysV transport functions.
4896 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
4898 # The nsl library prevents programs from opening the X display
4899 # on Irix 5.2, according to dickey@clark.net.
4900 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
4901 echo "configure:4902: checking for gethostbyname" >&5
4902 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
4903 echo $ac_n "(cached) $ac_c" 1>&6
4905 cat > conftest.$ac_ext <<EOF
4906 #line 4907 "configure"
4907 #include "confdefs.h"
4908 /* System header to define __stub macros and hopefully few prototypes,
4909 which can conflict with char gethostbyname(); below. */
4911 /* Override any gcc2 internal prototype to avoid an error. */
4912 /* We use char because int might match the return type of a gcc2
4913 builtin and then its argument prototype would still apply. */
4914 char gethostbyname();
4918 /* The GNU C library defines this for functions which it implements
4919 to always fail with ENOSYS. Some functions are actually named
4920 something starting with __ and the normal name is an alias. */
4921 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
4929 if { (eval echo configure:4930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4931 eval "ac_cv_func_gethostbyname=yes"
4933 echo "configure: failed program was:" >&5
4934 cat conftest.$ac_ext >&5
4936 eval "ac_cv_func_gethostbyname=no"
4941 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
4942 echo "$ac_t""yes" 1>&6
4945 echo "$ac_t""no" 1>&6
4948 if test $ac_cv_func_gethostbyname = no; then
4949 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
4950 echo "configure:4951: checking for gethostbyname in -lnsl" >&5
4951 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
4952 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4953 echo $ac_n "(cached) $ac_c" 1>&6
4955 ac_save_LIBS="$LIBS"
4957 cat > conftest.$ac_ext <<EOF
4958 #line 4959 "configure"
4959 #include "confdefs.h"
4960 /* Override any gcc2 internal prototype to avoid an error. */
4961 /* We use char because int might match the return type of a gcc2
4962 builtin and then its argument prototype would still apply. */
4963 char gethostbyname();
4969 if { (eval echo configure:4970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4971 eval "ac_cv_lib_$ac_lib_var=yes"
4973 echo "configure: failed program was:" >&5
4974 cat conftest.$ac_ext >&5
4976 eval "ac_cv_lib_$ac_lib_var=no"
4979 LIBS="$ac_save_LIBS"
4982 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4983 echo "$ac_t""yes" 1>&6
4984 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
4986 echo "$ac_t""no" 1>&6
4991 # lieder@skyler.mavd.honeywell.com says without -lsocket,
4992 # socket/setsockopt and other routines are undefined under SCO ODT
4993 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
4994 # on later versions), says simon@lia.di.epfl.ch: it contains
4995 # gethostby* variants that don't use the nameserver (or something).
4996 # -lsocket must be given before -lnsl if both are needed.
4997 # We assume that if connect needs -lnsl, so does gethostbyname.
4998 echo $ac_n "checking for connect""... $ac_c" 1>&6
4999 echo "configure:5000: checking for connect" >&5
5000 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
5001 echo $ac_n "(cached) $ac_c" 1>&6
5003 cat > conftest.$ac_ext <<EOF
5004 #line 5005 "configure"
5005 #include "confdefs.h"
5006 /* System header to define __stub macros and hopefully few prototypes,
5007 which can conflict with char connect(); below. */
5009 /* Override any gcc2 internal prototype to avoid an error. */
5010 /* We use char because int might match the return type of a gcc2
5011 builtin and then its argument prototype would still apply. */
5016 /* The GNU C library defines this for functions which it implements
5017 to always fail with ENOSYS. Some functions are actually named
5018 something starting with __ and the normal name is an alias. */
5019 #if defined (__stub_connect) || defined (__stub___connect)
5027 if { (eval echo configure:5028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5029 eval "ac_cv_func_connect=yes"
5031 echo "configure: failed program was:" >&5
5032 cat conftest.$ac_ext >&5
5034 eval "ac_cv_func_connect=no"
5039 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
5040 echo "$ac_t""yes" 1>&6
5043 echo "$ac_t""no" 1>&6
5046 if test $ac_cv_func_connect = no; then
5047 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
5048 echo "configure:5049: checking for connect in -lsocket" >&5
5049 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
5050 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5051 echo $ac_n "(cached) $ac_c" 1>&6
5053 ac_save_LIBS="$LIBS"
5054 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
5055 cat > conftest.$ac_ext <<EOF
5056 #line 5057 "configure"
5057 #include "confdefs.h"
5058 /* Override any gcc2 internal prototype to avoid an error. */
5059 /* We use char because int might match the return type of a gcc2
5060 builtin and then its argument prototype would still apply. */
5067 if { (eval echo configure:5068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5069 eval "ac_cv_lib_$ac_lib_var=yes"
5071 echo "configure: failed program was:" >&5
5072 cat conftest.$ac_ext >&5
5074 eval "ac_cv_lib_$ac_lib_var=no"
5077 LIBS="$ac_save_LIBS"
5080 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5081 echo "$ac_t""yes" 1>&6
5082 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5084 echo "$ac_t""no" 1>&6
5089 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
5090 echo $ac_n "checking for remove""... $ac_c" 1>&6
5091 echo "configure:5092: checking for remove" >&5
5092 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
5093 echo $ac_n "(cached) $ac_c" 1>&6
5095 cat > conftest.$ac_ext <<EOF
5096 #line 5097 "configure"
5097 #include "confdefs.h"
5098 /* System header to define __stub macros and hopefully few prototypes,
5099 which can conflict with char remove(); below. */
5101 /* Override any gcc2 internal prototype to avoid an error. */
5102 /* We use char because int might match the return type of a gcc2
5103 builtin and then its argument prototype would still apply. */
5108 /* The GNU C library defines this for functions which it implements
5109 to always fail with ENOSYS. Some functions are actually named
5110 something starting with __ and the normal name is an alias. */
5111 #if defined (__stub_remove) || defined (__stub___remove)
5119 if { (eval echo configure:5120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5121 eval "ac_cv_func_remove=yes"
5123 echo "configure: failed program was:" >&5
5124 cat conftest.$ac_ext >&5
5126 eval "ac_cv_func_remove=no"
5131 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
5132 echo "$ac_t""yes" 1>&6
5135 echo "$ac_t""no" 1>&6
5138 if test $ac_cv_func_remove = no; then
5139 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
5140 echo "configure:5141: checking for remove in -lposix" >&5
5141 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
5142 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5143 echo $ac_n "(cached) $ac_c" 1>&6
5145 ac_save_LIBS="$LIBS"
5146 LIBS="-lposix $LIBS"
5147 cat > conftest.$ac_ext <<EOF
5148 #line 5149 "configure"
5149 #include "confdefs.h"
5150 /* Override any gcc2 internal prototype to avoid an error. */
5151 /* We use char because int might match the return type of a gcc2
5152 builtin and then its argument prototype would still apply. */
5159 if { (eval echo configure:5160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5161 eval "ac_cv_lib_$ac_lib_var=yes"
5163 echo "configure: failed program was:" >&5
5164 cat conftest.$ac_ext >&5
5166 eval "ac_cv_lib_$ac_lib_var=no"
5169 LIBS="$ac_save_LIBS"
5172 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5173 echo "$ac_t""yes" 1>&6
5174 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5176 echo "$ac_t""no" 1>&6
5181 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5182 echo $ac_n "checking for shmat""... $ac_c" 1>&6
5183 echo "configure:5184: checking for shmat" >&5
5184 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
5185 echo $ac_n "(cached) $ac_c" 1>&6
5187 cat > conftest.$ac_ext <<EOF
5188 #line 5189 "configure"
5189 #include "confdefs.h"
5190 /* System header to define __stub macros and hopefully few prototypes,
5191 which can conflict with char shmat(); below. */
5193 /* Override any gcc2 internal prototype to avoid an error. */
5194 /* We use char because int might match the return type of a gcc2
5195 builtin and then its argument prototype would still apply. */
5200 /* The GNU C library defines this for functions which it implements
5201 to always fail with ENOSYS. Some functions are actually named
5202 something starting with __ and the normal name is an alias. */
5203 #if defined (__stub_shmat) || defined (__stub___shmat)
5211 if { (eval echo configure:5212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5213 eval "ac_cv_func_shmat=yes"
5215 echo "configure: failed program was:" >&5
5216 cat conftest.$ac_ext >&5
5218 eval "ac_cv_func_shmat=no"
5223 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
5224 echo "$ac_t""yes" 1>&6
5227 echo "$ac_t""no" 1>&6
5230 if test $ac_cv_func_shmat = no; then
5231 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
5232 echo "configure:5233: checking for shmat in -lipc" >&5
5233 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
5234 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5235 echo $ac_n "(cached) $ac_c" 1>&6
5237 ac_save_LIBS="$LIBS"
5239 cat > conftest.$ac_ext <<EOF
5240 #line 5241 "configure"
5241 #include "confdefs.h"
5242 /* Override any gcc2 internal prototype to avoid an error. */
5243 /* We use char because int might match the return type of a gcc2
5244 builtin and then its argument prototype would still apply. */
5251 if { (eval echo configure:5252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5253 eval "ac_cv_lib_$ac_lib_var=yes"
5255 echo "configure: failed program was:" >&5
5256 cat conftest.$ac_ext >&5
5258 eval "ac_cv_lib_$ac_lib_var=no"
5261 LIBS="$ac_save_LIBS"
5264 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5265 echo "$ac_t""yes" 1>&6
5266 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5268 echo "$ac_t""no" 1>&6
5274 # Check for libraries that X11R6 Xt/Xaw programs need.
5275 ac_save_LDFLAGS="$LDFLAGS"
5276 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5277 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5278 # check for ICE first), but we must link in the order -lSM -lICE or
5279 # we get undefined symbols. So assume we have SM if we have ICE.
5280 # These have to be linked with before -lX11, unlike the other
5281 # libraries we check for below, so use a different variable.
5282 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
5283 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
5284 echo "configure:5285: checking for IceConnectionNumber in -lICE" >&5
5285 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
5286 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5287 echo $ac_n "(cached) $ac_c" 1>&6
5289 ac_save_LIBS="$LIBS"
5290 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
5291 cat > conftest.$ac_ext <<EOF
5292 #line 5293 "configure"
5293 #include "confdefs.h"
5294 /* Override any gcc2 internal prototype to avoid an error. */
5295 /* We use char because int might match the return type of a gcc2
5296 builtin and then its argument prototype would still apply. */
5297 char IceConnectionNumber();
5300 IceConnectionNumber()
5303 if { (eval echo configure:5304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5305 eval "ac_cv_lib_$ac_lib_var=yes"
5307 echo "configure: failed program was:" >&5
5308 cat conftest.$ac_ext >&5
5310 eval "ac_cv_lib_$ac_lib_var=no"
5313 LIBS="$ac_save_LIBS"
5316 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5317 echo "$ac_t""yes" 1>&6
5318 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5320 echo "$ac_t""no" 1>&6
5323 LDFLAGS="$ac_save_LDFLAGS"
5353 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5354 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5355 echo "configure:5356: checking for $ac_hdr" >&5
5356 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5357 echo $ac_n "(cached) $ac_c" 1>&6
5359 cat > conftest.$ac_ext <<EOF
5360 #line 5361 "configure"
5361 #include "confdefs.h"
5364 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5365 { (eval echo configure:5366: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5366 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5367 if test -z "$ac_err"; then
5369 eval "ac_cv_header_$ac_safe=yes"
5372 echo "configure: failed program was:" >&5
5373 cat conftest.$ac_ext >&5
5375 eval "ac_cv_header_$ac_safe=no"
5379 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5380 echo "$ac_t""yes" 1>&6
5381 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5382 cat >> confdefs.h <<EOF
5383 #define $ac_tr_hdr 1
5387 echo "$ac_t""no" 1>&6
5391 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
5392 echo "configure:5393: checking for ANSI C header files" >&5
5393 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
5394 echo $ac_n "(cached) $ac_c" 1>&6
5396 cat > conftest.$ac_ext <<EOF
5397 #line 5398 "configure"
5398 #include "confdefs.h"
5404 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5405 { (eval echo configure:5406: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5406 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5407 if test -z "$ac_err"; then
5409 ac_cv_header_stdc=yes
5412 echo "configure: failed program was:" >&5
5413 cat conftest.$ac_ext >&5
5415 ac_cv_header_stdc=no
5419 if test $ac_cv_header_stdc = yes; then
5420 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5421 cat > conftest.$ac_ext <<EOF
5422 #line 5423 "configure"
5423 #include "confdefs.h"
5426 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5427 egrep "memchr" >/dev/null 2>&1; then
5431 ac_cv_header_stdc=no
5437 if test $ac_cv_header_stdc = yes; then
5438 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5439 cat > conftest.$ac_ext <<EOF
5440 #line 5441 "configure"
5441 #include "confdefs.h"
5444 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5445 egrep "free" >/dev/null 2>&1; then
5449 ac_cv_header_stdc=no
5455 if test $ac_cv_header_stdc = yes; then
5456 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5457 if test "$cross_compiling" = yes; then
5460 cat > conftest.$ac_ext <<EOF
5461 #line 5462 "configure"
5462 #include "confdefs.h"
5464 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5465 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5466 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5467 int main () { int i; for (i = 0; i < 256; i++)
5468 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
5472 if { (eval echo configure:5473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5476 echo "configure: failed program was:" >&5
5477 cat conftest.$ac_ext >&5
5479 ac_cv_header_stdc=no
5487 echo "$ac_t""$ac_cv_header_stdc" 1>&6
5488 if test $ac_cv_header_stdc = yes; then
5489 cat >> confdefs.h <<\EOF
5490 #define STDC_HEADERS 1
5495 echo $ac_n "checking whether sys/types.h defines makedev""... $ac_c" 1>&6
5496 echo "configure:5497: checking whether sys/types.h defines makedev" >&5
5497 if eval "test \"`echo '$''{'ac_cv_header_sys_types_h_makedev'+set}'`\" = set"; then
5498 echo $ac_n "(cached) $ac_c" 1>&6
5500 cat > conftest.$ac_ext <<EOF
5501 #line 5502 "configure"
5502 #include "confdefs.h"
5503 #include <sys/types.h>
5505 return makedev(0, 0);
5508 if { (eval echo configure:5509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5510 ac_cv_header_sys_types_h_makedev=yes
5512 echo "configure: failed program was:" >&5
5513 cat conftest.$ac_ext >&5
5515 ac_cv_header_sys_types_h_makedev=no
5521 echo "$ac_t""$ac_cv_header_sys_types_h_makedev" 1>&6
5523 if test $ac_cv_header_sys_types_h_makedev = no; then
5524 ac_safe=`echo "sys/mkdev.h" | sed 'y%./+-%__p_%'`
5525 echo $ac_n "checking for sys/mkdev.h""... $ac_c" 1>&6
5526 echo "configure:5527: checking for sys/mkdev.h" >&5
5527 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5528 echo $ac_n "(cached) $ac_c" 1>&6
5530 cat > conftest.$ac_ext <<EOF
5531 #line 5532 "configure"
5532 #include "confdefs.h"
5533 #include <sys/mkdev.h>
5535 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5536 { (eval echo configure:5537: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5537 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5538 if test -z "$ac_err"; then
5540 eval "ac_cv_header_$ac_safe=yes"
5543 echo "configure: failed program was:" >&5
5544 cat conftest.$ac_ext >&5
5546 eval "ac_cv_header_$ac_safe=no"
5550 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5551 echo "$ac_t""yes" 1>&6
5552 cat >> confdefs.h <<\EOF
5553 #define MAJOR_IN_MKDEV 1
5557 echo "$ac_t""no" 1>&6
5561 if test $ac_cv_header_sys_mkdev_h = no; then
5562 ac_safe=`echo "sys/sysmacros.h" | sed 'y%./+-%__p_%'`
5563 echo $ac_n "checking for sys/sysmacros.h""... $ac_c" 1>&6
5564 echo "configure:5565: checking for sys/sysmacros.h" >&5
5565 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5566 echo $ac_n "(cached) $ac_c" 1>&6
5568 cat > conftest.$ac_ext <<EOF
5569 #line 5570 "configure"
5570 #include "confdefs.h"
5571 #include <sys/sysmacros.h>
5573 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5574 { (eval echo configure:5575: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5575 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5576 if test -z "$ac_err"; then
5578 eval "ac_cv_header_$ac_safe=yes"
5581 echo "configure: failed program was:" >&5
5582 cat conftest.$ac_ext >&5
5584 eval "ac_cv_header_$ac_safe=no"
5588 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5589 echo "$ac_t""yes" 1>&6
5590 cat >> confdefs.h <<\EOF
5591 #define MAJOR_IN_SYSMACROS 1
5595 echo "$ac_t""no" 1>&6
5602 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
5604 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5605 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
5606 echo "configure:5607: checking for $ac_hdr that defines DIR" >&5
5607 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
5608 echo $ac_n "(cached) $ac_c" 1>&6
5610 cat > conftest.$ac_ext <<EOF
5611 #line 5612 "configure"
5612 #include "confdefs.h"
5613 #include <sys/types.h>
5619 if { (eval echo configure:5620: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5621 eval "ac_cv_header_dirent_$ac_safe=yes"
5623 echo "configure: failed program was:" >&5
5624 cat conftest.$ac_ext >&5
5626 eval "ac_cv_header_dirent_$ac_safe=no"
5630 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
5631 echo "$ac_t""yes" 1>&6
5632 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5633 cat >> confdefs.h <<EOF
5634 #define $ac_tr_hdr 1
5636 ac_header_dirent=$ac_hdr; break
5638 echo "$ac_t""no" 1>&6
5641 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5642 if test $ac_header_dirent = dirent.h; then
5643 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
5644 echo "configure:5645: checking for opendir in -ldir" >&5
5645 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
5646 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5647 echo $ac_n "(cached) $ac_c" 1>&6
5649 ac_save_LIBS="$LIBS"
5651 cat > conftest.$ac_ext <<EOF
5652 #line 5653 "configure"
5653 #include "confdefs.h"
5654 /* Override any gcc2 internal prototype to avoid an error. */
5655 /* We use char because int might match the return type of a gcc2
5656 builtin and then its argument prototype would still apply. */
5663 if { (eval echo configure:5664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5665 eval "ac_cv_lib_$ac_lib_var=yes"
5667 echo "configure: failed program was:" >&5
5668 cat conftest.$ac_ext >&5
5670 eval "ac_cv_lib_$ac_lib_var=no"
5673 LIBS="$ac_save_LIBS"
5676 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5677 echo "$ac_t""yes" 1>&6
5680 echo "$ac_t""no" 1>&6
5684 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
5685 echo "configure:5686: checking for opendir in -lx" >&5
5686 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
5687 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5688 echo $ac_n "(cached) $ac_c" 1>&6
5690 ac_save_LIBS="$LIBS"
5692 cat > conftest.$ac_ext <<EOF
5693 #line 5694 "configure"
5694 #include "confdefs.h"
5695 /* Override any gcc2 internal prototype to avoid an error. */
5696 /* We use char because int might match the return type of a gcc2
5697 builtin and then its argument prototype would still apply. */
5704 if { (eval echo configure:5705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5706 eval "ac_cv_lib_$ac_lib_var=yes"
5708 echo "configure: failed program was:" >&5
5709 cat conftest.$ac_ext >&5
5711 eval "ac_cv_lib_$ac_lib_var=no"
5714 LIBS="$ac_save_LIBS"
5717 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5718 echo "$ac_t""yes" 1>&6
5721 echo "$ac_t""no" 1>&6
5726 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
5727 echo "configure:5728: checking whether stat file-mode macros are broken" >&5
5728 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
5729 echo $ac_n "(cached) $ac_c" 1>&6
5731 cat > conftest.$ac_ext <<EOF
5732 #line 5733 "configure"
5733 #include "confdefs.h"
5734 #include <sys/types.h>
5735 #include <sys/stat.h>
5737 #if defined(S_ISBLK) && defined(S_IFDIR)
5738 # if S_ISBLK (S_IFDIR)
5743 #if defined(S_ISBLK) && defined(S_IFCHR)
5744 # if S_ISBLK (S_IFCHR)
5749 #if defined(S_ISLNK) && defined(S_IFREG)
5750 # if S_ISLNK (S_IFREG)
5755 #if defined(S_ISSOCK) && defined(S_IFREG)
5756 # if S_ISSOCK (S_IFREG)
5762 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5763 egrep "You lose" >/dev/null 2>&1; then
5765 ac_cv_header_stat_broken=yes
5768 ac_cv_header_stat_broken=no
5774 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
5775 if test $ac_cv_header_stat_broken = yes; then
5776 cat >> confdefs.h <<\EOF
5777 #define STAT_MACROS_BROKEN 1
5782 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
5783 echo "configure:5784: checking for sys/wait.h that is POSIX.1 compatible" >&5
5784 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
5785 echo $ac_n "(cached) $ac_c" 1>&6
5787 cat > conftest.$ac_ext <<EOF
5788 #line 5789 "configure"
5789 #include "confdefs.h"
5790 #include <sys/types.h>
5791 #include <sys/wait.h>
5793 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5796 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5801 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5804 if { (eval echo configure:5805: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5806 ac_cv_header_sys_wait_h=yes
5808 echo "configure: failed program was:" >&5
5809 cat conftest.$ac_ext >&5
5811 ac_cv_header_sys_wait_h=no
5816 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
5817 if test $ac_cv_header_sys_wait_h = yes; then
5818 cat >> confdefs.h <<\EOF
5819 #define HAVE_SYS_WAIT_H 1
5824 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
5825 echo "configure:5826: checking whether time.h and sys/time.h may both be included" >&5
5826 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
5827 echo $ac_n "(cached) $ac_c" 1>&6
5829 cat > conftest.$ac_ext <<EOF
5830 #line 5831 "configure"
5831 #include "confdefs.h"
5832 #include <sys/types.h>
5833 #include <sys/time.h>
5839 if { (eval echo configure:5840: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5841 ac_cv_header_time=yes
5843 echo "configure: failed program was:" >&5
5844 cat conftest.$ac_ext >&5
5846 ac_cv_header_time=no
5851 echo "$ac_t""$ac_cv_header_time" 1>&6
5852 if test $ac_cv_header_time = yes; then
5853 cat >> confdefs.h <<\EOF
5854 #define TIME_WITH_SYS_TIME 1
5859 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
5860 echo "configure:5861: checking for st_blksize in struct stat" >&5
5861 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
5862 echo $ac_n "(cached) $ac_c" 1>&6
5864 cat > conftest.$ac_ext <<EOF
5865 #line 5866 "configure"
5866 #include "confdefs.h"
5867 #include <sys/types.h>
5868 #include <sys/stat.h>
5870 struct stat s; s.st_blksize;
5873 if { (eval echo configure:5874: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5875 ac_cv_struct_st_blksize=yes
5877 echo "configure: failed program was:" >&5
5878 cat conftest.$ac_ext >&5
5880 ac_cv_struct_st_blksize=no
5885 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
5886 if test $ac_cv_struct_st_blksize = yes; then
5887 cat >> confdefs.h <<\EOF
5888 #define HAVE_ST_BLKSIZE 1
5893 echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
5894 echo "configure:5895: checking for st_blocks in struct stat" >&5
5895 if eval "test \"`echo '$''{'ac_cv_struct_st_blocks'+set}'`\" = set"; then
5896 echo $ac_n "(cached) $ac_c" 1>&6
5898 cat > conftest.$ac_ext <<EOF
5899 #line 5900 "configure"
5900 #include "confdefs.h"
5901 #include <sys/types.h>
5902 #include <sys/stat.h>
5904 struct stat s; s.st_blocks;
5907 if { (eval echo configure:5908: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5909 ac_cv_struct_st_blocks=yes
5911 echo "configure: failed program was:" >&5
5912 cat conftest.$ac_ext >&5
5914 ac_cv_struct_st_blocks=no
5919 echo "$ac_t""$ac_cv_struct_st_blocks" 1>&6
5920 if test $ac_cv_struct_st_blocks = yes; then
5921 cat >> confdefs.h <<\EOF
5922 #define HAVE_ST_BLOCKS 1
5926 LIBOBJS="$LIBOBJS fileblocks.${ac_objext}"
5929 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
5930 echo "configure:5931: checking whether struct tm is in sys/time.h or time.h" >&5
5931 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
5932 echo $ac_n "(cached) $ac_c" 1>&6
5934 cat > conftest.$ac_ext <<EOF
5935 #line 5936 "configure"
5936 #include "confdefs.h"
5937 #include <sys/types.h>
5940 struct tm *tp; tp->tm_sec;
5943 if { (eval echo configure:5944: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5945 ac_cv_struct_tm=time.h
5947 echo "configure: failed program was:" >&5
5948 cat conftest.$ac_ext >&5
5950 ac_cv_struct_tm=sys/time.h
5955 echo "$ac_t""$ac_cv_struct_tm" 1>&6
5956 if test $ac_cv_struct_tm = sys/time.h; then
5957 cat >> confdefs.h <<\EOF
5958 #define TM_IN_SYS_TIME 1
5963 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
5964 echo "configure:5965: checking for tm_zone in struct tm" >&5
5965 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
5966 echo $ac_n "(cached) $ac_c" 1>&6
5968 cat > conftest.$ac_ext <<EOF
5969 #line 5970 "configure"
5970 #include "confdefs.h"
5971 #include <sys/types.h>
5972 #include <$ac_cv_struct_tm>
5974 struct tm tm; tm.tm_zone;
5977 if { (eval echo configure:5978: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5979 ac_cv_struct_tm_zone=yes
5981 echo "configure: failed program was:" >&5
5982 cat conftest.$ac_ext >&5
5984 ac_cv_struct_tm_zone=no
5989 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
5990 if test "$ac_cv_struct_tm_zone" = yes; then
5991 cat >> confdefs.h <<\EOF
5992 #define HAVE_TM_ZONE 1
5996 echo $ac_n "checking for tzname""... $ac_c" 1>&6
5997 echo "configure:5998: checking for tzname" >&5
5998 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
5999 echo $ac_n "(cached) $ac_c" 1>&6
6001 cat > conftest.$ac_ext <<EOF
6002 #line 6003 "configure"
6003 #include "confdefs.h"
6005 #ifndef tzname /* For SGI. */
6006 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
6012 if { (eval echo configure:6013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6014 ac_cv_var_tzname=yes
6016 echo "configure: failed program was:" >&5
6017 cat conftest.$ac_ext >&5
6024 echo "$ac_t""$ac_cv_var_tzname" 1>&6
6025 if test $ac_cv_var_tzname = yes; then
6026 cat >> confdefs.h <<\EOF
6027 #define HAVE_TZNAME 1
6034 echo $ac_n "checking for utime.h""... $ac_c" 1>&6
6035 echo "configure:6036: checking for utime.h" >&5
6036 if eval "test \"`echo '$''{'ba_cv_header_utime_h'+set}'`\" = set"; then
6037 echo $ac_n "(cached) $ac_c" 1>&6
6039 cat > conftest.$ac_ext <<EOF
6040 #line 6041 "configure"
6041 #include "confdefs.h"
6043 #include <sys/types.h>
6049 if { (eval echo configure:6050: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6051 ba_cv_header_utime_h=yes
6053 echo "configure: failed program was:" >&5
6054 cat conftest.$ac_ext >&5
6056 ba_cv_header_utime_h=no
6061 echo "$ac_t""$ba_cv_header_utime_h" 1>&6
6062 test $ba_cv_header_utime_h = yes && cat >> confdefs.h <<\EOF
6063 #define HAVE_UTIME_H 1
6067 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
6068 echo "configure:6069: checking for socklen_t" >&5
6069 if eval "test \"`echo '$''{'ba_cv_header_socklen_t'+set}'`\" = set"; then
6070 echo $ac_n "(cached) $ac_c" 1>&6
6072 cat > conftest.$ac_ext <<EOF
6073 #line 6074 "configure"
6074 #include "confdefs.h"
6076 #include <sys/types.h>
6077 #include <sys/socket.h>
6082 if { (eval echo configure:6083: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6084 ba_cv_header_socklen_t=yes
6086 echo "configure: failed program was:" >&5
6087 cat conftest.$ac_ext >&5
6089 ba_cv_header_socklen_t=no
6094 echo "$ac_t""$ba_cv_header_socklen_t" 1>&6
6095 test $ba_cv_header_socklen_t = yes && cat >> confdefs.h <<\EOF
6096 #define HAVE_SOCKLEN_T 1
6100 echo $ac_n "checking for bigendian""... $ac_c" 1>&6
6101 echo "configure:6102: checking for bigendian" >&5
6102 if eval "test \"`echo '$''{'ba_cv_bigendian'+set}'`\" = set"; then
6103 echo $ac_n "(cached) $ac_c" 1>&6
6105 if test "$cross_compiling" = yes; then
6108 cat > conftest.$ac_ext <<EOF
6109 #line 6110 "configure"
6110 #include "confdefs.h"
6111 main(){long a=1L; char *p=(char *)&a; exit(*p);}
6113 if { (eval echo configure:6114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6117 echo "configure: failed program was:" >&5
6118 cat conftest.$ac_ext >&5
6127 echo "$ac_t""$ba_cv_bigendian" 1>&6
6128 test $ba_cv_bigendian = yes && cat >> confdefs.h <<\EOF
6129 #define HAVE_BIGENDIAN 1
6134 echo $ac_n "checking for working const""... $ac_c" 1>&6
6135 echo "configure:6136: checking for working const" >&5
6136 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
6137 echo $ac_n "(cached) $ac_c" 1>&6
6139 cat > conftest.$ac_ext <<EOF
6140 #line 6141 "configure"
6141 #include "confdefs.h"
6145 /* Ultrix mips cc rejects this. */
6146 typedef int charset[2]; const charset x;
6147 /* SunOS 4.1.1 cc rejects this. */
6148 char const *const *ccp;
6150 /* NEC SVR4.0.2 mips cc rejects this. */
6151 struct point {int x, y;};
6152 static struct point const zero = {0,0};
6153 /* AIX XL C 1.02.0.0 rejects this.
6154 It does not let you subtract one const X* pointer from another in an arm
6155 of an if-expression whose if-part is not a constant expression */
6156 const char *g = "string";
6157 ccp = &g + (g ? g-g : 0);
6158 /* HPUX 7.0 cc rejects these. */
6161 ccp = (char const *const *) p;
6162 { /* SCO 3.2v4 cc rejects this. */
6164 char const *s = 0 ? (char *) 0 : (char const *) 0;
6168 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6170 const int *foo = &x[0];
6173 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6174 typedef const int *iptr;
6178 { /* AIX XL C 1.02.0.0 rejects this saying
6179 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6180 struct s { int j; const int *ap[3]; };
6181 struct s *b; b->j = 5;
6183 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6189 if { (eval echo configure:6190: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6193 echo "configure: failed program was:" >&5
6194 cat conftest.$ac_ext >&5
6201 echo "$ac_t""$ac_cv_c_const" 1>&6
6202 if test $ac_cv_c_const = no; then
6203 cat >> confdefs.h <<\EOF
6211 echo $ac_n "checking how to get filesystem type""... $ac_c" 1>&6
6212 echo "configure:6213: checking how to get filesystem type" >&5
6214 # The order of these tests is important.
6215 cat > conftest.$ac_ext <<EOF
6216 #line 6217 "configure"
6217 #include "confdefs.h"
6218 #include <sys/statvfs.h>
6219 #include <sys/fstyp.h>
6221 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6222 { (eval echo configure:6223: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6223 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6224 if test -z "$ac_err"; then
6226 cat >> confdefs.h <<\EOF
6227 #define FSTYPE_STATVFS 1
6232 echo "configure: failed program was:" >&5
6233 cat conftest.$ac_ext >&5
6236 if test $fstype = no; then
6237 cat > conftest.$ac_ext <<EOF
6238 #line 6239 "configure"
6239 #include "confdefs.h"
6240 #include <sys/statfs.h>
6241 #include <sys/fstyp.h>
6243 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6244 { (eval echo configure:6245: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6245 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6246 if test -z "$ac_err"; then
6248 cat >> confdefs.h <<\EOF
6249 #define FSTYPE_USG_STATFS 1
6254 echo "configure: failed program was:" >&5
6255 cat conftest.$ac_ext >&5
6259 if test $fstype = no; then
6260 cat > conftest.$ac_ext <<EOF
6261 #line 6262 "configure"
6262 #include "confdefs.h"
6263 #include <sys/statfs.h>
6264 #include <sys/vmount.h>
6266 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6267 { (eval echo configure:6268: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6268 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6269 if test -z "$ac_err"; then
6271 cat >> confdefs.h <<\EOF
6272 #define FSTYPE_AIX_STATFS 1
6277 echo "configure: failed program was:" >&5
6278 cat conftest.$ac_ext >&5
6282 if test $fstype = no; then
6283 cat > conftest.$ac_ext <<EOF
6284 #line 6285 "configure"
6285 #include "confdefs.h"
6288 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6289 { (eval echo configure:6290: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6290 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6291 if test -z "$ac_err"; then
6293 cat >> confdefs.h <<\EOF
6294 #define FSTYPE_MNTENT 1
6299 echo "configure: failed program was:" >&5
6300 cat conftest.$ac_ext >&5
6304 if test $fstype = no; then
6305 cat > conftest.$ac_ext <<EOF
6306 #line 6307 "configure"
6307 #include "confdefs.h"
6308 #include <sys/mount.h>
6310 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6311 egrep "f_type;" >/dev/null 2>&1; then
6313 cat >> confdefs.h <<\EOF
6314 #define FSTYPE_STATFS 1
6321 if test $fstype = no; then
6322 cat > conftest.$ac_ext <<EOF
6323 #line 6324 "configure"
6324 #include "confdefs.h"
6325 #include <sys/mount.h>
6326 #include <sys/fs_types.h>
6328 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6329 { (eval echo configure:6330: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6330 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6331 if test -z "$ac_err"; then
6333 cat >> confdefs.h <<\EOF
6334 #define FSTYPE_GETMNT 1
6339 echo "configure: failed program was:" >&5
6340 cat conftest.$ac_ext >&5
6344 echo "$ac_t""$fstype" 1>&6
6346 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
6347 echo "configure:6348: checking return type of signal handlers" >&5
6348 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
6349 echo $ac_n "(cached) $ac_c" 1>&6
6351 cat > conftest.$ac_ext <<EOF
6352 #line 6353 "configure"
6353 #include "confdefs.h"
6354 #include <sys/types.h>
6360 extern "C" void (*signal (int, void (*)(int)))(int);
6362 void (*signal ()) ();
6369 if { (eval echo configure:6370: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6371 ac_cv_type_signal=void
6373 echo "configure: failed program was:" >&5
6374 cat conftest.$ac_ext >&5
6376 ac_cv_type_signal=int
6381 echo "$ac_t""$ac_cv_type_signal" 1>&6
6382 cat >> confdefs.h <<EOF
6383 #define RETSIGTYPE $ac_cv_type_signal
6388 echo $ac_n "checking for type of signal functions""... $ac_c" 1>&6
6389 echo "configure:6390: checking for type of signal functions" >&5
6390 if eval "test \"`echo '$''{'bash_cv_signal_vintage'+set}'`\" = set"; then
6391 echo $ac_n "(cached) $ac_c" 1>&6
6394 cat > conftest.$ac_ext <<EOF
6395 #line 6396 "configure"
6396 #include "confdefs.h"
6401 struct sigaction sa;
6402 sigemptyset(&ss); sigsuspend(&ss);
6403 sigaction(SIGINT, &sa, (struct sigaction *) 0);
6404 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
6408 if { (eval echo configure:6409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6410 bash_cv_signal_vintage=posix
6412 echo "configure: failed program was:" >&5
6413 cat conftest.$ac_ext >&5
6416 cat > conftest.$ac_ext <<EOF
6417 #line 6418 "configure"
6418 #include "confdefs.h"
6422 int mask = sigmask(SIGINT);
6423 sigsetmask(mask); sigblock(mask); sigpause(mask);
6427 if { (eval echo configure:6428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6429 bash_cv_signal_vintage=4.2bsd
6431 echo "configure: failed program was:" >&5
6432 cat conftest.$ac_ext >&5
6435 cat > conftest.$ac_ext <<EOF
6436 #line 6437 "configure"
6437 #include "confdefs.h"
6440 RETSIGTYPE foo() { }
6443 int mask = sigmask(SIGINT);
6444 sigset(SIGINT, foo); sigrelse(SIGINT);
6445 sighold(SIGINT); sigpause(SIGINT);
6449 if { (eval echo configure:6450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6451 bash_cv_signal_vintage=svr3
6453 echo "configure: failed program was:" >&5
6454 cat conftest.$ac_ext >&5
6456 bash_cv_signal_vintage=v7
6469 echo "$ac_t""$bash_cv_signal_vintage" 1>&6
6470 if test "$bash_cv_signal_vintage" = posix; then
6471 cat >> confdefs.h <<\EOF
6472 #define HAVE_POSIX_SIGNALS 1
6475 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
6476 cat >> confdefs.h <<\EOF
6477 #define HAVE_BSD_SIGNALS 1
6480 elif test "$bash_cv_signal_vintage" = svr3; then
6481 cat >> confdefs.h <<\EOF
6482 #define HAVE_USG_SIGHOLD 1
6487 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
6488 echo "configure:6489: checking for mode_t" >&5
6489 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
6490 echo $ac_n "(cached) $ac_c" 1>&6
6492 cat > conftest.$ac_ext <<EOF
6493 #line 6494 "configure"
6494 #include "confdefs.h"
6495 #include <sys/types.h>
6501 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6502 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6504 ac_cv_type_mode_t=yes
6507 ac_cv_type_mode_t=no
6512 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
6513 if test $ac_cv_type_mode_t = no; then
6514 cat >> confdefs.h <<\EOF
6520 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
6521 echo "configure:6522: checking for uid_t in sys/types.h" >&5
6522 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
6523 echo $ac_n "(cached) $ac_c" 1>&6
6525 cat > conftest.$ac_ext <<EOF
6526 #line 6527 "configure"
6527 #include "confdefs.h"
6528 #include <sys/types.h>
6530 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6531 egrep "uid_t" >/dev/null 2>&1; then
6533 ac_cv_type_uid_t=yes
6542 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
6543 if test $ac_cv_type_uid_t = no; then
6544 cat >> confdefs.h <<\EOF
6548 cat >> confdefs.h <<\EOF
6554 echo $ac_n "checking for size_t""... $ac_c" 1>&6
6555 echo "configure:6556: checking for size_t" >&5
6556 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
6557 echo $ac_n "(cached) $ac_c" 1>&6
6559 cat > conftest.$ac_ext <<EOF
6560 #line 6561 "configure"
6561 #include "confdefs.h"
6562 #include <sys/types.h>
6568 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6569 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6571 ac_cv_type_size_t=yes
6574 ac_cv_type_size_t=no
6579 echo "$ac_t""$ac_cv_type_size_t" 1>&6
6580 if test $ac_cv_type_size_t = no; then
6581 cat >> confdefs.h <<\EOF
6582 #define size_t unsigned
6587 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
6588 echo "configure:6589: checking for pid_t" >&5
6589 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
6590 echo $ac_n "(cached) $ac_c" 1>&6
6592 cat > conftest.$ac_ext <<EOF
6593 #line 6594 "configure"
6594 #include "confdefs.h"
6595 #include <sys/types.h>
6601 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6602 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6604 ac_cv_type_pid_t=yes
6612 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
6613 if test $ac_cv_type_pid_t = no; then
6614 cat >> confdefs.h <<\EOF
6620 echo $ac_n "checking for off_t""... $ac_c" 1>&6
6621 echo "configure:6622: checking for off_t" >&5
6622 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
6623 echo $ac_n "(cached) $ac_c" 1>&6
6625 cat > conftest.$ac_ext <<EOF
6626 #line 6627 "configure"
6627 #include "confdefs.h"
6628 #include <sys/types.h>
6634 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6635 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6637 ac_cv_type_off_t=yes
6645 echo "$ac_t""$ac_cv_type_off_t" 1>&6
6646 if test $ac_cv_type_off_t = no; then
6647 cat >> confdefs.h <<\EOF
6653 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
6654 echo "configure:6655: checking for ino_t" >&5
6655 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
6656 echo $ac_n "(cached) $ac_c" 1>&6
6658 cat > conftest.$ac_ext <<EOF
6659 #line 6660 "configure"
6660 #include "confdefs.h"
6661 #include <sys/types.h>
6667 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6668 egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6670 ac_cv_type_ino_t=yes
6678 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
6679 if test $ac_cv_type_ino_t = no; then
6680 cat >> confdefs.h <<\EOF
6681 #define ino_t unsigned long
6686 echo $ac_n "checking for dev_t""... $ac_c" 1>&6
6687 echo "configure:6688: checking for dev_t" >&5
6688 if eval "test \"`echo '$''{'ac_cv_type_dev_t'+set}'`\" = set"; then
6689 echo $ac_n "(cached) $ac_c" 1>&6
6691 cat > conftest.$ac_ext <<EOF
6692 #line 6693 "configure"
6693 #include "confdefs.h"
6694 #include <sys/types.h>
6700 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6701 egrep "(^|[^a-zA-Z_0-9])dev_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6703 ac_cv_type_dev_t=yes
6711 echo "$ac_t""$ac_cv_type_dev_t" 1>&6
6712 if test $ac_cv_type_dev_t = no; then
6713 cat >> confdefs.h <<\EOF
6714 #define dev_t unsigned long
6719 echo $ac_n "checking for daddr_t""... $ac_c" 1>&6
6720 echo "configure:6721: checking for daddr_t" >&5
6721 if eval "test \"`echo '$''{'ac_cv_type_daddr_t'+set}'`\" = set"; then
6722 echo $ac_n "(cached) $ac_c" 1>&6
6724 cat > conftest.$ac_ext <<EOF
6725 #line 6726 "configure"
6726 #include "confdefs.h"
6727 #include <sys/types.h>
6733 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6734 egrep "(^|[^a-zA-Z_0-9])daddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6736 ac_cv_type_daddr_t=yes
6739 ac_cv_type_daddr_t=no
6744 echo "$ac_t""$ac_cv_type_daddr_t" 1>&6
6745 if test $ac_cv_type_daddr_t = no; then
6746 cat >> confdefs.h <<\EOF
6747 #define daddr_t long
6752 echo $ac_n "checking for major_t""... $ac_c" 1>&6
6753 echo "configure:6754: checking for major_t" >&5
6754 if eval "test \"`echo '$''{'ac_cv_type_major_t'+set}'`\" = set"; then
6755 echo $ac_n "(cached) $ac_c" 1>&6
6757 cat > conftest.$ac_ext <<EOF
6758 #line 6759 "configure"
6759 #include "confdefs.h"
6760 #include <sys/types.h>
6766 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6767 egrep "(^|[^a-zA-Z_0-9])major_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6769 ac_cv_type_major_t=yes
6772 ac_cv_type_major_t=no
6777 echo "$ac_t""$ac_cv_type_major_t" 1>&6
6778 if test $ac_cv_type_major_t = no; then
6779 cat >> confdefs.h <<\EOF
6785 echo $ac_n "checking for minor_t""... $ac_c" 1>&6
6786 echo "configure:6787: checking for minor_t" >&5
6787 if eval "test \"`echo '$''{'ac_cv_type_minor_t'+set}'`\" = set"; then
6788 echo $ac_n "(cached) $ac_c" 1>&6
6790 cat > conftest.$ac_ext <<EOF
6791 #line 6792 "configure"
6792 #include "confdefs.h"
6793 #include <sys/types.h>
6799 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6800 egrep "(^|[^a-zA-Z_0-9])minor_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6802 ac_cv_type_minor_t=yes
6805 ac_cv_type_minor_t=no
6810 echo "$ac_t""$ac_cv_type_minor_t" 1>&6
6811 if test $ac_cv_type_minor_t = no; then
6812 cat >> confdefs.h <<\EOF
6818 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
6819 echo "configure:6820: checking for ssize_t" >&5
6820 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
6821 echo $ac_n "(cached) $ac_c" 1>&6
6823 cat > conftest.$ac_ext <<EOF
6824 #line 6825 "configure"
6825 #include "confdefs.h"
6826 #include <sys/types.h>
6832 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6833 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6835 ac_cv_type_ssize_t=yes
6838 ac_cv_type_ssize_t=no
6843 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
6844 if test $ac_cv_type_ssize_t = no; then
6845 cat >> confdefs.h <<\EOF
6851 echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
6852 echo "configure:6853: checking for st_blocks in struct stat" >&5
6853 if eval "test \"`echo '$''{'ac_cv_struct_st_blocks'+set}'`\" = set"; then
6854 echo $ac_n "(cached) $ac_c" 1>&6
6856 cat > conftest.$ac_ext <<EOF
6857 #line 6858 "configure"
6858 #include "confdefs.h"
6859 #include <sys/types.h>
6860 #include <sys/stat.h>
6862 struct stat s; s.st_blocks;
6865 if { (eval echo configure:6866: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6867 ac_cv_struct_st_blocks=yes
6869 echo "configure: failed program was:" >&5
6870 cat conftest.$ac_ext >&5
6872 ac_cv_struct_st_blocks=no
6877 echo "$ac_t""$ac_cv_struct_st_blocks" 1>&6
6878 if test $ac_cv_struct_st_blocks = yes; then
6879 cat >> confdefs.h <<\EOF
6880 #define HAVE_ST_BLOCKS 1
6884 LIBOBJS="$LIBOBJS fileblocks.${ac_objext}"
6887 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
6888 echo "configure:6889: checking for st_rdev in struct stat" >&5
6889 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
6890 echo $ac_n "(cached) $ac_c" 1>&6
6892 cat > conftest.$ac_ext <<EOF
6893 #line 6894 "configure"
6894 #include "confdefs.h"
6895 #include <sys/types.h>
6896 #include <sys/stat.h>
6898 struct stat s; s.st_rdev;
6901 if { (eval echo configure:6902: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6903 ac_cv_struct_st_rdev=yes
6905 echo "configure: failed program was:" >&5
6906 cat conftest.$ac_ext >&5
6908 ac_cv_struct_st_rdev=no
6913 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
6914 if test $ac_cv_struct_st_rdev = yes; then
6915 cat >> confdefs.h <<\EOF
6916 #define HAVE_ST_RDEV 1
6921 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
6922 echo "configure:6923: checking whether struct tm is in sys/time.h or time.h" >&5
6923 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
6924 echo $ac_n "(cached) $ac_c" 1>&6
6926 cat > conftest.$ac_ext <<EOF
6927 #line 6928 "configure"
6928 #include "confdefs.h"
6929 #include <sys/types.h>
6932 struct tm *tp; tp->tm_sec;
6935 if { (eval echo configure:6936: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6937 ac_cv_struct_tm=time.h
6939 echo "configure: failed program was:" >&5
6940 cat conftest.$ac_ext >&5
6942 ac_cv_struct_tm=sys/time.h
6947 echo "$ac_t""$ac_cv_struct_tm" 1>&6
6948 if test $ac_cv_struct_tm = sys/time.h; then
6949 cat >> confdefs.h <<\EOF
6950 #define TM_IN_SYS_TIME 1
6955 echo $ac_n "checking for working const""... $ac_c" 1>&6
6956 echo "configure:6957: checking for working const" >&5
6957 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
6958 echo $ac_n "(cached) $ac_c" 1>&6
6960 cat > conftest.$ac_ext <<EOF
6961 #line 6962 "configure"
6962 #include "confdefs.h"
6966 /* Ultrix mips cc rejects this. */
6967 typedef int charset[2]; const charset x;
6968 /* SunOS 4.1.1 cc rejects this. */
6969 char const *const *ccp;
6971 /* NEC SVR4.0.2 mips cc rejects this. */
6972 struct point {int x, y;};
6973 static struct point const zero = {0,0};
6974 /* AIX XL C 1.02.0.0 rejects this.
6975 It does not let you subtract one const X* pointer from another in an arm
6976 of an if-expression whose if-part is not a constant expression */
6977 const char *g = "string";
6978 ccp = &g + (g ? g-g : 0);
6979 /* HPUX 7.0 cc rejects these. */
6982 ccp = (char const *const *) p;
6983 { /* SCO 3.2v4 cc rejects this. */
6985 char const *s = 0 ? (char *) 0 : (char const *) 0;
6989 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6991 const int *foo = &x[0];
6994 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6995 typedef const int *iptr;
6999 { /* AIX XL C 1.02.0.0 rejects this saying
7000 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7001 struct s { int j; const int *ap[3]; };
7002 struct s *b; b->j = 5;
7004 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7010 if { (eval echo configure:7011: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7014 echo "configure: failed program was:" >&5
7015 cat conftest.$ac_ext >&5
7022 echo "$ac_t""$ac_cv_c_const" 1>&6
7023 if test $ac_cv_c_const = no; then
7024 cat >> confdefs.h <<\EOF
7032 echo $ac_n "checking size of char""... $ac_c" 1>&6
7033 echo "configure:7034: checking size of char" >&5
7034 if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
7035 echo $ac_n "(cached) $ac_c" 1>&6
7037 if test "$cross_compiling" = yes; then
7040 cat > conftest.$ac_ext <<EOF
7041 #line 7042 "configure"
7042 #include "confdefs.h"
7046 FILE *f=fopen("conftestval", "w");
7048 fprintf(f, "%d\n", sizeof(char));
7052 if { (eval echo configure:7053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7054 ac_cv_sizeof_char=`cat conftestval`
7056 echo "configure: failed program was:" >&5
7057 cat conftest.$ac_ext >&5
7065 echo "$ac_t""$ac_cv_sizeof_char" 1>&6
7066 cat >> confdefs.h <<EOF
7067 #define SIZEOF_CHAR $ac_cv_sizeof_char
7071 echo $ac_n "checking size of short int""... $ac_c" 1>&6
7072 echo "configure:7073: checking size of short int" >&5
7073 if eval "test \"`echo '$''{'ac_cv_sizeof_short_int'+set}'`\" = set"; then
7074 echo $ac_n "(cached) $ac_c" 1>&6
7076 if test "$cross_compiling" = yes; then
7077 ac_cv_sizeof_short_int=2
7079 cat > conftest.$ac_ext <<EOF
7080 #line 7081 "configure"
7081 #include "confdefs.h"
7085 FILE *f=fopen("conftestval", "w");
7087 fprintf(f, "%d\n", sizeof(short int));
7091 if { (eval echo configure:7092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7093 ac_cv_sizeof_short_int=`cat conftestval`
7095 echo "configure: failed program was:" >&5
7096 cat conftest.$ac_ext >&5
7098 ac_cv_sizeof_short_int=0
7104 echo "$ac_t""$ac_cv_sizeof_short_int" 1>&6
7105 cat >> confdefs.h <<EOF
7106 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
7110 echo $ac_n "checking size of int""... $ac_c" 1>&6
7111 echo "configure:7112: checking size of int" >&5
7112 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
7113 echo $ac_n "(cached) $ac_c" 1>&6
7115 if test "$cross_compiling" = yes; then
7118 cat > conftest.$ac_ext <<EOF
7119 #line 7120 "configure"
7120 #include "confdefs.h"
7124 FILE *f=fopen("conftestval", "w");
7126 fprintf(f, "%d\n", sizeof(int));
7130 if { (eval echo configure:7131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7132 ac_cv_sizeof_int=`cat conftestval`
7134 echo "configure: failed program was:" >&5
7135 cat conftest.$ac_ext >&5
7143 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
7144 cat >> confdefs.h <<EOF
7145 #define SIZEOF_INT $ac_cv_sizeof_int
7149 echo $ac_n "checking size of long int""... $ac_c" 1>&6
7150 echo "configure:7151: checking size of long int" >&5
7151 if eval "test \"`echo '$''{'ac_cv_sizeof_long_int'+set}'`\" = set"; then
7152 echo $ac_n "(cached) $ac_c" 1>&6
7154 if test "$cross_compiling" = yes; then
7155 ac_cv_sizeof_long_int=4
7157 cat > conftest.$ac_ext <<EOF
7158 #line 7159 "configure"
7159 #include "confdefs.h"
7163 FILE *f=fopen("conftestval", "w");
7165 fprintf(f, "%d\n", sizeof(long int));
7169 if { (eval echo configure:7170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7171 ac_cv_sizeof_long_int=`cat conftestval`
7173 echo "configure: failed program was:" >&5
7174 cat conftest.$ac_ext >&5
7176 ac_cv_sizeof_long_int=0
7182 echo "$ac_t""$ac_cv_sizeof_long_int" 1>&6
7183 cat >> confdefs.h <<EOF
7184 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
7188 echo $ac_n "checking size of long long int""... $ac_c" 1>&6
7189 echo "configure:7190: checking size of long long int" >&5
7190 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long_int'+set}'`\" = set"; then
7191 echo $ac_n "(cached) $ac_c" 1>&6
7193 if test "$cross_compiling" = yes; then
7194 ac_cv_sizeof_long_long_int=8
7196 cat > conftest.$ac_ext <<EOF
7197 #line 7198 "configure"
7198 #include "confdefs.h"
7202 FILE *f=fopen("conftestval", "w");
7204 fprintf(f, "%d\n", sizeof(long long int));
7208 if { (eval echo configure:7209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7210 ac_cv_sizeof_long_long_int=`cat conftestval`
7212 echo "configure: failed program was:" >&5
7213 cat conftest.$ac_ext >&5
7215 ac_cv_sizeof_long_long_int=0
7221 echo "$ac_t""$ac_cv_sizeof_long_long_int" 1>&6
7222 cat >> confdefs.h <<EOF
7223 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
7227 echo $ac_n "checking size of int *""... $ac_c" 1>&6
7228 echo "configure:7229: checking size of int *" >&5
7229 if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
7230 echo $ac_n "(cached) $ac_c" 1>&6
7232 if test "$cross_compiling" = yes; then
7233 ac_cv_sizeof_int_p=4
7235 cat > conftest.$ac_ext <<EOF
7236 #line 7237 "configure"
7237 #include "confdefs.h"
7241 FILE *f=fopen("conftestval", "w");
7243 fprintf(f, "%d\n", sizeof(int *));
7247 if { (eval echo configure:7248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7249 ac_cv_sizeof_int_p=`cat conftestval`
7251 echo "configure: failed program was:" >&5
7252 cat conftest.$ac_ext >&5
7254 ac_cv_sizeof_int_p=0
7260 echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
7261 cat >> confdefs.h <<EOF
7262 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
7267 # Check for sys/types.h types
7268 echo $ac_n "checking for u_int type""... $ac_c" 1>&6
7269 echo "configure:7270: checking for u_int type" >&5
7270 if eval "test \"`echo '$''{'ac_cv_have_u_int'+set}'`\" = set"; then
7271 echo $ac_n "(cached) $ac_c" 1>&6
7274 cat > conftest.$ac_ext <<EOF
7275 #line 7276 "configure"
7276 #include "confdefs.h"
7277 #include <sys/types.h>
7282 if { (eval echo configure:7283: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7284 ac_cv_have_u_int="yes"
7286 echo "configure: failed program was:" >&5
7287 cat conftest.$ac_ext >&5
7289 ac_cv_have_u_int="no"
7296 echo "$ac_t""$ac_cv_have_u_int" 1>&6
7297 if test "x$ac_cv_have_u_int" = "xyes" ; then
7298 cat >> confdefs.h <<\EOF
7299 #define HAVE_U_INT 1
7305 echo $ac_n "checking for intmax_t type""... $ac_c" 1>&6
7306 echo "configure:7307: checking for intmax_t type" >&5
7307 if eval "test \"`echo '$''{'ac_cv_have_intmax_t'+set}'`\" = set"; then
7308 echo $ac_n "(cached) $ac_c" 1>&6
7311 cat > conftest.$ac_ext <<EOF
7312 #line 7313 "configure"
7313 #include "confdefs.h"
7314 #include <sys/types.h>
7319 if { (eval echo configure:7320: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7321 ac_cv_have_intmax_t="yes"
7323 echo "configure: failed program was:" >&5
7324 cat conftest.$ac_ext >&5
7327 cat > conftest.$ac_ext <<EOF
7328 #line 7329 "configure"
7329 #include "confdefs.h"
7335 if { (eval echo configure:7336: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7337 ac_cv_have_intmax_t="yes"
7339 echo "configure: failed program was:" >&5
7340 cat conftest.$ac_ext >&5
7342 ac_cv_have_intmax_t="no"
7354 echo "$ac_t""$ac_cv_have_intmax_t" 1>&6
7355 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
7356 cat >> confdefs.h <<\EOF
7357 #define HAVE_INTMAX_T 1
7364 echo $ac_n "checking for u_intmax_t type""... $ac_c" 1>&6
7365 echo "configure:7366: checking for u_intmax_t type" >&5
7366 if eval "test \"`echo '$''{'ac_cv_have_u_intmax_t'+set}'`\" = set"; then
7367 echo $ac_n "(cached) $ac_c" 1>&6
7370 cat > conftest.$ac_ext <<EOF
7371 #line 7372 "configure"
7372 #include "confdefs.h"
7373 #include <sys/types.h>
7375 u_intmax_t a; a = 1;
7378 if { (eval echo configure:7379: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7380 ac_cv_have_u_intmax_t="yes"
7382 echo "configure: failed program was:" >&5
7383 cat conftest.$ac_ext >&5
7386 cat > conftest.$ac_ext <<EOF
7387 #line 7388 "configure"
7388 #include "confdefs.h"
7391 u_intmax_t a; a = 1;
7394 if { (eval echo configure:7395: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7396 ac_cv_have_u_intmax_t="yes"
7398 echo "configure: failed program was:" >&5
7399 cat conftest.$ac_ext >&5
7401 ac_cv_have_u_intmax_t="no"
7412 echo "$ac_t""$ac_cv_have_u_intmax_t" 1>&6
7413 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
7414 cat >> confdefs.h <<\EOF
7415 #define HAVE_U_INTMAX_T 1
7422 echo $ac_n "checking for intXX_t types""... $ac_c" 1>&6
7423 echo "configure:7424: checking for intXX_t types" >&5
7424 if eval "test \"`echo '$''{'ac_cv_have_intxx_t'+set}'`\" = set"; then
7425 echo $ac_n "(cached) $ac_c" 1>&6
7428 cat > conftest.$ac_ext <<EOF
7429 #line 7430 "configure"
7430 #include "confdefs.h"
7431 #include <sys/types.h>
7433 int8_t a; int16_t b; int32_t c; a = b = c = 1;
7436 if { (eval echo configure:7437: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7438 ac_cv_have_intxx_t="yes"
7440 echo "configure: failed program was:" >&5
7441 cat conftest.$ac_ext >&5
7443 ac_cv_have_intxx_t="no"
7450 echo "$ac_t""$ac_cv_have_intxx_t" 1>&6
7451 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
7452 cat >> confdefs.h <<\EOF
7453 #define HAVE_INTXX_T 1
7459 echo $ac_n "checking for int64_t type""... $ac_c" 1>&6
7460 echo "configure:7461: checking for int64_t type" >&5
7461 if eval "test \"`echo '$''{'ac_cv_have_int64_t'+set}'`\" = set"; then
7462 echo $ac_n "(cached) $ac_c" 1>&6
7465 cat > conftest.$ac_ext <<EOF
7466 #line 7467 "configure"
7467 #include "confdefs.h"
7468 #include <sys/types.h>
7473 if { (eval echo configure:7474: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7475 ac_cv_have_int64_t="yes"
7477 echo "configure: failed program was:" >&5
7478 cat conftest.$ac_ext >&5
7480 ac_cv_have_int64_t="no"
7487 echo "$ac_t""$ac_cv_have_int64_t" 1>&6
7488 if test "x$ac_cv_have_int64_t" = "xyes" ; then
7489 cat >> confdefs.h <<\EOF
7490 #define HAVE_INT64_T 1
7496 echo $ac_n "checking for u_intXX_t types""... $ac_c" 1>&6
7497 echo "configure:7498: checking for u_intXX_t types" >&5
7498 if eval "test \"`echo '$''{'ac_cv_have_u_intxx_t'+set}'`\" = set"; then
7499 echo $ac_n "(cached) $ac_c" 1>&6
7502 cat > conftest.$ac_ext <<EOF
7503 #line 7504 "configure"
7504 #include "confdefs.h"
7505 #include <sys/types.h>
7507 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
7510 if { (eval echo configure:7511: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7512 ac_cv_have_u_intxx_t="yes"
7514 echo "configure: failed program was:" >&5
7515 cat conftest.$ac_ext >&5
7517 ac_cv_have_u_intxx_t="no"
7524 echo "$ac_t""$ac_cv_have_u_intxx_t" 1>&6
7525 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
7526 cat >> confdefs.h <<\EOF
7527 #define HAVE_U_INTXX_T 1
7533 echo $ac_n "checking for u_int64_t types""... $ac_c" 1>&6
7534 echo "configure:7535: checking for u_int64_t types" >&5
7535 if eval "test \"`echo '$''{'ac_cv_have_u_int64_t'+set}'`\" = set"; then
7536 echo $ac_n "(cached) $ac_c" 1>&6
7539 cat > conftest.$ac_ext <<EOF
7540 #line 7541 "configure"
7541 #include "confdefs.h"
7542 #include <sys/types.h>
7547 if { (eval echo configure:7548: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7549 ac_cv_have_u_int64_t="yes"
7551 echo "configure: failed program was:" >&5
7552 cat conftest.$ac_ext >&5
7554 ac_cv_have_u_int64_t="no"
7561 echo "$ac_t""$ac_cv_have_u_int64_t" 1>&6
7562 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
7563 cat >> confdefs.h <<\EOF
7564 #define HAVE_U_INT64_T 1
7570 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
7571 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
7573 echo $ac_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h""... $ac_c" 1>&6
7574 echo "configure:7575: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
7575 cat > conftest.$ac_ext <<EOF
7576 #line 7577 "configure"
7577 #include "confdefs.h"
7578 #include <sys/bitypes.h>
7580 int8_t a; int16_t b; int32_t c;
7581 u_int8_t e; u_int16_t f; u_int32_t g;
7582 a = b = c = e = f = g = 1;
7585 if { (eval echo configure:7586: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7587 cat >> confdefs.h <<\EOF
7588 #define HAVE_U_INTXX_T 1
7591 cat >> confdefs.h <<\EOF
7592 #define HAVE_INTXX_T 1
7595 cat >> confdefs.h <<\EOF
7596 #define HAVE_SYS_BITYPES_H 1
7599 echo "$ac_t""yes" 1>&6
7601 echo "configure: failed program was:" >&5
7602 cat conftest.$ac_ext >&5
7604 echo "$ac_t""no" 1>&6
7610 if test -z "$have_u_intxx_t" ; then
7611 echo $ac_n "checking for uintXX_t types""... $ac_c" 1>&6
7612 echo "configure:7613: checking for uintXX_t types" >&5
7613 if eval "test \"`echo '$''{'ac_cv_have_uintxx_t'+set}'`\" = set"; then
7614 echo $ac_n "(cached) $ac_c" 1>&6
7617 cat > conftest.$ac_ext <<EOF
7618 #line 7619 "configure"
7619 #include "confdefs.h"
7620 #include <sys/types.h>
7622 uint8_t a; uint16_t b;
7623 uint32_t c; a = b = c = 1;
7626 if { (eval echo configure:7627: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7628 ac_cv_have_uintxx_t="yes"
7630 echo "configure: failed program was:" >&5
7631 cat conftest.$ac_ext >&5
7633 ac_cv_have_uintxx_t="no"
7640 echo "$ac_t""$ac_cv_have_uintxx_t" 1>&6
7641 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
7642 cat >> confdefs.h <<\EOF
7643 #define HAVE_UINTXX_T 1
7666 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7667 echo "configure:7668: checking for $ac_func" >&5
7668 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7669 echo $ac_n "(cached) $ac_c" 1>&6
7671 cat > conftest.$ac_ext <<EOF
7672 #line 7673 "configure"
7673 #include "confdefs.h"
7674 /* System header to define __stub macros and hopefully few prototypes,
7675 which can conflict with char $ac_func(); below. */
7677 /* Override any gcc2 internal prototype to avoid an error. */
7678 /* We use char because int might match the return type of a gcc2
7679 builtin and then its argument prototype would still apply. */
7684 /* The GNU C library defines this for functions which it implements
7685 to always fail with ENOSYS. Some functions are actually named
7686 something starting with __ and the normal name is an alias. */
7687 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7695 if { (eval echo configure:7696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7697 eval "ac_cv_func_$ac_func=yes"
7699 echo "configure: failed program was:" >&5
7700 cat conftest.$ac_ext >&5
7702 eval "ac_cv_func_$ac_func=no"
7707 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7708 echo "$ac_t""yes" 1>&6
7709 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7710 cat >> confdefs.h <<EOF
7711 #define $ac_tr_func 1
7715 echo "$ac_t""no" 1>&6
7716 echo 'configure: cannot find needed function.'; exit 1
7722 for ac_func in fchdir
7724 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7725 echo "configure:7726: checking for $ac_func" >&5
7726 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7727 echo $ac_n "(cached) $ac_c" 1>&6
7729 cat > conftest.$ac_ext <<EOF
7730 #line 7731 "configure"
7731 #include "confdefs.h"
7732 /* System header to define __stub macros and hopefully few prototypes,
7733 which can conflict with char $ac_func(); below. */
7735 /* Override any gcc2 internal prototype to avoid an error. */
7736 /* We use char because int might match the return type of a gcc2
7737 builtin and then its argument prototype would still apply. */
7742 /* The GNU C library defines this for functions which it implements
7743 to always fail with ENOSYS. Some functions are actually named
7744 something starting with __ and the normal name is an alias. */
7745 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7753 if { (eval echo configure:7754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7755 eval "ac_cv_func_$ac_func=yes"
7757 echo "configure: failed program was:" >&5
7758 cat conftest.$ac_ext >&5
7760 eval "ac_cv_func_$ac_func=no"
7765 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7766 echo "$ac_t""yes" 1>&6
7767 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7768 cat >> confdefs.h <<EOF
7769 #define $ac_tr_func 1
7771 cat >> confdefs.h <<\EOF
7772 #define HAVE_FCHDIR 1
7776 echo "$ac_t""no" 1>&6
7780 for ac_func in strtoll
7782 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7783 echo "configure:7784: checking for $ac_func" >&5
7784 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7785 echo $ac_n "(cached) $ac_c" 1>&6
7787 cat > conftest.$ac_ext <<EOF
7788 #line 7789 "configure"
7789 #include "confdefs.h"
7790 /* System header to define __stub macros and hopefully few prototypes,
7791 which can conflict with char $ac_func(); below. */
7793 /* Override any gcc2 internal prototype to avoid an error. */
7794 /* We use char because int might match the return type of a gcc2
7795 builtin and then its argument prototype would still apply. */
7800 /* The GNU C library defines this for functions which it implements
7801 to always fail with ENOSYS. Some functions are actually named
7802 something starting with __ and the normal name is an alias. */
7803 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7811 if { (eval echo configure:7812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7813 eval "ac_cv_func_$ac_func=yes"
7815 echo "configure: failed program was:" >&5
7816 cat conftest.$ac_ext >&5
7818 eval "ac_cv_func_$ac_func=no"
7823 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7824 echo "$ac_t""yes" 1>&6
7825 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7826 cat >> confdefs.h <<EOF
7827 #define $ac_tr_func 1
7829 cat >> confdefs.h <<\EOF
7830 #define HAVE_STRTOLL 1
7834 echo "$ac_t""no" 1>&6
7839 for ac_func in chflags
7841 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7842 echo "configure:7843: checking for $ac_func" >&5
7843 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7844 echo $ac_n "(cached) $ac_c" 1>&6
7846 cat > conftest.$ac_ext <<EOF
7847 #line 7848 "configure"
7848 #include "confdefs.h"
7849 /* System header to define __stub macros and hopefully few prototypes,
7850 which can conflict with char $ac_func(); below. */
7852 /* Override any gcc2 internal prototype to avoid an error. */
7853 /* We use char because int might match the return type of a gcc2
7854 builtin and then its argument prototype would still apply. */
7859 /* The GNU C library defines this for functions which it implements
7860 to always fail with ENOSYS. Some functions are actually named
7861 something starting with __ and the normal name is an alias. */
7862 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7870 if { (eval echo configure:7871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7872 eval "ac_cv_func_$ac_func=yes"
7874 echo "configure: failed program was:" >&5
7875 cat conftest.$ac_ext >&5
7877 eval "ac_cv_func_$ac_func=no"
7882 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7883 echo "$ac_t""yes" 1>&6
7884 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7885 cat >> confdefs.h <<EOF
7886 #define $ac_tr_func 1
7890 echo "$ac_t""no" 1>&6
7895 for ac_func in snprintf vsnprintf gethostid getdomainname
7897 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7898 echo "configure:7899: checking for $ac_func" >&5
7899 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7900 echo $ac_n "(cached) $ac_c" 1>&6
7902 cat > conftest.$ac_ext <<EOF
7903 #line 7904 "configure"
7904 #include "confdefs.h"
7905 /* System header to define __stub macros and hopefully few prototypes,
7906 which can conflict with char $ac_func(); below. */
7908 /* Override any gcc2 internal prototype to avoid an error. */
7909 /* We use char because int might match the return type of a gcc2
7910 builtin and then its argument prototype would still apply. */
7915 /* The GNU C library defines this for functions which it implements
7916 to always fail with ENOSYS. Some functions are actually named
7917 something starting with __ and the normal name is an alias. */
7918 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7926 if { (eval echo configure:7927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7928 eval "ac_cv_func_$ac_func=yes"
7930 echo "configure: failed program was:" >&5
7931 cat conftest.$ac_ext >&5
7933 eval "ac_cv_func_$ac_func=no"
7938 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7939 echo "$ac_t""yes" 1>&6
7940 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7941 cat >> confdefs.h <<EOF
7942 #define $ac_tr_func 1
7946 echo "$ac_t""no" 1>&6
7951 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
7953 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7954 echo "configure:7955: checking for $ac_func" >&5
7955 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7956 echo $ac_n "(cached) $ac_c" 1>&6
7958 cat > conftest.$ac_ext <<EOF
7959 #line 7960 "configure"
7960 #include "confdefs.h"
7961 /* System header to define __stub macros and hopefully few prototypes,
7962 which can conflict with char $ac_func(); below. */
7964 /* Override any gcc2 internal prototype to avoid an error. */
7965 /* We use char because int might match the return type of a gcc2
7966 builtin and then its argument prototype would still apply. */
7971 /* The GNU C library defines this for functions which it implements
7972 to always fail with ENOSYS. Some functions are actually named
7973 something starting with __ and the normal name is an alias. */
7974 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7982 if { (eval echo configure:7983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7984 eval "ac_cv_func_$ac_func=yes"
7986 echo "configure: failed program was:" >&5
7987 cat conftest.$ac_ext >&5
7989 eval "ac_cv_func_$ac_func=no"
7994 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7995 echo "$ac_t""yes" 1>&6
7996 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7997 cat >> confdefs.h <<EOF
7998 #define $ac_tr_func 1
8002 echo "$ac_t""no" 1>&6
8007 # If resolver functions are not in libc check for -lnsl or -lresolv.
8008 echo $ac_n "checking for gethostbyname_r""... $ac_c" 1>&6
8009 echo "configure:8010: checking for gethostbyname_r" >&5
8010 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname_r'+set}'`\" = set"; then
8011 echo $ac_n "(cached) $ac_c" 1>&6
8013 cat > conftest.$ac_ext <<EOF
8014 #line 8015 "configure"
8015 #include "confdefs.h"
8016 /* System header to define __stub macros and hopefully few prototypes,
8017 which can conflict with char gethostbyname_r(); below. */
8019 /* Override any gcc2 internal prototype to avoid an error. */
8020 /* We use char because int might match the return type of a gcc2
8021 builtin and then its argument prototype would still apply. */
8022 char gethostbyname_r();
8026 /* The GNU C library defines this for functions which it implements
8027 to always fail with ENOSYS. Some functions are actually named
8028 something starting with __ and the normal name is an alias. */
8029 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
8037 if { (eval echo configure:8038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8039 eval "ac_cv_func_gethostbyname_r=yes"
8041 echo "configure: failed program was:" >&5
8042 cat conftest.$ac_ext >&5
8044 eval "ac_cv_func_gethostbyname_r=no"
8049 if eval "test \"`echo '$ac_cv_func_'gethostbyname_r`\" = yes"; then
8050 echo "$ac_t""yes" 1>&6
8051 echo "$ac_t""using libc's resolver" 1>&6
8053 echo "$ac_t""no" 1>&6
8054 echo $ac_n "checking for gethostbyname_r in -lnsl""... $ac_c" 1>&6
8055 echo "configure:8056: checking for gethostbyname_r in -lnsl" >&5
8056 ac_lib_var=`echo nsl'_'gethostbyname_r | sed 'y%./+-%__p_%'`
8057 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8058 echo $ac_n "(cached) $ac_c" 1>&6
8060 ac_save_LIBS="$LIBS"
8062 cat > conftest.$ac_ext <<EOF
8063 #line 8064 "configure"
8064 #include "confdefs.h"
8065 /* Override any gcc2 internal prototype to avoid an error. */
8066 /* We use char because int might match the return type of a gcc2
8067 builtin and then its argument prototype would still apply. */
8068 char gethostbyname_r();
8074 if { (eval echo configure:8075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8076 eval "ac_cv_lib_$ac_lib_var=yes"
8078 echo "configure: failed program was:" >&5
8079 cat conftest.$ac_ext >&5
8081 eval "ac_cv_lib_$ac_lib_var=no"
8084 LIBS="$ac_save_LIBS"
8087 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8088 echo "$ac_t""yes" 1>&6
8089 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/^a-zA-Z0-9_/_/g' \
8090 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8091 cat >> confdefs.h <<EOF
8092 #define $ac_tr_lib 1
8098 echo "$ac_t""no" 1>&6
8101 echo $ac_n "checking for gethostbyname_r in -lresolv""... $ac_c" 1>&6
8102 echo "configure:8103: checking for gethostbyname_r in -lresolv" >&5
8103 ac_lib_var=`echo resolv'_'gethostbyname_r | sed 'y%./+-%__p_%'`
8104 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8105 echo $ac_n "(cached) $ac_c" 1>&6
8107 ac_save_LIBS="$LIBS"
8108 LIBS="-lresolv $LIBS"
8109 cat > conftest.$ac_ext <<EOF
8110 #line 8111 "configure"
8111 #include "confdefs.h"
8112 /* Override any gcc2 internal prototype to avoid an error. */
8113 /* We use char because int might match the return type of a gcc2
8114 builtin and then its argument prototype would still apply. */
8115 char gethostbyname_r();
8121 if { (eval echo configure:8122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8123 eval "ac_cv_lib_$ac_lib_var=yes"
8125 echo "configure: failed program was:" >&5
8126 cat conftest.$ac_ext >&5
8128 eval "ac_cv_lib_$ac_lib_var=no"
8131 LIBS="$ac_save_LIBS"
8134 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8135 echo "$ac_t""yes" 1>&6
8136 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/^a-zA-Z0-9_/_/g' \
8137 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8138 cat >> confdefs.h <<EOF
8139 #define $ac_tr_lib 1
8142 LIBS="-lresolv $LIBS"
8145 echo "$ac_t""no" 1>&6
8152 # Find where sockets are (especially for Solaris)
8153 echo $ac_n "checking for socket""... $ac_c" 1>&6
8154 echo "configure:8155: checking for socket" >&5
8155 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
8156 echo $ac_n "(cached) $ac_c" 1>&6
8158 cat > conftest.$ac_ext <<EOF
8159 #line 8160 "configure"
8160 #include "confdefs.h"
8161 /* System header to define __stub macros and hopefully few prototypes,
8162 which can conflict with char socket(); below. */
8164 /* Override any gcc2 internal prototype to avoid an error. */
8165 /* We use char because int might match the return type of a gcc2
8166 builtin and then its argument prototype would still apply. */
8171 /* The GNU C library defines this for functions which it implements
8172 to always fail with ENOSYS. Some functions are actually named
8173 something starting with __ and the normal name is an alias. */
8174 #if defined (__stub_socket) || defined (__stub___socket)
8182 if { (eval echo configure:8183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8184 eval "ac_cv_func_socket=yes"
8186 echo "configure: failed program was:" >&5
8187 cat conftest.$ac_ext >&5
8189 eval "ac_cv_func_socket=no"
8194 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
8195 echo "$ac_t""yes" 1>&6
8196 echo "$ac_t""using libc's socket" 1>&6
8198 echo "$ac_t""no" 1>&6
8199 echo $ac_n "checking for socket in -lxnet""... $ac_c" 1>&6
8200 echo "configure:8201: checking for socket in -lxnet" >&5
8201 ac_lib_var=`echo xnet'_'socket | sed 'y%./+-%__p_%'`
8202 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8203 echo $ac_n "(cached) $ac_c" 1>&6
8205 ac_save_LIBS="$LIBS"
8207 cat > conftest.$ac_ext <<EOF
8208 #line 8209 "configure"
8209 #include "confdefs.h"
8210 /* Override any gcc2 internal prototype to avoid an error. */
8211 /* We use char because int might match the return type of a gcc2
8212 builtin and then its argument prototype would still apply. */
8219 if { (eval echo configure:8220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8221 eval "ac_cv_lib_$ac_lib_var=yes"
8223 echo "configure: failed program was:" >&5
8224 cat conftest.$ac_ext >&5
8226 eval "ac_cv_lib_$ac_lib_var=no"
8229 LIBS="$ac_save_LIBS"
8232 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8233 echo "$ac_t""yes" 1>&6
8234 ac_tr_lib=HAVE_LIB`echo xnet | sed -e 's/^a-zA-Z0-9_/_/g' \
8235 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8236 cat >> confdefs.h <<EOF
8237 #define $ac_tr_lib 1
8243 echo "$ac_t""no" 1>&6
8246 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
8247 echo "configure:8248: checking for socket in -lsocket" >&5
8248 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
8249 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8250 echo $ac_n "(cached) $ac_c" 1>&6
8252 ac_save_LIBS="$LIBS"
8253 LIBS="-lsocket $LIBS"
8254 cat > conftest.$ac_ext <<EOF
8255 #line 8256 "configure"
8256 #include "confdefs.h"
8257 /* Override any gcc2 internal prototype to avoid an error. */
8258 /* We use char because int might match the return type of a gcc2
8259 builtin and then its argument prototype would still apply. */
8266 if { (eval echo configure:8267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8268 eval "ac_cv_lib_$ac_lib_var=yes"
8270 echo "configure: failed program was:" >&5
8271 cat conftest.$ac_ext >&5
8273 eval "ac_cv_lib_$ac_lib_var=no"
8276 LIBS="$ac_save_LIBS"
8279 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8280 echo "$ac_t""yes" 1>&6
8281 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
8282 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8283 cat >> confdefs.h <<EOF
8284 #define $ac_tr_lib 1
8287 LIBS="-lsocket $LIBS"
8290 echo "$ac_t""no" 1>&6
8293 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
8294 echo "configure:8295: checking for socket in -linet" >&5
8295 ac_lib_var=`echo inet'_'socket | sed 'y%./+-%__p_%'`
8296 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8297 echo $ac_n "(cached) $ac_c" 1>&6
8299 ac_save_LIBS="$LIBS"
8301 cat > conftest.$ac_ext <<EOF
8302 #line 8303 "configure"
8303 #include "confdefs.h"
8304 /* Override any gcc2 internal prototype to avoid an error. */
8305 /* We use char because int might match the return type of a gcc2
8306 builtin and then its argument prototype would still apply. */
8313 if { (eval echo configure:8314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8315 eval "ac_cv_lib_$ac_lib_var=yes"
8317 echo "configure: failed program was:" >&5
8318 cat conftest.$ac_ext >&5
8320 eval "ac_cv_lib_$ac_lib_var=no"
8323 LIBS="$ac_save_LIBS"
8326 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8327 echo "$ac_t""yes" 1>&6
8328 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/^a-zA-Z0-9_/_/g' \
8329 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8330 cat >> confdefs.h <<EOF
8331 #define $ac_tr_lib 1
8337 echo "$ac_t""no" 1>&6
8343 for ac_func in inet_pton
8345 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8346 echo "configure:8347: checking for $ac_func" >&5
8347 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8348 echo $ac_n "(cached) $ac_c" 1>&6
8350 cat > conftest.$ac_ext <<EOF
8351 #line 8352 "configure"
8352 #include "confdefs.h"
8353 /* System header to define __stub macros and hopefully few prototypes,
8354 which can conflict with char $ac_func(); below. */
8356 /* Override any gcc2 internal prototype to avoid an error. */
8357 /* We use char because int might match the return type of a gcc2
8358 builtin and then its argument prototype would still apply. */
8363 /* The GNU C library defines this for functions which it implements
8364 to always fail with ENOSYS. Some functions are actually named
8365 something starting with __ and the normal name is an alias. */
8366 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8374 if { (eval echo configure:8375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8376 eval "ac_cv_func_$ac_func=yes"
8378 echo "configure: failed program was:" >&5
8379 cat conftest.$ac_ext >&5
8381 eval "ac_cv_func_$ac_func=no"
8386 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8387 echo "$ac_t""yes" 1>&6
8388 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8389 cat >> confdefs.h <<EOF
8390 #define $ac_tr_func 1
8392 cat >> confdefs.h <<\EOF
8393 #define HAVE_INET_PTON 1
8397 echo "$ac_t""no" 1>&6
8402 echo $ac_n "checking for strftime""... $ac_c" 1>&6
8403 echo "configure:8404: checking for strftime" >&5
8404 if eval "test \"`echo '$''{'ac_cv_func_strftime'+set}'`\" = set"; then
8405 echo $ac_n "(cached) $ac_c" 1>&6
8407 cat > conftest.$ac_ext <<EOF
8408 #line 8409 "configure"
8409 #include "confdefs.h"
8410 /* System header to define __stub macros and hopefully few prototypes,
8411 which can conflict with char strftime(); below. */
8413 /* Override any gcc2 internal prototype to avoid an error. */
8414 /* We use char because int might match the return type of a gcc2
8415 builtin and then its argument prototype would still apply. */
8420 /* The GNU C library defines this for functions which it implements
8421 to always fail with ENOSYS. Some functions are actually named
8422 something starting with __ and the normal name is an alias. */
8423 #if defined (__stub_strftime) || defined (__stub___strftime)
8431 if { (eval echo configure:8432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8433 eval "ac_cv_func_strftime=yes"
8435 echo "configure: failed program was:" >&5
8436 cat conftest.$ac_ext >&5
8438 eval "ac_cv_func_strftime=no"
8443 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
8444 echo "$ac_t""yes" 1>&6
8445 cat >> confdefs.h <<\EOF
8446 #define HAVE_STRFTIME 1
8450 echo "$ac_t""no" 1>&6
8451 # strftime is in -lintl on SCO UNIX.
8452 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
8453 echo "configure:8454: checking for strftime in -lintl" >&5
8454 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-%__p_%'`
8455 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8456 echo $ac_n "(cached) $ac_c" 1>&6
8458 ac_save_LIBS="$LIBS"
8460 cat > conftest.$ac_ext <<EOF
8461 #line 8462 "configure"
8462 #include "confdefs.h"
8463 /* Override any gcc2 internal prototype to avoid an error. */
8464 /* We use char because int might match the return type of a gcc2
8465 builtin and then its argument prototype would still apply. */
8472 if { (eval echo configure:8473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8474 eval "ac_cv_lib_$ac_lib_var=yes"
8476 echo "configure: failed program was:" >&5
8477 cat conftest.$ac_ext >&5
8479 eval "ac_cv_lib_$ac_lib_var=no"
8482 LIBS="$ac_save_LIBS"
8485 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8486 echo "$ac_t""yes" 1>&6
8487 cat >> confdefs.h <<\EOF
8488 #define HAVE_STRFTIME 1
8493 echo "$ac_t""no" 1>&6
8498 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
8499 echo "configure:8500: checking for vprintf" >&5
8500 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
8501 echo $ac_n "(cached) $ac_c" 1>&6
8503 cat > conftest.$ac_ext <<EOF
8504 #line 8505 "configure"
8505 #include "confdefs.h"
8506 /* System header to define __stub macros and hopefully few prototypes,
8507 which can conflict with char vprintf(); below. */
8509 /* Override any gcc2 internal prototype to avoid an error. */
8510 /* We use char because int might match the return type of a gcc2
8511 builtin and then its argument prototype would still apply. */
8516 /* The GNU C library defines this for functions which it implements
8517 to always fail with ENOSYS. Some functions are actually named
8518 something starting with __ and the normal name is an alias. */
8519 #if defined (__stub_vprintf) || defined (__stub___vprintf)
8527 if { (eval echo configure:8528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8529 eval "ac_cv_func_vprintf=yes"
8531 echo "configure: failed program was:" >&5
8532 cat conftest.$ac_ext >&5
8534 eval "ac_cv_func_vprintf=no"
8539 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
8540 echo "$ac_t""yes" 1>&6
8541 cat >> confdefs.h <<\EOF
8542 #define HAVE_VPRINTF 1
8546 echo "$ac_t""no" 1>&6
8549 if test "$ac_cv_func_vprintf" != yes; then
8550 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
8551 echo "configure:8552: checking for _doprnt" >&5
8552 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
8553 echo $ac_n "(cached) $ac_c" 1>&6
8555 cat > conftest.$ac_ext <<EOF
8556 #line 8557 "configure"
8557 #include "confdefs.h"
8558 /* System header to define __stub macros and hopefully few prototypes,
8559 which can conflict with char _doprnt(); below. */
8561 /* Override any gcc2 internal prototype to avoid an error. */
8562 /* We use char because int might match the return type of a gcc2
8563 builtin and then its argument prototype would still apply. */
8568 /* The GNU C library defines this for functions which it implements
8569 to always fail with ENOSYS. Some functions are actually named
8570 something starting with __ and the normal name is an alias. */
8571 #if defined (__stub__doprnt) || defined (__stub____doprnt)
8579 if { (eval echo configure:8580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8581 eval "ac_cv_func__doprnt=yes"
8583 echo "configure: failed program was:" >&5
8584 cat conftest.$ac_ext >&5
8586 eval "ac_cv_func__doprnt=no"
8591 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
8592 echo "$ac_t""yes" 1>&6
8593 cat >> confdefs.h <<\EOF
8594 #define HAVE_DOPRNT 1
8598 echo "$ac_t""no" 1>&6
8603 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8604 # for constant arguments. Useless!
8605 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
8606 echo "configure:8607: checking for working alloca.h" >&5
8607 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
8608 echo $ac_n "(cached) $ac_c" 1>&6
8610 cat > conftest.$ac_ext <<EOF
8611 #line 8612 "configure"
8612 #include "confdefs.h"
8615 char *p = alloca(2 * sizeof(int));
8618 if { (eval echo configure:8619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8620 ac_cv_header_alloca_h=yes
8622 echo "configure: failed program was:" >&5
8623 cat conftest.$ac_ext >&5
8625 ac_cv_header_alloca_h=no
8630 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
8631 if test $ac_cv_header_alloca_h = yes; then
8632 cat >> confdefs.h <<\EOF
8633 #define HAVE_ALLOCA_H 1
8638 echo $ac_n "checking for alloca""... $ac_c" 1>&6
8639 echo "configure:8640: checking for alloca" >&5
8640 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
8641 echo $ac_n "(cached) $ac_c" 1>&6
8643 cat > conftest.$ac_ext <<EOF
8644 #line 8645 "configure"
8645 #include "confdefs.h"
8648 # define alloca __builtin_alloca
8651 # include <malloc.h>
8652 # define alloca _alloca
8655 # include <alloca.h>
8660 # ifndef alloca /* predefined by HP cc +Olibcalls */
8669 char *p = (char *) alloca(1);
8672 if { (eval echo configure:8673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8674 ac_cv_func_alloca_works=yes
8676 echo "configure: failed program was:" >&5
8677 cat conftest.$ac_ext >&5
8679 ac_cv_func_alloca_works=no
8684 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
8685 if test $ac_cv_func_alloca_works = yes; then
8686 cat >> confdefs.h <<\EOF
8687 #define HAVE_ALLOCA 1
8692 if test $ac_cv_func_alloca_works = no; then
8693 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8694 # that cause trouble. Some versions do not even contain alloca or
8695 # contain a buggy version. If you still want to use their alloca,
8696 # use ar to extract alloca.o from them instead of compiling alloca.c.
8697 ALLOCA=alloca.${ac_objext}
8698 cat >> confdefs.h <<\EOF
8703 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
8704 echo "configure:8705: checking whether alloca needs Cray hooks" >&5
8705 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
8706 echo $ac_n "(cached) $ac_c" 1>&6
8708 cat > conftest.$ac_ext <<EOF
8709 #line 8710 "configure"
8710 #include "confdefs.h"
8711 #if defined(CRAY) && ! defined(CRAY2)
8718 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8719 egrep "webecray" >/dev/null 2>&1; then
8730 echo "$ac_t""$ac_cv_os_cray" 1>&6
8731 if test $ac_cv_os_cray = yes; then
8732 for ac_func in _getb67 GETB67 getb67; do
8733 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8734 echo "configure:8735: checking for $ac_func" >&5
8735 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8736 echo $ac_n "(cached) $ac_c" 1>&6
8738 cat > conftest.$ac_ext <<EOF
8739 #line 8740 "configure"
8740 #include "confdefs.h"
8741 /* System header to define __stub macros and hopefully few prototypes,
8742 which can conflict with char $ac_func(); below. */
8744 /* Override any gcc2 internal prototype to avoid an error. */
8745 /* We use char because int might match the return type of a gcc2
8746 builtin and then its argument prototype would still apply. */
8751 /* The GNU C library defines this for functions which it implements
8752 to always fail with ENOSYS. Some functions are actually named
8753 something starting with __ and the normal name is an alias. */
8754 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8762 if { (eval echo configure:8763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8764 eval "ac_cv_func_$ac_func=yes"
8766 echo "configure: failed program was:" >&5
8767 cat conftest.$ac_ext >&5
8769 eval "ac_cv_func_$ac_func=no"
8774 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8775 echo "$ac_t""yes" 1>&6
8776 cat >> confdefs.h <<EOF
8777 #define CRAY_STACKSEG_END $ac_func
8782 echo "$ac_t""no" 1>&6
8788 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
8789 echo "configure:8790: checking stack direction for C alloca" >&5
8790 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
8791 echo $ac_n "(cached) $ac_c" 1>&6
8793 if test "$cross_compiling" = yes; then
8794 ac_cv_c_stack_direction=0
8796 cat > conftest.$ac_ext <<EOF
8797 #line 8798 "configure"
8798 #include "confdefs.h"
8799 find_stack_direction ()
8801 static char *addr = 0;
8806 return find_stack_direction ();
8809 return (&dummy > addr) ? 1 : -1;
8813 exit (find_stack_direction() < 0);
8816 if { (eval echo configure:8817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8818 ac_cv_c_stack_direction=1
8820 echo "configure: failed program was:" >&5
8821 cat conftest.$ac_ext >&5
8823 ac_cv_c_stack_direction=-1
8830 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
8831 cat >> confdefs.h <<EOF
8832 #define STACK_DIRECTION $ac_cv_c_stack_direction
8837 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
8838 echo $ac_n "checking for getmntent in -lsun""... $ac_c" 1>&6
8839 echo "configure:8840: checking for getmntent in -lsun" >&5
8840 ac_lib_var=`echo sun'_'getmntent | sed 'y%./+-%__p_%'`
8841 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8842 echo $ac_n "(cached) $ac_c" 1>&6
8844 ac_save_LIBS="$LIBS"
8846 cat > conftest.$ac_ext <<EOF
8847 #line 8848 "configure"
8848 #include "confdefs.h"
8849 /* Override any gcc2 internal prototype to avoid an error. */
8850 /* We use char because int might match the return type of a gcc2
8851 builtin and then its argument prototype would still apply. */
8858 if { (eval echo configure:8859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8860 eval "ac_cv_lib_$ac_lib_var=yes"
8862 echo "configure: failed program was:" >&5
8863 cat conftest.$ac_ext >&5
8865 eval "ac_cv_lib_$ac_lib_var=no"
8868 LIBS="$ac_save_LIBS"
8871 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8872 echo "$ac_t""yes" 1>&6
8875 echo "$ac_t""no" 1>&6
8876 echo $ac_n "checking for getmntent in -lseq""... $ac_c" 1>&6
8877 echo "configure:8878: checking for getmntent in -lseq" >&5
8878 ac_lib_var=`echo seq'_'getmntent | sed 'y%./+-%__p_%'`
8879 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8880 echo $ac_n "(cached) $ac_c" 1>&6
8882 ac_save_LIBS="$LIBS"
8884 cat > conftest.$ac_ext <<EOF
8885 #line 8886 "configure"
8886 #include "confdefs.h"
8887 /* Override any gcc2 internal prototype to avoid an error. */
8888 /* We use char because int might match the return type of a gcc2
8889 builtin and then its argument prototype would still apply. */
8896 if { (eval echo configure:8897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8898 eval "ac_cv_lib_$ac_lib_var=yes"
8900 echo "configure: failed program was:" >&5
8901 cat conftest.$ac_ext >&5
8903 eval "ac_cv_lib_$ac_lib_var=no"
8906 LIBS="$ac_save_LIBS"
8909 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8910 echo "$ac_t""yes" 1>&6
8913 echo "$ac_t""no" 1>&6
8914 echo $ac_n "checking for getmntent in -lgen""... $ac_c" 1>&6
8915 echo "configure:8916: checking for getmntent in -lgen" >&5
8916 ac_lib_var=`echo gen'_'getmntent | sed 'y%./+-%__p_%'`
8917 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8918 echo $ac_n "(cached) $ac_c" 1>&6
8920 ac_save_LIBS="$LIBS"
8922 cat > conftest.$ac_ext <<EOF
8923 #line 8924 "configure"
8924 #include "confdefs.h"
8925 /* Override any gcc2 internal prototype to avoid an error. */
8926 /* We use char because int might match the return type of a gcc2
8927 builtin and then its argument prototype would still apply. */
8934 if { (eval echo configure:8935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8936 eval "ac_cv_lib_$ac_lib_var=yes"
8938 echo "configure: failed program was:" >&5
8939 cat conftest.$ac_ext >&5
8941 eval "ac_cv_lib_$ac_lib_var=no"
8944 LIBS="$ac_save_LIBS"
8947 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8948 echo "$ac_t""yes" 1>&6
8951 echo "$ac_t""no" 1>&6
8958 echo $ac_n "checking for getmntent""... $ac_c" 1>&6
8959 echo "configure:8960: checking for getmntent" >&5
8960 if eval "test \"`echo '$''{'ac_cv_func_getmntent'+set}'`\" = set"; then
8961 echo $ac_n "(cached) $ac_c" 1>&6
8963 cat > conftest.$ac_ext <<EOF
8964 #line 8965 "configure"
8965 #include "confdefs.h"
8966 /* System header to define __stub macros and hopefully few prototypes,
8967 which can conflict with char getmntent(); below. */
8969 /* Override any gcc2 internal prototype to avoid an error. */
8970 /* We use char because int might match the return type of a gcc2
8971 builtin and then its argument prototype would still apply. */
8976 /* The GNU C library defines this for functions which it implements
8977 to always fail with ENOSYS. Some functions are actually named
8978 something starting with __ and the normal name is an alias. */
8979 #if defined (__stub_getmntent) || defined (__stub___getmntent)
8987 if { (eval echo configure:8988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8989 eval "ac_cv_func_getmntent=yes"
8991 echo "configure: failed program was:" >&5
8992 cat conftest.$ac_ext >&5
8994 eval "ac_cv_func_getmntent=no"
8999 if eval "test \"`echo '$ac_cv_func_'getmntent`\" = yes"; then
9000 echo "$ac_t""yes" 1>&6
9001 cat >> confdefs.h <<\EOF
9002 #define HAVE_GETMNTENT 1
9006 echo "$ac_t""no" 1>&6
9009 echo $ac_n "checking whether closedir returns void""... $ac_c" 1>&6
9010 echo "configure:9011: checking whether closedir returns void" >&5
9011 if eval "test \"`echo '$''{'ac_cv_func_closedir_void'+set}'`\" = set"; then
9012 echo $ac_n "(cached) $ac_c" 1>&6
9014 if test "$cross_compiling" = yes; then
9015 ac_cv_func_closedir_void=yes
9017 cat > conftest.$ac_ext <<EOF
9018 #line 9019 "configure"
9019 #include "confdefs.h"
9020 #include <sys/types.h>
9021 #include <$ac_header_dirent>
9022 int closedir(); main() { exit(closedir(opendir(".")) != 0); }
9024 if { (eval echo configure:9025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9026 ac_cv_func_closedir_void=no
9028 echo "configure: failed program was:" >&5
9029 cat conftest.$ac_ext >&5
9031 ac_cv_func_closedir_void=yes
9038 echo "$ac_t""$ac_cv_func_closedir_void" 1>&6
9039 if test $ac_cv_func_closedir_void = yes; then
9040 cat >> confdefs.h <<\EOF
9041 #define CLOSEDIR_VOID 1
9046 echo $ac_n "checking whether setpgrp takes no argument""... $ac_c" 1>&6
9047 echo "configure:9048: checking whether setpgrp takes no argument" >&5
9048 if eval "test \"`echo '$''{'ac_cv_func_setpgrp_void'+set}'`\" = set"; then
9049 echo $ac_n "(cached) $ac_c" 1>&6
9051 if test "$cross_compiling" = yes; then
9052 { echo "configure: error: cannot check setpgrp if cross compiling" 1>&2; exit 1; }
9054 cat > conftest.$ac_ext <<EOF
9055 #line 9056 "configure"
9056 #include "confdefs.h"
9058 #ifdef HAVE_UNISTD_H
9063 * If this system has a BSD-style setpgrp, which takes arguments, exit
9068 if (setpgrp(1,1) == -1)
9075 if { (eval echo configure:9076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9077 ac_cv_func_setpgrp_void=no
9079 echo "configure: failed program was:" >&5
9080 cat conftest.$ac_ext >&5
9082 ac_cv_func_setpgrp_void=yes
9090 echo "$ac_t""$ac_cv_func_setpgrp_void" 1>&6
9091 if test $ac_cv_func_setpgrp_void = yes; then
9092 cat >> confdefs.h <<\EOF
9093 #define SETPGRP_VOID 1
9097 echo $ac_n "checking for working fnmatch""... $ac_c" 1>&6
9098 echo "configure:9099: checking for working fnmatch" >&5
9099 if eval "test \"`echo '$''{'ac_cv_func_fnmatch_works'+set}'`\" = set"; then
9100 echo $ac_n "(cached) $ac_c" 1>&6
9102 # Some versions of Solaris or SCO have a broken fnmatch function.
9103 # So we run a test program. If we are cross-compiling, take no chance.
9104 # Thanks to John Oleynick and Franc,ois Pinard for this test.
9105 if test "$cross_compiling" = yes; then
9106 ac_cv_func_fnmatch_works=no
9108 cat > conftest.$ac_ext <<EOF
9109 #line 9110 "configure"
9110 #include "confdefs.h"
9111 main() { exit (fnmatch ("a*", "abc", 0) != 0); }
9113 if { (eval echo configure:9114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9115 ac_cv_func_fnmatch_works=yes
9117 echo "configure: failed program was:" >&5
9118 cat conftest.$ac_ext >&5
9120 ac_cv_func_fnmatch_works=no
9127 echo "$ac_t""$ac_cv_func_fnmatch_works" 1>&6
9128 if test $ac_cv_func_fnmatch_works = yes; then
9129 cat >> confdefs.h <<\EOF
9130 #define HAVE_FNMATCH 1
9137 echo $ac_n "checking for setlocale in -lxpg4""... $ac_c" 1>&6
9138 echo "configure:9139: checking for setlocale in -lxpg4" >&5
9139 ac_lib_var=`echo xpg4'_'setlocale | sed 'y%./+-%__p_%'`
9140 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9141 echo $ac_n "(cached) $ac_c" 1>&6
9143 ac_save_LIBS="$LIBS"
9145 cat > conftest.$ac_ext <<EOF
9146 #line 9147 "configure"
9147 #include "confdefs.h"
9148 /* Override any gcc2 internal prototype to avoid an error. */
9149 /* We use char because int might match the return type of a gcc2
9150 builtin and then its argument prototype would still apply. */
9157 if { (eval echo configure:9158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9159 eval "ac_cv_lib_$ac_lib_var=yes"
9161 echo "configure: failed program was:" >&5
9162 cat conftest.$ac_ext >&5
9164 eval "ac_cv_lib_$ac_lib_var=no"
9167 LIBS="$ac_save_LIBS"
9170 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9171 echo "$ac_t""yes" 1>&6
9174 echo "$ac_t""no" 1>&6
9179 echo $ac_n "checking for getpwnam in -lsun""... $ac_c" 1>&6
9180 echo "configure:9181: checking for getpwnam in -lsun" >&5
9181 ac_lib_var=`echo sun'_'getpwnam | sed 'y%./+-%__p_%'`
9182 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9183 echo $ac_n "(cached) $ac_c" 1>&6
9185 ac_save_LIBS="$LIBS"
9187 cat > conftest.$ac_ext <<EOF
9188 #line 9189 "configure"
9189 #include "confdefs.h"
9190 /* Override any gcc2 internal prototype to avoid an error. */
9191 /* We use char because int might match the return type of a gcc2
9192 builtin and then its argument prototype would still apply. */
9199 if { (eval echo configure:9200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9201 eval "ac_cv_lib_$ac_lib_var=yes"
9203 echo "configure: failed program was:" >&5
9204 cat conftest.$ac_ext >&5
9206 eval "ac_cv_lib_$ac_lib_var=no"
9209 LIBS="$ac_save_LIBS"
9212 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9213 echo "$ac_t""yes" 1>&6
9214 ac_tr_lib=HAVE_LIB`echo sun | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9215 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9216 cat >> confdefs.h <<EOF
9217 #define $ac_tr_lib 1
9223 echo "$ac_t""no" 1>&6
9227 for ac_hdr in zlib.h
9229 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9230 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9231 echo "configure:9232: checking for $ac_hdr" >&5
9232 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9233 echo $ac_n "(cached) $ac_c" 1>&6
9235 cat > conftest.$ac_ext <<EOF
9236 #line 9237 "configure"
9237 #include "confdefs.h"
9240 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9241 { (eval echo configure:9242: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9242 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9243 if test -z "$ac_err"; then
9245 eval "ac_cv_header_$ac_safe=yes"
9248 echo "configure: failed program was:" >&5
9249 cat conftest.$ac_ext >&5
9251 eval "ac_cv_header_$ac_safe=no"
9255 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9256 echo "$ac_t""yes" 1>&6
9257 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9258 cat >> confdefs.h <<EOF
9259 #define $ac_tr_hdr 1
9263 echo "$ac_t""no" 1>&6
9267 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
9268 echo "configure:9269: checking for deflate in -lz" >&5
9269 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
9270 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9271 echo $ac_n "(cached) $ac_c" 1>&6
9273 ac_save_LIBS="$LIBS"
9275 cat > conftest.$ac_ext <<EOF
9276 #line 9277 "configure"
9277 #include "confdefs.h"
9278 /* Override any gcc2 internal prototype to avoid an error. */
9279 /* We use char because int might match the return type of a gcc2
9280 builtin and then its argument prototype would still apply. */
9287 if { (eval echo configure:9288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9289 eval "ac_cv_lib_$ac_lib_var=yes"
9291 echo "configure: failed program was:" >&5
9292 cat conftest.$ac_ext >&5
9294 eval "ac_cv_lib_$ac_lib_var=no"
9297 LIBS="$ac_save_LIBS"
9300 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9301 echo "$ac_t""yes" 1>&6
9304 echo "$ac_t""no" 1>&6
9308 if test x$FDLIBS = x-lz; then
9309 cat >> confdefs.h <<\EOF
9317 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
9318 echo "configure:9319: checking for pthread_create in -lpthread" >&5
9319 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
9320 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9321 echo $ac_n "(cached) $ac_c" 1>&6
9323 ac_save_LIBS="$LIBS"
9324 LIBS="-lpthread $LIBS"
9325 cat > conftest.$ac_ext <<EOF
9326 #line 9327 "configure"
9327 #include "confdefs.h"
9328 /* Override any gcc2 internal prototype to avoid an error. */
9329 /* We use char because int might match the return type of a gcc2
9330 builtin and then its argument prototype would still apply. */
9331 char pthread_create();
9337 if { (eval echo configure:9338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9339 eval "ac_cv_lib_$ac_lib_var=yes"
9341 echo "configure: failed program was:" >&5
9342 cat conftest.$ac_ext >&5
9344 eval "ac_cv_lib_$ac_lib_var=no"
9347 LIBS="$ac_save_LIBS"
9350 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9351 echo "$ac_t""yes" 1>&6
9352 PTHREAD_LIB="-lpthread"
9354 echo "$ac_t""no" 1>&6
9355 echo $ac_n "checking for pthread_create in -lpthreads""... $ac_c" 1>&6
9356 echo "configure:9357: checking for pthread_create in -lpthreads" >&5
9357 ac_lib_var=`echo pthreads'_'pthread_create | sed 'y%./+-%__p_%'`
9358 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9359 echo $ac_n "(cached) $ac_c" 1>&6
9361 ac_save_LIBS="$LIBS"
9362 LIBS="-lpthreads $LIBS"
9363 cat > conftest.$ac_ext <<EOF
9364 #line 9365 "configure"
9365 #include "confdefs.h"
9366 /* Override any gcc2 internal prototype to avoid an error. */
9367 /* We use char because int might match the return type of a gcc2
9368 builtin and then its argument prototype would still apply. */
9369 char pthread_create();
9375 if { (eval echo configure:9376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9377 eval "ac_cv_lib_$ac_lib_var=yes"
9379 echo "configure: failed program was:" >&5
9380 cat conftest.$ac_ext >&5
9382 eval "ac_cv_lib_$ac_lib_var=no"
9385 LIBS="$ac_save_LIBS"
9388 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9389 echo "$ac_t""yes" 1>&6
9390 PTHREAD_LIB="-lpthreads"
9392 echo "$ac_t""no" 1>&6
9393 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
9394 echo "configure:9395: checking for pthread_create in -lc_r" >&5
9395 ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
9396 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9397 echo $ac_n "(cached) $ac_c" 1>&6
9399 ac_save_LIBS="$LIBS"
9401 cat > conftest.$ac_ext <<EOF
9402 #line 9403 "configure"
9403 #include "confdefs.h"
9404 /* Override any gcc2 internal prototype to avoid an error. */
9405 /* We use char because int might match the return type of a gcc2
9406 builtin and then its argument prototype would still apply. */
9407 char pthread_create();
9413 if { (eval echo configure:9414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9415 eval "ac_cv_lib_$ac_lib_var=yes"
9417 echo "configure: failed program was:" >&5
9418 cat conftest.$ac_ext >&5
9420 eval "ac_cv_lib_$ac_lib_var=no"
9423 LIBS="$ac_save_LIBS"
9426 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9427 echo "$ac_t""yes" 1>&6
9430 echo "$ac_t""no" 1>&6
9431 echo $ac_n "checking for pthread_create""... $ac_c" 1>&6
9432 echo "configure:9433: checking for pthread_create" >&5
9433 if eval "test \"`echo '$''{'ac_cv_func_pthread_create'+set}'`\" = set"; then
9434 echo $ac_n "(cached) $ac_c" 1>&6
9436 cat > conftest.$ac_ext <<EOF
9437 #line 9438 "configure"
9438 #include "confdefs.h"
9439 /* System header to define __stub macros and hopefully few prototypes,
9440 which can conflict with char pthread_create(); below. */
9442 /* Override any gcc2 internal prototype to avoid an error. */
9443 /* We use char because int might match the return type of a gcc2
9444 builtin and then its argument prototype would still apply. */
9445 char pthread_create();
9449 /* The GNU C library defines this for functions which it implements
9450 to always fail with ENOSYS. Some functions are actually named
9451 something starting with __ and the normal name is an alias. */
9452 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
9460 if { (eval echo configure:9461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9462 eval "ac_cv_func_pthread_create=yes"
9464 echo "configure: failed program was:" >&5
9465 cat conftest.$ac_ext >&5
9467 eval "ac_cv_func_pthread_create=no"
9472 if eval "test \"`echo '$ac_cv_func_'pthread_create`\" = yes"; then
9473 echo "$ac_t""yes" 1>&6
9476 echo "$ac_t""no" 1>&6
9490 cat >> confdefs.h <<\EOF
9497 LDFLAGS=${LDFLAGS--O}
9498 DB_LIBS="${SQL_LFLAGS}"
9500 CPPFLAGS="$CPPFLAGS"
9525 # Finally we set appropriate distribution specific
9526 # variables and defaults
9528 # PFILES are platform specific files
9529 PFILES="platforms/Makefile"
9536 PSCMD="ps -e -o pid,comm"
9538 platforms/aix/Makefile"
9539 TAPEDRIVE="/dev/rmt0.1"
9543 PTHREAD_LIB="-lpthread -lexc"
9544 if test "${CC}" = "gcc" ; then
9551 TAPEDRIVE="/dev/nrmt0"
9554 DISTVER=`uname -a |awk '{print $3}'`
9555 TAPEDRIVE="/dev/nrmt0"
9556 PTHREAD_LIB="-pthread"
9557 CFLAGS="${CFLAGS} -pthread"
9558 PSCMD="ps -x -o pid,command"
9562 platforms/bsdi/Makefile \
9563 platforms/bsdi/bacula-fd \
9564 platforms/bsdi/bacula-sd \
9565 platforms/bsdi/bacula-dir"
9566 hostname=`hostname -s`
9567 largefile_support="yes"
9570 DISTVER=`uname -a |awk '{print $3}'`
9571 TAPEDRIVE="/dev/nrst0"
9574 WLDFLAGS="-mwindows"
9578 TAPEDRIVE="/dev/nst0"
9579 PSCMD="ps -e -o pid,command"
9580 hostname=`hostname -s`
9582 platforms/darwin/Makefile"
9585 DISTVER=`cat /etc/debian_version`
9586 TAPEDRIVE="/dev/nrst0"
9587 PSCMD="ps -e -o pid,command"
9588 hostname=`hostname -s`
9591 DISTVER=`uname -a |awk '{print $3}'`
9592 PTHREAD_LIB="-pthread"
9593 CFLAGS="${CFLAGS} -pthread"
9596 TAPEDRIVE="/dev/nrsa0"
9597 PSCMD="ps -x -o pid,command"
9599 platforms/freebsd/Makefile \
9600 platforms/freebsd/bacula-fd \
9601 platforms/freebsd/bacula-sd \
9602 platforms/freebsd/bacula-dir"
9603 hostname=`hostname -s`
9604 largefile_support="yes"
9608 TAPEDRIVE="/dev/rmt/0hnb"
9612 TAPEDRIVE="/dev/rmt/0cbn"
9613 PSCMD="ps -e -o pid,comm"
9615 platforms/irix/Makefile \
9616 platforms/irix/bacula-fd \
9617 platforms/irix/bacula-sd \
9618 platforms/irix/bacula-dir"
9621 DISTVER=`uname -a |awk '{print $3}'`
9624 TAPEDRIVE="/dev/nrst0"
9625 PSCMD="ps -a -o pid,command"
9626 PTHREAD_LIB="-pthread"
9627 CFLAGS="${CFLAGS} -pthread"
9630 DISTVER=`uname -a |awk '{print $3}'`
9633 TAPEDRIVE="/dev/nrst0"
9634 PSCMD="ps -a -o pid,command"
9635 PTHREAD_LIB="-pthread"
9636 CFLAGS="${CFLAGS} -pthread"
9638 platforms/openbsd/Makefile \
9639 platforms/openbsd/bacula-fd \
9640 platforms/openbsd/bacula-sd \
9641 platforms/openbsd/bacula-dir"
9644 DISTVER=`cat /etc/redhat-release | grep release |\
9646 TAPEDRIVE="/dev/nst0"
9647 PSCMD="ps -e -o pid,command"
9649 platforms/redhat/Makefile \
9650 platforms/redhat/bacula-fd \
9651 platforms/redhat/bacula-sd \
9652 platforms/redhat/bacula-dir \
9653 platforms/redhat/bacula.spec \
9655 hostname=`hostname -s`
9658 DISTVER=`cat /etc/mandrake-release | grep release |\
9660 TAPEDRIVE="/dev/nst0"
9661 PSCMD="ps -e -o pid,command"
9663 platforms/mandrake/Makefile \
9664 platforms/mandrake/bacula-fd \
9665 platforms/mandrake/bacula-sd \
9666 platforms/mandrake/bacula-dir \
9667 platforms/mandrake/bacula.spec \
9669 hostname=`hostname -s`
9672 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
9673 TAPEDRIVE="/dev/nst0"
9674 PSCMD="ps -e -o pid,command"
9676 platforms/gentoo/Makefile \
9677 platforms/gentoo/bacula-fd \
9678 platforms/gentoo/bacula-sd \
9679 platforms/gentoo/bacula-dir"
9680 hostname=`hostname -s`
9684 DISTVER=`cat /etc/slackware-version`
9685 TAPEDRIVE="/dev/nst0"
9686 PSCMD="ps -e -o pid,command"
9687 hostname=`hostname -s`
9691 TAPEDRIVE="/dev/rmt/0cbn"
9692 PSCMD="ps -e -o pid,comm"
9694 platforms/solaris/Makefile \
9695 platforms/solaris/bacula-fd \
9696 platforms/solaris/bacula-sd \
9697 platforms/solaris/bacula-dir"
9698 if test x$DISTVER = x5.6 ; then
9699 cat >> confdefs.h <<\EOF
9700 #define HAVE_OLD_SOCKOPT 1
9706 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
9708 TAPEDRIVE="/dev/nst0"
9709 PSCMD="ps -e -o pid,command"
9710 hostname=`hostname -s`
9715 TAPEDRIVE="/dev/nst0"
9716 PSCMD="ps -e -o pid,command"
9717 hostname=`hostname -s`
9721 TAPEDRIVE="/dev/nst0"
9724 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
9730 LIBS="$PTHREAD_LIB $LIBS"
9732 cat >> confdefs.h <<EOF
9736 cat >> confdefs.h <<EOF
9746 MCOMMON=./autoconf/Make.common
9749 if test "x${subsysdir}" = "x${sbindir}" ; then
9752 echo "You have set both --sbindir and --with-subsys-dir"
9753 echo " equal to: ${subsysdir} "
9754 echo "This is not permitted. Please reconfigure."
9756 echo "Aborting configuration ..."
9763 cat > confcache <<\EOF
9764 # This file is a shell script that caches the results of configure
9765 # tests run on this system so they can be shared between configure
9766 # scripts and configure runs. It is not useful on other systems.
9767 # If it contains results you don't want to keep, you may remove or edit it.
9769 # By default, configure uses ./config.cache as the cache file,
9770 # creating it if it does not exist already. You can give configure
9771 # the --cache-file=FILE option to use a different cache file; that is
9772 # what configure does when it calls configure scripts in
9773 # subdirectories, so they share the cache.
9774 # Giving --cache-file=/dev/null disables caching, for debugging configure.
9775 # config.status only pays attention to the cache file if you give it the
9776 # --recheck option to rerun configure.
9779 # The following way of writing the cache mishandles newlines in values,
9780 # but we know of no workaround that is simple, portable, and efficient.
9781 # So, don't put newlines in cache variables' values.
9782 # Ultrix sh set writes to stderr and can't be redirected directly,
9783 # and sets the high bit in the cache file unless we assign to the vars.
9785 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9787 # `set' does not quote correctly, so add quotes (double-quote substitution
9788 # turns \\\\ into \\, and sed turns \\ into \).
9790 -e "s/'/'\\\\''/g" \
9791 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
9794 # `set' quotes correctly as required by POSIX, so do not add quotes.
9795 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
9798 if cmp -s $cache_file confcache; then
9801 if test -w $cache_file; then
9802 echo "updating cache $cache_file"
9803 cat confcache > $cache_file
9805 echo "not updating unwritable cache $cache_file"
9810 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
9812 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9813 # Let make expand exec_prefix.
9814 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9816 # Any assignment to VPATH causes Sun make to only execute
9817 # the first set of double-colon rules, so remove it if not needed.
9818 # If there is a colon in the path, we need to keep it.
9819 if test "x$srcdir" = x.; then
9820 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
9823 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
9825 DEFS=-DHAVE_CONFIG_H
9827 # Without the "./", some shells look in PATH for config.status.
9828 : ${CONFIG_STATUS=./config.status}
9830 echo creating $CONFIG_STATUS
9831 rm -f $CONFIG_STATUS
9832 cat > $CONFIG_STATUS <<EOF
9834 # Generated automatically by configure.
9835 # Run this file to recreate the current configuration.
9836 # This directory was configured as follows,
9837 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9839 # $0 $ac_configure_args
9841 # Compiler output produced by configure, useful for debugging
9842 # configure, is in ./config.log if it exists.
9844 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
9847 case "\$ac_option" in
9848 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9849 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
9850 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
9851 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
9852 echo "$CONFIG_STATUS generated by autoconf version 2.13"
9854 -help | --help | --hel | --he | --h)
9855 echo "\$ac_cs_usage"; exit 0 ;;
9856 *) echo "\$ac_cs_usage"; exit 1 ;;
9860 ac_given_srcdir=$srcdir
9861 ac_given_INSTALL="$INSTALL"
9863 trap 'rm -fr `echo "autoconf/Make.common \
9866 rescue/linux/Makefile \
9867 rescue/freebsd/Makefile \
9868 rescue/solaris/Makefile \
9869 scripts/startmysql \
9871 scripts/btraceback \
9880 scripts/bacula.desktop.gnome1 \
9881 scripts/bacula.desktop.gnome2 \
9882 scripts/mtx-changer \
9885 src/console/Makefile \
9886 src/console/console.conf \
9887 src/gnome-console/Makefile \
9888 src/gnome-console/gnome-console.conf \
9889 src/tconsole/Makefile \
9891 src/dird/bacula-dir.conf \
9893 src/stored/Makefile \
9894 src/stored/bacula-sd.conf \
9895 src/filed/Makefile \
9897 src/filed/bacula-fd.conf \
9898 src/filed/win32/Makefile \
9900 src/cats/make_catalog_backup \
9901 src/cats/delete_catalog_backup \
9902 src/cats/alter_mysql_tables \
9903 src/cats/make_mysql_tables \
9904 src/cats/drop_mysql_tables \
9905 src/cats/create_mysql_database \
9906 src/cats/grant_mysql_privileges \
9907 src/cats/alter_sqlite_tables \
9908 src/cats/make_sqlite_tables \
9909 src/cats/drop_sqlite_tables \
9910 src/cats/create_sqlite_database \
9913 src/cats/create_bdb_database \
9914 src/cats/make_bdb_tables \
9915 src/cats/drop_bdb_tables \
9916 src/cats/make_bacula_tables \
9917 src/cats/drop_bacula_tables \
9918 src/findlib/Makefile \
9919 src/tools/Makefile \
9920 $PFILES src/config.h:autoconf/config.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
9922 cat >> $CONFIG_STATUS <<EOF
9924 # Protect against being on the right side of a sed subst in config.status.
9925 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
9926 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
9930 s%@CFLAGS@%$CFLAGS%g
9931 s%@CPPFLAGS@%$CPPFLAGS%g
9932 s%@CXXFLAGS@%$CXXFLAGS%g
9933 s%@FFLAGS@%$FFLAGS%g
9935 s%@LDFLAGS@%$LDFLAGS%g
9937 s%@exec_prefix@%$exec_prefix%g
9938 s%@prefix@%$prefix%g
9939 s%@program_transform_name@%$program_transform_name%g
9940 s%@bindir@%$bindir%g
9941 s%@sbindir@%$sbindir%g
9942 s%@libexecdir@%$libexecdir%g
9943 s%@datadir@%$datadir%g
9944 s%@sysconfdir@%$sysconfdir%g
9945 s%@sharedstatedir@%$sharedstatedir%g
9946 s%@localstatedir@%$localstatedir%g
9947 s%@libdir@%$libdir%g
9948 s%@includedir@%$includedir%g
9949 s%@oldincludedir@%$oldincludedir%g
9950 s%@infodir@%$infodir%g
9951 s%@mandir@%$mandir%g
9952 s%@BUILD_DIR@%$BUILD_DIR%g
9953 s%@TRUEPRG@%$TRUEPRG%g
9954 s%@FALSEPRG@%$FALSEPRG%g
9956 s%@host_alias@%$host_alias%g
9957 s%@host_cpu@%$host_cpu%g
9958 s%@host_vendor@%$host_vendor%g
9959 s%@host_os@%$host_os%g
9960 s%@VERSION@%$VERSION%g
9962 s%@LSMDATE@%$LSMDATE%g
9966 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
9967 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
9968 s%@INSTALL_DATA@%$INSTALL_DATA%g
9969 s%@RANLIB@%$RANLIB%g
9979 s%@OPENSSL@%$OPENSSL%g
9981 s%@ARFLAGS@%$ARFLAGS%g
9982 s%@MAKE_SHELL@%$MAKE_SHELL%g
9983 s%@LOCAL_LIBS@%$LOCAL_LIBS%g
9984 s%@LOCAL_CFLAGS@%$LOCAL_CFLAGS%g
9985 s%@LOCAL_LDFLAGS@%$LOCAL_LDFLAGS%g
9986 s%@LOCAL_DEFS@%$LOCAL_DEFS%g
9987 s%@HAVE_SUN_OS_TRUE@%$HAVE_SUN_OS_TRUE%g
9988 s%@HAVE_SUN_OS_FALSE@%$HAVE_SUN_OS_FALSE%g
9989 s%@HAVE_OSF1_OS_TRUE@%$HAVE_OSF1_OS_TRUE%g
9990 s%@HAVE_OSF1_OS_FALSE@%$HAVE_OSF1_OS_FALSE%g
9991 s%@HAVE_AIX_OS_TRUE@%$HAVE_AIX_OS_TRUE%g
9992 s%@HAVE_AIX_OS_FALSE@%$HAVE_AIX_OS_FALSE%g
9993 s%@HAVE_HPUX_OS_TRUE@%$HAVE_HPUX_OS_TRUE%g
9994 s%@HAVE_HPUX_OS_FALSE@%$HAVE_HPUX_OS_FALSE%g
9995 s%@HAVE_LINUX_OS_TRUE@%$HAVE_LINUX_OS_TRUE%g
9996 s%@HAVE_LINUX_OS_FALSE@%$HAVE_LINUX_OS_FALSE%g
9997 s%@HAVE_FREEBSD_OS_TRUE@%$HAVE_FREEBSD_OS_TRUE%g
9998 s%@HAVE_FREEBSD_OS_FALSE@%$HAVE_FREEBSD_OS_FALSE%g
9999 s%@HAVE_NETBSD_OS_TRUE@%$HAVE_NETBSD_OS_TRUE%g
10000 s%@HAVE_NETBSD_OS_FALSE@%$HAVE_NETBSD_OS_FALSE%g
10001 s%@HAVE_OPENBSD_OS_TRUE@%$HAVE_OPENBSD_OS_TRUE%g
10002 s%@HAVE_OPENBSD_OS_FALSE@%$HAVE_OPENBSD_OS_FALSE%g
10003 s%@HAVE_BSDI_OS_TRUE@%$HAVE_BSDI_OS_TRUE%g
10004 s%@HAVE_BSDI_OS_FALSE@%$HAVE_BSDI_OS_FALSE%g
10005 s%@HAVE_SGI_OS_TRUE@%$HAVE_SGI_OS_TRUE%g
10006 s%@HAVE_SGI_OS_FALSE@%$HAVE_SGI_OS_FALSE%g
10007 s%@HAVE_IRIX_OS_TRUE@%$HAVE_IRIX_OS_TRUE%g
10008 s%@HAVE_IRIX_OS_FALSE@%$HAVE_IRIX_OS_FALSE%g
10009 s%@HAVE_DARWIN_OS_TRUE@%$HAVE_DARWIN_OS_TRUE%g
10010 s%@HAVE_DARWIN_OS_FALSE@%$HAVE_DARWIN_OS_FALSE%g
10011 s%@INSIDE_GNOME_COMMON_TRUE@%$INSIDE_GNOME_COMMON_TRUE%g
10012 s%@INSIDE_GNOME_COMMON_FALSE@%$INSIDE_GNOME_COMMON_FALSE%g
10013 s%@MSGFMT@%$MSGFMT%g
10014 s%@GNOME_LIBS@%$GNOME_LIBS%g
10015 s%@GNOMEUI_LIBS@%$GNOMEUI_LIBS%g
10016 s%@GNOMEGNORBA_LIBS@%$GNOMEGNORBA_LIBS%g
10017 s%@GTKXMHTML_LIBS@%$GTKXMHTML_LIBS%g
10018 s%@ZVT_LIBS@%$ZVT_LIBS%g
10019 s%@GNOME_LIBDIR@%$GNOME_LIBDIR%g
10020 s%@GNOME_INCLUDEDIR@%$GNOME_INCLUDEDIR%g
10021 s%@GNOME_CONFIG@%$GNOME_CONFIG%g
10022 s%@ORBIT_CONFIG@%$ORBIT_CONFIG%g
10023 s%@ORBIT_IDL@%$ORBIT_IDL%g
10024 s%@HAVE_ORBIT_TRUE@%$HAVE_ORBIT_TRUE%g
10025 s%@HAVE_ORBIT_FALSE@%$HAVE_ORBIT_FALSE%g
10026 s%@ORBIT_CFLAGS@%$ORBIT_CFLAGS%g
10027 s%@ORBIT_LIBS@%$ORBIT_LIBS%g
10028 s%@HAVE_GNORBA_TRUE@%$HAVE_GNORBA_TRUE%g
10029 s%@HAVE_GNORBA_FALSE@%$HAVE_GNORBA_FALSE%g
10030 s%@GNORBA_CFLAGS@%$GNORBA_CFLAGS%g
10031 s%@GNORBA_LIBS@%$GNORBA_LIBS%g
10032 s%@GNOME_APPLETS_LIBS@%$GNOME_APPLETS_LIBS%g
10033 s%@GNOME_DOCKLETS_LIBS@%$GNOME_DOCKLETS_LIBS%g
10034 s%@GNOME_CAPPLET_LIBS@%$GNOME_CAPPLET_LIBS%g
10035 s%@GNOME_DIR@%$GNOME_DIR%g
10036 s%@TTOOL_LDFLAGS@%$TTOOL_LDFLAGS%g
10037 s%@STATIC_FD@%$STATIC_FD%g
10038 s%@STATIC_SD@%$STATIC_SD%g
10039 s%@STATIC_DIR@%$STATIC_DIR%g
10040 s%@STATIC_CONS@%$STATIC_CONS%g
10041 s%@ALL_DIRS@%$ALL_DIRS%g
10042 s%@CONS_INC@%$CONS_INC%g
10043 s%@CONS_LIBS@%$CONS_LIBS%g
10044 s%@CONS_LDFLAGS@%$CONS_LDFLAGS%g
10045 s%@READLINE_SRC@%$READLINE_SRC%g
10046 s%@working_dir@%$working_dir%g
10047 s%@scriptdir@%$scriptdir%g
10048 s%@dump_email@%$dump_email%g
10049 s%@job_email@%$job_email%g
10050 s%@smtp_host@%$smtp_host%g
10051 s%@piddir@%$piddir%g
10052 s%@subsysdir@%$subsysdir%g
10053 s%@baseport@%$baseport%g
10054 s%@dir_port@%$dir_port%g
10055 s%@fd_port@%$fd_port%g
10056 s%@sd_port@%$sd_port%g
10057 s%@dir_password@%$dir_password%g
10058 s%@fd_password@%$fd_password%g
10059 s%@sd_password@%$sd_password%g
10060 s%@SQL_LFLAGS@%$SQL_LFLAGS%g
10061 s%@SQL_INCLUDE@%$SQL_INCLUDE%g
10062 s%@SQL_BINDIR@%$SQL_BINDIR%g
10064 s%@DB_NAME@%$DB_NAME%g
10065 s%@EXEEXT@%$EXEEXT%g
10067 s%@build_alias@%$build_alias%g
10068 s%@build_cpu@%$build_cpu%g
10069 s%@build_vendor@%$build_vendor%g
10070 s%@build_os@%$build_os%g
10071 s%@GETCONF@%$GETCONF%g
10072 s%@X_CFLAGS@%$X_CFLAGS%g
10073 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
10074 s%@X_LIBS@%$X_LIBS%g
10075 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
10076 s%@LIBOBJS@%$LIBOBJS%g
10077 s%@ALLOCA@%$ALLOCA%g
10078 s%@FDLIBS@%$FDLIBS%g
10080 s%@DINCLUDE@%$DINCLUDE%g
10082 s%@DB_LIBS@%$DB_LIBS%g
10083 s%@WCFLAGS@%$WCFLAGS%g
10084 s%@WLDFLAGS@%$WLDFLAGS%g
10085 s%@OBJLIST@%$OBJLIST%g
10086 s%@hostname@%$hostname%g
10087 s%@TAPEDRIVE@%$TAPEDRIVE%g
10090 s%@DISTNAME@%$DISTNAME%g
10091 s%@DISTVER@%$DISTVER%g
10092 /@MCOMMON@/r $MCOMMON
10098 cat >> $CONFIG_STATUS <<\EOF
10100 # Split the substitutions into bite-sized pieces for seds with
10101 # small command number limits, like on Digital OSF/1 and HP-UX.
10102 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
10103 ac_file=1 # Number of current file.
10104 ac_beg=1 # First line for current file.
10105 ac_end=$ac_max_sed_cmds # Line after last line for current file.
10108 while $ac_more_lines; do
10109 if test $ac_beg -gt 1; then
10110 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
10112 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
10114 if test ! -s conftest.s$ac_file; then
10115 ac_more_lines=false
10116 rm -f conftest.s$ac_file
10118 if test -z "$ac_sed_cmds"; then
10119 ac_sed_cmds="sed -f conftest.s$ac_file"
10121 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
10123 ac_file=`expr $ac_file + 1`
10125 ac_end=`expr $ac_end + $ac_max_sed_cmds`
10128 if test -z "$ac_sed_cmds"; then
10133 cat >> $CONFIG_STATUS <<EOF
10135 CONFIG_FILES=\${CONFIG_FILES-"autoconf/Make.common \
10138 rescue/linux/Makefile \
10139 rescue/freebsd/Makefile \
10140 rescue/solaris/Makefile \
10141 scripts/startmysql \
10142 scripts/stopmysql \
10143 scripts/btraceback \
10151 scripts/logrotate \
10152 scripts/bacula.desktop.gnome1 \
10153 scripts/bacula.desktop.gnome2 \
10154 scripts/mtx-changer \
10157 src/console/Makefile \
10158 src/console/console.conf \
10159 src/gnome-console/Makefile \
10160 src/gnome-console/gnome-console.conf \
10161 src/tconsole/Makefile \
10162 src/dird/Makefile \
10163 src/dird/bacula-dir.conf \
10165 src/stored/Makefile \
10166 src/stored/bacula-sd.conf \
10167 src/filed/Makefile \
10169 src/filed/bacula-fd.conf \
10170 src/filed/win32/Makefile \
10171 src/cats/Makefile \
10172 src/cats/make_catalog_backup \
10173 src/cats/delete_catalog_backup \
10174 src/cats/alter_mysql_tables \
10175 src/cats/make_mysql_tables \
10176 src/cats/drop_mysql_tables \
10177 src/cats/create_mysql_database \
10178 src/cats/grant_mysql_privileges \
10179 src/cats/alter_sqlite_tables \
10180 src/cats/make_sqlite_tables \
10181 src/cats/drop_sqlite_tables \
10182 src/cats/create_sqlite_database \
10185 src/cats/create_bdb_database \
10186 src/cats/make_bdb_tables \
10187 src/cats/drop_bdb_tables \
10188 src/cats/make_bacula_tables \
10189 src/cats/drop_bacula_tables \
10190 src/findlib/Makefile \
10191 src/tools/Makefile \
10194 cat >> $CONFIG_STATUS <<\EOF
10195 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
10196 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10198 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
10199 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
10200 *) ac_file_in="${ac_file}.in" ;;
10203 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
10205 # Remove last slash and all that follows it. Not all systems have dirname.
10206 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
10207 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
10208 # The file is in a subdirectory.
10209 test ! -d "$ac_dir" && mkdir "$ac_dir"
10210 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
10211 # A "../" for each directory in $ac_dir_suffix.
10212 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
10214 ac_dir_suffix= ac_dots=
10217 case "$ac_given_srcdir" in
10219 if test -z "$ac_dots"; then top_srcdir=.
10220 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
10221 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
10222 *) # Relative path.
10223 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
10224 top_srcdir="$ac_dots$ac_given_srcdir" ;;
10227 case "$ac_given_INSTALL" in
10228 [/$]*) INSTALL="$ac_given_INSTALL" ;;
10229 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
10232 echo creating "$ac_file"
10234 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
10236 *Makefile*) ac_comsub="1i\\
10237 # $configure_input" ;;
10241 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
10243 s%@configure_input@%$configure_input%g
10244 s%@srcdir@%$srcdir%g
10245 s%@top_srcdir@%$top_srcdir%g
10246 s%@INSTALL@%$INSTALL%g
10247 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
10251 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10252 # NAME is the cpp macro being defined and VALUE is the value it is being given.
10254 # ac_d sets the value in "#define NAME VALUE" lines.
10255 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
10256 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
10259 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
10260 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10261 ac_uB='\([ ]\)%\1#\2define\3'
10264 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10265 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10266 ac_eB='$%\1#\2define\3'
10270 if test "${CONFIG_HEADERS+set}" != set; then
10272 cat >> $CONFIG_STATUS <<EOF
10273 CONFIG_HEADERS="src/config.h:autoconf/config.h.in"
10275 cat >> $CONFIG_STATUS <<\EOF
10277 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
10278 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10280 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
10281 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
10282 *) ac_file_in="${ac_file}.in" ;;
10285 echo creating $ac_file
10287 rm -f conftest.frag conftest.in conftest.out
10288 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
10289 cat $ac_file_inputs > conftest.in
10293 # Transform confdefs.h into a sed script conftest.vals that substitutes
10294 # the proper values into config.h.in to produce config.h. And first:
10295 # Protect against being on the right side of a sed subst in config.status.
10296 # Protect against being in an unquoted here document in config.status.
10297 rm -f conftest.vals
10298 cat > conftest.hdr <<\EOF
10301 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
10305 sed -n -f conftest.hdr confdefs.h > conftest.vals
10308 # This sed command replaces #undef with comments. This is necessary, for
10309 # example, in the case of _POSIX_SOURCE, which is predefined and required
10310 # on some systems where configure will not decide to define it.
10311 cat >> conftest.vals <<\EOF
10312 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
10315 # Break up conftest.vals because some shells have a limit on
10316 # the size of here documents, and old seds have small limits too.
10318 rm -f conftest.tail
10321 ac_lines=`grep -c . conftest.vals`
10322 # grep -c gives empty output for an empty file on some AIX systems.
10323 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
10324 # Write a limited-size here document to conftest.frag.
10325 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
10326 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
10328 sed -f conftest.frag conftest.in > conftest.out
10330 mv conftest.out conftest.in
10331 ' >> $CONFIG_STATUS
10332 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
10333 rm -f conftest.vals
10334 mv conftest.tail conftest.vals
10336 rm -f conftest.vals
10338 cat >> $CONFIG_STATUS <<\EOF
10339 rm -f conftest.frag conftest.h
10340 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
10341 cat conftest.in >> conftest.h
10343 if cmp -s $ac_file conftest.h 2>/dev/null; then
10344 echo "$ac_file is unchanged"
10347 # Remove last slash and all that follows it. Not all systems have dirname.
10348 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
10349 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
10350 # The file is in a subdirectory.
10351 test ! -d "$ac_dir" && mkdir "$ac_dir"
10354 mv conftest.h $ac_file
10359 cat >> $CONFIG_STATUS <<EOF
10362 cat >> $CONFIG_STATUS <<\EOF
10363 (echo "Doing make of dependencies"; make depend;)
10367 chmod +x $CONFIG_STATUS
10368 rm -fr confdefs* $ac_clean_files
10369 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
10373 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
10374 chmod 755 console gconsole mtx-changer
10376 chmod 755 src/cats/make_mysql_tables src/cats/drop_mysql_tables
10377 chmod 755 src/cats/make_test_tables src/cats/drop_test_tables
10378 chmod 755 src/cats/create_mysql_database
10379 chmod 755 src/cats/make_catalog_backup src/cats/delete_catalog_backup
10380 chmod 755 src/cats/alter_mysql_tables
10381 chmod 755 src/cats/grant_mysql_privileges
10382 chmod 755 src/cats/make_sqlite_tables src/cats/drop_sqlite_tables
10383 chmod 755 src/cats/make_bacula_tables src/cats/drop_bacula_tables
10384 chmod 755 src/cats/create_sqlite_database
10385 chmod 755 src/cats/alter_sqlite_tables
10386 chmod 755 src/cats/sqlite
10387 chmod 755 src/cats/make_bdb_tables src/cats/drop_bdb_tables
10388 chmod 755 src/cats/create_bdb_database
10390 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
10391 largefile_support="yes"
10395 # A whole lot of hand springs to get the compiler version.
10396 # This is because gcc changed the output in version 3.0
10398 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
10399 if test "x${CCVERSION}" = "x" ; then
10400 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
10402 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
10403 if test x"${CXXVERSION}" = x ; then
10404 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
10407 if test "x${subsysdir}" = "x${sbindir}" ; then
10410 echo "You have set --sbindir and --with-subsys-dir"
10411 echo " both equal to: ${subsysdir} "
10412 echo " This is not permitted. Please reconfigure."
10413 echo "Aborting configuration ..."
10420 Configuration on `date`:
10422 Host: $host -- ${DISTNAME} ${DISTVER}
10423 Bacula version: ${VERSION} (${DATE})
10424 Source code location: ${srcdir}
10425 Install binaries: ${sbindir}
10426 Install config files: ${sysconfdir}
10427 Scripts directory: ${scriptdir}
10428 Working directory: ${working_dir}
10429 PID directory: ${piddir}
10430 Subsys directory: ${subsysdir}
10431 C Compiler: ${CC} ${CCVERSION}
10432 C++ Compiler: ${CXX} ${CXXVERSION}
10433 Compiler flags: ${WCFLAGS} ${CFLAGS}
10434 Linker flags: ${WLDFLAGS} ${LDFLAGS}
10436 Statically Linked Tools: ${support_static_tools}
10437 Statically Linked FD: ${support_static_fd}
10438 Statically Linked SD: ${support_static_sd}
10439 Statically Linked DIR: ${support_static_dir}
10440 Statically Linked CONS: ${support_static_cons}
10441 Database type: ${db_name}
10442 Database lib: ${DB_LIBS}
10444 Job Output Email: ${job_email}
10445 Traceback Email: ${dump_email}
10446 SMTP Host Address: ${smtp_host}
10447 Director Port ${dir_port}
10448 File daemon Port ${fd_port}
10449 Storage daemon Port ${sd_port}
10450 SQL binaries Directory ${SQL_BINDIR}
10452 Large file support: $largefile_support
10453 readline support: ${got_readline} ${PRTREADLINE_SRC}
10454 TCP Wrappers support: ${TCPW_MSG}
10455 ZLIB support: ${have_zlib}
10456 enable-smartalloc: ${support_smartalloc}
10457 enable-gnome: ${support_gnome}
10458 client-only: ${build_client_only}
10465 # cweb support: ${got_cweb} ${CWEB_SRC}
10466 # gmp support: ${got_gmp} ${GMP_SRC}