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-dump-email=EMAIL dump email address"
48 --with-job-email=EMAIL job output email address"
50 --with-smtp-host=HOST SMTP mail host address"
52 --with-pid-dir=PATH specify location of Bacula pid files"
54 --with-subsys-dir=PATH specify location of Bacula subsys file"
56 --with-baseport=PORT specify base port address for daemons"
58 --with-dir-password=PASSWORD specify Director's password"
60 --with-fd-password=PASSWORD specify Client's password"
62 --with-sd-password=PASSWORD specify Storage daemon's password"
65 Which DBMS do you want to use (please select only one):
66 --with-mysql[=DIR] Include MySQL support. DIR is the MySQL base
67 install directory, default is to search through
68 a number of common places for the MySQL files."
71 Which DBMS do you want to use (please select only one):
72 --with-embedded-mysql[=DIR] Include MySQL support. DIR is the MySQL base
73 install directory, default is to search through
74 a number of common places for the MySQL files."
77 Which DBMS do you want to use (please select only one):
78 --with-sqlite[=DIR] Include SQLite support. DIR is the SQLite base
79 install directory, default is to search through
80 a number of common places for the SQLite files."
82 --disable-largefile omit support for large files"
84 --with-x use the X Window System"
86 # Initialize some variables set by options.
87 # The variables have the same names as the options, with
88 # dashes changed to underlines.
90 cache_file=./config.cache
99 program_transform_name=s,x,x,
107 bindir='${exec_prefix}/bin'
108 sbindir='${exec_prefix}/sbin'
109 libexecdir='${exec_prefix}/libexec'
110 datadir='${prefix}/share'
111 sysconfdir='${prefix}/etc'
112 sharedstatedir='${prefix}/com'
113 localstatedir='${prefix}/var'
114 libdir='${exec_prefix}/lib'
115 includedir='${prefix}/include'
116 oldincludedir='/usr/include'
117 infodir='${prefix}/info'
118 mandir='${prefix}/man'
120 # Initialize some other variables.
123 SHELL=${CONFIG_SHELL-/bin/sh}
124 # Maximum number of lines to put in a shell here document.
131 # If the previous option needs an argument, assign it.
132 if test -n "$ac_prev"; then
133 eval "$ac_prev=\$ac_option"
139 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
143 # Accept the important Cygnus configure options, so we can diagnose typos.
147 -bindir | --bindir | --bindi | --bind | --bin | --bi)
149 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
150 bindir="$ac_optarg" ;;
152 -build | --build | --buil | --bui | --bu)
154 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
155 build="$ac_optarg" ;;
157 -cache-file | --cache-file | --cache-fil | --cache-fi \
158 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
159 ac_prev=cache_file ;;
160 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
161 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
162 cache_file="$ac_optarg" ;;
164 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
166 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
168 datadir="$ac_optarg" ;;
170 -disable-* | --disable-*)
171 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
172 # Reject names that are not valid shell variable names.
173 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
174 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
176 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
177 eval "enable_${ac_feature}=no" ;;
179 -enable-* | --enable-*)
180 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
181 # Reject names that are not valid shell variable names.
182 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
183 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
185 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
190 eval "enable_${ac_feature}='$ac_optarg'" ;;
192 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
193 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
194 | --exec | --exe | --ex)
195 ac_prev=exec_prefix ;;
196 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
197 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
198 | --exec=* | --exe=* | --ex=*)
199 exec_prefix="$ac_optarg" ;;
201 -gas | --gas | --ga | --g)
202 # Obsolete; use --with-gas.
205 -help | --help | --hel | --he)
206 # Omit some internal or obsolete options to make the list less imposing.
207 # This message is too long to be a string in the A/UX 3.1 sh.
209 Usage: configure [options] [host]
210 Options: [defaults in brackets after descriptions]
212 --cache-file=FILE cache test results in FILE
213 --help print this message
214 --no-create do not create output files
215 --quiet, --silent do not print \`checking...' messages
216 --version print the version of autoconf that created configure
217 Directory and file names:
218 --prefix=PREFIX install architecture-independent files in PREFIX
220 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
222 --bindir=DIR user executables in DIR [EPREFIX/bin]
223 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
224 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
225 --datadir=DIR read-only architecture-independent data in DIR
227 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
228 --sharedstatedir=DIR modifiable architecture-independent data in DIR
230 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
231 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
232 --includedir=DIR C header files in DIR [PREFIX/include]
233 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
234 --infodir=DIR info documentation in DIR [PREFIX/info]
235 --mandir=DIR man documentation in DIR [PREFIX/man]
236 --srcdir=DIR find the sources in DIR [configure dir or ..]
237 --program-prefix=PREFIX prepend PREFIX to installed program names
238 --program-suffix=SUFFIX append SUFFIX to installed program names
239 --program-transform-name=PROGRAM
240 run sed PROGRAM on installed program names
244 --build=BUILD configure for building on BUILD [BUILD=HOST]
245 --host=HOST configure for HOST [guessed]
246 --target=TARGET configure for TARGET [TARGET=HOST]
247 Features and packages:
248 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
249 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
250 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
251 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
252 --x-includes=DIR X include files are in DIR
253 --x-libraries=DIR X library files are in DIR
255 if test -n "$ac_help"; then
256 echo "--enable and --with options recognized:$ac_help"
260 -host | --host | --hos | --ho)
262 -host=* | --host=* | --hos=* | --ho=*)
265 -includedir | --includedir | --includedi | --included | --include \
266 | --includ | --inclu | --incl | --inc)
267 ac_prev=includedir ;;
268 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
269 | --includ=* | --inclu=* | --incl=* | --inc=*)
270 includedir="$ac_optarg" ;;
272 -infodir | --infodir | --infodi | --infod | --info | --inf)
274 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
275 infodir="$ac_optarg" ;;
277 -libdir | --libdir | --libdi | --libd)
279 -libdir=* | --libdir=* | --libdi=* | --libd=*)
280 libdir="$ac_optarg" ;;
282 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
283 | --libexe | --libex | --libe)
284 ac_prev=libexecdir ;;
285 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
286 | --libexe=* | --libex=* | --libe=*)
287 libexecdir="$ac_optarg" ;;
289 -localstatedir | --localstatedir | --localstatedi | --localstated \
290 | --localstate | --localstat | --localsta | --localst \
291 | --locals | --local | --loca | --loc | --lo)
292 ac_prev=localstatedir ;;
293 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
294 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
295 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
296 localstatedir="$ac_optarg" ;;
298 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
300 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
301 mandir="$ac_optarg" ;;
304 # Obsolete; use --without-fp.
307 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
311 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
312 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
315 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
316 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
317 | --oldin | --oldi | --old | --ol | --o)
318 ac_prev=oldincludedir ;;
319 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
320 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
321 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
322 oldincludedir="$ac_optarg" ;;
324 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
326 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
327 prefix="$ac_optarg" ;;
329 -program-prefix | --program-prefix | --program-prefi | --program-pref \
330 | --program-pre | --program-pr | --program-p)
331 ac_prev=program_prefix ;;
332 -program-prefix=* | --program-prefix=* | --program-prefi=* \
333 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
334 program_prefix="$ac_optarg" ;;
336 -program-suffix | --program-suffix | --program-suffi | --program-suff \
337 | --program-suf | --program-su | --program-s)
338 ac_prev=program_suffix ;;
339 -program-suffix=* | --program-suffix=* | --program-suffi=* \
340 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
341 program_suffix="$ac_optarg" ;;
343 -program-transform-name | --program-transform-name \
344 | --program-transform-nam | --program-transform-na \
345 | --program-transform-n | --program-transform- \
346 | --program-transform | --program-transfor \
347 | --program-transfo | --program-transf \
348 | --program-trans | --program-tran \
349 | --progr-tra | --program-tr | --program-t)
350 ac_prev=program_transform_name ;;
351 -program-transform-name=* | --program-transform-name=* \
352 | --program-transform-nam=* | --program-transform-na=* \
353 | --program-transform-n=* | --program-transform-=* \
354 | --program-transform=* | --program-transfor=* \
355 | --program-transfo=* | --program-transf=* \
356 | --program-trans=* | --program-tran=* \
357 | --progr-tra=* | --program-tr=* | --program-t=*)
358 program_transform_name="$ac_optarg" ;;
360 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
361 | -silent | --silent | --silen | --sile | --sil)
364 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
366 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
368 sbindir="$ac_optarg" ;;
370 -sharedstatedir | --sharedstatedir | --sharedstatedi \
371 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
372 | --sharedst | --shareds | --shared | --share | --shar \
374 ac_prev=sharedstatedir ;;
375 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
376 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
377 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
379 sharedstatedir="$ac_optarg" ;;
381 -site | --site | --sit)
383 -site=* | --site=* | --sit=*)
386 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
388 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
389 srcdir="$ac_optarg" ;;
391 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
392 | --syscon | --sysco | --sysc | --sys | --sy)
393 ac_prev=sysconfdir ;;
394 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
395 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
396 sysconfdir="$ac_optarg" ;;
398 -target | --target | --targe | --targ | --tar | --ta | --t)
400 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
401 target="$ac_optarg" ;;
403 -v | -verbose | --verbose | --verbos | --verbo | --verb)
406 -version | --version | --versio | --versi | --vers)
407 echo "configure generated by autoconf version 2.13"
411 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
412 # Reject names that are not valid shell variable names.
413 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
414 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
416 ac_package=`echo $ac_package| sed 's/-/_/g'`
421 eval "with_${ac_package}='$ac_optarg'" ;;
423 -without-* | --without-*)
424 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
425 # Reject names that are not valid shell variable names.
426 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
427 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
429 ac_package=`echo $ac_package| sed 's/-/_/g'`
430 eval "with_${ac_package}=no" ;;
433 # Obsolete; use --with-x.
436 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
437 | --x-incl | --x-inc | --x-in | --x-i)
438 ac_prev=x_includes ;;
439 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
440 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
441 x_includes="$ac_optarg" ;;
443 -x-libraries | --x-libraries | --x-librarie | --x-librari \
444 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
445 ac_prev=x_libraries ;;
446 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
447 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
448 x_libraries="$ac_optarg" ;;
450 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
454 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
455 echo "configure: warning: $ac_option: invalid host type" 1>&2
457 if test "x$nonopt" != xNONE; then
458 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
466 if test -n "$ac_prev"; then
467 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
470 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
472 # File descriptor usage:
475 # 2 errors and warnings
476 # 3 some systems may open it to /dev/tty
477 # 4 used on the Kubota Titan
478 # 6 checking for... messages and results
479 # 5 compiler messages saved in config.log
480 if test "$silent" = yes; then
488 This file contains any messages produced by compilers while
489 running configure, to aid debugging if configure makes a mistake.
492 # Strip out --no-create and --no-recursion so they do not pile up.
493 # Also quote any args containing shell metacharacters.
498 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
499 | --no-cr | --no-c) ;;
500 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
501 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
502 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
503 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
504 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
509 # Only set these to C if already set. These must not be set unconditionally
510 # because not all systems understand e.g. LANG=C (notably SCO).
511 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
512 # Non-C LC_CTYPE values break the ctype check.
513 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
514 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
515 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
516 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
518 # confdefs.h avoids OS command line length limits that DEFS can exceed.
519 rm -rf conftest* confdefs.h
520 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
523 # A filename unique to this package, relative to the directory that
524 # configure is in, which we can look for to find out if srcdir is correct.
525 ac_unique_file=src/version.h
527 # Find the source files, if location was not specified.
528 if test -z "$srcdir"; then
529 ac_srcdir_defaulted=yes
530 # Try the directory containing this script, then its parent.
532 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
533 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
535 if test ! -r $srcdir/$ac_unique_file; then
539 ac_srcdir_defaulted=no
541 if test ! -r $srcdir/$ac_unique_file; then
542 if test "$ac_srcdir_defaulted" = yes; then
543 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
545 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
548 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
550 # Prefer explicitly selected file to automatically selected ones.
551 if test -z "$CONFIG_SITE"; then
552 if test "x$prefix" != xNONE; then
553 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
555 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
558 for ac_site_file in $CONFIG_SITE; do
559 if test -r "$ac_site_file"; then
560 echo "loading site script $ac_site_file"
565 if test -r "$cache_file"; then
566 echo "loading cache $cache_file"
569 echo "creating cache $cache_file"
574 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
575 ac_cpp='$CPP $CPPFLAGS'
576 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
577 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
578 cross_compiling=$ac_cv_prog_cc_cross
582 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
583 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
584 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
591 ac_n= ac_c='\c' ac_t=
601 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
602 if test -f $ac_dir/install-sh; then
604 ac_install_sh="$ac_aux_dir/install-sh -c"
606 elif test -f $ac_dir/install.sh; then
608 ac_install_sh="$ac_aux_dir/install.sh -c"
612 if test -z "$ac_aux_dir"; then
613 { echo "configure: error: can not find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" 1>&2; exit 1; }
615 ac_config_guess=$ac_aux_dir/config.guess
616 ac_config_sub=$ac_aux_dir/config.sub
617 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
626 # Extract the first word of "$ac_prog", so it can be a program name with args.
627 set dummy $ac_prog; ac_word=$2
628 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
629 echo "configure:630: checking for $ac_word" >&5
630 if eval "test \"`echo '$''{'ac_cv_path_TRUEPRG'+set}'`\" = set"; then
631 echo $ac_n "(cached) $ac_c" 1>&6
635 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
638 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a dos path.
641 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
643 for ac_dir in $ac_dummy; do
644 test -z "$ac_dir" && ac_dir=.
645 if test -f $ac_dir/$ac_word; then
646 ac_cv_path_TRUEPRG="$ac_dir/$ac_word"
654 TRUEPRG="$ac_cv_path_TRUEPRG"
655 if test -n "$TRUEPRG"; then
656 echo "$ac_t""$TRUEPRG" 1>&6
658 echo "$ac_t""no" 1>&6
661 test -n "$TRUEPRG" && break
663 test -n "$TRUEPRG" || TRUEPRG=":"
667 # Extract the first word of "$ac_prog", so it can be a program name with args.
668 set dummy $ac_prog; ac_word=$2
669 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
670 echo "configure:671: checking for $ac_word" >&5
671 if eval "test \"`echo '$''{'ac_cv_path_FALSEPRG'+set}'`\" = set"; then
672 echo $ac_n "(cached) $ac_c" 1>&6
676 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
679 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a dos path.
682 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
684 for ac_dir in $ac_dummy; do
685 test -z "$ac_dir" && ac_dir=.
686 if test -f $ac_dir/$ac_word; then
687 ac_cv_path_FALSEPRG="$ac_dir/$ac_word"
695 FALSEPRG="$ac_cv_path_FALSEPRG"
696 if test -n "$FALSEPRG"; then
697 echo "$ac_t""$FALSEPRG" 1>&6
699 echo "$ac_t""no" 1>&6
702 test -n "$FALSEPRG" && break
704 test -n "$FALSEPRG" || FALSEPRG=":"
708 # Make sure we can run config.sub.
709 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
710 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
713 echo $ac_n "checking host system type""... $ac_c" 1>&6
714 echo "configure:715: checking host system type" >&5
717 case "$host_alias" in
721 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
722 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
724 *) host_alias=$nonopt ;;
728 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
729 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
730 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
731 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
732 echo "$ac_t""$host" 1>&6
735 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
736 DATE=`sed -n -e 's/^.* \t*DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
737 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
738 echo "configuring for bacula $VERSION ($DATE)"
742 # Extract the first word of "gcc", so it can be a program name with args.
743 set dummy gcc; ac_word=$2
744 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
745 echo "configure:746: checking for $ac_word" >&5
746 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
747 echo $ac_n "(cached) $ac_c" 1>&6
749 if test -n "$CC"; then
750 ac_cv_prog_CC="$CC" # Let the user override the test.
752 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
754 for ac_dir in $ac_dummy; do
755 test -z "$ac_dir" && ac_dir=.
756 if test -f $ac_dir/$ac_word; then
765 if test -n "$CC"; then
766 echo "$ac_t""$CC" 1>&6
768 echo "$ac_t""no" 1>&6
771 if test -z "$CC"; then
772 # Extract the first word of "cc", so it can be a program name with args.
773 set dummy cc; ac_word=$2
774 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
775 echo "configure:776: checking for $ac_word" >&5
776 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
777 echo $ac_n "(cached) $ac_c" 1>&6
779 if test -n "$CC"; then
780 ac_cv_prog_CC="$CC" # Let the user override the test.
782 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
785 for ac_dir in $ac_dummy; do
786 test -z "$ac_dir" && ac_dir=.
787 if test -f $ac_dir/$ac_word; then
788 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
797 if test $ac_prog_rejected = yes; then
798 # We found a bogon in the path, so make sure we never use it.
799 set dummy $ac_cv_prog_CC
801 if test $# -gt 0; then
802 # We chose a different compiler from the bogus one.
803 # However, it has the same basename, so the bogon will be chosen
804 # first if we set CC to just the basename; use the full file name.
806 set dummy "$ac_dir/$ac_word" "$@"
814 if test -n "$CC"; then
815 echo "$ac_t""$CC" 1>&6
817 echo "$ac_t""no" 1>&6
820 if test -z "$CC"; then
823 # Extract the first word of "cl", so it can be a program name with args.
824 set dummy cl; ac_word=$2
825 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
826 echo "configure:827: checking for $ac_word" >&5
827 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
828 echo $ac_n "(cached) $ac_c" 1>&6
830 if test -n "$CC"; then
831 ac_cv_prog_CC="$CC" # Let the user override the test.
833 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
835 for ac_dir in $ac_dummy; do
836 test -z "$ac_dir" && ac_dir=.
837 if test -f $ac_dir/$ac_word; then
846 if test -n "$CC"; then
847 echo "$ac_t""$CC" 1>&6
849 echo "$ac_t""no" 1>&6
854 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
857 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
858 echo "configure:859: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
861 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
862 ac_cpp='$CPP $CPPFLAGS'
863 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
864 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
865 cross_compiling=$ac_cv_prog_cc_cross
867 cat > conftest.$ac_ext << EOF
869 #line 870 "configure"
870 #include "confdefs.h"
874 if { (eval echo configure:875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
875 ac_cv_prog_cc_works=yes
876 # If we can't run a trivial program, we are probably using a cross compiler.
877 if (./conftest; exit) 2>/dev/null; then
878 ac_cv_prog_cc_cross=no
880 ac_cv_prog_cc_cross=yes
883 echo "configure: failed program was:" >&5
884 cat conftest.$ac_ext >&5
885 ac_cv_prog_cc_works=no
889 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
890 ac_cpp='$CPP $CPPFLAGS'
891 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
892 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
893 cross_compiling=$ac_cv_prog_cc_cross
895 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
896 if test $ac_cv_prog_cc_works = no; then
897 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
899 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
900 echo "configure:901: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
901 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
902 cross_compiling=$ac_cv_prog_cc_cross
904 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
905 echo "configure:906: checking whether we are using GNU C" >&5
906 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
907 echo $ac_n "(cached) $ac_c" 1>&6
909 cat > conftest.c <<EOF
914 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:915: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
921 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
923 if test $ac_cv_prog_gcc = yes; then
929 ac_test_CFLAGS="${CFLAGS+set}"
930 ac_save_CFLAGS="$CFLAGS"
932 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
933 echo "configure:934: checking whether ${CC-cc} accepts -g" >&5
934 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
935 echo $ac_n "(cached) $ac_c" 1>&6
937 echo 'void f(){}' > conftest.c
938 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
947 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
948 if test "$ac_test_CFLAGS" = set; then
949 CFLAGS="$ac_save_CFLAGS"
950 elif test $ac_cv_prog_cc_g = yes; then
951 if test "$GCC" = yes; then
957 if test "$GCC" = yes; then
964 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
966 # Extract the first word of "$ac_prog", so it can be a program name with args.
967 set dummy $ac_prog; ac_word=$2
968 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
969 echo "configure:970: checking for $ac_word" >&5
970 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
971 echo $ac_n "(cached) $ac_c" 1>&6
973 if test -n "$CXX"; then
974 ac_cv_prog_CXX="$CXX" # Let the user override the test.
976 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
978 for ac_dir in $ac_dummy; do
979 test -z "$ac_dir" && ac_dir=.
980 if test -f $ac_dir/$ac_word; then
981 ac_cv_prog_CXX="$ac_prog"
988 CXX="$ac_cv_prog_CXX"
989 if test -n "$CXX"; then
990 echo "$ac_t""$CXX" 1>&6
992 echo "$ac_t""no" 1>&6
995 test -n "$CXX" && break
997 test -n "$CXX" || CXX="gcc"
1000 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1001 echo "configure:1002: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1004 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1005 ac_cpp='$CXXCPP $CPPFLAGS'
1006 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1007 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1008 cross_compiling=$ac_cv_prog_cxx_cross
1010 cat > conftest.$ac_ext << EOF
1012 #line 1013 "configure"
1013 #include "confdefs.h"
1015 int main(){return(0);}
1017 if { (eval echo configure:1018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1018 ac_cv_prog_cxx_works=yes
1019 # If we can't run a trivial program, we are probably using a cross compiler.
1020 if (./conftest; exit) 2>/dev/null; then
1021 ac_cv_prog_cxx_cross=no
1023 ac_cv_prog_cxx_cross=yes
1026 echo "configure: failed program was:" >&5
1027 cat conftest.$ac_ext >&5
1028 ac_cv_prog_cxx_works=no
1032 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1033 ac_cpp='$CPP $CPPFLAGS'
1034 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1035 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1036 cross_compiling=$ac_cv_prog_cc_cross
1038 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1039 if test $ac_cv_prog_cxx_works = no; then
1040 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1042 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1043 echo "configure:1044: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1044 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1045 cross_compiling=$ac_cv_prog_cxx_cross
1047 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1048 echo "configure:1049: checking whether we are using GNU C++" >&5
1049 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1050 echo $ac_n "(cached) $ac_c" 1>&6
1052 cat > conftest.C <<EOF
1057 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1058: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1064 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1066 if test $ac_cv_prog_gxx = yes; then
1072 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1073 ac_save_CXXFLAGS="$CXXFLAGS"
1075 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1076 echo "configure:1077: checking whether ${CXX-g++} accepts -g" >&5
1077 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1078 echo $ac_n "(cached) $ac_c" 1>&6
1080 echo 'void f(){}' > conftest.cc
1081 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1082 ac_cv_prog_cxx_g=yes
1090 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1091 if test "$ac_test_CXXFLAGS" = set; then
1092 CXXFLAGS="$ac_save_CXXFLAGS"
1093 elif test $ac_cv_prog_cxx_g = yes; then
1094 if test "$GXX" = yes; then
1100 if test "$GXX" = yes; then
1107 for ac_declaration in \
1109 '#include <stdlib.h>' \
1110 'extern "C" void std::exit (int) throw (); using std::exit;' \
1111 'extern "C" void std::exit (int); using std::exit;' \
1112 'extern "C" void exit (int) throw ();' \
1113 'extern "C" void exit (int);' \
1116 cat > conftest.$ac_ext <<EOF
1117 #line 1118 "configure"
1118 #include "confdefs.h"
1125 if { (eval echo configure:1126: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1128 echo "configure: failed program was:" >&5
1129 cat conftest.$ac_ext >&5
1134 cat > conftest.$ac_ext <<EOF
1135 #line 1136 "configure"
1136 #include "confdefs.h"
1142 if { (eval echo configure:1143: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1146 echo "configure: failed program was:" >&5
1147 cat conftest.$ac_ext >&5
1151 if test -n "$ac_declaration"; then
1152 echo '#ifdef __cplusplus' >>confdefs.h
1153 echo $ac_declaration >>confdefs.h
1154 echo '#endif' >>confdefs.h
1158 if test "x$CC" != xcc; then
1159 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1160 echo "configure:1161: checking whether $CC and cc understand -c and -o together" >&5
1162 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1163 echo "configure:1164: checking whether cc understands -c and -o together" >&5
1165 set dummy $CC; ac_cc="`echo $2 |
1166 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1167 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1168 echo $ac_n "(cached) $ac_c" 1>&6
1170 echo 'foo(){}' > conftest.c
1171 # Make sure it works both with $CC and with simple cc.
1172 # We do the test twice because some compilers refuse to overwrite an
1173 # existing .o file with -o, though they will create one.
1174 ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1175 if { (eval echo configure:1176: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1176 test -f conftest.o && { (eval echo configure:1177: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1178 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
1179 if test "x$CC" != xcc; then
1180 # Test first that cc exists at all.
1181 if { ac_try='cc -c conftest.c 1>&5'; { (eval echo configure:1182: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1182 ac_try='cc -c conftest.c -o conftest.o 1>&5'
1183 if { (eval echo configure:1184: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1184 test -f conftest.o && { (eval echo configure:1185: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1189 # cc exists but doesn't like -o.
1190 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1195 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1200 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1201 echo "$ac_t""yes" 1>&6
1203 echo "$ac_t""no" 1>&6
1204 cat >> confdefs.h <<\EOF
1205 #define NO_MINUS_C_MINUS_O 1
1209 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1210 echo "configure:1211: checking how to run the C preprocessor" >&5
1211 # On Suns, sometimes $CPP names a directory.
1212 if test -n "$CPP" && test -d "$CPP"; then
1215 if test -z "$CPP"; then
1216 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1217 echo $ac_n "(cached) $ac_c" 1>&6
1219 # This must be in double quotes, not single quotes, because CPP may get
1220 # substituted into the Makefile and "${CC-cc}" will confuse make.
1222 # On the NeXT, cc -E runs the code through the compiler's parser,
1223 # not just through cpp.
1224 cat > conftest.$ac_ext <<EOF
1225 #line 1226 "configure"
1226 #include "confdefs.h"
1230 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1231 { (eval echo configure:1232: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1232 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1233 if test -z "$ac_err"; then
1237 echo "configure: failed program was:" >&5
1238 cat conftest.$ac_ext >&5
1240 CPP="${CC-cc} -E -traditional-cpp"
1241 cat > conftest.$ac_ext <<EOF
1242 #line 1243 "configure"
1243 #include "confdefs.h"
1247 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1248 { (eval echo configure:1249: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1249 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1250 if test -z "$ac_err"; then
1254 echo "configure: failed program was:" >&5
1255 cat conftest.$ac_ext >&5
1257 CPP="${CC-cc} -nologo -E"
1258 cat > conftest.$ac_ext <<EOF
1259 #line 1260 "configure"
1260 #include "confdefs.h"
1264 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1265 { (eval echo configure:1266: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1266 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1267 if test -z "$ac_err"; then
1271 echo "configure: failed program was:" >&5
1272 cat conftest.$ac_ext >&5
1281 ac_cv_prog_CPP="$CPP"
1283 CPP="$ac_cv_prog_CPP"
1285 ac_cv_prog_CPP="$CPP"
1287 echo "$ac_t""$CPP" 1>&6
1289 if test $ac_cv_prog_gcc = yes; then
1290 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1291 echo "configure:1292: checking whether ${CC-cc} needs -traditional" >&5
1292 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
1293 echo $ac_n "(cached) $ac_c" 1>&6
1295 ac_pattern="Autoconf.*'x'"
1296 cat > conftest.$ac_ext <<EOF
1297 #line 1298 "configure"
1298 #include "confdefs.h"
1302 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1303 egrep "$ac_pattern" >/dev/null 2>&1; then
1305 ac_cv_prog_gcc_traditional=yes
1308 ac_cv_prog_gcc_traditional=no
1313 if test $ac_cv_prog_gcc_traditional = no; then
1314 cat > conftest.$ac_ext <<EOF
1315 #line 1316 "configure"
1316 #include "confdefs.h"
1320 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1321 egrep "$ac_pattern" >/dev/null 2>&1; then
1323 ac_cv_prog_gcc_traditional=yes
1330 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
1331 if test $ac_cv_prog_gcc_traditional = yes; then
1332 CC="$CC -traditional"
1338 cat >> confdefs.h <<\EOF
1344 # Find a good install program. We prefer a C program (faster),
1345 # so one script is as good as another. But avoid the broken or
1346 # incompatible versions:
1347 # SysV /etc/install, /usr/sbin/install
1348 # SunOS /usr/etc/install
1349 # IRIX /sbin/install
1351 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1352 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1353 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1354 # ./install, which can be erroneously created by make from ./install.sh.
1355 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1356 echo "configure:1357: checking for a BSD compatible install" >&5
1357 if test -z "$INSTALL"; then
1358 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1359 echo $ac_n "(cached) $ac_c" 1>&6
1361 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1362 for ac_dir in $PATH; do
1363 # Account for people who put trailing slashes in PATH elements.
1365 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1367 # OSF1 and SCO ODT 3.0 have their own names for install.
1368 # Don't use installbsd from OSF since it installs stuff as root
1370 for ac_prog in ginstall scoinst install; do
1371 if test -f $ac_dir/$ac_prog; then
1372 if test $ac_prog = install &&
1373 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1374 # AIX install. It has an incompatible calling convention.
1377 ac_cv_path_install="$ac_dir/$ac_prog -c"
1388 if test "${ac_cv_path_install+set}" = set; then
1389 INSTALL="$ac_cv_path_install"
1391 # As a last resort, use the slow shell script. We don't cache a
1392 # path for INSTALL within a source directory, because that will
1393 # break other packages using the cache if that directory is
1394 # removed, or if the path is relative.
1395 INSTALL="$ac_install_sh"
1398 echo "$ac_t""$INSTALL" 1>&6
1400 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1401 # It thinks the first close brace ends the variable substitution.
1402 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1404 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1406 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1408 # Extract the first word of "ranlib", so it can be a program name with args.
1409 set dummy ranlib; ac_word=$2
1410 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1411 echo "configure:1412: checking for $ac_word" >&5
1412 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1413 echo $ac_n "(cached) $ac_c" 1>&6
1415 if test -n "$RANLIB"; then
1416 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1418 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1420 for ac_dir in $ac_dummy; do
1421 test -z "$ac_dir" && ac_dir=.
1422 if test -f $ac_dir/$ac_word; then
1423 ac_cv_prog_RANLIB="ranlib"
1428 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1431 RANLIB="$ac_cv_prog_RANLIB"
1432 if test -n "$RANLIB"; then
1433 echo "$ac_t""$RANLIB" 1>&6
1435 echo "$ac_t""no" 1>&6
1438 # Extract the first word of "mv", so it can be a program name with args.
1439 set dummy mv; ac_word=$2
1440 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1441 echo "configure:1442: checking for $ac_word" >&5
1442 if eval "test \"`echo '$''{'ac_cv_path_MV'+set}'`\" = set"; then
1443 echo $ac_n "(cached) $ac_c" 1>&6
1447 ac_cv_path_MV="$MV" # Let the user override the test with a path.
1450 ac_cv_path_MV="$MV" # Let the user override the test with a dos path.
1453 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1455 for ac_dir in $ac_dummy; do
1456 test -z "$ac_dir" && ac_dir=.
1457 if test -f $ac_dir/$ac_word; then
1458 ac_cv_path_MV="$ac_dir/$ac_word"
1463 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
1468 if test -n "$MV"; then
1469 echo "$ac_t""$MV" 1>&6
1471 echo "$ac_t""no" 1>&6
1474 # Extract the first word of "rm", so it can be a program name with args.
1475 set dummy rm; ac_word=$2
1476 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1477 echo "configure:1478: checking for $ac_word" >&5
1478 if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then
1479 echo $ac_n "(cached) $ac_c" 1>&6
1483 ac_cv_path_RM="$RM" # Let the user override the test with a path.
1486 ac_cv_path_RM="$RM" # Let the user override the test with a dos path.
1489 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1491 for ac_dir in $ac_dummy; do
1492 test -z "$ac_dir" && ac_dir=.
1493 if test -f $ac_dir/$ac_word; then
1494 ac_cv_path_RM="$ac_dir/$ac_word"
1499 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
1504 if test -n "$RM"; then
1505 echo "$ac_t""$RM" 1>&6
1507 echo "$ac_t""no" 1>&6
1510 # Extract the first word of "cp", so it can be a program name with args.
1511 set dummy cp; ac_word=$2
1512 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1513 echo "configure:1514: checking for $ac_word" >&5
1514 if eval "test \"`echo '$''{'ac_cv_path_CP'+set}'`\" = set"; then
1515 echo $ac_n "(cached) $ac_c" 1>&6
1519 ac_cv_path_CP="$CP" # Let the user override the test with a path.
1522 ac_cv_path_CP="$CP" # Let the user override the test with a dos path.
1525 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1527 for ac_dir in $ac_dummy; do
1528 test -z "$ac_dir" && ac_dir=.
1529 if test -f $ac_dir/$ac_word; then
1530 ac_cv_path_CP="$ac_dir/$ac_word"
1535 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
1540 if test -n "$CP"; then
1541 echo "$ac_t""$CP" 1>&6
1543 echo "$ac_t""no" 1>&6
1546 # Extract the first word of "sed", so it can be a program name with args.
1547 set dummy sed; ac_word=$2
1548 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1549 echo "configure:1550: checking for $ac_word" >&5
1550 if eval "test \"`echo '$''{'ac_cv_path_SED'+set}'`\" = set"; then
1551 echo $ac_n "(cached) $ac_c" 1>&6
1555 ac_cv_path_SED="$SED" # Let the user override the test with a path.
1558 ac_cv_path_SED="$SED" # Let the user override the test with a dos path.
1561 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1563 for ac_dir in $ac_dummy; do
1564 test -z "$ac_dir" && ac_dir=.
1565 if test -f $ac_dir/$ac_word; then
1566 ac_cv_path_SED="$ac_dir/$ac_word"
1571 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
1575 SED="$ac_cv_path_SED"
1576 if test -n "$SED"; then
1577 echo "$ac_t""$SED" 1>&6
1579 echo "$ac_t""no" 1>&6
1582 # Extract the first word of "awk", so it can be a program name with args.
1583 set dummy awk; ac_word=$2
1584 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1585 echo "configure:1586: checking for $ac_word" >&5
1586 if eval "test \"`echo '$''{'ac_cv_path_AWK'+set}'`\" = set"; then
1587 echo $ac_n "(cached) $ac_c" 1>&6
1591 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
1594 ac_cv_path_AWK="$AWK" # Let the user override the test with a dos path.
1597 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1599 for ac_dir in $ac_dummy; do
1600 test -z "$ac_dir" && ac_dir=.
1601 if test -f $ac_dir/$ac_word; then
1602 ac_cv_path_AWK="$ac_dir/$ac_word"
1607 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
1611 AWK="$ac_cv_path_AWK"
1612 if test -n "$AWK"; then
1613 echo "$ac_t""$AWK" 1>&6
1615 echo "$ac_t""no" 1>&6
1618 # Extract the first word of "echo", so it can be a program name with args.
1619 set dummy echo; ac_word=$2
1620 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1621 echo "configure:1622: checking for $ac_word" >&5
1622 if eval "test \"`echo '$''{'ac_cv_path_ECHO'+set}'`\" = set"; then
1623 echo $ac_n "(cached) $ac_c" 1>&6
1627 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
1630 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a dos path.
1633 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1635 for ac_dir in $ac_dummy; do
1636 test -z "$ac_dir" && ac_dir=.
1637 if test -f $ac_dir/$ac_word; then
1638 ac_cv_path_ECHO="$ac_dir/$ac_word"
1643 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
1647 ECHO="$ac_cv_path_ECHO"
1648 if test -n "$ECHO"; then
1649 echo "$ac_t""$ECHO" 1>&6
1651 echo "$ac_t""no" 1>&6
1654 # Extract the first word of "cmp", so it can be a program name with args.
1655 set dummy cmp; ac_word=$2
1656 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1657 echo "configure:1658: checking for $ac_word" >&5
1658 if eval "test \"`echo '$''{'ac_cv_path_CMP'+set}'`\" = set"; then
1659 echo $ac_n "(cached) $ac_c" 1>&6
1663 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
1666 ac_cv_path_CMP="$CMP" # Let the user override the test with a dos path.
1669 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1671 for ac_dir in $ac_dummy; do
1672 test -z "$ac_dir" && ac_dir=.
1673 if test -f $ac_dir/$ac_word; then
1674 ac_cv_path_CMP="$ac_dir/$ac_word"
1679 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
1683 CMP="$ac_cv_path_CMP"
1684 if test -n "$CMP"; then
1685 echo "$ac_t""$CMP" 1>&6
1687 echo "$ac_t""no" 1>&6
1690 # Extract the first word of "tbl", so it can be a program name with args.
1691 set dummy tbl; ac_word=$2
1692 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1693 echo "configure:1694: checking for $ac_word" >&5
1694 if eval "test \"`echo '$''{'ac_cv_path_TBL'+set}'`\" = set"; then
1695 echo $ac_n "(cached) $ac_c" 1>&6
1699 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
1702 ac_cv_path_TBL="$TBL" # Let the user override the test with a dos path.
1705 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1707 for ac_dir in $ac_dummy; do
1708 test -z "$ac_dir" && ac_dir=.
1709 if test -f $ac_dir/$ac_word; then
1710 ac_cv_path_TBL="$ac_dir/$ac_word"
1715 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
1719 TBL="$ac_cv_path_TBL"
1720 if test -n "$TBL"; then
1721 echo "$ac_t""$TBL" 1>&6
1723 echo "$ac_t""no" 1>&6
1726 # Extract the first word of "ar", so it can be a program name with args.
1727 set dummy ar; ac_word=$2
1728 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1729 echo "configure:1730: checking for $ac_word" >&5
1730 if eval "test \"`echo '$''{'ac_cv_path_AR'+set}'`\" = set"; then
1731 echo $ac_n "(cached) $ac_c" 1>&6
1735 ac_cv_path_AR="$AR" # Let the user override the test with a path.
1738 ac_cv_path_AR="$AR" # Let the user override the test with a dos path.
1741 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1743 for ac_dir in $ac_dummy; do
1744 test -z "$ac_dir" && ac_dir=.
1745 if test -f $ac_dir/$ac_word; then
1746 ac_cv_path_AR="$ac_dir/$ac_word"
1751 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
1756 if test -n "$AR"; then
1757 echo "$ac_t""$AR" 1>&6
1759 echo "$ac_t""no" 1>&6
1762 # Extract the first word of "ranlib", so it can be a program name with args.
1763 set dummy ranlib; ac_word=$2
1764 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1765 echo "configure:1766: checking for $ac_word" >&5
1766 if eval "test \"`echo '$''{'ac_cv_path_RANLIB'+set}'`\" = set"; then
1767 echo $ac_n "(cached) $ac_c" 1>&6
1771 ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a path.
1774 ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a dos path.
1777 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1779 for ac_dir in $ac_dummy; do
1780 test -z "$ac_dir" && ac_dir=.
1781 if test -f $ac_dir/$ac_word; then
1782 ac_cv_path_RANLIB="$ac_dir/$ac_word"
1787 test -z "$ac_cv_path_RANLIB" && ac_cv_path_RANLIB="ranlib"
1791 RANLIB="$ac_cv_path_RANLIB"
1792 if test -n "$RANLIB"; then
1793 echo "$ac_t""$RANLIB" 1>&6
1795 echo "$ac_t""no" 1>&6
1798 # Extract the first word of "openssl", so it can be a program name with args.
1799 set dummy openssl; ac_word=$2
1800 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1801 echo "configure:1802: checking for $ac_word" >&5
1802 if eval "test \"`echo '$''{'ac_cv_path_OPENSSL'+set}'`\" = set"; then
1803 echo $ac_n "(cached) $ac_c" 1>&6
1807 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
1810 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a dos path.
1813 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1815 for ac_dir in $ac_dummy; do
1816 test -z "$ac_dir" && ac_dir=.
1817 if test -f $ac_dir/$ac_word; then
1818 ac_cv_path_OPENSSL="$ac_dir/$ac_word"
1823 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
1827 OPENSSL="$ac_cv_path_OPENSSL"
1828 if test -n "$OPENSSL"; then
1829 echo "$ac_t""$OPENSSL" 1>&6
1831 echo "$ac_t""no" 1>&6
1835 test -n "$ARFLAG" || ARFLAGS="cr"
1848 echo $ac_n "checking for Operating System""... $ac_c" 1>&6
1849 echo "configure:1850: checking for Operating System" >&5
1850 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1851 echo "configure:1852: checking for Cygwin environment" >&5
1852 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1853 echo $ac_n "(cached) $ac_c" 1>&6
1855 cat > conftest.$ac_ext <<EOF
1856 #line 1857 "configure"
1857 #include "confdefs.h"
1862 #define __CYGWIN__ __CYGWIN32__
1867 if { (eval echo configure:1868: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1871 echo "configure: failed program was:" >&5
1872 cat conftest.$ac_ext >&5
1880 echo "$ac_t""$ac_cv_cygwin" 1>&6
1882 test "$ac_cv_cygwin" = yes && CYGWIN=yes
1883 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
1889 HAVE_SUN_OS_FALSE='#'
1891 HAVE_SUN_OS_TRUE='#'
1894 cat >> confdefs.h <<\EOF
1895 #define HAVE_SUN_OS 1
1903 HAVE_SUN_OS_FALSE='#'
1905 HAVE_SUN_OS_TRUE='#'
1910 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
1916 HAVE_OSF1_OS_FALSE='#'
1918 HAVE_OSF1_OS_TRUE='#'
1921 cat >> confdefs.h <<\EOF
1922 #define HAVE_OSF1_OS 1
1930 HAVE_OSF1_OS_FALSE='#'
1932 HAVE_OSF1_OS_TRUE='#'
1937 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
1943 HAVE_AIX_OS_FALSE='#'
1945 HAVE_AIX_OS_TRUE='#'
1948 cat >> confdefs.h <<\EOF
1949 #define HAVE_AIX_OS 1
1957 HAVE_AIX_OS_FALSE='#'
1959 HAVE_AIX_OS_TRUE='#'
1964 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
1970 HAVE_HPUX_OS_FALSE='#'
1972 HAVE_HPUX_OS_TRUE='#'
1975 cat >> confdefs.h <<\EOF
1976 #define HAVE_HPUX_OS 1
1984 HAVE_HPUX_OS_FALSE='#'
1986 HAVE_HPUX_OS_TRUE='#'
1991 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
1997 HAVE_LINUX_OS_FALSE='#'
1999 HAVE_LINUX_OS_TRUE='#'
2000 HAVE_LINUX_OS_FALSE=
2002 cat >> confdefs.h <<\EOF
2003 #define HAVE_LINUX_OS 1
2011 HAVE_LINUX_OS_FALSE='#'
2013 HAVE_LINUX_OS_TRUE='#'
2014 HAVE_LINUX_OS_FALSE=
2018 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
2023 HAVE_FREEBSD_OS_TRUE=
2024 HAVE_FREEBSD_OS_FALSE='#'
2026 HAVE_FREEBSD_OS_TRUE='#'
2027 HAVE_FREEBSD_OS_FALSE=
2029 cat >> confdefs.h <<\EOF
2030 #define HAVE_FREEBSD_OS 1
2037 HAVE_FREEBSD_OS_TRUE=
2038 HAVE_FREEBSD_OS_FALSE='#'
2040 HAVE_FREEBSD_OS_TRUE='#'
2041 HAVE_FREEBSD_OS_FALSE=
2045 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
2050 HAVE_NETBSD_OS_TRUE=
2051 HAVE_NETBSD_OS_FALSE='#'
2053 HAVE_NETBSD_OS_TRUE='#'
2054 HAVE_NETBSD_OS_FALSE=
2056 cat >> confdefs.h <<\EOF
2057 #define HAVE_NETBSD_OS 1
2064 HAVE_NETBSD_OS_TRUE=
2065 HAVE_NETBSD_OS_FALSE='#'
2067 HAVE_NETBSD_OS_TRUE='#'
2068 HAVE_NETBSD_OS_FALSE=
2072 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
2077 HAVE_OPENBSD_OS_TRUE=
2078 HAVE_OPENBSD_OS_FALSE='#'
2080 HAVE_OPENBSD_OS_TRUE='#'
2081 HAVE_OPENBSD_OS_FALSE=
2083 cat >> confdefs.h <<\EOF
2084 #define HAVE_OPENBSD_OS 1
2091 HAVE_OPENBSD_OS_TRUE=
2092 HAVE_OPENBSD_OS_FALSE='#'
2094 HAVE_OPENBSD_OS_TRUE='#'
2095 HAVE_OPENBSD_OS_FALSE=
2099 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
2105 HAVE_BSDI_OS_FALSE='#'
2107 HAVE_BSDI_OS_TRUE='#'
2110 cat >> confdefs.h <<\EOF
2111 #define HAVE_BSDI_OS 1
2119 HAVE_BSDI_OS_FALSE='#'
2121 HAVE_BSDI_OS_TRUE='#'
2126 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
2132 HAVE_SGI_OS_FALSE='#'
2134 HAVE_SGI_OS_TRUE='#'
2137 cat >> confdefs.h <<\EOF
2138 #define HAVE_SGI_OS 1
2146 HAVE_SGI_OS_FALSE='#'
2148 HAVE_SGI_OS_TRUE='#'
2153 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
2159 HAVE_IRIX_OS_FALSE='#'
2161 HAVE_IRIX_OS_TRUE='#'
2164 cat >> confdefs.h <<\EOF
2165 #define HAVE_IRIX_OS 1
2173 HAVE_IRIX_OS_FALSE='#'
2175 HAVE_IRIX_OS_TRUE='#'
2180 echo "$ac_t""" "" 1>&6
2183 # -----------------------------------------------------------
2184 # ----------------------------------------------------------
2185 echo $ac_n "checking for Operating System Distribution""... $ac_c" 1>&6
2186 echo "configure:2187: checking for Operating System Distribution" >&5
2187 if test "x$DISTNAME" != "x"
2189 echo "distname set to $DISTNAME"
2190 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
2193 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
2196 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
2199 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
2202 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
2205 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
2208 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
2211 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
2214 elif test -f /etc/SuSE-release
2217 elif test -d /etc/SuSEconfig
2220 elif test -d /usr/src/OpenLinux
2223 elif test -f /etc/redhat-release
2226 elif test -f /etc/debian_version
2229 elif test -f /etc/slackware-version
2232 elif test "$ac_cv_cygwin" = yes
2235 cat >> confdefs.h <<\EOF
2236 #define HAVE_CYGWIN 1
2242 echo "$ac_t""" "" 1>&6
2245 # -----------------------------------------------------------
2246 # ----------------------------------------------------------
2251 INSIDE_GNOME_COMMON_TRUE=
2252 INSIDE_GNOME_COMMON_FALSE='#'
2254 INSIDE_GNOME_COMMON_TRUE='#'
2255 INSIDE_GNOME_COMMON_FALSE=
2258 test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
2260 for k in gnome-macros ; do ACLOCAL="$ACLOCAL -I $k" ; done
2263 # ------------------------------------------------------------------
2264 # If the user has not set --prefix, we set our default to nothing.
2265 # In this case, if the user has not set --sysconfdir, we set it
2266 # to the package default of /etc/bacula. If either --prefix or
2267 # --sysconfdir is set, we leave sysconfdir alone except to eval it.
2268 # ------------------------------------------------------------------
2269 if test x${prefix} = xNONE ; then
2270 if test `eval echo ${sysconfdir}` = NONE/etc ; then
2271 sysconfdir=/etc/bacula
2275 sysconfdir=`eval echo ${sysconfdir}`
2277 # -------------------------------------------------------------------------
2278 # If the user has not set --exec-prefix, we default to ${prefix}
2279 # -------------------------------------------------------------------------
2280 if test x${exec_prefix} = xNONE ; then
2281 exec_prefix=${prefix}
2284 # ------------------------------------------------------------------
2285 # If the user has not set --sbindir, we set our default as /sbin
2286 # ------------------------------------------------------------------
2287 if test x$sbindir = x'${exec_prefix}/sbin' ; then
2288 sbindir=${exec_prefix}/sbin
2290 sbindir=`eval echo ${sbindir}`
2292 # ------------------------------------------------------------------
2293 # All list of languages for which a translation exist. Each
2294 # language is separated by a space.
2295 # ------------------------------------------------------------------
2298 for ac_prog in msgfmt
2300 # Extract the first word of "$ac_prog", so it can be a program name with args.
2301 set dummy $ac_prog; ac_word=$2
2302 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2303 echo "configure:2304: checking for $ac_word" >&5
2304 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2305 echo $ac_n "(cached) $ac_c" 1>&6
2309 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2312 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a dos path.
2315 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2317 for ac_dir in $ac_dummy; do
2318 test -z "$ac_dir" && ac_dir=.
2319 if test -f $ac_dir/$ac_word; then
2320 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2328 MSGFMT="$ac_cv_path_MSGFMT"
2329 if test -n "$MSGFMT"; then
2330 echo "$ac_t""$MSGFMT" 1>&6
2332 echo "$ac_t""no" 1>&6
2335 test -n "$MSGFMT" && break
2337 test -n "$MSGFMT" || MSGFMT="no"
2339 if test "$MSGFMT" = "no"
2341 echo 'msgfmt program not found, disabling NLS !'
2343 USE_INCLUDED_LIBINTL=no
2351 support_smartalloc=yes
2352 support_readline=yes
2354 support_static_tools=no
2355 support_static_fd=no
2356 support_static_sd=no
2357 support_static_dir=no
2358 support_static_cons=no
2359 build_client_only=no
2365 # -------------------------------------------
2366 # gnome (default off)
2367 # -------------------------------------------
2368 # Check whether --enable-gnome or --disable-gnome was given.
2369 if test "${enable_gnome+set}" = set; then
2370 enableval="$enable_gnome"
2371 if test x$enableval = xyes; then
2378 if test x$support_gnome = xyes; then
2389 # Check whether --with-gnome-includes or --without-gnome-includes was given.
2390 if test "${with_gnome_includes+set}" = set; then
2391 withval="$with_gnome_includes"
2393 CFLAGS="$CFLAGS -I$withval"
2398 # Check whether --with-gnome-libs or --without-gnome-libs was given.
2399 if test "${with_gnome_libs+set}" = set; then
2400 withval="$with_gnome_libs"
2402 LDFLAGS="$LDFLAGS -L$withval"
2403 gnome_prefix=$withval
2408 # Check whether --with-gnome or --without-gnome was given.
2409 if test "${with_gnome+set}" = set; then
2410 withval="$with_gnome"
2411 if test x$withval = xyes; then
2415 if test "x$withval" = xno; then
2419 LDFLAGS="$LDFLAGS -L$withval/lib"
2420 CFLAGS="$CFLAGS -I$withval/include"
2421 gnome_prefix=$withval/lib
2429 if test "x$want_gnome" = xyes; then
2431 # Extract the first word of "gnome-config", so it can be a program name with args.
2432 set dummy gnome-config; ac_word=$2
2433 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2434 echo "configure:2435: checking for $ac_word" >&5
2435 if eval "test \"`echo '$''{'ac_cv_path_GNOME_CONFIG'+set}'`\" = set"; then
2436 echo $ac_n "(cached) $ac_c" 1>&6
2438 case "$GNOME_CONFIG" in
2440 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
2443 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a dos path.
2446 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2448 for ac_dir in $ac_dummy; do
2449 test -z "$ac_dir" && ac_dir=.
2450 if test -f $ac_dir/$ac_word; then
2451 ac_cv_path_GNOME_CONFIG="$ac_dir/$ac_word"
2456 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
2460 GNOME_CONFIG="$ac_cv_path_GNOME_CONFIG"
2461 if test -n "$GNOME_CONFIG"; then
2462 echo "$ac_t""$GNOME_CONFIG" 1>&6
2464 echo "$ac_t""no" 1>&6
2467 if test "$GNOME_CONFIG" = "no"; then
2468 no_gnome_config="yes"
2470 echo $ac_n "checking if $GNOME_CONFIG works""... $ac_c" 1>&6
2471 echo "configure:2472: checking if $GNOME_CONFIG works" >&5
2472 if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
2473 echo "$ac_t""yes" 1>&6
2476 # Extract the first word of "orbit-config", so it can be a program name with args.
2477 set dummy orbit-config; ac_word=$2
2478 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2479 echo "configure:2480: checking for $ac_word" >&5
2480 if eval "test \"`echo '$''{'ac_cv_path_ORBIT_CONFIG'+set}'`\" = set"; then
2481 echo $ac_n "(cached) $ac_c" 1>&6
2483 case "$ORBIT_CONFIG" in
2485 ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a path.
2488 ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a dos path.
2491 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2493 for ac_dir in $ac_dummy; do
2494 test -z "$ac_dir" && ac_dir=.
2495 if test -f $ac_dir/$ac_word; then
2496 ac_cv_path_ORBIT_CONFIG="$ac_dir/$ac_word"
2501 test -z "$ac_cv_path_ORBIT_CONFIG" && ac_cv_path_ORBIT_CONFIG="no"
2505 ORBIT_CONFIG="$ac_cv_path_ORBIT_CONFIG"
2506 if test -n "$ORBIT_CONFIG"; then
2507 echo "$ac_t""$ORBIT_CONFIG" 1>&6
2509 echo "$ac_t""no" 1>&6
2512 # Extract the first word of "orbit-idl", so it can be a program name with args.
2513 set dummy orbit-idl; ac_word=$2
2514 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2515 echo "configure:2516: checking for $ac_word" >&5
2516 if eval "test \"`echo '$''{'ac_cv_path_ORBIT_IDL'+set}'`\" = set"; then
2517 echo $ac_n "(cached) $ac_c" 1>&6
2519 case "$ORBIT_IDL" in
2521 ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a path.
2524 ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a dos path.
2527 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2529 for ac_dir in $ac_dummy; do
2530 test -z "$ac_dir" && ac_dir=.
2531 if test -f $ac_dir/$ac_word; then
2532 ac_cv_path_ORBIT_IDL="$ac_dir/$ac_word"
2537 test -z "$ac_cv_path_ORBIT_IDL" && ac_cv_path_ORBIT_IDL="no"
2541 ORBIT_IDL="$ac_cv_path_ORBIT_IDL"
2542 if test -n "$ORBIT_IDL"; then
2543 echo "$ac_t""$ORBIT_IDL" 1>&6
2545 echo "$ac_t""no" 1>&6
2548 echo $ac_n "checking for working ORBit environment""... $ac_c" 1>&6
2549 echo "configure:2550: checking for working ORBit environment" >&5
2550 if eval "test \"`echo '$''{'gnome_cv_orbit_found'+set}'`\" = set"; then
2551 echo $ac_n "(cached) $ac_c" 1>&6
2554 if test x$ORBIT_CONFIG = xno -o x$ORBIT_IDL = xno; then
2555 gnome_cv_orbit_found=no
2557 gnome_cv_orbit_found=yes
2562 echo "$ac_t""$gnome_cv_orbit_found" 1>&6
2565 if test x$gnome_cv_orbit_found = xyes; then
2567 HAVE_ORBIT_FALSE='#'
2572 if test x$gnome_cv_orbit_found = xyes; then
2574 ORBIT_CFLAGS=`orbit-config --cflags client server`
2575 ORBIT_LIBS=`orbit-config --use-service=name --libs client server`
2579 if test xfail = xfailure; then
2580 { echo "configure: error: ORBit not installed or installation problem" 1>&2; exit 1; }
2584 echo $ac_n "checking for gnorba libraries""... $ac_c" 1>&6
2585 echo "configure:2586: checking for gnorba libraries" >&5
2586 if eval "test \"`echo '$''{'gnome_cv_gnorba_found'+set}'`\" = set"; then
2587 echo $ac_n "(cached) $ac_c" 1>&6
2590 gnome_cv_gnorba_found=no
2591 if test x$gnome_cv_orbit_found = xyes; then
2592 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
2593 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
2594 if test -n "$GNORBA_LIBS"; then
2595 gnome_cv_gnorba_found=yes
2601 echo "$ac_t""$gnome_cv_gnorba_found" 1>&6
2604 if test x$gnome_cv_gnorba_found = xyes; then
2606 HAVE_GNORBA_FALSE='#'
2608 HAVE_GNORBA_TRUE='#'
2611 if test x$gnome_cv_orbit_found = xyes; then
2613 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
2614 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
2618 if test xfail = xfailure; then
2619 { echo "configure: error: gnorba library not installed or installation problem" 1>&2; exit 1; }
2623 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome`"
2624 GNOMEUI_LIBS="`$GNOME_CONFIG --libs-only-l gnomeui`"
2625 GNOMEGNORBA_LIBS="`$GNOME_CONFIG --libs-only-l gnorba gnomeui`"
2626 GTKXMHTML_LIBS="`$GNOME_CONFIG --libs-only-l gtkxmhtml`"
2627 ZVT_LIBS="`$GNOME_CONFIG --libs-only-l zvt`"
2628 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
2629 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
2632 echo "$ac_t""no" 1>&6
2633 no_gnome_config="yes"
2637 if test x$exec_prefix = xNONE; then
2638 if test x$prefix = xNONE; then
2639 gnome_prefix=$ac_default_prefix/lib
2641 gnome_prefix=$prefix/lib
2644 gnome_prefix=`eval echo \`echo $libdir\``
2647 if test "$no_gnome_config" = "yes"; then
2648 echo $ac_n "checking for gnomeConf.sh file in $gnome_prefix""... $ac_c" 1>&6
2649 echo "configure:2650: checking for gnomeConf.sh file in $gnome_prefix" >&5
2650 if test -f $gnome_prefix/gnomeConf.sh; then
2651 echo "$ac_t""found" 1>&6
2652 echo "loading gnome configuration from" \
2653 "$gnome_prefix/gnomeConf.sh"
2654 . $gnome_prefix/gnomeConf.sh
2657 echo "$ac_t""not found" 1>&6
2658 if test xfail = xfail; then
2659 { echo "configure: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" 1>&2; exit 1; }
2668 echo $ac_n "checking extra library \"$i\"""... $ac_c" 1>&6
2669 echo "configure:2670: checking extra library \"$i\"" >&5
2673 GNOME_APPLETS_LIBS=`$GNOME_CONFIG --libs-only-l applets`
2674 echo "$ac_t""$GNOME_APPLETS_LIBS" 1>&6;;
2677 GNOME_DOCKLETS_LIBS=`$GNOME_CONFIG --libs-only-l docklets`
2678 echo "$ac_t""$GNOME_DOCKLETS_LIBS" 1>&6;;
2681 GNOME_CAPPLET_LIBS=`$GNOME_CONFIG --libs-only-l capplet`
2682 echo "$ac_t""$GNOME_CAPPLET_LIBS" 1>&6;;
2684 echo "$ac_t""unknown library" 1>&6
2686 EXTRA_INCLUDEDIR=`$GNOME_CONFIG --cflags $i`
2687 GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR $EXTRA_INCLUDEDIR"
2692 GNOME_DIR=src/gnome-console
2697 # -------------------------------------------
2698 # smartalloc (default off)
2699 # -------------------------------------------
2700 # Check whether --enable-smartalloc or --disable-smartalloc was given.
2701 if test "${enable_smartalloc+set}" = set; then
2702 enableval="$enable_smartalloc"
2703 if test x$enableval = xno; then
2704 support_smartalloc=no
2709 if test x$support_smartalloc = xyes; then
2710 cat >> confdefs.h <<\EOF
2711 #define SMARTALLOC 1
2716 # -------------------------------------------
2717 # static-tools (default off)
2718 # -------------------------------------------
2719 # Check whether --enable-static-tools or --disable-static-tools was given.
2720 if test "${enable_static_tools+set}" = set; then
2721 enableval="$enable_static_tools"
2722 if test x$enableval = xyes; then
2723 support_static_tools=yes
2729 if test x$support_static_tools = xyes; then
2730 TTOOL_LDFLAGS="-static"
2734 # -------------------------------------------
2735 # static-fd (default off)
2736 # -------------------------------------------
2737 # Check whether --enable-static-fd or --disable-static-fd was given.
2738 if test "${enable_static_fd+set}" = set; then
2739 enableval="$enable_static_fd"
2740 if test x$enableval = xyes; then
2741 support_static_fd=yes
2747 if test x$support_static_fd = xyes; then
2748 STATIC_FD="static-bacula-fd"
2752 # -------------------------------------------
2753 # static-sd (default off)
2754 # -------------------------------------------
2755 # Check whether --enable-static-sd or --disable-static-sd was given.
2756 if test "${enable_static_sd+set}" = set; then
2757 enableval="$enable_static_sd"
2758 if test x$enableval = xyes; then
2759 support_static_sd=yes
2765 if test x$support_static_sd = xyes; then
2766 STATIC_SD="static-bacula-sd"
2770 # -------------------------------------------
2771 # static-dir (default off)
2772 # -------------------------------------------
2773 # Check whether --enable-static-dir or --disable-static-dir was given.
2774 if test "${enable_static_dir+set}" = set; then
2775 enableval="$enable_static_dir"
2776 if test x$enableval = xyes; then
2777 support_static_dir=yes
2783 if test x$support_static_dir = xyes; then
2784 STATIC_DIR="static-bacula-dir"
2788 # -------------------------------------------
2789 # static-cons (default off)
2790 # -------------------------------------------
2791 # Check whether --enable-static-cons or --disable-static-cons was given.
2792 if test "${enable_static_cons+set}" = set; then
2793 enableval="$enable_static_cons"
2794 if test x$enableval = xyes; then
2795 support_static_cons=yes
2801 if test x$support_static_cons = xyes; then
2802 STATIC_CONS="static-console"
2806 # -------------------------------------------
2807 # client_only (default off)
2808 # -------------------------------------------
2809 # Check whether --enable-client-only or --disable-client-only was given.
2810 if test "${enable_client_only+set}" = set; then
2811 enableval="$enable_client_only"
2812 if test x$enableval = xyes; then
2813 build_client_only=yes
2817 if test x$build_client_only = xno; then
2824 # ---------------------------------------------------
2825 # Check for readline support/directory (default on)
2826 # ---------------------------------------------------
2827 # this allows you to turn it completely off
2828 # Check whether --enable-readline or --disable-readline was given.
2829 if test "${enable_readline+set}" = set; then
2830 enableval="$enable_readline"
2831 if test x$enableval = xno; then
2839 if test x$support_readline = xyes; then
2840 # Check whether --with-readline or --without-readline was given.
2841 if test "${with_readline+set}" = set; then
2842 withval="$with_readline"
2844 case "$with_readline" in
2847 if test "$with_readline" != "yes"; then
2848 CONS_INC="-I$with_readline"
2849 CONS_LDFLAGS="-L$with_readline"
2851 with_readline="/usr/include/readline"
2853 ac_safe=`echo "$with_readline/readline.h" | sed 'y%./+-%__p_%'`
2854 echo $ac_n "checking for $with_readline/readline.h""... $ac_c" 1>&6
2855 echo "configure:2856: checking for $with_readline/readline.h" >&5
2856 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2857 echo $ac_n "(cached) $ac_c" 1>&6
2859 cat > conftest.$ac_ext <<EOF
2860 #line 2861 "configure"
2861 #include "confdefs.h"
2862 #include <$with_readline/readline.h>
2864 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2865 { (eval echo configure:2866: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2866 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2867 if test -z "$ac_err"; then
2869 eval "ac_cv_header_$ac_safe=yes"
2872 echo "configure: failed program was:" >&5
2873 cat conftest.$ac_ext >&5
2875 eval "ac_cv_header_$ac_safe=no"
2879 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2880 echo "$ac_t""yes" 1>&6
2881 echo "$ac_t""yes" 1>&6
2882 cat >> confdefs.h <<\EOF
2883 #define HAVE_READLINE 1
2886 CONS_LIBS="-lreadline -ltermcap"
2890 echo "$ac_t""no" 1>&6
2891 { echo "configure: error: *** readline library missing" 1>&2; exit 1; }
2901 # check for standard readline library
2902 ac_safe=`echo "/usr/include/readline/readline.h" | sed 'y%./+-%__p_%'`
2903 echo $ac_n "checking for /usr/include/readline/readline.h""... $ac_c" 1>&6
2904 echo "configure:2905: checking for /usr/include/readline/readline.h" >&5
2905 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2906 echo $ac_n "(cached) $ac_c" 1>&6
2908 cat > conftest.$ac_ext <<EOF
2909 #line 2910 "configure"
2910 #include "confdefs.h"
2911 #include </usr/include/readline/readline.h>
2913 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2914 { (eval echo configure:2915: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2915 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2916 if test -z "$ac_err"; then
2918 eval "ac_cv_header_$ac_safe=yes"
2921 echo "configure: failed program was:" >&5
2922 cat conftest.$ac_ext >&5
2924 eval "ac_cv_header_$ac_safe=no"
2928 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2929 echo "$ac_t""yes" 1>&6
2930 echo "$ac_t""yes" 1>&6
2931 cat >> confdefs.h <<\EOF
2932 #define HAVE_READLINE 1
2936 CONS_INC="-I/usr/include/readline"
2937 CONS_LIBS="-lreadline -ltermcap"
2940 echo "$ac_t""no" 1>&6
2942 # Did not find starndard library, so user our own
2943 echo "$ac_t""yes" 1>&6
2944 cat >> confdefs.h <<\EOF
2945 #define HAVE_READLINE 1
2949 CONS_INC="-I${TOP_DIR}/depkgs"
2950 CONS_LIBS="-lreadline -lhistory -ltermcap"
2951 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
2952 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
2966 # Minimal stuff for readline Makefile configuration
2970 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
2971 echo "configure:2972: checking whether stat file-mode macros are broken" >&5
2972 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
2973 echo $ac_n "(cached) $ac_c" 1>&6
2975 cat > conftest.$ac_ext <<EOF
2976 #line 2977 "configure"
2977 #include "confdefs.h"
2978 #include <sys/types.h>
2979 #include <sys/stat.h>
2981 #if defined(S_ISBLK) && defined(S_IFDIR)
2982 # if S_ISBLK (S_IFDIR)
2987 #if defined(S_ISBLK) && defined(S_IFCHR)
2988 # if S_ISBLK (S_IFCHR)
2993 #if defined(S_ISLNK) && defined(S_IFREG)
2994 # if S_ISLNK (S_IFREG)
2999 #if defined(S_ISSOCK) && defined(S_IFREG)
3000 # if S_ISSOCK (S_IFREG)
3006 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3007 egrep "You lose" >/dev/null 2>&1; then
3009 ac_cv_header_stat_broken=yes
3012 ac_cv_header_stat_broken=no
3018 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
3019 if test $ac_cv_header_stat_broken = yes; then
3020 cat >> confdefs.h <<\EOF
3021 #define STAT_MACROS_BROKEN 1
3027 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
3029 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3030 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
3031 echo "configure:3032: checking for $ac_hdr that defines DIR" >&5
3032 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
3033 echo $ac_n "(cached) $ac_c" 1>&6
3035 cat > conftest.$ac_ext <<EOF
3036 #line 3037 "configure"
3037 #include "confdefs.h"
3038 #include <sys/types.h>
3044 if { (eval echo configure:3045: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3046 eval "ac_cv_header_dirent_$ac_safe=yes"
3048 echo "configure: failed program was:" >&5
3049 cat conftest.$ac_ext >&5
3051 eval "ac_cv_header_dirent_$ac_safe=no"
3055 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
3056 echo "$ac_t""yes" 1>&6
3057 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3058 cat >> confdefs.h <<EOF
3059 #define $ac_tr_hdr 1
3061 ac_header_dirent=$ac_hdr; break
3063 echo "$ac_t""no" 1>&6
3066 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3067 if test $ac_header_dirent = dirent.h; then
3068 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
3069 echo "configure:3070: checking for opendir in -ldir" >&5
3070 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
3071 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3072 echo $ac_n "(cached) $ac_c" 1>&6
3074 ac_save_LIBS="$LIBS"
3076 cat > conftest.$ac_ext <<EOF
3077 #line 3078 "configure"
3078 #include "confdefs.h"
3079 /* Override any gcc2 internal prototype to avoid an error. */
3080 /* We use char because int might match the return type of a gcc2
3081 builtin and then its argument prototype would still apply. */
3088 if { (eval echo configure:3089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3090 eval "ac_cv_lib_$ac_lib_var=yes"
3092 echo "configure: failed program was:" >&5
3093 cat conftest.$ac_ext >&5
3095 eval "ac_cv_lib_$ac_lib_var=no"
3098 LIBS="$ac_save_LIBS"
3101 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3102 echo "$ac_t""yes" 1>&6
3105 echo "$ac_t""no" 1>&6
3109 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
3110 echo "configure:3111: checking for opendir in -lx" >&5
3111 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
3112 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3113 echo $ac_n "(cached) $ac_c" 1>&6
3115 ac_save_LIBS="$LIBS"
3117 cat > conftest.$ac_ext <<EOF
3118 #line 3119 "configure"
3119 #include "confdefs.h"
3120 /* Override any gcc2 internal prototype to avoid an error. */
3121 /* We use char because int might match the return type of a gcc2
3122 builtin and then its argument prototype would still apply. */
3129 if { (eval echo configure:3130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3131 eval "ac_cv_lib_$ac_lib_var=yes"
3133 echo "configure: failed program was:" >&5
3134 cat conftest.$ac_ext >&5
3136 eval "ac_cv_lib_$ac_lib_var=no"
3139 LIBS="$ac_save_LIBS"
3142 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3143 echo "$ac_t""yes" 1>&6
3146 echo "$ac_t""no" 1>&6
3152 for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat lchown
3154 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3155 echo "configure:3156: checking for $ac_func" >&5
3156 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3157 echo $ac_n "(cached) $ac_c" 1>&6
3159 cat > conftest.$ac_ext <<EOF
3160 #line 3161 "configure"
3161 #include "confdefs.h"
3162 /* System header to define __stub macros and hopefully few prototypes,
3163 which can conflict with char $ac_func(); below. */
3165 /* Override any gcc2 internal prototype to avoid an error. */
3166 /* We use char because int might match the return type of a gcc2
3167 builtin and then its argument prototype would still apply. */
3172 /* The GNU C library defines this for functions which it implements
3173 to always fail with ENOSYS. Some functions are actually named
3174 something starting with __ and the normal name is an alias. */
3175 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3183 if { (eval echo configure:3184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3185 eval "ac_cv_func_$ac_func=yes"
3187 echo "configure: failed program was:" >&5
3188 cat conftest.$ac_ext >&5
3190 eval "ac_cv_func_$ac_func=no"
3195 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3196 echo "$ac_t""yes" 1>&6
3197 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3198 cat >> confdefs.h <<EOF
3199 #define $ac_tr_func 1
3203 echo "$ac_t""no" 1>&6
3208 #AC_CHECK_FUNC(getopt_long, AC_DEFINE(HAVE_GETOPT_LONG),
3209 # [LIBEXTRAOBJ="$LIBEXTRAOBJ getopt.o getopt1.o"
3210 # EXTRAOBJ="$EXTRAOBJ lib/getopt.o lib/getopt1.o"])
3212 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
3213 echo "configure:3214: checking for getopt_long" >&5
3214 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
3215 echo $ac_n "(cached) $ac_c" 1>&6
3217 cat > conftest.$ac_ext <<EOF
3218 #line 3219 "configure"
3219 #include "confdefs.h"
3220 /* System header to define __stub macros and hopefully few prototypes,
3221 which can conflict with char getopt_long(); below. */
3223 /* Override any gcc2 internal prototype to avoid an error. */
3224 /* We use char because int might match the return type of a gcc2
3225 builtin and then its argument prototype would still apply. */
3230 /* The GNU C library defines this for functions which it implements
3231 to always fail with ENOSYS. Some functions are actually named
3232 something starting with __ and the normal name is an alias. */
3233 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
3241 if { (eval echo configure:3242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3243 eval "ac_cv_func_getopt_long=yes"
3245 echo "configure: failed program was:" >&5
3246 cat conftest.$ac_ext >&5
3248 eval "ac_cv_func_getopt_long=no"
3253 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
3254 echo "$ac_t""yes" 1>&6
3255 cat >> confdefs.h <<\EOF
3256 #define HAVE_GETOPT_LONG 1
3260 echo "$ac_t""no" 1>&6
3265 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
3266 echo "configure:3267: checking for working strcoll" >&5
3267 if eval "test \"`echo '$''{'ac_cv_func_strcoll_works'+set}'`\" = set"; then
3268 echo $ac_n "(cached) $ac_c" 1>&6
3270 if test "$cross_compiling" = yes; then
3271 ac_cv_func_strcoll_works=no
3273 cat > conftest.$ac_ext <<EOF
3274 #line 3275 "configure"
3275 #include "confdefs.h"
3279 exit (strcoll ("abc", "def") >= 0 ||
3280 strcoll ("ABC", "DEF") >= 0 ||
3281 strcoll ("123", "456") >= 0);
3284 if { (eval echo configure:3285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3286 ac_cv_func_strcoll_works=yes
3288 echo "configure: failed program was:" >&5
3289 cat conftest.$ac_ext >&5
3291 ac_cv_func_strcoll_works=no
3298 echo "$ac_t""$ac_cv_func_strcoll_works" 1>&6
3299 if test $ac_cv_func_strcoll_works = yes; then
3300 cat >> confdefs.h <<\EOF
3301 #define HAVE_STRCOLL 1
3307 for ac_hdr in varargs.h \
3308 sys/ptem.h sys/pte.h sys/stream.h
3310 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3311 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3312 echo "configure:3313: checking for $ac_hdr" >&5
3313 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3314 echo $ac_n "(cached) $ac_c" 1>&6
3316 cat > conftest.$ac_ext <<EOF
3317 #line 3318 "configure"
3318 #include "confdefs.h"
3321 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3322 { (eval echo configure:3323: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3323 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3324 if test -z "$ac_err"; then
3326 eval "ac_cv_header_$ac_safe=yes"
3329 echo "configure: failed program was:" >&5
3330 cat conftest.$ac_ext >&5
3332 eval "ac_cv_header_$ac_safe=no"
3336 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3337 echo "$ac_t""yes" 1>&6
3338 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3339 cat >> confdefs.h <<EOF
3340 #define $ac_tr_hdr 1
3344 echo "$ac_t""no" 1>&6
3349 # End of readline stuff
3350 # -----------------------------------------------------------------------
3353 # ---------------------------------------------------
3354 # Check for GMP support/directory
3355 # ---------------------------------------------------
3359 # [ --with-gmp[=DIR] Specify gmp library directory],
3361 # case "$with_gmp" in
3364 # if test "$with_gmp" != "yes"; then
3365 # GMP_INC="-I$with_gmp"
3367 # GMP_LDFLAGS="-L$with_gmp"
3369 # with_gmp="/usr/include"
3371 # AC_CHECK_HEADER($with_gmp/gmp.h,
3372 # [ AC_MSG_RESULT(yes)
3373 # AC_DEFINE(HAVE_GMP)
3377 # [ AC_MSG_ERROR([*** gmp library missing])
3383 # # check for standard gmp library
3384 # AC_CHECK_HEADER(/usr/include/gmp.h,
3385 # [ AC_MSG_RESULT(yes)
3386 # AC_DEFINE(HAVE_GMP)
3391 # # Did not find standard library, so use our own
3392 # AC_MSG_RESULT(yes)
3393 # AC_DEFINE(HAVE_GMP)
3396 # GMP_INC="-I${TOP_DIR}/depkgs/gmp"
3398 # GMP_LDFLAGS="-L${TOP_DIR}/depkgs/gmp"
3399 # GMP_SRC="${TOP_DIR}/depkgs/gmp"
3405 #AC_SUBST(GMP_LDFLAGS)
3409 # -----------------------------------------------------------------------
3412 # ---------------------------------------------------
3413 # Check for CWEB support/directory
3414 # ---------------------------------------------------
3419 # [ --with-cweb[=DIR] Specify cweb library directory],
3421 # case "$with_cweb" in
3424 # if test "$with_cweb" != "yes"; then
3425 # CWEB_INC="-I$with_cweb"
3426 # CWEB_LIBS="-lcweb"
3427 # CWEB_LDFLAGS="-L$with_cweb"
3429 # with_cweb="/usr/include"
3431 # AC_CHECK_HEADER($with_cweb/cweb.h,
3432 # [ AC_MSG_RESULT(yes)
3433 # AC_DEFINE(HAVE_CWEB)
3434 # CWEB_LIBS="-lcweb"
3437 # [ AC_MSG_ERROR([*** cweb library missing])
3443 # # check for standard cweb library
3444 # AC_CHECK_HEADER(/usr/include/cweb.h,
3445 # [ AC_MSG_RESULT(yes)
3446 # AC_DEFINE(HAVE_CWEB)
3449 # CWEB_LIBS="-lcweb"
3451 # # Did not find starndard library, so use our own
3452 # AC_MSG_RESULT(yes)
3453 # AC_DEFINE(HAVE_CWEB)
3456 # CWEB=${TOP_DIR}/depkgs/cweb
3457 # CWEB_INC="-I${TOP_DIR}/depkgs/cweb"
3458 # CWEB_LIBS="-lcweb"
3459 # CWEB_LDFLAGS="-L${TOP_DIR}/depkgs/cweb"
3460 # CWEB_SRC="${TOP_DIR}/depkgs/cweb"
3466 #AC_SUBST(CWEB_LIBS)
3467 #AC_SUBST(CWEB_LDFLAGS)
3471 # -----------------------------------------------------------------------
3475 # -----------------------------------------------------------
3476 # Check whether user wants TCP wrappers support (default off)
3477 # -----------------------------------------------------------
3479 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
3480 if test "${with_tcp_wrappers+set}" = set; then
3481 withval="$with_tcp_wrappers"
3483 if test "x$withval" != "xno" ; then
3485 LIBS="$LIBS -lwrap -lnsl"
3486 echo $ac_n "checking for libwrap""... $ac_c" 1>&6
3487 echo "configure:3488: checking for libwrap" >&5
3488 cat > conftest.$ac_ext <<EOF
3489 #line 3490 "configure"
3490 #include "confdefs.h"
3492 int deny_severity = 0;
3493 int allow_severity = 0;
3494 struct request_info *req;
3499 if { (eval echo configure:3500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3502 echo "$ac_t""yes" 1>&6
3503 cat >> confdefs.h <<\EOF
3504 #define HAVE_LIBWRAP 1
3510 echo "configure: failed program was:" >&5
3511 cat conftest.$ac_ext >&5
3513 { echo "configure: error: *** libwrap missing" 1>&2; exit 1; }
3523 # ------------------------------------------
3524 # Where to place working dir
3525 # ------------------------------------------
3526 working_dir=`eval echo ${sysconfdir}/working`
3527 # Check whether --with-working-dir or --without-working-dir was given.
3528 if test "${with_working_dir+set}" = set; then
3529 withval="$with_working_dir"
3531 if test "x$withval" != "xno" ; then
3532 working_dir=$withval
3541 # ------------------------------------------
3542 # Where to send dump email
3543 # ------------------------------------------
3544 dump_email=root@localhost
3545 # Check whether --with-dump-email or --without-dump-email was given.
3546 if test "${with_dump_email+set}" = set; then
3547 withval="$with_dump_email"
3549 if test "x$withval" != "xno" ; then
3559 # ------------------------------------------
3560 # Where to send job email
3561 # ------------------------------------------
3562 job_email=root@localhost
3563 # Check whether --with-job-email or --without-job-email was given.
3564 if test "${with_job_email+set}" = set; then
3565 withval="$with_job_email"
3567 if test "x$withval" != "xno" ; then
3577 # ------------------------------------------
3578 # Where to find smtp host
3579 # ------------------------------------------
3581 # Check whether --with-smtp_host or --without-smtp_host was given.
3582 if test "${with_smtp_host+set}" = set; then
3583 withval="$with_smtp_host"
3585 if test "x$withval" != "xno" ; then
3596 # ------------------------------------
3597 # Where to place pid files
3598 # ------------------------------------
3600 # Check whether --with-pid-dir or --without-pid-dir was given.
3601 if test "${with_pid_dir+set}" = set; then
3602 withval="$with_pid_dir"
3604 if test "x$withval" != "xno" ; then
3612 # make sure the pid directory exists
3613 if test ! -d $piddir ; then
3614 piddir=`eval echo ${sysconfdir}`
3616 NONE/*) piddir=`echo $piddir | sed "s~NONE~$ac_default_prefix~"` ;;
3620 cat >> confdefs.h <<EOF
3621 #define _PATH_BACULA_PIDDIR "$piddir"
3627 # ------------------------------------
3628 # Where to place subsys "lock file"
3629 # ------------------------------------
3630 subsysdir=/var/run/subsys
3631 # Check whether --with-subsys-dir or --without-subsys-dir was given.
3632 if test "${with_subsys_dir+set}" = set; then
3633 withval="$with_subsys_dir"
3635 if test "x$withval" != "xno" ; then
3643 # make sure the pid directory exists
3644 if test ! -d $subsysdir ; then
3645 subsysdir=`eval echo ${sysconfdir}`
3647 NONE/*) subsysdir=`echo $subsysdir | sed "s~NONE~$ac_default_prefix~"` ;;
3655 # ------------------------------------
3656 # Where to start assigning ports
3657 # ------------------------------------
3659 # Check whether --with-baseport or --without-baseport was given.
3660 if test "${with_baseport+set}" = set; then
3661 withval="$with_baseport"
3663 if test "x$withval" != "xno" ; then
3672 dir_port=`expr $baseport`
3673 fd_port=`expr $baseport + 1`
3674 sd_port=`expr $fd_port + 1`
3681 # ------------------------------------------
3682 # Generate passwords
3683 # ------------------------------------------
3685 # Check whether --with-dir-password or --without-dir-password was given.
3686 if test "${with_dir_password+set}" = set; then
3687 withval="$with_dir_password"
3689 if test "x$withval" != "xno" ; then
3690 dir_password=$withval
3697 if test "x$dir_password" = "x" ; then
3698 if test "x$OPENSSL" = "xnone" ; then
3699 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
3700 key=`autoconf/randpass 33`
3702 key=`openssl rand -base64 33`
3708 # Check whether --with-fd-password or --without-fd-password was given.
3709 if test "${with_fd_password+set}" = set; then
3710 withval="$with_fd_password"
3712 if test "x$withval" != "xno" ; then
3713 fd_password=$withval
3720 if test "x$fd_password" = "x" ; then
3721 if test "x$OPENSSL" = "xnone" ; then
3722 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
3723 key=`autoconf/randpass 37`
3725 key=`openssl rand -base64 33`
3731 # Check whether --with-sd-password or --without-sd-password was given.
3732 if test "${with_sd_password+set}" = set; then
3733 withval="$with_sd_password"
3735 if test "x$withval" != "xno" ; then
3736 sd_password=$withval
3743 if test "x$sd_password" = "x" ; then
3744 if test "x$OPENSSL" = "xnone" ; then
3745 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
3746 key=`autocnf/randpass 41`
3748 key=`openssl rand -base64 33`
3761 # ------------------------------------------------
3762 # Bacula check for various SQL database engines
3763 # ------------------------------------------------
3766 echo $ac_n "checking for MySQL support""... $ac_c" 1>&6
3767 echo "configure:3768: checking for MySQL support" >&5
3768 # Check whether --with-mysql or --without-mysql was given.
3769 if test "${with_mysql+set}" = set; then
3770 withval="$with_mysql"
3772 if test "$withval" != "no"; then
3773 if test "$withval" = "yes"; then
3774 if test -f /usr/local/mysql/include/mysql/mysql.h; then
3775 MYSQL_INCDIR=/usr/local/mysql/include/mysql
3776 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
3777 MYSQL_BINDIR=/usr/local/mysql/bin
3778 elif test -f /usr/include/mysql/mysql.h; then
3779 MYSQL_INCDIR=/usr/include/mysql
3780 MYSQL_LIBDIR=/usr/lib/mysql
3781 MYSQL_BINDIR=/usr/bin
3782 elif test -f /usr/include/mysql.h; then
3783 MYSQL_INCDIR=/usr/include
3784 MYSQL_LIBDIR=/usr/lib
3785 MYSQL_BINDIR=/usr/bin
3786 elif test -f /usr/local/include/mysql/mysql.h; then
3787 MYSQL_INCDIR=/usr/local/include/mysql
3788 MYSQL_LIBDIR=/usr/local/lib/mysql
3789 MYSQL_BINDIR=/usr/local/bin
3790 elif test -f /usr/local/include/mysql.h; then
3791 MYSQL_INCDIR=/usr/local/include
3792 MYSQL_LIBDIR=/usr/local/lib
3793 MYSQL_BINDIR=/usr/local/bin
3795 echo "$ac_t""no" 1>&6
3796 { echo "configure: error: Unable to find mysql.h in standard locations" 1>&2; exit 1; }
3799 if test -f $withval/include/mysql/mysql.h; then
3800 MYSQL_INCDIR=$withval/include/mysql
3801 MYSQL_LIBDIR=$withval/lib/mysql
3802 MYSQL_BINDIR=$withval/bin
3803 elif test -f $withval/include/mysql.h; then
3804 MYSQL_INCDIR=$withval/include
3805 MYSQL_LIBDIR=$withval/lib
3806 MYSQL_BINDIR=$withval/bin
3808 echo "$ac_t""no" 1>&6
3809 { echo "configure: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" 1>&2; exit 1; }
3812 SQL_INCLUDE=-I$MYSQL_INCDIR
3813 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
3814 SQL_BINDIR=$MYSQL_BINDIR
3816 cat >> confdefs.h <<\EOF
3817 #define HAVE_MYSQL 1
3820 echo "$ac_t""yes" 1>&6
3827 echo "$ac_t""no" 1>&6
3832 echo "$ac_t""no" 1>&6
3837 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
3838 if test "${with_embedded_mysql+set}" = set; then
3839 withval="$with_embedded_mysql"
3841 if test "$withval" != "no"; then
3842 if test "$withval" = "yes"; then
3843 if test -f /usr/local/mysql/include/mysql/mysql.h; then
3844 MYSQL_INCDIR=/usr/local/mysql/include/mysql
3845 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
3846 MYSQL_BINDIR=/usr/local/mysql/bin
3847 elif test -f /usr/include/mysql/mysql.h; then
3848 MYSQL_INCDIR=/usr/include/mysql
3849 MYSQL_LIBDIR=/usr/lib/mysql
3850 MYSQL_BINDIR=/usr/bin
3851 elif test -f /usr/include/mysql.h; then
3852 MYSQL_INCDIR=/usr/include
3853 MYSQL_LIBDIR=/usr/lib
3854 MYSQL_BINDIR=/usr/bin
3855 elif test -f /usr/local/include/mysql/mysql.h; then
3856 MYSQL_INCDIR=/usr/local/include/mysql
3857 MYSQL_LIBDIR=/usr/local/lib/mysql
3858 MYSQL_BINDIR=/usr/local/bin
3859 elif test -f /usr/local/include/mysql.h; then
3860 MYSQL_INCDIR=/usr/local/include
3861 MYSQL_LIBDIR=/usr/local/lib
3862 MYSQL_BINDIR=/usr/local/bin
3864 echo "$ac_t""no" 1>&6
3865 { echo "configure: error: Unable to find mysql.h in standard locations" 1>&2; exit 1; }
3868 if test -f $withval/include/mysql/mysql.h; then
3869 MYSQL_INCDIR=$withval/include/mysql
3870 MYSQL_LIBDIR=$withval/lib/mysql
3871 MYSQL_BINDIR=$withval/bin
3872 elif test -f $withval/include/mysql.h; then
3873 MYSQL_INCDIR=$withval/include
3874 MYSQL_LIBDIR=$withval/lib
3875 MYSQL_BINDIR=$withval/bin
3877 echo "$ac_t""no" 1>&6
3878 { echo "configure: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" 1>&2; exit 1; }
3881 SQL_INCLUDE=-I$MYSQL_INCDIR
3882 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
3883 SQL_BINDIR=$MYSQL_BINDIR
3885 cat >> confdefs.h <<\EOF
3886 #define HAVE_MYSQL 1
3889 cat >> confdefs.h <<\EOF
3890 #define HAVE_EMBEDDED_MYSQL 1
3893 echo "$ac_t""yes" 1>&6
3900 echo "$ac_t""no" 1>&6
3905 echo "$ac_t""no" 1>&6
3918 # ------------------------------------------------
3919 # Bacula check for various SQL database engines
3920 # ------------------------------------------------
3923 echo $ac_n "checking for SQLite support""... $ac_c" 1>&6
3924 echo "configure:3925: checking for SQLite support" >&5
3925 # Check whether --with-sqlite or --without-sqlite was given.
3926 if test "${with_sqlite+set}" = set; then
3927 withval="$with_sqlite"
3929 if test "$withval" != "no"; then
3930 if test "$withval" = "yes"; then
3931 if test -f /usr/local/include/sqlite.h; then
3932 SQLITE_INCDIR=/usr/local/include
3933 SQLITE_LIBDIR=/usr/local/lib
3934 SQLITE_BINDIR=/usr/local/bin
3935 elif test -f /usr/include/sqlite.h; then
3936 SQLITE_INCDIR=/usr/include
3937 SQLITE_LIBDIR=/usr/lib
3938 SQLITE_BINDIR=/usr/bin
3940 echo "$ac_t""no" 1>&6
3941 { echo "configure: error: Unable to find sqlite.h in standard locations" 1>&2; exit 1; }
3944 if test -f $withval/sqlite.h; then
3945 SQLITE_INCDIR=$withval
3946 SQLITE_LIBDIR=$withval
3947 SQLITE_BINDIR=$withval
3949 echo "$ac_t""no" 1>&6
3950 { echo "configure: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" 1>&2; exit 1; }
3953 SQL_INCLUDE=-I$SQLITE_INCDIR
3954 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
3955 SQL_BINDIR=$SQLITE_BINDIR
3957 cat >> confdefs.h <<\EOF
3958 #define HAVE_SQLITE 1
3961 echo "$ac_t""yes" 1>&6
3968 echo "$ac_t""no" 1>&6
3973 echo "$ac_t""no" 1>&6
3986 cat >> confdefs.h <<\EOF
3987 #define PROTOTYPES 1
3991 if test -z "$CFLAGS"; then
3992 if test -z "$CCOPTS"; then
3999 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
4000 echo "configure:4001: checking for mingw32 environment" >&5
4001 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
4002 echo $ac_n "(cached) $ac_c" 1>&6
4004 cat > conftest.$ac_ext <<EOF
4005 #line 4006 "configure"
4006 #include "confdefs.h"
4012 if { (eval echo configure:4013: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4016 echo "configure: failed program was:" >&5
4017 cat conftest.$ac_ext >&5
4025 echo "$ac_t""$ac_cv_mingw32" 1>&6
4027 test "$ac_cv_mingw32" = yes && MINGW32=yes
4030 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
4031 echo "configure:4032: checking for executable suffix" >&5
4032 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
4033 echo $ac_n "(cached) $ac_c" 1>&6
4035 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4039 echo 'int main () { return 0; }' > conftest.$ac_ext
4041 if { (eval echo configure:4042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
4042 for file in conftest.*; do
4044 *.c | *.o | *.obj) ;;
4045 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
4049 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
4052 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
4057 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
4058 echo "$ac_t""${ac_cv_exeext}" 1>&6
4062 largefile_support="no"
4063 echo $ac_n "checking build system type""... $ac_c" 1>&6
4064 echo "configure:4065: checking build system type" >&5
4067 case "$build_alias" in
4070 NONE) build_alias=$host_alias ;;
4071 *) build_alias=$nonopt ;;
4075 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
4076 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4077 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4078 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4079 echo "$ac_t""$build" 1>&6
4081 if test $host != $build; then
4082 ac_tool_prefix=${host_alias}-
4088 # Check whether --enable-largefile or --disable-largefile was given.
4089 if test "${enable_largefile+set}" = set; then
4090 enableval="$enable_largefile"
4094 if test "$enable_largefile" != no; then
4095 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
4096 set dummy ${ac_tool_prefix}getconf; ac_word=$2
4097 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4098 echo "configure:4099: checking for $ac_word" >&5
4099 if eval "test \"`echo '$''{'ac_cv_prog_GETCONF'+set}'`\" = set"; then
4100 echo $ac_n "(cached) $ac_c" 1>&6
4102 if test -n "$GETCONF"; then
4103 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
4105 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4107 for ac_dir in $ac_dummy; do
4108 test -z "$ac_dir" && ac_dir=.
4109 if test -f $ac_dir/$ac_word; then
4110 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
4115 test -z "$ac_cv_prog_GETCONF" && ac_cv_prog_GETCONF="getconf"
4118 GETCONF="$ac_cv_prog_GETCONF"
4119 if test -n "$GETCONF"; then
4120 echo "$ac_t""$GETCONF" 1>&6
4122 echo "$ac_t""no" 1>&6
4127 echo $ac_n "checking for CFLAGS value to request large file support""... $ac_c" 1>&6
4128 echo "configure:4129: checking for CFLAGS value to request large file support" >&5
4129 if eval "test \"`echo '$''{'ac_cv_sys_largefile_CFLAGS'+set}'`\" = set"; then
4130 echo $ac_n "(cached) $ac_c" 1>&6
4132 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
4133 ac_cv_sys_largefile_CFLAGS=no
4135 # IRIX 6.2 and later require cc -n32.
4136 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
4137 if test "$GCC" != yes; then
4138 ac_cv_sys_largefile_CFLAGS=-n32
4141 CC="$CC $ac_cv_sys_largefile_CFLAGS"
4142 cat > conftest.$ac_ext <<EOF
4143 #line 4144 "configure"
4144 #include "confdefs.h"
4150 if { (eval echo configure:4151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4153 echo "configure: failed program was:" >&5
4154 cat conftest.$ac_ext >&5
4156 ac_cv_sys_largefile_CFLAGS=no
4164 echo "$ac_t""$ac_cv_sys_largefile_CFLAGS" 1>&6
4165 echo $ac_n "checking for LDFLAGS value to request large file support""... $ac_c" 1>&6
4166 echo "configure:4167: checking for LDFLAGS value to request large file support" >&5
4167 if eval "test \"`echo '$''{'ac_cv_sys_largefile_LDFLAGS'+set}'`\" = set"; then
4168 echo $ac_n "(cached) $ac_c" 1>&6
4170 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
4171 ac_cv_sys_largefile_LDFLAGS=no
4176 echo "$ac_t""$ac_cv_sys_largefile_LDFLAGS" 1>&6
4177 echo $ac_n "checking for LIBS value to request large file support""... $ac_c" 1>&6
4178 echo "configure:4179: checking for LIBS value to request large file support" >&5
4179 if eval "test \"`echo '$''{'ac_cv_sys_largefile_LIBS'+set}'`\" = set"; then
4180 echo $ac_n "(cached) $ac_c" 1>&6
4182 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
4183 ac_cv_sys_largefile_LIBS=no
4188 echo "$ac_t""$ac_cv_sys_largefile_LIBS" 1>&6
4190 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
4193 -D_FILE_OFFSET_BITS=*) ;;
4194 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
4195 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
4201 '') CPPFLAGS="$ac_flag" ;;
4202 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
4210 '') CFLAGS="$ac_flag" ;;
4211 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
4216 case "$ac_cv_sys_largefile_LDFLAGS" in
4220 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
4221 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
4224 case "$ac_cv_sys_largefile_LIBS" in
4228 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
4229 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
4232 echo $ac_n "checking for _FILE_OFFSET_BITS""... $ac_c" 1>&6
4233 echo "configure:4234: checking for _FILE_OFFSET_BITS" >&5
4234 if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then
4235 echo $ac_n "(cached) $ac_c" 1>&6
4237 ac_cv_sys_file_offset_bits=no
4239 # HP-UX 10.20 and later
4240 hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
4241 ac_cv_sys_file_offset_bits=64 ;;
4243 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
4245 -D_FILE_OFFSET_BITS)
4246 ac_cv_sys_file_offset_bits=1 ;;
4247 -D_FILE_OFFSET_BITS=*)
4248 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
4254 echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6
4255 if test "$ac_cv_sys_file_offset_bits" != no; then
4256 cat >> confdefs.h <<EOF
4257 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4261 echo $ac_n "checking for _LARGEFILE_SOURCE""... $ac_c" 1>&6
4262 echo "configure:4263: checking for _LARGEFILE_SOURCE" >&5
4263 if eval "test \"`echo '$''{'ac_cv_sys_largefile_source'+set}'`\" = set"; then
4264 echo $ac_n "(cached) $ac_c" 1>&6
4266 ac_cv_sys_largefile_source=no
4268 # HP-UX 10.20 and later
4269 hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
4270 ac_cv_sys_largefile_source=1 ;;
4272 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
4274 -D_LARGEFILE_SOURCE)
4275 ac_cv_sys_largefile_source=1 ;;
4276 -D_LARGEFILE_SOURCE=*)
4277 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
4283 echo "$ac_t""$ac_cv_sys_largefile_source" 1>&6
4284 if test "$ac_cv_sys_largefile_source" != no; then
4285 cat >> confdefs.h <<EOF
4286 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
4290 echo $ac_n "checking for _LARGE_FILES""... $ac_c" 1>&6
4291 echo "configure:4292: checking for _LARGE_FILES" >&5
4292 if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then
4293 echo $ac_n "(cached) $ac_c" 1>&6
4295 ac_cv_sys_large_files=no
4298 aix4.[2-9]* | aix4.1[0-9]* | aix[5-9].* | aix[1-9][0-9]*)
4299 ac_cv_sys_large_files=1 ;;
4301 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
4304 ac_cv_sys_large_files=1 ;;
4306 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
4312 echo "$ac_t""$ac_cv_sys_large_files" 1>&6
4313 if test "$ac_cv_sys_large_files" != no; then
4314 cat >> confdefs.h <<EOF
4315 #define _LARGE_FILES $ac_cv_sys_large_files
4323 # If we find X, set shell vars x_includes and x_libraries to the
4324 # paths, otherwise set no_x=yes.
4325 # Uses ac_ vars as temps to allow command line to override cache and checks.
4326 # --without-x overrides everything else, but does not touch the cache.
4327 echo $ac_n "checking for X""... $ac_c" 1>&6
4328 echo "configure:4329: checking for X" >&5
4330 # Check whether --with-x or --without-x was given.
4331 if test "${with_x+set}" = set; then
4336 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4337 if test "x$with_x" = xno; then
4338 # The user explicitly disabled X.
4341 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
4342 # Both variables are already set.
4345 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
4346 echo $ac_n "(cached) $ac_c" 1>&6
4348 # One or both of the vars are not set, and there is no cached value.
4349 ac_x_includes=NO ac_x_libraries=NO
4351 if mkdir conftestdir; then
4353 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
4354 cat > Imakefile <<'EOF'
4356 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
4358 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
4359 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4360 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
4361 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4362 for ac_extension in a so sl; do
4363 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
4364 test -f $ac_im_libdir/libX11.$ac_extension; then
4365 ac_im_usrlibdir=$ac_im_libdir; break
4368 # Screen out bogus values from the imake configuration. They are
4369 # bogus both because they are the default anyway, and because
4370 # using them would break gcc on systems where it needs fixed includes.
4371 case "$ac_im_incroot" in
4373 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
4375 case "$ac_im_usrlibdir" in
4377 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
4384 if test "$ac_x_includes" = NO; then
4385 # Guess where to find include files, by looking for this one X11 .h file.
4386 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
4388 # First, try using that file with no special directory specified.
4389 cat > conftest.$ac_ext <<EOF
4390 #line 4391 "configure"
4391 #include "confdefs.h"
4392 #include <$x_direct_test_include>
4394 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4395 { (eval echo configure:4396: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4396 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4397 if test -z "$ac_err"; then
4399 # We can compile using X headers with no special include directory.
4403 echo "configure: failed program was:" >&5
4404 cat conftest.$ac_ext >&5
4406 # Look for the header file in a standard set of common directories.
4407 # Check X11 before X11Rn because it is often a symlink to the current release.
4410 /usr/X11R6/include \
4411 /usr/X11R5/include \
4412 /usr/X11R4/include \
4415 /usr/include/X11R6 \
4416 /usr/include/X11R5 \
4417 /usr/include/X11R4 \
4419 /usr/local/X11/include \
4420 /usr/local/X11R6/include \
4421 /usr/local/X11R5/include \
4422 /usr/local/X11R4/include \
4424 /usr/local/include/X11 \
4425 /usr/local/include/X11R6 \
4426 /usr/local/include/X11R5 \
4427 /usr/local/include/X11R4 \
4431 /usr/XFree86/include/X11 \
4434 /usr/local/include \
4435 /usr/unsupported/include \
4436 /usr/athena/include \
4437 /usr/local/x11r5/include \
4438 /usr/lpp/Xamples/include \
4440 /usr/openwin/include \
4441 /usr/openwin/share/include \
4444 if test -r "$ac_dir/$x_direct_test_include"; then
4445 ac_x_includes=$ac_dir
4451 fi # $ac_x_includes = NO
4453 if test "$ac_x_libraries" = NO; then
4454 # Check for the libraries.
4456 test -z "$x_direct_test_library" && x_direct_test_library=Xt
4457 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
4459 # See if we find them without any special options.
4460 # Don't add to $LIBS permanently.
4461 ac_save_LIBS="$LIBS"
4462 LIBS="-l$x_direct_test_library $LIBS"
4463 cat > conftest.$ac_ext <<EOF
4464 #line 4465 "configure"
4465 #include "confdefs.h"
4468 ${x_direct_test_function}()
4471 if { (eval echo configure:4472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4473 LIBS="$ac_save_LIBS"
4474 # We can link X programs with no special library path.
4477 echo "configure: failed program was:" >&5
4478 cat conftest.$ac_ext >&5
4480 LIBS="$ac_save_LIBS"
4481 # First see if replacing the include by lib works.
4482 # Check X11 before X11Rn because it is often a symlink to the current release.
4483 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
4494 /usr/local/X11/lib \
4495 /usr/local/X11R6/lib \
4496 /usr/local/X11R5/lib \
4497 /usr/local/X11R4/lib \
4499 /usr/local/lib/X11 \
4500 /usr/local/lib/X11R6 \
4501 /usr/local/lib/X11R5 \
4502 /usr/local/lib/X11R4 \
4506 /usr/XFree86/lib/X11 \
4510 /usr/unsupported/lib \
4512 /usr/local/x11r5/lib \
4513 /usr/lpp/Xamples/lib \
4517 /usr/openwin/share/lib \
4520 for ac_extension in a so sl; do
4521 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
4522 ac_x_libraries=$ac_dir
4529 fi # $ac_x_libraries = NO
4531 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
4532 # Didn't find X anywhere. Cache the known absence of X.
4533 ac_cv_have_x="have_x=no"
4535 # Record where we found X for the cache.
4536 ac_cv_have_x="have_x=yes \
4537 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
4541 eval "$ac_cv_have_x"
4544 if test "$have_x" != yes; then
4545 echo "$ac_t""$have_x" 1>&6
4548 # If each of the values was on the command line, it overrides each guess.
4549 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4550 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4551 # Update the cache value to reflect the command line values.
4552 ac_cv_have_x="have_x=yes \
4553 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
4554 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
4557 if test "$no_x" = yes; then
4558 # Not all programs may use this symbol, but it does not hurt to define it.
4559 cat >> confdefs.h <<\EOF
4560 #define X_DISPLAY_MISSING 1
4563 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
4565 if test -n "$x_includes"; then
4566 X_CFLAGS="$X_CFLAGS -I$x_includes"
4569 # It would also be nice to do this for all -L options, not just this one.
4570 if test -n "$x_libraries"; then
4571 X_LIBS="$X_LIBS -L$x_libraries"
4572 # For Solaris; some versions of Sun CC require a space after -R and
4573 # others require no space. Words are not sufficient . . . .
4574 case "`(uname -sr) 2>/dev/null`" in
4576 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
4577 echo "configure:4578: checking whether -R must be followed by a space" >&5
4578 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
4579 cat > conftest.$ac_ext <<EOF
4580 #line 4581 "configure"
4581 #include "confdefs.h"
4587 if { (eval echo configure:4588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4591 echo "configure: failed program was:" >&5
4592 cat conftest.$ac_ext >&5
4597 if test $ac_R_nospace = yes; then
4598 echo "$ac_t""no" 1>&6
4599 X_LIBS="$X_LIBS -R$x_libraries"
4601 LIBS="$ac_xsave_LIBS -R $x_libraries"
4602 cat > conftest.$ac_ext <<EOF
4603 #line 4604 "configure"
4604 #include "confdefs.h"
4610 if { (eval echo configure:4611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4614 echo "configure: failed program was:" >&5
4615 cat conftest.$ac_ext >&5
4620 if test $ac_R_space = yes; then
4621 echo "$ac_t""yes" 1>&6
4622 X_LIBS="$X_LIBS -R $x_libraries"
4624 echo "$ac_t""neither works" 1>&6
4627 LIBS="$ac_xsave_LIBS"
4631 # Check for system-dependent libraries X programs must link with.
4632 # Do this before checking for the system-independent R6 libraries
4633 # (-lICE), since we may need -lsocket or whatever for X linking.
4635 if test "$ISC" = yes; then
4636 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4638 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
4639 # libraries were built with DECnet support. And karl@cs.umb.edu says
4640 # the Alpha needs dnet_stub (dnet does not exist).
4641 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
4642 echo "configure:4643: checking for dnet_ntoa in -ldnet" >&5
4643 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
4644 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4645 echo $ac_n "(cached) $ac_c" 1>&6
4647 ac_save_LIBS="$LIBS"
4649 cat > conftest.$ac_ext <<EOF
4650 #line 4651 "configure"
4651 #include "confdefs.h"
4652 /* Override any gcc2 internal prototype to avoid an error. */
4653 /* We use char because int might match the return type of a gcc2
4654 builtin and then its argument prototype would still apply. */
4661 if { (eval echo configure:4662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4663 eval "ac_cv_lib_$ac_lib_var=yes"
4665 echo "configure: failed program was:" >&5
4666 cat conftest.$ac_ext >&5
4668 eval "ac_cv_lib_$ac_lib_var=no"
4671 LIBS="$ac_save_LIBS"
4674 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4675 echo "$ac_t""yes" 1>&6
4676 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
4678 echo "$ac_t""no" 1>&6
4681 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4682 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
4683 echo "configure:4684: checking for dnet_ntoa in -ldnet_stub" >&5
4684 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
4685 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4686 echo $ac_n "(cached) $ac_c" 1>&6
4688 ac_save_LIBS="$LIBS"
4689 LIBS="-ldnet_stub $LIBS"
4690 cat > conftest.$ac_ext <<EOF
4691 #line 4692 "configure"
4692 #include "confdefs.h"
4693 /* Override any gcc2 internal prototype to avoid an error. */
4694 /* We use char because int might match the return type of a gcc2
4695 builtin and then its argument prototype would still apply. */
4702 if { (eval echo configure:4703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4704 eval "ac_cv_lib_$ac_lib_var=yes"
4706 echo "configure: failed program was:" >&5
4707 cat conftest.$ac_ext >&5
4709 eval "ac_cv_lib_$ac_lib_var=no"
4712 LIBS="$ac_save_LIBS"
4715 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4716 echo "$ac_t""yes" 1>&6
4717 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
4719 echo "$ac_t""no" 1>&6
4724 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
4725 # to get the SysV transport functions.
4726 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
4728 # The nsl library prevents programs from opening the X display
4729 # on Irix 5.2, according to dickey@clark.net.
4730 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
4731 echo "configure:4732: checking for gethostbyname" >&5
4732 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
4733 echo $ac_n "(cached) $ac_c" 1>&6
4735 cat > conftest.$ac_ext <<EOF
4736 #line 4737 "configure"
4737 #include "confdefs.h"
4738 /* System header to define __stub macros and hopefully few prototypes,
4739 which can conflict with char gethostbyname(); below. */
4741 /* Override any gcc2 internal prototype to avoid an error. */
4742 /* We use char because int might match the return type of a gcc2
4743 builtin and then its argument prototype would still apply. */
4744 char gethostbyname();
4748 /* The GNU C library defines this for functions which it implements
4749 to always fail with ENOSYS. Some functions are actually named
4750 something starting with __ and the normal name is an alias. */
4751 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
4759 if { (eval echo configure:4760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4761 eval "ac_cv_func_gethostbyname=yes"
4763 echo "configure: failed program was:" >&5
4764 cat conftest.$ac_ext >&5
4766 eval "ac_cv_func_gethostbyname=no"
4771 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
4772 echo "$ac_t""yes" 1>&6
4775 echo "$ac_t""no" 1>&6
4778 if test $ac_cv_func_gethostbyname = no; then
4779 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
4780 echo "configure:4781: checking for gethostbyname in -lnsl" >&5
4781 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
4782 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4783 echo $ac_n "(cached) $ac_c" 1>&6
4785 ac_save_LIBS="$LIBS"
4787 cat > conftest.$ac_ext <<EOF
4788 #line 4789 "configure"
4789 #include "confdefs.h"
4790 /* Override any gcc2 internal prototype to avoid an error. */
4791 /* We use char because int might match the return type of a gcc2
4792 builtin and then its argument prototype would still apply. */
4793 char gethostbyname();
4799 if { (eval echo configure:4800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4801 eval "ac_cv_lib_$ac_lib_var=yes"
4803 echo "configure: failed program was:" >&5
4804 cat conftest.$ac_ext >&5
4806 eval "ac_cv_lib_$ac_lib_var=no"
4809 LIBS="$ac_save_LIBS"
4812 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4813 echo "$ac_t""yes" 1>&6
4814 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
4816 echo "$ac_t""no" 1>&6
4821 # lieder@skyler.mavd.honeywell.com says without -lsocket,
4822 # socket/setsockopt and other routines are undefined under SCO ODT
4823 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
4824 # on later versions), says simon@lia.di.epfl.ch: it contains
4825 # gethostby* variants that don't use the nameserver (or something).
4826 # -lsocket must be given before -lnsl if both are needed.
4827 # We assume that if connect needs -lnsl, so does gethostbyname.
4828 echo $ac_n "checking for connect""... $ac_c" 1>&6
4829 echo "configure:4830: checking for connect" >&5
4830 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
4831 echo $ac_n "(cached) $ac_c" 1>&6
4833 cat > conftest.$ac_ext <<EOF
4834 #line 4835 "configure"
4835 #include "confdefs.h"
4836 /* System header to define __stub macros and hopefully few prototypes,
4837 which can conflict with char connect(); below. */
4839 /* Override any gcc2 internal prototype to avoid an error. */
4840 /* We use char because int might match the return type of a gcc2
4841 builtin and then its argument prototype would still apply. */
4846 /* The GNU C library defines this for functions which it implements
4847 to always fail with ENOSYS. Some functions are actually named
4848 something starting with __ and the normal name is an alias. */
4849 #if defined (__stub_connect) || defined (__stub___connect)
4857 if { (eval echo configure:4858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4859 eval "ac_cv_func_connect=yes"
4861 echo "configure: failed program was:" >&5
4862 cat conftest.$ac_ext >&5
4864 eval "ac_cv_func_connect=no"
4869 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
4870 echo "$ac_t""yes" 1>&6
4873 echo "$ac_t""no" 1>&6
4876 if test $ac_cv_func_connect = no; then
4877 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
4878 echo "configure:4879: checking for connect in -lsocket" >&5
4879 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
4880 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4881 echo $ac_n "(cached) $ac_c" 1>&6
4883 ac_save_LIBS="$LIBS"
4884 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
4885 cat > conftest.$ac_ext <<EOF
4886 #line 4887 "configure"
4887 #include "confdefs.h"
4888 /* Override any gcc2 internal prototype to avoid an error. */
4889 /* We use char because int might match the return type of a gcc2
4890 builtin and then its argument prototype would still apply. */
4897 if { (eval echo configure:4898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4899 eval "ac_cv_lib_$ac_lib_var=yes"
4901 echo "configure: failed program was:" >&5
4902 cat conftest.$ac_ext >&5
4904 eval "ac_cv_lib_$ac_lib_var=no"
4907 LIBS="$ac_save_LIBS"
4910 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4911 echo "$ac_t""yes" 1>&6
4912 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
4914 echo "$ac_t""no" 1>&6
4919 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
4920 echo $ac_n "checking for remove""... $ac_c" 1>&6
4921 echo "configure:4922: checking for remove" >&5
4922 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
4923 echo $ac_n "(cached) $ac_c" 1>&6
4925 cat > conftest.$ac_ext <<EOF
4926 #line 4927 "configure"
4927 #include "confdefs.h"
4928 /* System header to define __stub macros and hopefully few prototypes,
4929 which can conflict with char remove(); below. */
4931 /* Override any gcc2 internal prototype to avoid an error. */
4932 /* We use char because int might match the return type of a gcc2
4933 builtin and then its argument prototype would still apply. */
4938 /* The GNU C library defines this for functions which it implements
4939 to always fail with ENOSYS. Some functions are actually named
4940 something starting with __ and the normal name is an alias. */
4941 #if defined (__stub_remove) || defined (__stub___remove)
4949 if { (eval echo configure:4950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4951 eval "ac_cv_func_remove=yes"
4953 echo "configure: failed program was:" >&5
4954 cat conftest.$ac_ext >&5
4956 eval "ac_cv_func_remove=no"
4961 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
4962 echo "$ac_t""yes" 1>&6
4965 echo "$ac_t""no" 1>&6
4968 if test $ac_cv_func_remove = no; then
4969 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
4970 echo "configure:4971: checking for remove in -lposix" >&5
4971 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
4972 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4973 echo $ac_n "(cached) $ac_c" 1>&6
4975 ac_save_LIBS="$LIBS"
4976 LIBS="-lposix $LIBS"
4977 cat > conftest.$ac_ext <<EOF
4978 #line 4979 "configure"
4979 #include "confdefs.h"
4980 /* Override any gcc2 internal prototype to avoid an error. */
4981 /* We use char because int might match the return type of a gcc2
4982 builtin and then its argument prototype would still apply. */
4989 if { (eval echo configure:4990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4991 eval "ac_cv_lib_$ac_lib_var=yes"
4993 echo "configure: failed program was:" >&5
4994 cat conftest.$ac_ext >&5
4996 eval "ac_cv_lib_$ac_lib_var=no"
4999 LIBS="$ac_save_LIBS"
5002 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5003 echo "$ac_t""yes" 1>&6
5004 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5006 echo "$ac_t""no" 1>&6
5011 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5012 echo $ac_n "checking for shmat""... $ac_c" 1>&6
5013 echo "configure:5014: checking for shmat" >&5
5014 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
5015 echo $ac_n "(cached) $ac_c" 1>&6
5017 cat > conftest.$ac_ext <<EOF
5018 #line 5019 "configure"
5019 #include "confdefs.h"
5020 /* System header to define __stub macros and hopefully few prototypes,
5021 which can conflict with char shmat(); below. */
5023 /* Override any gcc2 internal prototype to avoid an error. */
5024 /* We use char because int might match the return type of a gcc2
5025 builtin and then its argument prototype would still apply. */
5030 /* The GNU C library defines this for functions which it implements
5031 to always fail with ENOSYS. Some functions are actually named
5032 something starting with __ and the normal name is an alias. */
5033 #if defined (__stub_shmat) || defined (__stub___shmat)
5041 if { (eval echo configure:5042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5043 eval "ac_cv_func_shmat=yes"
5045 echo "configure: failed program was:" >&5
5046 cat conftest.$ac_ext >&5
5048 eval "ac_cv_func_shmat=no"
5053 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
5054 echo "$ac_t""yes" 1>&6
5057 echo "$ac_t""no" 1>&6
5060 if test $ac_cv_func_shmat = no; then
5061 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
5062 echo "configure:5063: checking for shmat in -lipc" >&5
5063 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
5064 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5065 echo $ac_n "(cached) $ac_c" 1>&6
5067 ac_save_LIBS="$LIBS"
5069 cat > conftest.$ac_ext <<EOF
5070 #line 5071 "configure"
5071 #include "confdefs.h"
5072 /* Override any gcc2 internal prototype to avoid an error. */
5073 /* We use char because int might match the return type of a gcc2
5074 builtin and then its argument prototype would still apply. */
5081 if { (eval echo configure:5082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5083 eval "ac_cv_lib_$ac_lib_var=yes"
5085 echo "configure: failed program was:" >&5
5086 cat conftest.$ac_ext >&5
5088 eval "ac_cv_lib_$ac_lib_var=no"
5091 LIBS="$ac_save_LIBS"
5094 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5095 echo "$ac_t""yes" 1>&6
5096 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5098 echo "$ac_t""no" 1>&6
5104 # Check for libraries that X11R6 Xt/Xaw programs need.
5105 ac_save_LDFLAGS="$LDFLAGS"
5106 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5107 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5108 # check for ICE first), but we must link in the order -lSM -lICE or
5109 # we get undefined symbols. So assume we have SM if we have ICE.
5110 # These have to be linked with before -lX11, unlike the other
5111 # libraries we check for below, so use a different variable.
5112 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
5113 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
5114 echo "configure:5115: checking for IceConnectionNumber in -lICE" >&5
5115 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
5116 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5117 echo $ac_n "(cached) $ac_c" 1>&6
5119 ac_save_LIBS="$LIBS"
5120 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
5121 cat > conftest.$ac_ext <<EOF
5122 #line 5123 "configure"
5123 #include "confdefs.h"
5124 /* Override any gcc2 internal prototype to avoid an error. */
5125 /* We use char because int might match the return type of a gcc2
5126 builtin and then its argument prototype would still apply. */
5127 char IceConnectionNumber();
5130 IceConnectionNumber()
5133 if { (eval echo configure:5134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5135 eval "ac_cv_lib_$ac_lib_var=yes"
5137 echo "configure: failed program was:" >&5
5138 cat conftest.$ac_ext >&5
5140 eval "ac_cv_lib_$ac_lib_var=no"
5143 LIBS="$ac_save_LIBS"
5146 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5147 echo "$ac_t""yes" 1>&6
5148 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5150 echo "$ac_t""no" 1>&6
5153 LDFLAGS="$ac_save_LDFLAGS"
5177 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5178 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5179 echo "configure:5180: checking for $ac_hdr" >&5
5180 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5181 echo $ac_n "(cached) $ac_c" 1>&6
5183 cat > conftest.$ac_ext <<EOF
5184 #line 5185 "configure"
5185 #include "confdefs.h"
5188 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5189 { (eval echo configure:5190: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5190 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5191 if test -z "$ac_err"; then
5193 eval "ac_cv_header_$ac_safe=yes"
5196 echo "configure: failed program was:" >&5
5197 cat conftest.$ac_ext >&5
5199 eval "ac_cv_header_$ac_safe=no"
5203 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5204 echo "$ac_t""yes" 1>&6
5205 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5206 cat >> confdefs.h <<EOF
5207 #define $ac_tr_hdr 1
5211 echo "$ac_t""no" 1>&6
5215 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
5216 echo "configure:5217: checking for ANSI C header files" >&5
5217 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
5218 echo $ac_n "(cached) $ac_c" 1>&6
5220 cat > conftest.$ac_ext <<EOF
5221 #line 5222 "configure"
5222 #include "confdefs.h"
5228 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5229 { (eval echo configure:5230: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5230 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5231 if test -z "$ac_err"; then
5233 ac_cv_header_stdc=yes
5236 echo "configure: failed program was:" >&5
5237 cat conftest.$ac_ext >&5
5239 ac_cv_header_stdc=no
5243 if test $ac_cv_header_stdc = yes; then
5244 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5245 cat > conftest.$ac_ext <<EOF
5246 #line 5247 "configure"
5247 #include "confdefs.h"
5250 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5251 egrep "memchr" >/dev/null 2>&1; then
5255 ac_cv_header_stdc=no
5261 if test $ac_cv_header_stdc = yes; then
5262 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5263 cat > conftest.$ac_ext <<EOF
5264 #line 5265 "configure"
5265 #include "confdefs.h"
5268 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5269 egrep "free" >/dev/null 2>&1; then
5273 ac_cv_header_stdc=no
5279 if test $ac_cv_header_stdc = yes; then
5280 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5281 if test "$cross_compiling" = yes; then
5284 cat > conftest.$ac_ext <<EOF
5285 #line 5286 "configure"
5286 #include "confdefs.h"
5288 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5289 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5290 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5291 int main () { int i; for (i = 0; i < 256; i++)
5292 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
5296 if { (eval echo configure:5297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5300 echo "configure: failed program was:" >&5
5301 cat conftest.$ac_ext >&5
5303 ac_cv_header_stdc=no
5311 echo "$ac_t""$ac_cv_header_stdc" 1>&6
5312 if test $ac_cv_header_stdc = yes; then
5313 cat >> confdefs.h <<\EOF
5314 #define STDC_HEADERS 1
5319 echo $ac_n "checking whether sys/types.h defines makedev""... $ac_c" 1>&6
5320 echo "configure:5321: checking whether sys/types.h defines makedev" >&5
5321 if eval "test \"`echo '$''{'ac_cv_header_sys_types_h_makedev'+set}'`\" = set"; then
5322 echo $ac_n "(cached) $ac_c" 1>&6
5324 cat > conftest.$ac_ext <<EOF
5325 #line 5326 "configure"
5326 #include "confdefs.h"
5327 #include <sys/types.h>
5329 return makedev(0, 0);
5332 if { (eval echo configure:5333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5334 ac_cv_header_sys_types_h_makedev=yes
5336 echo "configure: failed program was:" >&5
5337 cat conftest.$ac_ext >&5
5339 ac_cv_header_sys_types_h_makedev=no
5345 echo "$ac_t""$ac_cv_header_sys_types_h_makedev" 1>&6
5347 if test $ac_cv_header_sys_types_h_makedev = no; then
5348 ac_safe=`echo "sys/mkdev.h" | sed 'y%./+-%__p_%'`
5349 echo $ac_n "checking for sys/mkdev.h""... $ac_c" 1>&6
5350 echo "configure:5351: checking for sys/mkdev.h" >&5
5351 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5352 echo $ac_n "(cached) $ac_c" 1>&6
5354 cat > conftest.$ac_ext <<EOF
5355 #line 5356 "configure"
5356 #include "confdefs.h"
5357 #include <sys/mkdev.h>
5359 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5360 { (eval echo configure:5361: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5361 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5362 if test -z "$ac_err"; then
5364 eval "ac_cv_header_$ac_safe=yes"
5367 echo "configure: failed program was:" >&5
5368 cat conftest.$ac_ext >&5
5370 eval "ac_cv_header_$ac_safe=no"
5374 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5375 echo "$ac_t""yes" 1>&6
5376 cat >> confdefs.h <<\EOF
5377 #define MAJOR_IN_MKDEV 1
5381 echo "$ac_t""no" 1>&6
5385 if test $ac_cv_header_sys_mkdev_h = no; then
5386 ac_safe=`echo "sys/sysmacros.h" | sed 'y%./+-%__p_%'`
5387 echo $ac_n "checking for sys/sysmacros.h""... $ac_c" 1>&6
5388 echo "configure:5389: checking for sys/sysmacros.h" >&5
5389 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5390 echo $ac_n "(cached) $ac_c" 1>&6
5392 cat > conftest.$ac_ext <<EOF
5393 #line 5394 "configure"
5394 #include "confdefs.h"
5395 #include <sys/sysmacros.h>
5397 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5398 { (eval echo configure:5399: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5399 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5400 if test -z "$ac_err"; then
5402 eval "ac_cv_header_$ac_safe=yes"
5405 echo "configure: failed program was:" >&5
5406 cat conftest.$ac_ext >&5
5408 eval "ac_cv_header_$ac_safe=no"
5412 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5413 echo "$ac_t""yes" 1>&6
5414 cat >> confdefs.h <<\EOF
5415 #define MAJOR_IN_SYSMACROS 1
5419 echo "$ac_t""no" 1>&6
5426 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
5428 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5429 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
5430 echo "configure:5431: checking for $ac_hdr that defines DIR" >&5
5431 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
5432 echo $ac_n "(cached) $ac_c" 1>&6
5434 cat > conftest.$ac_ext <<EOF
5435 #line 5436 "configure"
5436 #include "confdefs.h"
5437 #include <sys/types.h>
5443 if { (eval echo configure:5444: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5445 eval "ac_cv_header_dirent_$ac_safe=yes"
5447 echo "configure: failed program was:" >&5
5448 cat conftest.$ac_ext >&5
5450 eval "ac_cv_header_dirent_$ac_safe=no"
5454 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
5455 echo "$ac_t""yes" 1>&6
5456 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5457 cat >> confdefs.h <<EOF
5458 #define $ac_tr_hdr 1
5460 ac_header_dirent=$ac_hdr; break
5462 echo "$ac_t""no" 1>&6
5465 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5466 if test $ac_header_dirent = dirent.h; then
5467 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
5468 echo "configure:5469: checking for opendir in -ldir" >&5
5469 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
5470 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5471 echo $ac_n "(cached) $ac_c" 1>&6
5473 ac_save_LIBS="$LIBS"
5475 cat > conftest.$ac_ext <<EOF
5476 #line 5477 "configure"
5477 #include "confdefs.h"
5478 /* Override any gcc2 internal prototype to avoid an error. */
5479 /* We use char because int might match the return type of a gcc2
5480 builtin and then its argument prototype would still apply. */
5487 if { (eval echo configure:5488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5489 eval "ac_cv_lib_$ac_lib_var=yes"
5491 echo "configure: failed program was:" >&5
5492 cat conftest.$ac_ext >&5
5494 eval "ac_cv_lib_$ac_lib_var=no"
5497 LIBS="$ac_save_LIBS"
5500 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5501 echo "$ac_t""yes" 1>&6
5504 echo "$ac_t""no" 1>&6
5508 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
5509 echo "configure:5510: checking for opendir in -lx" >&5
5510 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
5511 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5512 echo $ac_n "(cached) $ac_c" 1>&6
5514 ac_save_LIBS="$LIBS"
5516 cat > conftest.$ac_ext <<EOF
5517 #line 5518 "configure"
5518 #include "confdefs.h"
5519 /* Override any gcc2 internal prototype to avoid an error. */
5520 /* We use char because int might match the return type of a gcc2
5521 builtin and then its argument prototype would still apply. */
5528 if { (eval echo configure:5529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5530 eval "ac_cv_lib_$ac_lib_var=yes"
5532 echo "configure: failed program was:" >&5
5533 cat conftest.$ac_ext >&5
5535 eval "ac_cv_lib_$ac_lib_var=no"
5538 LIBS="$ac_save_LIBS"
5541 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5542 echo "$ac_t""yes" 1>&6
5545 echo "$ac_t""no" 1>&6
5550 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
5551 echo "configure:5552: checking whether stat file-mode macros are broken" >&5
5552 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
5553 echo $ac_n "(cached) $ac_c" 1>&6
5555 cat > conftest.$ac_ext <<EOF
5556 #line 5557 "configure"
5557 #include "confdefs.h"
5558 #include <sys/types.h>
5559 #include <sys/stat.h>
5561 #if defined(S_ISBLK) && defined(S_IFDIR)
5562 # if S_ISBLK (S_IFDIR)
5567 #if defined(S_ISBLK) && defined(S_IFCHR)
5568 # if S_ISBLK (S_IFCHR)
5573 #if defined(S_ISLNK) && defined(S_IFREG)
5574 # if S_ISLNK (S_IFREG)
5579 #if defined(S_ISSOCK) && defined(S_IFREG)
5580 # if S_ISSOCK (S_IFREG)
5586 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5587 egrep "You lose" >/dev/null 2>&1; then
5589 ac_cv_header_stat_broken=yes
5592 ac_cv_header_stat_broken=no
5598 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
5599 if test $ac_cv_header_stat_broken = yes; then
5600 cat >> confdefs.h <<\EOF
5601 #define STAT_MACROS_BROKEN 1
5606 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
5607 echo "configure:5608: checking for sys/wait.h that is POSIX.1 compatible" >&5
5608 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
5609 echo $ac_n "(cached) $ac_c" 1>&6
5611 cat > conftest.$ac_ext <<EOF
5612 #line 5613 "configure"
5613 #include "confdefs.h"
5614 #include <sys/types.h>
5615 #include <sys/wait.h>
5617 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5620 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5625 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5628 if { (eval echo configure:5629: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5630 ac_cv_header_sys_wait_h=yes
5632 echo "configure: failed program was:" >&5
5633 cat conftest.$ac_ext >&5
5635 ac_cv_header_sys_wait_h=no
5640 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
5641 if test $ac_cv_header_sys_wait_h = yes; then
5642 cat >> confdefs.h <<\EOF
5643 #define HAVE_SYS_WAIT_H 1
5648 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
5649 echo "configure:5650: checking whether time.h and sys/time.h may both be included" >&5
5650 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
5651 echo $ac_n "(cached) $ac_c" 1>&6
5653 cat > conftest.$ac_ext <<EOF
5654 #line 5655 "configure"
5655 #include "confdefs.h"
5656 #include <sys/types.h>
5657 #include <sys/time.h>
5663 if { (eval echo configure:5664: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5665 ac_cv_header_time=yes
5667 echo "configure: failed program was:" >&5
5668 cat conftest.$ac_ext >&5
5670 ac_cv_header_time=no
5675 echo "$ac_t""$ac_cv_header_time" 1>&6
5676 if test $ac_cv_header_time = yes; then
5677 cat >> confdefs.h <<\EOF
5678 #define TIME_WITH_SYS_TIME 1
5683 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
5684 echo "configure:5685: checking for st_blksize in struct stat" >&5
5685 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
5686 echo $ac_n "(cached) $ac_c" 1>&6
5688 cat > conftest.$ac_ext <<EOF
5689 #line 5690 "configure"
5690 #include "confdefs.h"
5691 #include <sys/types.h>
5692 #include <sys/stat.h>
5694 struct stat s; s.st_blksize;
5697 if { (eval echo configure:5698: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5699 ac_cv_struct_st_blksize=yes
5701 echo "configure: failed program was:" >&5
5702 cat conftest.$ac_ext >&5
5704 ac_cv_struct_st_blksize=no
5709 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
5710 if test $ac_cv_struct_st_blksize = yes; then
5711 cat >> confdefs.h <<\EOF
5712 #define HAVE_ST_BLKSIZE 1
5717 echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
5718 echo "configure:5719: checking for st_blocks in struct stat" >&5
5719 if eval "test \"`echo '$''{'ac_cv_struct_st_blocks'+set}'`\" = set"; then
5720 echo $ac_n "(cached) $ac_c" 1>&6
5722 cat > conftest.$ac_ext <<EOF
5723 #line 5724 "configure"
5724 #include "confdefs.h"
5725 #include <sys/types.h>
5726 #include <sys/stat.h>
5728 struct stat s; s.st_blocks;
5731 if { (eval echo configure:5732: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5733 ac_cv_struct_st_blocks=yes
5735 echo "configure: failed program was:" >&5
5736 cat conftest.$ac_ext >&5
5738 ac_cv_struct_st_blocks=no
5743 echo "$ac_t""$ac_cv_struct_st_blocks" 1>&6
5744 if test $ac_cv_struct_st_blocks = yes; then
5745 cat >> confdefs.h <<\EOF
5746 #define HAVE_ST_BLOCKS 1
5750 LIBOBJS="$LIBOBJS fileblocks.${ac_objext}"
5753 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
5754 echo "configure:5755: checking whether struct tm is in sys/time.h or time.h" >&5
5755 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
5756 echo $ac_n "(cached) $ac_c" 1>&6
5758 cat > conftest.$ac_ext <<EOF
5759 #line 5760 "configure"
5760 #include "confdefs.h"
5761 #include <sys/types.h>
5764 struct tm *tp; tp->tm_sec;
5767 if { (eval echo configure:5768: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5769 ac_cv_struct_tm=time.h
5771 echo "configure: failed program was:" >&5
5772 cat conftest.$ac_ext >&5
5774 ac_cv_struct_tm=sys/time.h
5779 echo "$ac_t""$ac_cv_struct_tm" 1>&6
5780 if test $ac_cv_struct_tm = sys/time.h; then
5781 cat >> confdefs.h <<\EOF
5782 #define TM_IN_SYS_TIME 1
5787 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
5788 echo "configure:5789: checking for tm_zone in struct tm" >&5
5789 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
5790 echo $ac_n "(cached) $ac_c" 1>&6
5792 cat > conftest.$ac_ext <<EOF
5793 #line 5794 "configure"
5794 #include "confdefs.h"
5795 #include <sys/types.h>
5796 #include <$ac_cv_struct_tm>
5798 struct tm tm; tm.tm_zone;
5801 if { (eval echo configure:5802: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5803 ac_cv_struct_tm_zone=yes
5805 echo "configure: failed program was:" >&5
5806 cat conftest.$ac_ext >&5
5808 ac_cv_struct_tm_zone=no
5813 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
5814 if test "$ac_cv_struct_tm_zone" = yes; then
5815 cat >> confdefs.h <<\EOF
5816 #define HAVE_TM_ZONE 1
5820 echo $ac_n "checking for tzname""... $ac_c" 1>&6
5821 echo "configure:5822: checking for tzname" >&5
5822 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
5823 echo $ac_n "(cached) $ac_c" 1>&6
5825 cat > conftest.$ac_ext <<EOF
5826 #line 5827 "configure"
5827 #include "confdefs.h"
5829 #ifndef tzname /* For SGI. */
5830 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
5836 if { (eval echo configure:5837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5838 ac_cv_var_tzname=yes
5840 echo "configure: failed program was:" >&5
5841 cat conftest.$ac_ext >&5
5848 echo "$ac_t""$ac_cv_var_tzname" 1>&6
5849 if test $ac_cv_var_tzname = yes; then
5850 cat >> confdefs.h <<\EOF
5851 #define HAVE_TZNAME 1
5858 echo $ac_n "checking for utime.h""... $ac_c" 1>&6
5859 echo "configure:5860: checking for utime.h" >&5
5860 if eval "test \"`echo '$''{'tar_cv_header_utime_h'+set}'`\" = set"; then
5861 echo $ac_n "(cached) $ac_c" 1>&6
5863 cat > conftest.$ac_ext <<EOF
5864 #line 5865 "configure"
5865 #include "confdefs.h"
5867 #include <sys/types.h>
5873 if { (eval echo configure:5874: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5875 tar_cv_header_utime_h=yes
5877 echo "configure: failed program was:" >&5
5878 cat conftest.$ac_ext >&5
5880 tar_cv_header_utime_h=no
5885 echo "$ac_t""$tar_cv_header_utime_h" 1>&6
5886 test $tar_cv_header_utime_h = yes && cat >> confdefs.h <<\EOF
5887 #define HAVE_UTIME_H 1
5891 echo $ac_n "checking for bigendian""... $ac_c" 1>&6
5892 echo "configure:5893: checking for bigendian" >&5
5893 if eval "test \"`echo '$''{'ba_cv_bigendian'+set}'`\" = set"; then
5894 echo $ac_n "(cached) $ac_c" 1>&6
5896 if test "$cross_compiling" = yes; then
5899 cat > conftest.$ac_ext <<EOF
5900 #line 5901 "configure"
5901 #include "confdefs.h"
5902 main(){long a=1L; char *p=(char *)&a; exit(*p);}
5904 if { (eval echo configure:5905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5908 echo "configure: failed program was:" >&5
5909 cat conftest.$ac_ext >&5
5918 echo "$ac_t""$ba_cv_bigendian" 1>&6
5919 test $ba_cv_bigendian = yes && cat >> confdefs.h <<\EOF
5920 #define HAVE_BIGENDIAN 1
5925 echo $ac_n "checking for working const""... $ac_c" 1>&6
5926 echo "configure:5927: checking for working const" >&5
5927 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
5928 echo $ac_n "(cached) $ac_c" 1>&6
5930 cat > conftest.$ac_ext <<EOF
5931 #line 5932 "configure"
5932 #include "confdefs.h"
5936 /* Ultrix mips cc rejects this. */
5937 typedef int charset[2]; const charset x;
5938 /* SunOS 4.1.1 cc rejects this. */
5939 char const *const *ccp;
5941 /* NEC SVR4.0.2 mips cc rejects this. */
5942 struct point {int x, y;};
5943 static struct point const zero = {0,0};
5944 /* AIX XL C 1.02.0.0 rejects this.
5945 It does not let you subtract one const X* pointer from another in an arm
5946 of an if-expression whose if-part is not a constant expression */
5947 const char *g = "string";
5948 ccp = &g + (g ? g-g : 0);
5949 /* HPUX 7.0 cc rejects these. */
5952 ccp = (char const *const *) p;
5953 { /* SCO 3.2v4 cc rejects this. */
5955 char const *s = 0 ? (char *) 0 : (char const *) 0;
5959 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5961 const int *foo = &x[0];
5964 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5965 typedef const int *iptr;
5969 { /* AIX XL C 1.02.0.0 rejects this saying
5970 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5971 struct s { int j; const int *ap[3]; };
5972 struct s *b; b->j = 5;
5974 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5980 if { (eval echo configure:5981: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5984 echo "configure: failed program was:" >&5
5985 cat conftest.$ac_ext >&5
5992 echo "$ac_t""$ac_cv_c_const" 1>&6
5993 if test $ac_cv_c_const = no; then
5994 cat >> confdefs.h <<\EOF
6002 echo $ac_n "checking how to get filesystem type""... $ac_c" 1>&6
6003 echo "configure:6004: checking how to get filesystem type" >&5
6005 # The order of these tests is important.
6006 cat > conftest.$ac_ext <<EOF
6007 #line 6008 "configure"
6008 #include "confdefs.h"
6009 #include <sys/statvfs.h>
6010 #include <sys/fstyp.h>
6012 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6013 { (eval echo configure:6014: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6014 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6015 if test -z "$ac_err"; then
6017 cat >> confdefs.h <<\EOF
6018 #define FSTYPE_STATVFS 1
6023 echo "configure: failed program was:" >&5
6024 cat conftest.$ac_ext >&5
6027 if test $fstype = no; then
6028 cat > conftest.$ac_ext <<EOF
6029 #line 6030 "configure"
6030 #include "confdefs.h"
6031 #include <sys/statfs.h>
6032 #include <sys/fstyp.h>
6034 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6035 { (eval echo configure:6036: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6036 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6037 if test -z "$ac_err"; then
6039 cat >> confdefs.h <<\EOF
6040 #define FSTYPE_USG_STATFS 1
6045 echo "configure: failed program was:" >&5
6046 cat conftest.$ac_ext >&5
6050 if test $fstype = no; then
6051 cat > conftest.$ac_ext <<EOF
6052 #line 6053 "configure"
6053 #include "confdefs.h"
6054 #include <sys/statfs.h>
6055 #include <sys/vmount.h>
6057 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6058 { (eval echo configure:6059: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6059 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6060 if test -z "$ac_err"; then
6062 cat >> confdefs.h <<\EOF
6063 #define FSTYPE_AIX_STATFS 1
6068 echo "configure: failed program was:" >&5
6069 cat conftest.$ac_ext >&5
6073 if test $fstype = no; then
6074 cat > conftest.$ac_ext <<EOF
6075 #line 6076 "configure"
6076 #include "confdefs.h"
6079 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6080 { (eval echo configure:6081: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6081 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6082 if test -z "$ac_err"; then
6084 cat >> confdefs.h <<\EOF
6085 #define FSTYPE_MNTENT 1
6090 echo "configure: failed program was:" >&5
6091 cat conftest.$ac_ext >&5
6095 if test $fstype = no; then
6096 cat > conftest.$ac_ext <<EOF
6097 #line 6098 "configure"
6098 #include "confdefs.h"
6099 #include <sys/mount.h>
6101 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6102 egrep "f_type;" >/dev/null 2>&1; then
6104 cat >> confdefs.h <<\EOF
6105 #define FSTYPE_STATFS 1
6112 if test $fstype = no; then
6113 cat > conftest.$ac_ext <<EOF
6114 #line 6115 "configure"
6115 #include "confdefs.h"
6116 #include <sys/mount.h>
6117 #include <sys/fs_types.h>
6119 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6120 { (eval echo configure:6121: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6121 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6122 if test -z "$ac_err"; then
6124 cat >> confdefs.h <<\EOF
6125 #define FSTYPE_GETMNT 1
6130 echo "configure: failed program was:" >&5
6131 cat conftest.$ac_ext >&5
6135 echo "$ac_t""$fstype" 1>&6
6137 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
6138 echo "configure:6139: checking return type of signal handlers" >&5
6139 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
6140 echo $ac_n "(cached) $ac_c" 1>&6
6142 cat > conftest.$ac_ext <<EOF
6143 #line 6144 "configure"
6144 #include "confdefs.h"
6145 #include <sys/types.h>
6151 extern "C" void (*signal (int, void (*)(int)))(int);
6153 void (*signal ()) ();
6160 if { (eval echo configure:6161: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6162 ac_cv_type_signal=void
6164 echo "configure: failed program was:" >&5
6165 cat conftest.$ac_ext >&5
6167 ac_cv_type_signal=int
6172 echo "$ac_t""$ac_cv_type_signal" 1>&6
6173 cat >> confdefs.h <<EOF
6174 #define RETSIGTYPE $ac_cv_type_signal
6179 echo $ac_n "checking for type of signal functions""... $ac_c" 1>&6
6180 echo "configure:6181: checking for type of signal functions" >&5
6181 if eval "test \"`echo '$''{'bash_cv_signal_vintage'+set}'`\" = set"; then
6182 echo $ac_n "(cached) $ac_c" 1>&6
6185 cat > conftest.$ac_ext <<EOF
6186 #line 6187 "configure"
6187 #include "confdefs.h"
6192 struct sigaction sa;
6193 sigemptyset(&ss); sigsuspend(&ss);
6194 sigaction(SIGINT, &sa, (struct sigaction *) 0);
6195 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
6199 if { (eval echo configure:6200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6201 bash_cv_signal_vintage=posix
6203 echo "configure: failed program was:" >&5
6204 cat conftest.$ac_ext >&5
6207 cat > conftest.$ac_ext <<EOF
6208 #line 6209 "configure"
6209 #include "confdefs.h"
6213 int mask = sigmask(SIGINT);
6214 sigsetmask(mask); sigblock(mask); sigpause(mask);
6218 if { (eval echo configure:6219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6220 bash_cv_signal_vintage=4.2bsd
6222 echo "configure: failed program was:" >&5
6223 cat conftest.$ac_ext >&5
6226 cat > conftest.$ac_ext <<EOF
6227 #line 6228 "configure"
6228 #include "confdefs.h"
6231 RETSIGTYPE foo() { }
6234 int mask = sigmask(SIGINT);
6235 sigset(SIGINT, foo); sigrelse(SIGINT);
6236 sighold(SIGINT); sigpause(SIGINT);
6240 if { (eval echo configure:6241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6242 bash_cv_signal_vintage=svr3
6244 echo "configure: failed program was:" >&5
6245 cat conftest.$ac_ext >&5
6247 bash_cv_signal_vintage=v7
6260 echo "$ac_t""$bash_cv_signal_vintage" 1>&6
6261 if test "$bash_cv_signal_vintage" = posix; then
6262 cat >> confdefs.h <<\EOF
6263 #define HAVE_POSIX_SIGNALS 1
6266 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
6267 cat >> confdefs.h <<\EOF
6268 #define HAVE_BSD_SIGNALS 1
6271 elif test "$bash_cv_signal_vintage" = svr3; then
6272 cat >> confdefs.h <<\EOF
6273 #define HAVE_USG_SIGHOLD 1
6278 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
6279 echo "configure:6280: checking for mode_t" >&5
6280 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
6281 echo $ac_n "(cached) $ac_c" 1>&6
6283 cat > conftest.$ac_ext <<EOF
6284 #line 6285 "configure"
6285 #include "confdefs.h"
6286 #include <sys/types.h>
6292 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6293 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6295 ac_cv_type_mode_t=yes
6298 ac_cv_type_mode_t=no
6303 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
6304 if test $ac_cv_type_mode_t = no; then
6305 cat >> confdefs.h <<\EOF
6311 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
6312 echo "configure:6313: checking for uid_t in sys/types.h" >&5
6313 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
6314 echo $ac_n "(cached) $ac_c" 1>&6
6316 cat > conftest.$ac_ext <<EOF
6317 #line 6318 "configure"
6318 #include "confdefs.h"
6319 #include <sys/types.h>
6321 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6322 egrep "uid_t" >/dev/null 2>&1; then
6324 ac_cv_type_uid_t=yes
6333 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
6334 if test $ac_cv_type_uid_t = no; then
6335 cat >> confdefs.h <<\EOF
6339 cat >> confdefs.h <<\EOF
6345 echo $ac_n "checking for size_t""... $ac_c" 1>&6
6346 echo "configure:6347: checking for size_t" >&5
6347 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
6348 echo $ac_n "(cached) $ac_c" 1>&6
6350 cat > conftest.$ac_ext <<EOF
6351 #line 6352 "configure"
6352 #include "confdefs.h"
6353 #include <sys/types.h>
6359 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6360 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6362 ac_cv_type_size_t=yes
6365 ac_cv_type_size_t=no
6370 echo "$ac_t""$ac_cv_type_size_t" 1>&6
6371 if test $ac_cv_type_size_t = no; then
6372 cat >> confdefs.h <<\EOF
6373 #define size_t unsigned
6378 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
6379 echo "configure:6380: checking for pid_t" >&5
6380 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
6381 echo $ac_n "(cached) $ac_c" 1>&6
6383 cat > conftest.$ac_ext <<EOF
6384 #line 6385 "configure"
6385 #include "confdefs.h"
6386 #include <sys/types.h>
6392 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6393 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6395 ac_cv_type_pid_t=yes
6403 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
6404 if test $ac_cv_type_pid_t = no; then
6405 cat >> confdefs.h <<\EOF
6411 echo $ac_n "checking for off_t""... $ac_c" 1>&6
6412 echo "configure:6413: checking for off_t" >&5
6413 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
6414 echo $ac_n "(cached) $ac_c" 1>&6
6416 cat > conftest.$ac_ext <<EOF
6417 #line 6418 "configure"
6418 #include "confdefs.h"
6419 #include <sys/types.h>
6425 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6426 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6428 ac_cv_type_off_t=yes
6436 echo "$ac_t""$ac_cv_type_off_t" 1>&6
6437 if test $ac_cv_type_off_t = no; then
6438 cat >> confdefs.h <<\EOF
6444 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
6445 echo "configure:6446: checking for ino_t" >&5
6446 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
6447 echo $ac_n "(cached) $ac_c" 1>&6
6449 cat > conftest.$ac_ext <<EOF
6450 #line 6451 "configure"
6451 #include "confdefs.h"
6452 #include <sys/types.h>
6458 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6459 egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6461 ac_cv_type_ino_t=yes
6469 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
6470 if test $ac_cv_type_ino_t = no; then
6471 cat >> confdefs.h <<\EOF
6472 #define ino_t unsigned long
6477 echo $ac_n "checking for dev_t""... $ac_c" 1>&6
6478 echo "configure:6479: checking for dev_t" >&5
6479 if eval "test \"`echo '$''{'ac_cv_type_dev_t'+set}'`\" = set"; then
6480 echo $ac_n "(cached) $ac_c" 1>&6
6482 cat > conftest.$ac_ext <<EOF
6483 #line 6484 "configure"
6484 #include "confdefs.h"
6485 #include <sys/types.h>
6491 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6492 egrep "(^|[^a-zA-Z_0-9])dev_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6494 ac_cv_type_dev_t=yes
6502 echo "$ac_t""$ac_cv_type_dev_t" 1>&6
6503 if test $ac_cv_type_dev_t = no; then
6504 cat >> confdefs.h <<\EOF
6505 #define dev_t unsigned long
6510 echo $ac_n "checking for daddr_t""... $ac_c" 1>&6
6511 echo "configure:6512: checking for daddr_t" >&5
6512 if eval "test \"`echo '$''{'ac_cv_type_daddr_t'+set}'`\" = set"; then
6513 echo $ac_n "(cached) $ac_c" 1>&6
6515 cat > conftest.$ac_ext <<EOF
6516 #line 6517 "configure"
6517 #include "confdefs.h"
6518 #include <sys/types.h>
6524 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6525 egrep "(^|[^a-zA-Z_0-9])daddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6527 ac_cv_type_daddr_t=yes
6530 ac_cv_type_daddr_t=no
6535 echo "$ac_t""$ac_cv_type_daddr_t" 1>&6
6536 if test $ac_cv_type_daddr_t = no; then
6537 cat >> confdefs.h <<\EOF
6538 #define daddr_t long
6543 echo $ac_n "checking for major_t""... $ac_c" 1>&6
6544 echo "configure:6545: checking for major_t" >&5
6545 if eval "test \"`echo '$''{'ac_cv_type_major_t'+set}'`\" = set"; then
6546 echo $ac_n "(cached) $ac_c" 1>&6
6548 cat > conftest.$ac_ext <<EOF
6549 #line 6550 "configure"
6550 #include "confdefs.h"
6551 #include <sys/types.h>
6557 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6558 egrep "(^|[^a-zA-Z_0-9])major_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6560 ac_cv_type_major_t=yes
6563 ac_cv_type_major_t=no
6568 echo "$ac_t""$ac_cv_type_major_t" 1>&6
6569 if test $ac_cv_type_major_t = no; then
6570 cat >> confdefs.h <<\EOF
6576 echo $ac_n "checking for minor_t""... $ac_c" 1>&6
6577 echo "configure:6578: checking for minor_t" >&5
6578 if eval "test \"`echo '$''{'ac_cv_type_minor_t'+set}'`\" = set"; then
6579 echo $ac_n "(cached) $ac_c" 1>&6
6581 cat > conftest.$ac_ext <<EOF
6582 #line 6583 "configure"
6583 #include "confdefs.h"
6584 #include <sys/types.h>
6590 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6591 egrep "(^|[^a-zA-Z_0-9])minor_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6593 ac_cv_type_minor_t=yes
6596 ac_cv_type_minor_t=no
6601 echo "$ac_t""$ac_cv_type_minor_t" 1>&6
6602 if test $ac_cv_type_minor_t = no; then
6603 cat >> confdefs.h <<\EOF
6609 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
6610 echo "configure:6611: checking for ssize_t" >&5
6611 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
6612 echo $ac_n "(cached) $ac_c" 1>&6
6614 cat > conftest.$ac_ext <<EOF
6615 #line 6616 "configure"
6616 #include "confdefs.h"
6617 #include <sys/types.h>
6623 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6624 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6626 ac_cv_type_ssize_t=yes
6629 ac_cv_type_ssize_t=no
6634 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
6635 if test $ac_cv_type_ssize_t = no; then
6636 cat >> confdefs.h <<\EOF
6642 echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
6643 echo "configure:6644: checking for st_blocks in struct stat" >&5
6644 if eval "test \"`echo '$''{'ac_cv_struct_st_blocks'+set}'`\" = set"; then
6645 echo $ac_n "(cached) $ac_c" 1>&6
6647 cat > conftest.$ac_ext <<EOF
6648 #line 6649 "configure"
6649 #include "confdefs.h"
6650 #include <sys/types.h>
6651 #include <sys/stat.h>
6653 struct stat s; s.st_blocks;
6656 if { (eval echo configure:6657: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6658 ac_cv_struct_st_blocks=yes
6660 echo "configure: failed program was:" >&5
6661 cat conftest.$ac_ext >&5
6663 ac_cv_struct_st_blocks=no
6668 echo "$ac_t""$ac_cv_struct_st_blocks" 1>&6
6669 if test $ac_cv_struct_st_blocks = yes; then
6670 cat >> confdefs.h <<\EOF
6671 #define HAVE_ST_BLOCKS 1
6675 LIBOBJS="$LIBOBJS fileblocks.${ac_objext}"
6678 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
6679 echo "configure:6680: checking for st_rdev in struct stat" >&5
6680 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
6681 echo $ac_n "(cached) $ac_c" 1>&6
6683 cat > conftest.$ac_ext <<EOF
6684 #line 6685 "configure"
6685 #include "confdefs.h"
6686 #include <sys/types.h>
6687 #include <sys/stat.h>
6689 struct stat s; s.st_rdev;
6692 if { (eval echo configure:6693: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6694 ac_cv_struct_st_rdev=yes
6696 echo "configure: failed program was:" >&5
6697 cat conftest.$ac_ext >&5
6699 ac_cv_struct_st_rdev=no
6704 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
6705 if test $ac_cv_struct_st_rdev = yes; then
6706 cat >> confdefs.h <<\EOF
6707 #define HAVE_ST_RDEV 1
6712 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
6713 echo "configure:6714: checking whether struct tm is in sys/time.h or time.h" >&5
6714 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
6715 echo $ac_n "(cached) $ac_c" 1>&6
6717 cat > conftest.$ac_ext <<EOF
6718 #line 6719 "configure"
6719 #include "confdefs.h"
6720 #include <sys/types.h>
6723 struct tm *tp; tp->tm_sec;
6726 if { (eval echo configure:6727: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6728 ac_cv_struct_tm=time.h
6730 echo "configure: failed program was:" >&5
6731 cat conftest.$ac_ext >&5
6733 ac_cv_struct_tm=sys/time.h
6738 echo "$ac_t""$ac_cv_struct_tm" 1>&6
6739 if test $ac_cv_struct_tm = sys/time.h; then
6740 cat >> confdefs.h <<\EOF
6741 #define TM_IN_SYS_TIME 1
6746 echo $ac_n "checking for working const""... $ac_c" 1>&6
6747 echo "configure:6748: checking for working const" >&5
6748 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
6749 echo $ac_n "(cached) $ac_c" 1>&6
6751 cat > conftest.$ac_ext <<EOF
6752 #line 6753 "configure"
6753 #include "confdefs.h"
6757 /* Ultrix mips cc rejects this. */
6758 typedef int charset[2]; const charset x;
6759 /* SunOS 4.1.1 cc rejects this. */
6760 char const *const *ccp;
6762 /* NEC SVR4.0.2 mips cc rejects this. */
6763 struct point {int x, y;};
6764 static struct point const zero = {0,0};
6765 /* AIX XL C 1.02.0.0 rejects this.
6766 It does not let you subtract one const X* pointer from another in an arm
6767 of an if-expression whose if-part is not a constant expression */
6768 const char *g = "string";
6769 ccp = &g + (g ? g-g : 0);
6770 /* HPUX 7.0 cc rejects these. */
6773 ccp = (char const *const *) p;
6774 { /* SCO 3.2v4 cc rejects this. */
6776 char const *s = 0 ? (char *) 0 : (char const *) 0;
6780 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6782 const int *foo = &x[0];
6785 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6786 typedef const int *iptr;
6790 { /* AIX XL C 1.02.0.0 rejects this saying
6791 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6792 struct s { int j; const int *ap[3]; };
6793 struct s *b; b->j = 5;
6795 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6801 if { (eval echo configure:6802: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6805 echo "configure: failed program was:" >&5
6806 cat conftest.$ac_ext >&5
6813 echo "$ac_t""$ac_cv_c_const" 1>&6
6814 if test $ac_cv_c_const = no; then
6815 cat >> confdefs.h <<\EOF
6823 echo $ac_n "checking size of char""... $ac_c" 1>&6
6824 echo "configure:6825: checking size of char" >&5
6825 if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
6826 echo $ac_n "(cached) $ac_c" 1>&6
6828 if test "$cross_compiling" = yes; then
6831 cat > conftest.$ac_ext <<EOF
6832 #line 6833 "configure"
6833 #include "confdefs.h"
6837 FILE *f=fopen("conftestval", "w");
6839 fprintf(f, "%d\n", sizeof(char));
6843 if { (eval echo configure:6844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6845 ac_cv_sizeof_char=`cat conftestval`
6847 echo "configure: failed program was:" >&5
6848 cat conftest.$ac_ext >&5
6856 echo "$ac_t""$ac_cv_sizeof_char" 1>&6
6857 cat >> confdefs.h <<EOF
6858 #define SIZEOF_CHAR $ac_cv_sizeof_char
6862 echo $ac_n "checking size of short int""... $ac_c" 1>&6
6863 echo "configure:6864: checking size of short int" >&5
6864 if eval "test \"`echo '$''{'ac_cv_sizeof_short_int'+set}'`\" = set"; then
6865 echo $ac_n "(cached) $ac_c" 1>&6
6867 if test "$cross_compiling" = yes; then
6868 ac_cv_sizeof_short_int=2
6870 cat > conftest.$ac_ext <<EOF
6871 #line 6872 "configure"
6872 #include "confdefs.h"
6876 FILE *f=fopen("conftestval", "w");
6878 fprintf(f, "%d\n", sizeof(short int));
6882 if { (eval echo configure:6883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6884 ac_cv_sizeof_short_int=`cat conftestval`
6886 echo "configure: failed program was:" >&5
6887 cat conftest.$ac_ext >&5
6889 ac_cv_sizeof_short_int=0
6895 echo "$ac_t""$ac_cv_sizeof_short_int" 1>&6
6896 cat >> confdefs.h <<EOF
6897 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
6901 echo $ac_n "checking size of int""... $ac_c" 1>&6
6902 echo "configure:6903: checking size of int" >&5
6903 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
6904 echo $ac_n "(cached) $ac_c" 1>&6
6906 if test "$cross_compiling" = yes; then
6909 cat > conftest.$ac_ext <<EOF
6910 #line 6911 "configure"
6911 #include "confdefs.h"
6915 FILE *f=fopen("conftestval", "w");
6917 fprintf(f, "%d\n", sizeof(int));
6921 if { (eval echo configure:6922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6923 ac_cv_sizeof_int=`cat conftestval`
6925 echo "configure: failed program was:" >&5
6926 cat conftest.$ac_ext >&5
6934 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
6935 cat >> confdefs.h <<EOF
6936 #define SIZEOF_INT $ac_cv_sizeof_int
6940 echo $ac_n "checking size of long int""... $ac_c" 1>&6
6941 echo "configure:6942: checking size of long int" >&5
6942 if eval "test \"`echo '$''{'ac_cv_sizeof_long_int'+set}'`\" = set"; then
6943 echo $ac_n "(cached) $ac_c" 1>&6
6945 if test "$cross_compiling" = yes; then
6946 ac_cv_sizeof_long_int=4
6948 cat > conftest.$ac_ext <<EOF
6949 #line 6950 "configure"
6950 #include "confdefs.h"
6954 FILE *f=fopen("conftestval", "w");
6956 fprintf(f, "%d\n", sizeof(long int));
6960 if { (eval echo configure:6961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6962 ac_cv_sizeof_long_int=`cat conftestval`
6964 echo "configure: failed program was:" >&5
6965 cat conftest.$ac_ext >&5
6967 ac_cv_sizeof_long_int=0
6973 echo "$ac_t""$ac_cv_sizeof_long_int" 1>&6
6974 cat >> confdefs.h <<EOF
6975 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
6979 echo $ac_n "checking size of long long int""... $ac_c" 1>&6
6980 echo "configure:6981: checking size of long long int" >&5
6981 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long_int'+set}'`\" = set"; then
6982 echo $ac_n "(cached) $ac_c" 1>&6
6984 if test "$cross_compiling" = yes; then
6985 ac_cv_sizeof_long_long_int=8
6987 cat > conftest.$ac_ext <<EOF
6988 #line 6989 "configure"
6989 #include "confdefs.h"
6993 FILE *f=fopen("conftestval", "w");
6995 fprintf(f, "%d\n", sizeof(long long int));
6999 if { (eval echo configure:7000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7001 ac_cv_sizeof_long_long_int=`cat conftestval`
7003 echo "configure: failed program was:" >&5
7004 cat conftest.$ac_ext >&5
7006 ac_cv_sizeof_long_long_int=0
7012 echo "$ac_t""$ac_cv_sizeof_long_long_int" 1>&6
7013 cat >> confdefs.h <<EOF
7014 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
7018 echo $ac_n "checking size of int *""... $ac_c" 1>&6
7019 echo "configure:7020: checking size of int *" >&5
7020 if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
7021 echo $ac_n "(cached) $ac_c" 1>&6
7023 if test "$cross_compiling" = yes; then
7024 ac_cv_sizeof_int_p=4
7026 cat > conftest.$ac_ext <<EOF
7027 #line 7028 "configure"
7028 #include "confdefs.h"
7032 FILE *f=fopen("conftestval", "w");
7034 fprintf(f, "%d\n", sizeof(int *));
7038 if { (eval echo configure:7039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7040 ac_cv_sizeof_int_p=`cat conftestval`
7042 echo "configure: failed program was:" >&5
7043 cat conftest.$ac_ext >&5
7045 ac_cv_sizeof_int_p=0
7051 echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
7052 cat >> confdefs.h <<EOF
7053 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
7058 # Check for sys/types.h types
7059 echo $ac_n "checking for u_int type""... $ac_c" 1>&6
7060 echo "configure:7061: checking for u_int type" >&5
7061 if eval "test \"`echo '$''{'ac_cv_have_u_int'+set}'`\" = set"; then
7062 echo $ac_n "(cached) $ac_c" 1>&6
7065 cat > conftest.$ac_ext <<EOF
7066 #line 7067 "configure"
7067 #include "confdefs.h"
7068 #include <sys/types.h>
7073 if { (eval echo configure:7074: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7075 ac_cv_have_u_int="yes"
7077 echo "configure: failed program was:" >&5
7078 cat conftest.$ac_ext >&5
7080 ac_cv_have_u_int="no"
7087 echo "$ac_t""$ac_cv_have_u_int" 1>&6
7088 if test "x$ac_cv_have_u_int" = "xyes" ; then
7089 cat >> confdefs.h <<\EOF
7090 #define HAVE_U_INT 1
7096 echo $ac_n "checking for intmax_t type""... $ac_c" 1>&6
7097 echo "configure:7098: checking for intmax_t type" >&5
7098 if eval "test \"`echo '$''{'ac_cv_have_intmax_t'+set}'`\" = set"; then
7099 echo $ac_n "(cached) $ac_c" 1>&6
7102 cat > conftest.$ac_ext <<EOF
7103 #line 7104 "configure"
7104 #include "confdefs.h"
7105 #include <sys/types.h>
7110 if { (eval echo configure:7111: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7112 ac_cv_have_intmax_t="yes"
7114 echo "configure: failed program was:" >&5
7115 cat conftest.$ac_ext >&5
7118 cat > conftest.$ac_ext <<EOF
7119 #line 7120 "configure"
7120 #include "confdefs.h"
7126 if { (eval echo configure:7127: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7128 ac_cv_have_intmax_t="yes"
7130 echo "configure: failed program was:" >&5
7131 cat conftest.$ac_ext >&5
7133 ac_cv_have_intmax_t="no"
7145 echo "$ac_t""$ac_cv_have_intmax_t" 1>&6
7146 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
7147 cat >> confdefs.h <<\EOF
7148 #define HAVE_INTMAX_T 1
7155 echo $ac_n "checking for u_intmax_t type""... $ac_c" 1>&6
7156 echo "configure:7157: checking for u_intmax_t type" >&5
7157 if eval "test \"`echo '$''{'ac_cv_have_u_intmax_t'+set}'`\" = set"; then
7158 echo $ac_n "(cached) $ac_c" 1>&6
7161 cat > conftest.$ac_ext <<EOF
7162 #line 7163 "configure"
7163 #include "confdefs.h"
7164 #include <sys/types.h>
7166 u_intmax_t a; a = 1;
7169 if { (eval echo configure:7170: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7171 ac_cv_have_u_intmax_t="yes"
7173 echo "configure: failed program was:" >&5
7174 cat conftest.$ac_ext >&5
7177 cat > conftest.$ac_ext <<EOF
7178 #line 7179 "configure"
7179 #include "confdefs.h"
7182 u_intmax_t a; a = 1;
7185 if { (eval echo configure:7186: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7187 ac_cv_have_u_intmax_t="yes"
7189 echo "configure: failed program was:" >&5
7190 cat conftest.$ac_ext >&5
7192 ac_cv_have_u_intmax_t="no"
7203 echo "$ac_t""$ac_cv_have_u_intmax_t" 1>&6
7204 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
7205 cat >> confdefs.h <<\EOF
7206 #define HAVE_U_INTMAX_T 1
7213 echo $ac_n "checking for intXX_t types""... $ac_c" 1>&6
7214 echo "configure:7215: checking for intXX_t types" >&5
7215 if eval "test \"`echo '$''{'ac_cv_have_intxx_t'+set}'`\" = set"; then
7216 echo $ac_n "(cached) $ac_c" 1>&6
7219 cat > conftest.$ac_ext <<EOF
7220 #line 7221 "configure"
7221 #include "confdefs.h"
7222 #include <sys/types.h>
7224 int8_t a; int16_t b; int32_t c; a = b = c = 1;
7227 if { (eval echo configure:7228: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7229 ac_cv_have_intxx_t="yes"
7231 echo "configure: failed program was:" >&5
7232 cat conftest.$ac_ext >&5
7234 ac_cv_have_intxx_t="no"
7241 echo "$ac_t""$ac_cv_have_intxx_t" 1>&6
7242 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
7243 cat >> confdefs.h <<\EOF
7244 #define HAVE_INTXX_T 1
7250 echo $ac_n "checking for int64_t type""... $ac_c" 1>&6
7251 echo "configure:7252: checking for int64_t type" >&5
7252 if eval "test \"`echo '$''{'ac_cv_have_int64_t'+set}'`\" = set"; then
7253 echo $ac_n "(cached) $ac_c" 1>&6
7256 cat > conftest.$ac_ext <<EOF
7257 #line 7258 "configure"
7258 #include "confdefs.h"
7259 #include <sys/types.h>
7264 if { (eval echo configure:7265: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7266 ac_cv_have_int64_t="yes"
7268 echo "configure: failed program was:" >&5
7269 cat conftest.$ac_ext >&5
7271 ac_cv_have_int64_t="no"
7278 echo "$ac_t""$ac_cv_have_int64_t" 1>&6
7279 if test "x$ac_cv_have_int64_t" = "xyes" ; then
7280 cat >> confdefs.h <<\EOF
7281 #define HAVE_INT64_T 1
7287 echo $ac_n "checking for u_intXX_t types""... $ac_c" 1>&6
7288 echo "configure:7289: checking for u_intXX_t types" >&5
7289 if eval "test \"`echo '$''{'ac_cv_have_u_intxx_t'+set}'`\" = set"; then
7290 echo $ac_n "(cached) $ac_c" 1>&6
7293 cat > conftest.$ac_ext <<EOF
7294 #line 7295 "configure"
7295 #include "confdefs.h"
7296 #include <sys/types.h>
7298 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
7301 if { (eval echo configure:7302: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7303 ac_cv_have_u_intxx_t="yes"
7305 echo "configure: failed program was:" >&5
7306 cat conftest.$ac_ext >&5
7308 ac_cv_have_u_intxx_t="no"
7315 echo "$ac_t""$ac_cv_have_u_intxx_t" 1>&6
7316 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
7317 cat >> confdefs.h <<\EOF
7318 #define HAVE_U_INTXX_T 1
7324 echo $ac_n "checking for u_int64_t types""... $ac_c" 1>&6
7325 echo "configure:7326: checking for u_int64_t types" >&5
7326 if eval "test \"`echo '$''{'ac_cv_have_u_int64_t'+set}'`\" = set"; then
7327 echo $ac_n "(cached) $ac_c" 1>&6
7330 cat > conftest.$ac_ext <<EOF
7331 #line 7332 "configure"
7332 #include "confdefs.h"
7333 #include <sys/types.h>
7338 if { (eval echo configure:7339: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7340 ac_cv_have_u_int64_t="yes"
7342 echo "configure: failed program was:" >&5
7343 cat conftest.$ac_ext >&5
7345 ac_cv_have_u_int64_t="no"
7352 echo "$ac_t""$ac_cv_have_u_int64_t" 1>&6
7353 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
7354 cat >> confdefs.h <<\EOF
7355 #define HAVE_U_INT64_T 1
7361 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
7362 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
7364 echo $ac_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h""... $ac_c" 1>&6
7365 echo "configure:7366: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
7366 cat > conftest.$ac_ext <<EOF
7367 #line 7368 "configure"
7368 #include "confdefs.h"
7369 #include <sys/bitypes.h>
7371 int8_t a; int16_t b; int32_t c;
7372 u_int8_t e; u_int16_t f; u_int32_t g;
7373 a = b = c = e = f = g = 1;
7376 if { (eval echo configure:7377: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7378 cat >> confdefs.h <<\EOF
7379 #define HAVE_U_INTXX_T 1
7382 cat >> confdefs.h <<\EOF
7383 #define HAVE_INTXX_T 1
7386 cat >> confdefs.h <<\EOF
7387 #define HAVE_SYS_BITYPES_H 1
7390 echo "$ac_t""yes" 1>&6
7392 echo "configure: failed program was:" >&5
7393 cat conftest.$ac_ext >&5
7395 echo "$ac_t""no" 1>&6
7401 if test -z "$have_u_intxx_t" ; then
7402 echo $ac_n "checking for uintXX_t types""... $ac_c" 1>&6
7403 echo "configure:7404: checking for uintXX_t types" >&5
7404 if eval "test \"`echo '$''{'ac_cv_have_uintxx_t'+set}'`\" = set"; then
7405 echo $ac_n "(cached) $ac_c" 1>&6
7408 cat > conftest.$ac_ext <<EOF
7409 #line 7410 "configure"
7410 #include "confdefs.h"
7411 #include <sys/types.h>
7413 uint8_t a; uint16_t b;
7414 uint32_t c; a = b = c = 1;
7417 if { (eval echo configure:7418: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7419 ac_cv_have_uintxx_t="yes"
7421 echo "configure: failed program was:" >&5
7422 cat conftest.$ac_ext >&5
7424 ac_cv_have_uintxx_t="no"
7431 echo "$ac_t""$ac_cv_have_uintxx_t" 1>&6
7432 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
7433 cat >> confdefs.h <<\EOF
7434 #define HAVE_UINTXX_T 1
7457 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7458 echo "configure:7459: checking for $ac_func" >&5
7459 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7460 echo $ac_n "(cached) $ac_c" 1>&6
7462 cat > conftest.$ac_ext <<EOF
7463 #line 7464 "configure"
7464 #include "confdefs.h"
7465 /* System header to define __stub macros and hopefully few prototypes,
7466 which can conflict with char $ac_func(); below. */
7468 /* Override any gcc2 internal prototype to avoid an error. */
7469 /* We use char because int might match the return type of a gcc2
7470 builtin and then its argument prototype would still apply. */
7475 /* The GNU C library defines this for functions which it implements
7476 to always fail with ENOSYS. Some functions are actually named
7477 something starting with __ and the normal name is an alias. */
7478 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7486 if { (eval echo configure:7487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7488 eval "ac_cv_func_$ac_func=yes"
7490 echo "configure: failed program was:" >&5
7491 cat conftest.$ac_ext >&5
7493 eval "ac_cv_func_$ac_func=no"
7498 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7499 echo "$ac_t""yes" 1>&6
7500 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7501 cat >> confdefs.h <<EOF
7502 #define $ac_tr_func 1
7506 echo "$ac_t""no" 1>&6
7507 echo 'configure: cannot find needed function.'; exit 1
7513 for ac_func in fchdir
7515 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7516 echo "configure:7517: checking for $ac_func" >&5
7517 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7518 echo $ac_n "(cached) $ac_c" 1>&6
7520 cat > conftest.$ac_ext <<EOF
7521 #line 7522 "configure"
7522 #include "confdefs.h"
7523 /* System header to define __stub macros and hopefully few prototypes,
7524 which can conflict with char $ac_func(); below. */
7526 /* Override any gcc2 internal prototype to avoid an error. */
7527 /* We use char because int might match the return type of a gcc2
7528 builtin and then its argument prototype would still apply. */
7533 /* The GNU C library defines this for functions which it implements
7534 to always fail with ENOSYS. Some functions are actually named
7535 something starting with __ and the normal name is an alias. */
7536 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7544 if { (eval echo configure:7545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7546 eval "ac_cv_func_$ac_func=yes"
7548 echo "configure: failed program was:" >&5
7549 cat conftest.$ac_ext >&5
7551 eval "ac_cv_func_$ac_func=no"
7556 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7557 echo "$ac_t""yes" 1>&6
7558 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7559 cat >> confdefs.h <<EOF
7560 #define $ac_tr_func 1
7562 cat >> confdefs.h <<\EOF
7563 #define HAVE_FCHDIR 1
7567 echo "$ac_t""no" 1>&6
7572 for ac_func in snprintf vsnprintf gethostid getdomainname
7574 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7575 echo "configure:7576: checking for $ac_func" >&5
7576 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7577 echo $ac_n "(cached) $ac_c" 1>&6
7579 cat > conftest.$ac_ext <<EOF
7580 #line 7581 "configure"
7581 #include "confdefs.h"
7582 /* System header to define __stub macros and hopefully few prototypes,
7583 which can conflict with char $ac_func(); below. */
7585 /* Override any gcc2 internal prototype to avoid an error. */
7586 /* We use char because int might match the return type of a gcc2
7587 builtin and then its argument prototype would still apply. */
7592 /* The GNU C library defines this for functions which it implements
7593 to always fail with ENOSYS. Some functions are actually named
7594 something starting with __ and the normal name is an alias. */
7595 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7603 if { (eval echo configure:7604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7605 eval "ac_cv_func_$ac_func=yes"
7607 echo "configure: failed program was:" >&5
7608 cat conftest.$ac_ext >&5
7610 eval "ac_cv_func_$ac_func=no"
7615 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7616 echo "$ac_t""yes" 1>&6
7617 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7618 cat >> confdefs.h <<EOF
7619 #define $ac_tr_func 1
7623 echo "$ac_t""no" 1>&6
7628 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
7630 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7631 echo "configure:7632: checking for $ac_func" >&5
7632 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7633 echo $ac_n "(cached) $ac_c" 1>&6
7635 cat > conftest.$ac_ext <<EOF
7636 #line 7637 "configure"
7637 #include "confdefs.h"
7638 /* System header to define __stub macros and hopefully few prototypes,
7639 which can conflict with char $ac_func(); below. */
7641 /* Override any gcc2 internal prototype to avoid an error. */
7642 /* We use char because int might match the return type of a gcc2
7643 builtin and then its argument prototype would still apply. */
7648 /* The GNU C library defines this for functions which it implements
7649 to always fail with ENOSYS. Some functions are actually named
7650 something starting with __ and the normal name is an alias. */
7651 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7659 if { (eval echo configure:7660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7661 eval "ac_cv_func_$ac_func=yes"
7663 echo "configure: failed program was:" >&5
7664 cat conftest.$ac_ext >&5
7666 eval "ac_cv_func_$ac_func=no"
7671 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7672 echo "$ac_t""yes" 1>&6
7673 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7674 cat >> confdefs.h <<EOF
7675 #define $ac_tr_func 1
7679 echo "$ac_t""no" 1>&6
7684 # If resolver functions are not in libc check for -lnsl or -lresolv.
7685 echo $ac_n "checking for gethostbyname_r""... $ac_c" 1>&6
7686 echo "configure:7687: checking for gethostbyname_r" >&5
7687 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname_r'+set}'`\" = set"; then
7688 echo $ac_n "(cached) $ac_c" 1>&6
7690 cat > conftest.$ac_ext <<EOF
7691 #line 7692 "configure"
7692 #include "confdefs.h"
7693 /* System header to define __stub macros and hopefully few prototypes,
7694 which can conflict with char gethostbyname_r(); below. */
7696 /* Override any gcc2 internal prototype to avoid an error. */
7697 /* We use char because int might match the return type of a gcc2
7698 builtin and then its argument prototype would still apply. */
7699 char gethostbyname_r();
7703 /* The GNU C library defines this for functions which it implements
7704 to always fail with ENOSYS. Some functions are actually named
7705 something starting with __ and the normal name is an alias. */
7706 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
7714 if { (eval echo configure:7715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7716 eval "ac_cv_func_gethostbyname_r=yes"
7718 echo "configure: failed program was:" >&5
7719 cat conftest.$ac_ext >&5
7721 eval "ac_cv_func_gethostbyname_r=no"
7726 if eval "test \"`echo '$ac_cv_func_'gethostbyname_r`\" = yes"; then
7727 echo "$ac_t""yes" 1>&6
7728 echo "$ac_t""using libc's resolver" 1>&6
7730 echo "$ac_t""no" 1>&6
7731 echo $ac_n "checking for gethostbyname_r in -lnsl""... $ac_c" 1>&6
7732 echo "configure:7733: checking for gethostbyname_r in -lnsl" >&5
7733 ac_lib_var=`echo nsl'_'gethostbyname_r | sed 'y%./+-%__p_%'`
7734 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7735 echo $ac_n "(cached) $ac_c" 1>&6
7737 ac_save_LIBS="$LIBS"
7739 cat > conftest.$ac_ext <<EOF
7740 #line 7741 "configure"
7741 #include "confdefs.h"
7742 /* Override any gcc2 internal prototype to avoid an error. */
7743 /* We use char because int might match the return type of a gcc2
7744 builtin and then its argument prototype would still apply. */
7745 char gethostbyname_r();
7751 if { (eval echo configure:7752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7753 eval "ac_cv_lib_$ac_lib_var=yes"
7755 echo "configure: failed program was:" >&5
7756 cat conftest.$ac_ext >&5
7758 eval "ac_cv_lib_$ac_lib_var=no"
7761 LIBS="$ac_save_LIBS"
7764 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7765 echo "$ac_t""yes" 1>&6
7766 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/^a-zA-Z0-9_/_/g' \
7767 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7768 cat >> confdefs.h <<EOF
7769 #define $ac_tr_lib 1
7775 echo "$ac_t""no" 1>&6
7778 echo $ac_n "checking for gethostbyname_r in -lresolv""... $ac_c" 1>&6
7779 echo "configure:7780: checking for gethostbyname_r in -lresolv" >&5
7780 ac_lib_var=`echo resolv'_'gethostbyname_r | sed 'y%./+-%__p_%'`
7781 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7782 echo $ac_n "(cached) $ac_c" 1>&6
7784 ac_save_LIBS="$LIBS"
7785 LIBS="-lresolv $LIBS"
7786 cat > conftest.$ac_ext <<EOF
7787 #line 7788 "configure"
7788 #include "confdefs.h"
7789 /* Override any gcc2 internal prototype to avoid an error. */
7790 /* We use char because int might match the return type of a gcc2
7791 builtin and then its argument prototype would still apply. */
7792 char gethostbyname_r();
7798 if { (eval echo configure:7799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7800 eval "ac_cv_lib_$ac_lib_var=yes"
7802 echo "configure: failed program was:" >&5
7803 cat conftest.$ac_ext >&5
7805 eval "ac_cv_lib_$ac_lib_var=no"
7808 LIBS="$ac_save_LIBS"
7811 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7812 echo "$ac_t""yes" 1>&6
7813 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/^a-zA-Z0-9_/_/g' \
7814 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7815 cat >> confdefs.h <<EOF
7816 #define $ac_tr_lib 1
7819 LIBS="-lresolv $LIBS"
7822 echo "$ac_t""no" 1>&6
7829 # Find where sockets are (especially for Solaris)
7830 echo $ac_n "checking for socket""... $ac_c" 1>&6
7831 echo "configure:7832: checking for socket" >&5
7832 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
7833 echo $ac_n "(cached) $ac_c" 1>&6
7835 cat > conftest.$ac_ext <<EOF
7836 #line 7837 "configure"
7837 #include "confdefs.h"
7838 /* System header to define __stub macros and hopefully few prototypes,
7839 which can conflict with char socket(); below. */
7841 /* Override any gcc2 internal prototype to avoid an error. */
7842 /* We use char because int might match the return type of a gcc2
7843 builtin and then its argument prototype would still apply. */
7848 /* The GNU C library defines this for functions which it implements
7849 to always fail with ENOSYS. Some functions are actually named
7850 something starting with __ and the normal name is an alias. */
7851 #if defined (__stub_socket) || defined (__stub___socket)
7859 if { (eval echo configure:7860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7861 eval "ac_cv_func_socket=yes"
7863 echo "configure: failed program was:" >&5
7864 cat conftest.$ac_ext >&5
7866 eval "ac_cv_func_socket=no"
7871 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
7872 echo "$ac_t""yes" 1>&6
7873 echo "$ac_t""using libc's socket" 1>&6
7875 echo "$ac_t""no" 1>&6
7876 echo $ac_n "checking for socket in -lxnet""... $ac_c" 1>&6
7877 echo "configure:7878: checking for socket in -lxnet" >&5
7878 ac_lib_var=`echo xnet'_'socket | sed 'y%./+-%__p_%'`
7879 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7880 echo $ac_n "(cached) $ac_c" 1>&6
7882 ac_save_LIBS="$LIBS"
7884 cat > conftest.$ac_ext <<EOF
7885 #line 7886 "configure"
7886 #include "confdefs.h"
7887 /* Override any gcc2 internal prototype to avoid an error. */
7888 /* We use char because int might match the return type of a gcc2
7889 builtin and then its argument prototype would still apply. */
7896 if { (eval echo configure:7897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7898 eval "ac_cv_lib_$ac_lib_var=yes"
7900 echo "configure: failed program was:" >&5
7901 cat conftest.$ac_ext >&5
7903 eval "ac_cv_lib_$ac_lib_var=no"
7906 LIBS="$ac_save_LIBS"
7909 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7910 echo "$ac_t""yes" 1>&6
7911 ac_tr_lib=HAVE_LIB`echo xnet | sed -e 's/^a-zA-Z0-9_/_/g' \
7912 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7913 cat >> confdefs.h <<EOF
7914 #define $ac_tr_lib 1
7920 echo "$ac_t""no" 1>&6
7923 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
7924 echo "configure:7925: checking for socket in -lsocket" >&5
7925 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
7926 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7927 echo $ac_n "(cached) $ac_c" 1>&6
7929 ac_save_LIBS="$LIBS"
7930 LIBS="-lsocket $LIBS"
7931 cat > conftest.$ac_ext <<EOF
7932 #line 7933 "configure"
7933 #include "confdefs.h"
7934 /* Override any gcc2 internal prototype to avoid an error. */
7935 /* We use char because int might match the return type of a gcc2
7936 builtin and then its argument prototype would still apply. */
7943 if { (eval echo configure:7944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7945 eval "ac_cv_lib_$ac_lib_var=yes"
7947 echo "configure: failed program was:" >&5
7948 cat conftest.$ac_ext >&5
7950 eval "ac_cv_lib_$ac_lib_var=no"
7953 LIBS="$ac_save_LIBS"
7956 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7957 echo "$ac_t""yes" 1>&6
7958 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
7959 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7960 cat >> confdefs.h <<EOF
7961 #define $ac_tr_lib 1
7964 LIBS="-lsocket $LIBS"
7967 echo "$ac_t""no" 1>&6
7970 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
7971 echo "configure:7972: checking for socket in -linet" >&5
7972 ac_lib_var=`echo inet'_'socket | sed 'y%./+-%__p_%'`
7973 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7974 echo $ac_n "(cached) $ac_c" 1>&6
7976 ac_save_LIBS="$LIBS"
7978 cat > conftest.$ac_ext <<EOF
7979 #line 7980 "configure"
7980 #include "confdefs.h"
7981 /* Override any gcc2 internal prototype to avoid an error. */
7982 /* We use char because int might match the return type of a gcc2
7983 builtin and then its argument prototype would still apply. */
7990 if { (eval echo configure:7991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7992 eval "ac_cv_lib_$ac_lib_var=yes"
7994 echo "configure: failed program was:" >&5
7995 cat conftest.$ac_ext >&5
7997 eval "ac_cv_lib_$ac_lib_var=no"
8000 LIBS="$ac_save_LIBS"
8003 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8004 echo "$ac_t""yes" 1>&6
8005 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/^a-zA-Z0-9_/_/g' \
8006 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8007 cat >> confdefs.h <<EOF
8008 #define $ac_tr_lib 1
8014 echo "$ac_t""no" 1>&6
8020 for ac_func in inet_pton
8022 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8023 echo "configure:8024: checking for $ac_func" >&5
8024 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8025 echo $ac_n "(cached) $ac_c" 1>&6
8027 cat > conftest.$ac_ext <<EOF
8028 #line 8029 "configure"
8029 #include "confdefs.h"
8030 /* System header to define __stub macros and hopefully few prototypes,
8031 which can conflict with char $ac_func(); below. */
8033 /* Override any gcc2 internal prototype to avoid an error. */
8034 /* We use char because int might match the return type of a gcc2
8035 builtin and then its argument prototype would still apply. */
8040 /* The GNU C library defines this for functions which it implements
8041 to always fail with ENOSYS. Some functions are actually named
8042 something starting with __ and the normal name is an alias. */
8043 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8051 if { (eval echo configure:8052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8053 eval "ac_cv_func_$ac_func=yes"
8055 echo "configure: failed program was:" >&5
8056 cat conftest.$ac_ext >&5
8058 eval "ac_cv_func_$ac_func=no"
8063 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8064 echo "$ac_t""yes" 1>&6
8065 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8066 cat >> confdefs.h <<EOF
8067 #define $ac_tr_func 1
8069 cat >> confdefs.h <<\EOF
8070 #define HAVE_INET_PTON 1
8074 echo "$ac_t""no" 1>&6
8079 echo $ac_n "checking for strftime""... $ac_c" 1>&6
8080 echo "configure:8081: checking for strftime" >&5
8081 if eval "test \"`echo '$''{'ac_cv_func_strftime'+set}'`\" = set"; then
8082 echo $ac_n "(cached) $ac_c" 1>&6
8084 cat > conftest.$ac_ext <<EOF
8085 #line 8086 "configure"
8086 #include "confdefs.h"
8087 /* System header to define __stub macros and hopefully few prototypes,
8088 which can conflict with char strftime(); below. */
8090 /* Override any gcc2 internal prototype to avoid an error. */
8091 /* We use char because int might match the return type of a gcc2
8092 builtin and then its argument prototype would still apply. */
8097 /* The GNU C library defines this for functions which it implements
8098 to always fail with ENOSYS. Some functions are actually named
8099 something starting with __ and the normal name is an alias. */
8100 #if defined (__stub_strftime) || defined (__stub___strftime)
8108 if { (eval echo configure:8109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8110 eval "ac_cv_func_strftime=yes"
8112 echo "configure: failed program was:" >&5
8113 cat conftest.$ac_ext >&5
8115 eval "ac_cv_func_strftime=no"
8120 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
8121 echo "$ac_t""yes" 1>&6
8122 cat >> confdefs.h <<\EOF
8123 #define HAVE_STRFTIME 1
8127 echo "$ac_t""no" 1>&6
8128 # strftime is in -lintl on SCO UNIX.
8129 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
8130 echo "configure:8131: checking for strftime in -lintl" >&5
8131 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-%__p_%'`
8132 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8133 echo $ac_n "(cached) $ac_c" 1>&6
8135 ac_save_LIBS="$LIBS"
8137 cat > conftest.$ac_ext <<EOF
8138 #line 8139 "configure"
8139 #include "confdefs.h"
8140 /* Override any gcc2 internal prototype to avoid an error. */
8141 /* We use char because int might match the return type of a gcc2
8142 builtin and then its argument prototype would still apply. */
8149 if { (eval echo configure:8150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8151 eval "ac_cv_lib_$ac_lib_var=yes"
8153 echo "configure: failed program was:" >&5
8154 cat conftest.$ac_ext >&5
8156 eval "ac_cv_lib_$ac_lib_var=no"
8159 LIBS="$ac_save_LIBS"
8162 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8163 echo "$ac_t""yes" 1>&6
8164 cat >> confdefs.h <<\EOF
8165 #define HAVE_STRFTIME 1
8170 echo "$ac_t""no" 1>&6
8175 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
8176 echo "configure:8177: checking for vprintf" >&5
8177 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
8178 echo $ac_n "(cached) $ac_c" 1>&6
8180 cat > conftest.$ac_ext <<EOF
8181 #line 8182 "configure"
8182 #include "confdefs.h"
8183 /* System header to define __stub macros and hopefully few prototypes,
8184 which can conflict with char vprintf(); below. */
8186 /* Override any gcc2 internal prototype to avoid an error. */
8187 /* We use char because int might match the return type of a gcc2
8188 builtin and then its argument prototype would still apply. */
8193 /* The GNU C library defines this for functions which it implements
8194 to always fail with ENOSYS. Some functions are actually named
8195 something starting with __ and the normal name is an alias. */
8196 #if defined (__stub_vprintf) || defined (__stub___vprintf)
8204 if { (eval echo configure:8205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8206 eval "ac_cv_func_vprintf=yes"
8208 echo "configure: failed program was:" >&5
8209 cat conftest.$ac_ext >&5
8211 eval "ac_cv_func_vprintf=no"
8216 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
8217 echo "$ac_t""yes" 1>&6
8218 cat >> confdefs.h <<\EOF
8219 #define HAVE_VPRINTF 1
8223 echo "$ac_t""no" 1>&6
8226 if test "$ac_cv_func_vprintf" != yes; then
8227 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
8228 echo "configure:8229: checking for _doprnt" >&5
8229 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
8230 echo $ac_n "(cached) $ac_c" 1>&6
8232 cat > conftest.$ac_ext <<EOF
8233 #line 8234 "configure"
8234 #include "confdefs.h"
8235 /* System header to define __stub macros and hopefully few prototypes,
8236 which can conflict with char _doprnt(); below. */
8238 /* Override any gcc2 internal prototype to avoid an error. */
8239 /* We use char because int might match the return type of a gcc2
8240 builtin and then its argument prototype would still apply. */
8245 /* The GNU C library defines this for functions which it implements
8246 to always fail with ENOSYS. Some functions are actually named
8247 something starting with __ and the normal name is an alias. */
8248 #if defined (__stub__doprnt) || defined (__stub____doprnt)
8256 if { (eval echo configure:8257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8258 eval "ac_cv_func__doprnt=yes"
8260 echo "configure: failed program was:" >&5
8261 cat conftest.$ac_ext >&5
8263 eval "ac_cv_func__doprnt=no"
8268 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
8269 echo "$ac_t""yes" 1>&6
8270 cat >> confdefs.h <<\EOF
8271 #define HAVE_DOPRNT 1
8275 echo "$ac_t""no" 1>&6
8280 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8281 # for constant arguments. Useless!
8282 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
8283 echo "configure:8284: checking for working alloca.h" >&5
8284 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
8285 echo $ac_n "(cached) $ac_c" 1>&6
8287 cat > conftest.$ac_ext <<EOF
8288 #line 8289 "configure"
8289 #include "confdefs.h"
8292 char *p = alloca(2 * sizeof(int));
8295 if { (eval echo configure:8296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8297 ac_cv_header_alloca_h=yes
8299 echo "configure: failed program was:" >&5
8300 cat conftest.$ac_ext >&5
8302 ac_cv_header_alloca_h=no
8307 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
8308 if test $ac_cv_header_alloca_h = yes; then
8309 cat >> confdefs.h <<\EOF
8310 #define HAVE_ALLOCA_H 1
8315 echo $ac_n "checking for alloca""... $ac_c" 1>&6
8316 echo "configure:8317: checking for alloca" >&5
8317 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
8318 echo $ac_n "(cached) $ac_c" 1>&6
8320 cat > conftest.$ac_ext <<EOF
8321 #line 8322 "configure"
8322 #include "confdefs.h"
8325 # define alloca __builtin_alloca
8328 # include <malloc.h>
8329 # define alloca _alloca
8332 # include <alloca.h>
8337 # ifndef alloca /* predefined by HP cc +Olibcalls */
8346 char *p = (char *) alloca(1);
8349 if { (eval echo configure:8350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8351 ac_cv_func_alloca_works=yes
8353 echo "configure: failed program was:" >&5
8354 cat conftest.$ac_ext >&5
8356 ac_cv_func_alloca_works=no
8361 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
8362 if test $ac_cv_func_alloca_works = yes; then
8363 cat >> confdefs.h <<\EOF
8364 #define HAVE_ALLOCA 1
8369 if test $ac_cv_func_alloca_works = no; then
8370 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8371 # that cause trouble. Some versions do not even contain alloca or
8372 # contain a buggy version. If you still want to use their alloca,
8373 # use ar to extract alloca.o from them instead of compiling alloca.c.
8374 ALLOCA=alloca.${ac_objext}
8375 cat >> confdefs.h <<\EOF
8380 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
8381 echo "configure:8382: checking whether alloca needs Cray hooks" >&5
8382 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
8383 echo $ac_n "(cached) $ac_c" 1>&6
8385 cat > conftest.$ac_ext <<EOF
8386 #line 8387 "configure"
8387 #include "confdefs.h"
8388 #if defined(CRAY) && ! defined(CRAY2)
8395 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8396 egrep "webecray" >/dev/null 2>&1; then
8407 echo "$ac_t""$ac_cv_os_cray" 1>&6
8408 if test $ac_cv_os_cray = yes; then
8409 for ac_func in _getb67 GETB67 getb67; do
8410 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8411 echo "configure:8412: checking for $ac_func" >&5
8412 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8413 echo $ac_n "(cached) $ac_c" 1>&6
8415 cat > conftest.$ac_ext <<EOF
8416 #line 8417 "configure"
8417 #include "confdefs.h"
8418 /* System header to define __stub macros and hopefully few prototypes,
8419 which can conflict with char $ac_func(); below. */
8421 /* Override any gcc2 internal prototype to avoid an error. */
8422 /* We use char because int might match the return type of a gcc2
8423 builtin and then its argument prototype would still apply. */
8428 /* The GNU C library defines this for functions which it implements
8429 to always fail with ENOSYS. Some functions are actually named
8430 something starting with __ and the normal name is an alias. */
8431 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8439 if { (eval echo configure:8440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8441 eval "ac_cv_func_$ac_func=yes"
8443 echo "configure: failed program was:" >&5
8444 cat conftest.$ac_ext >&5
8446 eval "ac_cv_func_$ac_func=no"
8451 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8452 echo "$ac_t""yes" 1>&6
8453 cat >> confdefs.h <<EOF
8454 #define CRAY_STACKSEG_END $ac_func
8459 echo "$ac_t""no" 1>&6
8465 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
8466 echo "configure:8467: checking stack direction for C alloca" >&5
8467 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
8468 echo $ac_n "(cached) $ac_c" 1>&6
8470 if test "$cross_compiling" = yes; then
8471 ac_cv_c_stack_direction=0
8473 cat > conftest.$ac_ext <<EOF
8474 #line 8475 "configure"
8475 #include "confdefs.h"
8476 find_stack_direction ()
8478 static char *addr = 0;
8483 return find_stack_direction ();
8486 return (&dummy > addr) ? 1 : -1;
8490 exit (find_stack_direction() < 0);
8493 if { (eval echo configure:8494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8495 ac_cv_c_stack_direction=1
8497 echo "configure: failed program was:" >&5
8498 cat conftest.$ac_ext >&5
8500 ac_cv_c_stack_direction=-1
8507 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
8508 cat >> confdefs.h <<EOF
8509 #define STACK_DIRECTION $ac_cv_c_stack_direction
8514 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
8515 echo $ac_n "checking for getmntent in -lsun""... $ac_c" 1>&6
8516 echo "configure:8517: checking for getmntent in -lsun" >&5
8517 ac_lib_var=`echo sun'_'getmntent | sed 'y%./+-%__p_%'`
8518 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8519 echo $ac_n "(cached) $ac_c" 1>&6
8521 ac_save_LIBS="$LIBS"
8523 cat > conftest.$ac_ext <<EOF
8524 #line 8525 "configure"
8525 #include "confdefs.h"
8526 /* Override any gcc2 internal prototype to avoid an error. */
8527 /* We use char because int might match the return type of a gcc2
8528 builtin and then its argument prototype would still apply. */
8535 if { (eval echo configure:8536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8537 eval "ac_cv_lib_$ac_lib_var=yes"
8539 echo "configure: failed program was:" >&5
8540 cat conftest.$ac_ext >&5
8542 eval "ac_cv_lib_$ac_lib_var=no"
8545 LIBS="$ac_save_LIBS"
8548 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8549 echo "$ac_t""yes" 1>&6
8552 echo "$ac_t""no" 1>&6
8553 echo $ac_n "checking for getmntent in -lseq""... $ac_c" 1>&6
8554 echo "configure:8555: checking for getmntent in -lseq" >&5
8555 ac_lib_var=`echo seq'_'getmntent | sed 'y%./+-%__p_%'`
8556 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8557 echo $ac_n "(cached) $ac_c" 1>&6
8559 ac_save_LIBS="$LIBS"
8561 cat > conftest.$ac_ext <<EOF
8562 #line 8563 "configure"
8563 #include "confdefs.h"
8564 /* Override any gcc2 internal prototype to avoid an error. */
8565 /* We use char because int might match the return type of a gcc2
8566 builtin and then its argument prototype would still apply. */
8573 if { (eval echo configure:8574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8575 eval "ac_cv_lib_$ac_lib_var=yes"
8577 echo "configure: failed program was:" >&5
8578 cat conftest.$ac_ext >&5
8580 eval "ac_cv_lib_$ac_lib_var=no"
8583 LIBS="$ac_save_LIBS"
8586 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8587 echo "$ac_t""yes" 1>&6
8590 echo "$ac_t""no" 1>&6
8591 echo $ac_n "checking for getmntent in -lgen""... $ac_c" 1>&6
8592 echo "configure:8593: checking for getmntent in -lgen" >&5
8593 ac_lib_var=`echo gen'_'getmntent | sed 'y%./+-%__p_%'`
8594 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8595 echo $ac_n "(cached) $ac_c" 1>&6
8597 ac_save_LIBS="$LIBS"
8599 cat > conftest.$ac_ext <<EOF
8600 #line 8601 "configure"
8601 #include "confdefs.h"
8602 /* Override any gcc2 internal prototype to avoid an error. */
8603 /* We use char because int might match the return type of a gcc2
8604 builtin and then its argument prototype would still apply. */
8611 if { (eval echo configure:8612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8613 eval "ac_cv_lib_$ac_lib_var=yes"
8615 echo "configure: failed program was:" >&5
8616 cat conftest.$ac_ext >&5
8618 eval "ac_cv_lib_$ac_lib_var=no"
8621 LIBS="$ac_save_LIBS"
8624 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8625 echo "$ac_t""yes" 1>&6
8628 echo "$ac_t""no" 1>&6
8635 echo $ac_n "checking for getmntent""... $ac_c" 1>&6
8636 echo "configure:8637: checking for getmntent" >&5
8637 if eval "test \"`echo '$''{'ac_cv_func_getmntent'+set}'`\" = set"; then
8638 echo $ac_n "(cached) $ac_c" 1>&6
8640 cat > conftest.$ac_ext <<EOF
8641 #line 8642 "configure"
8642 #include "confdefs.h"
8643 /* System header to define __stub macros and hopefully few prototypes,
8644 which can conflict with char getmntent(); below. */
8646 /* Override any gcc2 internal prototype to avoid an error. */
8647 /* We use char because int might match the return type of a gcc2
8648 builtin and then its argument prototype would still apply. */
8653 /* The GNU C library defines this for functions which it implements
8654 to always fail with ENOSYS. Some functions are actually named
8655 something starting with __ and the normal name is an alias. */
8656 #if defined (__stub_getmntent) || defined (__stub___getmntent)
8664 if { (eval echo configure:8665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8666 eval "ac_cv_func_getmntent=yes"
8668 echo "configure: failed program was:" >&5
8669 cat conftest.$ac_ext >&5
8671 eval "ac_cv_func_getmntent=no"
8676 if eval "test \"`echo '$ac_cv_func_'getmntent`\" = yes"; then
8677 echo "$ac_t""yes" 1>&6
8678 cat >> confdefs.h <<\EOF
8679 #define HAVE_GETMNTENT 1
8683 echo "$ac_t""no" 1>&6
8686 echo $ac_n "checking whether closedir returns void""... $ac_c" 1>&6
8687 echo "configure:8688: checking whether closedir returns void" >&5
8688 if eval "test \"`echo '$''{'ac_cv_func_closedir_void'+set}'`\" = set"; then
8689 echo $ac_n "(cached) $ac_c" 1>&6
8691 if test "$cross_compiling" = yes; then
8692 ac_cv_func_closedir_void=yes
8694 cat > conftest.$ac_ext <<EOF
8695 #line 8696 "configure"
8696 #include "confdefs.h"
8697 #include <sys/types.h>
8698 #include <$ac_header_dirent>
8699 int closedir(); main() { exit(closedir(opendir(".")) != 0); }
8701 if { (eval echo configure:8702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8703 ac_cv_func_closedir_void=no
8705 echo "configure: failed program was:" >&5
8706 cat conftest.$ac_ext >&5
8708 ac_cv_func_closedir_void=yes
8715 echo "$ac_t""$ac_cv_func_closedir_void" 1>&6
8716 if test $ac_cv_func_closedir_void = yes; then
8717 cat >> confdefs.h <<\EOF
8718 #define CLOSEDIR_VOID 1
8723 echo $ac_n "checking whether setpgrp takes no argument""... $ac_c" 1>&6
8724 echo "configure:8725: checking whether setpgrp takes no argument" >&5
8725 if eval "test \"`echo '$''{'ac_cv_func_setpgrp_void'+set}'`\" = set"; then
8726 echo $ac_n "(cached) $ac_c" 1>&6
8728 if test "$cross_compiling" = yes; then
8729 { echo "configure: error: cannot check setpgrp if cross compiling" 1>&2; exit 1; }
8731 cat > conftest.$ac_ext <<EOF
8732 #line 8733 "configure"
8733 #include "confdefs.h"
8735 #ifdef HAVE_UNISTD_H
8740 * If this system has a BSD-style setpgrp, which takes arguments, exit
8745 if (setpgrp(1,1) == -1)
8752 if { (eval echo configure:8753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8754 ac_cv_func_setpgrp_void=no
8756 echo "configure: failed program was:" >&5
8757 cat conftest.$ac_ext >&5
8759 ac_cv_func_setpgrp_void=yes
8767 echo "$ac_t""$ac_cv_func_setpgrp_void" 1>&6
8768 if test $ac_cv_func_setpgrp_void = yes; then
8769 cat >> confdefs.h <<\EOF
8770 #define SETPGRP_VOID 1
8774 echo $ac_n "checking for working fnmatch""... $ac_c" 1>&6
8775 echo "configure:8776: checking for working fnmatch" >&5
8776 if eval "test \"`echo '$''{'ac_cv_func_fnmatch_works'+set}'`\" = set"; then
8777 echo $ac_n "(cached) $ac_c" 1>&6
8779 # Some versions of Solaris or SCO have a broken fnmatch function.
8780 # So we run a test program. If we are cross-compiling, take no chance.
8781 # Thanks to John Oleynick and Franc,ois Pinard for this test.
8782 if test "$cross_compiling" = yes; then
8783 ac_cv_func_fnmatch_works=no
8785 cat > conftest.$ac_ext <<EOF
8786 #line 8787 "configure"
8787 #include "confdefs.h"
8788 main() { exit (fnmatch ("a*", "abc", 0) != 0); }
8790 if { (eval echo configure:8791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8792 ac_cv_func_fnmatch_works=yes
8794 echo "configure: failed program was:" >&5
8795 cat conftest.$ac_ext >&5
8797 ac_cv_func_fnmatch_works=no
8804 echo "$ac_t""$ac_cv_func_fnmatch_works" 1>&6
8805 if test $ac_cv_func_fnmatch_works = yes; then
8806 cat >> confdefs.h <<\EOF
8807 #define HAVE_FNMATCH 1
8814 echo $ac_n "checking for setlocale in -lxpg4""... $ac_c" 1>&6
8815 echo "configure:8816: checking for setlocale in -lxpg4" >&5
8816 ac_lib_var=`echo xpg4'_'setlocale | sed 'y%./+-%__p_%'`
8817 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8818 echo $ac_n "(cached) $ac_c" 1>&6
8820 ac_save_LIBS="$LIBS"
8822 cat > conftest.$ac_ext <<EOF
8823 #line 8824 "configure"
8824 #include "confdefs.h"
8825 /* Override any gcc2 internal prototype to avoid an error. */
8826 /* We use char because int might match the return type of a gcc2
8827 builtin and then its argument prototype would still apply. */
8834 if { (eval echo configure:8835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8836 eval "ac_cv_lib_$ac_lib_var=yes"
8838 echo "configure: failed program was:" >&5
8839 cat conftest.$ac_ext >&5
8841 eval "ac_cv_lib_$ac_lib_var=no"
8844 LIBS="$ac_save_LIBS"
8847 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8848 echo "$ac_t""yes" 1>&6
8851 echo "$ac_t""no" 1>&6
8856 echo $ac_n "checking for getpwnam in -lsun""... $ac_c" 1>&6
8857 echo "configure:8858: checking for getpwnam in -lsun" >&5
8858 ac_lib_var=`echo sun'_'getpwnam | sed 'y%./+-%__p_%'`
8859 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8860 echo $ac_n "(cached) $ac_c" 1>&6
8862 ac_save_LIBS="$LIBS"
8864 cat > conftest.$ac_ext <<EOF
8865 #line 8866 "configure"
8866 #include "confdefs.h"
8867 /* Override any gcc2 internal prototype to avoid an error. */
8868 /* We use char because int might match the return type of a gcc2
8869 builtin and then its argument prototype would still apply. */
8876 if { (eval echo configure:8877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8878 eval "ac_cv_lib_$ac_lib_var=yes"
8880 echo "configure: failed program was:" >&5
8881 cat conftest.$ac_ext >&5
8883 eval "ac_cv_lib_$ac_lib_var=no"
8886 LIBS="$ac_save_LIBS"
8889 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8890 echo "$ac_t""yes" 1>&6
8891 ac_tr_lib=HAVE_LIB`echo sun | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8892 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8893 cat >> confdefs.h <<EOF
8894 #define $ac_tr_lib 1
8900 echo "$ac_t""no" 1>&6
8904 for ac_hdr in zlib.h
8906 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8907 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8908 echo "configure:8909: checking for $ac_hdr" >&5
8909 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8910 echo $ac_n "(cached) $ac_c" 1>&6
8912 cat > conftest.$ac_ext <<EOF
8913 #line 8914 "configure"
8914 #include "confdefs.h"
8917 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8918 { (eval echo configure:8919: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8919 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8920 if test -z "$ac_err"; then
8922 eval "ac_cv_header_$ac_safe=yes"
8925 echo "configure: failed program was:" >&5
8926 cat conftest.$ac_ext >&5
8928 eval "ac_cv_header_$ac_safe=no"
8932 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8933 echo "$ac_t""yes" 1>&6
8934 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8935 cat >> confdefs.h <<EOF
8936 #define $ac_tr_hdr 1
8940 echo "$ac_t""no" 1>&6
8944 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
8945 echo "configure:8946: checking for deflate in -lz" >&5
8946 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
8947 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8948 echo $ac_n "(cached) $ac_c" 1>&6
8950 ac_save_LIBS="$LIBS"
8952 cat > conftest.$ac_ext <<EOF
8953 #line 8954 "configure"
8954 #include "confdefs.h"
8955 /* Override any gcc2 internal prototype to avoid an error. */
8956 /* We use char because int might match the return type of a gcc2
8957 builtin and then its argument prototype would still apply. */
8964 if { (eval echo configure:8965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8966 eval "ac_cv_lib_$ac_lib_var=yes"
8968 echo "configure: failed program was:" >&5
8969 cat conftest.$ac_ext >&5
8971 eval "ac_cv_lib_$ac_lib_var=no"
8974 LIBS="$ac_save_LIBS"
8977 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8978 echo "$ac_t""yes" 1>&6
8981 echo "$ac_t""no" 1>&6
8985 if test x$FDLIBS = x-lz; then
8986 cat >> confdefs.h <<\EOF
8994 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
8995 echo "configure:8996: checking for pthread_create in -lpthread" >&5
8996 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
8997 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8998 echo $ac_n "(cached) $ac_c" 1>&6
9000 ac_save_LIBS="$LIBS"
9001 LIBS="-lpthread $LIBS"
9002 cat > conftest.$ac_ext <<EOF
9003 #line 9004 "configure"
9004 #include "confdefs.h"
9005 /* Override any gcc2 internal prototype to avoid an error. */
9006 /* We use char because int might match the return type of a gcc2
9007 builtin and then its argument prototype would still apply. */
9008 char pthread_create();
9014 if { (eval echo configure:9015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9016 eval "ac_cv_lib_$ac_lib_var=yes"
9018 echo "configure: failed program was:" >&5
9019 cat conftest.$ac_ext >&5
9021 eval "ac_cv_lib_$ac_lib_var=no"
9024 LIBS="$ac_save_LIBS"
9027 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9028 echo "$ac_t""yes" 1>&6
9029 PTHREAD_LIB="-lpthread"
9031 echo "$ac_t""no" 1>&6
9032 echo $ac_n "checking for pthread_create in -lpthreads""... $ac_c" 1>&6
9033 echo "configure:9034: checking for pthread_create in -lpthreads" >&5
9034 ac_lib_var=`echo pthreads'_'pthread_create | sed 'y%./+-%__p_%'`
9035 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9036 echo $ac_n "(cached) $ac_c" 1>&6
9038 ac_save_LIBS="$LIBS"
9039 LIBS="-lpthreads $LIBS"
9040 cat > conftest.$ac_ext <<EOF
9041 #line 9042 "configure"
9042 #include "confdefs.h"
9043 /* Override any gcc2 internal prototype to avoid an error. */
9044 /* We use char because int might match the return type of a gcc2
9045 builtin and then its argument prototype would still apply. */
9046 char pthread_create();
9052 if { (eval echo configure:9053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9054 eval "ac_cv_lib_$ac_lib_var=yes"
9056 echo "configure: failed program was:" >&5
9057 cat conftest.$ac_ext >&5
9059 eval "ac_cv_lib_$ac_lib_var=no"
9062 LIBS="$ac_save_LIBS"
9065 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9066 echo "$ac_t""yes" 1>&6
9067 PTHREAD_LIB="-lpthreads"
9069 echo "$ac_t""no" 1>&6
9070 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
9071 echo "configure:9072: checking for pthread_create in -lc_r" >&5
9072 ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
9073 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9074 echo $ac_n "(cached) $ac_c" 1>&6
9076 ac_save_LIBS="$LIBS"
9078 cat > conftest.$ac_ext <<EOF
9079 #line 9080 "configure"
9080 #include "confdefs.h"
9081 /* Override any gcc2 internal prototype to avoid an error. */
9082 /* We use char because int might match the return type of a gcc2
9083 builtin and then its argument prototype would still apply. */
9084 char pthread_create();
9090 if { (eval echo configure:9091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9092 eval "ac_cv_lib_$ac_lib_var=yes"
9094 echo "configure: failed program was:" >&5
9095 cat conftest.$ac_ext >&5
9097 eval "ac_cv_lib_$ac_lib_var=no"
9100 LIBS="$ac_save_LIBS"
9103 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9104 echo "$ac_t""yes" 1>&6
9107 echo "$ac_t""no" 1>&6
9108 echo $ac_n "checking for pthread_create""... $ac_c" 1>&6
9109 echo "configure:9110: checking for pthread_create" >&5
9110 if eval "test \"`echo '$''{'ac_cv_func_pthread_create'+set}'`\" = set"; then
9111 echo $ac_n "(cached) $ac_c" 1>&6
9113 cat > conftest.$ac_ext <<EOF
9114 #line 9115 "configure"
9115 #include "confdefs.h"
9116 /* System header to define __stub macros and hopefully few prototypes,
9117 which can conflict with char pthread_create(); below. */
9119 /* Override any gcc2 internal prototype to avoid an error. */
9120 /* We use char because int might match the return type of a gcc2
9121 builtin and then its argument prototype would still apply. */
9122 char pthread_create();
9126 /* The GNU C library defines this for functions which it implements
9127 to always fail with ENOSYS. Some functions are actually named
9128 something starting with __ and the normal name is an alias. */
9129 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
9137 if { (eval echo configure:9138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9139 eval "ac_cv_func_pthread_create=yes"
9141 echo "configure: failed program was:" >&5
9142 cat conftest.$ac_ext >&5
9144 eval "ac_cv_func_pthread_create=no"
9149 if eval "test \"`echo '$ac_cv_func_'pthread_create`\" = yes"; then
9150 echo "$ac_t""yes" 1>&6
9153 echo "$ac_t""no" 1>&6
9167 cat >> confdefs.h <<\EOF
9174 LDFLAGS=${LDFLAGS--O}
9175 DB_LIBS="${SQL_LFLAGS}"
9177 CPPFLAGS="$CPPFLAGS"
9197 # Finally we set appropriate distribution specific
9198 # variables and defaults
9200 # PFILES are platform specific files
9201 PFILES="platforms/Makefile"
9208 PTHREAD_LIB="-lpthread -lexc"
9209 if test "${CC}" = "gcc" ; then
9216 TAPEDRIVE="/dev/nrmt0"
9219 DISTVER=`uname -a |awk '{print $3}'`
9220 TAPEDRIVE="/dev/nrst0"
9223 DISTVER=`cat /etc/.issue | grep Version | cut -f 2 -d ' '`
9224 TAPEDRIVE="/dev/nrst0"
9225 PSCMD="ps -e -o pid,command"
9226 hostname=`hostname -s`
9229 DISTVER=`uname -a |awk '{print $3}'`
9230 TAPEDRIVE="/dev/nrst0"
9232 CFLAGS="${CFLAGS} -mwindows"
9233 LDFLAGS="${LDFLAGS} -mwindows"
9236 DISTVER=`cat /etc/debian_version`
9237 TAPEDRIVE="/dev/nrst0"
9238 PSCMD="ps -e -o pid,command"
9239 hostname=`hostname -s`
9242 DISTVER=`uname -a |awk '{print $3}'`
9243 PTHREAD_LIB="-pthread"
9244 CFLAGS="${CFLAGS} -pthread"
9247 TAPEDRIVE="/dev/nrst0"
9248 PSCMD="ps -x -o pid,command"
9250 platforms/freebsd/Makefile \
9251 platforms/freebsd/bacula-fd \
9252 platforms/freebsd/bacula-sd \
9253 platforms/freebsd/bacula-dir"
9254 hostname=`hostname -s`
9255 largefile_support="yes"
9259 TAPEDRIVE="/dev/rmt/0hnb"
9263 TAPEDRIVE="/dev/rmt/0cbn"
9264 PSCMD="ps -e -o pid,comm"
9265 hostname=`/usr/bsd/hostname -s`
9267 platforms/irix/Makefile \
9268 platforms/irix/bacula-fd \
9269 platforms/irix/bacula-sd \
9270 platforms/irix/bacula-dir"
9273 DISTVER=`uname -a |awk '{print $3}'`
9276 TAPEDRIVE="/dev/nrst0"
9277 PSCMD="ps -a -o pid,command"
9278 PTHREAD_LIB="-pthread"
9279 CFLAGS="${CFLAGS} -pthread"
9282 DISTVER=`uname -a |awk '{print $3}'`
9285 TAPEDRIVE="/dev/nrst0"
9286 PSCMD="ps -a -o pid,command"
9287 PTHREAD_LIB="-pthread"
9288 CFLAGS="${CFLAGS} -pthread"
9290 platforms/openbsd/Makefile \
9291 platforms/openbsd/bacula-fd \
9292 platforms/openbsd/bacula-sd \
9293 platforms/openbsd/bacula-dir"
9296 DISTVER=`cat /etc/redhat-release | grep release |\
9298 TAPEDRIVE="/dev/nst0"
9299 PSCMD="ps -e -o pid,command"
9301 platforms/redhat/Makefile \
9302 platforms/redhat/bacula-fd \
9303 platforms/redhat/bacula-sd \
9304 platforms/redhat/bacula-dir"
9305 hostname=`hostname -s`
9308 DISTVER=`cat /etc/slackware-version`
9309 TAPEDRIVE="/dev/nst0"
9310 PSCMD="ps -e -o pid,command"
9311 hostname=`hostname -s`
9315 TAPEDRIVE="/dev/rmt/0cbn"
9316 PSCMD="ps -e -o pid,comm"
9318 platforms/solaris/Makefile \
9319 platforms/solaris/bacula-fd \
9320 platforms/solaris/bacula-sd \
9321 platforms/solaris/bacula-dir"
9324 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
9326 TAPEDRIVE="/dev/nst0"
9327 PSCMD="ps -e -o pid,command"
9328 hostname=`hostname -s`
9333 TAPEDRIVE="/dev/nst0"
9334 PSCMD="ps -e -o pid,command"
9335 hostname=`hostname -s`
9339 TAPEDRIVE="/dev/nst0"
9342 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
9349 LIBS="$PTHREAD_LIB $LIBS"
9351 cat >> confdefs.h <<EOF
9355 cat >> confdefs.h <<EOF
9366 MCOMMON=./autoconf/Make.common
9370 cat > confcache <<\EOF
9371 # This file is a shell script that caches the results of configure
9372 # tests run on this system so they can be shared between configure
9373 # scripts and configure runs. It is not useful on other systems.
9374 # If it contains results you don't want to keep, you may remove or edit it.
9376 # By default, configure uses ./config.cache as the cache file,
9377 # creating it if it does not exist already. You can give configure
9378 # the --cache-file=FILE option to use a different cache file; that is
9379 # what configure does when it calls configure scripts in
9380 # subdirectories, so they share the cache.
9381 # Giving --cache-file=/dev/null disables caching, for debugging configure.
9382 # config.status only pays attention to the cache file if you give it the
9383 # --recheck option to rerun configure.
9386 # The following way of writing the cache mishandles newlines in values,
9387 # but we know of no workaround that is simple, portable, and efficient.
9388 # So, don't put newlines in cache variables' values.
9389 # Ultrix sh set writes to stderr and can't be redirected directly,
9390 # and sets the high bit in the cache file unless we assign to the vars.
9392 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9394 # `set' does not quote correctly, so add quotes (double-quote substitution
9395 # turns \\\\ into \\, and sed turns \\ into \).
9397 -e "s/'/'\\\\''/g" \
9398 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
9401 # `set' quotes correctly as required by POSIX, so do not add quotes.
9402 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
9405 if cmp -s $cache_file confcache; then
9408 if test -w $cache_file; then
9409 echo "updating cache $cache_file"
9410 cat confcache > $cache_file
9412 echo "not updating unwritable cache $cache_file"
9417 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
9419 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9420 # Let make expand exec_prefix.
9421 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9423 # Any assignment to VPATH causes Sun make to only execute
9424 # the first set of double-colon rules, so remove it if not needed.
9425 # If there is a colon in the path, we need to keep it.
9426 if test "x$srcdir" = x.; then
9427 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
9430 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
9432 DEFS=-DHAVE_CONFIG_H
9434 # Without the "./", some shells look in PATH for config.status.
9435 : ${CONFIG_STATUS=./config.status}
9437 echo creating $CONFIG_STATUS
9438 rm -f $CONFIG_STATUS
9439 cat > $CONFIG_STATUS <<EOF
9441 # Generated automatically by configure.
9442 # Run this file to recreate the current configuration.
9443 # This directory was configured as follows,
9444 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9446 # $0 $ac_configure_args
9448 # Compiler output produced by configure, useful for debugging
9449 # configure, is in ./config.log if it exists.
9451 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
9454 case "\$ac_option" in
9455 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9456 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
9457 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
9458 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
9459 echo "$CONFIG_STATUS generated by autoconf version 2.13"
9461 -help | --help | --hel | --he | --h)
9462 echo "\$ac_cs_usage"; exit 0 ;;
9463 *) echo "\$ac_cs_usage"; exit 1 ;;
9467 ac_given_srcdir=$srcdir
9468 ac_given_INSTALL="$INSTALL"
9470 trap 'rm -fr `echo "autoconf/Make.common \
9473 rescue/linux/Makefile \
9474 rescue/freebsd/Makefile \
9475 rescue/solaris/Makefile \
9476 scripts/startmysql \
9478 scripts/btraceback \
9488 src/console/Makefile \
9489 src/console/console.conf \
9490 src/gnome-console/Makefile \
9491 src/gnome-console/gnome-console.conf \
9493 src/dird/bacula-dir.conf \
9495 src/stored/Makefile \
9496 src/stored/bacula-sd.conf \
9497 src/filed/Makefile \
9499 src/filed/bacula-fd.conf \
9500 src/filed/win32/Makefile \
9502 src/cats/make_catalog_backup \
9503 src/cats/delete_catalog_backup \
9504 src/cats/alter_mysql_tables \
9505 src/cats/make_mysql_tables \
9506 src/cats/drop_mysql_tables \
9507 src/cats/create_mysql_database \
9508 src/cats/grant_mysql_privileges \
9509 src/cats/alter_sqlite_tables \
9510 src/cats/make_sqlite_tables \
9511 src/cats/drop_sqlite_tables \
9512 src/cats/create_sqlite_database \
9515 src/cats/create_bdb_database \
9516 src/cats/make_bdb_tables \
9517 src/cats/drop_bdb_tables \
9518 src/cats/make_bacula_tables \
9519 src/cats/drop_bacula_tables \
9520 src/findlib/Makefile \
9521 src/tools/Makefile \
9522 $PFILES src/config.h:autoconf/config.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
9524 cat >> $CONFIG_STATUS <<EOF
9526 # Protect against being on the right side of a sed subst in config.status.
9527 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
9528 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
9532 s%@CFLAGS@%$CFLAGS%g
9533 s%@CPPFLAGS@%$CPPFLAGS%g
9534 s%@CXXFLAGS@%$CXXFLAGS%g
9535 s%@FFLAGS@%$FFLAGS%g
9537 s%@LDFLAGS@%$LDFLAGS%g
9539 s%@exec_prefix@%$exec_prefix%g
9540 s%@prefix@%$prefix%g
9541 s%@program_transform_name@%$program_transform_name%g
9542 s%@bindir@%$bindir%g
9543 s%@sbindir@%$sbindir%g
9544 s%@libexecdir@%$libexecdir%g
9545 s%@datadir@%$datadir%g
9546 s%@sysconfdir@%$sysconfdir%g
9547 s%@sharedstatedir@%$sharedstatedir%g
9548 s%@localstatedir@%$localstatedir%g
9549 s%@libdir@%$libdir%g
9550 s%@includedir@%$includedir%g
9551 s%@oldincludedir@%$oldincludedir%g
9552 s%@infodir@%$infodir%g
9553 s%@mandir@%$mandir%g
9554 s%@BUILD_DIR@%$BUILD_DIR%g
9555 s%@TRUEPRG@%$TRUEPRG%g
9556 s%@FALSEPRG@%$FALSEPRG%g
9558 s%@host_alias@%$host_alias%g
9559 s%@host_cpu@%$host_cpu%g
9560 s%@host_vendor@%$host_vendor%g
9561 s%@host_os@%$host_os%g
9562 s%@VERSION@%$VERSION%g
9564 s%@LSMDATE@%$LSMDATE%g
9568 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
9569 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
9570 s%@INSTALL_DATA@%$INSTALL_DATA%g
9571 s%@RANLIB@%$RANLIB%g
9581 s%@OPENSSL@%$OPENSSL%g
9582 s%@ARFLAGS@%$ARFLAGS%g
9583 s%@MAKE_SHELL@%$MAKE_SHELL%g
9584 s%@LOCAL_LIBS@%$LOCAL_LIBS%g
9585 s%@LOCAL_CFLAGS@%$LOCAL_CFLAGS%g
9586 s%@LOCAL_LDFLAGS@%$LOCAL_LDFLAGS%g
9587 s%@LOCAL_DEFS@%$LOCAL_DEFS%g
9588 s%@HAVE_SUN_OS_TRUE@%$HAVE_SUN_OS_TRUE%g
9589 s%@HAVE_SUN_OS_FALSE@%$HAVE_SUN_OS_FALSE%g
9590 s%@HAVE_OSF1_OS_TRUE@%$HAVE_OSF1_OS_TRUE%g
9591 s%@HAVE_OSF1_OS_FALSE@%$HAVE_OSF1_OS_FALSE%g
9592 s%@HAVE_AIX_OS_TRUE@%$HAVE_AIX_OS_TRUE%g
9593 s%@HAVE_AIX_OS_FALSE@%$HAVE_AIX_OS_FALSE%g
9594 s%@HAVE_HPUX_OS_TRUE@%$HAVE_HPUX_OS_TRUE%g
9595 s%@HAVE_HPUX_OS_FALSE@%$HAVE_HPUX_OS_FALSE%g
9596 s%@HAVE_LINUX_OS_TRUE@%$HAVE_LINUX_OS_TRUE%g
9597 s%@HAVE_LINUX_OS_FALSE@%$HAVE_LINUX_OS_FALSE%g
9598 s%@HAVE_FREEBSD_OS_TRUE@%$HAVE_FREEBSD_OS_TRUE%g
9599 s%@HAVE_FREEBSD_OS_FALSE@%$HAVE_FREEBSD_OS_FALSE%g
9600 s%@HAVE_NETBSD_OS_TRUE@%$HAVE_NETBSD_OS_TRUE%g
9601 s%@HAVE_NETBSD_OS_FALSE@%$HAVE_NETBSD_OS_FALSE%g
9602 s%@HAVE_OPENBSD_OS_TRUE@%$HAVE_OPENBSD_OS_TRUE%g
9603 s%@HAVE_OPENBSD_OS_FALSE@%$HAVE_OPENBSD_OS_FALSE%g
9604 s%@HAVE_BSDI_OS_TRUE@%$HAVE_BSDI_OS_TRUE%g
9605 s%@HAVE_BSDI_OS_FALSE@%$HAVE_BSDI_OS_FALSE%g
9606 s%@HAVE_SGI_OS_TRUE@%$HAVE_SGI_OS_TRUE%g
9607 s%@HAVE_SGI_OS_FALSE@%$HAVE_SGI_OS_FALSE%g
9608 s%@HAVE_IRIX_OS_TRUE@%$HAVE_IRIX_OS_TRUE%g
9609 s%@HAVE_IRIX_OS_FALSE@%$HAVE_IRIX_OS_FALSE%g
9610 s%@INSIDE_GNOME_COMMON_TRUE@%$INSIDE_GNOME_COMMON_TRUE%g
9611 s%@INSIDE_GNOME_COMMON_FALSE@%$INSIDE_GNOME_COMMON_FALSE%g
9612 s%@MSGFMT@%$MSGFMT%g
9613 s%@GNOME_LIBS@%$GNOME_LIBS%g
9614 s%@GNOMEUI_LIBS@%$GNOMEUI_LIBS%g
9615 s%@GNOMEGNORBA_LIBS@%$GNOMEGNORBA_LIBS%g
9616 s%@GTKXMHTML_LIBS@%$GTKXMHTML_LIBS%g
9617 s%@ZVT_LIBS@%$ZVT_LIBS%g
9618 s%@GNOME_LIBDIR@%$GNOME_LIBDIR%g
9619 s%@GNOME_INCLUDEDIR@%$GNOME_INCLUDEDIR%g
9620 s%@GNOME_CONFIG@%$GNOME_CONFIG%g
9621 s%@ORBIT_CONFIG@%$ORBIT_CONFIG%g
9622 s%@ORBIT_IDL@%$ORBIT_IDL%g
9623 s%@HAVE_ORBIT_TRUE@%$HAVE_ORBIT_TRUE%g
9624 s%@HAVE_ORBIT_FALSE@%$HAVE_ORBIT_FALSE%g
9625 s%@ORBIT_CFLAGS@%$ORBIT_CFLAGS%g
9626 s%@ORBIT_LIBS@%$ORBIT_LIBS%g
9627 s%@HAVE_GNORBA_TRUE@%$HAVE_GNORBA_TRUE%g
9628 s%@HAVE_GNORBA_FALSE@%$HAVE_GNORBA_FALSE%g
9629 s%@GNORBA_CFLAGS@%$GNORBA_CFLAGS%g
9630 s%@GNORBA_LIBS@%$GNORBA_LIBS%g
9631 s%@GNOME_APPLETS_LIBS@%$GNOME_APPLETS_LIBS%g
9632 s%@GNOME_DOCKLETS_LIBS@%$GNOME_DOCKLETS_LIBS%g
9633 s%@GNOME_CAPPLET_LIBS@%$GNOME_CAPPLET_LIBS%g
9634 s%@GNOME_DIR@%$GNOME_DIR%g
9635 s%@TTOOL_LDFLAGS@%$TTOOL_LDFLAGS%g
9636 s%@STATIC_FD@%$STATIC_FD%g
9637 s%@STATIC_SD@%$STATIC_SD%g
9638 s%@STATIC_DIR@%$STATIC_DIR%g
9639 s%@STATIC_CONS@%$STATIC_CONS%g
9640 s%@ALL_DIRS@%$ALL_DIRS%g
9641 s%@CONS_INC@%$CONS_INC%g
9642 s%@CONS_LIBS@%$CONS_LIBS%g
9643 s%@CONS_LDFLAGS@%$CONS_LDFLAGS%g
9644 s%@READLINE_SRC@%$READLINE_SRC%g
9645 s%@working_dir@%$working_dir%g
9646 s%@dump_email@%$dump_email%g
9647 s%@job_email@%$job_email%g
9648 s%@smtp_host@%$smtp_host%g
9649 s%@piddir@%$piddir%g
9650 s%@subsysdir@%$subsysdir%g
9651 s%@baseport@%$baseport%g
9652 s%@dir_port@%$dir_port%g
9653 s%@fd_port@%$fd_port%g
9654 s%@sd_port@%$sd_port%g
9655 s%@dir_password@%$dir_password%g
9656 s%@fd_password@%$fd_password%g
9657 s%@sd_password@%$sd_password%g
9658 s%@SQL_LFLAGS@%$SQL_LFLAGS%g
9659 s%@SQL_INCLUDE@%$SQL_INCLUDE%g
9660 s%@SQL_BINDIR@%$SQL_BINDIR%g
9662 s%@DB_NAME@%$DB_NAME%g
9663 s%@EXEEXT@%$EXEEXT%g
9665 s%@build_alias@%$build_alias%g
9666 s%@build_cpu@%$build_cpu%g
9667 s%@build_vendor@%$build_vendor%g
9668 s%@build_os@%$build_os%g
9669 s%@GETCONF@%$GETCONF%g
9670 s%@X_CFLAGS@%$X_CFLAGS%g
9671 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
9672 s%@X_LIBS@%$X_LIBS%g
9673 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
9674 s%@LIBOBJS@%$LIBOBJS%g
9675 s%@ALLOCA@%$ALLOCA%g
9676 s%@FDLIBS@%$FDLIBS%g
9678 s%@DINCLUDE@%$DINCLUDE%g
9680 s%@DB_LIBS@%$DB_LIBS%g
9681 s%@OBJLIST@%$OBJLIST%g
9682 s%@hostname@%$hostname%g
9683 s%@TAPEDRIVE@%$TAPEDRIVE%g
9686 s%@DISTNAME@%$DISTNAME%g
9687 s%@DISTVER@%$DISTVER%g
9688 /@MCOMMON@/r $MCOMMON
9694 cat >> $CONFIG_STATUS <<\EOF
9696 # Split the substitutions into bite-sized pieces for seds with
9697 # small command number limits, like on Digital OSF/1 and HP-UX.
9698 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
9699 ac_file=1 # Number of current file.
9700 ac_beg=1 # First line for current file.
9701 ac_end=$ac_max_sed_cmds # Line after last line for current file.
9704 while $ac_more_lines; do
9705 if test $ac_beg -gt 1; then
9706 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
9708 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
9710 if test ! -s conftest.s$ac_file; then
9712 rm -f conftest.s$ac_file
9714 if test -z "$ac_sed_cmds"; then
9715 ac_sed_cmds="sed -f conftest.s$ac_file"
9717 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
9719 ac_file=`expr $ac_file + 1`
9721 ac_end=`expr $ac_end + $ac_max_sed_cmds`
9724 if test -z "$ac_sed_cmds"; then
9729 cat >> $CONFIG_STATUS <<EOF
9731 CONFIG_FILES=\${CONFIG_FILES-"autoconf/Make.common \
9734 rescue/linux/Makefile \
9735 rescue/freebsd/Makefile \
9736 rescue/solaris/Makefile \
9737 scripts/startmysql \
9739 scripts/btraceback \
9749 src/console/Makefile \
9750 src/console/console.conf \
9751 src/gnome-console/Makefile \
9752 src/gnome-console/gnome-console.conf \
9754 src/dird/bacula-dir.conf \
9756 src/stored/Makefile \
9757 src/stored/bacula-sd.conf \
9758 src/filed/Makefile \
9760 src/filed/bacula-fd.conf \
9761 src/filed/win32/Makefile \
9763 src/cats/make_catalog_backup \
9764 src/cats/delete_catalog_backup \
9765 src/cats/alter_mysql_tables \
9766 src/cats/make_mysql_tables \
9767 src/cats/drop_mysql_tables \
9768 src/cats/create_mysql_database \
9769 src/cats/grant_mysql_privileges \
9770 src/cats/alter_sqlite_tables \
9771 src/cats/make_sqlite_tables \
9772 src/cats/drop_sqlite_tables \
9773 src/cats/create_sqlite_database \
9776 src/cats/create_bdb_database \
9777 src/cats/make_bdb_tables \
9778 src/cats/drop_bdb_tables \
9779 src/cats/make_bacula_tables \
9780 src/cats/drop_bacula_tables \
9781 src/findlib/Makefile \
9782 src/tools/Makefile \
9785 cat >> $CONFIG_STATUS <<\EOF
9786 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
9787 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9789 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9790 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9791 *) ac_file_in="${ac_file}.in" ;;
9794 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
9796 # Remove last slash and all that follows it. Not all systems have dirname.
9797 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9798 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9799 # The file is in a subdirectory.
9800 test ! -d "$ac_dir" && mkdir "$ac_dir"
9801 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
9802 # A "../" for each directory in $ac_dir_suffix.
9803 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
9805 ac_dir_suffix= ac_dots=
9808 case "$ac_given_srcdir" in
9810 if test -z "$ac_dots"; then top_srcdir=.
9811 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
9812 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
9814 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
9815 top_srcdir="$ac_dots$ac_given_srcdir" ;;
9818 case "$ac_given_INSTALL" in
9819 [/$]*) INSTALL="$ac_given_INSTALL" ;;
9820 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
9823 echo creating "$ac_file"
9825 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
9827 *Makefile*) ac_comsub="1i\\
9828 # $configure_input" ;;
9832 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9834 s%@configure_input@%$configure_input%g
9835 s%@srcdir@%$srcdir%g
9836 s%@top_srcdir@%$top_srcdir%g
9837 s%@INSTALL@%$INSTALL%g
9838 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
9842 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9843 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9845 # ac_d sets the value in "#define NAME VALUE" lines.
9846 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9847 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
9850 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
9851 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9852 ac_uB='\([ ]\)%\1#\2define\3'
9855 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9856 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9857 ac_eB='$%\1#\2define\3'
9861 if test "${CONFIG_HEADERS+set}" != set; then
9863 cat >> $CONFIG_STATUS <<EOF
9864 CONFIG_HEADERS="src/config.h:autoconf/config.h.in"
9866 cat >> $CONFIG_STATUS <<\EOF
9868 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
9869 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9871 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9872 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9873 *) ac_file_in="${ac_file}.in" ;;
9876 echo creating $ac_file
9878 rm -f conftest.frag conftest.in conftest.out
9879 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9880 cat $ac_file_inputs > conftest.in
9884 # Transform confdefs.h into a sed script conftest.vals that substitutes
9885 # the proper values into config.h.in to produce config.h. And first:
9886 # Protect against being on the right side of a sed subst in config.status.
9887 # Protect against being in an unquoted here document in config.status.
9889 cat > conftest.hdr <<\EOF
9892 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
9896 sed -n -f conftest.hdr confdefs.h > conftest.vals
9899 # This sed command replaces #undef with comments. This is necessary, for
9900 # example, in the case of _POSIX_SOURCE, which is predefined and required
9901 # on some systems where configure will not decide to define it.
9902 cat >> conftest.vals <<\EOF
9903 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
9906 # Break up conftest.vals because some shells have a limit on
9907 # the size of here documents, and old seds have small limits too.
9912 ac_lines=`grep -c . conftest.vals`
9913 # grep -c gives empty output for an empty file on some AIX systems.
9914 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
9915 # Write a limited-size here document to conftest.frag.
9916 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
9917 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
9919 sed -f conftest.frag conftest.in > conftest.out
9921 mv conftest.out conftest.in
9923 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
9925 mv conftest.tail conftest.vals
9929 cat >> $CONFIG_STATUS <<\EOF
9930 rm -f conftest.frag conftest.h
9931 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
9932 cat conftest.in >> conftest.h
9934 if cmp -s $ac_file conftest.h 2>/dev/null; then
9935 echo "$ac_file is unchanged"
9938 # Remove last slash and all that follows it. Not all systems have dirname.
9939 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9940 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9941 # The file is in a subdirectory.
9942 test ! -d "$ac_dir" && mkdir "$ac_dir"
9945 mv conftest.h $ac_file
9950 cat >> $CONFIG_STATUS <<EOF
9953 cat >> $CONFIG_STATUS <<\EOF
9954 (echo "Doing make of dependencies"; make depend;)
9958 chmod +x $CONFIG_STATUS
9959 rm -fr confdefs* $ac_clean_files
9960 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
9964 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
9965 chmod 755 console gconsole
9967 chmod 755 src/cats/make_mysql_tables src/cats/drop_mysql_tables
9968 chmod 755 src/cats/make_test_tables src/cats/drop_test_tables
9969 chmod 755 src/cats/create_mysql_database
9970 chmod 755 src/cats/make_catalog_backup src/cats/delete_catalog_backup
9971 chmod 755 src/cats/alter_mysql_tables
9972 chmod 755 src/cats/grant_mysql_privileges
9973 chmod 755 src/cats/make_sqlite_tables src/cats/drop_sqlite_tables
9974 chmod 755 src/cats/make_bacula_tables src/cats/drop_bacula_tables
9975 chmod 755 src/cats/create_sqlite_database
9976 chmod 755 src/cats/alter_sqlite_tables
9977 chmod 755 src/cats/sqlite
9978 chmod 755 src/cats/make_bdb_tables src/cats/drop_bdb_tables
9979 chmod 755 src/cats/create_bdb_database
9981 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
9982 largefile_support="yes"
9987 Configuration on `date`:
9989 Host: $host -- ${DISTNAME} ${DISTVER}
9990 Bacula version: ${VERSION} (${DATE})
9991 Source code location: ${srcdir}
9992 Install binaries: ${sbindir}
9993 Install config files: ${sysconfdir}
9995 C++ Compiler: ${CXX}
9996 Compiler flags: ${CFLAGS}
9997 Linker flags: ${LDFLAGS}
9999 Statically Linked Tools: ${support_static_tools}
10000 Statically Linked FD: ${support_static_fd}
10001 Statically Linked SD: ${support_static_sd}
10002 Statically Linked DIR: ${support_static_dir}
10003 Statically Linked CONS: ${support_static_cons}
10004 Database type: ${db_name}
10005 Database lib: ${DB_LIBS}
10007 Job Output Email: ${job_email}
10008 Traceback Email: ${dump_email}
10009 SMTP Host Address: ${smtp_host}
10010 Director Port ${dir_port}
10011 File daemon Port ${fd_port}
10012 Storage daemon Port ${sd_port}
10013 Working directory ${working_dir}
10014 SQL binaries Directory ${SQL_BINDIR}
10016 Large file support: $largefile_support
10017 readline support: ${got_readline} ${PRTREADLINE_SRC}
10018 TCP Wrappers support: ${TCPW_MSG}
10019 ZLIB support: ${have_zlib}
10020 enable-smartalloc: ${support_smartalloc}
10021 enable-gnome: ${support_gnome}
10022 client-only: ${build_client_only}
10029 # cweb support: ${got_cweb} ${CWEB_SRC}
10030 # gmp support: ${got_gmp} ${GMP_SRC}